configure 884 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827
  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. CheckObjectiveCARC()
  17580. {
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17582. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17583. have_clang_objc_arc=no
  17584. save_CFLAGS="$CFLAGS"
  17585. CFLAGS="$save_CFLAGS -fobjc-arc"
  17586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17587. /* end confdefs.h. */
  17588. int x = 0;
  17589. int
  17590. main ()
  17591. {
  17592. ;
  17593. return 0;
  17594. }
  17595. _ACEOF
  17596. if ac_fn_c_try_compile "$LINENO"; then :
  17597. have_clang_objc_arc=yes
  17598. fi
  17599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17601. $as_echo "$have_clang_objc_arc" >&6; }
  17602. CFLAGS="$save_CFLAGS"
  17603. if test x$have_clang_objc_arc = xyes; then
  17604. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17605. fi
  17606. }
  17607. CheckVisibilityHidden()
  17608. {
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17610. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17611. have_gcc_fvisibility=no
  17612. visibility_CFLAGS="-fvisibility=hidden"
  17613. save_CFLAGS="$CFLAGS"
  17614. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17616. /* end confdefs.h. */
  17617. #if !defined(__GNUC__) || __GNUC__ < 4
  17618. #error SDL only uses visibility attributes in GCC 4 or newer
  17619. #endif
  17620. int
  17621. main ()
  17622. {
  17623. ;
  17624. return 0;
  17625. }
  17626. _ACEOF
  17627. if ac_fn_c_try_compile "$LINENO"; then :
  17628. have_gcc_fvisibility=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_fvisibility" >&5
  17632. $as_echo "$have_gcc_fvisibility" >&6; }
  17633. CFLAGS="$save_CFLAGS"
  17634. if test x$have_gcc_fvisibility = xyes; then
  17635. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17636. fi
  17637. }
  17638. CheckNoStrictAliasing()
  17639. {
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17641. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17642. have_gcc_no_strict_aliasing=no
  17643. save_CFLAGS="$CFLAGS"
  17644. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  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_no_strict_aliasing=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_no_strict_aliasing" >&5
  17660. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17661. CFLAGS="$save_CFLAGS"
  17662. if test x$have_gcc_no_strict_aliasing = xyes; then
  17663. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17664. fi
  17665. }
  17666. CheckStackBoundary()
  17667. {
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17669. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17670. have_gcc_preferred_stack_boundary=no
  17671. save_CFLAGS="$CFLAGS"
  17672. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  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_preferred_stack_boundary=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_preferred_stack_boundary" >&5
  17688. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17689. CFLAGS="$save_CFLAGS"
  17690. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17691. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17692. fi
  17693. }
  17694. CheckDeclarationAfterStatement()
  17695. {
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17697. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17698. have_gcc_declaration_after_statement=no
  17699. save_CFLAGS="$CFLAGS"
  17700. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  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_declaration_after_statement=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_declaration_after_statement" >&5
  17716. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17717. CFLAGS="$save_CFLAGS"
  17718. if test x$have_gcc_declaration_after_statement = xyes; then
  17719. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17720. fi
  17721. }
  17722. CheckWarnAll()
  17723. {
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17725. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17726. have_gcc_Wall=no
  17727. save_CFLAGS="$CFLAGS"
  17728. CFLAGS="$save_CFLAGS -Wall"
  17729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17730. /* end confdefs.h. */
  17731. int x = 0;
  17732. int
  17733. main ()
  17734. {
  17735. ;
  17736. return 0;
  17737. }
  17738. _ACEOF
  17739. if ac_fn_c_try_compile "$LINENO"; then :
  17740. have_gcc_Wall=yes
  17741. fi
  17742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17744. $as_echo "$have_gcc_Wall" >&6; }
  17745. CFLAGS="$save_CFLAGS"
  17746. if test x$have_gcc_Wall = xyes; then
  17747. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17749. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17750. need_gcc_Wno_multichar=no
  17751. case "$host" in
  17752. *-*-haiku*)
  17753. need_gcc_Wno_multichar=yes
  17754. ;;
  17755. esac
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17757. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17758. if test x$need_gcc_Wno_multichar = xyes; then
  17759. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17760. fi
  17761. fi
  17762. }
  17763. CheckWayland()
  17764. {
  17765. # Check whether --enable-video-wayland was given.
  17766. if test "${enable_video_wayland+set}" = set; then :
  17767. enableval=$enable_video_wayland;
  17768. else
  17769. enable_video_wayland=yes
  17770. fi
  17771. # Check whether --enable-video-wayland-qt-touch was given.
  17772. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17773. enableval=$enable_video_wayland_qt_touch;
  17774. else
  17775. enable_video_wayland_qt_touch=yes
  17776. fi
  17777. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17779. $as_echo_n "checking for Wayland support... " >&6; }
  17780. video_wayland=no
  17781. if test x$video_opengl_egl = xyes && \
  17782. test x$video_opengles_v2 = xyes; then
  17783. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17784. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17785. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17786. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17787. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17788. WAYLAND_SCANNER_CODE_MODE=private-code
  17789. else
  17790. WAYLAND_SCANNER_CODE_MODE=code
  17791. fi
  17792. video_wayland=yes
  17793. fi
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17796. $as_echo "$video_wayland" >&6; }
  17797. if test x$video_wayland = xyes; then
  17798. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17799. if test x$enable_video_wayland_qt_touch = xyes; then
  17800. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17801. fi
  17802. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17803. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17804. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17805. # Check whether --enable-wayland-shared was given.
  17806. if test "${enable_wayland_shared+set}" = set; then :
  17807. enableval=$enable_wayland_shared;
  17808. else
  17809. enable_wayland_shared=maybe
  17810. fi
  17811. case "$host" in
  17812. *)
  17813. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17814. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. if test x$wayland_egl_lib = x; then
  17816. # This works in Ubuntu 13.10, maybe others
  17817. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17818. fi
  17819. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17820. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17821. ;;
  17822. esac
  17823. if test x$enable_wayland_shared = xmaybe; then
  17824. enable_wayland_shared=yes
  17825. fi
  17826. if test x$have_loadso != xyes && \
  17827. test x$enable_wayland_shared = xyes; then
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17829. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17830. enable_wayland_shared=no
  17831. fi
  17832. if test x$have_loadso = xyes && \
  17833. test x$enable_wayland_shared = xyes && \
  17834. test x$wayland_client_lib != x && \
  17835. test x$wayland_egl_lib != x && \
  17836. test x$wayland_cursor_lib != x && \
  17837. test x$xkbcommon_lib != x; then
  17838. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17839. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17840. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17841. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17842. cat >>confdefs.h <<_ACEOF
  17843. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17844. _ACEOF
  17845. cat >>confdefs.h <<_ACEOF
  17846. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17847. _ACEOF
  17848. cat >>confdefs.h <<_ACEOF
  17849. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17850. _ACEOF
  17851. cat >>confdefs.h <<_ACEOF
  17852. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17853. _ACEOF
  17854. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17855. else
  17856. enable_wayland_shared=no
  17857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17858. SUMMARY_video="${SUMMARY_video} wayland"
  17859. fi
  17860. have_video=yes
  17861. # Check whether --enable-libdecor was given.
  17862. if test "${enable_libdecor+set}" = set; then :
  17863. enableval=$enable_libdecor;
  17864. else
  17865. enable_libdecor=yes
  17866. fi
  17867. if test x$enable_libdecor = xyes; then
  17868. pkg_failed=no
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17870. $as_echo_n "checking for libdecor-0... " >&6; }
  17871. if test -n "$DECOR_CFLAGS"; then
  17872. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17873. elif test -n "$PKG_CONFIG"; then
  17874. if test -n "$PKG_CONFIG" && \
  17875. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17876. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17877. ac_status=$?
  17878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17879. test $ac_status = 0; }; then
  17880. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17881. test "x$?" != "x0" && pkg_failed=yes
  17882. else
  17883. pkg_failed=yes
  17884. fi
  17885. else
  17886. pkg_failed=untried
  17887. fi
  17888. if test -n "$DECOR_LIBS"; then
  17889. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17890. elif test -n "$PKG_CONFIG"; then
  17891. if test -n "$PKG_CONFIG" && \
  17892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17893. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17894. ac_status=$?
  17895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17896. test $ac_status = 0; }; then
  17897. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17898. test "x$?" != "x0" && pkg_failed=yes
  17899. else
  17900. pkg_failed=yes
  17901. fi
  17902. else
  17903. pkg_failed=untried
  17904. fi
  17905. if test $pkg_failed = yes; then
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17907. $as_echo "no" >&6; }
  17908. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17909. _pkg_short_errors_supported=yes
  17910. else
  17911. _pkg_short_errors_supported=no
  17912. fi
  17913. if test $_pkg_short_errors_supported = yes; then
  17914. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17915. else
  17916. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17917. fi
  17918. # Put the nasty error message in config.log where it belongs
  17919. echo "$DECOR_PKG_ERRORS" >&5
  17920. video_libdecor=no
  17921. elif test $pkg_failed = untried; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17923. $as_echo "no" >&6; }
  17924. video_libdecor=no
  17925. else
  17926. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17927. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17929. $as_echo "yes" >&6; }
  17930. video_libdecor=yes
  17931. fi
  17932. if test x$video_libdecor = xyes; then
  17933. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17934. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17935. # Check whether --enable-libdecor-shared was given.
  17936. if test "${enable_libdecor_shared+set}" = set; then :
  17937. enableval=$enable_libdecor_shared;
  17938. else
  17939. enable_libdecor_shared=yes
  17940. fi
  17941. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17942. if test x$enable_wayland_shared != xyes; then
  17943. enable_libdecor_shared=no
  17944. fi
  17945. if test x$have_loadso != xyes && \
  17946. test x$enable_libdecor_shared = xyes; then
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17948. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17949. fi
  17950. if test x$have_loadso = xyes && \
  17951. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17952. echo "-- dynamic libdecor -> $decor_lib"
  17953. cat >>confdefs.h <<_ACEOF
  17954. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17955. _ACEOF
  17956. else
  17957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17958. fi
  17959. fi
  17960. fi
  17961. fi
  17962. fi
  17963. }
  17964. CheckNativeClient()
  17965. {
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. #if !defined(__native_client__)
  17969. #error "NO NACL"
  17970. #endif
  17971. int
  17972. main ()
  17973. {
  17974. ;
  17975. return 0;
  17976. }
  17977. _ACEOF
  17978. if ac_fn_c_try_compile "$LINENO"; then :
  17979. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17980. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17981. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17982. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17983. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17984. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17985. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17986. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17987. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17988. SUMMARY_audio="${SUMMARY_audio} nacl"
  17989. have_audio=yes
  17990. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17991. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17992. have_video=yes
  17993. fi
  17994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17995. }
  17996. CheckRPI()
  17997. {
  17998. # Check whether --enable-video-rpi was given.
  17999. if test "${enable_video_rpi+set}" = set; then :
  18000. enableval=$enable_video_rpi;
  18001. else
  18002. enable_video_rpi=yes
  18003. fi
  18004. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18005. pkg_failed=no
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18007. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18008. if test -n "$RPI_CFLAGS"; then
  18009. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18010. elif test -n "$PKG_CONFIG"; then
  18011. if test -n "$PKG_CONFIG" && \
  18012. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18013. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18014. ac_status=$?
  18015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18016. test $ac_status = 0; }; then
  18017. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18018. test "x$?" != "x0" && pkg_failed=yes
  18019. else
  18020. pkg_failed=yes
  18021. fi
  18022. else
  18023. pkg_failed=untried
  18024. fi
  18025. if test -n "$RPI_LIBS"; then
  18026. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18027. elif test -n "$PKG_CONFIG"; then
  18028. if test -n "$PKG_CONFIG" && \
  18029. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18030. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18031. ac_status=$?
  18032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18033. test $ac_status = 0; }; then
  18034. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18035. test "x$?" != "x0" && pkg_failed=yes
  18036. else
  18037. pkg_failed=yes
  18038. fi
  18039. else
  18040. pkg_failed=untried
  18041. fi
  18042. if test $pkg_failed = yes; then
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18044. $as_echo "no" >&6; }
  18045. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18046. _pkg_short_errors_supported=yes
  18047. else
  18048. _pkg_short_errors_supported=no
  18049. fi
  18050. if test $_pkg_short_errors_supported = yes; then
  18051. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18052. else
  18053. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18054. fi
  18055. # Put the nasty error message in config.log where it belongs
  18056. echo "$RPI_PKG_ERRORS" >&5
  18057. video_rpi=no
  18058. elif test $pkg_failed = untried; then
  18059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18060. $as_echo "no" >&6; }
  18061. video_rpi=no
  18062. else
  18063. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18064. RPI_LIBS=$pkg_cv_RPI_LIBS
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18066. $as_echo "yes" >&6; }
  18067. video_rpi=yes
  18068. fi
  18069. if test x$video_rpi = xno; then
  18070. if test x$ARCH = xnetbsd; then
  18071. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18072. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18073. else
  18074. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18075. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18076. fi
  18077. fi
  18078. # Save the original compiler flags and libraries
  18079. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18080. # Add the Raspberry Pi compiler flags and libraries
  18081. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18083. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18084. have_video_rpi=no
  18085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18086. /* end confdefs.h. */
  18087. #include <bcm_host.h>
  18088. #include <EGL/eglplatform.h>
  18089. int
  18090. main ()
  18091. {
  18092. EGL_DISPMANX_WINDOW_T window;
  18093. bcm_host_init();
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. if ac_fn_c_try_link "$LINENO"; then :
  18099. have_video_rpi=yes
  18100. fi
  18101. rm -f core conftest.err conftest.$ac_objext \
  18102. conftest$ac_exeext conftest.$ac_ext
  18103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18104. $as_echo "$have_video_rpi" >&6; }
  18105. # Restore the compiler flags and libraries
  18106. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18107. if test x$have_video_rpi = xyes; then
  18108. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18109. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18110. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18112. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18113. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18114. SUMMARY_video="${SUMMARY_video} rpi"
  18115. have_video=yes
  18116. fi
  18117. fi
  18118. }
  18119. CheckX11()
  18120. {
  18121. # Check whether --enable-video-x11 was given.
  18122. if test "${enable_video_x11+set}" = set; then :
  18123. enableval=$enable_video_x11;
  18124. else
  18125. enable_video_x11=yes
  18126. fi
  18127. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18128. case "$host" in
  18129. *-*-darwin*)
  18130. # This isn't necessary for X11, but fixes GLX detection
  18131. if test "x$x_includes" = xNONE && \
  18132. test "x$x_libraries" = xNONE && \
  18133. test -d /opt/X11/include && \
  18134. test -d /opt/X11/lib; then
  18135. x_includes="/opt/X11/include"
  18136. x_libraries="/opt/X11/lib"
  18137. fi
  18138. ;;
  18139. esac
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18141. $as_echo_n "checking for X... " >&6; }
  18142. # Check whether --with-x was given.
  18143. if test "${with_x+set}" = set; then :
  18144. withval=$with_x;
  18145. fi
  18146. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18147. if test "x$with_x" = xno; then
  18148. # The user explicitly disabled X.
  18149. have_x=disabled
  18150. else
  18151. case $x_includes,$x_libraries in #(
  18152. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18153. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18154. $as_echo_n "(cached) " >&6
  18155. else
  18156. # One or both of the vars are not set, and there is no cached value.
  18157. ac_x_includes=no
  18158. ac_x_libraries=no
  18159. # Do we need to do anything special at all?
  18160. ac_save_LIBS=$LIBS
  18161. LIBS="-lX11 $LIBS"
  18162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18163. /* end confdefs.h. */
  18164. #include <X11/Xlib.h>
  18165. int
  18166. main ()
  18167. {
  18168. XrmInitialize ()
  18169. ;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. if ac_fn_c_try_link "$LINENO"; then :
  18174. # We can compile and link X programs with no special options.
  18175. ac_x_includes=
  18176. ac_x_libraries=
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext \
  18179. conftest$ac_exeext conftest.$ac_ext
  18180. LIBS="$ac_save_LIBS"
  18181. # If that didn't work, only try xmkmf and filesystem searches
  18182. # for native compilation.
  18183. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18184. rm -f -r conftest.dir
  18185. if mkdir conftest.dir; then
  18186. cd conftest.dir
  18187. cat >Imakefile <<'_ACEOF'
  18188. incroot:
  18189. @echo incroot='${INCROOT}'
  18190. usrlibdir:
  18191. @echo usrlibdir='${USRLIBDIR}'
  18192. libdir:
  18193. @echo libdir='${LIBDIR}'
  18194. _ACEOF
  18195. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18196. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18197. for ac_var in incroot usrlibdir libdir; do
  18198. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18199. done
  18200. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18201. for ac_extension in a so sl dylib la dll; do
  18202. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18203. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18204. ac_im_usrlibdir=$ac_im_libdir; break
  18205. fi
  18206. done
  18207. # Screen out bogus values from the imake configuration. They are
  18208. # bogus both because they are the default anyway, and because
  18209. # using them would break gcc on systems where it needs fixed includes.
  18210. case $ac_im_incroot in
  18211. /usr/include) ac_x_includes= ;;
  18212. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18213. esac
  18214. case $ac_im_usrlibdir in
  18215. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18216. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18217. esac
  18218. fi
  18219. cd ..
  18220. rm -f -r conftest.dir
  18221. fi
  18222. # Standard set of common directories for X headers.
  18223. # Check X11 before X11Rn because it is often a symlink to the current release.
  18224. ac_x_header_dirs='
  18225. /usr/X11/include
  18226. /usr/X11R7/include
  18227. /usr/X11R6/include
  18228. /usr/X11R5/include
  18229. /usr/X11R4/include
  18230. /usr/include/X11
  18231. /usr/include/X11R7
  18232. /usr/include/X11R6
  18233. /usr/include/X11R5
  18234. /usr/include/X11R4
  18235. /usr/local/X11/include
  18236. /usr/local/X11R7/include
  18237. /usr/local/X11R6/include
  18238. /usr/local/X11R5/include
  18239. /usr/local/X11R4/include
  18240. /usr/local/include/X11
  18241. /usr/local/include/X11R7
  18242. /usr/local/include/X11R6
  18243. /usr/local/include/X11R5
  18244. /usr/local/include/X11R4
  18245. /opt/X11/include
  18246. /usr/X386/include
  18247. /usr/x386/include
  18248. /usr/XFree86/include/X11
  18249. /usr/include
  18250. /usr/local/include
  18251. /usr/unsupported/include
  18252. /usr/athena/include
  18253. /usr/local/x11r5/include
  18254. /usr/lpp/Xamples/include
  18255. /usr/openwin/include
  18256. /usr/openwin/share/include'
  18257. if test "$ac_x_includes" = no; then
  18258. # Guess where to find include files, by looking for Xlib.h.
  18259. # First, try using that file with no special directory specified.
  18260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18261. /* end confdefs.h. */
  18262. #include <X11/Xlib.h>
  18263. _ACEOF
  18264. if ac_fn_c_try_cpp "$LINENO"; then :
  18265. # We can compile using X headers with no special include directory.
  18266. ac_x_includes=
  18267. else
  18268. for ac_dir in $ac_x_header_dirs; do
  18269. if test -r "$ac_dir/X11/Xlib.h"; then
  18270. ac_x_includes=$ac_dir
  18271. break
  18272. fi
  18273. done
  18274. fi
  18275. rm -f conftest.err conftest.i conftest.$ac_ext
  18276. fi # $ac_x_includes = no
  18277. if test "$ac_x_libraries" = no; then
  18278. # Check for the libraries.
  18279. # See if we find them without any special options.
  18280. # Don't add to $LIBS permanently.
  18281. ac_save_LIBS=$LIBS
  18282. LIBS="-lX11 $LIBS"
  18283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18284. /* end confdefs.h. */
  18285. #include <X11/Xlib.h>
  18286. int
  18287. main ()
  18288. {
  18289. XrmInitialize ()
  18290. ;
  18291. return 0;
  18292. }
  18293. _ACEOF
  18294. if ac_fn_c_try_link "$LINENO"; then :
  18295. LIBS=$ac_save_LIBS
  18296. # We can link X programs with no special library path.
  18297. ac_x_libraries=
  18298. else
  18299. LIBS=$ac_save_LIBS
  18300. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18301. do
  18302. # Don't even attempt the hair of trying to link an X program!
  18303. for ac_extension in a so sl dylib la dll; do
  18304. if test -r "$ac_dir/libX11.$ac_extension"; then
  18305. ac_x_libraries=$ac_dir
  18306. break 2
  18307. fi
  18308. done
  18309. done
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext \
  18312. conftest$ac_exeext conftest.$ac_ext
  18313. fi # $ac_x_libraries = no
  18314. fi
  18315. # Record the results.
  18316. case $ac_x_includes,$ac_x_libraries in #(
  18317. no,* | *,no | *\'*) :
  18318. # Didn't find X, or a directory has "'" in its name.
  18319. ac_cv_have_x="have_x=no" ;; #(
  18320. *) :
  18321. # Record where we found X for the cache.
  18322. ac_cv_have_x="have_x=yes\
  18323. ac_x_includes='$ac_x_includes'\
  18324. ac_x_libraries='$ac_x_libraries'" ;;
  18325. esac
  18326. fi
  18327. ;; #(
  18328. *) have_x=yes;;
  18329. esac
  18330. eval "$ac_cv_have_x"
  18331. fi # $with_x != no
  18332. if test "$have_x" != yes; then
  18333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18334. $as_echo "$have_x" >&6; }
  18335. no_x=yes
  18336. else
  18337. # If each of the values was on the command line, it overrides each guess.
  18338. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18339. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18340. # Update the cache value to reflect the command line values.
  18341. ac_cv_have_x="have_x=yes\
  18342. ac_x_includes='$x_includes'\
  18343. ac_x_libraries='$x_libraries'"
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18345. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18346. fi
  18347. if test "$no_x" = yes; then
  18348. # Not all programs may use this symbol, but it does not hurt to define it.
  18349. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18350. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18351. else
  18352. if test -n "$x_includes"; then
  18353. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18354. fi
  18355. # It would also be nice to do this for all -L options, not just this one.
  18356. if test -n "$x_libraries"; then
  18357. X_LIBS="$X_LIBS -L$x_libraries"
  18358. # For Solaris; some versions of Sun CC require a space after -R and
  18359. # others require no space. Words are not sufficient . . . .
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18361. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18362. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18363. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18364. ac_c_werror_flag=yes
  18365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18366. /* end confdefs.h. */
  18367. int
  18368. main ()
  18369. {
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_link "$LINENO"; then :
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18376. $as_echo "no" >&6; }
  18377. X_LIBS="$X_LIBS -R$x_libraries"
  18378. else
  18379. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18381. /* end confdefs.h. */
  18382. int
  18383. main ()
  18384. {
  18385. ;
  18386. return 0;
  18387. }
  18388. _ACEOF
  18389. if ac_fn_c_try_link "$LINENO"; then :
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18391. $as_echo "yes" >&6; }
  18392. X_LIBS="$X_LIBS -R $x_libraries"
  18393. else
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18395. $as_echo "neither works" >&6; }
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext \
  18398. conftest$ac_exeext conftest.$ac_ext
  18399. fi
  18400. rm -f core conftest.err conftest.$ac_objext \
  18401. conftest$ac_exeext conftest.$ac_ext
  18402. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18403. LIBS=$ac_xsave_LIBS
  18404. fi
  18405. # Check for system-dependent libraries X programs must link with.
  18406. # Do this before checking for the system-independent R6 libraries
  18407. # (-lICE), since we may need -lsocket or whatever for X linking.
  18408. if test "$ISC" = yes; then
  18409. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18410. else
  18411. # Martyn Johnson says this is needed for Ultrix, if the X
  18412. # libraries were built with DECnet support. And Karl Berry says
  18413. # the Alpha needs dnet_stub (dnet does not exist).
  18414. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18416. /* end confdefs.h. */
  18417. /* Override any GCC internal prototype to avoid an error.
  18418. Use char because int might match the return type of a GCC
  18419. builtin and then its argument prototype would still apply. */
  18420. #ifdef __cplusplus
  18421. extern "C"
  18422. #endif
  18423. char XOpenDisplay ();
  18424. int
  18425. main ()
  18426. {
  18427. return XOpenDisplay ();
  18428. ;
  18429. return 0;
  18430. }
  18431. _ACEOF
  18432. if ac_fn_c_try_link "$LINENO"; then :
  18433. else
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18435. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18436. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18437. $as_echo_n "(cached) " >&6
  18438. else
  18439. ac_check_lib_save_LIBS=$LIBS
  18440. LIBS="-ldnet $LIBS"
  18441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18442. /* end confdefs.h. */
  18443. /* Override any GCC internal prototype to avoid an error.
  18444. Use char because int might match the return type of a GCC
  18445. builtin and then its argument prototype would still apply. */
  18446. #ifdef __cplusplus
  18447. extern "C"
  18448. #endif
  18449. char dnet_ntoa ();
  18450. int
  18451. main ()
  18452. {
  18453. return dnet_ntoa ();
  18454. ;
  18455. return 0;
  18456. }
  18457. _ACEOF
  18458. if ac_fn_c_try_link "$LINENO"; then :
  18459. ac_cv_lib_dnet_dnet_ntoa=yes
  18460. else
  18461. ac_cv_lib_dnet_dnet_ntoa=no
  18462. fi
  18463. rm -f core conftest.err conftest.$ac_objext \
  18464. conftest$ac_exeext conftest.$ac_ext
  18465. LIBS=$ac_check_lib_save_LIBS
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18468. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18469. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18470. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18471. fi
  18472. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18474. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18475. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18476. $as_echo_n "(cached) " >&6
  18477. else
  18478. ac_check_lib_save_LIBS=$LIBS
  18479. LIBS="-ldnet_stub $LIBS"
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. /* Override any GCC internal prototype to avoid an error.
  18483. Use char because int might match the return type of a GCC
  18484. builtin and then its argument prototype would still apply. */
  18485. #ifdef __cplusplus
  18486. extern "C"
  18487. #endif
  18488. char dnet_ntoa ();
  18489. int
  18490. main ()
  18491. {
  18492. return dnet_ntoa ();
  18493. ;
  18494. return 0;
  18495. }
  18496. _ACEOF
  18497. if ac_fn_c_try_link "$LINENO"; then :
  18498. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18499. else
  18500. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18501. fi
  18502. rm -f core conftest.err conftest.$ac_objext \
  18503. conftest$ac_exeext conftest.$ac_ext
  18504. LIBS=$ac_check_lib_save_LIBS
  18505. fi
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18507. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18508. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18509. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18510. fi
  18511. fi
  18512. fi
  18513. rm -f core conftest.err conftest.$ac_objext \
  18514. conftest$ac_exeext conftest.$ac_ext
  18515. LIBS="$ac_xsave_LIBS"
  18516. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18517. # to get the SysV transport functions.
  18518. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18519. # needs -lnsl.
  18520. # The nsl library prevents programs from opening the X display
  18521. # on Irix 5.2, according to T.E. Dickey.
  18522. # The functions gethostbyname, getservbyname, and inet_addr are
  18523. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18524. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18525. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18526. fi
  18527. if test $ac_cv_func_gethostbyname = no; then
  18528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18529. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18530. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18531. $as_echo_n "(cached) " >&6
  18532. else
  18533. ac_check_lib_save_LIBS=$LIBS
  18534. LIBS="-lnsl $LIBS"
  18535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18536. /* end confdefs.h. */
  18537. /* Override any GCC internal prototype to avoid an error.
  18538. Use char because int might match the return type of a GCC
  18539. builtin and then its argument prototype would still apply. */
  18540. #ifdef __cplusplus
  18541. extern "C"
  18542. #endif
  18543. char gethostbyname ();
  18544. int
  18545. main ()
  18546. {
  18547. return gethostbyname ();
  18548. ;
  18549. return 0;
  18550. }
  18551. _ACEOF
  18552. if ac_fn_c_try_link "$LINENO"; then :
  18553. ac_cv_lib_nsl_gethostbyname=yes
  18554. else
  18555. ac_cv_lib_nsl_gethostbyname=no
  18556. fi
  18557. rm -f core conftest.err conftest.$ac_objext \
  18558. conftest$ac_exeext conftest.$ac_ext
  18559. LIBS=$ac_check_lib_save_LIBS
  18560. fi
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18562. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18563. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18564. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18565. fi
  18566. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18568. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18569. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18570. $as_echo_n "(cached) " >&6
  18571. else
  18572. ac_check_lib_save_LIBS=$LIBS
  18573. LIBS="-lbsd $LIBS"
  18574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18575. /* end confdefs.h. */
  18576. /* Override any GCC internal prototype to avoid an error.
  18577. Use char because int might match the return type of a GCC
  18578. builtin and then its argument prototype would still apply. */
  18579. #ifdef __cplusplus
  18580. extern "C"
  18581. #endif
  18582. char gethostbyname ();
  18583. int
  18584. main ()
  18585. {
  18586. return gethostbyname ();
  18587. ;
  18588. return 0;
  18589. }
  18590. _ACEOF
  18591. if ac_fn_c_try_link "$LINENO"; then :
  18592. ac_cv_lib_bsd_gethostbyname=yes
  18593. else
  18594. ac_cv_lib_bsd_gethostbyname=no
  18595. fi
  18596. rm -f core conftest.err conftest.$ac_objext \
  18597. conftest$ac_exeext conftest.$ac_ext
  18598. LIBS=$ac_check_lib_save_LIBS
  18599. fi
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18601. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18602. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18603. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18604. fi
  18605. fi
  18606. fi
  18607. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18608. # socket/setsockopt and other routines are undefined under SCO ODT
  18609. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18610. # on later versions), says Simon Leinen: it contains gethostby*
  18611. # variants that don't use the name server (or something). -lsocket
  18612. # must be given before -lnsl if both are needed. We assume that
  18613. # if connect needs -lnsl, so does gethostbyname.
  18614. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18615. if test "x$ac_cv_func_connect" = xyes; then :
  18616. fi
  18617. if test $ac_cv_func_connect = no; then
  18618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18619. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18620. if ${ac_cv_lib_socket_connect+:} false; then :
  18621. $as_echo_n "(cached) " >&6
  18622. else
  18623. ac_check_lib_save_LIBS=$LIBS
  18624. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18626. /* end confdefs.h. */
  18627. /* Override any GCC internal prototype to avoid an error.
  18628. Use char because int might match the return type of a GCC
  18629. builtin and then its argument prototype would still apply. */
  18630. #ifdef __cplusplus
  18631. extern "C"
  18632. #endif
  18633. char connect ();
  18634. int
  18635. main ()
  18636. {
  18637. return connect ();
  18638. ;
  18639. return 0;
  18640. }
  18641. _ACEOF
  18642. if ac_fn_c_try_link "$LINENO"; then :
  18643. ac_cv_lib_socket_connect=yes
  18644. else
  18645. ac_cv_lib_socket_connect=no
  18646. fi
  18647. rm -f core conftest.err conftest.$ac_objext \
  18648. conftest$ac_exeext conftest.$ac_ext
  18649. LIBS=$ac_check_lib_save_LIBS
  18650. fi
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18652. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18653. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18654. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18655. fi
  18656. fi
  18657. # Guillermo Gomez says -lposix is necessary on A/UX.
  18658. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18659. if test "x$ac_cv_func_remove" = xyes; then :
  18660. fi
  18661. if test $ac_cv_func_remove = no; then
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18663. $as_echo_n "checking for remove in -lposix... " >&6; }
  18664. if ${ac_cv_lib_posix_remove+:} false; then :
  18665. $as_echo_n "(cached) " >&6
  18666. else
  18667. ac_check_lib_save_LIBS=$LIBS
  18668. LIBS="-lposix $LIBS"
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. /* Override any GCC internal prototype to avoid an error.
  18672. Use char because int might match the return type of a GCC
  18673. builtin and then its argument prototype would still apply. */
  18674. #ifdef __cplusplus
  18675. extern "C"
  18676. #endif
  18677. char remove ();
  18678. int
  18679. main ()
  18680. {
  18681. return remove ();
  18682. ;
  18683. return 0;
  18684. }
  18685. _ACEOF
  18686. if ac_fn_c_try_link "$LINENO"; then :
  18687. ac_cv_lib_posix_remove=yes
  18688. else
  18689. ac_cv_lib_posix_remove=no
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. LIBS=$ac_check_lib_save_LIBS
  18694. fi
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18696. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18697. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18698. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18699. fi
  18700. fi
  18701. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18702. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18703. if test "x$ac_cv_func_shmat" = xyes; then :
  18704. fi
  18705. if test $ac_cv_func_shmat = no; then
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18707. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18708. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18709. $as_echo_n "(cached) " >&6
  18710. else
  18711. ac_check_lib_save_LIBS=$LIBS
  18712. LIBS="-lipc $LIBS"
  18713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18714. /* end confdefs.h. */
  18715. /* Override any GCC internal prototype to avoid an error.
  18716. Use char because int might match the return type of a GCC
  18717. builtin and then its argument prototype would still apply. */
  18718. #ifdef __cplusplus
  18719. extern "C"
  18720. #endif
  18721. char shmat ();
  18722. int
  18723. main ()
  18724. {
  18725. return shmat ();
  18726. ;
  18727. return 0;
  18728. }
  18729. _ACEOF
  18730. if ac_fn_c_try_link "$LINENO"; then :
  18731. ac_cv_lib_ipc_shmat=yes
  18732. else
  18733. ac_cv_lib_ipc_shmat=no
  18734. fi
  18735. rm -f core conftest.err conftest.$ac_objext \
  18736. conftest$ac_exeext conftest.$ac_ext
  18737. LIBS=$ac_check_lib_save_LIBS
  18738. fi
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18740. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18741. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18742. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18743. fi
  18744. fi
  18745. fi
  18746. # Check for libraries that X11R6 Xt/Xaw programs need.
  18747. ac_save_LDFLAGS=$LDFLAGS
  18748. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18749. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18750. # check for ICE first), but we must link in the order -lSM -lICE or
  18751. # we get undefined symbols. So assume we have SM if we have ICE.
  18752. # These have to be linked with before -lX11, unlike the other
  18753. # libraries we check for below, so use a different variable.
  18754. # John Interrante, Karl Berry
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18756. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18757. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18758. $as_echo_n "(cached) " >&6
  18759. else
  18760. ac_check_lib_save_LIBS=$LIBS
  18761. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18763. /* end confdefs.h. */
  18764. /* Override any GCC internal prototype to avoid an error.
  18765. Use char because int might match the return type of a GCC
  18766. builtin and then its argument prototype would still apply. */
  18767. #ifdef __cplusplus
  18768. extern "C"
  18769. #endif
  18770. char IceConnectionNumber ();
  18771. int
  18772. main ()
  18773. {
  18774. return IceConnectionNumber ();
  18775. ;
  18776. return 0;
  18777. }
  18778. _ACEOF
  18779. if ac_fn_c_try_link "$LINENO"; then :
  18780. ac_cv_lib_ICE_IceConnectionNumber=yes
  18781. else
  18782. ac_cv_lib_ICE_IceConnectionNumber=no
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext \
  18785. conftest$ac_exeext conftest.$ac_ext
  18786. LIBS=$ac_check_lib_save_LIBS
  18787. fi
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18789. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18790. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18791. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18792. fi
  18793. LDFLAGS=$ac_save_LDFLAGS
  18794. fi
  18795. if test x$have_x = xyes; then
  18796. # Check whether --enable-x11-shared was given.
  18797. if test "${enable_x11_shared+set}" = set; then :
  18798. enableval=$enable_x11_shared;
  18799. else
  18800. enable_x11_shared=maybe
  18801. fi
  18802. case "$host" in
  18803. *-*-darwin*)
  18804. # Apple now puts this in /opt/X11
  18805. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18806. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18807. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18808. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18809. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18810. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18811. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18812. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18813. ;;
  18814. *-*-openbsd*)
  18815. x11_lib='libX11.so'
  18816. x11ext_lib='libXext.so'
  18817. xcursor_lib='libXcursor.so'
  18818. xinput_lib='libXi.so'
  18819. xfixes_lib='libXfixes.so'
  18820. xrandr_lib='libXrandr.so'
  18821. xrender_lib='libXrender.so'
  18822. xss_lib='libXss.so'
  18823. ;;
  18824. *)
  18825. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18826. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18827. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18828. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18829. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18830. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18831. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18832. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18833. ;;
  18834. esac
  18835. if test x$ac_cv_func_shmat != xyes; then
  18836. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18837. fi
  18838. CFLAGS="$CFLAGS $X_CFLAGS"
  18839. LDFLAGS="$LDFLAGS $X_LIBS"
  18840. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18841. #include <X11/Xproto.h>
  18842. "
  18843. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18844. have_xext_h_hdr=yes
  18845. else
  18846. have_xext_h_hdr=no
  18847. fi
  18848. if test x$have_xext_h_hdr != xyes; then
  18849. as_fn_error $? "
  18850. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18851. " "$LINENO" 5
  18852. fi
  18853. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18854. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18855. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18856. # Needed so SDL applications can include SDL_syswm.h
  18857. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18858. if test x$enable_x11_shared = xmaybe; then
  18859. enable_x11_shared=yes
  18860. fi
  18861. if test x$have_loadso != xyes && \
  18862. test x$enable_x11_shared = xyes; then
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18864. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18865. enable_x11_shared=no
  18866. fi
  18867. if test x$have_loadso = xyes && \
  18868. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18869. echo "-- dynamic libX11 -> $x11_lib"
  18870. echo "-- dynamic libX11ext -> $x11ext_lib"
  18871. cat >>confdefs.h <<_ACEOF
  18872. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18873. _ACEOF
  18874. cat >>confdefs.h <<_ACEOF
  18875. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18876. _ACEOF
  18877. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18878. else
  18879. enable_x11_shared=no
  18880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18881. SUMMARY_video="${SUMMARY_video} x11"
  18882. fi
  18883. have_video=yes
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18885. $as_echo_n "checking for XGenericEvent... " >&6; }
  18886. have_XGenericEvent=no
  18887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18888. /* end confdefs.h. */
  18889. #include <X11/Xlib.h>
  18890. int
  18891. main ()
  18892. {
  18893. Display *display;
  18894. XEvent event;
  18895. XGenericEventCookie *cookie = &event.xcookie;
  18896. XNextEvent(display, &event);
  18897. XGetEventData(display, cookie);
  18898. XFreeEventData(display, cookie);
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. if ac_fn_c_try_compile "$LINENO"; then :
  18904. have_XGenericEvent=yes
  18905. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18906. fi
  18907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18909. $as_echo "$have_XGenericEvent" >&6; }
  18910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18911. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18912. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18913. $as_echo_n "(cached) " >&6
  18914. else
  18915. ac_check_lib_save_LIBS=$LIBS
  18916. LIBS="-lX11 $LIBS"
  18917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18918. /* end confdefs.h. */
  18919. /* Override any GCC internal prototype to avoid an error.
  18920. Use char because int might match the return type of a GCC
  18921. builtin and then its argument prototype would still apply. */
  18922. #ifdef __cplusplus
  18923. extern "C"
  18924. #endif
  18925. char XkbKeycodeToKeysym ();
  18926. int
  18927. main ()
  18928. {
  18929. return XkbKeycodeToKeysym ();
  18930. ;
  18931. return 0;
  18932. }
  18933. _ACEOF
  18934. if ac_fn_c_try_link "$LINENO"; then :
  18935. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18936. else
  18937. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18938. fi
  18939. rm -f core conftest.err conftest.$ac_objext \
  18940. conftest$ac_exeext conftest.$ac_ext
  18941. LIBS=$ac_check_lib_save_LIBS
  18942. fi
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18944. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18945. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18946. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18947. fi
  18948. # Check whether --enable-video-x11-xcursor was given.
  18949. if test "${enable_video_x11_xcursor+set}" = set; then :
  18950. enableval=$enable_video_x11_xcursor;
  18951. else
  18952. enable_video_x11_xcursor=yes
  18953. fi
  18954. if test x$enable_video_x11_xcursor = xyes; then
  18955. definitely_enable_video_x11_xcursor=no
  18956. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18957. "
  18958. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18959. have_xcursor_h_hdr=yes
  18960. else
  18961. have_xcursor_h_hdr=no
  18962. fi
  18963. if test x$have_xcursor_h_hdr = xyes; then
  18964. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18965. echo "-- dynamic libXcursor -> $xcursor_lib"
  18966. cat >>confdefs.h <<_ACEOF
  18967. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18968. _ACEOF
  18969. definitely_enable_video_x11_xcursor=yes
  18970. else
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18972. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18973. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18974. $as_echo_n "(cached) " >&6
  18975. else
  18976. ac_check_lib_save_LIBS=$LIBS
  18977. LIBS="-lXcursor $LIBS"
  18978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18979. /* end confdefs.h. */
  18980. /* Override any GCC internal prototype to avoid an error.
  18981. Use char because int might match the return type of a GCC
  18982. builtin and then its argument prototype would still apply. */
  18983. #ifdef __cplusplus
  18984. extern "C"
  18985. #endif
  18986. char XcursorImageCreate ();
  18987. int
  18988. main ()
  18989. {
  18990. return XcursorImageCreate ();
  18991. ;
  18992. return 0;
  18993. }
  18994. _ACEOF
  18995. if ac_fn_c_try_link "$LINENO"; then :
  18996. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18997. else
  18998. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18999. fi
  19000. rm -f core conftest.err conftest.$ac_objext \
  19001. conftest$ac_exeext conftest.$ac_ext
  19002. LIBS=$ac_check_lib_save_LIBS
  19003. fi
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19005. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19006. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19007. have_xcursor_lib=yes
  19008. fi
  19009. if test x$have_xcursor_lib = xyes ; then
  19010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19011. definitely_enable_video_x11_xcursor=yes
  19012. fi
  19013. fi
  19014. fi
  19015. fi
  19016. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19017. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19018. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19019. fi
  19020. # Check whether --enable-video-x11-xdbe was given.
  19021. if test "${enable_video_x11_xdbe+set}" = set; then :
  19022. enableval=$enable_video_x11_xdbe;
  19023. else
  19024. enable_video_x11_xdbe=yes
  19025. fi
  19026. if test x$enable_video_x11_xdbe = xyes; then
  19027. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19028. "
  19029. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19030. have_dbe_h_hdr=yes
  19031. else
  19032. have_dbe_h_hdr=no
  19033. fi
  19034. if test x$have_dbe_h_hdr = xyes; then
  19035. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19036. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19037. fi
  19038. fi
  19039. # Check whether --enable-video-x11-xinput was given.
  19040. if test "${enable_video_x11_xinput+set}" = set; then :
  19041. enableval=$enable_video_x11_xinput;
  19042. else
  19043. enable_video_x11_xinput=yes
  19044. fi
  19045. if test x$enable_video_x11_xinput = xyes; then
  19046. definitely_enable_video_x11_xinput=no
  19047. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19048. "
  19049. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19050. have_xinput_h_hdr=yes
  19051. else
  19052. have_xinput_h_hdr=no
  19053. fi
  19054. if test x$have_xinput_h_hdr = xyes; then
  19055. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19056. echo "-- dynamic libXi -> $xinput_lib"
  19057. cat >>confdefs.h <<_ACEOF
  19058. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19059. _ACEOF
  19060. definitely_enable_video_x11_xinput=yes
  19061. else
  19062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19063. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19064. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19065. $as_echo_n "(cached) " >&6
  19066. else
  19067. ac_check_lib_save_LIBS=$LIBS
  19068. LIBS="-lXi $LIBS"
  19069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19070. /* end confdefs.h. */
  19071. /* Override any GCC internal prototype to avoid an error.
  19072. Use char because int might match the return type of a GCC
  19073. builtin and then its argument prototype would still apply. */
  19074. #ifdef __cplusplus
  19075. extern "C"
  19076. #endif
  19077. char XOpenDevice ();
  19078. int
  19079. main ()
  19080. {
  19081. return XOpenDevice ();
  19082. ;
  19083. return 0;
  19084. }
  19085. _ACEOF
  19086. if ac_fn_c_try_link "$LINENO"; then :
  19087. ac_cv_lib_Xi_XOpenDevice=yes
  19088. else
  19089. ac_cv_lib_Xi_XOpenDevice=no
  19090. fi
  19091. rm -f core conftest.err conftest.$ac_objext \
  19092. conftest$ac_exeext conftest.$ac_ext
  19093. LIBS=$ac_check_lib_save_LIBS
  19094. fi
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19096. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19097. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19098. have_xinput_lib=yes
  19099. fi
  19100. if test x$have_xinput_lib = xyes ; then
  19101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19102. definitely_enable_video_x11_xinput=yes
  19103. fi
  19104. fi
  19105. fi
  19106. fi
  19107. if test x$definitely_enable_video_x11_xinput = xyes; then
  19108. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19109. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19111. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19112. have_xinput2_multitouch=no
  19113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19114. /* end confdefs.h. */
  19115. #include <X11/Xlib.h>
  19116. #include <X11/Xproto.h>
  19117. #include <X11/extensions/XInput2.h>
  19118. int
  19119. main ()
  19120. {
  19121. int event_type = XI_TouchBegin;
  19122. XITouchClassInfo *t;
  19123. ;
  19124. return 0;
  19125. }
  19126. _ACEOF
  19127. if ac_fn_c_try_compile "$LINENO"; then :
  19128. have_xinput2_multitouch=yes
  19129. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19130. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19131. fi
  19132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19134. $as_echo "$have_xinput2_multitouch" >&6; }
  19135. fi
  19136. # Check whether --enable-video-x11-xfixes was given.
  19137. if test "${enable_video_x11_xfixes+set}" = set; then :
  19138. enableval=$enable_video_x11_xfixes;
  19139. else
  19140. enable_video_x11_xfixes=yes
  19141. fi
  19142. if test x$enable_video_x11_xfixes = xyes; then
  19143. definitely_enable_video_x11_xfixes=no
  19144. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19146. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19148. /* end confdefs.h. */
  19149. #include <X11/Xlib.h>
  19150. #include <X11/Xproto.h>
  19151. #include <X11/extensions/XInput2.h>
  19152. #include <X11/extensions/Xfixes.h>
  19153. int
  19154. main ()
  19155. {
  19156. BarrierEventID b;
  19157. ;
  19158. return 0;
  19159. }
  19160. _ACEOF
  19161. if ac_fn_c_try_compile "$LINENO"; then :
  19162. have_xfixes_h_hdr=yes
  19163. else
  19164. have_xfixes_h_hdr=no
  19165. fi
  19166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19168. $as_echo "$have_xfixes_h_hdr" >&6; }
  19169. if test x$have_xfixes_h_hdr = xyes; then
  19170. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19171. echo "-- dynamic libXfixes -> $xfixes_lib"
  19172. cat >>confdefs.h <<_ACEOF
  19173. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19174. _ACEOF
  19175. definitely_enable_video_x11_xfixes=yes
  19176. else
  19177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19178. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19179. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19180. $as_echo_n "(cached) " >&6
  19181. else
  19182. ac_check_lib_save_LIBS=$LIBS
  19183. LIBS="-lXfixes $LIBS"
  19184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19185. /* end confdefs.h. */
  19186. /* Override any GCC internal prototype to avoid an error.
  19187. Use char because int might match the return type of a GCC
  19188. builtin and then its argument prototype would still apply. */
  19189. #ifdef __cplusplus
  19190. extern "C"
  19191. #endif
  19192. char XFixesCreatePointerBarrier ();
  19193. int
  19194. main ()
  19195. {
  19196. return XFixesCreatePointerBarrier ();
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_link "$LINENO"; then :
  19202. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19203. else
  19204. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19205. fi
  19206. rm -f core conftest.err conftest.$ac_objext \
  19207. conftest$ac_exeext conftest.$ac_ext
  19208. LIBS=$ac_check_lib_save_LIBS
  19209. fi
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19211. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19212. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19213. have_xfixes_lib=yes
  19214. fi
  19215. if test x$have_xfixes_lib = xyes ; then
  19216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19217. definitely_enable_video_x11_xfixes=yes
  19218. fi
  19219. fi
  19220. fi
  19221. fi
  19222. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19223. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19224. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19225. fi
  19226. # Check whether --enable-video-x11-xrandr was given.
  19227. if test "${enable_video_x11_xrandr+set}" = set; then :
  19228. enableval=$enable_video_x11_xrandr;
  19229. else
  19230. enable_video_x11_xrandr=yes
  19231. fi
  19232. if test x$enable_video_x11_xrandr = xyes; then
  19233. definitely_enable_video_x11_xrandr=no
  19234. have_xrandr_h_hdr=no
  19235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19236. /* end confdefs.h. */
  19237. #include <X11/Xlib.h>
  19238. #include <X11/extensions/Xrandr.h>
  19239. int
  19240. main ()
  19241. {
  19242. XRRScreenResources *res = NULL;
  19243. ;
  19244. return 0;
  19245. }
  19246. _ACEOF
  19247. if ac_fn_c_try_compile "$LINENO"; then :
  19248. have_xrandr_h_hdr=yes
  19249. fi
  19250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19251. if test x$have_xrandr_h_hdr = xyes; then
  19252. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19253. echo "-- dynamic libXrandr -> $xrandr_lib"
  19254. cat >>confdefs.h <<_ACEOF
  19255. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19256. _ACEOF
  19257. definitely_enable_video_x11_xrandr=yes
  19258. else
  19259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19260. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19261. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19262. $as_echo_n "(cached) " >&6
  19263. else
  19264. ac_check_lib_save_LIBS=$LIBS
  19265. LIBS="-lXrandr $LIBS"
  19266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19267. /* end confdefs.h. */
  19268. /* Override any GCC internal prototype to avoid an error.
  19269. Use char because int might match the return type of a GCC
  19270. builtin and then its argument prototype would still apply. */
  19271. #ifdef __cplusplus
  19272. extern "C"
  19273. #endif
  19274. char XRRQueryExtension ();
  19275. int
  19276. main ()
  19277. {
  19278. return XRRQueryExtension ();
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_link "$LINENO"; then :
  19284. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19285. else
  19286. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext \
  19289. conftest$ac_exeext conftest.$ac_ext
  19290. LIBS=$ac_check_lib_save_LIBS
  19291. fi
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19293. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19294. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19295. have_xrandr_lib=yes
  19296. fi
  19297. if test x$have_xrandr_lib = xyes ; then
  19298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19299. definitely_enable_video_x11_xrandr=yes
  19300. fi
  19301. fi
  19302. fi
  19303. fi
  19304. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19305. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19306. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19307. fi
  19308. # Check whether --enable-video-x11-scrnsaver was given.
  19309. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19310. enableval=$enable_video_x11_scrnsaver;
  19311. else
  19312. enable_video_x11_scrnsaver=yes
  19313. fi
  19314. if test x$enable_video_x11_scrnsaver = xyes; then
  19315. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19316. "
  19317. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19318. have_scrnsaver_h_hdr=yes
  19319. else
  19320. have_scrnsaver_h_hdr=no
  19321. fi
  19322. if test x$have_scrnsaver_h_hdr = xyes; then
  19323. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19324. echo "-- dynamic libXss -> $xss_lib"
  19325. cat >>confdefs.h <<_ACEOF
  19326. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19327. _ACEOF
  19328. definitely_enable_video_x11_scrnsaver=yes
  19329. else
  19330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19331. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19332. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19333. $as_echo_n "(cached) " >&6
  19334. else
  19335. ac_check_lib_save_LIBS=$LIBS
  19336. LIBS="-lXss $LIBS"
  19337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19338. /* end confdefs.h. */
  19339. /* Override any GCC internal prototype to avoid an error.
  19340. Use char because int might match the return type of a GCC
  19341. builtin and then its argument prototype would still apply. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char XScreenSaverSuspend ();
  19346. int
  19347. main ()
  19348. {
  19349. return XScreenSaverSuspend ();
  19350. ;
  19351. return 0;
  19352. }
  19353. _ACEOF
  19354. if ac_fn_c_try_link "$LINENO"; then :
  19355. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19356. else
  19357. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext \
  19360. conftest$ac_exeext conftest.$ac_ext
  19361. LIBS=$ac_check_lib_save_LIBS
  19362. fi
  19363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19364. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19365. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19366. have_xss_lib=yes
  19367. fi
  19368. if test x$have_xss_lib = xyes ; then
  19369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19370. definitely_enable_video_x11_scrnsaver=yes
  19371. fi
  19372. fi
  19373. fi
  19374. fi
  19375. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19376. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19377. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19378. fi
  19379. # Check whether --enable-video-x11-xshape was given.
  19380. if test "${enable_video_x11_xshape+set}" = set; then :
  19381. enableval=$enable_video_x11_xshape;
  19382. else
  19383. enable_video_x11_xshape=yes
  19384. fi
  19385. if test x$enable_video_x11_xshape = xyes; then
  19386. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19387. "
  19388. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19389. have_shape_h_hdr=yes
  19390. else
  19391. have_shape_h_hdr=no
  19392. fi
  19393. if test x$have_shape_h_hdr = xyes; then
  19394. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19395. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19396. fi
  19397. fi
  19398. fi
  19399. fi
  19400. if test x$have_x != xyes; then
  19401. # Prevent Mesa from including X11 headers
  19402. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19403. fi
  19404. }
  19405. CheckVivanteVideo()
  19406. {
  19407. # Check whether --enable-video-vivante was given.
  19408. if test "${enable_video_vivante+set}" = set; then :
  19409. enableval=$enable_video_vivante;
  19410. else
  19411. enable_video_vivante=yes
  19412. fi
  19413. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19415. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19416. have_vivante_vdk=no
  19417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19418. /* end confdefs.h. */
  19419. #define LINUX
  19420. #define EGL_API_FB
  19421. #include <gc_vdk.h>
  19422. int
  19423. main ()
  19424. {
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_compile "$LINENO"; then :
  19430. have_vivante_vdk=yes
  19431. fi
  19432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19434. $as_echo "$have_vivante_vdk" >&6; }
  19435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19436. $as_echo_n "checking for Vivante FB API... " >&6; }
  19437. have_vivante_egl=no
  19438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19439. /* end confdefs.h. */
  19440. #define LINUX
  19441. #define EGL_API_FB
  19442. #include <EGL/eglvivante.h>
  19443. int
  19444. main ()
  19445. {
  19446. ;
  19447. return 0;
  19448. }
  19449. _ACEOF
  19450. if ac_fn_c_try_compile "$LINENO"; then :
  19451. have_vivante_egl=yes
  19452. fi
  19453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19455. $as_echo "$have_vivante_egl" >&6; }
  19456. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19457. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19458. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19459. if test x$have_vivante_vdk = xyes; then
  19460. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19462. fi
  19463. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19464. SUMMARY_video="${SUMMARY_video} vivante"
  19465. have_video=yes
  19466. fi
  19467. fi
  19468. }
  19469. CheckHaikuVideo()
  19470. {
  19471. if test x$enable_video = xyes; then
  19472. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19473. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19474. have_video=yes
  19475. SUMMARY_video="${SUMMARY_video} haiku"
  19476. fi
  19477. }
  19478. CheckCOCOA()
  19479. {
  19480. # Check whether --enable-video-cocoa was given.
  19481. if test "${enable_video_cocoa+set}" = set; then :
  19482. enableval=$enable_video_cocoa;
  19483. else
  19484. enable_video_cocoa=yes
  19485. fi
  19486. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19487. save_CFLAGS="$CFLAGS"
  19488. CFLAGS="$CFLAGS -x objective-c"
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19490. $as_echo_n "checking for Cocoa framework... " >&6; }
  19491. have_cocoa=no
  19492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19493. /* end confdefs.h. */
  19494. #import <Cocoa/Cocoa.h>
  19495. int
  19496. main ()
  19497. {
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. if ac_fn_c_try_compile "$LINENO"; then :
  19503. have_cocoa=yes
  19504. fi
  19505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19507. $as_echo "$have_cocoa" >&6; }
  19508. CFLAGS="$save_CFLAGS"
  19509. if test x$have_cocoa = xyes; then
  19510. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19511. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19512. SUMMARY_video="${SUMMARY_video} cocoa"
  19513. have_video=yes
  19514. fi
  19515. fi
  19516. }
  19517. CheckMETAL()
  19518. {
  19519. # Check whether --enable-video-metal was given.
  19520. if test "${enable_video_metal+set}" = set; then :
  19521. enableval=$enable_video_metal;
  19522. else
  19523. enable_video_metal=yes
  19524. fi
  19525. # Check whether --enable-render-metal was given.
  19526. if test "${enable_render_metal+set}" = set; then :
  19527. enableval=$enable_render_metal;
  19528. else
  19529. enable_render_metal=yes
  19530. fi
  19531. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19532. save_CFLAGS="$CFLAGS"
  19533. CFLAGS="$CFLAGS -x objective-c"
  19534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19535. $as_echo_n "checking for Metal framework... " >&6; }
  19536. have_metal=no
  19537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19538. /* end confdefs.h. */
  19539. #import <Cocoa/Cocoa.h>
  19540. #import <Metal/Metal.h>
  19541. #import <QuartzCore/CAMetalLayer.h>
  19542. #if TARGET_CPU_X86
  19543. #error Metal doesn't work on this configuration
  19544. #endif
  19545. int
  19546. main ()
  19547. {
  19548. ;
  19549. return 0;
  19550. }
  19551. _ACEOF
  19552. if ac_fn_c_try_compile "$LINENO"; then :
  19553. have_metal=yes
  19554. fi
  19555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19556. CFLAGS="$save_CFLAGS"
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19558. $as_echo "$have_metal" >&6; }
  19559. if test x$have_metal = xyes; then
  19560. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19561. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19562. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19563. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19564. fi
  19565. SUMMARY_video="${SUMMARY_video} metal"
  19566. else
  19567. enable_video_metal=no
  19568. enable_render_metal=no
  19569. fi
  19570. fi
  19571. }
  19572. CheckDirectFB()
  19573. {
  19574. # Check whether --enable-video-directfb was given.
  19575. if test "${enable_video_directfb+set}" = set; then :
  19576. enableval=$enable_video_directfb;
  19577. else
  19578. enable_video_directfb=no
  19579. fi
  19580. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19581. pkg_failed=no
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19583. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19584. if test -n "$DIRECTFB_CFLAGS"; then
  19585. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19586. elif test -n "$PKG_CONFIG"; then
  19587. if test -n "$PKG_CONFIG" && \
  19588. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19589. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19590. ac_status=$?
  19591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19592. test $ac_status = 0; }; then
  19593. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19594. test "x$?" != "x0" && pkg_failed=yes
  19595. else
  19596. pkg_failed=yes
  19597. fi
  19598. else
  19599. pkg_failed=untried
  19600. fi
  19601. if test -n "$DIRECTFB_LIBS"; then
  19602. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19603. elif test -n "$PKG_CONFIG"; then
  19604. if test -n "$PKG_CONFIG" && \
  19605. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19606. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19607. ac_status=$?
  19608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19609. test $ac_status = 0; }; then
  19610. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19611. test "x$?" != "x0" && pkg_failed=yes
  19612. else
  19613. pkg_failed=yes
  19614. fi
  19615. else
  19616. pkg_failed=untried
  19617. fi
  19618. if test $pkg_failed = yes; then
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19620. $as_echo "no" >&6; }
  19621. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19622. _pkg_short_errors_supported=yes
  19623. else
  19624. _pkg_short_errors_supported=no
  19625. fi
  19626. if test $_pkg_short_errors_supported = yes; then
  19627. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19628. else
  19629. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19630. fi
  19631. # Put the nasty error message in config.log where it belongs
  19632. echo "$DIRECTFB_PKG_ERRORS" >&5
  19633. video_directfb=no
  19634. elif test $pkg_failed = untried; then
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19636. $as_echo "no" >&6; }
  19637. video_directfb=no
  19638. else
  19639. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19640. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19642. $as_echo "yes" >&6; }
  19643. video_directfb=yes
  19644. fi
  19645. if test x$video_directfb = xyes; then
  19646. # SuSE 11.1 installs directfb-config without directfb-devel
  19647. save_CPPFLAGS="$CPPFLAGS"
  19648. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19649. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19650. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19651. have_directfb_hdr=yes
  19652. else
  19653. have_directfb_hdr=no
  19654. fi
  19655. CPPFLAGS="$save_CPPFLAGS"
  19656. video_directfb=$have_directfb_hdr
  19657. fi
  19658. if test x$video_directfb = xyes; then
  19659. # Check whether --enable-directfb-shared was given.
  19660. if test "${enable_directfb_shared+set}" = set; then :
  19661. enableval=$enable_directfb_shared;
  19662. else
  19663. enable_directfb_shared=yes
  19664. fi
  19665. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19666. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19667. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19668. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19669. directfb_shared=no
  19670. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19671. if test x$have_loadso != xyes && \
  19672. test x$enable_directfb_shared = xyes; then
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19674. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19675. fi
  19676. if test x$have_loadso = xyes && \
  19677. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19678. directfb_shared=yes
  19679. echo "-- dynamic libdirectfb -> $directfb_lib"
  19680. cat >>confdefs.h <<_ACEOF
  19681. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19682. _ACEOF
  19683. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19684. else
  19685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19686. SUMMARY_video="${SUMMARY_video} directfb"
  19687. fi
  19688. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19689. have_video=yes
  19690. fi
  19691. fi
  19692. }
  19693. CheckKMSDRM()
  19694. {
  19695. # Check whether --enable-video-kmsdrm was given.
  19696. if test "${enable_video_kmsdrm+set}" = set; then :
  19697. enableval=$enable_video_kmsdrm;
  19698. else
  19699. enable_video_kmsdrm=yes
  19700. fi
  19701. if test x$enable_video = xyes && \
  19702. test x$enable_video_kmsdrm = xyes && \
  19703. test x$video_opengl_egl = xyes; then
  19704. video_kmsdrm=no
  19705. pkg_failed=no
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19707. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19708. if test -n "$LIBDRM_CFLAGS"; then
  19709. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19710. elif test -n "$PKG_CONFIG"; then
  19711. if test -n "$PKG_CONFIG" && \
  19712. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19713. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19714. ac_status=$?
  19715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19716. test $ac_status = 0; }; then
  19717. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19718. test "x$?" != "x0" && pkg_failed=yes
  19719. else
  19720. pkg_failed=yes
  19721. fi
  19722. else
  19723. pkg_failed=untried
  19724. fi
  19725. if test -n "$LIBDRM_LIBS"; then
  19726. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19727. elif test -n "$PKG_CONFIG"; then
  19728. if test -n "$PKG_CONFIG" && \
  19729. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19730. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19731. ac_status=$?
  19732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19733. test $ac_status = 0; }; then
  19734. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19735. test "x$?" != "x0" && pkg_failed=yes
  19736. else
  19737. pkg_failed=yes
  19738. fi
  19739. else
  19740. pkg_failed=untried
  19741. fi
  19742. if test $pkg_failed = yes; then
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19744. $as_echo "no" >&6; }
  19745. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19746. _pkg_short_errors_supported=yes
  19747. else
  19748. _pkg_short_errors_supported=no
  19749. fi
  19750. if test $_pkg_short_errors_supported = yes; then
  19751. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19752. else
  19753. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19754. fi
  19755. # Put the nasty error message in config.log where it belongs
  19756. echo "$LIBDRM_PKG_ERRORS" >&5
  19757. libdrm_avail=no
  19758. elif test $pkg_failed = untried; then
  19759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19760. $as_echo "no" >&6; }
  19761. libdrm_avail=no
  19762. else
  19763. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19764. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19766. $as_echo "yes" >&6; }
  19767. libdrm_avail=yes
  19768. fi
  19769. pkg_failed=no
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19771. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19772. if test -n "$LIBGBM_CFLAGS"; then
  19773. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19774. elif test -n "$PKG_CONFIG"; then
  19775. if test -n "$PKG_CONFIG" && \
  19776. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19777. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19778. ac_status=$?
  19779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19780. test $ac_status = 0; }; then
  19781. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19782. test "x$?" != "x0" && pkg_failed=yes
  19783. else
  19784. pkg_failed=yes
  19785. fi
  19786. else
  19787. pkg_failed=untried
  19788. fi
  19789. if test -n "$LIBGBM_LIBS"; then
  19790. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19791. elif test -n "$PKG_CONFIG"; then
  19792. if test -n "$PKG_CONFIG" && \
  19793. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19794. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19795. ac_status=$?
  19796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19797. test $ac_status = 0; }; then
  19798. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19799. test "x$?" != "x0" && pkg_failed=yes
  19800. else
  19801. pkg_failed=yes
  19802. fi
  19803. else
  19804. pkg_failed=untried
  19805. fi
  19806. if test $pkg_failed = yes; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19808. $as_echo "no" >&6; }
  19809. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19810. _pkg_short_errors_supported=yes
  19811. else
  19812. _pkg_short_errors_supported=no
  19813. fi
  19814. if test $_pkg_short_errors_supported = yes; then
  19815. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19816. else
  19817. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19818. fi
  19819. # Put the nasty error message in config.log where it belongs
  19820. echo "$LIBGBM_PKG_ERRORS" >&5
  19821. libgbm_avail=no
  19822. elif test $pkg_failed = untried; then
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19824. $as_echo "no" >&6; }
  19825. libgbm_avail=no
  19826. else
  19827. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19828. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19830. $as_echo "yes" >&6; }
  19831. libgbm_avail=yes
  19832. fi
  19833. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19834. video_kmsdrm=yes
  19835. fi
  19836. if test x$video_kmsdrm = xyes; then
  19837. # Check whether --enable-kmsdrm-shared was given.
  19838. if test "${enable_kmsdrm_shared+set}" = set; then :
  19839. enableval=$enable_kmsdrm_shared;
  19840. else
  19841. enable_kmsdrm_shared=yes
  19842. fi
  19843. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19844. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19845. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19847. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19848. kmsdrm_shared=no
  19849. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19850. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19851. if test x$have_loadso != xyes && \
  19852. test x$enable_kmsdrm_shared = xyes; then
  19853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19854. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19855. fi
  19856. if test x$have_loadso = xyes && \
  19857. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19858. kmsdrm_shared=yes
  19859. cat >>confdefs.h <<_ACEOF
  19860. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19861. _ACEOF
  19862. cat >>confdefs.h <<_ACEOF
  19863. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19864. _ACEOF
  19865. cat >>confdefs.h <<_ACEOF
  19866. #define HAVE_KMSDRM_SHARED "TRUE"
  19867. _ACEOF
  19868. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19869. else
  19870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19871. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19872. fi
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19874. $as_echo "$kmsdrm_shared" >&6; }
  19875. if test x$kmsdrm_shared = xyes; then
  19876. echo "-- dynamic libdrm -> $drm_lib"
  19877. echo "-- dynamic libgbm -> $gbm_lib"
  19878. fi
  19879. have_video=yes
  19880. fi
  19881. fi
  19882. }
  19883. CheckDummyVideo()
  19884. {
  19885. # Check whether --enable-video-dummy was given.
  19886. if test "${enable_video_dummy+set}" = set; then :
  19887. enableval=$enable_video_dummy;
  19888. else
  19889. enable_video_dummy=yes
  19890. fi
  19891. if test x$enable_video_dummy = xyes; then
  19892. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19893. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19894. have_video=yes
  19895. SUMMARY_video="${SUMMARY_video} dummy"
  19896. fi
  19897. }
  19898. CheckOffscreenVideo()
  19899. {
  19900. # Check whether --enable-video-offscreen was given.
  19901. if test "${enable_video_offscreen+set}" = set; then :
  19902. enableval=$enable_video_offscreen;
  19903. else
  19904. enable_video_offscreen=no
  19905. fi
  19906. if test x$enable_video_offscreen = xyes; then
  19907. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19908. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19909. have_video=yes
  19910. SUMMARY_video="${SUMMARY_video} offscreen"
  19911. fi
  19912. }
  19913. CheckQNXVideo()
  19914. {
  19915. if test x$enable_video = xyes; then
  19916. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19917. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19918. have_video=yes
  19919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19920. SUMMARY_video="${SUMMARY_video} qnx"
  19921. fi
  19922. }
  19923. CheckQNXAudio()
  19924. {
  19925. if test x$enable_audio = xyes; then
  19926. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19927. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19928. have_audio=yes
  19929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19930. SUMMARY_audio="${SUMMARY_audio} qsa"
  19931. fi
  19932. }
  19933. # Check whether --enable-video-opengl was given.
  19934. if test "${enable_video_opengl+set}" = set; then :
  19935. enableval=$enable_video_opengl;
  19936. else
  19937. enable_video_opengl=yes
  19938. fi
  19939. CheckGLX()
  19940. {
  19941. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19943. $as_echo_n "checking for GLX support... " >&6; }
  19944. video_opengl_glx=no
  19945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19946. /* end confdefs.h. */
  19947. #include <GL/glx.h>
  19948. int
  19949. main ()
  19950. {
  19951. ;
  19952. return 0;
  19953. }
  19954. _ACEOF
  19955. if ac_fn_c_try_compile "$LINENO"; then :
  19956. video_opengl_glx=yes
  19957. fi
  19958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19960. $as_echo "$video_opengl_glx" >&6; }
  19961. if test x$video_opengl_glx = xyes; then
  19962. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19963. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19964. fi
  19965. fi
  19966. }
  19967. # Check whether --enable-video-opengles was given.
  19968. if test "${enable_video_opengles+set}" = set; then :
  19969. enableval=$enable_video_opengles;
  19970. else
  19971. enable_video_opengles=yes
  19972. fi
  19973. # Check whether --enable-video-opengles1 was given.
  19974. if test "${enable_video_opengles1+set}" = set; then :
  19975. enableval=$enable_video_opengles1;
  19976. else
  19977. enable_video_opengles1=yes
  19978. fi
  19979. # Check whether --enable-video-opengles2 was given.
  19980. if test "${enable_video_opengles2+set}" = set; then :
  19981. enableval=$enable_video_opengles2;
  19982. else
  19983. enable_video_opengles2=yes
  19984. fi
  19985. CheckEGL()
  19986. {
  19987. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19989. $as_echo_n "checking for EGL support... " >&6; }
  19990. video_opengl_egl=no
  19991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19992. /* end confdefs.h. */
  19993. #define LINUX
  19994. #define EGL_API_FB
  19995. #define MESA_EGL_NO_X11_HEADERS
  19996. #define EGL_NO_X11
  19997. #include <EGL/egl.h>
  19998. #include <EGL/eglext.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_egl=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_egl" >&5
  20011. $as_echo "$video_opengl_egl" >&6; }
  20012. if test x$video_opengl_egl = xyes; then
  20013. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20014. fi
  20015. fi
  20016. }
  20017. CheckOpenGL()
  20018. {
  20019. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20021. $as_echo_n "checking for OpenGL headers... " >&6; }
  20022. video_opengl=no
  20023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20024. /* end confdefs.h. */
  20025. #include <GL/gl.h>
  20026. #include <GL/glext.h>
  20027. int
  20028. main ()
  20029. {
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_compile "$LINENO"; then :
  20035. video_opengl=yes
  20036. fi
  20037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20039. $as_echo "$video_opengl" >&6; }
  20040. if test x$video_opengl = xyes; then
  20041. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20042. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20043. SUMMARY_video="${SUMMARY_video} opengl"
  20044. fi
  20045. fi
  20046. }
  20047. CheckOpenGLES()
  20048. {
  20049. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20050. if test x$enable_video_opengles1 = xyes; then
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20052. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20053. video_opengles_v1=no
  20054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20055. /* end confdefs.h. */
  20056. #include <GLES/gl.h>
  20057. #include <GLES/glext.h>
  20058. int
  20059. main ()
  20060. {
  20061. ;
  20062. return 0;
  20063. }
  20064. _ACEOF
  20065. if ac_fn_c_try_compile "$LINENO"; then :
  20066. video_opengles_v1=yes
  20067. fi
  20068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20070. $as_echo "$video_opengles_v1" >&6; }
  20071. if test x$video_opengles_v1 = xyes; then
  20072. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20073. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20074. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20075. fi
  20076. fi
  20077. if test x$enable_video_opengles2 = xyes; then
  20078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20079. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20080. video_opengles_v2=no
  20081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20082. /* end confdefs.h. */
  20083. #include <GLES2/gl2.h>
  20084. #include <GLES2/gl2ext.h>
  20085. int
  20086. main ()
  20087. {
  20088. ;
  20089. return 0;
  20090. }
  20091. _ACEOF
  20092. if ac_fn_c_try_compile "$LINENO"; then :
  20093. video_opengles_v2=yes
  20094. fi
  20095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20097. $as_echo "$video_opengles_v2" >&6; }
  20098. if test x$video_opengles_v2 = xyes; then
  20099. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20100. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20101. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20102. fi
  20103. fi
  20104. fi
  20105. }
  20106. CheckWINDOWSGL()
  20107. {
  20108. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20109. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20110. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20111. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20112. SUMMARY_video="${SUMMARY_video} opengl"
  20113. fi
  20114. }
  20115. CheckWINDOWSGLES()
  20116. {
  20117. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20119. $as_echo_n "checking for EGL support... " >&6; }
  20120. video_opengl_egl=no
  20121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20122. /* end confdefs.h. */
  20123. #include <EGL/egl.h>
  20124. int
  20125. main ()
  20126. {
  20127. ;
  20128. return 0;
  20129. }
  20130. _ACEOF
  20131. if ac_fn_c_try_compile "$LINENO"; then :
  20132. video_opengl_egl=yes
  20133. fi
  20134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20136. $as_echo "$video_opengl_egl" >&6; }
  20137. if test x$video_opengl_egl = xyes; then
  20138. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20139. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20140. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20141. fi
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20143. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20144. video_opengles_v2=no
  20145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20146. /* end confdefs.h. */
  20147. #include <GLES2/gl2.h>
  20148. #include <GLES2/gl2ext.h>
  20149. int
  20150. main ()
  20151. {
  20152. ;
  20153. return 0;
  20154. }
  20155. _ACEOF
  20156. if ac_fn_c_try_compile "$LINENO"; then :
  20157. video_opengles_v2=yes
  20158. fi
  20159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20161. $as_echo "$video_opengles_v2" >&6; }
  20162. if test x$video_opengles_v2 = xyes; then
  20163. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20164. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20165. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20166. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20167. fi
  20168. fi
  20169. }
  20170. CheckHaikuGL()
  20171. {
  20172. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20173. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20174. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20175. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20177. SUMMARY_video="${SUMMARY_video} opengl"
  20178. fi
  20179. }
  20180. CheckMacGL()
  20181. {
  20182. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20183. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20184. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20185. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20186. SUMMARY_video="${SUMMARY_video} opengl"
  20187. fi
  20188. }
  20189. CheckMacGLES()
  20190. {
  20191. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20192. video_opengl_egl=yes
  20193. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20194. video_opengles_v2=yes
  20195. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20196. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20197. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20198. fi
  20199. }
  20200. CheckEmscriptenGLES()
  20201. {
  20202. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20204. $as_echo_n "checking for EGL support... " >&6; }
  20205. video_opengl_egl=no
  20206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20207. /* end confdefs.h. */
  20208. #include <EGL/egl.h>
  20209. int
  20210. main ()
  20211. {
  20212. ;
  20213. return 0;
  20214. }
  20215. _ACEOF
  20216. if ac_fn_c_try_compile "$LINENO"; then :
  20217. video_opengl_egl=yes
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20221. $as_echo "$video_opengl_egl" >&6; }
  20222. if test x$video_opengl_egl = xyes; then
  20223. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20224. fi
  20225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20226. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20227. video_opengles_v2=no
  20228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20229. /* end confdefs.h. */
  20230. #include <GLES2/gl2.h>
  20231. #include <GLES2/gl2ext.h>
  20232. int
  20233. main ()
  20234. {
  20235. ;
  20236. return 0;
  20237. }
  20238. _ACEOF
  20239. if ac_fn_c_try_compile "$LINENO"; then :
  20240. video_opengles_v2=yes
  20241. fi
  20242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20244. $as_echo "$video_opengles_v2" >&6; }
  20245. if test x$video_opengles_v2 = xyes; then
  20246. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20247. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20248. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20249. fi
  20250. fi
  20251. }
  20252. # Check whether --enable-video-vulkan was given.
  20253. if test "${enable_video_vulkan+set}" = set; then :
  20254. enableval=$enable_video_vulkan;
  20255. else
  20256. enable_video_vulkan=yes
  20257. fi
  20258. CheckVulkan()
  20259. {
  20260. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20261. case "$host" in
  20262. *-*-android*)
  20263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20264. /* end confdefs.h. */
  20265. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20266. #error Vulkan doesn't work on this configuration
  20267. #endif
  20268. int
  20269. main ()
  20270. {
  20271. ;
  20272. return 0;
  20273. }
  20274. _ACEOF
  20275. if ac_fn_c_try_compile "$LINENO"; then :
  20276. else
  20277. enable_video_vulkan=no
  20278. fi
  20279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20280. ;;
  20281. *-*-darwin*)
  20282. save_CFLAGS="$CFLAGS"
  20283. CFLAGS="$CFLAGS -x objective-c"
  20284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20285. /* end confdefs.h. */
  20286. #include <Cocoa/Cocoa.h>
  20287. #include <Metal/Metal.h>
  20288. #include <QuartzCore/CAMetalLayer.h>
  20289. #if TARGET_CPU_X86
  20290. #error Vulkan doesn't work on this configuration
  20291. #endif
  20292. int
  20293. main ()
  20294. {
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_compile "$LINENO"; then :
  20300. else
  20301. enable_video_vulkan=no
  20302. fi
  20303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20304. CFLAGS="$save_CFLAGS"
  20305. ;;
  20306. *)
  20307. ;;
  20308. esac
  20309. if test x$enable_video_vulkan = xno; then
  20310. # For reasons I am totally unable to see, I get an undefined macro error if
  20311. # I put this in the AC_TRY_COMPILE.
  20312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20313. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20314. fi
  20315. fi
  20316. if test x$have_loadso != xyes; then
  20317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20318. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20319. enable_video_vulkan=no
  20320. fi
  20321. if test x$enable_video_vulkan = xyes; then
  20322. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20323. SUMMARY_video="${SUMMARY_video} vulkan"
  20324. fi
  20325. }
  20326. CheckInputEvents()
  20327. {
  20328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20329. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20330. use_input_events=no
  20331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20332. /* end confdefs.h. */
  20333. #include <linux/input.h>
  20334. int
  20335. main ()
  20336. {
  20337. #ifndef EVIOCGNAME
  20338. #error EVIOCGNAME() ioctl not available
  20339. #endif
  20340. ;
  20341. return 0;
  20342. }
  20343. _ACEOF
  20344. if ac_fn_c_try_compile "$LINENO"; then :
  20345. use_input_events=yes
  20346. fi
  20347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20349. $as_echo "$use_input_events" >&6; }
  20350. if test x$use_input_events = xyes; then
  20351. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20352. SUMMARY_input="${SUMMARY_input} linuxev"
  20353. fi
  20354. }
  20355. CheckInputKD()
  20356. {
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20358. $as_echo_n "checking for Linux kd.h... " >&6; }
  20359. use_input_kd=no
  20360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20361. /* end confdefs.h. */
  20362. #include <linux/kd.h>
  20363. #include <linux/keyboard.h>
  20364. int
  20365. main ()
  20366. {
  20367. struct kbentry kbe;
  20368. kbe.kb_table = KG_CTRL;
  20369. ioctl(0, KDGKBENT, &kbe);
  20370. ;
  20371. return 0;
  20372. }
  20373. _ACEOF
  20374. if ac_fn_c_try_compile "$LINENO"; then :
  20375. use_input_kd=yes
  20376. fi
  20377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20379. $as_echo "$use_input_kd" >&6; }
  20380. if test x$use_input_kd = xyes; then
  20381. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20382. SUMMARY_input="${SUMMARY_input} linuxkd"
  20383. fi
  20384. }
  20385. CheckInputKBIO()
  20386. {
  20387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20388. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20389. use_input_kbio=no
  20390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20391. /* end confdefs.h. */
  20392. #include <sys/kbio.h>
  20393. #include <sys/ioctl.h>
  20394. int
  20395. main ()
  20396. {
  20397. accentmap_t accTable;
  20398. ioctl(0, KDENABIO, 1);
  20399. ;
  20400. return 0;
  20401. }
  20402. _ACEOF
  20403. if ac_fn_c_try_compile "$LINENO"; then :
  20404. use_input_kbio=yes
  20405. fi
  20406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20408. $as_echo "$use_input_kbio" >&6; }
  20409. if test x$use_input_kbio = xyes; then
  20410. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20411. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20412. fi
  20413. }
  20414. CheckInputWSCONS()
  20415. {
  20416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20417. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20418. use_input_wscons=no
  20419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20420. /* end confdefs.h. */
  20421. #include <sys/time.h>
  20422. #include <dev/wscons/wsconsio.h>
  20423. #include <dev/wscons/wsksymdef.h>
  20424. #include <dev/wscons/wsksymvar.h>
  20425. #include <sys/ioctl.h>
  20426. int
  20427. main ()
  20428. {
  20429. struct wskbd_map_data data;
  20430. ioctl(0, WSKBDIO_GETMAP, &data);
  20431. ;
  20432. return 0;
  20433. }
  20434. _ACEOF
  20435. if ac_fn_c_try_compile "$LINENO"; then :
  20436. use_input_wscons=yes
  20437. fi
  20438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20440. $as_echo "$use_input_wscons" >&6; }
  20441. if test x$use_input_wscons = xyes; then
  20442. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20443. SUMMARY_input="${SUMMARY_input} wscons"
  20444. fi
  20445. }
  20446. CheckLibUDev()
  20447. {
  20448. # Check whether --enable-libudev was given.
  20449. if test "${enable_libudev+set}" = set; then :
  20450. enableval=$enable_libudev;
  20451. else
  20452. enable_libudev=yes
  20453. fi
  20454. if test x$enable_libudev = xyes; then
  20455. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20456. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20457. have_libudev_h_hdr=yes
  20458. else
  20459. have_libudev_h_hdr=no
  20460. fi
  20461. if test x$have_libudev_h_hdr = xyes; then
  20462. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20463. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20464. if test x$udev_lib != x; then
  20465. echo "-- dynamic udev -> $udev_lib"
  20466. cat >>confdefs.h <<_ACEOF
  20467. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20468. _ACEOF
  20469. fi
  20470. fi
  20471. fi
  20472. }
  20473. CheckDBus()
  20474. {
  20475. # Check whether --enable-dbus was given.
  20476. if test "${enable_dbus+set}" = set; then :
  20477. enableval=$enable_dbus;
  20478. else
  20479. enable_dbus=yes
  20480. fi
  20481. if test x$enable_dbus = xyes; then
  20482. pkg_failed=no
  20483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20484. $as_echo_n "checking for dbus-1... " >&6; }
  20485. if test -n "$DBUS_CFLAGS"; then
  20486. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20487. elif test -n "$PKG_CONFIG"; then
  20488. if test -n "$PKG_CONFIG" && \
  20489. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20490. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20491. ac_status=$?
  20492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20493. test $ac_status = 0; }; then
  20494. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20495. test "x$?" != "x0" && pkg_failed=yes
  20496. else
  20497. pkg_failed=yes
  20498. fi
  20499. else
  20500. pkg_failed=untried
  20501. fi
  20502. if test -n "$DBUS_LIBS"; then
  20503. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20504. elif test -n "$PKG_CONFIG"; then
  20505. if test -n "$PKG_CONFIG" && \
  20506. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20507. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20508. ac_status=$?
  20509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20510. test $ac_status = 0; }; then
  20511. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20512. test "x$?" != "x0" && pkg_failed=yes
  20513. else
  20514. pkg_failed=yes
  20515. fi
  20516. else
  20517. pkg_failed=untried
  20518. fi
  20519. if test $pkg_failed = yes; then
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20521. $as_echo "no" >&6; }
  20522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20523. _pkg_short_errors_supported=yes
  20524. else
  20525. _pkg_short_errors_supported=no
  20526. fi
  20527. if test $_pkg_short_errors_supported = yes; then
  20528. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20529. else
  20530. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20531. fi
  20532. # Put the nasty error message in config.log where it belongs
  20533. echo "$DBUS_PKG_ERRORS" >&5
  20534. have_dbus=no
  20535. elif test $pkg_failed = untried; then
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20537. $as_echo "no" >&6; }
  20538. have_dbus=no
  20539. else
  20540. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20541. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20543. $as_echo "yes" >&6; }
  20544. have_dbus=yes
  20545. fi
  20546. save_CPPFLAGS="$CPPFLAGS"
  20547. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20548. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20549. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20550. have_dbus_dbus_h_hdr=yes
  20551. else
  20552. have_dbus_dbus_h_hdr=no
  20553. fi
  20554. CPPFLAGS="$save_CPPFLAGS"
  20555. if test x$have_dbus_dbus_h_hdr = xyes; then
  20556. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20557. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20558. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20559. fi
  20560. fi
  20561. }
  20562. CheckIME()
  20563. {
  20564. # Check whether --enable-ime was given.
  20565. if test "${enable_ime+set}" = set; then :
  20566. enableval=$enable_ime;
  20567. else
  20568. enable_ime=yes
  20569. fi
  20570. if test x$enable_ime = xyes; then
  20571. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20572. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20573. fi
  20574. }
  20575. CheckInotify()
  20576. {
  20577. save_LIBS="$LIBS"
  20578. case "$host" in
  20579. *-*-freebsd*) LIBS="$LIBS -linotify"
  20580. ;;
  20581. esac
  20582. for ac_header in sys/inotify.h
  20583. do :
  20584. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20585. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20586. cat >>confdefs.h <<_ACEOF
  20587. #define HAVE_SYS_INOTIFY_H 1
  20588. _ACEOF
  20589. have_inotify_inotify_h_hdr=yes
  20590. fi
  20591. done
  20592. for ac_func in inotify_init
  20593. do :
  20594. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20595. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20596. cat >>confdefs.h <<_ACEOF
  20597. #define HAVE_INOTIFY_INIT 1
  20598. _ACEOF
  20599. have_inotify=yes
  20600. fi
  20601. done
  20602. for ac_func in inotify_init1
  20603. do :
  20604. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20605. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20606. cat >>confdefs.h <<_ACEOF
  20607. #define HAVE_INOTIFY_INIT1 1
  20608. _ACEOF
  20609. fi
  20610. done
  20611. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20612. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20613. case "$host" in
  20614. *-*-freebsd*)
  20615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20616. ;;
  20617. esac
  20618. fi
  20619. LIBS="$save_LIBS"
  20620. }
  20621. CheckIBus()
  20622. {
  20623. # Check whether --enable-ibus was given.
  20624. if test "${enable_ibus+set}" = set; then :
  20625. enableval=$enable_ibus;
  20626. else
  20627. enable_ibus=yes
  20628. fi
  20629. if test x$enable_ibus = xyes; then
  20630. pkg_failed=no
  20631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20632. $as_echo_n "checking for ibus-1.0... " >&6; }
  20633. if test -n "$IBUS_CFLAGS"; then
  20634. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20635. elif test -n "$PKG_CONFIG"; then
  20636. if test -n "$PKG_CONFIG" && \
  20637. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20638. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20639. ac_status=$?
  20640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20641. test $ac_status = 0; }; then
  20642. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20643. test "x$?" != "x0" && pkg_failed=yes
  20644. else
  20645. pkg_failed=yes
  20646. fi
  20647. else
  20648. pkg_failed=untried
  20649. fi
  20650. if test -n "$IBUS_LIBS"; then
  20651. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20652. elif test -n "$PKG_CONFIG"; then
  20653. if test -n "$PKG_CONFIG" && \
  20654. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20655. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20656. ac_status=$?
  20657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20658. test $ac_status = 0; }; then
  20659. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20660. test "x$?" != "x0" && pkg_failed=yes
  20661. else
  20662. pkg_failed=yes
  20663. fi
  20664. else
  20665. pkg_failed=untried
  20666. fi
  20667. if test $pkg_failed = yes; then
  20668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20669. $as_echo "no" >&6; }
  20670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20671. _pkg_short_errors_supported=yes
  20672. else
  20673. _pkg_short_errors_supported=no
  20674. fi
  20675. if test $_pkg_short_errors_supported = yes; then
  20676. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20677. else
  20678. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20679. fi
  20680. # Put the nasty error message in config.log where it belongs
  20681. echo "$IBUS_PKG_ERRORS" >&5
  20682. have_ibus=no
  20683. elif test $pkg_failed = untried; then
  20684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20685. $as_echo "no" >&6; }
  20686. have_ibus=no
  20687. else
  20688. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20689. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20691. $as_echo "yes" >&6; }
  20692. have_ibus=yes
  20693. fi
  20694. save_CPPFLAGS="$CPPFLAGS"
  20695. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20696. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20697. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20698. have_ibus_ibus_h_hdr=yes
  20699. else
  20700. have_ibus_ibus_h_hdr=no
  20701. fi
  20702. CPPFLAGS="$save_CPPFLAGS"
  20703. if test x$have_ibus_ibus_h_hdr = xyes; then
  20704. if test x$enable_ime != xyes; then
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20706. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20707. have_ibus_ibus_h_hdr=no
  20708. elif test x$enable_dbus != xyes; then
  20709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20710. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20711. have_ibus_ibus_h_hdr=no
  20712. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20714. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20715. have_ibus_ibus_h_hdr=no
  20716. else
  20717. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20718. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20719. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20720. fi
  20721. fi
  20722. fi
  20723. }
  20724. CheckFcitx()
  20725. {
  20726. # Check whether --enable-fcitx was given.
  20727. if test "${enable_fcitx+set}" = set; then :
  20728. enableval=$enable_fcitx;
  20729. else
  20730. enable_fcitx=yes
  20731. fi
  20732. if test x$enable_fcitx = xyes; then
  20733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20734. $as_echo_n "checking for fcitx support... " >&6; }
  20735. have_fcitx=no
  20736. if test x$enable_ime != xyes; then
  20737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20738. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20739. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20741. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20742. else
  20743. have_fcitx=yes
  20744. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20745. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20746. fi
  20747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20748. $as_echo "$have_fcitx" >&6; }
  20749. fi
  20750. }
  20751. CheckJoystickMFI()
  20752. {
  20753. # Check whether --enable-joystick-mfi was given.
  20754. if test "${enable_joystick_mfi+set}" = set; then :
  20755. enableval=$enable_joystick_mfi;
  20756. else
  20757. enable_joystick_mfi=yes
  20758. fi
  20759. if test x$enable_joystick_mfi = xyes; then
  20760. save_CFLAGS="$CFLAGS"
  20761. save_LDFLAGS="$LDFLAGS"
  20762. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20763. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20765. $as_echo_n "checking for GameController framework... " >&6; }
  20766. enable_joystick_mfi=no
  20767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20768. /* end confdefs.h. */
  20769. #include <AvailabilityMacros.h>
  20770. #include <TargetConditionals.h>
  20771. #import <GameController/GameController.h>
  20772. int
  20773. main ()
  20774. {
  20775. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20776. #error GameController framework doesn't work on this configuration
  20777. #endif
  20778. #if TARGET_CPU_X86
  20779. #error GameController framework doesn't work on this configuration
  20780. #endif
  20781. ;
  20782. return 0;
  20783. }
  20784. _ACEOF
  20785. if ac_fn_c_try_link "$LINENO"; then :
  20786. enable_joystick_mfi=yes
  20787. fi
  20788. rm -f core conftest.err conftest.$ac_objext \
  20789. conftest$ac_exeext conftest.$ac_ext
  20790. CFLAGS="$save_CFLAGS"
  20791. LDFLAGS="$save_LDFLAGS"
  20792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20793. $as_echo "$enable_joystick_mfi" >&6; }
  20794. if test x$enable_joystick_mfi = xyes; then
  20795. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20796. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20798. fi
  20799. fi
  20800. }
  20801. CheckPTHREAD()
  20802. {
  20803. case "$host" in
  20804. *-*-emscripten*)
  20805. enable_pthreads_default=no
  20806. ;;
  20807. *)
  20808. enable_pthreads_default=yes
  20809. ;;
  20810. esac
  20811. # Check whether --enable-pthreads was given.
  20812. if test "${enable_pthreads+set}" = set; then :
  20813. enableval=$enable_pthreads;
  20814. else
  20815. enable_pthreads=maybe
  20816. fi
  20817. # Check whether --enable-pthread-sem was given.
  20818. if test "${enable_pthread_sem+set}" = set; then :
  20819. enableval=$enable_pthread_sem;
  20820. else
  20821. enable_pthread_sem=maybe
  20822. fi
  20823. if test x$enable_pthreads = xmaybe; then
  20824. enable_pthreads=$enable_pthreads_default
  20825. fi
  20826. if test x$enable_pthread_sem = xmaybe; then
  20827. enable_pthread_sem=$enable_pthreads
  20828. fi
  20829. case "$host" in
  20830. *-*-android*)
  20831. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20832. pthread_lib=""
  20833. ;;
  20834. *-*-linux*|*-*-uclinux*)
  20835. pthread_cflags="-D_REENTRANT"
  20836. pthread_lib="-lpthread"
  20837. ;;
  20838. *-*-bsdi*)
  20839. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20840. pthread_lib=""
  20841. ;;
  20842. *-*-darwin*)
  20843. pthread_cflags="-D_THREAD_SAFE"
  20844. # causes Carbon.p complaints?
  20845. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20846. ;;
  20847. *-*-freebsd*|*-*-dragonfly*)
  20848. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20849. pthread_lib="-pthread"
  20850. ;;
  20851. *-*-netbsd*)
  20852. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20853. pthread_lib="-lpthread"
  20854. ;;
  20855. *-*-openbsd*)
  20856. pthread_cflags="-D_REENTRANT"
  20857. pthread_lib="-pthread"
  20858. ;;
  20859. *-*-solaris2.9)
  20860. # From Solaris 9+, posix4's preferred name is rt.
  20861. pthread_cflags="-D_REENTRANT"
  20862. pthread_lib="-lpthread -lrt"
  20863. ;;
  20864. *-*-solaris2.10)
  20865. # Solaris 10+ merged pthread into libc.
  20866. pthread_cflags="-D_REENTRANT"
  20867. pthread_lib="-lrt"
  20868. ;;
  20869. *-*-solaris*)
  20870. # Solaris 11+ merged rt into libc.
  20871. pthread_cflags="-D_REENTRANT"
  20872. pthread_lib=""
  20873. ;;
  20874. *-*-sysv5*)
  20875. pthread_cflags="-D_REENTRANT -Kthread"
  20876. pthread_lib=""
  20877. ;;
  20878. *-*-aix*)
  20879. pthread_cflags="-D_REENTRANT -mthreads"
  20880. pthread_lib="-lpthread"
  20881. ;;
  20882. *-*-hpux11*)
  20883. pthread_cflags="-D_REENTRANT"
  20884. pthread_lib="-L/usr/lib -lpthread"
  20885. ;;
  20886. *-*-haiku*)
  20887. pthread_cflags="-D_REENTRANT"
  20888. pthread_lib=""
  20889. ;;
  20890. *-*-nto*)
  20891. pthread_cflags="-D_REENTRANT"
  20892. pthread_lib=""
  20893. ;;
  20894. *-*-emscripten*)
  20895. pthread_cflags="-D_REENTRANT -pthread"
  20896. pthread_lib="-pthread"
  20897. ;;
  20898. *)
  20899. pthread_cflags="-D_REENTRANT"
  20900. pthread_lib="-lpthread"
  20901. ;;
  20902. esac
  20903. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20904. # Save the original compiler flags and libraries
  20905. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20906. # Add the pthread compiler flags and libraries
  20907. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20908. # Check to see if we have pthread support on this system
  20909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20910. $as_echo_n "checking for pthreads... " >&6; }
  20911. use_pthreads=no
  20912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20913. /* end confdefs.h. */
  20914. #include <pthread.h>
  20915. int
  20916. main ()
  20917. {
  20918. pthread_attr_t type;
  20919. pthread_attr_init(&type);
  20920. ;
  20921. return 0;
  20922. }
  20923. _ACEOF
  20924. if ac_fn_c_try_link "$LINENO"; then :
  20925. use_pthreads=yes
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20930. $as_echo "$use_pthreads" >&6; }
  20931. # Restore the compiler flags and libraries
  20932. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20933. # Do futher testing if we have pthread support...
  20934. if test x$use_pthreads = xyes; then
  20935. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20936. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20938. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20939. # Save the original compiler flags and libraries
  20940. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20941. # Add the pthread compiler flags and libraries
  20942. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20943. # Check to see if recursive mutexes are available
  20944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20945. $as_echo_n "checking for recursive mutexes... " >&6; }
  20946. has_recursive_mutexes=no
  20947. if test x$has_recursive_mutexes = xno; then
  20948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20949. /* end confdefs.h. */
  20950. #define _GNU_SOURCE 1
  20951. #include <pthread.h>
  20952. int
  20953. main ()
  20954. {
  20955. pthread_mutexattr_t attr;
  20956. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_link "$LINENO"; then :
  20962. has_recursive_mutexes=yes
  20963. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20964. fi
  20965. rm -f core conftest.err conftest.$ac_objext \
  20966. conftest$ac_exeext conftest.$ac_ext
  20967. fi
  20968. if test x$has_recursive_mutexes = xno; then
  20969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20970. /* end confdefs.h. */
  20971. #define _GNU_SOURCE 1
  20972. #include <pthread.h>
  20973. int
  20974. main ()
  20975. {
  20976. pthread_mutexattr_t attr;
  20977. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_link "$LINENO"; then :
  20983. has_recursive_mutexes=yes
  20984. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20985. fi
  20986. rm -f core conftest.err conftest.$ac_objext \
  20987. conftest$ac_exeext conftest.$ac_ext
  20988. fi
  20989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20990. $as_echo "$has_recursive_mutexes" >&6; }
  20991. # Check to see if pthread semaphore support is missing
  20992. if test x$enable_pthread_sem = xyes; then
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20994. $as_echo_n "checking for pthread semaphores... " >&6; }
  20995. have_pthread_sem=no
  20996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20997. /* end confdefs.h. */
  20998. #include <pthread.h>
  20999. #include <semaphore.h>
  21000. int
  21001. main ()
  21002. {
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. if ac_fn_c_try_compile "$LINENO"; then :
  21008. have_pthread_sem=yes
  21009. fi
  21010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21012. $as_echo "$have_pthread_sem" >&6; }
  21013. fi
  21014. if test x$have_pthread_sem = xyes; then
  21015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21016. $as_echo_n "checking for sem_timedwait... " >&6; }
  21017. have_sem_timedwait=no
  21018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21019. /* end confdefs.h. */
  21020. #include <pthread.h>
  21021. #include <semaphore.h>
  21022. int
  21023. main ()
  21024. {
  21025. sem_timedwait(NULL, NULL);
  21026. ;
  21027. return 0;
  21028. }
  21029. _ACEOF
  21030. if ac_fn_c_try_link "$LINENO"; then :
  21031. have_sem_timedwait=yes
  21032. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21033. fi
  21034. rm -f core conftest.err conftest.$ac_objext \
  21035. conftest$ac_exeext conftest.$ac_ext
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21037. $as_echo "$have_sem_timedwait" >&6; }
  21038. fi
  21039. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21040. "
  21041. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21042. have_pthread_np_h=yes
  21043. else
  21044. have_pthread_np_h=no
  21045. fi
  21046. if test x$have_pthread_np_h = xyes; then
  21047. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21048. fi
  21049. # Check to see if pthread naming is available
  21050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21051. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21053. /* end confdefs.h. */
  21054. /* Override any GCC internal prototype to avoid an error.
  21055. Use char because int might match the return type of a GCC
  21056. builtin and then its argument prototype would still apply. */
  21057. #ifdef __cplusplus
  21058. extern "C"
  21059. #endif
  21060. char pthread_setname_np ();
  21061. int
  21062. main ()
  21063. {
  21064. return pthread_setname_np ();
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. if ac_fn_c_try_link "$LINENO"; then :
  21070. has_pthread_setname_np=yes
  21071. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21072. else
  21073. has_pthread_setname_np=no
  21074. fi
  21075. rm -f core conftest.err conftest.$ac_objext \
  21076. conftest$ac_exeext conftest.$ac_ext
  21077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21078. $as_echo "$has_pthread_setname_np" >&6; }
  21079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21080. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21082. /* end confdefs.h. */
  21083. /* Override any GCC internal prototype to avoid an error.
  21084. Use char because int might match the return type of a GCC
  21085. builtin and then its argument prototype would still apply. */
  21086. #ifdef __cplusplus
  21087. extern "C"
  21088. #endif
  21089. char pthread_set_name_np ();
  21090. int
  21091. main ()
  21092. {
  21093. return pthread_set_name_np ();
  21094. ;
  21095. return 0;
  21096. }
  21097. _ACEOF
  21098. if ac_fn_c_try_link "$LINENO"; then :
  21099. has_pthread_set_name_np=yes
  21100. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21101. else
  21102. has_pthread_set_name_np=no
  21103. fi
  21104. rm -f core conftest.err conftest.$ac_objext \
  21105. conftest$ac_exeext conftest.$ac_ext
  21106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21107. $as_echo "$has_pthread_set_name_np" >&6; }
  21108. # Restore the compiler flags and libraries
  21109. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21110. # Basic thread creation functions
  21111. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21112. # Semaphores
  21113. # We can fake these with mutexes and condition variables if necessary
  21114. if test x$have_pthread_sem = xyes; then
  21115. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21116. else
  21117. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21118. fi
  21119. # Mutexes
  21120. # We can fake these with semaphores if necessary
  21121. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21122. # Condition variables
  21123. # We can fake these with semaphores and mutexes if necessary
  21124. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21125. # Thread local storage
  21126. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21127. have_threads=yes
  21128. fi
  21129. fi
  21130. }
  21131. CheckWINDOWS()
  21132. {
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21134. $as_echo_n "checking Windows compiler... " >&6; }
  21135. have_win32_gcc=no
  21136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21137. /* end confdefs.h. */
  21138. #include <windows.h>
  21139. int
  21140. main ()
  21141. {
  21142. ;
  21143. return 0;
  21144. }
  21145. _ACEOF
  21146. if ac_fn_c_try_compile "$LINENO"; then :
  21147. have_win32_gcc=yes
  21148. fi
  21149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21151. $as_echo "$have_win32_gcc" >&6; }
  21152. if test x$have_win32_gcc != xyes; then
  21153. as_fn_error $? "
  21154. *** Your compiler ($CC) does not produce Windows executables!
  21155. " "$LINENO" 5
  21156. fi
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21158. $as_echo_n "checking Windows CE... " >&6; }
  21159. have_wince=no
  21160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21161. /* end confdefs.h. */
  21162. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21163. #error This is not Windows CE
  21164. #endif
  21165. int
  21166. main ()
  21167. {
  21168. ;
  21169. return 0;
  21170. }
  21171. _ACEOF
  21172. if ac_fn_c_try_compile "$LINENO"; then :
  21173. have_wince=yes
  21174. as_fn_error $? "
  21175. *** Sorry, Windows CE is no longer supported.
  21176. " "$LINENO" 5
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21180. $as_echo "$have_wince" >&6; }
  21181. # This fixes Windows stack alignment with newer GCC
  21182. CheckStackBoundary
  21183. # headers needed elsewhere
  21184. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21185. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21186. have_tpcshrd_h=yes
  21187. fi
  21188. if test x$have_tpcshrd_h = xyes; then
  21189. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21190. fi
  21191. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21192. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21193. have_roapi_h=yes
  21194. fi
  21195. if test x$have_roapi_h = xyes; then
  21196. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21197. fi
  21198. }
  21199. CheckOS2()
  21200. {
  21201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21202. $as_echo_n "checking OS/2 compiler... " >&6; }
  21203. have_os2_gcc=no
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. #include <os2.h>
  21207. int
  21208. main ()
  21209. {
  21210. ;
  21211. return 0;
  21212. }
  21213. _ACEOF
  21214. if ac_fn_c_try_compile "$LINENO"; then :
  21215. have_os2_gcc=yes
  21216. fi
  21217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21219. $as_echo "$have_os2_gcc" >&6; }
  21220. if test x$have_os2_gcc != xyes; then
  21221. as_fn_error $? "
  21222. *** Your compiler ($CC) does not produce OS/2 executables!
  21223. " "$LINENO" 5
  21224. fi
  21225. }
  21226. CheckDIRECTX()
  21227. {
  21228. # Check whether --enable-directx was given.
  21229. if test "${enable_directx+set}" = set; then :
  21230. enableval=$enable_directx;
  21231. else
  21232. enable_directx=yes
  21233. fi
  21234. if test x$enable_directx = xyes; then
  21235. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21236. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21237. have_d3d=yes
  21238. fi
  21239. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21240. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21241. have_d3d11=yes
  21242. fi
  21243. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21244. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21245. have_ddraw=yes
  21246. fi
  21247. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21248. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21249. have_dsound=yes
  21250. fi
  21251. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21252. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21253. have_dinput=yes
  21254. fi
  21255. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21256. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21257. have_dxgi=yes
  21258. fi
  21259. if test x$have_ddraw = xyes; then
  21260. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21261. fi
  21262. if test x$have_dinput = xyes; then
  21263. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21264. fi
  21265. if test x$have_dsound = xyes; then
  21266. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21267. fi
  21268. if test x$have_dxgi = xyes; then
  21269. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21270. fi
  21271. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21272. # FIXME: ...so force it off for now.
  21273. case "$host" in
  21274. *-*-cygwin*)
  21275. have_dinput=false
  21276. ;;
  21277. esac
  21278. fi
  21279. # Check whether --enable-xinput was given.
  21280. if test "${enable_xinput+set}" = set; then :
  21281. enableval=$enable_xinput;
  21282. else
  21283. enable_xinput=yes
  21284. fi
  21285. if test x$enable_xinput = xyes; then
  21286. have_xinput_gamepadex=no
  21287. have_xinput_stateex=no
  21288. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21289. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21290. have_xinput=yes
  21291. fi
  21292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21293. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21295. /* end confdefs.h. */
  21296. #include <windows.h>
  21297. #include <xinput.h>
  21298. XINPUT_GAMEPAD_EX x1;
  21299. int
  21300. main ()
  21301. {
  21302. ;
  21303. return 0;
  21304. }
  21305. _ACEOF
  21306. if ac_fn_c_try_compile "$LINENO"; then :
  21307. have_xinput_gamepadex=yes
  21308. fi
  21309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21311. $as_echo "$have_xinput_gamepadex" >&6; }
  21312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21313. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. #include <windows.h>
  21317. #include <xinput.h>
  21318. XINPUT_STATE_EX s1;
  21319. int
  21320. main ()
  21321. {
  21322. ;
  21323. return 0;
  21324. }
  21325. _ACEOF
  21326. if ac_fn_c_try_compile "$LINENO"; then :
  21327. have_xinput_stateex=yes
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21331. $as_echo "$have_xinput_stateex" >&6; }
  21332. if test x$have_xinput = xyes; then
  21333. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21334. fi
  21335. if test x$have_xinput_gamepadex = xyes; then
  21336. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21337. fi
  21338. if test x$have_xinput_stateex = xyes; then
  21339. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21340. fi
  21341. fi
  21342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21343. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21345. /* end confdefs.h. */
  21346. #define COBJMACROS
  21347. #include <windows.gaming.input.h>
  21348. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21349. int
  21350. main ()
  21351. {
  21352. ;
  21353. return 0;
  21354. }
  21355. _ACEOF
  21356. if ac_fn_c_try_compile "$LINENO"; then :
  21357. have_wgi=yes
  21358. else
  21359. have_wgi=no
  21360. fi
  21361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21363. $as_echo "$have_wgi" >&6; }
  21364. if test x$have_wgi = xyes; then
  21365. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21366. fi
  21367. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21368. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21369. have_wasapi=yes
  21370. fi
  21371. if test x$have_wasapi = xyes; then
  21372. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21373. fi
  21374. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21375. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21376. else
  21377. have_wasapi=no
  21378. fi
  21379. if test x$have_wasapi = xyes; then
  21380. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21381. fi
  21382. # Check whether --enable-wasapi was given.
  21383. if test "${enable_wasapi+set}" = set; then :
  21384. enableval=$enable_wasapi;
  21385. else
  21386. enable_wasapi=yes
  21387. fi
  21388. }
  21389. CheckDLOPEN()
  21390. {
  21391. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21392. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21393. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21394. have_dlfcn_h=yes
  21395. else
  21396. have_dlfcn_h=no
  21397. fi
  21398. have_dlopen=no
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21400. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21401. if ${ac_cv_lib_c_dlopen+:} false; then :
  21402. $as_echo_n "(cached) " >&6
  21403. else
  21404. ac_check_lib_save_LIBS=$LIBS
  21405. LIBS="-lc $LIBS"
  21406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21407. /* end confdefs.h. */
  21408. /* Override any GCC internal prototype to avoid an error.
  21409. Use char because int might match the return type of a GCC
  21410. builtin and then its argument prototype would still apply. */
  21411. #ifdef __cplusplus
  21412. extern "C"
  21413. #endif
  21414. char dlopen ();
  21415. int
  21416. main ()
  21417. {
  21418. return dlopen ();
  21419. ;
  21420. return 0;
  21421. }
  21422. _ACEOF
  21423. if ac_fn_c_try_link "$LINENO"; then :
  21424. ac_cv_lib_c_dlopen=yes
  21425. else
  21426. ac_cv_lib_c_dlopen=no
  21427. fi
  21428. rm -f core conftest.err conftest.$ac_objext \
  21429. conftest$ac_exeext conftest.$ac_ext
  21430. LIBS=$ac_check_lib_save_LIBS
  21431. fi
  21432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21433. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21434. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21435. have_dlopen=yes
  21436. else
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21438. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21439. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21440. $as_echo_n "(cached) " >&6
  21441. else
  21442. ac_check_lib_save_LIBS=$LIBS
  21443. LIBS="-ldl $LIBS"
  21444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21445. /* end confdefs.h. */
  21446. /* Override any GCC internal prototype to avoid an error.
  21447. Use char because int might match the return type of a GCC
  21448. builtin and then its argument prototype would still apply. */
  21449. #ifdef __cplusplus
  21450. extern "C"
  21451. #endif
  21452. char dlopen ();
  21453. int
  21454. main ()
  21455. {
  21456. return dlopen ();
  21457. ;
  21458. return 0;
  21459. }
  21460. _ACEOF
  21461. if ac_fn_c_try_link "$LINENO"; then :
  21462. ac_cv_lib_dl_dlopen=yes
  21463. else
  21464. ac_cv_lib_dl_dlopen=no
  21465. fi
  21466. rm -f core conftest.err conftest.$ac_objext \
  21467. conftest$ac_exeext conftest.$ac_ext
  21468. LIBS=$ac_check_lib_save_LIBS
  21469. fi
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21471. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21472. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21473. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21474. fi
  21475. fi
  21476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21477. $as_echo_n "checking for dlopen... " >&6; }
  21478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21479. $as_echo "$have_dlopen" >&6; }
  21480. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21481. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21482. if test x$enable_loadso = xyes; then
  21483. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21484. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21485. have_loadso=yes
  21486. fi
  21487. fi
  21488. }
  21489. CheckO_CLOEXEC()
  21490. {
  21491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21492. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21494. /* end confdefs.h. */
  21495. #include <fcntl.h>
  21496. int flag = O_CLOEXEC;
  21497. int
  21498. main ()
  21499. {
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. if ac_fn_c_try_compile "$LINENO"; then :
  21505. have_o_cloexec=yes
  21506. else
  21507. have_o_cloexec=no
  21508. fi
  21509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21511. $as_echo "$have_o_cloexec" >&6; }
  21512. if test $have_o_cloexec = yes; then
  21513. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21514. fi
  21515. }
  21516. CheckUSBHID()
  21517. {
  21518. case "$host" in
  21519. *-*-*bsd*|*-*-dragonfly*)
  21520. if test x$enable_joystick = xyes; then
  21521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21522. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21523. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21524. $as_echo_n "(cached) " >&6
  21525. else
  21526. ac_check_lib_save_LIBS=$LIBS
  21527. LIBS="-lusbhid $LIBS"
  21528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21529. /* end confdefs.h. */
  21530. /* Override any GCC internal prototype to avoid an error.
  21531. Use char because int might match the return type of a GCC
  21532. builtin and then its argument prototype would still apply. */
  21533. #ifdef __cplusplus
  21534. extern "C"
  21535. #endif
  21536. char hid_init ();
  21537. int
  21538. main ()
  21539. {
  21540. return hid_init ();
  21541. ;
  21542. return 0;
  21543. }
  21544. _ACEOF
  21545. if ac_fn_c_try_link "$LINENO"; then :
  21546. ac_cv_lib_usbhid_hid_init=yes
  21547. else
  21548. ac_cv_lib_usbhid_hid_init=no
  21549. fi
  21550. rm -f core conftest.err conftest.$ac_objext \
  21551. conftest$ac_exeext conftest.$ac_ext
  21552. LIBS=$ac_check_lib_save_LIBS
  21553. fi
  21554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21555. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21556. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21557. have_libusbhid=yes
  21558. fi
  21559. if test x$have_libusbhid = xyes; then
  21560. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21561. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21562. USB_CFLAGS="-DHAVE_USBHID_H"
  21563. fi
  21564. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21565. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21566. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21567. fi
  21568. USB_LIBS="$USB_LIBS -lusbhid"
  21569. else
  21570. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21571. if test "x$ac_cv_header_usb_h" = xyes; then :
  21572. USB_CFLAGS="-DHAVE_USB_H"
  21573. fi
  21574. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21575. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21576. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21577. fi
  21578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21579. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21580. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21581. $as_echo_n "(cached) " >&6
  21582. else
  21583. ac_check_lib_save_LIBS=$LIBS
  21584. LIBS="-lusb $LIBS"
  21585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21586. /* end confdefs.h. */
  21587. /* Override any GCC internal prototype to avoid an error.
  21588. Use char because int might match the return type of a GCC
  21589. builtin and then its argument prototype would still apply. */
  21590. #ifdef __cplusplus
  21591. extern "C"
  21592. #endif
  21593. char hid_init ();
  21594. int
  21595. main ()
  21596. {
  21597. return hid_init ();
  21598. ;
  21599. return 0;
  21600. }
  21601. _ACEOF
  21602. if ac_fn_c_try_link "$LINENO"; then :
  21603. ac_cv_lib_usb_hid_init=yes
  21604. else
  21605. ac_cv_lib_usb_hid_init=no
  21606. fi
  21607. rm -f core conftest.err conftest.$ac_objext \
  21608. conftest$ac_exeext conftest.$ac_ext
  21609. LIBS=$ac_check_lib_save_LIBS
  21610. fi
  21611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21612. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21613. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21614. USB_LIBS="$USB_LIBS -lusb"
  21615. fi
  21616. fi
  21617. save_CFLAGS="$CFLAGS"
  21618. CFLAGS="$CFLAGS $USB_CFLAGS"
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21620. $as_echo_n "checking for usbhid... " >&6; }
  21621. have_usbhid=no
  21622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21623. /* end confdefs.h. */
  21624. #include <sys/types.h>
  21625. #if defined(HAVE_USB_H)
  21626. #include <usb.h>
  21627. #endif
  21628. #ifdef __DragonFly__
  21629. # include <bus/u4b/usb.h>
  21630. # include <bus/u4b/usbhid.h>
  21631. #else
  21632. # include <dev/usb/usb.h>
  21633. # include <dev/usb/usbhid.h>
  21634. #endif
  21635. #if defined(HAVE_USBHID_H)
  21636. #include <usbhid.h>
  21637. #elif defined(HAVE_LIBUSB_H)
  21638. #include <libusb.h>
  21639. #elif defined(HAVE_LIBUSBHID_H)
  21640. #include <libusbhid.h>
  21641. #endif
  21642. int
  21643. main ()
  21644. {
  21645. struct report_desc *repdesc;
  21646. struct usb_ctl_report *repbuf;
  21647. hid_kind_t hidkind;
  21648. ;
  21649. return 0;
  21650. }
  21651. _ACEOF
  21652. if ac_fn_c_try_compile "$LINENO"; then :
  21653. have_usbhid=yes
  21654. fi
  21655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21657. $as_echo "$have_usbhid" >&6; }
  21658. if test x$have_usbhid = xyes; then
  21659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21660. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21661. have_usbhid_ucr_data=no
  21662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21663. /* end confdefs.h. */
  21664. #include <sys/types.h>
  21665. #if defined(HAVE_USB_H)
  21666. #include <usb.h>
  21667. #endif
  21668. #ifdef __DragonFly__
  21669. # include <bus/u4b/usb.h>
  21670. # include <bus/u4b/usbhid.h>
  21671. #else
  21672. # include <dev/usb/usb.h>
  21673. # include <dev/usb/usbhid.h>
  21674. #endif
  21675. #if defined(HAVE_USBHID_H)
  21676. #include <usbhid.h>
  21677. #elif defined(HAVE_LIBUSB_H)
  21678. #include <libusb.h>
  21679. #elif defined(HAVE_LIBUSBHID_H)
  21680. #include <libusbhid.h>
  21681. #endif
  21682. int
  21683. main ()
  21684. {
  21685. struct usb_ctl_report buf;
  21686. if (buf.ucr_data) { }
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. if ac_fn_c_try_compile "$LINENO"; then :
  21692. have_usbhid_ucr_data=yes
  21693. fi
  21694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21695. if test x$have_usbhid_ucr_data = xyes; then
  21696. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21697. fi
  21698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21699. $as_echo "$have_usbhid_ucr_data" >&6; }
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21701. $as_echo_n "checking for new usbhid API... " >&6; }
  21702. have_usbhid_new=no
  21703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21704. /* end confdefs.h. */
  21705. #include <sys/types.h>
  21706. #if defined(HAVE_USB_H)
  21707. #include <usb.h>
  21708. #endif
  21709. #ifdef __DragonFly__
  21710. #include <bus/u4b/usb.h>
  21711. #include <bus/u4b/usbhid.h>
  21712. #else
  21713. #include <dev/usb/usb.h>
  21714. #include <dev/usb/usbhid.h>
  21715. #endif
  21716. #if defined(HAVE_USBHID_H)
  21717. #include <usbhid.h>
  21718. #elif defined(HAVE_LIBUSB_H)
  21719. #include <libusb.h>
  21720. #elif defined(HAVE_LIBUSBHID_H)
  21721. #include <libusbhid.h>
  21722. #endif
  21723. int
  21724. main ()
  21725. {
  21726. report_desc_t d;
  21727. hid_start_parse(d, 1, 1);
  21728. ;
  21729. return 0;
  21730. }
  21731. _ACEOF
  21732. if ac_fn_c_try_compile "$LINENO"; then :
  21733. have_usbhid_new=yes
  21734. fi
  21735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21736. if test x$have_usbhid_new = xyes; then
  21737. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21738. fi
  21739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21740. $as_echo "$have_usbhid_new" >&6; }
  21741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21742. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21743. have_machine_joystick=no
  21744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21745. /* end confdefs.h. */
  21746. #include <machine/joystick.h>
  21747. int
  21748. main ()
  21749. {
  21750. struct joystick t;
  21751. ;
  21752. return 0;
  21753. }
  21754. _ACEOF
  21755. if ac_fn_c_try_compile "$LINENO"; then :
  21756. have_machine_joystick=yes
  21757. fi
  21758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21759. if test x$have_machine_joystick = xyes; then
  21760. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21761. fi
  21762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21763. $as_echo "$have_machine_joystick" >&6; }
  21764. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21765. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21766. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21767. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21768. have_joystick=yes
  21769. fi
  21770. CFLAGS="$save_CFLAGS"
  21771. fi
  21772. ;;
  21773. esac
  21774. }
  21775. CheckHIDAPI()
  21776. {
  21777. # Check whether --enable-hidapi-joystick was given.
  21778. if test "${enable_hidapi_joystick+set}" = set; then :
  21779. enableval=$enable_hidapi_joystick;
  21780. else
  21781. enable_hidapi_joystick=yes
  21782. fi
  21783. # Check whether --enable-hidapi-libusb was given.
  21784. if test "${enable_hidapi_libusb+set}" = set; then :
  21785. enableval=$enable_hidapi_libusb;
  21786. else
  21787. enable_hidapi_libusb=maybe
  21788. fi
  21789. if test x$enable_hidapi = xyes; then
  21790. case "$host" in
  21791. # libusb does not support iOS
  21792. *-ios-* )
  21793. enable_hidapi_libusb=no
  21794. ;;
  21795. # On the other hand, *BSD specifically uses libusb only
  21796. *-*-*bsd* )
  21797. enable_hidapi_libusb=yes
  21798. require_hidapi_libusb=yes
  21799. ;;
  21800. *-*-os2* )
  21801. enable_hidapi_libusb=yes
  21802. ;;
  21803. esac
  21804. hidapi_support=yes
  21805. if test x$enable_hidapi_libusb = xyes; then
  21806. pkg_failed=no
  21807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21808. $as_echo_n "checking for libusb-1.0... " >&6; }
  21809. if test -n "$LIBUSB_CFLAGS"; then
  21810. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21811. elif test -n "$PKG_CONFIG"; then
  21812. if test -n "$PKG_CONFIG" && \
  21813. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21814. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21815. ac_status=$?
  21816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21817. test $ac_status = 0; }; then
  21818. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21819. test "x$?" != "x0" && pkg_failed=yes
  21820. else
  21821. pkg_failed=yes
  21822. fi
  21823. else
  21824. pkg_failed=untried
  21825. fi
  21826. if test -n "$LIBUSB_LIBS"; then
  21827. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21828. elif test -n "$PKG_CONFIG"; then
  21829. if test -n "$PKG_CONFIG" && \
  21830. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21831. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21832. ac_status=$?
  21833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21834. test $ac_status = 0; }; then
  21835. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21836. test "x$?" != "x0" && pkg_failed=yes
  21837. else
  21838. pkg_failed=yes
  21839. fi
  21840. else
  21841. pkg_failed=untried
  21842. fi
  21843. if test $pkg_failed = yes; then
  21844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21845. $as_echo "no" >&6; }
  21846. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21847. _pkg_short_errors_supported=yes
  21848. else
  21849. _pkg_short_errors_supported=no
  21850. fi
  21851. if test $_pkg_short_errors_supported = yes; then
  21852. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21853. else
  21854. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21855. fi
  21856. # Put the nasty error message in config.log where it belongs
  21857. echo "$LIBUSB_PKG_ERRORS" >&5
  21858. have_libusb=no
  21859. elif test $pkg_failed = untried; then
  21860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21861. $as_echo "no" >&6; }
  21862. have_libusb=no
  21863. else
  21864. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21865. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21867. $as_echo "yes" >&6; }
  21868. have_libusb=yes
  21869. fi
  21870. save_CPPFLAGS="$CPPFLAGS"
  21871. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21872. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21873. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21874. have_libusb_h=yes
  21875. else
  21876. have_libusb_h=no
  21877. fi
  21878. CPPFLAGS="$save_CPPFLAGS"
  21879. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21880. hidapi_support=no
  21881. fi
  21882. fi
  21883. if test x$hidapi_support = xyes; then
  21884. if test x$have_libusb_h = xyes; then
  21885. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21886. if test x$require_hidapi_libusb = xyes; then
  21887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21888. else
  21889. if test x$have_loadso != xyes; then
  21890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21891. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21892. fi
  21893. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21894. libusb_lib=""
  21895. case "$host" in
  21896. *-*-darwin* )
  21897. libusb_lib="libusb-1.0.0.dylib"
  21898. ;;
  21899. *-*-cygwin* | *-*-mingw* )
  21900. libusb_lib="libusb-1.0.dll"
  21901. ;;
  21902. *-*-os2* )
  21903. libusb_lib="usb100.dll"
  21904. ;;
  21905. esac
  21906. if test x$libusb_lib = x; then
  21907. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21908. fi
  21909. cat >>confdefs.h <<_ACEOF
  21910. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21911. _ACEOF
  21912. fi
  21913. fi
  21914. fi
  21915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21916. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21918. $as_echo "$hidapi_support" >&6; }
  21919. fi
  21920. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21921. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21922. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21923. fi
  21924. }
  21925. CheckClockGettime()
  21926. {
  21927. # Check whether --enable-clock_gettime was given.
  21928. if test "${enable_clock_gettime+set}" = set; then :
  21929. enableval=$enable_clock_gettime;
  21930. else
  21931. enable_clock_gettime=yes
  21932. fi
  21933. if test x$enable_clock_gettime = xyes; then
  21934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21935. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21936. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21937. $as_echo_n "(cached) " >&6
  21938. else
  21939. ac_check_lib_save_LIBS=$LIBS
  21940. LIBS="-lrt $LIBS"
  21941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21942. /* end confdefs.h. */
  21943. /* Override any GCC internal prototype to avoid an error.
  21944. Use char because int might match the return type of a GCC
  21945. builtin and then its argument prototype would still apply. */
  21946. #ifdef __cplusplus
  21947. extern "C"
  21948. #endif
  21949. char clock_gettime ();
  21950. int
  21951. main ()
  21952. {
  21953. return clock_gettime ();
  21954. ;
  21955. return 0;
  21956. }
  21957. _ACEOF
  21958. if ac_fn_c_try_link "$LINENO"; then :
  21959. ac_cv_lib_rt_clock_gettime=yes
  21960. else
  21961. ac_cv_lib_rt_clock_gettime=no
  21962. fi
  21963. rm -f core conftest.err conftest.$ac_objext \
  21964. conftest$ac_exeext conftest.$ac_ext
  21965. LIBS=$ac_check_lib_save_LIBS
  21966. fi
  21967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21968. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21969. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21970. have_clock_gettime=yes
  21971. fi
  21972. if test x$have_clock_gettime = xyes; then
  21973. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21975. else
  21976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21977. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21978. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21979. $as_echo_n "(cached) " >&6
  21980. else
  21981. ac_check_lib_save_LIBS=$LIBS
  21982. LIBS="-lc $LIBS"
  21983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21984. /* end confdefs.h. */
  21985. /* Override any GCC internal prototype to avoid an error.
  21986. Use char because int might match the return type of a GCC
  21987. builtin and then its argument prototype would still apply. */
  21988. #ifdef __cplusplus
  21989. extern "C"
  21990. #endif
  21991. char clock_gettime ();
  21992. int
  21993. main ()
  21994. {
  21995. return clock_gettime ();
  21996. ;
  21997. return 0;
  21998. }
  21999. _ACEOF
  22000. if ac_fn_c_try_link "$LINENO"; then :
  22001. ac_cv_lib_c_clock_gettime=yes
  22002. else
  22003. ac_cv_lib_c_clock_gettime=no
  22004. fi
  22005. rm -f core conftest.err conftest.$ac_objext \
  22006. conftest$ac_exeext conftest.$ac_ext
  22007. LIBS=$ac_check_lib_save_LIBS
  22008. fi
  22009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22010. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22011. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22012. have_clock_gettime=yes
  22013. fi
  22014. if test x$have_clock_gettime = xyes; then
  22015. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22017. fi
  22018. fi
  22019. fi
  22020. }
  22021. CheckLinuxVersion()
  22022. {
  22023. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22024. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22025. have_linux_version_h=yes
  22026. fi
  22027. if test x$have_linux_version_h = xyes; then
  22028. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22029. fi
  22030. }
  22031. CheckRPATH()
  22032. {
  22033. # Check whether --enable-rpath was given.
  22034. if test "${enable_rpath+set}" = set; then :
  22035. enableval=$enable_rpath;
  22036. else
  22037. enable_rpath=yes
  22038. fi
  22039. }
  22040. CheckEventSignals()
  22041. {
  22042. # Check whether --enable-backgrounding-signal was given.
  22043. if test "${enable_backgrounding_signal+set}" = set; then :
  22044. enableval=$enable_backgrounding_signal;
  22045. else
  22046. enable_backgrounding_signal=no
  22047. fi
  22048. if test x$enable_backgrounding_signal != xno; then
  22049. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22050. fi
  22051. # Check whether --enable-foregrounding-signal was given.
  22052. if test "${enable_foregrounding_signal+set}" = set; then :
  22053. enableval=$enable_foregrounding_signal;
  22054. else
  22055. enable_foregrounding_signal=no
  22056. fi
  22057. if test x$enable_foregrounding_signal != xno; then
  22058. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22059. fi
  22060. }
  22061. CheckVirtualJoystick()
  22062. {
  22063. # Check whether --enable-joystick-virtual was given.
  22064. if test "${enable_joystick_virtual+set}" = set; then :
  22065. enableval=$enable_joystick_virtual;
  22066. else
  22067. enable_joystick_virtual=yes
  22068. fi
  22069. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22070. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22071. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22072. have_joystick_virtual=yes
  22073. fi
  22074. }
  22075. CheckWarnAll
  22076. CheckNoStrictAliasing
  22077. CheckEventSignals
  22078. have_locale=no
  22079. case "$host" in
  22080. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22081. case "$host" in
  22082. *-*-android*)
  22083. # Android
  22084. ARCH=android
  22085. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22086. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22087. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22088. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22090. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22091. if test x$enable_video = xyes; then
  22092. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22093. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22094. SUMMARY_video="${SUMMARY_video} android"
  22095. have_video=yes
  22096. fi
  22097. ;;
  22098. *-*-linux*) ARCH=linux ;;
  22099. *-*-uclinux*) ARCH=linux ;;
  22100. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22101. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22102. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22103. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22104. *-*-bsdi*) ARCH=bsdi ;;
  22105. *-*-freebsd*) ARCH=freebsd ;;
  22106. *-*-dragonfly*) ARCH=freebsd ;;
  22107. *-*-netbsd*) ARCH=netbsd ;;
  22108. *-*-openbsd*) ARCH=openbsd ;;
  22109. *-*-sysv5*) ARCH=sysv5 ;;
  22110. *-*-solaris*) ARCH=solaris ;;
  22111. *-*-hpux*) ARCH=hpux ;;
  22112. *-*-aix*) ARCH=aix ;;
  22113. *-*-minix*) ARCH=minix ;;
  22114. *-*-nto*) ARCH=nto
  22115. CheckQNXVideo
  22116. ;;
  22117. esac
  22118. CheckVisibilityHidden
  22119. CheckDeclarationAfterStatement
  22120. CheckDummyVideo
  22121. CheckOffscreenVideo
  22122. CheckDiskAudio
  22123. CheckDummyAudio
  22124. CheckDLOPEN
  22125. CheckARM
  22126. CheckNEON
  22127. CheckO_CLOEXEC
  22128. CheckOSS
  22129. CheckALSA
  22130. CheckPipewire
  22131. CheckPulseAudio
  22132. CheckJACK
  22133. CheckARTSC
  22134. CheckESD
  22135. CheckNAS
  22136. CheckSNDIO
  22137. CheckFusionSound
  22138. CheckLibSampleRate
  22139. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22140. CheckRPI
  22141. CheckX11
  22142. CheckDirectFB
  22143. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22144. CheckEGL
  22145. CheckKMSDRM
  22146. CheckGLX
  22147. CheckOpenGL
  22148. CheckOpenGLES
  22149. CheckVulkan
  22150. CheckWayland
  22151. CheckInputEvents
  22152. CheckLibUDev
  22153. CheckDBus
  22154. CheckIME
  22155. CheckInotify
  22156. CheckIBus
  22157. CheckFcitx
  22158. case $ARCH in
  22159. linux)
  22160. CheckInputKD
  22161. ;;
  22162. freebsd)
  22163. CheckInputKBIO
  22164. ;;
  22165. openbsd|netbsd)
  22166. CheckInputWSCONS
  22167. ;;
  22168. esac
  22169. CheckUSBHID
  22170. CheckHIDAPI
  22171. CheckPTHREAD
  22172. CheckClockGettime
  22173. CheckLinuxVersion
  22174. CheckRPATH
  22175. CheckVivanteVideo
  22176. # Set up files for the misc library
  22177. if test x$enable_misc = xyes; then
  22178. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22179. have_misc=yes
  22180. fi
  22181. # Set up files for the locale library
  22182. if test x$enable_locale = xyes; then
  22183. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22184. have_locale=yes
  22185. fi
  22186. # Set up files for the audio library
  22187. if test x$enable_audio = xyes; then
  22188. case $ARCH in
  22189. sysv5|solaris|hpux)
  22190. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22191. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22192. SUMMARY_audio="${SUMMARY_audio} sun"
  22193. have_audio=yes
  22194. ;;
  22195. netbsd) # Don't use this on OpenBSD, it's busted.
  22196. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22197. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22198. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22199. have_audio=yes
  22200. ;;
  22201. aix)
  22202. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22203. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22204. SUMMARY_audio="${SUMMARY_audio} paudio"
  22205. have_audio=yes
  22206. ;;
  22207. android)
  22208. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22209. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22210. SUMMARY_audio="${SUMMARY_audio} android"
  22211. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22212. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22213. SUMMARY_audio="${SUMMARY_audio} openslES"
  22214. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22215. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22216. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22217. have_audio=yes
  22218. ;;
  22219. nto)
  22220. CheckQNXAudio
  22221. ;;
  22222. esac
  22223. fi
  22224. # Set up files for the joystick library
  22225. if test x$enable_joystick = xyes; then
  22226. case $ARCH in
  22227. linux)
  22228. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22229. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22230. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22231. have_joystick=yes
  22232. ;;
  22233. freebsd)
  22234. if test x$use_input_events = xyes; then
  22235. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22236. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22237. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22238. have_joystick=yes
  22239. fi
  22240. ;;
  22241. android)
  22242. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22243. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22244. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22245. have_joystick=yes
  22246. ;;
  22247. esac
  22248. fi
  22249. # Set up files for the haptic library
  22250. if test x$enable_haptic = xyes; then
  22251. case $ARCH in
  22252. linux|freebsd)
  22253. if test x$use_input_events = xyes; then
  22254. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22255. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22256. have_haptic=yes
  22257. fi
  22258. ;;
  22259. android)
  22260. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22261. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22262. have_haptic=yes
  22263. ;;
  22264. esac
  22265. fi
  22266. # Set up files for the sensor library
  22267. if test x$enable_sensor = xyes; then
  22268. case $ARCH in
  22269. android)
  22270. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22271. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22272. have_sensor=yes
  22273. ;;
  22274. esac
  22275. fi
  22276. # Set up files for the power library
  22277. if test x$enable_power = xyes; then
  22278. case $ARCH in
  22279. linux)
  22280. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22281. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22282. have_power=yes
  22283. ;;
  22284. android)
  22285. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22286. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22287. have_power=yes
  22288. ;;
  22289. esac
  22290. fi
  22291. # Set up files for the filesystem library
  22292. if test x$enable_filesystem = xyes; then
  22293. case $ARCH in
  22294. android)
  22295. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22296. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22297. have_filesystem=yes
  22298. ;;
  22299. *)
  22300. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22301. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22302. have_filesystem=yes
  22303. ;;
  22304. esac
  22305. fi
  22306. # Set up files for the timer library
  22307. if test x$enable_timers = xyes; then
  22308. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22309. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22310. have_timers=yes
  22311. fi
  22312. # Set up files for udev hotplugging support
  22313. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22314. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22315. fi
  22316. # Set up files for evdev input
  22317. if test x$use_input_events = xyes; then
  22318. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22319. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22320. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22321. fi
  22322. # Set up files for wscons input
  22323. if test x$use_input_wscons = xyes; then
  22324. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22325. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22326. fi
  22327. # Set up other core UNIX files
  22328. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22329. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22330. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22331. ;;
  22332. *-*-cygwin* | *-*-mingw*)
  22333. ARCH=win32
  22334. if test "$build" != "$host"; then # cross-compiling
  22335. # Default cross-compile location
  22336. ac_default_prefix=/usr/local/cross-tools/$host
  22337. else
  22338. # Look for the location of the tools and install there
  22339. if test "$BUILD_PREFIX" != ""; then
  22340. ac_default_prefix=$BUILD_PREFIX
  22341. fi
  22342. fi
  22343. if test x$enable_loadso = xyes; then
  22344. have_loadso=yes
  22345. fi
  22346. CheckDeclarationAfterStatement
  22347. CheckDummyVideo
  22348. CheckOffscreenVideo
  22349. CheckDiskAudio
  22350. CheckDummyAudio
  22351. CheckWINDOWS
  22352. CheckWINDOWSGL
  22353. CheckWINDOWSGLES
  22354. CheckVulkan
  22355. CheckDIRECTX
  22356. CheckHIDAPI
  22357. # Set up the core platform files
  22358. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22359. # Set up files for the misc library
  22360. if test x$enable_misc = xyes; then
  22361. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22362. have_misc=yes
  22363. fi
  22364. # Use the Windows locale APIs.
  22365. if test x$enable_locale = xyes; then
  22366. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22367. have_locale=yes
  22368. fi
  22369. # Set up files for the video library
  22370. if test x$enable_video = xyes; then
  22371. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22372. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22373. have_video=yes
  22374. # Check whether --enable-render-d3d was given.
  22375. if test "${enable_render_d3d+set}" = set; then :
  22376. enableval=$enable_render_d3d;
  22377. else
  22378. enable_render_d3d=yes
  22379. fi
  22380. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22381. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22382. SUMMARY_video="${SUMMARY_video} d3d9"
  22383. fi
  22384. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22385. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22386. SUMMARY_video="${SUMMARY_video} d3d11"
  22387. fi
  22388. fi
  22389. # Set up files for the audio library
  22390. if test x$enable_audio = xyes; then
  22391. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22392. SUMMARY_audio="${SUMMARY_audio} winmm"
  22393. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22394. if test x$have_dsound = xyes; then
  22395. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22396. SUMMARY_audio="${SUMMARY_audio} directsound"
  22397. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22398. fi
  22399. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22400. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22401. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22402. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22403. fi
  22404. have_audio=yes
  22405. fi
  22406. # Set up files for the joystick library
  22407. if test x$enable_joystick = xyes; then
  22408. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22409. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22410. if test x$have_xinput = xyes; then
  22411. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22412. fi
  22413. if test x$have_wgi = xyes; then
  22414. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22415. fi
  22416. if test x$have_dinput = xyes; then
  22417. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22419. fi
  22420. fi
  22421. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22422. have_joystick=yes
  22423. fi
  22424. if test x$enable_haptic = xyes; then
  22425. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22426. if test x$have_xinput = xyes; then
  22427. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22428. fi
  22429. if test x$have_dinput = xyes; then
  22430. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22431. fi
  22432. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22433. have_haptic=yes
  22434. fi
  22435. fi
  22436. # Set up files for the sensor library
  22437. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22438. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22439. have_winsensors=yes
  22440. else
  22441. have_winsensors=no
  22442. fi
  22443. if test x$have_winsensors = xyes; then
  22444. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22445. fi
  22446. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22447. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22448. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22449. have_sensor=yes
  22450. fi
  22451. # Set up files for the power library
  22452. if test x$enable_power = xyes; then
  22453. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22454. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22455. have_power=yes
  22456. fi
  22457. # Set up files for the filesystem library
  22458. if test x$enable_filesystem = xyes; then
  22459. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22460. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22461. have_filesystem=yes
  22462. fi
  22463. # Set up files for the thread library
  22464. if test x$enable_threads = xyes; then
  22465. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22466. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22467. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22468. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22469. have_threads=yes
  22470. fi
  22471. # Set up files for the timer library
  22472. if test x$enable_timers = xyes; then
  22473. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22474. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22475. have_timers=yes
  22476. fi
  22477. # Set up files for the shared object loading library
  22478. if test x$enable_loadso = xyes; then
  22479. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22480. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22481. fi
  22482. # Set up the system libraries we need
  22483. if test -f /lib/w32api/libuuid.a; then
  22484. LIBUUID=/lib/w32api/libuuid.a
  22485. else
  22486. LIBUUID=-luuid
  22487. fi
  22488. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22489. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22490. # The Windows platform requires special setup
  22491. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22492. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22493. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22494. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22495. # Check to see if this is a mingw or cygwin build
  22496. have_mingw32=
  22497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22498. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22499. if ${ac_cv_lib_mingw32_main+:} false; then :
  22500. $as_echo_n "(cached) " >&6
  22501. else
  22502. ac_check_lib_save_LIBS=$LIBS
  22503. LIBS="-lmingw32 $LIBS"
  22504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22505. /* end confdefs.h. */
  22506. int
  22507. main ()
  22508. {
  22509. return main ();
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. if ac_fn_c_try_link "$LINENO"; then :
  22515. ac_cv_lib_mingw32_main=yes
  22516. else
  22517. ac_cv_lib_mingw32_main=no
  22518. fi
  22519. rm -f core conftest.err conftest.$ac_objext \
  22520. conftest$ac_exeext conftest.$ac_ext
  22521. LIBS=$ac_check_lib_save_LIBS
  22522. fi
  22523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22524. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22525. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22526. have_mingw32=yes
  22527. fi
  22528. if test x$have_mingw32 = xyes; then
  22529. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22530. else
  22531. SDL_LIBS="-lcygwin $SDL_LIBS"
  22532. fi
  22533. ;;
  22534. *-*-beos*)
  22535. as_fn_error $? "
  22536. *** BeOS support has been removed as of SDL 2.0.2.
  22537. " "$LINENO" 5
  22538. ;;
  22539. *-*-haiku*)
  22540. ARCH=haiku
  22541. ac_default_prefix=/boot/system
  22542. CheckDummyVideo
  22543. CheckOffscreenVideo
  22544. CheckDiskAudio
  22545. CheckDummyAudio
  22546. CheckDLOPEN
  22547. CheckO_CLOEXEC
  22548. CheckHaikuVideo
  22549. CheckHaikuGL
  22550. CheckPTHREAD
  22551. # Set up files for the audio library
  22552. if test x$enable_audio = xyes; then
  22553. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22554. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22555. SUMMARY_audio="${SUMMARY_audio} haiku"
  22556. have_audio=yes
  22557. fi
  22558. # Set up files for the joystick library
  22559. if test x$enable_joystick = xyes; then
  22560. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22561. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22562. have_joystick=yes
  22563. fi
  22564. # Set up files for the timer library
  22565. if test x$enable_timers = xyes; then
  22566. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22567. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22568. have_timers=yes
  22569. fi
  22570. # Set up files for the system power library
  22571. if test x$enable_power = xyes; then
  22572. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22573. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22574. have_power=yes
  22575. fi
  22576. # Set up files for the system filesystem library
  22577. if test x$enable_filesystem = xyes; then
  22578. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22579. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22580. have_filesystem=yes
  22581. fi
  22582. # Set up files for the misc library
  22583. if test x$enable_misc = xyes; then
  22584. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22585. have_misc=yes
  22586. fi
  22587. # Set up files for the locale library
  22588. if test x$enable_locale = xyes; then
  22589. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22590. have_locale=yes
  22591. fi
  22592. # The Haiku platform requires special setup.
  22593. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22595. ;;
  22596. *-ios-*)
  22597. ARCH=ios
  22598. CheckVisibilityHidden
  22599. CheckDeclarationAfterStatement
  22600. CheckDummyVideo
  22601. CheckOffscreenVideo
  22602. CheckDiskAudio
  22603. CheckDummyAudio
  22604. CheckDLOPEN
  22605. CheckO_CLOEXEC
  22606. CheckMETAL
  22607. CheckVulkan
  22608. CheckPTHREAD
  22609. # Set up files for the misc library
  22610. if test x$enable_misc = xyes; then
  22611. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22612. have_misc=yes
  22613. fi
  22614. # Set up files for the locale library
  22615. if test x$enable_locale = xyes; then
  22616. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22617. have_locale=yes
  22618. fi
  22619. # Set up files for the audio library
  22620. if test x$enable_audio = xyes; then
  22621. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22622. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22623. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22624. have_audio=yes
  22625. fi
  22626. # Set up files for the joystick library
  22627. if test x$enable_joystick = xyes; then
  22628. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22629. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22630. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22631. have_joystick=yes
  22632. else
  22633. # Need this code for accelerometer as joystick support
  22634. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22635. fi
  22636. # Set up files for the haptic library
  22637. #if test x$enable_haptic = xyes; then
  22638. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22639. # have_haptic=yes
  22640. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22641. #fi
  22642. # Set up files for the sensor library
  22643. if test x$enable_sensor = xyes; then
  22644. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22645. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22646. have_sensor=yes
  22647. fi
  22648. # Set up files for the power library
  22649. if test x$enable_power = xyes; then
  22650. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22651. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22652. have_power=yes
  22653. fi
  22654. # Set up files for the filesystem library
  22655. if test x$enable_filesystem = xyes; then
  22656. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22657. have_filesystem=yes
  22658. fi
  22659. # Set up additional files for the file library
  22660. if test x$enable_file = xyes; then
  22661. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22662. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22663. fi
  22664. # Set up files for the timer library
  22665. if test x$enable_timers = xyes; then
  22666. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22667. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22668. have_timers=yes
  22669. fi
  22670. # Set up other core UNIX files
  22671. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22672. # The iOS platform requires special setup.
  22673. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22674. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22675. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22676. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22677. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22678. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22679. SUMMARY_video="${SUMMARY_video} uikit"
  22680. have_video=yes
  22681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22692. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22694. fi
  22695. ;;
  22696. *-*-darwin* )
  22697. # This could be either full "Mac OS X", or plain "Darwin" which is
  22698. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22699. # Next line is broken, and a few files below require Mac OS X (full)
  22700. ARCH=macosx
  22701. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22702. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22703. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22704. CheckObjectiveCARC
  22705. CheckVisibilityHidden
  22706. CheckDeclarationAfterStatement
  22707. CheckDummyVideo
  22708. CheckOffscreenVideo
  22709. CheckDiskAudio
  22710. CheckDummyAudio
  22711. CheckDLOPEN
  22712. CheckO_CLOEXEC
  22713. CheckCOCOA
  22714. CheckMETAL
  22715. CheckX11
  22716. CheckMacGL
  22717. CheckMacGLES
  22718. CheckGLX
  22719. CheckOpenGL
  22720. CheckVulkan
  22721. CheckPTHREAD
  22722. CheckHIDAPI
  22723. # Set up files for the misc library
  22724. if test x$enable_misc = xyes; then
  22725. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22726. have_misc=yes
  22727. fi
  22728. # Set up files for the locale library
  22729. if test x$enable_locale = xyes; then
  22730. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22731. have_locale=yes
  22732. fi
  22733. # Set up files for the audio library
  22734. if test x$enable_audio = xyes; then
  22735. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22736. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22738. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22739. have_audio=yes
  22740. fi
  22741. # Set up files for the joystick library
  22742. if test x$enable_joystick = xyes; then
  22743. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22744. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22745. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22746. CheckJoystickMFI
  22747. have_joystick=yes
  22748. fi
  22749. # Set up files for the haptic library
  22750. if test x$enable_haptic = xyes; then
  22751. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22752. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22754. have_haptic=yes
  22755. fi
  22756. # Set up files for the power library
  22757. if test x$enable_power = xyes; then
  22758. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22759. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22760. have_power=yes
  22761. fi
  22762. # Set up files for the filesystem library
  22763. if test x$enable_filesystem = xyes; then
  22764. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22765. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22766. have_filesystem=yes
  22767. fi
  22768. # Set up files for the timer library
  22769. if test x$enable_timers = xyes; then
  22770. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22771. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22772. have_timers=yes
  22773. fi
  22774. # Set up additional files for the file library
  22775. if test x$enable_file = xyes; then
  22776. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22777. fi
  22778. # Set up other core UNIX files
  22779. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22780. # The Mac OS X platform requires special setup.
  22781. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22786. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22788. fi
  22789. ;;
  22790. *-nacl|*-pnacl)
  22791. ARCH=nacl
  22792. CheckNativeClient
  22793. CheckDummyAudio
  22794. CheckDummyVideo
  22795. CheckOffscreenVideo
  22796. CheckInputEvents
  22797. CheckPTHREAD
  22798. CheckO_CLOEXEC
  22799. # Set up files for the timer library
  22800. if test x$enable_timers = xyes; then
  22801. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22802. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22803. have_timers=yes
  22804. fi
  22805. if test x$enable_filesystem = xyes; then
  22806. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22807. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22808. have_filesystem=yes
  22809. fi
  22810. ;;
  22811. *-*-emscripten* )
  22812. if test x$enable_video = xyes; then
  22813. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22814. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22815. have_video=yes
  22816. SUMMARY_video="${SUMMARY_video} emscripten"
  22817. fi
  22818. if test x$enable_audio = xyes; then
  22819. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22820. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22821. have_audio=yes
  22822. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22823. fi
  22824. CheckVisibilityHidden
  22825. CheckDeclarationAfterStatement
  22826. CheckDummyVideo
  22827. CheckOffscreenVideo
  22828. CheckDiskAudio
  22829. CheckDummyAudio
  22830. CheckPTHREAD
  22831. CheckDLOPEN
  22832. CheckClockGettime
  22833. CheckEmscriptenGLES
  22834. # Set up files for the misc library
  22835. if test x$enable_misc = xyes; then
  22836. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22837. have_misc=yes
  22838. fi
  22839. # Set up files for the power library
  22840. if test x$enable_power = xyes; then
  22841. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22842. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22843. have_power=yes
  22844. fi
  22845. # Set up files for the joystick library
  22846. if test x$enable_joystick = xyes; then
  22847. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22848. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22849. have_joystick=yes
  22850. fi
  22851. # Set up files for the filesystem library
  22852. if test x$enable_filesystem = xyes; then
  22853. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22854. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22855. have_filesystem=yes
  22856. fi
  22857. # Set up files for the timer library
  22858. if test x$enable_timers = xyes; then
  22859. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22860. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22861. have_timers=yes
  22862. fi
  22863. # Set up files for the locale library
  22864. if test x$enable_locale = xyes; then
  22865. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22866. have_locale=yes
  22867. fi
  22868. ;;
  22869. *-*-riscos*)
  22870. ARCH=riscos
  22871. CheckVisibilityHidden
  22872. CheckDeclarationAfterStatement
  22873. CheckDummyVideo
  22874. CheckOffscreenVideo
  22875. CheckDiskAudio
  22876. CheckDummyAudio
  22877. CheckDLOPEN
  22878. CheckO_CLOEXEC
  22879. CheckOSS
  22880. CheckPTHREAD
  22881. CheckClockGettime
  22882. # Set up files for the misc library
  22883. if test x$enable_misc = xyes; then
  22884. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22885. have_misc=yes
  22886. fi
  22887. # Set up files for the video library
  22888. if test x$enable_video = xyes; then
  22889. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22890. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22891. have_video=yes
  22892. SUMMARY_video="${SUMMARY_video} riscos"
  22893. fi
  22894. # Set up files for the filesystem library
  22895. if test x$enable_filesystem = xyes; then
  22896. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22897. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22898. have_filesystem=yes
  22899. fi
  22900. # Set up files for the timer library
  22901. if test x$enable_timers = xyes; then
  22902. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22903. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22904. have_timers=yes
  22905. fi
  22906. ;;
  22907. *-*-os2*)
  22908. ARCH=os2
  22909. if test "$build" != "$host"; then # cross-compiling
  22910. # Default cross-compile location
  22911. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22912. else
  22913. # Look for the location of the tools and install there
  22914. if test "$BUILD_PREFIX" != ""; then
  22915. ac_default_prefix=$BUILD_PREFIX
  22916. fi
  22917. fi
  22918. enable_static=no # disable static builds
  22919. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22920. CheckOS2
  22921. CheckDeclarationAfterStatement
  22922. CheckDummyVideo
  22923. CheckDiskAudio
  22924. CheckDummyAudio
  22925. CheckHIDAPI
  22926. # Set up the core platform files
  22927. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22928. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22929. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22930. fi
  22931. # Use the Unix locale APIs.
  22932. if test x$enable_locale = xyes; then
  22933. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22934. have_locale=yes
  22935. fi
  22936. # Set up files for the video library
  22937. if test x$enable_video = xyes; then
  22938. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22939. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22940. have_video=yes
  22941. SUMMARY_video="${SUMMARY_video} os/2"
  22942. fi
  22943. # Set up files for the audio library
  22944. if test x$enable_audio = xyes; then
  22945. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22946. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22947. have_audio=yes
  22948. SUMMARY_audio="${SUMMARY_audio} os/2"
  22949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22950. fi
  22951. # Set up files for the thread library
  22952. if test x$enable_threads = xyes; then
  22953. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22954. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22955. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22956. have_threads=yes
  22957. fi
  22958. # Set up files for the timer library
  22959. if test x$enable_timers = xyes; then
  22960. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22961. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22962. have_timers=yes
  22963. fi
  22964. # Set up files for the shared object loading library
  22965. if test x$enable_loadso = xyes; then
  22966. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22967. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22968. have_loadso=yes
  22969. fi
  22970. # Set up files for the filesystem library
  22971. if test x$enable_filesystem = xyes; then
  22972. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22973. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22974. have_filesystem=yes
  22975. fi
  22976. # Set up files for the joystick library
  22977. if test x$enable_joystick = xyes; then
  22978. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22979. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22980. have_joystick=yes
  22981. fi
  22982. ;;
  22983. *)
  22984. as_fn_error $? "
  22985. *** Unsupported host: Please add to configure.ac
  22986. " "$LINENO" 5
  22987. ;;
  22988. esac
  22989. CheckVirtualJoystick
  22990. # Check whether to install sdl2-config
  22991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22992. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22993. # Check whether --enable-sdl2-config was given.
  22994. if test "${enable_sdl2_config+set}" = set; then :
  22995. enableval=$enable_sdl2_config; case "${enableval}" in
  22996. yes) enable_sdl2_config="TRUE" ;;
  22997. no) enable_sdl2_config="FALSE" ;;
  22998. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22999. esac
  23000. else
  23001. enable_sdl2_config="TRUE"
  23002. fi
  23003. if test "$enable_sdl2_config" = "TRUE"; then
  23004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23005. $as_echo "yes" >&6; }
  23006. else
  23007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23008. $as_echo "no" >&6; }
  23009. fi
  23010. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23011. # Verify that we have all the platform specific files we need
  23012. if test x$have_audio != xyes; then
  23013. if test x$enable_audio = xyes; then
  23014. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23015. fi
  23016. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23017. fi
  23018. if test x$have_video != xyes; then
  23019. if test x$enable_video = xyes; then
  23020. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23021. fi
  23022. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23023. fi
  23024. if test x$have_misc != xyes; then
  23025. if test x$enable_misc = xyes; then
  23026. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23027. fi
  23028. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23029. fi
  23030. if test x$have_locale != xyes; then
  23031. if test x$enable_locale = xyes; then
  23032. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23033. fi
  23034. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23035. fi
  23036. if test x$have_joystick != xyes; then
  23037. if test x$enable_joystick = xyes; then
  23038. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23039. fi
  23040. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23041. fi
  23042. if test x$have_haptic != xyes; then
  23043. if test x$enable_haptic = xyes; then
  23044. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23045. fi
  23046. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23047. fi
  23048. if test x$have_sensor != xyes; then
  23049. if test x$enable_sensor = xyes; then
  23050. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23051. fi
  23052. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23053. fi
  23054. if test x$have_threads != xyes; then
  23055. if test x$enable_threads = xyes; then
  23056. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23057. fi
  23058. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23059. fi
  23060. if test x$have_timers != xyes; then
  23061. if test x$enable_timers = xyes; then
  23062. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23063. fi
  23064. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23065. fi
  23066. if test x$have_filesystem != xyes; then
  23067. if test x$enable_filesystem = xyes; then
  23068. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23069. fi
  23070. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23071. fi
  23072. if test x$have_loadso != xyes; then
  23073. if test x$enable_loadso = xyes; then
  23074. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23075. fi
  23076. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23077. fi
  23078. if test x$SDLMAIN_SOURCES = x; then
  23079. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23080. fi
  23081. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23082. if test x$video_wayland = xyes; then
  23083. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23084. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23085. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23086. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23087. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23088. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23089. echo ;\
  23090. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23091. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23092. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23093. echo ;\
  23094. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23095. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23096. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23097. echo ;\
  23098. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23099. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23100. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23101. done ;\
  23102. echo ;\
  23103. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23104. fi
  23105. OBJECTS=`echo $SOURCES`
  23106. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23107. for EXT in asm cc m c S; do
  23108. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23109. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23110. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23111. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23112. done
  23113. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23114. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23115. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23116. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23117. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23118. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23119. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23120. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23121. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23122. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23123. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23124. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23125. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23126. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23127. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23128. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23129. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23130. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23131. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23132. # Set runtime shared library paths as needed
  23133. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23134. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23135. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23137. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23138. have_enable_new_dtags=no
  23139. save_LDFLAGS="$LDFLAGS"
  23140. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23142. /* end confdefs.h. */
  23143. int
  23144. main ()
  23145. {
  23146. ;
  23147. return 0;
  23148. }
  23149. _ACEOF
  23150. if ac_fn_c_try_link "$LINENO"; then :
  23151. have_enable_new_dtags=yes
  23152. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23153. fi
  23154. rm -f core conftest.err conftest.$ac_objext \
  23155. conftest$ac_exeext conftest.$ac_ext
  23156. LDFLAGS="$save_LDFLAGS"
  23157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23158. $as_echo "$have_enable_new_dtags" >&6; }
  23159. fi
  23160. if test $ARCH = solaris; then
  23161. SDL_RLD_FLAGS="-R\${libdir}"
  23162. fi
  23163. else
  23164. SDL_RLD_FLAGS=""
  23165. fi
  23166. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23167. if test x$enable_shared = xyes; then
  23168. PKGCONFIG_LIBS_PRIV="
  23169. Libs.private:"
  23170. ENABLE_SHARED_TRUE=
  23171. ENABLE_SHARED_FALSE="#"
  23172. else
  23173. PKGCONFIG_LIBS_PRIV=
  23174. ENABLE_SHARED_TRUE="#"
  23175. ENABLE_SHARED_FALSE=
  23176. fi
  23177. if test x$enable_static = xyes; then
  23178. ENABLE_STATIC_TRUE=
  23179. ENABLE_STATIC_FALSE="#"
  23180. else
  23181. ENABLE_STATIC_TRUE="#"
  23182. ENABLE_STATIC_FALSE=
  23183. fi
  23184. cat >Makefile.rules <<__EOF__
  23185. # Build rules for objects
  23186. -include \$(OBJECTS:.lo=.d)
  23187. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23188. $srcdir/src/SDL.c: update-revision
  23189. $DEPENDS
  23190. $VERSION_DEPENDS
  23191. $SDLMAIN_DEPENDS
  23192. $SDLTEST_DEPENDS
  23193. $WAYLAND_PROTOCOLS_DEPENDS
  23194. __EOF__
  23195. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23196. ac_config_commands="$ac_config_commands sdl2_config"
  23197. SUMMARY="SDL2 Configure Summary:\n"
  23198. if test x$enable_shared = xyes; then
  23199. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23200. fi
  23201. if test x$enable_static = xyes; then
  23202. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23203. fi
  23204. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23205. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23206. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23207. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23208. if test x$have_x = xyes; then
  23209. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23210. fi
  23211. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23212. if test x$have_joystick_virtual = xyes; then
  23213. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23214. else
  23215. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23216. fi
  23217. if test x$have_samplerate_h_hdr = xyes; then
  23218. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23219. else
  23220. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23221. fi
  23222. if test x$have_libudev_h_hdr = xyes; then
  23223. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23224. else
  23225. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23226. fi
  23227. if test x$have_dbus_dbus_h_hdr = xyes; then
  23228. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23229. else
  23230. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23231. fi
  23232. if test x$enable_ime = xyes; then
  23233. SUMMARY="${SUMMARY}Using ime : YES\n"
  23234. else
  23235. SUMMARY="${SUMMARY}Using ime : NO\n"
  23236. fi
  23237. if test x$have_ibus_ibus_h_hdr = xyes; then
  23238. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23239. else
  23240. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23241. fi
  23242. if test x$have_fcitx = xyes; then
  23243. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23244. else
  23245. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23246. fi
  23247. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23248. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23249. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23250. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23251. SUMMARY="${SUMMARY}configure script with:\n"
  23252. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23253. fi
  23254. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23255. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23256. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23257. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23258. SUMMARY="${SUMMARY}configure script with:\n"
  23259. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23260. fi
  23261. ac_config_commands="$ac_config_commands summary"
  23262. cat >confcache <<\_ACEOF
  23263. # This file is a shell script that caches the results of configure
  23264. # tests run on this system so they can be shared between configure
  23265. # scripts and configure runs, see configure's option --config-cache.
  23266. # It is not useful on other systems. If it contains results you don't
  23267. # want to keep, you may remove or edit it.
  23268. #
  23269. # config.status only pays attention to the cache file if you give it
  23270. # the --recheck option to rerun configure.
  23271. #
  23272. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23273. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23274. # following values.
  23275. _ACEOF
  23276. # The following way of writing the cache mishandles newlines in values,
  23277. # but we know of no workaround that is simple, portable, and efficient.
  23278. # So, we kill variables containing newlines.
  23279. # Ultrix sh set writes to stderr and can't be redirected directly,
  23280. # and sets the high bit in the cache file unless we assign to the vars.
  23281. (
  23282. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23283. eval ac_val=\$$ac_var
  23284. case $ac_val in #(
  23285. *${as_nl}*)
  23286. case $ac_var in #(
  23287. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23288. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23289. esac
  23290. case $ac_var in #(
  23291. _ | IFS | as_nl) ;; #(
  23292. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23293. *) { eval $ac_var=; unset $ac_var;} ;;
  23294. esac ;;
  23295. esac
  23296. done
  23297. (set) 2>&1 |
  23298. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23299. *${as_nl}ac_space=\ *)
  23300. # `set' does not quote correctly, so add quotes: double-quote
  23301. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23302. sed -n \
  23303. "s/'/'\\\\''/g;
  23304. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23305. ;; #(
  23306. *)
  23307. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23308. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23309. ;;
  23310. esac |
  23311. sort
  23312. ) |
  23313. sed '
  23314. /^ac_cv_env_/b end
  23315. t clear
  23316. :clear
  23317. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23318. t end
  23319. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23320. :end' >>confcache
  23321. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23322. if test -w "$cache_file"; then
  23323. if test "x$cache_file" != "x/dev/null"; then
  23324. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23325. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23326. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23327. cat confcache >"$cache_file"
  23328. else
  23329. case $cache_file in #(
  23330. */* | ?:*)
  23331. mv -f confcache "$cache_file"$$ &&
  23332. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23333. *)
  23334. mv -f confcache "$cache_file" ;;
  23335. esac
  23336. fi
  23337. fi
  23338. else
  23339. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23340. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23341. fi
  23342. fi
  23343. rm -f confcache
  23344. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23345. # Let make expand exec_prefix.
  23346. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23347. DEFS=-DHAVE_CONFIG_H
  23348. ac_libobjs=
  23349. ac_ltlibobjs=
  23350. U=
  23351. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23352. # 1. Remove the extension, and $U if already installed.
  23353. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23354. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23355. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23356. # will be set to the directory where LIBOBJS objects are built.
  23357. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23358. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23359. done
  23360. LIBOBJS=$ac_libobjs
  23361. LTLIBOBJS=$ac_ltlibobjs
  23362. : "${CONFIG_STATUS=./config.status}"
  23363. ac_write_fail=0
  23364. ac_clean_files_save=$ac_clean_files
  23365. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23366. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23367. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23368. as_write_fail=0
  23369. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23370. #! $SHELL
  23371. # Generated by $as_me.
  23372. # Run this file to recreate the current configuration.
  23373. # Compiler output produced by configure, useful for debugging
  23374. # configure, is in config.log if it exists.
  23375. debug=false
  23376. ac_cs_recheck=false
  23377. ac_cs_silent=false
  23378. SHELL=\${CONFIG_SHELL-$SHELL}
  23379. export SHELL
  23380. _ASEOF
  23381. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23382. ## -------------------- ##
  23383. ## M4sh Initialization. ##
  23384. ## -------------------- ##
  23385. # Be more Bourne compatible
  23386. DUALCASE=1; export DUALCASE # for MKS sh
  23387. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23388. emulate sh
  23389. NULLCMD=:
  23390. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23391. # is contrary to our usage. Disable this feature.
  23392. alias -g '${1+"$@"}'='"$@"'
  23393. setopt NO_GLOB_SUBST
  23394. else
  23395. case `(set -o) 2>/dev/null` in #(
  23396. *posix*) :
  23397. set -o posix ;; #(
  23398. *) :
  23399. ;;
  23400. esac
  23401. fi
  23402. as_nl='
  23403. '
  23404. export as_nl
  23405. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23406. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23407. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23408. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23409. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23410. # but without wasting forks for bash or zsh.
  23411. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23412. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23413. as_echo='print -r --'
  23414. as_echo_n='print -rn --'
  23415. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23416. as_echo='printf %s\n'
  23417. as_echo_n='printf %s'
  23418. else
  23419. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23420. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23421. as_echo_n='/usr/ucb/echo -n'
  23422. else
  23423. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23424. as_echo_n_body='eval
  23425. arg=$1;
  23426. case $arg in #(
  23427. *"$as_nl"*)
  23428. expr "X$arg" : "X\\(.*\\)$as_nl";
  23429. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23430. esac;
  23431. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23432. '
  23433. export as_echo_n_body
  23434. as_echo_n='sh -c $as_echo_n_body as_echo'
  23435. fi
  23436. export as_echo_body
  23437. as_echo='sh -c $as_echo_body as_echo'
  23438. fi
  23439. # The user is always right.
  23440. if test "${PATH_SEPARATOR+set}" != set; then
  23441. PATH_SEPARATOR=:
  23442. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23443. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23444. PATH_SEPARATOR=';'
  23445. }
  23446. fi
  23447. # IFS
  23448. # We need space, tab and new line, in precisely that order. Quoting is
  23449. # there to prevent editors from complaining about space-tab.
  23450. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23451. # splitting by setting IFS to empty value.)
  23452. IFS=" "" $as_nl"
  23453. # Find who we are. Look in the path if we contain no directory separator.
  23454. as_myself=
  23455. case $0 in #((
  23456. *[\\/]* ) as_myself=$0 ;;
  23457. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23458. for as_dir in $PATH
  23459. do
  23460. IFS=$as_save_IFS
  23461. test -z "$as_dir" && as_dir=.
  23462. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23463. done
  23464. IFS=$as_save_IFS
  23465. ;;
  23466. esac
  23467. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23468. # in which case we are not to be found in the path.
  23469. if test "x$as_myself" = x; then
  23470. as_myself=$0
  23471. fi
  23472. if test ! -f "$as_myself"; then
  23473. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23474. exit 1
  23475. fi
  23476. # Unset variables that we do not need and which cause bugs (e.g. in
  23477. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23478. # suppresses any "Segmentation fault" message there. '((' could
  23479. # trigger a bug in pdksh 5.2.14.
  23480. for as_var in BASH_ENV ENV MAIL MAILPATH
  23481. do eval test x\${$as_var+set} = xset \
  23482. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23483. done
  23484. PS1='$ '
  23485. PS2='> '
  23486. PS4='+ '
  23487. # NLS nuisances.
  23488. LC_ALL=C
  23489. export LC_ALL
  23490. LANGUAGE=C
  23491. export LANGUAGE
  23492. # CDPATH.
  23493. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23494. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23495. # ----------------------------------------
  23496. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23497. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23498. # script with STATUS, using 1 if that was 0.
  23499. as_fn_error ()
  23500. {
  23501. as_status=$1; test $as_status -eq 0 && as_status=1
  23502. if test "$4"; then
  23503. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23504. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23505. fi
  23506. $as_echo "$as_me: error: $2" >&2
  23507. as_fn_exit $as_status
  23508. } # as_fn_error
  23509. # as_fn_set_status STATUS
  23510. # -----------------------
  23511. # Set $? to STATUS, without forking.
  23512. as_fn_set_status ()
  23513. {
  23514. return $1
  23515. } # as_fn_set_status
  23516. # as_fn_exit STATUS
  23517. # -----------------
  23518. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23519. as_fn_exit ()
  23520. {
  23521. set +e
  23522. as_fn_set_status $1
  23523. exit $1
  23524. } # as_fn_exit
  23525. # as_fn_unset VAR
  23526. # ---------------
  23527. # Portably unset VAR.
  23528. as_fn_unset ()
  23529. {
  23530. { eval $1=; unset $1;}
  23531. }
  23532. as_unset=as_fn_unset
  23533. # as_fn_append VAR VALUE
  23534. # ----------------------
  23535. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23536. # advantage of any shell optimizations that allow amortized linear growth over
  23537. # repeated appends, instead of the typical quadratic growth present in naive
  23538. # implementations.
  23539. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23540. eval 'as_fn_append ()
  23541. {
  23542. eval $1+=\$2
  23543. }'
  23544. else
  23545. as_fn_append ()
  23546. {
  23547. eval $1=\$$1\$2
  23548. }
  23549. fi # as_fn_append
  23550. # as_fn_arith ARG...
  23551. # ------------------
  23552. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23553. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23554. # must be portable across $(()) and expr.
  23555. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23556. eval 'as_fn_arith ()
  23557. {
  23558. as_val=$(( $* ))
  23559. }'
  23560. else
  23561. as_fn_arith ()
  23562. {
  23563. as_val=`expr "$@" || test $? -eq 1`
  23564. }
  23565. fi # as_fn_arith
  23566. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23567. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23568. as_expr=expr
  23569. else
  23570. as_expr=false
  23571. fi
  23572. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23573. as_basename=basename
  23574. else
  23575. as_basename=false
  23576. fi
  23577. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23578. as_dirname=dirname
  23579. else
  23580. as_dirname=false
  23581. fi
  23582. as_me=`$as_basename -- "$0" ||
  23583. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23584. X"$0" : 'X\(//\)$' \| \
  23585. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23586. $as_echo X/"$0" |
  23587. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23588. s//\1/
  23589. q
  23590. }
  23591. /^X\/\(\/\/\)$/{
  23592. s//\1/
  23593. q
  23594. }
  23595. /^X\/\(\/\).*/{
  23596. s//\1/
  23597. q
  23598. }
  23599. s/.*/./; q'`
  23600. # Avoid depending upon Character Ranges.
  23601. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23602. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23603. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23604. as_cr_digits='0123456789'
  23605. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23606. ECHO_C= ECHO_N= ECHO_T=
  23607. case `echo -n x` in #(((((
  23608. -n*)
  23609. case `echo 'xy\c'` in
  23610. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23611. xy) ECHO_C='\c';;
  23612. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23613. ECHO_T=' ';;
  23614. esac;;
  23615. *)
  23616. ECHO_N='-n';;
  23617. esac
  23618. rm -f conf$$ conf$$.exe conf$$.file
  23619. if test -d conf$$.dir; then
  23620. rm -f conf$$.dir/conf$$.file
  23621. else
  23622. rm -f conf$$.dir
  23623. mkdir conf$$.dir 2>/dev/null
  23624. fi
  23625. if (echo >conf$$.file) 2>/dev/null; then
  23626. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23627. as_ln_s='ln -s'
  23628. # ... but there are two gotchas:
  23629. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23630. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23631. # In both cases, we have to default to `cp -pR'.
  23632. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23633. as_ln_s='cp -pR'
  23634. elif ln conf$$.file conf$$ 2>/dev/null; then
  23635. as_ln_s=ln
  23636. else
  23637. as_ln_s='cp -pR'
  23638. fi
  23639. else
  23640. as_ln_s='cp -pR'
  23641. fi
  23642. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23643. rmdir conf$$.dir 2>/dev/null
  23644. # as_fn_mkdir_p
  23645. # -------------
  23646. # Create "$as_dir" as a directory, including parents if necessary.
  23647. as_fn_mkdir_p ()
  23648. {
  23649. case $as_dir in #(
  23650. -*) as_dir=./$as_dir;;
  23651. esac
  23652. test -d "$as_dir" || eval $as_mkdir_p || {
  23653. as_dirs=
  23654. while :; do
  23655. case $as_dir in #(
  23656. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23657. *) as_qdir=$as_dir;;
  23658. esac
  23659. as_dirs="'$as_qdir' $as_dirs"
  23660. as_dir=`$as_dirname -- "$as_dir" ||
  23661. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23662. X"$as_dir" : 'X\(//\)[^/]' \| \
  23663. X"$as_dir" : 'X\(//\)$' \| \
  23664. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23665. $as_echo X"$as_dir" |
  23666. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23667. s//\1/
  23668. q
  23669. }
  23670. /^X\(\/\/\)[^/].*/{
  23671. s//\1/
  23672. q
  23673. }
  23674. /^X\(\/\/\)$/{
  23675. s//\1/
  23676. q
  23677. }
  23678. /^X\(\/\).*/{
  23679. s//\1/
  23680. q
  23681. }
  23682. s/.*/./; q'`
  23683. test -d "$as_dir" && break
  23684. done
  23685. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23686. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23687. } # as_fn_mkdir_p
  23688. if mkdir -p . 2>/dev/null; then
  23689. as_mkdir_p='mkdir -p "$as_dir"'
  23690. else
  23691. test -d ./-p && rmdir ./-p
  23692. as_mkdir_p=false
  23693. fi
  23694. # as_fn_executable_p FILE
  23695. # -----------------------
  23696. # Test if FILE is an executable regular file.
  23697. as_fn_executable_p ()
  23698. {
  23699. test -f "$1" && test -x "$1"
  23700. } # as_fn_executable_p
  23701. as_test_x='test -x'
  23702. as_executable_p=as_fn_executable_p
  23703. # Sed expression to map a string onto a valid CPP name.
  23704. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23705. # Sed expression to map a string onto a valid variable name.
  23706. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23707. exec 6>&1
  23708. ## ----------------------------------- ##
  23709. ## Main body of $CONFIG_STATUS script. ##
  23710. ## ----------------------------------- ##
  23711. _ASEOF
  23712. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23714. # Save the log message, to keep $0 and so on meaningful, and to
  23715. # report actual input values of CONFIG_FILES etc. instead of their
  23716. # values after options handling.
  23717. ac_log="
  23718. This file was extended by $as_me, which was
  23719. generated by GNU Autoconf 2.69. Invocation command line was
  23720. CONFIG_FILES = $CONFIG_FILES
  23721. CONFIG_HEADERS = $CONFIG_HEADERS
  23722. CONFIG_LINKS = $CONFIG_LINKS
  23723. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23724. $ $0 $@
  23725. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23726. "
  23727. _ACEOF
  23728. case $ac_config_files in *"
  23729. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23730. esac
  23731. case $ac_config_headers in *"
  23732. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23733. esac
  23734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23735. # Files that config.status was made for.
  23736. config_files="$ac_config_files"
  23737. config_headers="$ac_config_headers"
  23738. config_commands="$ac_config_commands"
  23739. _ACEOF
  23740. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23741. ac_cs_usage="\
  23742. \`$as_me' instantiates files and other configuration actions
  23743. from templates according to the current configuration. Unless the files
  23744. and actions are specified as TAGs, all are instantiated by default.
  23745. Usage: $0 [OPTION]... [TAG]...
  23746. -h, --help print this help, then exit
  23747. -V, --version print version number and configuration settings, then exit
  23748. --config print configuration, then exit
  23749. -q, --quiet, --silent
  23750. do not print progress messages
  23751. -d, --debug don't remove temporary files
  23752. --recheck update $as_me by reconfiguring in the same conditions
  23753. --file=FILE[:TEMPLATE]
  23754. instantiate the configuration file FILE
  23755. --header=FILE[:TEMPLATE]
  23756. instantiate the configuration header FILE
  23757. Configuration files:
  23758. $config_files
  23759. Configuration headers:
  23760. $config_headers
  23761. Configuration commands:
  23762. $config_commands
  23763. Report bugs to the package provider."
  23764. _ACEOF
  23765. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23766. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23767. ac_cs_version="\\
  23768. config.status
  23769. configured by $0, generated by GNU Autoconf 2.69,
  23770. with options \\"\$ac_cs_config\\"
  23771. Copyright (C) 2012 Free Software Foundation, Inc.
  23772. This config.status script is free software; the Free Software Foundation
  23773. gives unlimited permission to copy, distribute and modify it."
  23774. ac_pwd='$ac_pwd'
  23775. srcdir='$srcdir'
  23776. INSTALL='$INSTALL'
  23777. AWK='$AWK'
  23778. test -n "\$AWK" || AWK=awk
  23779. _ACEOF
  23780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23781. # The default lists apply if the user does not specify any file.
  23782. ac_need_defaults=:
  23783. while test $# != 0
  23784. do
  23785. case $1 in
  23786. --*=?*)
  23787. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23788. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23789. ac_shift=:
  23790. ;;
  23791. --*=)
  23792. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23793. ac_optarg=
  23794. ac_shift=:
  23795. ;;
  23796. *)
  23797. ac_option=$1
  23798. ac_optarg=$2
  23799. ac_shift=shift
  23800. ;;
  23801. esac
  23802. case $ac_option in
  23803. # Handling of the options.
  23804. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23805. ac_cs_recheck=: ;;
  23806. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23807. $as_echo "$ac_cs_version"; exit ;;
  23808. --config | --confi | --conf | --con | --co | --c )
  23809. $as_echo "$ac_cs_config"; exit ;;
  23810. --debug | --debu | --deb | --de | --d | -d )
  23811. debug=: ;;
  23812. --file | --fil | --fi | --f )
  23813. $ac_shift
  23814. case $ac_optarg in
  23815. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23816. '') as_fn_error $? "missing file argument" ;;
  23817. esac
  23818. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23819. ac_need_defaults=false;;
  23820. --header | --heade | --head | --hea )
  23821. $ac_shift
  23822. case $ac_optarg in
  23823. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23824. esac
  23825. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23826. ac_need_defaults=false;;
  23827. --he | --h)
  23828. # Conflict between --help and --header
  23829. as_fn_error $? "ambiguous option: \`$1'
  23830. Try \`$0 --help' for more information.";;
  23831. --help | --hel | -h )
  23832. $as_echo "$ac_cs_usage"; exit ;;
  23833. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23834. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23835. ac_cs_silent=: ;;
  23836. # This is an error.
  23837. -*) as_fn_error $? "unrecognized option: \`$1'
  23838. Try \`$0 --help' for more information." ;;
  23839. *) as_fn_append ac_config_targets " $1"
  23840. ac_need_defaults=false ;;
  23841. esac
  23842. shift
  23843. done
  23844. ac_configure_extra_args=
  23845. if $ac_cs_silent; then
  23846. exec 6>/dev/null
  23847. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23848. fi
  23849. _ACEOF
  23850. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23851. if \$ac_cs_recheck; then
  23852. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23853. shift
  23854. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23855. CONFIG_SHELL='$SHELL'
  23856. export CONFIG_SHELL
  23857. exec "\$@"
  23858. fi
  23859. _ACEOF
  23860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23861. exec 5>>config.log
  23862. {
  23863. echo
  23864. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23865. ## Running $as_me. ##
  23866. _ASBOX
  23867. $as_echo "$ac_log"
  23868. } >&5
  23869. _ACEOF
  23870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23871. #
  23872. # INIT-COMMANDS
  23873. #
  23874. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23875. # if CDPATH is set.
  23876. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23877. sed_quote_subst='$sed_quote_subst'
  23878. double_quote_subst='$double_quote_subst'
  23879. delay_variable_subst='$delay_variable_subst'
  23880. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23881. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23882. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23883. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23884. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23885. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23886. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23887. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23888. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23889. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23890. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23891. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23892. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23893. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23894. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23895. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23896. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23897. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23898. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23899. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23900. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23901. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23902. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23903. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23904. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23905. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23906. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23907. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23908. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23909. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23910. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23911. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23912. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23913. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23914. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23915. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23916. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23917. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23918. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23919. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23920. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23921. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23922. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23923. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23924. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23925. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23926. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23927. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23928. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23929. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23930. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23931. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23932. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23933. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23934. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23935. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23936. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23937. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23938. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23939. 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"`'
  23940. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23941. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23942. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23943. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23944. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23945. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23946. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23947. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23948. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23949. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23950. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23951. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23952. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23953. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23954. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23955. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23956. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23957. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23958. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23959. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23960. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23961. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23962. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23963. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23964. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23965. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23966. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23967. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23968. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23969. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23970. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23971. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23972. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23973. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23974. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23975. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23976. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23977. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23978. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23979. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23980. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23981. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23982. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23983. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23984. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23985. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23986. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23987. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23988. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23989. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23990. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23991. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23992. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23993. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23994. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23995. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23996. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23997. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23998. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23999. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24000. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24001. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24002. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24003. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24004. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24005. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24006. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24007. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24008. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24009. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24010. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24011. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24012. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24013. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24014. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24015. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24016. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24017. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24018. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24019. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24020. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24021. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24022. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24023. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24024. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24025. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24026. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24027. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24028. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24029. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24030. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24031. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24032. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24033. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24034. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24035. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24036. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24037. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24038. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24039. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24040. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24041. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24042. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24043. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24044. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24045. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24046. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24047. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24048. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24049. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24050. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24051. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24052. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24053. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24054. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24055. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24056. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24057. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24058. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24059. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24060. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24061. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24062. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24063. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24064. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24065. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24066. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24067. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24068. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24069. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24070. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24071. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24072. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24073. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24074. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24075. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24076. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24077. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24078. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24079. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24080. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24081. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24082. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24083. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24084. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24085. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24086. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24087. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24088. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24089. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24090. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24091. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24092. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24093. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24094. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24095. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24096. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24097. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24098. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24099. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24100. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24101. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24102. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24103. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24104. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24105. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24106. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24107. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24108. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24109. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24110. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24111. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24112. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24113. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24114. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24115. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24116. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24117. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24118. LTCC='$LTCC'
  24119. LTCFLAGS='$LTCFLAGS'
  24120. compiler='$compiler_DEFAULT'
  24121. # A function that is used when there is no print builtin or printf.
  24122. func_fallback_echo ()
  24123. {
  24124. eval 'cat <<_LTECHO_EOF
  24125. \$1
  24126. _LTECHO_EOF'
  24127. }
  24128. # Quote evaled strings.
  24129. for var in AS \
  24130. DLLTOOL \
  24131. OBJDUMP \
  24132. SHELL \
  24133. ECHO \
  24134. PATH_SEPARATOR \
  24135. SED \
  24136. GREP \
  24137. EGREP \
  24138. FGREP \
  24139. LD \
  24140. NM \
  24141. LN_S \
  24142. lt_SP2NL \
  24143. lt_NL2SP \
  24144. reload_flag \
  24145. deplibs_check_method \
  24146. file_magic_cmd \
  24147. file_magic_glob \
  24148. want_nocaseglob \
  24149. sharedlib_from_linklib_cmd \
  24150. AR \
  24151. AR_FLAGS \
  24152. archiver_list_spec \
  24153. STRIP \
  24154. RANLIB \
  24155. CC \
  24156. CFLAGS \
  24157. compiler \
  24158. lt_cv_sys_global_symbol_pipe \
  24159. lt_cv_sys_global_symbol_to_cdecl \
  24160. lt_cv_sys_global_symbol_to_import \
  24161. lt_cv_sys_global_symbol_to_c_name_address \
  24162. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24163. lt_cv_nm_interface \
  24164. nm_file_list_spec \
  24165. lt_cv_truncate_bin \
  24166. lt_prog_compiler_no_builtin_flag \
  24167. lt_prog_compiler_pic \
  24168. lt_prog_compiler_wl \
  24169. lt_prog_compiler_static \
  24170. lt_cv_prog_compiler_c_o \
  24171. need_locks \
  24172. MANIFEST_TOOL \
  24173. DSYMUTIL \
  24174. NMEDIT \
  24175. LIPO \
  24176. OTOOL \
  24177. OTOOL64 \
  24178. shrext_cmds \
  24179. export_dynamic_flag_spec \
  24180. whole_archive_flag_spec \
  24181. compiler_needs_object \
  24182. with_gnu_ld \
  24183. allow_undefined_flag \
  24184. no_undefined_flag \
  24185. hardcode_libdir_flag_spec \
  24186. hardcode_libdir_separator \
  24187. exclude_expsyms \
  24188. include_expsyms \
  24189. file_list_spec \
  24190. variables_saved_for_relink \
  24191. libname_spec \
  24192. library_names_spec \
  24193. soname_spec \
  24194. install_override_mode \
  24195. finish_eval \
  24196. old_striplib \
  24197. striplib \
  24198. compiler_lib_search_dirs \
  24199. predep_objects \
  24200. postdep_objects \
  24201. predeps \
  24202. postdeps \
  24203. compiler_lib_search_path \
  24204. LD_RC \
  24205. LD_CXX \
  24206. reload_flag_RC \
  24207. reload_flag_CXX \
  24208. compiler_RC \
  24209. compiler_CXX \
  24210. lt_prog_compiler_no_builtin_flag_RC \
  24211. lt_prog_compiler_no_builtin_flag_CXX \
  24212. lt_prog_compiler_pic_RC \
  24213. lt_prog_compiler_pic_CXX \
  24214. lt_prog_compiler_wl_RC \
  24215. lt_prog_compiler_wl_CXX \
  24216. lt_prog_compiler_static_RC \
  24217. lt_prog_compiler_static_CXX \
  24218. lt_cv_prog_compiler_c_o_RC \
  24219. lt_cv_prog_compiler_c_o_CXX \
  24220. export_dynamic_flag_spec_RC \
  24221. export_dynamic_flag_spec_CXX \
  24222. whole_archive_flag_spec_RC \
  24223. whole_archive_flag_spec_CXX \
  24224. compiler_needs_object_RC \
  24225. compiler_needs_object_CXX \
  24226. with_gnu_ld_RC \
  24227. with_gnu_ld_CXX \
  24228. allow_undefined_flag_RC \
  24229. allow_undefined_flag_CXX \
  24230. no_undefined_flag_RC \
  24231. no_undefined_flag_CXX \
  24232. hardcode_libdir_flag_spec_RC \
  24233. hardcode_libdir_flag_spec_CXX \
  24234. hardcode_libdir_separator_RC \
  24235. hardcode_libdir_separator_CXX \
  24236. exclude_expsyms_RC \
  24237. exclude_expsyms_CXX \
  24238. include_expsyms_RC \
  24239. include_expsyms_CXX \
  24240. file_list_spec_RC \
  24241. file_list_spec_CXX \
  24242. compiler_lib_search_dirs_RC \
  24243. compiler_lib_search_dirs_CXX \
  24244. predep_objects_RC \
  24245. predep_objects_CXX \
  24246. postdep_objects_RC \
  24247. postdep_objects_CXX \
  24248. predeps_RC \
  24249. predeps_CXX \
  24250. postdeps_RC \
  24251. postdeps_CXX \
  24252. compiler_lib_search_path_RC \
  24253. compiler_lib_search_path_CXX; do
  24254. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24255. *[\\\\\\\`\\"\\\$]*)
  24256. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24257. ;;
  24258. *)
  24259. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24260. ;;
  24261. esac
  24262. done
  24263. # Double-quote double-evaled strings.
  24264. for var in reload_cmds \
  24265. old_postinstall_cmds \
  24266. old_postuninstall_cmds \
  24267. old_archive_cmds \
  24268. extract_expsyms_cmds \
  24269. old_archive_from_new_cmds \
  24270. old_archive_from_expsyms_cmds \
  24271. archive_cmds \
  24272. archive_expsym_cmds \
  24273. module_cmds \
  24274. module_expsym_cmds \
  24275. export_symbols_cmds \
  24276. prelink_cmds \
  24277. postlink_cmds \
  24278. postinstall_cmds \
  24279. postuninstall_cmds \
  24280. finish_cmds \
  24281. sys_lib_search_path_spec \
  24282. configure_time_dlsearch_path \
  24283. configure_time_lt_sys_library_path \
  24284. reload_cmds_RC \
  24285. reload_cmds_CXX \
  24286. old_archive_cmds_RC \
  24287. old_archive_cmds_CXX \
  24288. old_archive_from_new_cmds_RC \
  24289. old_archive_from_new_cmds_CXX \
  24290. old_archive_from_expsyms_cmds_RC \
  24291. old_archive_from_expsyms_cmds_CXX \
  24292. archive_cmds_RC \
  24293. archive_cmds_CXX \
  24294. archive_expsym_cmds_RC \
  24295. archive_expsym_cmds_CXX \
  24296. module_cmds_RC \
  24297. module_cmds_CXX \
  24298. module_expsym_cmds_RC \
  24299. module_expsym_cmds_CXX \
  24300. export_symbols_cmds_RC \
  24301. export_symbols_cmds_CXX \
  24302. prelink_cmds_RC \
  24303. prelink_cmds_CXX \
  24304. postlink_cmds_RC \
  24305. postlink_cmds_CXX; do
  24306. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24307. *[\\\\\\\`\\"\\\$]*)
  24308. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24309. ;;
  24310. *)
  24311. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24312. ;;
  24313. esac
  24314. done
  24315. ac_aux_dir='$ac_aux_dir'
  24316. # See if we are running on zsh, and set the options that allow our
  24317. # commands through without removal of \ escapes INIT.
  24318. if test -n "\${ZSH_VERSION+set}"; then
  24319. setopt NO_GLOB_SUBST
  24320. fi
  24321. PACKAGE='$PACKAGE'
  24322. VERSION='$VERSION'
  24323. RM='$RM'
  24324. ofile='$ofile'
  24325. SUMMARY="$SUMMARY"
  24326. _ACEOF
  24327. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24328. # Handling of arguments.
  24329. for ac_config_target in $ac_config_targets
  24330. do
  24331. case $ac_config_target in
  24332. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24333. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24334. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24335. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24336. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24337. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24338. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24339. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24340. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24341. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24342. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24343. esac
  24344. done
  24345. # If the user did not use the arguments to specify the items to instantiate,
  24346. # then the envvar interface is used. Set only those that are not.
  24347. # We use the long form for the default assignment because of an extremely
  24348. # bizarre bug on SunOS 4.1.3.
  24349. if $ac_need_defaults; then
  24350. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24351. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24352. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24353. fi
  24354. # Have a temporary directory for convenience. Make it in the build tree
  24355. # simply because there is no reason against having it here, and in addition,
  24356. # creating and moving files from /tmp can sometimes cause problems.
  24357. # Hook for its removal unless debugging.
  24358. # Note that there is a small window in which the directory will not be cleaned:
  24359. # after its creation but before its name has been assigned to `$tmp'.
  24360. $debug ||
  24361. {
  24362. tmp= ac_tmp=
  24363. trap 'exit_status=$?
  24364. : "${ac_tmp:=$tmp}"
  24365. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24366. ' 0
  24367. trap 'as_fn_exit 1' 1 2 13 15
  24368. }
  24369. # Create a (secure) tmp directory for tmp files.
  24370. {
  24371. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24372. test -d "$tmp"
  24373. } ||
  24374. {
  24375. tmp=./conf$$-$RANDOM
  24376. (umask 077 && mkdir "$tmp")
  24377. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24378. ac_tmp=$tmp
  24379. # Set up the scripts for CONFIG_FILES section.
  24380. # No need to generate them if there are no CONFIG_FILES.
  24381. # This happens for instance with `./config.status config.h'.
  24382. if test -n "$CONFIG_FILES"; then
  24383. ac_cr=`echo X | tr X '\015'`
  24384. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24385. # But we know of no other shell where ac_cr would be empty at this
  24386. # point, so we can use a bashism as a fallback.
  24387. if test "x$ac_cr" = x; then
  24388. eval ac_cr=\$\'\\r\'
  24389. fi
  24390. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24391. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24392. ac_cs_awk_cr='\\r'
  24393. else
  24394. ac_cs_awk_cr=$ac_cr
  24395. fi
  24396. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24397. _ACEOF
  24398. {
  24399. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24400. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24401. echo "_ACEOF"
  24402. } >conf$$subs.sh ||
  24403. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24404. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24405. ac_delim='%!_!# '
  24406. for ac_last_try in false false false false false :; do
  24407. . ./conf$$subs.sh ||
  24408. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24409. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24410. if test $ac_delim_n = $ac_delim_num; then
  24411. break
  24412. elif $ac_last_try; then
  24413. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24414. else
  24415. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24416. fi
  24417. done
  24418. rm -f conf$$subs.sh
  24419. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24420. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24421. _ACEOF
  24422. sed -n '
  24423. h
  24424. s/^/S["/; s/!.*/"]=/
  24425. p
  24426. g
  24427. s/^[^!]*!//
  24428. :repl
  24429. t repl
  24430. s/'"$ac_delim"'$//
  24431. t delim
  24432. :nl
  24433. h
  24434. s/\(.\{148\}\)..*/\1/
  24435. t more1
  24436. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24437. p
  24438. n
  24439. b repl
  24440. :more1
  24441. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24442. p
  24443. g
  24444. s/.\{148\}//
  24445. t nl
  24446. :delim
  24447. h
  24448. s/\(.\{148\}\)..*/\1/
  24449. t more2
  24450. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24451. p
  24452. b
  24453. :more2
  24454. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24455. p
  24456. g
  24457. s/.\{148\}//
  24458. t delim
  24459. ' <conf$$subs.awk | sed '
  24460. /^[^""]/{
  24461. N
  24462. s/\n//
  24463. }
  24464. ' >>$CONFIG_STATUS || ac_write_fail=1
  24465. rm -f conf$$subs.awk
  24466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24467. _ACAWK
  24468. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24469. for (key in S) S_is_set[key] = 1
  24470. FS = ""
  24471. }
  24472. {
  24473. line = $ 0
  24474. nfields = split(line, field, "@")
  24475. substed = 0
  24476. len = length(field[1])
  24477. for (i = 2; i < nfields; i++) {
  24478. key = field[i]
  24479. keylen = length(key)
  24480. if (S_is_set[key]) {
  24481. value = S[key]
  24482. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24483. len += length(value) + length(field[++i])
  24484. substed = 1
  24485. } else
  24486. len += 1 + keylen
  24487. }
  24488. print line
  24489. }
  24490. _ACAWK
  24491. _ACEOF
  24492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24493. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24494. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24495. else
  24496. cat
  24497. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24498. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24499. _ACEOF
  24500. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24501. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24502. # trailing colons and then remove the whole line if VPATH becomes empty
  24503. # (actually we leave an empty line to preserve line numbers).
  24504. if test "x$srcdir" = x.; then
  24505. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24506. h
  24507. s///
  24508. s/^/:/
  24509. s/[ ]*$/:/
  24510. s/:\$(srcdir):/:/g
  24511. s/:\${srcdir}:/:/g
  24512. s/:@srcdir@:/:/g
  24513. s/^:*//
  24514. s/:*$//
  24515. x
  24516. s/\(=[ ]*\).*/\1/
  24517. G
  24518. s/\n//
  24519. s/^[^=]*=[ ]*$//
  24520. }'
  24521. fi
  24522. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24523. fi # test -n "$CONFIG_FILES"
  24524. # Set up the scripts for CONFIG_HEADERS section.
  24525. # No need to generate them if there are no CONFIG_HEADERS.
  24526. # This happens for instance with `./config.status Makefile'.
  24527. if test -n "$CONFIG_HEADERS"; then
  24528. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24529. BEGIN {
  24530. _ACEOF
  24531. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24532. # here-document in config.status, that substitutes the proper values into
  24533. # config.h.in to produce config.h.
  24534. # Create a delimiter string that does not exist in confdefs.h, to ease
  24535. # handling of long lines.
  24536. ac_delim='%!_!# '
  24537. for ac_last_try in false false :; do
  24538. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24539. if test -z "$ac_tt"; then
  24540. break
  24541. elif $ac_last_try; then
  24542. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24543. else
  24544. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24545. fi
  24546. done
  24547. # For the awk script, D is an array of macro values keyed by name,
  24548. # likewise P contains macro parameters if any. Preserve backslash
  24549. # newline sequences.
  24550. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24551. sed -n '
  24552. s/.\{148\}/&'"$ac_delim"'/g
  24553. t rset
  24554. :rset
  24555. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24556. t def
  24557. d
  24558. :def
  24559. s/\\$//
  24560. t bsnl
  24561. s/["\\]/\\&/g
  24562. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24563. D["\1"]=" \3"/p
  24564. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24565. d
  24566. :bsnl
  24567. s/["\\]/\\&/g
  24568. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24569. D["\1"]=" \3\\\\\\n"\\/p
  24570. t cont
  24571. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24572. t cont
  24573. d
  24574. :cont
  24575. n
  24576. s/.\{148\}/&'"$ac_delim"'/g
  24577. t clear
  24578. :clear
  24579. s/\\$//
  24580. t bsnlc
  24581. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24582. d
  24583. :bsnlc
  24584. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24585. b cont
  24586. ' <confdefs.h | sed '
  24587. s/'"$ac_delim"'/"\\\
  24588. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24590. for (key in D) D_is_set[key] = 1
  24591. FS = ""
  24592. }
  24593. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24594. line = \$ 0
  24595. split(line, arg, " ")
  24596. if (arg[1] == "#") {
  24597. defundef = arg[2]
  24598. mac1 = arg[3]
  24599. } else {
  24600. defundef = substr(arg[1], 2)
  24601. mac1 = arg[2]
  24602. }
  24603. split(mac1, mac2, "(") #)
  24604. macro = mac2[1]
  24605. prefix = substr(line, 1, index(line, defundef) - 1)
  24606. if (D_is_set[macro]) {
  24607. # Preserve the white space surrounding the "#".
  24608. print prefix "define", macro P[macro] D[macro]
  24609. next
  24610. } else {
  24611. # Replace #undef with comments. This is necessary, for example,
  24612. # in the case of _POSIX_SOURCE, which is predefined and required
  24613. # on some systems where configure will not decide to define it.
  24614. if (defundef == "undef") {
  24615. print "/*", prefix defundef, macro, "*/"
  24616. next
  24617. }
  24618. }
  24619. }
  24620. { print }
  24621. _ACAWK
  24622. _ACEOF
  24623. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24624. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24625. fi # test -n "$CONFIG_HEADERS"
  24626. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24627. shift
  24628. for ac_tag
  24629. do
  24630. case $ac_tag in
  24631. :[FHLC]) ac_mode=$ac_tag; continue;;
  24632. esac
  24633. case $ac_mode$ac_tag in
  24634. :[FHL]*:*);;
  24635. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24636. :[FH]-) ac_tag=-:-;;
  24637. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24638. esac
  24639. ac_save_IFS=$IFS
  24640. IFS=:
  24641. set x $ac_tag
  24642. IFS=$ac_save_IFS
  24643. shift
  24644. ac_file=$1
  24645. shift
  24646. case $ac_mode in
  24647. :L) ac_source=$1;;
  24648. :[FH])
  24649. ac_file_inputs=
  24650. for ac_f
  24651. do
  24652. case $ac_f in
  24653. -) ac_f="$ac_tmp/stdin";;
  24654. *) # Look for the file first in the build tree, then in the source tree
  24655. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24656. # because $ac_f cannot contain `:'.
  24657. test -f "$ac_f" ||
  24658. case $ac_f in
  24659. [\\/$]*) false;;
  24660. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24661. esac ||
  24662. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24663. esac
  24664. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24665. as_fn_append ac_file_inputs " '$ac_f'"
  24666. done
  24667. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24668. # use $as_me), people would be surprised to read:
  24669. # /* config.h. Generated by config.status. */
  24670. configure_input='Generated from '`
  24671. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24672. `' by configure.'
  24673. if test x"$ac_file" != x-; then
  24674. configure_input="$ac_file. $configure_input"
  24675. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24676. $as_echo "$as_me: creating $ac_file" >&6;}
  24677. fi
  24678. # Neutralize special characters interpreted by sed in replacement strings.
  24679. case $configure_input in #(
  24680. *\&* | *\|* | *\\* )
  24681. ac_sed_conf_input=`$as_echo "$configure_input" |
  24682. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24683. *) ac_sed_conf_input=$configure_input;;
  24684. esac
  24685. case $ac_tag in
  24686. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24687. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24688. esac
  24689. ;;
  24690. esac
  24691. ac_dir=`$as_dirname -- "$ac_file" ||
  24692. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24693. X"$ac_file" : 'X\(//\)[^/]' \| \
  24694. X"$ac_file" : 'X\(//\)$' \| \
  24695. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24696. $as_echo X"$ac_file" |
  24697. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24698. s//\1/
  24699. q
  24700. }
  24701. /^X\(\/\/\)[^/].*/{
  24702. s//\1/
  24703. q
  24704. }
  24705. /^X\(\/\/\)$/{
  24706. s//\1/
  24707. q
  24708. }
  24709. /^X\(\/\).*/{
  24710. s//\1/
  24711. q
  24712. }
  24713. s/.*/./; q'`
  24714. as_dir="$ac_dir"; as_fn_mkdir_p
  24715. ac_builddir=.
  24716. case "$ac_dir" in
  24717. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24718. *)
  24719. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24720. # A ".." for each directory in $ac_dir_suffix.
  24721. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24722. case $ac_top_builddir_sub in
  24723. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24724. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24725. esac ;;
  24726. esac
  24727. ac_abs_top_builddir=$ac_pwd
  24728. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24729. # for backward compatibility:
  24730. ac_top_builddir=$ac_top_build_prefix
  24731. case $srcdir in
  24732. .) # We are building in place.
  24733. ac_srcdir=.
  24734. ac_top_srcdir=$ac_top_builddir_sub
  24735. ac_abs_top_srcdir=$ac_pwd ;;
  24736. [\\/]* | ?:[\\/]* ) # Absolute name.
  24737. ac_srcdir=$srcdir$ac_dir_suffix;
  24738. ac_top_srcdir=$srcdir
  24739. ac_abs_top_srcdir=$srcdir ;;
  24740. *) # Relative name.
  24741. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24742. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24743. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24744. esac
  24745. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24746. case $ac_mode in
  24747. :F)
  24748. #
  24749. # CONFIG_FILE
  24750. #
  24751. case $INSTALL in
  24752. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24753. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24754. esac
  24755. _ACEOF
  24756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24757. # If the template does not know about datarootdir, expand it.
  24758. # FIXME: This hack should be removed a few years after 2.60.
  24759. ac_datarootdir_hack=; ac_datarootdir_seen=
  24760. ac_sed_dataroot='
  24761. /datarootdir/ {
  24762. p
  24763. q
  24764. }
  24765. /@datadir@/p
  24766. /@docdir@/p
  24767. /@infodir@/p
  24768. /@localedir@/p
  24769. /@mandir@/p'
  24770. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24771. *datarootdir*) ac_datarootdir_seen=yes;;
  24772. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24774. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24775. _ACEOF
  24776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24777. ac_datarootdir_hack='
  24778. s&@datadir@&$datadir&g
  24779. s&@docdir@&$docdir&g
  24780. s&@infodir@&$infodir&g
  24781. s&@localedir@&$localedir&g
  24782. s&@mandir@&$mandir&g
  24783. s&\\\${datarootdir}&$datarootdir&g' ;;
  24784. esac
  24785. _ACEOF
  24786. # Neutralize VPATH when `$srcdir' = `.'.
  24787. # Shell code in configure.ac might set extrasub.
  24788. # FIXME: do we really want to maintain this feature?
  24789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24790. ac_sed_extra="$ac_vpsub
  24791. $extrasub
  24792. _ACEOF
  24793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24794. :t
  24795. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24796. s|@configure_input@|$ac_sed_conf_input|;t t
  24797. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24798. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24799. s&@srcdir@&$ac_srcdir&;t t
  24800. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24801. s&@top_srcdir@&$ac_top_srcdir&;t t
  24802. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24803. s&@builddir@&$ac_builddir&;t t
  24804. s&@abs_builddir@&$ac_abs_builddir&;t t
  24805. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24806. s&@INSTALL@&$ac_INSTALL&;t t
  24807. $ac_datarootdir_hack
  24808. "
  24809. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24810. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24811. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24812. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24813. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24814. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24816. which seems to be undefined. Please make sure it is defined" >&5
  24817. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24818. which seems to be undefined. Please make sure it is defined" >&2;}
  24819. rm -f "$ac_tmp/stdin"
  24820. case $ac_file in
  24821. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24822. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24823. esac \
  24824. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24825. ;;
  24826. :H)
  24827. #
  24828. # CONFIG_HEADER
  24829. #
  24830. if test x"$ac_file" != x-; then
  24831. {
  24832. $as_echo "/* $configure_input */" \
  24833. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24834. } >"$ac_tmp/config.h" \
  24835. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24836. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24837. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24838. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24839. else
  24840. rm -f "$ac_file"
  24841. mv "$ac_tmp/config.h" "$ac_file" \
  24842. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24843. fi
  24844. else
  24845. $as_echo "/* $configure_input */" \
  24846. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24847. || as_fn_error $? "could not create -" "$LINENO" 5
  24848. fi
  24849. ;;
  24850. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24851. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24852. ;;
  24853. esac
  24854. case $ac_file$ac_mode in
  24855. "libtool":C)
  24856. # See if we are running on zsh, and set the options that allow our
  24857. # commands through without removal of \ escapes.
  24858. if test -n "${ZSH_VERSION+set}"; then
  24859. setopt NO_GLOB_SUBST
  24860. fi
  24861. cfgfile=${ofile}T
  24862. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24863. $RM "$cfgfile"
  24864. cat <<_LT_EOF >> "$cfgfile"
  24865. #! $SHELL
  24866. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24867. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24868. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24869. # Provide generalized library-building support services.
  24870. # Written by Gordon Matzigkeit, 1996
  24871. # Copyright (C) 2014 Free Software Foundation, Inc.
  24872. # This is free software; see the source for copying conditions. There is NO
  24873. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24874. # GNU Libtool is free software; you can redistribute it and/or modify
  24875. # it under the terms of the GNU General Public License as published by
  24876. # the Free Software Foundation; either version 2 of of the License, or
  24877. # (at your option) any later version.
  24878. #
  24879. # As a special exception to the GNU General Public License, if you
  24880. # distribute this file as part of a program or library that is built
  24881. # using GNU Libtool, you may include this file under the same
  24882. # distribution terms that you use for the rest of that program.
  24883. #
  24884. # GNU Libtool is distributed in the hope that it will be useful, but
  24885. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24886. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24887. # GNU General Public License for more details.
  24888. #
  24889. # You should have received a copy of the GNU General Public License
  24890. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24891. # The names of the tagged configurations supported by this script.
  24892. available_tags='RC CXX '
  24893. # Configured defaults for sys_lib_dlsearch_path munging.
  24894. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24895. # ### BEGIN LIBTOOL CONFIG
  24896. # Which release of libtool.m4 was used?
  24897. macro_version=$macro_version
  24898. macro_revision=$macro_revision
  24899. # Assembler program.
  24900. AS=$lt_AS
  24901. # DLL creation program.
  24902. DLLTOOL=$lt_DLLTOOL
  24903. # Object dumper program.
  24904. OBJDUMP=$lt_OBJDUMP
  24905. # Whether or not to build shared libraries.
  24906. build_libtool_libs=$enable_shared
  24907. # Whether or not to build static libraries.
  24908. build_old_libs=$enable_static
  24909. # What type of objects to build.
  24910. pic_mode=$pic_mode
  24911. # Whether or not to optimize for fast installation.
  24912. fast_install=$enable_fast_install
  24913. # Shared archive member basename,for filename based shared library versioning on AIX.
  24914. shared_archive_member_spec=$shared_archive_member_spec
  24915. # Shell to use when invoking shell scripts.
  24916. SHELL=$lt_SHELL
  24917. # An echo program that protects backslashes.
  24918. ECHO=$lt_ECHO
  24919. # The PATH separator for the build system.
  24920. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24921. # The host system.
  24922. host_alias=$host_alias
  24923. host=$host
  24924. host_os=$host_os
  24925. # The build system.
  24926. build_alias=$build_alias
  24927. build=$build
  24928. build_os=$build_os
  24929. # A sed program that does not truncate output.
  24930. SED=$lt_SED
  24931. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24932. Xsed="\$SED -e 1s/^X//"
  24933. # A grep program that handles long lines.
  24934. GREP=$lt_GREP
  24935. # An ERE matcher.
  24936. EGREP=$lt_EGREP
  24937. # A literal string matcher.
  24938. FGREP=$lt_FGREP
  24939. # A BSD- or MS-compatible name lister.
  24940. NM=$lt_NM
  24941. # Whether we need soft or hard links.
  24942. LN_S=$lt_LN_S
  24943. # What is the maximum length of a command?
  24944. max_cmd_len=$max_cmd_len
  24945. # Object file suffix (normally "o").
  24946. objext=$ac_objext
  24947. # Executable file suffix (normally "").
  24948. exeext=$exeext
  24949. # whether the shell understands "unset".
  24950. lt_unset=$lt_unset
  24951. # turn spaces into newlines.
  24952. SP2NL=$lt_lt_SP2NL
  24953. # turn newlines into spaces.
  24954. NL2SP=$lt_lt_NL2SP
  24955. # convert \$build file names to \$host format.
  24956. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24957. # convert \$build files to toolchain format.
  24958. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24959. # Method to check whether dependent libraries are shared objects.
  24960. deplibs_check_method=$lt_deplibs_check_method
  24961. # Command to use when deplibs_check_method = "file_magic".
  24962. file_magic_cmd=$lt_file_magic_cmd
  24963. # How to find potential files when deplibs_check_method = "file_magic".
  24964. file_magic_glob=$lt_file_magic_glob
  24965. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24966. want_nocaseglob=$lt_want_nocaseglob
  24967. # Command to associate shared and link libraries.
  24968. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24969. # The archiver.
  24970. AR=$lt_AR
  24971. # Flags to create an archive.
  24972. AR_FLAGS=$lt_AR_FLAGS
  24973. # How to feed a file listing to the archiver.
  24974. archiver_list_spec=$lt_archiver_list_spec
  24975. # A symbol stripping program.
  24976. STRIP=$lt_STRIP
  24977. # Commands used to install an old-style archive.
  24978. RANLIB=$lt_RANLIB
  24979. old_postinstall_cmds=$lt_old_postinstall_cmds
  24980. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24981. # Whether to use a lock for old archive extraction.
  24982. lock_old_archive_extraction=$lock_old_archive_extraction
  24983. # A C compiler.
  24984. LTCC=$lt_CC
  24985. # LTCC compiler flags.
  24986. LTCFLAGS=$lt_CFLAGS
  24987. # Take the output of nm and produce a listing of raw symbols and C names.
  24988. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24989. # Transform the output of nm in a proper C declaration.
  24990. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24991. # Transform the output of nm into a list of symbols to manually relocate.
  24992. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24993. # Transform the output of nm in a C name address pair.
  24994. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24995. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24996. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24997. # The name lister interface.
  24998. nm_interface=$lt_lt_cv_nm_interface
  24999. # Specify filename containing input files for \$NM.
  25000. nm_file_list_spec=$lt_nm_file_list_spec
  25001. # The root where to search for dependent libraries,and where our libraries should be installed.
  25002. lt_sysroot=$lt_sysroot
  25003. # Command to truncate a binary pipe.
  25004. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25005. # The name of the directory that contains temporary libtool files.
  25006. objdir=$objdir
  25007. # Used to examine libraries when file_magic_cmd begins with "file".
  25008. MAGIC_CMD=$MAGIC_CMD
  25009. # Must we lock files when doing compilation?
  25010. need_locks=$lt_need_locks
  25011. # Manifest tool.
  25012. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25013. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25014. DSYMUTIL=$lt_DSYMUTIL
  25015. # Tool to change global to local symbols on Mac OS X.
  25016. NMEDIT=$lt_NMEDIT
  25017. # Tool to manipulate fat objects and archives on Mac OS X.
  25018. LIPO=$lt_LIPO
  25019. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25020. OTOOL=$lt_OTOOL
  25021. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25022. OTOOL64=$lt_OTOOL64
  25023. # Old archive suffix (normally "a").
  25024. libext=$libext
  25025. # Shared library suffix (normally ".so").
  25026. shrext_cmds=$lt_shrext_cmds
  25027. # The commands to extract the exported symbol list from a shared archive.
  25028. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25029. # Variables whose values should be saved in libtool wrapper scripts and
  25030. # restored at link time.
  25031. variables_saved_for_relink=$lt_variables_saved_for_relink
  25032. # Do we need the "lib" prefix for modules?
  25033. need_lib_prefix=$need_lib_prefix
  25034. # Do we need a version for libraries?
  25035. need_version=$need_version
  25036. # Library versioning type.
  25037. version_type=$version_type
  25038. # Shared library runtime path variable.
  25039. runpath_var=$runpath_var
  25040. # Shared library path variable.
  25041. shlibpath_var=$shlibpath_var
  25042. # Is shlibpath searched before the hard-coded library search path?
  25043. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25044. # Format of library name prefix.
  25045. libname_spec=$lt_libname_spec
  25046. # List of archive names. First name is the real one, the rest are links.
  25047. # The last name is the one that the linker finds with -lNAME
  25048. library_names_spec=$lt_library_names_spec
  25049. # The coded name of the library, if different from the real name.
  25050. soname_spec=$lt_soname_spec
  25051. # Permission mode override for installation of shared libraries.
  25052. install_override_mode=$lt_install_override_mode
  25053. # Command to use after installation of a shared archive.
  25054. postinstall_cmds=$lt_postinstall_cmds
  25055. # Command to use after uninstallation of a shared archive.
  25056. postuninstall_cmds=$lt_postuninstall_cmds
  25057. # Commands used to finish a libtool library installation in a directory.
  25058. finish_cmds=$lt_finish_cmds
  25059. # As "finish_cmds", except a single script fragment to be evaled but
  25060. # not shown.
  25061. finish_eval=$lt_finish_eval
  25062. # Whether we should hardcode library paths into libraries.
  25063. hardcode_into_libs=$hardcode_into_libs
  25064. # Compile-time system search path for libraries.
  25065. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25066. # Detected run-time system search path for libraries.
  25067. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25068. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25069. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25070. # Whether dlopen is supported.
  25071. dlopen_support=$enable_dlopen
  25072. # Whether dlopen of programs is supported.
  25073. dlopen_self=$enable_dlopen_self
  25074. # Whether dlopen of statically linked programs is supported.
  25075. dlopen_self_static=$enable_dlopen_self_static
  25076. # Commands to strip libraries.
  25077. old_striplib=$lt_old_striplib
  25078. striplib=$lt_striplib
  25079. # The linker used to build libraries.
  25080. LD=$lt_LD
  25081. # How to create reloadable object files.
  25082. reload_flag=$lt_reload_flag
  25083. reload_cmds=$lt_reload_cmds
  25084. # Commands used to build an old-style archive.
  25085. old_archive_cmds=$lt_old_archive_cmds
  25086. # A language specific compiler.
  25087. CC=$lt_compiler
  25088. # Is the compiler the GNU compiler?
  25089. with_gcc=$GCC
  25090. # Compiler flag to turn off builtin functions.
  25091. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25092. # Additional compiler flags for building library objects.
  25093. pic_flag=$lt_lt_prog_compiler_pic
  25094. # How to pass a linker flag through the compiler.
  25095. wl=$lt_lt_prog_compiler_wl
  25096. # Compiler flag to prevent dynamic linking.
  25097. link_static_flag=$lt_lt_prog_compiler_static
  25098. # Does compiler simultaneously support -c and -o options?
  25099. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25100. # Whether or not to add -lc for building shared libraries.
  25101. build_libtool_need_lc=$archive_cmds_need_lc
  25102. # Whether or not to disallow shared libs when runtime libs are static.
  25103. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25104. # Compiler flag to allow reflexive dlopens.
  25105. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25106. # Compiler flag to generate shared objects directly from archives.
  25107. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25108. # Whether the compiler copes with passing no objects directly.
  25109. compiler_needs_object=$lt_compiler_needs_object
  25110. # Create an old-style archive from a shared archive.
  25111. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25112. # Create a temporary old-style archive to link instead of a shared archive.
  25113. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25114. # Commands used to build a shared archive.
  25115. archive_cmds=$lt_archive_cmds
  25116. archive_expsym_cmds=$lt_archive_expsym_cmds
  25117. # Commands used to build a loadable module if different from building
  25118. # a shared archive.
  25119. module_cmds=$lt_module_cmds
  25120. module_expsym_cmds=$lt_module_expsym_cmds
  25121. # Whether we are building with GNU ld or not.
  25122. with_gnu_ld=$lt_with_gnu_ld
  25123. # Flag that allows shared libraries with undefined symbols to be built.
  25124. allow_undefined_flag=$lt_allow_undefined_flag
  25125. # Flag that enforces no undefined symbols.
  25126. no_undefined_flag=$lt_no_undefined_flag
  25127. # Flag to hardcode \$libdir into a binary during linking.
  25128. # This must work even if \$libdir does not exist
  25129. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25130. # Whether we need a single "-rpath" flag with a separated argument.
  25131. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25132. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25133. # DIR into the resulting binary.
  25134. hardcode_direct=$hardcode_direct
  25135. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25136. # DIR into the resulting binary and the resulting library dependency is
  25137. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25138. # library is relocated.
  25139. hardcode_direct_absolute=$hardcode_direct_absolute
  25140. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25141. # into the resulting binary.
  25142. hardcode_minus_L=$hardcode_minus_L
  25143. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25144. # into the resulting binary.
  25145. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25146. # Set to "yes" if building a shared library automatically hardcodes DIR
  25147. # into the library and all subsequent libraries and executables linked
  25148. # against it.
  25149. hardcode_automatic=$hardcode_automatic
  25150. # Set to yes if linker adds runtime paths of dependent libraries
  25151. # to runtime path list.
  25152. inherit_rpath=$inherit_rpath
  25153. # Whether libtool must link a program against all its dependency libraries.
  25154. link_all_deplibs=$link_all_deplibs
  25155. # Set to "yes" if exported symbols are required.
  25156. always_export_symbols=$always_export_symbols
  25157. # The commands to list exported symbols.
  25158. export_symbols_cmds=$lt_export_symbols_cmds
  25159. # Symbols that should not be listed in the preloaded symbols.
  25160. exclude_expsyms=$lt_exclude_expsyms
  25161. # Symbols that must always be exported.
  25162. include_expsyms=$lt_include_expsyms
  25163. # Commands necessary for linking programs (against libraries) with templates.
  25164. prelink_cmds=$lt_prelink_cmds
  25165. # Commands necessary for finishing linking programs.
  25166. postlink_cmds=$lt_postlink_cmds
  25167. # Specify filename containing input files.
  25168. file_list_spec=$lt_file_list_spec
  25169. # How to hardcode a shared library path into an executable.
  25170. hardcode_action=$hardcode_action
  25171. # The directories searched by this compiler when creating a shared library.
  25172. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25173. # Dependencies to place before and after the objects being linked to
  25174. # create a shared library.
  25175. predep_objects=$lt_predep_objects
  25176. postdep_objects=$lt_postdep_objects
  25177. predeps=$lt_predeps
  25178. postdeps=$lt_postdeps
  25179. # The library search path used internally by the compiler when linking
  25180. # a shared library.
  25181. compiler_lib_search_path=$lt_compiler_lib_search_path
  25182. # ### END LIBTOOL CONFIG
  25183. _LT_EOF
  25184. cat <<'_LT_EOF' >> "$cfgfile"
  25185. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25186. # func_munge_path_list VARIABLE PATH
  25187. # -----------------------------------
  25188. # VARIABLE is name of variable containing _space_ separated list of
  25189. # directories to be munged by the contents of PATH, which is string
  25190. # having a format:
  25191. # "DIR[:DIR]:"
  25192. # string "DIR[ DIR]" will be prepended to VARIABLE
  25193. # ":DIR[:DIR]"
  25194. # string "DIR[ DIR]" will be appended to VARIABLE
  25195. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25196. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25197. # "DIRA[ DIRA]" will be appended to VARIABLE
  25198. # "DIR[:DIR]"
  25199. # VARIABLE will be replaced by "DIR[ DIR]"
  25200. func_munge_path_list ()
  25201. {
  25202. case x$2 in
  25203. x)
  25204. ;;
  25205. *:)
  25206. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25207. ;;
  25208. x:*)
  25209. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25210. ;;
  25211. *::*)
  25212. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25213. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25214. ;;
  25215. *)
  25216. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25217. ;;
  25218. esac
  25219. }
  25220. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25221. func_cc_basename ()
  25222. {
  25223. for cc_temp in $*""; do
  25224. case $cc_temp in
  25225. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25226. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25227. \-*) ;;
  25228. *) break;;
  25229. esac
  25230. done
  25231. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25232. }
  25233. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25234. _LT_EOF
  25235. case $host_os in
  25236. aix3*)
  25237. cat <<\_LT_EOF >> "$cfgfile"
  25238. # AIX sometimes has problems with the GCC collect2 program. For some
  25239. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25240. # vanish in a puff of smoke.
  25241. if test set != "${COLLECT_NAMES+set}"; then
  25242. COLLECT_NAMES=
  25243. export COLLECT_NAMES
  25244. fi
  25245. _LT_EOF
  25246. ;;
  25247. esac
  25248. ltmain=$ac_aux_dir/ltmain.sh
  25249. # We use sed instead of cat because bash on DJGPP gets confused if
  25250. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25251. # text mode, it properly converts lines to CR/LF. This bash problem
  25252. # is reportedly fixed, but why not run on old versions too?
  25253. sed '$q' "$ltmain" >> "$cfgfile" \
  25254. || (rm -f "$cfgfile"; exit 1)
  25255. mv -f "$cfgfile" "$ofile" ||
  25256. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25257. chmod +x "$ofile"
  25258. cat <<_LT_EOF >> "$ofile"
  25259. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25260. # The linker used to build libraries.
  25261. LD=$lt_LD_RC
  25262. # How to create reloadable object files.
  25263. reload_flag=$lt_reload_flag_RC
  25264. reload_cmds=$lt_reload_cmds_RC
  25265. # Commands used to build an old-style archive.
  25266. old_archive_cmds=$lt_old_archive_cmds_RC
  25267. # A language specific compiler.
  25268. CC=$lt_compiler_RC
  25269. # Is the compiler the GNU compiler?
  25270. with_gcc=$GCC_RC
  25271. # Compiler flag to turn off builtin functions.
  25272. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25273. # Additional compiler flags for building library objects.
  25274. pic_flag=$lt_lt_prog_compiler_pic_RC
  25275. # How to pass a linker flag through the compiler.
  25276. wl=$lt_lt_prog_compiler_wl_RC
  25277. # Compiler flag to prevent dynamic linking.
  25278. link_static_flag=$lt_lt_prog_compiler_static_RC
  25279. # Does compiler simultaneously support -c and -o options?
  25280. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25281. # Whether or not to add -lc for building shared libraries.
  25282. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25283. # Whether or not to disallow shared libs when runtime libs are static.
  25284. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25285. # Compiler flag to allow reflexive dlopens.
  25286. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25287. # Compiler flag to generate shared objects directly from archives.
  25288. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25289. # Whether the compiler copes with passing no objects directly.
  25290. compiler_needs_object=$lt_compiler_needs_object_RC
  25291. # Create an old-style archive from a shared archive.
  25292. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25293. # Create a temporary old-style archive to link instead of a shared archive.
  25294. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25295. # Commands used to build a shared archive.
  25296. archive_cmds=$lt_archive_cmds_RC
  25297. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25298. # Commands used to build a loadable module if different from building
  25299. # a shared archive.
  25300. module_cmds=$lt_module_cmds_RC
  25301. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25302. # Whether we are building with GNU ld or not.
  25303. with_gnu_ld=$lt_with_gnu_ld_RC
  25304. # Flag that allows shared libraries with undefined symbols to be built.
  25305. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25306. # Flag that enforces no undefined symbols.
  25307. no_undefined_flag=$lt_no_undefined_flag_RC
  25308. # Flag to hardcode \$libdir into a binary during linking.
  25309. # This must work even if \$libdir does not exist
  25310. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25311. # Whether we need a single "-rpath" flag with a separated argument.
  25312. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25313. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25314. # DIR into the resulting binary.
  25315. hardcode_direct=$hardcode_direct_RC
  25316. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25317. # DIR into the resulting binary and the resulting library dependency is
  25318. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25319. # library is relocated.
  25320. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25321. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25322. # into the resulting binary.
  25323. hardcode_minus_L=$hardcode_minus_L_RC
  25324. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25325. # into the resulting binary.
  25326. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25327. # Set to "yes" if building a shared library automatically hardcodes DIR
  25328. # into the library and all subsequent libraries and executables linked
  25329. # against it.
  25330. hardcode_automatic=$hardcode_automatic_RC
  25331. # Set to yes if linker adds runtime paths of dependent libraries
  25332. # to runtime path list.
  25333. inherit_rpath=$inherit_rpath_RC
  25334. # Whether libtool must link a program against all its dependency libraries.
  25335. link_all_deplibs=$link_all_deplibs_RC
  25336. # Set to "yes" if exported symbols are required.
  25337. always_export_symbols=$always_export_symbols_RC
  25338. # The commands to list exported symbols.
  25339. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25340. # Symbols that should not be listed in the preloaded symbols.
  25341. exclude_expsyms=$lt_exclude_expsyms_RC
  25342. # Symbols that must always be exported.
  25343. include_expsyms=$lt_include_expsyms_RC
  25344. # Commands necessary for linking programs (against libraries) with templates.
  25345. prelink_cmds=$lt_prelink_cmds_RC
  25346. # Commands necessary for finishing linking programs.
  25347. postlink_cmds=$lt_postlink_cmds_RC
  25348. # Specify filename containing input files.
  25349. file_list_spec=$lt_file_list_spec_RC
  25350. # How to hardcode a shared library path into an executable.
  25351. hardcode_action=$hardcode_action_RC
  25352. # The directories searched by this compiler when creating a shared library.
  25353. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25354. # Dependencies to place before and after the objects being linked to
  25355. # create a shared library.
  25356. predep_objects=$lt_predep_objects_RC
  25357. postdep_objects=$lt_postdep_objects_RC
  25358. predeps=$lt_predeps_RC
  25359. postdeps=$lt_postdeps_RC
  25360. # The library search path used internally by the compiler when linking
  25361. # a shared library.
  25362. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25363. # ### END LIBTOOL TAG CONFIG: RC
  25364. _LT_EOF
  25365. cat <<_LT_EOF >> "$ofile"
  25366. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25367. # The linker used to build libraries.
  25368. LD=$lt_LD_CXX
  25369. # How to create reloadable object files.
  25370. reload_flag=$lt_reload_flag_CXX
  25371. reload_cmds=$lt_reload_cmds_CXX
  25372. # Commands used to build an old-style archive.
  25373. old_archive_cmds=$lt_old_archive_cmds_CXX
  25374. # A language specific compiler.
  25375. CC=$lt_compiler_CXX
  25376. # Is the compiler the GNU compiler?
  25377. with_gcc=$GCC_CXX
  25378. # Compiler flag to turn off builtin functions.
  25379. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25380. # Additional compiler flags for building library objects.
  25381. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25382. # How to pass a linker flag through the compiler.
  25383. wl=$lt_lt_prog_compiler_wl_CXX
  25384. # Compiler flag to prevent dynamic linking.
  25385. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25386. # Does compiler simultaneously support -c and -o options?
  25387. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25388. # Whether or not to add -lc for building shared libraries.
  25389. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25390. # Whether or not to disallow shared libs when runtime libs are static.
  25391. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25392. # Compiler flag to allow reflexive dlopens.
  25393. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25394. # Compiler flag to generate shared objects directly from archives.
  25395. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25396. # Whether the compiler copes with passing no objects directly.
  25397. compiler_needs_object=$lt_compiler_needs_object_CXX
  25398. # Create an old-style archive from a shared archive.
  25399. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25400. # Create a temporary old-style archive to link instead of a shared archive.
  25401. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25402. # Commands used to build a shared archive.
  25403. archive_cmds=$lt_archive_cmds_CXX
  25404. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25405. # Commands used to build a loadable module if different from building
  25406. # a shared archive.
  25407. module_cmds=$lt_module_cmds_CXX
  25408. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25409. # Whether we are building with GNU ld or not.
  25410. with_gnu_ld=$lt_with_gnu_ld_CXX
  25411. # Flag that allows shared libraries with undefined symbols to be built.
  25412. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25413. # Flag that enforces no undefined symbols.
  25414. no_undefined_flag=$lt_no_undefined_flag_CXX
  25415. # Flag to hardcode \$libdir into a binary during linking.
  25416. # This must work even if \$libdir does not exist
  25417. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25418. # Whether we need a single "-rpath" flag with a separated argument.
  25419. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25420. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25421. # DIR into the resulting binary.
  25422. hardcode_direct=$hardcode_direct_CXX
  25423. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25424. # DIR into the resulting binary and the resulting library dependency is
  25425. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25426. # library is relocated.
  25427. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25428. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25429. # into the resulting binary.
  25430. hardcode_minus_L=$hardcode_minus_L_CXX
  25431. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25432. # into the resulting binary.
  25433. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25434. # Set to "yes" if building a shared library automatically hardcodes DIR
  25435. # into the library and all subsequent libraries and executables linked
  25436. # against it.
  25437. hardcode_automatic=$hardcode_automatic_CXX
  25438. # Set to yes if linker adds runtime paths of dependent libraries
  25439. # to runtime path list.
  25440. inherit_rpath=$inherit_rpath_CXX
  25441. # Whether libtool must link a program against all its dependency libraries.
  25442. link_all_deplibs=$link_all_deplibs_CXX
  25443. # Set to "yes" if exported symbols are required.
  25444. always_export_symbols=$always_export_symbols_CXX
  25445. # The commands to list exported symbols.
  25446. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25447. # Symbols that should not be listed in the preloaded symbols.
  25448. exclude_expsyms=$lt_exclude_expsyms_CXX
  25449. # Symbols that must always be exported.
  25450. include_expsyms=$lt_include_expsyms_CXX
  25451. # Commands necessary for linking programs (against libraries) with templates.
  25452. prelink_cmds=$lt_prelink_cmds_CXX
  25453. # Commands necessary for finishing linking programs.
  25454. postlink_cmds=$lt_postlink_cmds_CXX
  25455. # Specify filename containing input files.
  25456. file_list_spec=$lt_file_list_spec_CXX
  25457. # How to hardcode a shared library path into an executable.
  25458. hardcode_action=$hardcode_action_CXX
  25459. # The directories searched by this compiler when creating a shared library.
  25460. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25461. # Dependencies to place before and after the objects being linked to
  25462. # create a shared library.
  25463. predep_objects=$lt_predep_objects_CXX
  25464. postdep_objects=$lt_postdep_objects_CXX
  25465. predeps=$lt_predeps_CXX
  25466. postdeps=$lt_postdeps_CXX
  25467. # The library search path used internally by the compiler when linking
  25468. # a shared library.
  25469. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25470. # ### END LIBTOOL TAG CONFIG: CXX
  25471. _LT_EOF
  25472. ;;
  25473. "sdl2_config":C) chmod a+x sdl2-config ;;
  25474. "summary":C) printf "$SUMMARY" ;;
  25475. esac
  25476. done # for ac_tag
  25477. as_fn_exit 0
  25478. _ACEOF
  25479. ac_clean_files=$ac_clean_files_save
  25480. test $ac_write_fail = 0 ||
  25481. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25482. # configure is writing to config.log, and then calls config.status.
  25483. # config.status does its own redirection, appending to config.log.
  25484. # Unfortunately, on DOS this fails, as config.log is still kept open
  25485. # by configure, so config.status won't be able to write to it; its
  25486. # output is simply discarded. So we exec the FD to /dev/null,
  25487. # effectively closing config.log, so it can be properly (re)opened and
  25488. # appended to by config.status. When coming back to configure, we
  25489. # need to make the FD available again.
  25490. if test "$no_create" != yes; then
  25491. ac_cs_success=:
  25492. ac_config_status_args=
  25493. test "$silent" = yes &&
  25494. ac_config_status_args="$ac_config_status_args --quiet"
  25495. exec 5>/dev/null
  25496. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25497. exec 5>>config.log
  25498. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25499. # would make configure fail if this is the last instruction.
  25500. $ac_cs_success || as_fn_exit 1
  25501. fi
  25502. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25504. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25505. fi