configure 884 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771
  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. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. LT_SYS_LIBRARY_PATH
  661. OTOOL64
  662. OTOOL
  663. LIPO
  664. NMEDIT
  665. DSYMUTIL
  666. MANIFEST_TOOL
  667. AWK
  668. RANLIB
  669. STRIP
  670. ac_ct_AR
  671. AR
  672. LN_S
  673. NM
  674. ac_ct_DUMPBIN
  675. DUMPBIN
  676. LD
  677. FGREP
  678. EGREP
  679. GREP
  680. SED
  681. OBJEXT
  682. EXEEXT
  683. ac_ct_CC
  684. CPPFLAGS
  685. LDFLAGS
  686. CFLAGS
  687. CC
  688. host_os
  689. host_vendor
  690. host_cpu
  691. host
  692. build_os
  693. build_vendor
  694. build_cpu
  695. build
  696. LIBTOOL
  697. OBJDUMP
  698. DLLTOOL
  699. AS
  700. SDL_VERSION
  701. SDL_BINARY_AGE
  702. SDL_INTERFACE_AGE
  703. SDL_MICRO_VERSION
  704. SDL_MINOR_VERSION
  705. SDL_MAJOR_VERSION
  706. target_alias
  707. host_alias
  708. build_alias
  709. LIBS
  710. ECHO_T
  711. ECHO_N
  712. ECHO_C
  713. DEFS
  714. mandir
  715. localedir
  716. libdir
  717. psdir
  718. pdfdir
  719. dvidir
  720. htmldir
  721. infodir
  722. docdir
  723. oldincludedir
  724. includedir
  725. localstatedir
  726. sharedstatedir
  727. sysconfdir
  728. datadir
  729. datarootdir
  730. libexecdir
  731. sbindir
  732. bindir
  733. program_transform_name
  734. prefix
  735. exec_prefix
  736. PACKAGE_URL
  737. PACKAGE_BUGREPORT
  738. PACKAGE_STRING
  739. PACKAGE_VERSION
  740. PACKAGE_TARNAME
  741. PACKAGE_NAME
  742. PATH_SEPARATOR
  743. SHELL'
  744. ac_subst_files=''
  745. ac_user_opts='
  746. enable_option_checking
  747. enable_shared
  748. enable_static
  749. with_pic
  750. enable_fast_install
  751. with_aix_soname
  752. with_gnu_ld
  753. with_sysroot
  754. enable_libtool_lock
  755. enable_assertions
  756. enable_dependency_tracking
  757. enable_libc
  758. enable_gcc_atomics
  759. enable_atomic
  760. enable_audio
  761. enable_video
  762. enable_render
  763. enable_events
  764. enable_joystick
  765. enable_haptic
  766. enable_hidapi
  767. enable_sensor
  768. enable_power
  769. enable_filesystem
  770. enable_threads
  771. enable_timers
  772. enable_file
  773. enable_loadso
  774. enable_cpuinfo
  775. enable_assembly
  776. enable_ssemath
  777. enable_mmx
  778. enable_3dnow
  779. enable_sse
  780. enable_sse2
  781. enable_sse3
  782. enable_altivec
  783. enable_oss
  784. enable_alsa
  785. with_alsa_prefix
  786. with_alsa_inc_prefix
  787. enable_alsatest
  788. enable_alsa_shared
  789. enable_jack
  790. enable_jack_shared
  791. enable_esd
  792. with_esd_prefix
  793. with_esd_exec_prefix
  794. enable_esdtest
  795. enable_esd_shared
  796. enable_pipewire
  797. enable_pipewire_shared
  798. enable_pulseaudio
  799. enable_pulseaudio_shared
  800. enable_arts
  801. enable_arts_shared
  802. enable_nas
  803. enable_nas_shared
  804. enable_sndio
  805. enable_sndio_shared
  806. enable_fusionsound
  807. enable_fusionsound_shared
  808. enable_diskaudio
  809. enable_dummyaudio
  810. enable_libsamplerate
  811. enable_libsamplerate_shared
  812. enable_arm_simd
  813. enable_arm_neon
  814. enable_video_wayland
  815. enable_video_wayland_qt_touch
  816. enable_wayland_shared
  817. enable_libdecor
  818. enable_libdecor_shared
  819. enable_video_rpi
  820. enable_video_x11
  821. with_x
  822. enable_x11_shared
  823. enable_video_x11_xcursor
  824. enable_video_x11_xdbe
  825. enable_video_x11_xinerama
  826. enable_video_x11_xinput
  827. enable_video_x11_xfixes
  828. enable_video_x11_xrandr
  829. enable_video_x11_scrnsaver
  830. enable_video_x11_xshape
  831. enable_video_x11_vm
  832. enable_video_vivante
  833. enable_video_cocoa
  834. enable_video_metal
  835. enable_render_metal
  836. enable_video_directfb
  837. enable_directfb_shared
  838. enable_video_kmsdrm
  839. enable_kmsdrm_shared
  840. enable_video_dummy
  841. enable_video_offscreen
  842. enable_video_opengl
  843. enable_video_opengles
  844. enable_video_opengles1
  845. enable_video_opengles2
  846. enable_video_vulkan
  847. enable_libudev
  848. enable_dbus
  849. enable_ime
  850. enable_ibus
  851. enable_fcitx
  852. enable_joystick_mfi
  853. enable_pthreads
  854. enable_pthread_sem
  855. enable_directx
  856. enable_xinput
  857. enable_wasapi
  858. enable_hidapi_joystick
  859. enable_hidapi_libusb
  860. enable_clock_gettime
  861. enable_rpath
  862. enable_backgrounding_signal
  863. enable_foregrounding_signal
  864. enable_joystick_virtual
  865. enable_render_d3d
  866. enable_sdl2_config
  867. '
  868. ac_precious_vars='build_alias
  869. host_alias
  870. target_alias
  871. CC
  872. CFLAGS
  873. LDFLAGS
  874. LIBS
  875. CPPFLAGS
  876. LT_SYS_LIBRARY_PATH
  877. CPP
  878. CXX
  879. CXXFLAGS
  880. CCC
  881. CXXCPP
  882. PKG_CONFIG
  883. PKG_CONFIG_PATH
  884. PKG_CONFIG_LIBDIR
  885. JACK_CFLAGS
  886. JACK_LIBS
  887. PIPEWIRE_CFLAGS
  888. PIPEWIRE_LIBS
  889. PULSEAUDIO_CFLAGS
  890. PULSEAUDIO_LIBS
  891. FUSIONSOUND_CFLAGS
  892. FUSIONSOUND_LIBS
  893. RPI_CFLAGS
  894. RPI_LIBS
  895. XMKMF
  896. DIRECTFB_CFLAGS
  897. DIRECTFB_LIBS
  898. LIBDRM_CFLAGS
  899. LIBDRM_LIBS
  900. LIBGBM_CFLAGS
  901. LIBGBM_LIBS
  902. DBUS_CFLAGS
  903. DBUS_LIBS
  904. IBUS_CFLAGS
  905. IBUS_LIBS
  906. LIBUSB_CFLAGS
  907. LIBUSB_LIBS'
  908. # Initialize some variables set by options.
  909. ac_init_help=
  910. ac_init_version=false
  911. ac_unrecognized_opts=
  912. ac_unrecognized_sep=
  913. # The variables have the same names as the options, with
  914. # dashes changed to underlines.
  915. cache_file=/dev/null
  916. exec_prefix=NONE
  917. no_create=
  918. no_recursion=
  919. prefix=NONE
  920. program_prefix=NONE
  921. program_suffix=NONE
  922. program_transform_name=s,x,x,
  923. silent=
  924. site=
  925. srcdir=
  926. verbose=
  927. x_includes=NONE
  928. x_libraries=NONE
  929. # Installation directory options.
  930. # These are left unexpanded so users can "make install exec_prefix=/foo"
  931. # and all the variables that are supposed to be based on exec_prefix
  932. # by default will actually change.
  933. # Use braces instead of parens because sh, perl, etc. also accept them.
  934. # (The list follows the same order as the GNU Coding Standards.)
  935. bindir='${exec_prefix}/bin'
  936. sbindir='${exec_prefix}/sbin'
  937. libexecdir='${exec_prefix}/libexec'
  938. datarootdir='${prefix}/share'
  939. datadir='${datarootdir}'
  940. sysconfdir='${prefix}/etc'
  941. sharedstatedir='${prefix}/com'
  942. localstatedir='${prefix}/var'
  943. includedir='${prefix}/include'
  944. oldincludedir='/usr/include'
  945. docdir='${datarootdir}/doc/${PACKAGE}'
  946. infodir='${datarootdir}/info'
  947. htmldir='${docdir}'
  948. dvidir='${docdir}'
  949. pdfdir='${docdir}'
  950. psdir='${docdir}'
  951. libdir='${exec_prefix}/lib'
  952. localedir='${datarootdir}/locale'
  953. mandir='${datarootdir}/man'
  954. ac_prev=
  955. ac_dashdash=
  956. for ac_option
  957. do
  958. # If the previous option needs an argument, assign it.
  959. if test -n "$ac_prev"; then
  960. eval $ac_prev=\$ac_option
  961. ac_prev=
  962. continue
  963. fi
  964. case $ac_option in
  965. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  966. *=) ac_optarg= ;;
  967. *) ac_optarg=yes ;;
  968. esac
  969. # Accept the important Cygnus configure options, so we can diagnose typos.
  970. case $ac_dashdash$ac_option in
  971. --)
  972. ac_dashdash=yes ;;
  973. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  974. ac_prev=bindir ;;
  975. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  976. bindir=$ac_optarg ;;
  977. -build | --build | --buil | --bui | --bu)
  978. ac_prev=build_alias ;;
  979. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  980. build_alias=$ac_optarg ;;
  981. -cache-file | --cache-file | --cache-fil | --cache-fi \
  982. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  983. ac_prev=cache_file ;;
  984. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  985. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  986. cache_file=$ac_optarg ;;
  987. --config-cache | -C)
  988. cache_file=config.cache ;;
  989. -datadir | --datadir | --datadi | --datad)
  990. ac_prev=datadir ;;
  991. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  992. datadir=$ac_optarg ;;
  993. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  994. | --dataroo | --dataro | --datar)
  995. ac_prev=datarootdir ;;
  996. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  997. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  998. datarootdir=$ac_optarg ;;
  999. -disable-* | --disable-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error $? "invalid feature name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "enable_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval enable_$ac_useropt=no ;;
  1014. -docdir | --docdir | --docdi | --doc | --do)
  1015. ac_prev=docdir ;;
  1016. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1017. docdir=$ac_optarg ;;
  1018. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1019. ac_prev=dvidir ;;
  1020. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1021. dvidir=$ac_optarg ;;
  1022. -enable-* | --enable-*)
  1023. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1024. # Reject names that are not valid shell variable names.
  1025. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1026. as_fn_error $? "invalid feature name: $ac_useropt"
  1027. ac_useropt_orig=$ac_useropt
  1028. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1029. case $ac_user_opts in
  1030. *"
  1031. "enable_$ac_useropt"
  1032. "*) ;;
  1033. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1034. ac_unrecognized_sep=', ';;
  1035. esac
  1036. eval enable_$ac_useropt=\$ac_optarg ;;
  1037. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1038. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1039. | --exec | --exe | --ex)
  1040. ac_prev=exec_prefix ;;
  1041. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1042. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1043. | --exec=* | --exe=* | --ex=*)
  1044. exec_prefix=$ac_optarg ;;
  1045. -gas | --gas | --ga | --g)
  1046. # Obsolete; use --with-gas.
  1047. with_gas=yes ;;
  1048. -help | --help | --hel | --he | -h)
  1049. ac_init_help=long ;;
  1050. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1051. ac_init_help=recursive ;;
  1052. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1053. ac_init_help=short ;;
  1054. -host | --host | --hos | --ho)
  1055. ac_prev=host_alias ;;
  1056. -host=* | --host=* | --hos=* | --ho=*)
  1057. host_alias=$ac_optarg ;;
  1058. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1059. ac_prev=htmldir ;;
  1060. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1061. | --ht=*)
  1062. htmldir=$ac_optarg ;;
  1063. -includedir | --includedir | --includedi | --included | --include \
  1064. | --includ | --inclu | --incl | --inc)
  1065. ac_prev=includedir ;;
  1066. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1067. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1068. includedir=$ac_optarg ;;
  1069. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1070. ac_prev=infodir ;;
  1071. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1072. infodir=$ac_optarg ;;
  1073. -libdir | --libdir | --libdi | --libd)
  1074. ac_prev=libdir ;;
  1075. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1076. libdir=$ac_optarg ;;
  1077. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1078. | --libexe | --libex | --libe)
  1079. ac_prev=libexecdir ;;
  1080. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1081. | --libexe=* | --libex=* | --libe=*)
  1082. libexecdir=$ac_optarg ;;
  1083. -localedir | --localedir | --localedi | --localed | --locale)
  1084. ac_prev=localedir ;;
  1085. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1086. localedir=$ac_optarg ;;
  1087. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1088. | --localstate | --localstat | --localsta | --localst | --locals)
  1089. ac_prev=localstatedir ;;
  1090. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1091. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1092. localstatedir=$ac_optarg ;;
  1093. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1094. ac_prev=mandir ;;
  1095. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1096. mandir=$ac_optarg ;;
  1097. -nfp | --nfp | --nf)
  1098. # Obsolete; use --without-fp.
  1099. with_fp=no ;;
  1100. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1101. | --no-cr | --no-c | -n)
  1102. no_create=yes ;;
  1103. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1104. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1105. no_recursion=yes ;;
  1106. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1107. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1108. | --oldin | --oldi | --old | --ol | --o)
  1109. ac_prev=oldincludedir ;;
  1110. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1111. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1112. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1113. oldincludedir=$ac_optarg ;;
  1114. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1115. ac_prev=prefix ;;
  1116. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1117. prefix=$ac_optarg ;;
  1118. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1119. | --program-pre | --program-pr | --program-p)
  1120. ac_prev=program_prefix ;;
  1121. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1122. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1123. program_prefix=$ac_optarg ;;
  1124. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1125. | --program-suf | --program-su | --program-s)
  1126. ac_prev=program_suffix ;;
  1127. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1128. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1129. program_suffix=$ac_optarg ;;
  1130. -program-transform-name | --program-transform-name \
  1131. | --program-transform-nam | --program-transform-na \
  1132. | --program-transform-n | --program-transform- \
  1133. | --program-transform | --program-transfor \
  1134. | --program-transfo | --program-transf \
  1135. | --program-trans | --program-tran \
  1136. | --progr-tra | --program-tr | --program-t)
  1137. ac_prev=program_transform_name ;;
  1138. -program-transform-name=* | --program-transform-name=* \
  1139. | --program-transform-nam=* | --program-transform-na=* \
  1140. | --program-transform-n=* | --program-transform-=* \
  1141. | --program-transform=* | --program-transfor=* \
  1142. | --program-transfo=* | --program-transf=* \
  1143. | --program-trans=* | --program-tran=* \
  1144. | --progr-tra=* | --program-tr=* | --program-t=*)
  1145. program_transform_name=$ac_optarg ;;
  1146. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1147. ac_prev=pdfdir ;;
  1148. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1149. pdfdir=$ac_optarg ;;
  1150. -psdir | --psdir | --psdi | --psd | --ps)
  1151. ac_prev=psdir ;;
  1152. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1153. psdir=$ac_optarg ;;
  1154. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1155. | -silent | --silent | --silen | --sile | --sil)
  1156. silent=yes ;;
  1157. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1158. ac_prev=sbindir ;;
  1159. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1160. | --sbi=* | --sb=*)
  1161. sbindir=$ac_optarg ;;
  1162. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1163. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1164. | --sharedst | --shareds | --shared | --share | --shar \
  1165. | --sha | --sh)
  1166. ac_prev=sharedstatedir ;;
  1167. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1168. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1169. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1170. | --sha=* | --sh=*)
  1171. sharedstatedir=$ac_optarg ;;
  1172. -site | --site | --sit)
  1173. ac_prev=site ;;
  1174. -site=* | --site=* | --sit=*)
  1175. site=$ac_optarg ;;
  1176. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1177. ac_prev=srcdir ;;
  1178. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1179. srcdir=$ac_optarg ;;
  1180. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1181. | --syscon | --sysco | --sysc | --sys | --sy)
  1182. ac_prev=sysconfdir ;;
  1183. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1184. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1185. sysconfdir=$ac_optarg ;;
  1186. -target | --target | --targe | --targ | --tar | --ta | --t)
  1187. ac_prev=target_alias ;;
  1188. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1189. target_alias=$ac_optarg ;;
  1190. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1191. verbose=yes ;;
  1192. -version | --version | --versio | --versi | --vers | -V)
  1193. ac_init_version=: ;;
  1194. -with-* | --with-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error $? "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=\$ac_optarg ;;
  1209. -without-* | --without-*)
  1210. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1211. # Reject names that are not valid shell variable names.
  1212. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1213. as_fn_error $? "invalid package name: $ac_useropt"
  1214. ac_useropt_orig=$ac_useropt
  1215. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1216. case $ac_user_opts in
  1217. *"
  1218. "with_$ac_useropt"
  1219. "*) ;;
  1220. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1221. ac_unrecognized_sep=', ';;
  1222. esac
  1223. eval with_$ac_useropt=no ;;
  1224. --x)
  1225. # Obsolete; use --with-x.
  1226. with_x=yes ;;
  1227. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1228. | --x-incl | --x-inc | --x-in | --x-i)
  1229. ac_prev=x_includes ;;
  1230. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1231. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1232. x_includes=$ac_optarg ;;
  1233. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1234. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1235. ac_prev=x_libraries ;;
  1236. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1237. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1238. x_libraries=$ac_optarg ;;
  1239. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1240. Try \`$0 --help' for more information"
  1241. ;;
  1242. *=*)
  1243. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1244. # Reject names that are not valid shell variable names.
  1245. case $ac_envvar in #(
  1246. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1247. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1248. esac
  1249. eval $ac_envvar=\$ac_optarg
  1250. export $ac_envvar ;;
  1251. *)
  1252. # FIXME: should be removed in autoconf 3.0.
  1253. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1254. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1255. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1256. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1257. ;;
  1258. esac
  1259. done
  1260. if test -n "$ac_prev"; then
  1261. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1262. as_fn_error $? "missing argument to $ac_option"
  1263. fi
  1264. if test -n "$ac_unrecognized_opts"; then
  1265. case $enable_option_checking in
  1266. no) ;;
  1267. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1268. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1269. esac
  1270. fi
  1271. # Check all directory arguments for consistency.
  1272. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1273. datadir sysconfdir sharedstatedir localstatedir includedir \
  1274. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1275. libdir localedir mandir
  1276. do
  1277. eval ac_val=\$$ac_var
  1278. # Remove trailing slashes.
  1279. case $ac_val in
  1280. */ )
  1281. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1282. eval $ac_var=\$ac_val;;
  1283. esac
  1284. # Be sure to have absolute directory names.
  1285. case $ac_val in
  1286. [\\/$]* | ?:[\\/]* ) continue;;
  1287. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1288. esac
  1289. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1290. done
  1291. # There might be people who depend on the old broken behavior: `$host'
  1292. # used to hold the argument of --host etc.
  1293. # FIXME: To remove some day.
  1294. build=$build_alias
  1295. host=$host_alias
  1296. target=$target_alias
  1297. # FIXME: To remove some day.
  1298. if test "x$host_alias" != x; then
  1299. if test "x$build_alias" = x; then
  1300. cross_compiling=maybe
  1301. elif test "x$build_alias" != "x$host_alias"; then
  1302. cross_compiling=yes
  1303. fi
  1304. fi
  1305. ac_tool_prefix=
  1306. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1307. test "$silent" = yes && exec 6>/dev/null
  1308. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1309. ac_ls_di=`ls -di .` &&
  1310. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1311. as_fn_error $? "working directory cannot be determined"
  1312. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1313. as_fn_error $? "pwd does not report name of working directory"
  1314. # Find the source files, if location was not specified.
  1315. if test -z "$srcdir"; then
  1316. ac_srcdir_defaulted=yes
  1317. # Try the directory containing this script, then the parent directory.
  1318. ac_confdir=`$as_dirname -- "$as_myself" ||
  1319. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1320. X"$as_myself" : 'X\(//\)[^/]' \| \
  1321. X"$as_myself" : 'X\(//\)$' \| \
  1322. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1323. $as_echo X"$as_myself" |
  1324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\/\)[^/].*/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)$/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\).*/{
  1337. s//\1/
  1338. q
  1339. }
  1340. s/.*/./; q'`
  1341. srcdir=$ac_confdir
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. srcdir=..
  1344. fi
  1345. else
  1346. ac_srcdir_defaulted=no
  1347. fi
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1350. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1351. fi
  1352. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1353. ac_abs_confdir=`(
  1354. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1355. pwd)`
  1356. # When building in place, set srcdir=.
  1357. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1358. srcdir=.
  1359. fi
  1360. # Remove unnecessary trailing slashes from srcdir.
  1361. # Double slashes in file names in object file debugging info
  1362. # mess up M-x gdb in Emacs.
  1363. case $srcdir in
  1364. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1365. esac
  1366. for ac_var in $ac_precious_vars; do
  1367. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1368. eval ac_env_${ac_var}_value=\$${ac_var}
  1369. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1371. done
  1372. #
  1373. # Report the --help message.
  1374. #
  1375. if test "$ac_init_help" = "long"; then
  1376. # Omit some internal or obsolete options to make the list less imposing.
  1377. # This message is too long to be a string in the A/UX 3.1 sh.
  1378. cat <<_ACEOF
  1379. \`configure' configures this package to adapt to many kinds of systems.
  1380. Usage: $0 [OPTION]... [VAR=VALUE]...
  1381. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1382. VAR=VALUE. See below for descriptions of some of the useful variables.
  1383. Defaults for the options are specified in brackets.
  1384. Configuration:
  1385. -h, --help display this help and exit
  1386. --help=short display options specific to this package
  1387. --help=recursive display the short help of all the included packages
  1388. -V, --version display version information and exit
  1389. -q, --quiet, --silent do not print \`checking ...' messages
  1390. --cache-file=FILE cache test results in FILE [disabled]
  1391. -C, --config-cache alias for \`--cache-file=config.cache'
  1392. -n, --no-create do not create output files
  1393. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1394. Installation directories:
  1395. --prefix=PREFIX install architecture-independent files in PREFIX
  1396. [$ac_default_prefix]
  1397. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1398. [PREFIX]
  1399. By default, \`make install' will install all the files in
  1400. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1401. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1402. for instance \`--prefix=\$HOME'.
  1403. For better control, use the options below.
  1404. Fine tuning of the installation directories:
  1405. --bindir=DIR user executables [EPREFIX/bin]
  1406. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1407. --libexecdir=DIR program executables [EPREFIX/libexec]
  1408. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1409. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1410. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1411. --libdir=DIR object code libraries [EPREFIX/lib]
  1412. --includedir=DIR C header files [PREFIX/include]
  1413. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1414. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1415. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1416. --infodir=DIR info documentation [DATAROOTDIR/info]
  1417. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1418. --mandir=DIR man documentation [DATAROOTDIR/man]
  1419. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1420. --htmldir=DIR html documentation [DOCDIR]
  1421. --dvidir=DIR dvi documentation [DOCDIR]
  1422. --pdfdir=DIR pdf documentation [DOCDIR]
  1423. --psdir=DIR ps documentation [DOCDIR]
  1424. _ACEOF
  1425. cat <<\_ACEOF
  1426. X features:
  1427. --x-includes=DIR X include files are in DIR
  1428. --x-libraries=DIR X library files are in DIR
  1429. System types:
  1430. --build=BUILD configure for building on BUILD [guessed]
  1431. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1432. _ACEOF
  1433. fi
  1434. if test -n "$ac_init_help"; then
  1435. cat <<\_ACEOF
  1436. Optional Features:
  1437. --disable-option-checking ignore unrecognized --enable/--with options
  1438. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1439. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1440. --enable-shared[=PKGS] build shared libraries [default=yes]
  1441. --enable-static[=PKGS] build static libraries [default=yes]
  1442. --enable-fast-install[=PKGS]
  1443. optimize for fast installation [default=yes]
  1444. --disable-libtool-lock avoid locking (might break parallel builds)
  1445. --enable-assertions Enable internal sanity checks
  1446. (auto/disabled/release/enabled/paranoid)
  1447. [default=auto]
  1448. --enable-dependency-tracking
  1449. Use gcc -MMD -MT dependency tracking [default=yes]
  1450. --enable-libc Use the system C library [default=yes]
  1451. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1452. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1453. --enable-audio Enable the audio subsystem [default=yes]
  1454. --enable-video Enable the video subsystem [default=yes]
  1455. --enable-render Enable the render subsystem [default=yes]
  1456. --enable-events Enable the events subsystem [default=yes]
  1457. --enable-joystick Enable the joystick subsystem [default=yes]
  1458. --enable-haptic Enable the haptic (force feedback) subsystem
  1459. [default=yes]
  1460. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1461. --enable-sensor Enable the sensor subsystem [default=yes]
  1462. --enable-power Enable the power subsystem [default=yes]
  1463. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1464. --enable-threads Enable the threading subsystem [default=yes]
  1465. --enable-timers Enable the timer subsystem [default=yes]
  1466. --enable-file Enable the file subsystem [default=yes]
  1467. --enable-loadso Enable the shared object loading subsystem
  1468. [default=yes]
  1469. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1470. --enable-assembly Enable assembly routines [default=yes]
  1471. --enable-ssemath Allow GCC to use SSE floating point math
  1472. [default=maybe]
  1473. --enable-mmx use MMX assembly routines [default=yes]
  1474. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1475. --enable-sse use SSE assembly routines [default=yes]
  1476. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1477. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1478. --enable-altivec use Altivec assembly routines [default=yes]
  1479. --enable-oss support the OSS audio API [default=maybe]
  1480. --enable-alsa support the ALSA audio API [default=yes]
  1481. --disable-alsatest Do not try to compile and run a test Alsa program
  1482. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1483. --enable-jack use JACK audio [default=yes]
  1484. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1485. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1486. --disable-esdtest Do not try to compile and run a test ESD program
  1487. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1488. --enable-pipewire use Pipewire audio [default=yes]
  1489. --enable-pipewire-shared
  1490. dynamically load Pipewire support [default=yes]
  1491. --enable-pulseaudio use PulseAudio [default=yes]
  1492. --enable-pulseaudio-shared
  1493. dynamically load PulseAudio support [default=yes]
  1494. --enable-arts support the Analog Real Time Synthesizer
  1495. [default=yes]
  1496. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1497. --enable-nas support the NAS audio API [default=yes]
  1498. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1499. --enable-sndio support the sndio audio API [default=yes]
  1500. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1501. --enable-fusionsound use FusionSound audio driver [default=no]
  1502. --enable-fusionsound-shared
  1503. dynamically load fusionsound audio support
  1504. [default=yes]
  1505. --enable-diskaudio support the disk writer audio driver [default=yes]
  1506. --enable-dummyaudio support the dummy audio driver [default=yes]
  1507. --enable-libsamplerate use libsamplerate for audio rate conversion
  1508. [default=yes]
  1509. --enable-libsamplerate-shared
  1510. dynamically load libsamplerate [default=yes]
  1511. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1512. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1513. --enable-video-wayland use Wayland video driver [default=yes]
  1514. --enable-video-wayland-qt-touch
  1515. QtWayland server support for Wayland video driver
  1516. [default=yes]
  1517. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1518. --enable-libdecor use libdecor for Wayland client-side decorations
  1519. [default=yes]
  1520. --enable-libdecor-shared
  1521. dynamically load libdecor [default=yes]
  1522. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1523. --enable-video-x11 use X11 video driver [default=yes]
  1524. --enable-x11-shared dynamically load X11 support [default=maybe]
  1525. --enable-video-x11-xcursor
  1526. enable X11 Xcursor support [default=yes]
  1527. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1528. --enable-video-x11-xinerama
  1529. enable X11 Xinerama support [default=yes]
  1530. --enable-video-x11-xinput
  1531. enable X11 XInput extension for manymouse, tablets,
  1532. etc [default=yes]
  1533. --enable-video-x11-xfixes
  1534. enable X11 Xfixes support [default=yes]
  1535. --enable-video-x11-xrandr
  1536. enable X11 Xrandr extension for fullscreen
  1537. [default=yes]
  1538. --enable-video-x11-scrnsaver
  1539. enable X11 screensaver extension [default=yes]
  1540. --enable-video-x11-xshape
  1541. enable X11 XShape support [default=yes]
  1542. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1543. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1544. --enable-video-cocoa use Cocoa video driver [default=yes]
  1545. --enable-video-metal include Metal support [default=yes]
  1546. --enable-render-metal enable the Metal render driver [default=yes]
  1547. --enable-video-directfb use DirectFB video driver [default=no]
  1548. --enable-directfb-shared
  1549. dynamically load directfb support [default=yes]
  1550. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1551. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1552. --enable-video-dummy use dummy video driver [default=yes]
  1553. --enable-video-offscreen
  1554. use offscreen video driver [default=no]
  1555. --enable-video-opengl include OpenGL support [default=yes]
  1556. --enable-video-opengles include OpenGL ES support [default=yes]
  1557. --enable-video-opengles1
  1558. include OpenGL ES 1.1 support [default=yes]
  1559. --enable-video-opengles2
  1560. include OpenGL ES 2.0 support [default=yes]
  1561. --enable-video-vulkan include Vulkan support [default=yes]
  1562. --enable-libudev enable libudev support [default=yes]
  1563. --enable-dbus enable D-Bus support [default=yes]
  1564. --enable-ime enable IME support [default=yes]
  1565. --enable-ibus enable IBus support [default=yes]
  1566. --enable-fcitx enable fcitx support [default=yes]
  1567. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1568. --enable-pthreads use POSIX threads for multi-threading
  1569. [default=maybe]
  1570. --enable-pthread-sem use pthread semaphores [default=maybe]
  1571. --enable-directx use DirectX for Windows audio/video [default=yes]
  1572. --enable-xinput use Xinput for Windows [default=yes]
  1573. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1574. --enable-hidapi-joystick
  1575. use HIDAPI for low level joystick drivers
  1576. [default=yes]
  1577. --enable-hidapi-libusb use libusb for low level joystick drivers
  1578. [default=maybe]
  1579. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1580. UNIX [default=yes]
  1581. --enable-rpath use an rpath when linking SDL [default=yes]
  1582. --enable-backgrounding-signal
  1583. number to use for magic backgrounding signal or 'no'
  1584. [default=no]
  1585. --enable-foregrounding-signal
  1586. number to use for magic foregrounding signal or 'no'
  1587. [default=no]
  1588. --enable-joystick-virtual
  1589. enable virtual joystick APIs [default=yes]
  1590. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1591. --enable-sdl2-config Install sdl2-config [default=yes]
  1592. Optional Packages:
  1593. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1594. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1595. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1596. both]
  1597. --with-aix-soname=aix|svr4|both
  1598. shared library versioning (aka "SONAME") variant to
  1599. provide on AIX, [default=aix].
  1600. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1601. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1602. compiler's sysroot if not specified).
  1603. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1604. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1605. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1606. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1607. --with-x use the X Window System
  1608. Some influential environment variables:
  1609. CC C compiler command
  1610. CFLAGS C compiler flags
  1611. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1612. nonstandard directory <lib dir>
  1613. LIBS libraries to pass to the linker, e.g. -l<library>
  1614. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1615. you have headers in a nonstandard directory <include dir>
  1616. LT_SYS_LIBRARY_PATH
  1617. User-defined run-time library search path.
  1618. CPP C preprocessor
  1619. CXX C++ compiler command
  1620. CXXFLAGS C++ compiler flags
  1621. CXXCPP C++ preprocessor
  1622. PKG_CONFIG path to pkg-config utility
  1623. PKG_CONFIG_PATH
  1624. directories to add to pkg-config's search path
  1625. PKG_CONFIG_LIBDIR
  1626. path overriding pkg-config's built-in search path
  1627. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1628. JACK_LIBS linker flags for JACK, overriding pkg-config
  1629. PIPEWIRE_CFLAGS
  1630. C compiler flags for PIPEWIRE, overriding pkg-config
  1631. PIPEWIRE_LIBS
  1632. linker flags for PIPEWIRE, overriding pkg-config
  1633. PULSEAUDIO_CFLAGS
  1634. C compiler flags for PULSEAUDIO, overriding pkg-config
  1635. PULSEAUDIO_LIBS
  1636. linker flags for PULSEAUDIO, overriding pkg-config
  1637. FUSIONSOUND_CFLAGS
  1638. C compiler flags for FUSIONSOUND, overriding pkg-config
  1639. FUSIONSOUND_LIBS
  1640. linker flags for FUSIONSOUND, overriding pkg-config
  1641. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1642. RPI_LIBS linker flags for RPI, overriding pkg-config
  1643. XMKMF Path to xmkmf, Makefile generator for X Window System
  1644. DIRECTFB_CFLAGS
  1645. C compiler flags for DIRECTFB, overriding pkg-config
  1646. DIRECTFB_LIBS
  1647. linker flags for DIRECTFB, overriding pkg-config
  1648. LIBDRM_CFLAGS
  1649. C compiler flags for LIBDRM, overriding pkg-config
  1650. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1651. LIBGBM_CFLAGS
  1652. C compiler flags for LIBGBM, overriding pkg-config
  1653. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1654. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1655. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1656. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1657. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1658. LIBUSB_CFLAGS
  1659. C compiler flags for LIBUSB, overriding pkg-config
  1660. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1661. Use these variables to override the choices made by `configure' or to help
  1662. it to find libraries and programs with nonstandard names/locations.
  1663. Report bugs to the package provider.
  1664. _ACEOF
  1665. ac_status=$?
  1666. fi
  1667. if test "$ac_init_help" = "recursive"; then
  1668. # If there are subdirs, report their specific --help.
  1669. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1670. test -d "$ac_dir" ||
  1671. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1672. continue
  1673. ac_builddir=.
  1674. case "$ac_dir" in
  1675. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1676. *)
  1677. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1678. # A ".." for each directory in $ac_dir_suffix.
  1679. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1680. case $ac_top_builddir_sub in
  1681. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1682. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1683. esac ;;
  1684. esac
  1685. ac_abs_top_builddir=$ac_pwd
  1686. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1687. # for backward compatibility:
  1688. ac_top_builddir=$ac_top_build_prefix
  1689. case $srcdir in
  1690. .) # We are building in place.
  1691. ac_srcdir=.
  1692. ac_top_srcdir=$ac_top_builddir_sub
  1693. ac_abs_top_srcdir=$ac_pwd ;;
  1694. [\\/]* | ?:[\\/]* ) # Absolute name.
  1695. ac_srcdir=$srcdir$ac_dir_suffix;
  1696. ac_top_srcdir=$srcdir
  1697. ac_abs_top_srcdir=$srcdir ;;
  1698. *) # Relative name.
  1699. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1700. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1701. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1702. esac
  1703. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1704. cd "$ac_dir" || { ac_status=$?; continue; }
  1705. # Check for guested configure.
  1706. if test -f "$ac_srcdir/configure.gnu"; then
  1707. echo &&
  1708. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1709. elif test -f "$ac_srcdir/configure"; then
  1710. echo &&
  1711. $SHELL "$ac_srcdir/configure" --help=recursive
  1712. else
  1713. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1714. fi || ac_status=$?
  1715. cd "$ac_pwd" || { ac_status=$?; break; }
  1716. done
  1717. fi
  1718. test -n "$ac_init_help" && exit $ac_status
  1719. if $ac_init_version; then
  1720. cat <<\_ACEOF
  1721. configure
  1722. generated by GNU Autoconf 2.69
  1723. Copyright (C) 2012 Free Software Foundation, Inc.
  1724. This configure script is free software; the Free Software Foundation
  1725. gives unlimited permission to copy, distribute and modify it.
  1726. _ACEOF
  1727. exit
  1728. fi
  1729. ## ------------------------ ##
  1730. ## Autoconf initialization. ##
  1731. ## ------------------------ ##
  1732. # ac_fn_c_try_compile LINENO
  1733. # --------------------------
  1734. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_c_try_compile ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext
  1739. if { { ac_try="$ac_compile"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746. (eval "$ac_compile") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_c_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest.$ac_objext; then :
  1758. ac_retval=0
  1759. else
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=1
  1763. fi
  1764. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1765. as_fn_set_status $ac_retval
  1766. } # ac_fn_c_try_compile
  1767. # ac_fn_c_try_link LINENO
  1768. # -----------------------
  1769. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1770. ac_fn_c_try_link ()
  1771. {
  1772. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1773. rm -f conftest.$ac_objext conftest$ac_exeext
  1774. if { { ac_try="$ac_link"
  1775. case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_link") 2>conftest.err
  1782. ac_status=$?
  1783. if test -s conftest.err; then
  1784. grep -v '^ *+' conftest.err >conftest.er1
  1785. cat conftest.er1 >&5
  1786. mv -f conftest.er1 conftest.err
  1787. fi
  1788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1789. test $ac_status = 0; } && {
  1790. test -z "$ac_c_werror_flag" ||
  1791. test ! -s conftest.err
  1792. } && test -s conftest$ac_exeext && {
  1793. test "$cross_compiling" = yes ||
  1794. test -x conftest$ac_exeext
  1795. }; then :
  1796. ac_retval=0
  1797. else
  1798. $as_echo "$as_me: failed program was:" >&5
  1799. sed 's/^/| /' conftest.$ac_ext >&5
  1800. ac_retval=1
  1801. fi
  1802. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1803. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1804. # interfere with the next link command; also delete a directory that is
  1805. # left behind by Apple's compiler. We do this before executing the actions.
  1806. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. as_fn_set_status $ac_retval
  1809. } # ac_fn_c_try_link
  1810. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1811. # -------------------------------------------------------
  1812. # Tests whether HEADER exists and can be compiled using the include files in
  1813. # INCLUDES, setting the cache variable VAR accordingly.
  1814. ac_fn_c_check_header_compile ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1818. $as_echo_n "checking for $2... " >&6; }
  1819. if eval \${$3+:} false; then :
  1820. $as_echo_n "(cached) " >&6
  1821. else
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. #include <$2>
  1826. _ACEOF
  1827. if ac_fn_c_try_compile "$LINENO"; then :
  1828. eval "$3=yes"
  1829. else
  1830. eval "$3=no"
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. fi
  1834. eval ac_res=\$$3
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1836. $as_echo "$ac_res" >&6; }
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. } # ac_fn_c_check_header_compile
  1839. # ac_fn_c_try_cpp LINENO
  1840. # ----------------------
  1841. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1842. ac_fn_c_try_cpp ()
  1843. {
  1844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1845. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1846. case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo"; } >&5
  1852. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1853. ac_status=$?
  1854. if test -s conftest.err; then
  1855. grep -v '^ *+' conftest.err >conftest.er1
  1856. cat conftest.er1 >&5
  1857. mv -f conftest.er1 conftest.err
  1858. fi
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; } > conftest.i && {
  1861. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1862. test ! -s conftest.err
  1863. }; then :
  1864. ac_retval=0
  1865. else
  1866. $as_echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=1
  1869. fi
  1870. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1871. as_fn_set_status $ac_retval
  1872. } # ac_fn_c_try_cpp
  1873. # ac_fn_c_try_run LINENO
  1874. # ----------------------
  1875. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1876. # that executables *can* be run.
  1877. ac_fn_c_try_run ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. if { { ac_try="$ac_link"
  1881. case "(($ac_try" in
  1882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1883. *) ac_try_echo=$ac_try;;
  1884. esac
  1885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1886. $as_echo "$ac_try_echo"; } >&5
  1887. (eval "$ac_link") 2>&5
  1888. ac_status=$?
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1891. { { case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897. (eval "$ac_try") 2>&5
  1898. ac_status=$?
  1899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1900. test $ac_status = 0; }; }; then :
  1901. ac_retval=0
  1902. else
  1903. $as_echo "$as_me: program exited with status $ac_status" >&5
  1904. $as_echo "$as_me: failed program was:" >&5
  1905. sed 's/^/| /' conftest.$ac_ext >&5
  1906. ac_retval=$ac_status
  1907. fi
  1908. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1909. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1910. as_fn_set_status $ac_retval
  1911. } # ac_fn_c_try_run
  1912. # ac_fn_c_check_func LINENO FUNC VAR
  1913. # ----------------------------------
  1914. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1915. ac_fn_c_check_func ()
  1916. {
  1917. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1919. $as_echo_n "checking for $2... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921. $as_echo_n "(cached) " >&6
  1922. else
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1926. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1927. #define $2 innocuous_$2
  1928. /* System header to define __stub macros and hopefully few prototypes,
  1929. which can conflict with char $2 (); below.
  1930. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1931. <limits.h> exists even on freestanding compilers. */
  1932. #ifdef __STDC__
  1933. # include <limits.h>
  1934. #else
  1935. # include <assert.h>
  1936. #endif
  1937. #undef $2
  1938. /* Override any GCC internal prototype to avoid an error.
  1939. Use char because int might match the return type of a GCC
  1940. builtin and then its argument prototype would still apply. */
  1941. #ifdef __cplusplus
  1942. extern "C"
  1943. #endif
  1944. char $2 ();
  1945. /* The GNU C library defines this for functions which it implements
  1946. to always fail with ENOSYS. Some functions are actually named
  1947. something starting with __ and the normal name is an alias. */
  1948. #if defined __stub_$2 || defined __stub___$2
  1949. choke me
  1950. #endif
  1951. int
  1952. main ()
  1953. {
  1954. return $2 ();
  1955. ;
  1956. return 0;
  1957. }
  1958. _ACEOF
  1959. if ac_fn_c_try_link "$LINENO"; then :
  1960. eval "$3=yes"
  1961. else
  1962. eval "$3=no"
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext \
  1965. conftest$ac_exeext conftest.$ac_ext
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. } # ac_fn_c_check_func
  1972. # ac_fn_cxx_try_compile LINENO
  1973. # ----------------------------
  1974. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1975. ac_fn_cxx_try_compile ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. rm -f conftest.$ac_objext
  1979. if { { ac_try="$ac_compile"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1985. $as_echo "$ac_try_echo"; } >&5
  1986. (eval "$ac_compile") 2>conftest.err
  1987. ac_status=$?
  1988. if test -s conftest.err; then
  1989. grep -v '^ *+' conftest.err >conftest.er1
  1990. cat conftest.er1 >&5
  1991. mv -f conftest.er1 conftest.err
  1992. fi
  1993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1994. test $ac_status = 0; } && {
  1995. test -z "$ac_cxx_werror_flag" ||
  1996. test ! -s conftest.err
  1997. } && test -s conftest.$ac_objext; then :
  1998. ac_retval=0
  1999. else
  2000. $as_echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. $as_echo "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }; then :
  2032. ac_retval=0
  2033. else
  2034. $as_echo "$as_me: failed program was:" >&5
  2035. sed 's/^/| /' conftest.$ac_ext >&5
  2036. ac_retval=1
  2037. fi
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. as_fn_set_status $ac_retval
  2040. } # ac_fn_cxx_try_cpp
  2041. # ac_fn_cxx_try_link LINENO
  2042. # -------------------------
  2043. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2044. ac_fn_cxx_try_link ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. rm -f conftest.$ac_objext conftest$ac_exeext
  2048. if { { ac_try="$ac_link"
  2049. case "(($ac_try" in
  2050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2051. *) ac_try_echo=$ac_try;;
  2052. esac
  2053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2054. $as_echo "$ac_try_echo"; } >&5
  2055. (eval "$ac_link") 2>conftest.err
  2056. ac_status=$?
  2057. if test -s conftest.err; then
  2058. grep -v '^ *+' conftest.err >conftest.er1
  2059. cat conftest.er1 >&5
  2060. mv -f conftest.er1 conftest.err
  2061. fi
  2062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2063. test $ac_status = 0; } && {
  2064. test -z "$ac_cxx_werror_flag" ||
  2065. test ! -s conftest.err
  2066. } && test -s conftest$ac_exeext && {
  2067. test "$cross_compiling" = yes ||
  2068. test -x conftest$ac_exeext
  2069. }; then :
  2070. ac_retval=0
  2071. else
  2072. $as_echo "$as_me: failed program was:" >&5
  2073. sed 's/^/| /' conftest.$ac_ext >&5
  2074. ac_retval=1
  2075. fi
  2076. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2077. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2078. # interfere with the next link command; also delete a directory that is
  2079. # left behind by Apple's compiler. We do this before executing the actions.
  2080. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. as_fn_set_status $ac_retval
  2083. } # ac_fn_cxx_try_link
  2084. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2085. # -------------------------------------------------------
  2086. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2087. # the include files in INCLUDES and setting the cache variable VAR
  2088. # accordingly.
  2089. ac_fn_c_check_header_mongrel ()
  2090. {
  2091. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2092. if eval \${$3+:} false; then :
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. $as_echo_n "checking for $2... " >&6; }
  2095. if eval \${$3+:} false; then :
  2096. $as_echo_n "(cached) " >&6
  2097. fi
  2098. eval ac_res=\$$3
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2100. $as_echo "$ac_res" >&6; }
  2101. else
  2102. # Is the header compilable?
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2104. $as_echo_n "checking $2 usability... " >&6; }
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. #include <$2>
  2109. _ACEOF
  2110. if ac_fn_c_try_compile "$LINENO"; then :
  2111. ac_header_compiler=yes
  2112. else
  2113. ac_header_compiler=no
  2114. fi
  2115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2117. $as_echo "$ac_header_compiler" >&6; }
  2118. # Is the header present?
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2120. $as_echo_n "checking $2 presence... " >&6; }
  2121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2122. /* end confdefs.h. */
  2123. #include <$2>
  2124. _ACEOF
  2125. if ac_fn_c_try_cpp "$LINENO"; then :
  2126. ac_header_preproc=yes
  2127. else
  2128. ac_header_preproc=no
  2129. fi
  2130. rm -f conftest.err conftest.i conftest.$ac_ext
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2132. $as_echo "$ac_header_preproc" >&6; }
  2133. # So? What about this header?
  2134. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2135. yes:no: )
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2137. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2139. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2140. ;;
  2141. no:yes:* )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2143. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2145. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2147. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2149. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2151. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2152. ;;
  2153. esac
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2155. $as_echo_n "checking for $2... " >&6; }
  2156. if eval \${$3+:} false; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. eval "$3=\$ac_header_compiler"
  2160. fi
  2161. eval ac_res=\$$3
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2163. $as_echo "$ac_res" >&6; }
  2164. fi
  2165. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2166. } # ac_fn_c_check_header_mongrel
  2167. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2168. # -------------------------------------------
  2169. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2170. # variable VAR accordingly.
  2171. ac_fn_c_check_type ()
  2172. {
  2173. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2175. $as_echo_n "checking for $2... " >&6; }
  2176. if eval \${$3+:} false; then :
  2177. $as_echo_n "(cached) " >&6
  2178. else
  2179. eval "$3=no"
  2180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2181. /* end confdefs.h. */
  2182. $4
  2183. int
  2184. main ()
  2185. {
  2186. if (sizeof ($2))
  2187. return 0;
  2188. ;
  2189. return 0;
  2190. }
  2191. _ACEOF
  2192. if ac_fn_c_try_compile "$LINENO"; then :
  2193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2194. /* end confdefs.h. */
  2195. $4
  2196. int
  2197. main ()
  2198. {
  2199. if (sizeof (($2)))
  2200. return 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_c_try_compile "$LINENO"; then :
  2206. else
  2207. eval "$3=yes"
  2208. fi
  2209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2210. fi
  2211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. fi
  2213. eval ac_res=\$$3
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2215. $as_echo "$ac_res" >&6; }
  2216. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2217. } # ac_fn_c_check_type
  2218. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2219. # ----------------------------------------------------
  2220. # Tries to find if the field MEMBER exists in type AGGR, after including
  2221. # INCLUDES, setting cache variable VAR accordingly.
  2222. ac_fn_c_check_member ()
  2223. {
  2224. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2226. $as_echo_n "checking for $2.$3... " >&6; }
  2227. if eval \${$4+:} false; then :
  2228. $as_echo_n "(cached) " >&6
  2229. else
  2230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2231. /* end confdefs.h. */
  2232. $5
  2233. int
  2234. main ()
  2235. {
  2236. static $2 ac_aggr;
  2237. if (ac_aggr.$3)
  2238. return 0;
  2239. ;
  2240. return 0;
  2241. }
  2242. _ACEOF
  2243. if ac_fn_c_try_compile "$LINENO"; then :
  2244. eval "$4=yes"
  2245. else
  2246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2247. /* end confdefs.h. */
  2248. $5
  2249. int
  2250. main ()
  2251. {
  2252. static $2 ac_aggr;
  2253. if (sizeof ac_aggr.$3)
  2254. return 0;
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. if ac_fn_c_try_compile "$LINENO"; then :
  2260. eval "$4=yes"
  2261. else
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. $as_echo "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. cat >config.log <<_ACEOF
  2274. This file contains any messages produced by compilers while
  2275. running configure, to aid debugging if configure makes a mistake.
  2276. It was created by $as_me, which was
  2277. generated by GNU Autoconf 2.69. Invocation command line was
  2278. $ $0 $@
  2279. _ACEOF
  2280. exec 5>>config.log
  2281. {
  2282. cat <<_ASUNAME
  2283. ## --------- ##
  2284. ## Platform. ##
  2285. ## --------- ##
  2286. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2287. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2288. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2289. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2290. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2291. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2292. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2293. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2294. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2295. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2296. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2297. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2298. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2299. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2300. _ASUNAME
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. $as_echo "PATH: $as_dir"
  2307. done
  2308. IFS=$as_save_IFS
  2309. } >&5
  2310. cat >&5 <<_ACEOF
  2311. ## ----------- ##
  2312. ## Core tests. ##
  2313. ## ----------- ##
  2314. _ACEOF
  2315. # Keep a trace of the command line.
  2316. # Strip out --no-create and --no-recursion so they do not pile up.
  2317. # Strip out --silent because we don't want to record it for future runs.
  2318. # Also quote any args containing shell meta-characters.
  2319. # Make two passes to allow for proper duplicate-argument suppression.
  2320. ac_configure_args=
  2321. ac_configure_args0=
  2322. ac_configure_args1=
  2323. ac_must_keep_next=false
  2324. for ac_pass in 1 2
  2325. do
  2326. for ac_arg
  2327. do
  2328. case $ac_arg in
  2329. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2330. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2331. | -silent | --silent | --silen | --sile | --sil)
  2332. continue ;;
  2333. *\'*)
  2334. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2335. esac
  2336. case $ac_pass in
  2337. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2338. 2)
  2339. as_fn_append ac_configure_args1 " '$ac_arg'"
  2340. if test $ac_must_keep_next = true; then
  2341. ac_must_keep_next=false # Got value, back to normal.
  2342. else
  2343. case $ac_arg in
  2344. *=* | --config-cache | -C | -disable-* | --disable-* \
  2345. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2346. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2347. | -with-* | --with-* | -without-* | --without-* | --x)
  2348. case "$ac_configure_args0 " in
  2349. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2350. esac
  2351. ;;
  2352. -* ) ac_must_keep_next=true ;;
  2353. esac
  2354. fi
  2355. as_fn_append ac_configure_args " '$ac_arg'"
  2356. ;;
  2357. esac
  2358. done
  2359. done
  2360. { ac_configure_args0=; unset ac_configure_args0;}
  2361. { ac_configure_args1=; unset ac_configure_args1;}
  2362. # When interrupted or exit'd, cleanup temporary files, and complete
  2363. # config.log. We remove comments because anyway the quotes in there
  2364. # would cause problems or look ugly.
  2365. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2366. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2367. trap 'exit_status=$?
  2368. # Save into config.log some information that might help in debugging.
  2369. {
  2370. echo
  2371. $as_echo "## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##"
  2374. echo
  2375. # The following way of writing the cache mishandles newlines in values,
  2376. (
  2377. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in #(
  2380. *${as_nl}*)
  2381. case $ac_var in #(
  2382. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2383. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2384. esac
  2385. case $ac_var in #(
  2386. _ | IFS | as_nl) ;; #(
  2387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2388. *) { eval $ac_var=; unset $ac_var;} ;;
  2389. esac ;;
  2390. esac
  2391. done
  2392. (set) 2>&1 |
  2393. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2394. *${as_nl}ac_space=\ *)
  2395. sed -n \
  2396. "s/'\''/'\''\\\\'\'''\''/g;
  2397. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2398. ;; #(
  2399. *)
  2400. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2401. ;;
  2402. esac |
  2403. sort
  2404. )
  2405. echo
  2406. $as_echo "## ----------------- ##
  2407. ## Output variables. ##
  2408. ## ----------------- ##"
  2409. echo
  2410. for ac_var in $ac_subst_vars
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. $as_echo "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. if test -n "$ac_subst_files"; then
  2420. $as_echo "## ------------------- ##
  2421. ## File substitutions. ##
  2422. ## ------------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_files
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. fi
  2434. if test -s confdefs.h; then
  2435. $as_echo "## ----------- ##
  2436. ## confdefs.h. ##
  2437. ## ----------- ##"
  2438. echo
  2439. cat confdefs.h
  2440. echo
  2441. fi
  2442. test "$ac_signal" != 0 &&
  2443. $as_echo "$as_me: caught signal $ac_signal"
  2444. $as_echo "$as_me: exit $exit_status"
  2445. } >&5
  2446. rm -f core *.core core.conftest.* &&
  2447. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2448. exit $exit_status
  2449. ' 0
  2450. for ac_signal in 1 2 13 15; do
  2451. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2452. done
  2453. ac_signal=0
  2454. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2455. rm -f -r conftest* confdefs.h
  2456. $as_echo "/* confdefs.h */" > confdefs.h
  2457. # Predefined preprocessor variables.
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_NAME "$PACKAGE_NAME"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2463. _ACEOF
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_STRING "$PACKAGE_STRING"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_URL "$PACKAGE_URL"
  2475. _ACEOF
  2476. # Let the site file select an alternate cache file if it wants to.
  2477. # Prefer an explicitly selected file to automatically selected ones.
  2478. ac_site_file1=NONE
  2479. ac_site_file2=NONE
  2480. if test -n "$CONFIG_SITE"; then
  2481. # We do not want a PATH search for config.site.
  2482. case $CONFIG_SITE in #((
  2483. -*) ac_site_file1=./$CONFIG_SITE;;
  2484. */*) ac_site_file1=$CONFIG_SITE;;
  2485. *) ac_site_file1=./$CONFIG_SITE;;
  2486. esac
  2487. elif test "x$prefix" != xNONE; then
  2488. ac_site_file1=$prefix/share/config.site
  2489. ac_site_file2=$prefix/etc/config.site
  2490. else
  2491. ac_site_file1=$ac_default_prefix/share/config.site
  2492. ac_site_file2=$ac_default_prefix/etc/config.site
  2493. fi
  2494. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2495. do
  2496. test "x$ac_site_file" = xNONE && continue
  2497. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2499. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2500. sed 's/^/| /' "$ac_site_file" >&5
  2501. . "$ac_site_file" \
  2502. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2504. as_fn_error $? "failed to load site script $ac_site_file
  2505. See \`config.log' for more details" "$LINENO" 5; }
  2506. fi
  2507. done
  2508. if test -r "$cache_file"; then
  2509. # Some versions of bash will fail to source /dev/null (special files
  2510. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2511. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2513. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2514. case $cache_file in
  2515. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2516. *) . "./$cache_file";;
  2517. esac
  2518. fi
  2519. else
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2521. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2522. >$cache_file
  2523. fi
  2524. # Check that the precious variables saved in the cache have kept the same
  2525. # value.
  2526. ac_cache_corrupted=false
  2527. for ac_var in $ac_precious_vars; do
  2528. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2529. eval ac_new_set=\$ac_env_${ac_var}_set
  2530. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2531. eval ac_new_val=\$ac_env_${ac_var}_value
  2532. case $ac_old_set,$ac_new_set in
  2533. set,)
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2535. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2536. ac_cache_corrupted=: ;;
  2537. ,set)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,);;
  2542. *)
  2543. if test "x$ac_old_val" != "x$ac_new_val"; then
  2544. # differences in whitespace do not lead to failure.
  2545. ac_old_val_w=`echo x $ac_old_val`
  2546. ac_new_val_w=`echo x $ac_new_val`
  2547. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2550. ac_cache_corrupted=:
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2553. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2554. eval $ac_var=\$ac_old_val
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2557. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2559. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2560. fi;;
  2561. esac
  2562. # Pass precious variables to config.status.
  2563. if test "$ac_new_set" = set; then
  2564. case $ac_new_val in
  2565. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2566. *) ac_arg=$ac_var=$ac_new_val ;;
  2567. esac
  2568. case " $ac_configure_args " in
  2569. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2570. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2571. esac
  2572. fi
  2573. done
  2574. if $ac_cache_corrupted; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2578. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2579. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2580. fi
  2581. ## -------------------- ##
  2582. ## Main body of script. ##
  2583. ## -------------------- ##
  2584. ac_ext=c
  2585. ac_cpp='$CPP $CPPFLAGS'
  2586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2589. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2590. ac_aux_dir=
  2591. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2592. if test -f "$ac_dir/install-sh"; then
  2593. ac_aux_dir=$ac_dir
  2594. ac_install_sh="$ac_aux_dir/install-sh -c"
  2595. break
  2596. elif test -f "$ac_dir/install.sh"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/install.sh -c"
  2599. break
  2600. elif test -f "$ac_dir/shtool"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/shtool install -c"
  2603. break
  2604. fi
  2605. done
  2606. if test -z "$ac_aux_dir"; then
  2607. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2608. fi
  2609. # These three variables are undocumented and unsupported,
  2610. # and are intended to be withdrawn in a future Autoconf release.
  2611. # They can cause serious problems if a builder's source tree is in a directory
  2612. # whose full name contains unusual characters.
  2613. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2614. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2615. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2616. orig_CFLAGS="$CFLAGS"
  2617. #
  2618. # Making releases:
  2619. # Edit include/SDL_version.h and change the version, then:
  2620. # SDL_MICRO_VERSION += 1;
  2621. # SDL_INTERFACE_AGE += 1;
  2622. # SDL_BINARY_AGE += 1;
  2623. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2624. # if backwards compatibility has been broken,
  2625. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2626. #
  2627. SDL_MAJOR_VERSION=2
  2628. SDL_MINOR_VERSION=0
  2629. SDL_MICRO_VERSION=20
  2630. SDL_INTERFACE_AGE=2
  2631. SDL_BINARY_AGE=20
  2632. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2633. # libtool versioning
  2634. case `pwd` in
  2635. *\ * | *\ *)
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2637. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2638. esac
  2639. macro_version='2.4.6'
  2640. macro_revision='2.4.6'
  2641. ltmain=$ac_aux_dir/ltmain.sh
  2642. # Make sure we can run config.sub.
  2643. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2644. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2646. $as_echo_n "checking build system type... " >&6; }
  2647. if ${ac_cv_build+:} false; then :
  2648. $as_echo_n "(cached) " >&6
  2649. else
  2650. ac_build_alias=$build_alias
  2651. test "x$ac_build_alias" = x &&
  2652. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2653. test "x$ac_build_alias" = x &&
  2654. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2655. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2656. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2659. $as_echo "$ac_cv_build" >&6; }
  2660. case $ac_cv_build in
  2661. *-*-*) ;;
  2662. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2663. esac
  2664. build=$ac_cv_build
  2665. ac_save_IFS=$IFS; IFS='-'
  2666. set x $ac_cv_build
  2667. shift
  2668. build_cpu=$1
  2669. build_vendor=$2
  2670. shift; shift
  2671. # Remember, the first character of IFS is used to create $*,
  2672. # except with old shells:
  2673. build_os=$*
  2674. IFS=$ac_save_IFS
  2675. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2677. $as_echo_n "checking host system type... " >&6; }
  2678. if ${ac_cv_host+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test "x$host_alias" = x; then
  2682. ac_cv_host=$ac_cv_build
  2683. else
  2684. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2685. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2686. fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2689. $as_echo "$ac_cv_host" >&6; }
  2690. case $ac_cv_host in
  2691. *-*-*) ;;
  2692. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2693. esac
  2694. host=$ac_cv_host
  2695. ac_save_IFS=$IFS; IFS='-'
  2696. set x $ac_cv_host
  2697. shift
  2698. host_cpu=$1
  2699. host_vendor=$2
  2700. shift; shift
  2701. # Remember, the first character of IFS is used to create $*,
  2702. # except with old shells:
  2703. host_os=$*
  2704. IFS=$ac_save_IFS
  2705. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2706. # Backslashify metacharacters that are still active within
  2707. # double-quoted strings.
  2708. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2709. # Same as above, but do not quote variable references.
  2710. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2711. # Sed substitution to delay expansion of an escaped shell variable in a
  2712. # double_quote_subst'ed string.
  2713. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2714. # Sed substitution to delay expansion of an escaped single quote.
  2715. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2716. # Sed substitution to avoid accidental globbing in evaled expressions
  2717. no_glob_subst='s/\*/\\\*/g'
  2718. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2719. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2720. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2722. $as_echo_n "checking how to print strings... " >&6; }
  2723. # Test print first, because it will be a builtin if present.
  2724. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2725. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2726. ECHO='print -r --'
  2727. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2728. ECHO='printf %s\n'
  2729. else
  2730. # Use this function as a fallback that always works.
  2731. func_fallback_echo ()
  2732. {
  2733. eval 'cat <<_LTECHO_EOF
  2734. $1
  2735. _LTECHO_EOF'
  2736. }
  2737. ECHO='func_fallback_echo'
  2738. fi
  2739. # func_echo_all arg...
  2740. # Invoke $ECHO with all args, space-separated.
  2741. func_echo_all ()
  2742. {
  2743. $ECHO ""
  2744. }
  2745. case $ECHO in
  2746. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2747. $as_echo "printf" >&6; } ;;
  2748. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2749. $as_echo "print -r" >&6; } ;;
  2750. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2751. $as_echo "cat" >&6; } ;;
  2752. esac
  2753. ac_ext=c
  2754. ac_cpp='$CPP $CPPFLAGS'
  2755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2758. if test -n "$ac_tool_prefix"; then
  2759. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2760. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_CC+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$CC"; then
  2767. ac_cv_prog_CC="$CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2776. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. CC=$ac_cv_prog_CC
  2786. if test -n "$CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2788. $as_echo "$CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. fi
  2794. if test -z "$ac_cv_prog_CC"; then
  2795. ac_ct_CC=$CC
  2796. # Extract the first word of "gcc", so it can be a program name with args.
  2797. set dummy gcc; ac_word=$2
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2799. $as_echo_n "checking for $ac_word... " >&6; }
  2800. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2801. $as_echo_n "(cached) " >&6
  2802. else
  2803. if test -n "$ac_ct_CC"; then
  2804. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2805. else
  2806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. for as_dir in $PATH
  2808. do
  2809. IFS=$as_save_IFS
  2810. test -z "$as_dir" && as_dir=.
  2811. for ac_exec_ext in '' $ac_executable_extensions; do
  2812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2813. ac_cv_prog_ac_ct_CC="gcc"
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. break 2
  2816. fi
  2817. done
  2818. done
  2819. IFS=$as_save_IFS
  2820. fi
  2821. fi
  2822. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2823. if test -n "$ac_ct_CC"; then
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2825. $as_echo "$ac_ct_CC" >&6; }
  2826. else
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. $as_echo "no" >&6; }
  2829. fi
  2830. if test "x$ac_ct_CC" = x; then
  2831. CC=""
  2832. else
  2833. case $cross_compiling:$ac_tool_warned in
  2834. yes:)
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2837. ac_tool_warned=yes ;;
  2838. esac
  2839. CC=$ac_ct_CC
  2840. fi
  2841. else
  2842. CC="$ac_cv_prog_CC"
  2843. fi
  2844. if test -z "$CC"; then
  2845. if test -n "$ac_tool_prefix"; then
  2846. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2847. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if ${ac_cv_prog_CC+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2863. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. IFS=$as_save_IFS
  2870. fi
  2871. fi
  2872. CC=$ac_cv_prog_CC
  2873. if test -n "$CC"; then
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2875. $as_echo "$CC" >&6; }
  2876. else
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. fi
  2880. fi
  2881. fi
  2882. if test -z "$CC"; then
  2883. # Extract the first word of "cc", so it can be a program name with args.
  2884. set dummy cc; ac_word=$2
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2886. $as_echo_n "checking for $ac_word... " >&6; }
  2887. if ${ac_cv_prog_CC+:} false; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. if test -n "$CC"; then
  2891. ac_cv_prog_CC="$CC" # Let the user override the test.
  2892. else
  2893. ac_prog_rejected=no
  2894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2895. for as_dir in $PATH
  2896. do
  2897. IFS=$as_save_IFS
  2898. test -z "$as_dir" && as_dir=.
  2899. for ac_exec_ext in '' $ac_executable_extensions; do
  2900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2901. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2902. ac_prog_rejected=yes
  2903. continue
  2904. fi
  2905. ac_cv_prog_CC="cc"
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2907. break 2
  2908. fi
  2909. done
  2910. done
  2911. IFS=$as_save_IFS
  2912. if test $ac_prog_rejected = yes; then
  2913. # We found a bogon in the path, so make sure we never use it.
  2914. set dummy $ac_cv_prog_CC
  2915. shift
  2916. if test $# != 0; then
  2917. # We chose a different compiler from the bogus one.
  2918. # However, it has the same basename, so the bogon will be chosen
  2919. # first if we set CC to just the basename; use the full file name.
  2920. shift
  2921. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2922. fi
  2923. fi
  2924. fi
  2925. fi
  2926. CC=$ac_cv_prog_CC
  2927. if test -n "$CC"; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2929. $as_echo "$CC" >&6; }
  2930. else
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. $as_echo "no" >&6; }
  2933. fi
  2934. fi
  2935. if test -z "$CC"; then
  2936. if test -n "$ac_tool_prefix"; then
  2937. for ac_prog in cl.exe
  2938. do
  2939. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2940. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2942. $as_echo_n "checking for $ac_word... " >&6; }
  2943. if ${ac_cv_prog_CC+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. if test -n "$CC"; then
  2947. ac_cv_prog_CC="$CC" # Let the user override the test.
  2948. else
  2949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2950. for as_dir in $PATH
  2951. do
  2952. IFS=$as_save_IFS
  2953. test -z "$as_dir" && as_dir=.
  2954. for ac_exec_ext in '' $ac_executable_extensions; do
  2955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2956. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2958. break 2
  2959. fi
  2960. done
  2961. done
  2962. IFS=$as_save_IFS
  2963. fi
  2964. fi
  2965. CC=$ac_cv_prog_CC
  2966. if test -n "$CC"; then
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2968. $as_echo "$CC" >&6; }
  2969. else
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2971. $as_echo "no" >&6; }
  2972. fi
  2973. test -n "$CC" && break
  2974. done
  2975. fi
  2976. if test -z "$CC"; then
  2977. ac_ct_CC=$CC
  2978. for ac_prog in cl.exe
  2979. do
  2980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2981. set dummy $ac_prog; ac_word=$2
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2983. $as_echo_n "checking for $ac_word... " >&6; }
  2984. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. if test -n "$ac_ct_CC"; then
  2988. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2989. else
  2990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2991. for as_dir in $PATH
  2992. do
  2993. IFS=$as_save_IFS
  2994. test -z "$as_dir" && as_dir=.
  2995. for ac_exec_ext in '' $ac_executable_extensions; do
  2996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2997. ac_cv_prog_ac_ct_CC="$ac_prog"
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2999. break 2
  3000. fi
  3001. done
  3002. done
  3003. IFS=$as_save_IFS
  3004. fi
  3005. fi
  3006. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3007. if test -n "$ac_ct_CC"; then
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3009. $as_echo "$ac_ct_CC" >&6; }
  3010. else
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3012. $as_echo "no" >&6; }
  3013. fi
  3014. test -n "$ac_ct_CC" && break
  3015. done
  3016. if test "x$ac_ct_CC" = x; then
  3017. CC=""
  3018. else
  3019. case $cross_compiling:$ac_tool_warned in
  3020. yes:)
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3023. ac_tool_warned=yes ;;
  3024. esac
  3025. CC=$ac_ct_CC
  3026. fi
  3027. fi
  3028. fi
  3029. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3031. as_fn_error $? "no acceptable C compiler found in \$PATH
  3032. See \`config.log' for more details" "$LINENO" 5; }
  3033. # Provide some information about the compiler.
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3035. set X $ac_compile
  3036. ac_compiler=$2
  3037. for ac_option in --version -v -V -qversion; do
  3038. { { ac_try="$ac_compiler $ac_option >&5"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3044. $as_echo "$ac_try_echo"; } >&5
  3045. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3046. ac_status=$?
  3047. if test -s conftest.err; then
  3048. sed '10a\
  3049. ... rest of stderr output deleted ...
  3050. 10q' conftest.err >conftest.er1
  3051. cat conftest.er1 >&5
  3052. fi
  3053. rm -f conftest.er1 conftest.err
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }
  3056. done
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. int
  3060. main ()
  3061. {
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. ac_clean_files_save=$ac_clean_files
  3067. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3068. # Try to create an executable without -o first, disregard a.out.
  3069. # It will help us diagnose broken compilers, and finding out an intuition
  3070. # of exeext.
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3072. $as_echo_n "checking whether the C compiler works... " >&6; }
  3073. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3074. # The possible output files:
  3075. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3076. ac_rmfiles=
  3077. for ac_file in $ac_files
  3078. do
  3079. case $ac_file in
  3080. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3081. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3082. esac
  3083. done
  3084. rm -f $ac_rmfiles
  3085. if { { ac_try="$ac_link_default"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3091. $as_echo "$ac_try_echo"; } >&5
  3092. (eval "$ac_link_default") 2>&5
  3093. ac_status=$?
  3094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3095. test $ac_status = 0; }; then :
  3096. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3097. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3098. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3099. # so that the user can short-circuit this test for compilers unknown to
  3100. # Autoconf.
  3101. for ac_file in $ac_files ''
  3102. do
  3103. test -f "$ac_file" || continue
  3104. case $ac_file in
  3105. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3106. ;;
  3107. [ab].out )
  3108. # We found the default executable, but exeext='' is most
  3109. # certainly right.
  3110. break;;
  3111. *.* )
  3112. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3113. then :; else
  3114. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3115. fi
  3116. # We set ac_cv_exeext here because the later test for it is not
  3117. # safe: cross compilers may not add the suffix if given an `-o'
  3118. # argument, so we may need to know it at that point already.
  3119. # Even if this section looks crufty: it has the advantage of
  3120. # actually working.
  3121. break;;
  3122. * )
  3123. break;;
  3124. esac
  3125. done
  3126. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3127. else
  3128. ac_file=''
  3129. fi
  3130. if test -z "$ac_file"; then :
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3132. $as_echo "no" >&6; }
  3133. $as_echo "$as_me: failed program was:" >&5
  3134. sed 's/^/| /' conftest.$ac_ext >&5
  3135. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3137. as_fn_error 77 "C compiler cannot create executables
  3138. See \`config.log' for more details" "$LINENO" 5; }
  3139. else
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3141. $as_echo "yes" >&6; }
  3142. fi
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3144. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3146. $as_echo "$ac_file" >&6; }
  3147. ac_exeext=$ac_cv_exeext
  3148. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3149. ac_clean_files=$ac_clean_files_save
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3151. $as_echo_n "checking for suffix of executables... " >&6; }
  3152. if { { ac_try="$ac_link"
  3153. case "(($ac_try" in
  3154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3155. *) ac_try_echo=$ac_try;;
  3156. esac
  3157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3158. $as_echo "$ac_try_echo"; } >&5
  3159. (eval "$ac_link") 2>&5
  3160. ac_status=$?
  3161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3162. test $ac_status = 0; }; then :
  3163. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3164. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3165. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3166. # `rm'.
  3167. for ac_file in conftest.exe conftest conftest.*; do
  3168. test -f "$ac_file" || continue
  3169. case $ac_file in
  3170. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3171. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3172. break;;
  3173. * ) break;;
  3174. esac
  3175. done
  3176. else
  3177. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3178. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3179. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3180. See \`config.log' for more details" "$LINENO" 5; }
  3181. fi
  3182. rm -f conftest conftest$ac_cv_exeext
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3184. $as_echo "$ac_cv_exeext" >&6; }
  3185. rm -f conftest.$ac_ext
  3186. EXEEXT=$ac_cv_exeext
  3187. ac_exeext=$EXEEXT
  3188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3189. /* end confdefs.h. */
  3190. #include <stdio.h>
  3191. int
  3192. main ()
  3193. {
  3194. FILE *f = fopen ("conftest.out", "w");
  3195. return ferror (f) || fclose (f) != 0;
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. ac_clean_files="$ac_clean_files conftest.out"
  3201. # Check that the compiler produces executables we can run. If not, either
  3202. # the compiler is broken, or we cross compile.
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3204. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3205. if test "$cross_compiling" != yes; then
  3206. { { ac_try="$ac_link"
  3207. case "(($ac_try" in
  3208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3209. *) ac_try_echo=$ac_try;;
  3210. esac
  3211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3212. $as_echo "$ac_try_echo"; } >&5
  3213. (eval "$ac_link") 2>&5
  3214. ac_status=$?
  3215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3216. test $ac_status = 0; }
  3217. if { ac_try='./conftest$ac_cv_exeext'
  3218. { { case "(($ac_try" in
  3219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220. *) ac_try_echo=$ac_try;;
  3221. esac
  3222. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3223. $as_echo "$ac_try_echo"; } >&5
  3224. (eval "$ac_try") 2>&5
  3225. ac_status=$?
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3227. test $ac_status = 0; }; }; then
  3228. cross_compiling=no
  3229. else
  3230. if test "$cross_compiling" = maybe; then
  3231. cross_compiling=yes
  3232. else
  3233. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3235. as_fn_error $? "cannot run C compiled programs.
  3236. If you meant to cross compile, use \`--host'.
  3237. See \`config.log' for more details" "$LINENO" 5; }
  3238. fi
  3239. fi
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3242. $as_echo "$cross_compiling" >&6; }
  3243. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3244. ac_clean_files=$ac_clean_files_save
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3246. $as_echo_n "checking for suffix of object files... " >&6; }
  3247. if ${ac_cv_objext+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3251. /* end confdefs.h. */
  3252. int
  3253. main ()
  3254. {
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. rm -f conftest.o conftest.obj
  3260. if { { ac_try="$ac_compile"
  3261. case "(($ac_try" in
  3262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3263. *) ac_try_echo=$ac_try;;
  3264. esac
  3265. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3266. $as_echo "$ac_try_echo"; } >&5
  3267. (eval "$ac_compile") 2>&5
  3268. ac_status=$?
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3270. test $ac_status = 0; }; then :
  3271. for ac_file in conftest.o conftest.obj conftest.*; do
  3272. test -f "$ac_file" || continue;
  3273. case $ac_file in
  3274. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3275. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3276. break;;
  3277. esac
  3278. done
  3279. else
  3280. $as_echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3284. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3285. See \`config.log' for more details" "$LINENO" 5; }
  3286. fi
  3287. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3290. $as_echo "$ac_cv_objext" >&6; }
  3291. OBJEXT=$ac_cv_objext
  3292. ac_objext=$OBJEXT
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3294. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3295. if ${ac_cv_c_compiler_gnu+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. int
  3301. main ()
  3302. {
  3303. #ifndef __GNUC__
  3304. choke me
  3305. #endif
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. if ac_fn_c_try_compile "$LINENO"; then :
  3311. ac_compiler_gnu=yes
  3312. else
  3313. ac_compiler_gnu=no
  3314. fi
  3315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3316. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3319. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3320. if test $ac_compiler_gnu = yes; then
  3321. GCC=yes
  3322. else
  3323. GCC=
  3324. fi
  3325. ac_test_CFLAGS=${CFLAGS+set}
  3326. ac_save_CFLAGS=$CFLAGS
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3328. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3329. if ${ac_cv_prog_cc_g+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. ac_save_c_werror_flag=$ac_c_werror_flag
  3333. ac_c_werror_flag=yes
  3334. ac_cv_prog_cc_g=no
  3335. CFLAGS="-g"
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. if ac_fn_c_try_compile "$LINENO"; then :
  3346. ac_cv_prog_cc_g=yes
  3347. else
  3348. CFLAGS=""
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. else
  3360. ac_c_werror_flag=$ac_save_c_werror_flag
  3361. CFLAGS="-g"
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. if ac_fn_c_try_compile "$LINENO"; then :
  3372. ac_cv_prog_cc_g=yes
  3373. fi
  3374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. ac_c_werror_flag=$ac_save_c_werror_flag
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3382. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3383. if test "$ac_test_CFLAGS" = set; then
  3384. CFLAGS=$ac_save_CFLAGS
  3385. elif test $ac_cv_prog_cc_g = yes; then
  3386. if test "$GCC" = yes; then
  3387. CFLAGS="-g -O2"
  3388. else
  3389. CFLAGS="-g"
  3390. fi
  3391. else
  3392. if test "$GCC" = yes; then
  3393. CFLAGS="-O2"
  3394. else
  3395. CFLAGS=
  3396. fi
  3397. fi
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3399. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3400. if ${ac_cv_prog_cc_c89+:} false; then :
  3401. $as_echo_n "(cached) " >&6
  3402. else
  3403. ac_cv_prog_cc_c89=no
  3404. ac_save_CC=$CC
  3405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3406. /* end confdefs.h. */
  3407. #include <stdarg.h>
  3408. #include <stdio.h>
  3409. struct stat;
  3410. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3411. struct buf { int x; };
  3412. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3413. static char *e (p, i)
  3414. char **p;
  3415. int i;
  3416. {
  3417. return p[i];
  3418. }
  3419. static char *f (char * (*g) (char **, int), char **p, ...)
  3420. {
  3421. char *s;
  3422. va_list v;
  3423. va_start (v,p);
  3424. s = g (p, va_arg (v,int));
  3425. va_end (v);
  3426. return s;
  3427. }
  3428. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3429. function prototypes and stuff, but not '\xHH' hex character constants.
  3430. These don't provoke an error unfortunately, instead are silently treated
  3431. as 'x'. The following induces an error, until -std is added to get
  3432. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3433. array size at least. It's necessary to write '\x00'==0 to get something
  3434. that's true only with -std. */
  3435. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3436. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3437. inside strings and character constants. */
  3438. #define FOO(x) 'x'
  3439. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3440. int test (int i, double x);
  3441. struct s1 {int (*f) (int a);};
  3442. struct s2 {int (*f) (double a);};
  3443. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3444. int argc;
  3445. char **argv;
  3446. int
  3447. main ()
  3448. {
  3449. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3455. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3456. do
  3457. CC="$ac_save_CC $ac_arg"
  3458. if ac_fn_c_try_compile "$LINENO"; then :
  3459. ac_cv_prog_cc_c89=$ac_arg
  3460. fi
  3461. rm -f core conftest.err conftest.$ac_objext
  3462. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3463. done
  3464. rm -f conftest.$ac_ext
  3465. CC=$ac_save_CC
  3466. fi
  3467. # AC_CACHE_VAL
  3468. case "x$ac_cv_prog_cc_c89" in
  3469. x)
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3471. $as_echo "none needed" >&6; } ;;
  3472. xno)
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3474. $as_echo "unsupported" >&6; } ;;
  3475. *)
  3476. CC="$CC $ac_cv_prog_cc_c89"
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3478. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3479. esac
  3480. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3481. fi
  3482. ac_ext=c
  3483. ac_cpp='$CPP $CPPFLAGS'
  3484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3488. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3489. if ${ac_cv_path_SED+:} false; then :
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3493. for ac_i in 1 2 3 4 5 6 7; do
  3494. ac_script="$ac_script$as_nl$ac_script"
  3495. done
  3496. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3497. { ac_script=; unset ac_script;}
  3498. if test -z "$SED"; then
  3499. ac_path_SED_found=false
  3500. # Loop through the user's path and test for each of PROGNAME-LIST
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH
  3503. do
  3504. IFS=$as_save_IFS
  3505. test -z "$as_dir" && as_dir=.
  3506. for ac_prog in sed gsed; do
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3509. as_fn_executable_p "$ac_path_SED" || continue
  3510. # Check for GNU ac_path_SED and select it if it is found.
  3511. # Check for GNU $ac_path_SED
  3512. case `"$ac_path_SED" --version 2>&1` in
  3513. *GNU*)
  3514. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3515. *)
  3516. ac_count=0
  3517. $as_echo_n 0123456789 >"conftest.in"
  3518. while :
  3519. do
  3520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3521. mv "conftest.tmp" "conftest.in"
  3522. cp "conftest.in" "conftest.nl"
  3523. $as_echo '' >> "conftest.nl"
  3524. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3527. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3528. # Best one so far, save it but keep looking for a better one
  3529. ac_cv_path_SED="$ac_path_SED"
  3530. ac_path_SED_max=$ac_count
  3531. fi
  3532. # 10*(2^10) chars as input seems more than enough
  3533. test $ac_count -gt 10 && break
  3534. done
  3535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3536. esac
  3537. $ac_path_SED_found && break 3
  3538. done
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. if test -z "$ac_cv_path_SED"; then
  3543. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3544. fi
  3545. else
  3546. ac_cv_path_SED=$SED
  3547. fi
  3548. fi
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3550. $as_echo "$ac_cv_path_SED" >&6; }
  3551. SED="$ac_cv_path_SED"
  3552. rm -f conftest.sed
  3553. test -z "$SED" && SED=sed
  3554. Xsed="$SED -e 1s/^X//"
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3556. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3557. if ${ac_cv_path_GREP+:} false; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. if test -z "$GREP"; then
  3561. ac_path_GREP_found=false
  3562. # Loop through the user's path and test for each of PROGNAME-LIST
  3563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3564. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3565. do
  3566. IFS=$as_save_IFS
  3567. test -z "$as_dir" && as_dir=.
  3568. for ac_prog in grep ggrep; do
  3569. for ac_exec_ext in '' $ac_executable_extensions; do
  3570. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3571. as_fn_executable_p "$ac_path_GREP" || continue
  3572. # Check for GNU ac_path_GREP and select it if it is found.
  3573. # Check for GNU $ac_path_GREP
  3574. case `"$ac_path_GREP" --version 2>&1` in
  3575. *GNU*)
  3576. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3577. *)
  3578. ac_count=0
  3579. $as_echo_n 0123456789 >"conftest.in"
  3580. while :
  3581. do
  3582. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3583. mv "conftest.tmp" "conftest.in"
  3584. cp "conftest.in" "conftest.nl"
  3585. $as_echo 'GREP' >> "conftest.nl"
  3586. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3587. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3588. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3589. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3590. # Best one so far, save it but keep looking for a better one
  3591. ac_cv_path_GREP="$ac_path_GREP"
  3592. ac_path_GREP_max=$ac_count
  3593. fi
  3594. # 10*(2^10) chars as input seems more than enough
  3595. test $ac_count -gt 10 && break
  3596. done
  3597. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3598. esac
  3599. $ac_path_GREP_found && break 3
  3600. done
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. if test -z "$ac_cv_path_GREP"; then
  3605. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3606. fi
  3607. else
  3608. ac_cv_path_GREP=$GREP
  3609. fi
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3612. $as_echo "$ac_cv_path_GREP" >&6; }
  3613. GREP="$ac_cv_path_GREP"
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3615. $as_echo_n "checking for egrep... " >&6; }
  3616. if ${ac_cv_path_EGREP+:} false; then :
  3617. $as_echo_n "(cached) " >&6
  3618. else
  3619. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3620. then ac_cv_path_EGREP="$GREP -E"
  3621. else
  3622. if test -z "$EGREP"; then
  3623. ac_path_EGREP_found=false
  3624. # Loop through the user's path and test for each of PROGNAME-LIST
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_prog in egrep; do
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3633. as_fn_executable_p "$ac_path_EGREP" || continue
  3634. # Check for GNU ac_path_EGREP and select it if it is found.
  3635. # Check for GNU $ac_path_EGREP
  3636. case `"$ac_path_EGREP" --version 2>&1` in
  3637. *GNU*)
  3638. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3639. *)
  3640. ac_count=0
  3641. $as_echo_n 0123456789 >"conftest.in"
  3642. while :
  3643. do
  3644. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3645. mv "conftest.tmp" "conftest.in"
  3646. cp "conftest.in" "conftest.nl"
  3647. $as_echo 'EGREP' >> "conftest.nl"
  3648. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3649. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3650. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3651. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3652. # Best one so far, save it but keep looking for a better one
  3653. ac_cv_path_EGREP="$ac_path_EGREP"
  3654. ac_path_EGREP_max=$ac_count
  3655. fi
  3656. # 10*(2^10) chars as input seems more than enough
  3657. test $ac_count -gt 10 && break
  3658. done
  3659. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3660. esac
  3661. $ac_path_EGREP_found && break 3
  3662. done
  3663. done
  3664. done
  3665. IFS=$as_save_IFS
  3666. if test -z "$ac_cv_path_EGREP"; then
  3667. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3668. fi
  3669. else
  3670. ac_cv_path_EGREP=$EGREP
  3671. fi
  3672. fi
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3675. $as_echo "$ac_cv_path_EGREP" >&6; }
  3676. EGREP="$ac_cv_path_EGREP"
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3678. $as_echo_n "checking for fgrep... " >&6; }
  3679. if ${ac_cv_path_FGREP+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3683. then ac_cv_path_FGREP="$GREP -F"
  3684. else
  3685. if test -z "$FGREP"; then
  3686. ac_path_FGREP_found=false
  3687. # Loop through the user's path and test for each of PROGNAME-LIST
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3690. do
  3691. IFS=$as_save_IFS
  3692. test -z "$as_dir" && as_dir=.
  3693. for ac_prog in fgrep; do
  3694. for ac_exec_ext in '' $ac_executable_extensions; do
  3695. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3696. as_fn_executable_p "$ac_path_FGREP" || continue
  3697. # Check for GNU ac_path_FGREP and select it if it is found.
  3698. # Check for GNU $ac_path_FGREP
  3699. case `"$ac_path_FGREP" --version 2>&1` in
  3700. *GNU*)
  3701. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3702. *)
  3703. ac_count=0
  3704. $as_echo_n 0123456789 >"conftest.in"
  3705. while :
  3706. do
  3707. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3708. mv "conftest.tmp" "conftest.in"
  3709. cp "conftest.in" "conftest.nl"
  3710. $as_echo 'FGREP' >> "conftest.nl"
  3711. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3712. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3713. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3714. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3715. # Best one so far, save it but keep looking for a better one
  3716. ac_cv_path_FGREP="$ac_path_FGREP"
  3717. ac_path_FGREP_max=$ac_count
  3718. fi
  3719. # 10*(2^10) chars as input seems more than enough
  3720. test $ac_count -gt 10 && break
  3721. done
  3722. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3723. esac
  3724. $ac_path_FGREP_found && break 3
  3725. done
  3726. done
  3727. done
  3728. IFS=$as_save_IFS
  3729. if test -z "$ac_cv_path_FGREP"; then
  3730. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3731. fi
  3732. else
  3733. ac_cv_path_FGREP=$FGREP
  3734. fi
  3735. fi
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3738. $as_echo "$ac_cv_path_FGREP" >&6; }
  3739. FGREP="$ac_cv_path_FGREP"
  3740. test -z "$GREP" && GREP=grep
  3741. # Check whether --with-gnu-ld was given.
  3742. if test "${with_gnu_ld+set}" = set; then :
  3743. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3744. else
  3745. with_gnu_ld=no
  3746. fi
  3747. ac_prog=ld
  3748. if test yes = "$GCC"; then
  3749. # Check if gcc -print-prog-name=ld gives a path.
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3751. $as_echo_n "checking for ld used by $CC... " >&6; }
  3752. case $host in
  3753. *-*-mingw*)
  3754. # gcc leaves a trailing carriage return, which upsets mingw
  3755. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3756. *)
  3757. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3758. esac
  3759. case $ac_prog in
  3760. # Accept absolute paths.
  3761. [\\/]* | ?:[\\/]*)
  3762. re_direlt='/[^/][^/]*/\.\./'
  3763. # Canonicalize the pathname of ld
  3764. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3765. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3766. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3767. done
  3768. test -z "$LD" && LD=$ac_prog
  3769. ;;
  3770. "")
  3771. # If it fails, then pretend we aren't using GCC.
  3772. ac_prog=ld
  3773. ;;
  3774. *)
  3775. # If it is relative, then search for the first ld in PATH.
  3776. with_gnu_ld=unknown
  3777. ;;
  3778. esac
  3779. elif test yes = "$with_gnu_ld"; then
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3781. $as_echo_n "checking for GNU ld... " >&6; }
  3782. else
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3784. $as_echo_n "checking for non-GNU ld... " >&6; }
  3785. fi
  3786. if ${lt_cv_path_LD+:} false; then :
  3787. $as_echo_n "(cached) " >&6
  3788. else
  3789. if test -z "$LD"; then
  3790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3791. for ac_dir in $PATH; do
  3792. IFS=$lt_save_ifs
  3793. test -z "$ac_dir" && ac_dir=.
  3794. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3795. lt_cv_path_LD=$ac_dir/$ac_prog
  3796. # Check to see if the program is GNU ld. I'd rather use --version,
  3797. # but apparently some variants of GNU ld only accept -v.
  3798. # Break only if it was the GNU/non-GNU ld that we prefer.
  3799. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3800. *GNU* | *'with BFD'*)
  3801. test no != "$with_gnu_ld" && break
  3802. ;;
  3803. *)
  3804. test yes != "$with_gnu_ld" && break
  3805. ;;
  3806. esac
  3807. fi
  3808. done
  3809. IFS=$lt_save_ifs
  3810. else
  3811. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3812. fi
  3813. fi
  3814. LD=$lt_cv_path_LD
  3815. if test -n "$LD"; then
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3817. $as_echo "$LD" >&6; }
  3818. else
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3820. $as_echo "no" >&6; }
  3821. fi
  3822. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3824. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3825. if ${lt_cv_prog_gnu_ld+:} false; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3829. case `$LD -v 2>&1 </dev/null` in
  3830. *GNU* | *'with BFD'*)
  3831. lt_cv_prog_gnu_ld=yes
  3832. ;;
  3833. *)
  3834. lt_cv_prog_gnu_ld=no
  3835. ;;
  3836. esac
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3839. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3840. with_gnu_ld=$lt_cv_prog_gnu_ld
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3842. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3843. if ${lt_cv_path_NM+:} false; then :
  3844. $as_echo_n "(cached) " >&6
  3845. else
  3846. if test -n "$NM"; then
  3847. # Let the user override the test.
  3848. lt_cv_path_NM=$NM
  3849. else
  3850. lt_nm_to_check=${ac_tool_prefix}nm
  3851. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3852. lt_nm_to_check="$lt_nm_to_check nm"
  3853. fi
  3854. for lt_tmp_nm in $lt_nm_to_check; do
  3855. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3856. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3857. IFS=$lt_save_ifs
  3858. test -z "$ac_dir" && ac_dir=.
  3859. tmp_nm=$ac_dir/$lt_tmp_nm
  3860. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3861. # Check to see if the nm accepts a BSD-compat flag.
  3862. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3863. # nm: unknown option "B" ignored
  3864. # Tru64's nm complains that /dev/null is an invalid object file
  3865. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3866. case $build_os in
  3867. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3868. *) lt_bad_file=/dev/null ;;
  3869. esac
  3870. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3871. *$lt_bad_file* | *'Invalid file or object type'*)
  3872. lt_cv_path_NM="$tmp_nm -B"
  3873. break 2
  3874. ;;
  3875. *)
  3876. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3877. */dev/null*)
  3878. lt_cv_path_NM="$tmp_nm -p"
  3879. break 2
  3880. ;;
  3881. *)
  3882. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3883. continue # so that we can try to find one that supports BSD flags
  3884. ;;
  3885. esac
  3886. ;;
  3887. esac
  3888. fi
  3889. done
  3890. IFS=$lt_save_ifs
  3891. done
  3892. : ${lt_cv_path_NM=no}
  3893. fi
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3896. $as_echo "$lt_cv_path_NM" >&6; }
  3897. if test no != "$lt_cv_path_NM"; then
  3898. NM=$lt_cv_path_NM
  3899. else
  3900. # Didn't find any BSD compatible name lister, look for dumpbin.
  3901. if test -n "$DUMPBIN"; then :
  3902. # Let the user override the test.
  3903. else
  3904. if test -n "$ac_tool_prefix"; then
  3905. for ac_prog in dumpbin "link -dump"
  3906. do
  3907. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3908. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3910. $as_echo_n "checking for $ac_word... " >&6; }
  3911. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. if test -n "$DUMPBIN"; then
  3915. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3916. else
  3917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. for as_dir in $PATH
  3919. do
  3920. IFS=$as_save_IFS
  3921. test -z "$as_dir" && as_dir=.
  3922. for ac_exec_ext in '' $ac_executable_extensions; do
  3923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3924. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. break 2
  3927. fi
  3928. done
  3929. done
  3930. IFS=$as_save_IFS
  3931. fi
  3932. fi
  3933. DUMPBIN=$ac_cv_prog_DUMPBIN
  3934. if test -n "$DUMPBIN"; then
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3936. $as_echo "$DUMPBIN" >&6; }
  3937. else
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3939. $as_echo "no" >&6; }
  3940. fi
  3941. test -n "$DUMPBIN" && break
  3942. done
  3943. fi
  3944. if test -z "$DUMPBIN"; then
  3945. ac_ct_DUMPBIN=$DUMPBIN
  3946. for ac_prog in dumpbin "link -dump"
  3947. do
  3948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3949. set dummy $ac_prog; ac_word=$2
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3951. $as_echo_n "checking for $ac_word... " >&6; }
  3952. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. if test -n "$ac_ct_DUMPBIN"; then
  3956. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3957. else
  3958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3959. for as_dir in $PATH
  3960. do
  3961. IFS=$as_save_IFS
  3962. test -z "$as_dir" && as_dir=.
  3963. for ac_exec_ext in '' $ac_executable_extensions; do
  3964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3965. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3967. break 2
  3968. fi
  3969. done
  3970. done
  3971. IFS=$as_save_IFS
  3972. fi
  3973. fi
  3974. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3975. if test -n "$ac_ct_DUMPBIN"; then
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3977. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3978. else
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3980. $as_echo "no" >&6; }
  3981. fi
  3982. test -n "$ac_ct_DUMPBIN" && break
  3983. done
  3984. if test "x$ac_ct_DUMPBIN" = x; then
  3985. DUMPBIN=":"
  3986. else
  3987. case $cross_compiling:$ac_tool_warned in
  3988. yes:)
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3991. ac_tool_warned=yes ;;
  3992. esac
  3993. DUMPBIN=$ac_ct_DUMPBIN
  3994. fi
  3995. fi
  3996. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3997. *COFF*)
  3998. DUMPBIN="$DUMPBIN -symbols -headers"
  3999. ;;
  4000. *)
  4001. DUMPBIN=:
  4002. ;;
  4003. esac
  4004. fi
  4005. if test : != "$DUMPBIN"; then
  4006. NM=$DUMPBIN
  4007. fi
  4008. fi
  4009. test -z "$NM" && NM=nm
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4011. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4012. if ${lt_cv_nm_interface+:} false; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. lt_cv_nm_interface="BSD nm"
  4016. echo "int some_variable = 0;" > conftest.$ac_ext
  4017. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4018. (eval "$ac_compile" 2>conftest.err)
  4019. cat conftest.err >&5
  4020. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4021. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4022. cat conftest.err >&5
  4023. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4024. cat conftest.out >&5
  4025. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4026. lt_cv_nm_interface="MS dumpbin"
  4027. fi
  4028. rm -f conftest*
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4031. $as_echo "$lt_cv_nm_interface" >&6; }
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4033. $as_echo_n "checking whether ln -s works... " >&6; }
  4034. LN_S=$as_ln_s
  4035. if test "$LN_S" = "ln -s"; then
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4037. $as_echo "yes" >&6; }
  4038. else
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4040. $as_echo "no, using $LN_S" >&6; }
  4041. fi
  4042. # find the maximum length of command line arguments
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4044. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4045. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. i=0
  4049. teststring=ABCD
  4050. case $build_os in
  4051. msdosdjgpp*)
  4052. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4053. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4054. # during glob expansion). Even if it were fixed, the result of this
  4055. # check would be larger than it should be.
  4056. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4057. ;;
  4058. gnu*)
  4059. # Under GNU Hurd, this test is not required because there is
  4060. # no limit to the length of command line arguments.
  4061. # Libtool will interpret -1 as no limit whatsoever
  4062. lt_cv_sys_max_cmd_len=-1;
  4063. ;;
  4064. cygwin* | mingw* | cegcc*)
  4065. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4066. # about 5 minutes as the teststring grows exponentially.
  4067. # Worse, since 9x/ME are not pre-emptively multitasking,
  4068. # you end up with a "frozen" computer, even though with patience
  4069. # the test eventually succeeds (with a max line length of 256k).
  4070. # Instead, let's just punt: use the minimum linelength reported by
  4071. # all of the supported platforms: 8192 (on NT/2K/XP).
  4072. lt_cv_sys_max_cmd_len=8192;
  4073. ;;
  4074. mint*)
  4075. # On MiNT this can take a long time and run out of memory.
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. amigaos*)
  4079. # On AmigaOS with pdksh, this test takes hours, literally.
  4080. # So we just punt and use a minimum line length of 8192.
  4081. lt_cv_sys_max_cmd_len=8192;
  4082. ;;
  4083. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4084. # This has been around since 386BSD, at least. Likely further.
  4085. if test -x /sbin/sysctl; then
  4086. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4087. elif test -x /usr/sbin/sysctl; then
  4088. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4089. else
  4090. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4091. fi
  4092. # And add a safety zone
  4093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4095. ;;
  4096. interix*)
  4097. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4098. lt_cv_sys_max_cmd_len=196608
  4099. ;;
  4100. os2*)
  4101. # The test takes a long time on OS/2.
  4102. lt_cv_sys_max_cmd_len=8192
  4103. ;;
  4104. osf*)
  4105. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4106. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4107. # nice to cause kernel panics so lets avoid the loop below.
  4108. # First set a reasonable default.
  4109. lt_cv_sys_max_cmd_len=16384
  4110. #
  4111. if test -x /sbin/sysconfig; then
  4112. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4113. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4114. esac
  4115. fi
  4116. ;;
  4117. sco3.2v5*)
  4118. lt_cv_sys_max_cmd_len=102400
  4119. ;;
  4120. sysv5* | sco5v6* | sysv4.2uw2*)
  4121. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4122. if test -n "$kargmax"; then
  4123. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4124. else
  4125. lt_cv_sys_max_cmd_len=32768
  4126. fi
  4127. ;;
  4128. *)
  4129. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4130. if test -n "$lt_cv_sys_max_cmd_len" && \
  4131. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4132. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4134. else
  4135. # Make teststring a little bigger before we do anything with it.
  4136. # a 1K string should be a reasonable start.
  4137. for i in 1 2 3 4 5 6 7 8; do
  4138. teststring=$teststring$teststring
  4139. done
  4140. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4141. # If test is not a shell built-in, we'll probably end up computing a
  4142. # maximum length that is only half of the actual maximum length, but
  4143. # we can't tell.
  4144. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4145. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4146. test 17 != "$i" # 1/2 MB should be enough
  4147. do
  4148. i=`expr $i + 1`
  4149. teststring=$teststring$teststring
  4150. done
  4151. # Only check the string length outside the loop.
  4152. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4153. teststring=
  4154. # Add a significant safety factor because C++ compilers can tack on
  4155. # massive amounts of additional arguments before passing them to the
  4156. # linker. It appears as though 1/2 is a usable value.
  4157. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4158. fi
  4159. ;;
  4160. esac
  4161. fi
  4162. if test -n "$lt_cv_sys_max_cmd_len"; then
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4164. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4165. else
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4167. $as_echo "none" >&6; }
  4168. fi
  4169. max_cmd_len=$lt_cv_sys_max_cmd_len
  4170. : ${CP="cp -f"}
  4171. : ${MV="mv -f"}
  4172. : ${RM="rm -f"}
  4173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4174. lt_unset=unset
  4175. else
  4176. lt_unset=false
  4177. fi
  4178. # test EBCDIC or ASCII
  4179. case `echo X|tr X '\101'` in
  4180. A) # ASCII based system
  4181. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4182. lt_SP2NL='tr \040 \012'
  4183. lt_NL2SP='tr \015\012 \040\040'
  4184. ;;
  4185. *) # EBCDIC based system
  4186. lt_SP2NL='tr \100 \n'
  4187. lt_NL2SP='tr \r\n \100\100'
  4188. ;;
  4189. esac
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4191. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4192. if ${lt_cv_to_host_file_cmd+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. case $host in
  4196. *-*-mingw* )
  4197. case $build in
  4198. *-*-mingw* ) # actually msys
  4199. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4200. ;;
  4201. *-*-cygwin* )
  4202. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4203. ;;
  4204. * ) # otherwise, assume *nix
  4205. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4206. ;;
  4207. esac
  4208. ;;
  4209. *-*-cygwin* )
  4210. case $build in
  4211. *-*-mingw* ) # actually msys
  4212. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4213. ;;
  4214. *-*-cygwin* )
  4215. lt_cv_to_host_file_cmd=func_convert_file_noop
  4216. ;;
  4217. * ) # otherwise, assume *nix
  4218. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4219. ;;
  4220. esac
  4221. ;;
  4222. * ) # unhandled hosts (and "normal" native builds)
  4223. lt_cv_to_host_file_cmd=func_convert_file_noop
  4224. ;;
  4225. esac
  4226. fi
  4227. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4229. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4231. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4232. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. #assume ordinary cross tools, or native build.
  4236. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4237. case $host in
  4238. *-*-mingw* )
  4239. case $build in
  4240. *-*-mingw* ) # actually msys
  4241. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4242. ;;
  4243. esac
  4244. ;;
  4245. esac
  4246. fi
  4247. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4249. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4251. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4252. if ${lt_cv_ld_reload_flag+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. lt_cv_ld_reload_flag='-r'
  4256. fi
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4258. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4259. reload_flag=$lt_cv_ld_reload_flag
  4260. case $reload_flag in
  4261. "" | " "*) ;;
  4262. *) reload_flag=" $reload_flag" ;;
  4263. esac
  4264. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4265. case $host_os in
  4266. cygwin* | mingw* | pw32* | cegcc*)
  4267. if test yes != "$GCC"; then
  4268. reload_cmds=false
  4269. fi
  4270. ;;
  4271. darwin*)
  4272. if test yes = "$GCC"; then
  4273. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4274. else
  4275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4276. fi
  4277. ;;
  4278. esac
  4279. if test -n "$ac_tool_prefix"; then
  4280. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4281. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4283. $as_echo_n "checking for $ac_word... " >&6; }
  4284. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. if test -n "$OBJDUMP"; then
  4288. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4289. else
  4290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4291. for as_dir in $PATH
  4292. do
  4293. IFS=$as_save_IFS
  4294. test -z "$as_dir" && as_dir=.
  4295. for ac_exec_ext in '' $ac_executable_extensions; do
  4296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4297. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4299. break 2
  4300. fi
  4301. done
  4302. done
  4303. IFS=$as_save_IFS
  4304. fi
  4305. fi
  4306. OBJDUMP=$ac_cv_prog_OBJDUMP
  4307. if test -n "$OBJDUMP"; then
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4309. $as_echo "$OBJDUMP" >&6; }
  4310. else
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4312. $as_echo "no" >&6; }
  4313. fi
  4314. fi
  4315. if test -z "$ac_cv_prog_OBJDUMP"; then
  4316. ac_ct_OBJDUMP=$OBJDUMP
  4317. # Extract the first word of "objdump", so it can be a program name with args.
  4318. set dummy objdump; ac_word=$2
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4320. $as_echo_n "checking for $ac_word... " >&6; }
  4321. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. if test -n "$ac_ct_OBJDUMP"; then
  4325. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4326. else
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4334. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336. break 2
  4337. fi
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. fi
  4342. fi
  4343. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4344. if test -n "$ac_ct_OBJDUMP"; then
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4346. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4347. else
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4349. $as_echo "no" >&6; }
  4350. fi
  4351. if test "x$ac_ct_OBJDUMP" = x; then
  4352. OBJDUMP="false"
  4353. else
  4354. case $cross_compiling:$ac_tool_warned in
  4355. yes:)
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4358. ac_tool_warned=yes ;;
  4359. esac
  4360. OBJDUMP=$ac_ct_OBJDUMP
  4361. fi
  4362. else
  4363. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4364. fi
  4365. test -z "$OBJDUMP" && OBJDUMP=objdump
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4367. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4368. if ${lt_cv_deplibs_check_method+:} false; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4372. lt_cv_file_magic_test_file=
  4373. lt_cv_deplibs_check_method='unknown'
  4374. # Need to set the preceding variable on all platforms that support
  4375. # interlibrary dependencies.
  4376. # 'none' -- dependencies not supported.
  4377. # 'unknown' -- same as none, but documents that we really don't know.
  4378. # 'pass_all' -- all dependencies passed with no checks.
  4379. # 'test_compile' -- check by making test program.
  4380. # 'file_magic [[regex]]' -- check by looking for files in library path
  4381. # that responds to the $file_magic_cmd with a given extended regex.
  4382. # If you have 'file' or equivalent on your system and you're not sure
  4383. # whether 'pass_all' will *always* work, you probably want this one.
  4384. case $host_os in
  4385. aix[4-9]*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. beos*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. bsdi[45]*)
  4392. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4393. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4394. lt_cv_file_magic_test_file=/shlib/libc.so
  4395. ;;
  4396. cygwin*)
  4397. # func_win32_libid is a shell function defined in ltmain.sh
  4398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4399. lt_cv_file_magic_cmd='func_win32_libid'
  4400. lt_cv_deplibs_check_method=pass_all # SDL customization
  4401. ;;
  4402. mingw* | pw32*)
  4403. # Base MSYS/MinGW do not provide the 'file' command needed by
  4404. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4405. # unless we find 'file', for example because we are cross-compiling.
  4406. if ( file / ) >/dev/null 2>&1; then
  4407. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4408. lt_cv_file_magic_cmd='func_win32_libid'
  4409. else
  4410. # Keep this pattern in sync with the one in func_win32_libid.
  4411. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4412. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4413. fi
  4414. lt_cv_deplibs_check_method=pass_all # SDL customization
  4415. ;;
  4416. cegcc*)
  4417. # use the weaker test based on 'objdump'. See mingw*.
  4418. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4419. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4420. ;;
  4421. darwin* | rhapsody*)
  4422. lt_cv_deplibs_check_method=pass_all
  4423. ;;
  4424. freebsd* | dragonfly* | midnightbsd*)
  4425. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4426. case $host_cpu in
  4427. i*86 )
  4428. # Not sure whether the presence of OpenBSD here was a mistake.
  4429. # Let's accept both of them until this is cleared up.
  4430. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4431. lt_cv_file_magic_cmd=/usr/bin/file
  4432. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4433. ;;
  4434. esac
  4435. else
  4436. lt_cv_deplibs_check_method=pass_all
  4437. fi
  4438. ;;
  4439. haiku*)
  4440. lt_cv_deplibs_check_method=pass_all
  4441. ;;
  4442. hpux10.20* | hpux11*)
  4443. lt_cv_file_magic_cmd=/usr/bin/file
  4444. case $host_cpu in
  4445. ia64*)
  4446. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4447. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4448. ;;
  4449. hppa*64*)
  4450. 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]'
  4451. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4452. ;;
  4453. *)
  4454. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4455. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4456. ;;
  4457. esac
  4458. ;;
  4459. interix[3-9]*)
  4460. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4462. ;;
  4463. irix5* | irix6* | nonstopux*)
  4464. case $LD in
  4465. *-32|*"-32 ") libmagic=32-bit;;
  4466. *-n32|*"-n32 ") libmagic=N32;;
  4467. *-64|*"-64 ") libmagic=64-bit;;
  4468. *) libmagic=never-match;;
  4469. esac
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. # This must be glibc/ELF.
  4473. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. netbsd*)
  4477. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4479. else
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4481. fi
  4482. ;;
  4483. newos6*)
  4484. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4485. lt_cv_file_magic_cmd=/usr/bin/file
  4486. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4487. ;;
  4488. *nto* | *qnx*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. openbsd* | bitrig*)
  4492. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4493. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4494. else
  4495. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4496. fi
  4497. ;;
  4498. osf3* | osf4* | osf5*)
  4499. lt_cv_deplibs_check_method=pass_all
  4500. ;;
  4501. rdos*)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. solaris*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. sysv4 | sysv4.3*)
  4511. case $host_vendor in
  4512. motorola)
  4513. 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]'
  4514. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4515. ;;
  4516. ncr)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. sequent)
  4520. lt_cv_file_magic_cmd='/bin/file'
  4521. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4522. ;;
  4523. sni)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4526. lt_cv_file_magic_test_file=/lib/libc.so
  4527. ;;
  4528. siemens)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. pc)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. esac
  4535. ;;
  4536. tpf*)
  4537. lt_cv_deplibs_check_method=pass_all
  4538. ;;
  4539. os2*)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. esac
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4545. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4546. file_magic_glob=
  4547. want_nocaseglob=no
  4548. if test "$build" = "$host"; then
  4549. case $host_os in
  4550. mingw* | pw32*)
  4551. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4552. want_nocaseglob=yes
  4553. else
  4554. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4555. fi
  4556. ;;
  4557. esac
  4558. fi
  4559. file_magic_cmd=$lt_cv_file_magic_cmd
  4560. deplibs_check_method=$lt_cv_deplibs_check_method
  4561. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4562. if test -n "$ac_tool_prefix"; then
  4563. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4564. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4566. $as_echo_n "checking for $ac_word... " >&6; }
  4567. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. if test -n "$DLLTOOL"; then
  4571. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4572. else
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4580. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4582. break 2
  4583. fi
  4584. done
  4585. done
  4586. IFS=$as_save_IFS
  4587. fi
  4588. fi
  4589. DLLTOOL=$ac_cv_prog_DLLTOOL
  4590. if test -n "$DLLTOOL"; then
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4592. $as_echo "$DLLTOOL" >&6; }
  4593. else
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4595. $as_echo "no" >&6; }
  4596. fi
  4597. fi
  4598. if test -z "$ac_cv_prog_DLLTOOL"; then
  4599. ac_ct_DLLTOOL=$DLLTOOL
  4600. # Extract the first word of "dlltool", so it can be a program name with args.
  4601. set dummy dlltool; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -n "$ac_ct_DLLTOOL"; then
  4608. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4609. else
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4617. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4627. if test -n "$ac_ct_DLLTOOL"; then
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4629. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4630. else
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. $as_echo "no" >&6; }
  4633. fi
  4634. if test "x$ac_ct_DLLTOOL" = x; then
  4635. DLLTOOL="false"
  4636. else
  4637. case $cross_compiling:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. DLLTOOL=$ac_ct_DLLTOOL
  4644. fi
  4645. else
  4646. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4647. fi
  4648. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4650. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4651. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4655. case $host_os in
  4656. cygwin* | mingw* | pw32* | cegcc*)
  4657. # two different shell functions defined in ltmain.sh;
  4658. # decide which one to use based on capabilities of $DLLTOOL
  4659. case `$DLLTOOL --help 2>&1` in
  4660. *--identify-strict*)
  4661. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4662. ;;
  4663. *)
  4664. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4665. ;;
  4666. esac
  4667. ;;
  4668. *)
  4669. # fallback: assume linklib IS sharedlib
  4670. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4671. ;;
  4672. esac
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4675. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4676. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4677. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4678. if test -n "$ac_tool_prefix"; then
  4679. for ac_prog in ar
  4680. do
  4681. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4682. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4684. $as_echo_n "checking for $ac_word... " >&6; }
  4685. if ${ac_cv_prog_AR+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. if test -n "$AR"; then
  4689. ac_cv_prog_AR="$AR" # Let the user override the test.
  4690. else
  4691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4692. for as_dir in $PATH
  4693. do
  4694. IFS=$as_save_IFS
  4695. test -z "$as_dir" && as_dir=.
  4696. for ac_exec_ext in '' $ac_executable_extensions; do
  4697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4698. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4700. break 2
  4701. fi
  4702. done
  4703. done
  4704. IFS=$as_save_IFS
  4705. fi
  4706. fi
  4707. AR=$ac_cv_prog_AR
  4708. if test -n "$AR"; then
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4710. $as_echo "$AR" >&6; }
  4711. else
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. test -n "$AR" && break
  4716. done
  4717. fi
  4718. if test -z "$AR"; then
  4719. ac_ct_AR=$AR
  4720. for ac_prog in ar
  4721. do
  4722. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4723. set dummy $ac_prog; ac_word=$2
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4725. $as_echo_n "checking for $ac_word... " >&6; }
  4726. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. if test -n "$ac_ct_AR"; then
  4730. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4731. else
  4732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4733. for as_dir in $PATH
  4734. do
  4735. IFS=$as_save_IFS
  4736. test -z "$as_dir" && as_dir=.
  4737. for ac_exec_ext in '' $ac_executable_extensions; do
  4738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4739. ac_cv_prog_ac_ct_AR="$ac_prog"
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4741. break 2
  4742. fi
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. fi
  4747. fi
  4748. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4749. if test -n "$ac_ct_AR"; then
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4751. $as_echo "$ac_ct_AR" >&6; }
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. fi
  4756. test -n "$ac_ct_AR" && break
  4757. done
  4758. if test "x$ac_ct_AR" = x; then
  4759. AR="false"
  4760. else
  4761. case $cross_compiling:$ac_tool_warned in
  4762. yes:)
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4765. ac_tool_warned=yes ;;
  4766. esac
  4767. AR=$ac_ct_AR
  4768. fi
  4769. fi
  4770. : ${AR=ar}
  4771. : ${AR_FLAGS=cru}
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4773. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4774. if ${lt_cv_ar_at_file+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. lt_cv_ar_at_file=no
  4778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4779. /* end confdefs.h. */
  4780. int
  4781. main ()
  4782. {
  4783. ;
  4784. return 0;
  4785. }
  4786. _ACEOF
  4787. if ac_fn_c_try_compile "$LINENO"; then :
  4788. echo conftest.$ac_objext > conftest.lst
  4789. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4790. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4791. (eval $lt_ar_try) 2>&5
  4792. ac_status=$?
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4794. test $ac_status = 0; }
  4795. if test 0 -eq "$ac_status"; then
  4796. # Ensure the archiver fails upon bogus file names.
  4797. rm -f conftest.$ac_objext libconftest.a
  4798. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4799. (eval $lt_ar_try) 2>&5
  4800. ac_status=$?
  4801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4802. test $ac_status = 0; }
  4803. if test 0 -ne "$ac_status"; then
  4804. lt_cv_ar_at_file=@
  4805. fi
  4806. fi
  4807. rm -f conftest.* libconftest.a
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4812. $as_echo "$lt_cv_ar_at_file" >&6; }
  4813. if test no = "$lt_cv_ar_at_file"; then
  4814. archiver_list_spec=
  4815. else
  4816. archiver_list_spec=$lt_cv_ar_at_file
  4817. fi
  4818. if test -n "$ac_tool_prefix"; then
  4819. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4820. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4822. $as_echo_n "checking for $ac_word... " >&6; }
  4823. if ${ac_cv_prog_STRIP+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. if test -n "$STRIP"; then
  4827. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4836. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. STRIP=$ac_cv_prog_STRIP
  4846. if test -n "$STRIP"; then
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4848. $as_echo "$STRIP" >&6; }
  4849. else
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4851. $as_echo "no" >&6; }
  4852. fi
  4853. fi
  4854. if test -z "$ac_cv_prog_STRIP"; then
  4855. ac_ct_STRIP=$STRIP
  4856. # Extract the first word of "strip", so it can be a program name with args.
  4857. set dummy strip; ac_word=$2
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4859. $as_echo_n "checking for $ac_word... " >&6; }
  4860. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. if test -n "$ac_ct_STRIP"; then
  4864. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4865. else
  4866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4867. for as_dir in $PATH
  4868. do
  4869. IFS=$as_save_IFS
  4870. test -z "$as_dir" && as_dir=.
  4871. for ac_exec_ext in '' $ac_executable_extensions; do
  4872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4873. ac_cv_prog_ac_ct_STRIP="strip"
  4874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4875. break 2
  4876. fi
  4877. done
  4878. done
  4879. IFS=$as_save_IFS
  4880. fi
  4881. fi
  4882. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4883. if test -n "$ac_ct_STRIP"; then
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4885. $as_echo "$ac_ct_STRIP" >&6; }
  4886. else
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4888. $as_echo "no" >&6; }
  4889. fi
  4890. if test "x$ac_ct_STRIP" = x; then
  4891. STRIP=":"
  4892. else
  4893. case $cross_compiling:$ac_tool_warned in
  4894. yes:)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4897. ac_tool_warned=yes ;;
  4898. esac
  4899. STRIP=$ac_ct_STRIP
  4900. fi
  4901. else
  4902. STRIP="$ac_cv_prog_STRIP"
  4903. fi
  4904. test -z "$STRIP" && STRIP=:
  4905. if test -n "$ac_tool_prefix"; then
  4906. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4907. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if ${ac_cv_prog_RANLIB+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$RANLIB"; then
  4914. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4923. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. RANLIB=$ac_cv_prog_RANLIB
  4933. if test -n "$RANLIB"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4935. $as_echo "$RANLIB" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. fi
  4941. if test -z "$ac_cv_prog_RANLIB"; then
  4942. ac_ct_RANLIB=$RANLIB
  4943. # Extract the first word of "ranlib", so it can be a program name with args.
  4944. set dummy ranlib; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$ac_ct_RANLIB"; then
  4951. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4960. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4970. if test -n "$ac_ct_RANLIB"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4972. $as_echo "$ac_ct_RANLIB" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_ct_RANLIB" = x; then
  4978. RANLIB=":"
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. RANLIB=$ac_ct_RANLIB
  4987. fi
  4988. else
  4989. RANLIB="$ac_cv_prog_RANLIB"
  4990. fi
  4991. test -z "$RANLIB" && RANLIB=:
  4992. # Determine commands to create old-style static archives.
  4993. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4994. old_postinstall_cmds='chmod 644 $oldlib'
  4995. old_postuninstall_cmds=
  4996. if test -n "$RANLIB"; then
  4997. case $host_os in
  4998. bitrig* | openbsd*)
  4999. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5000. ;;
  5001. *)
  5002. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5003. ;;
  5004. esac
  5005. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5006. fi
  5007. case $host_os in
  5008. darwin*)
  5009. lock_old_archive_extraction=yes ;;
  5010. *)
  5011. lock_old_archive_extraction=no ;;
  5012. esac
  5013. for ac_prog in gawk mawk nawk awk
  5014. do
  5015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5016. set dummy $ac_prog; ac_word=$2
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5018. $as_echo_n "checking for $ac_word... " >&6; }
  5019. if ${ac_cv_prog_AWK+:} false; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -n "$AWK"; then
  5023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5024. else
  5025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5026. for as_dir in $PATH
  5027. do
  5028. IFS=$as_save_IFS
  5029. test -z "$as_dir" && as_dir=.
  5030. for ac_exec_ext in '' $ac_executable_extensions; do
  5031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5032. ac_cv_prog_AWK="$ac_prog"
  5033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5034. break 2
  5035. fi
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. fi
  5040. fi
  5041. AWK=$ac_cv_prog_AWK
  5042. if test -n "$AWK"; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5044. $as_echo "$AWK" >&6; }
  5045. else
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5047. $as_echo "no" >&6; }
  5048. fi
  5049. test -n "$AWK" && break
  5050. done
  5051. # If no C compiler was specified, use CC.
  5052. LTCC=${LTCC-"$CC"}
  5053. # If no C compiler flags were specified, use CFLAGS.
  5054. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5055. # Allow CC to be a program name with arguments.
  5056. compiler=$CC
  5057. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5059. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5060. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. # These are sane defaults that work on at least a few old systems.
  5064. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5065. # Character class describing NM global symbol codes.
  5066. symcode='[BCDEGRST]'
  5067. # Regexp to match symbols that can be accessed directly from C.
  5068. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5069. # Define system-specific variables.
  5070. case $host_os in
  5071. aix*)
  5072. symcode='[BCDT]'
  5073. ;;
  5074. cygwin* | mingw* | pw32* | cegcc*)
  5075. symcode='[ABCDGISTW]'
  5076. ;;
  5077. hpux*)
  5078. if test ia64 = "$host_cpu"; then
  5079. symcode='[ABCDEGRST]'
  5080. fi
  5081. ;;
  5082. irix* | nonstopux*)
  5083. symcode='[BCDEGRST]'
  5084. ;;
  5085. osf*)
  5086. symcode='[BCDEGQRST]'
  5087. ;;
  5088. solaris*)
  5089. symcode='[BCDRT]'
  5090. ;;
  5091. sco3.2v5*)
  5092. symcode='[DT]'
  5093. ;;
  5094. sysv4.2uw2*)
  5095. symcode='[DT]'
  5096. ;;
  5097. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5098. symcode='[ABDT]'
  5099. ;;
  5100. sysv4)
  5101. symcode='[DFNSTU]'
  5102. ;;
  5103. esac
  5104. # If we're using GNU nm, then use its standard symbol codes.
  5105. case `$NM -V 2>&1` in
  5106. *GNU* | *'with BFD'*)
  5107. symcode='[ABCDGIRSTW]' ;;
  5108. esac
  5109. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5110. # Gets list of data symbols to import.
  5111. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5112. # Adjust the below global symbol transforms to fixup imported variables.
  5113. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5114. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5115. lt_c_name_lib_hook="\
  5116. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5117. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5118. else
  5119. # Disable hooks by default.
  5120. lt_cv_sys_global_symbol_to_import=
  5121. lt_cdecl_hook=
  5122. lt_c_name_hook=
  5123. lt_c_name_lib_hook=
  5124. fi
  5125. # Transform an extracted symbol line into a proper C declaration.
  5126. # Some systems (esp. on ia64) link data and code symbols differently,
  5127. # so use this general approach.
  5128. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5129. $lt_cdecl_hook\
  5130. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5131. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5132. # Transform an extracted symbol line into symbol name and symbol address
  5133. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5134. $lt_c_name_hook\
  5135. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5136. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5137. # Transform an extracted symbol line into symbol name with lib prefix and
  5138. # symbol address.
  5139. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5140. $lt_c_name_lib_hook\
  5141. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5142. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5143. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5144. # Handle CRLF in mingw tool chain
  5145. opt_cr=
  5146. case $build_os in
  5147. mingw*)
  5148. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5149. ;;
  5150. esac
  5151. # Try without a prefix underscore, then with it.
  5152. for ac_symprfx in "" "_"; do
  5153. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5154. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5155. # Write the raw and C identifiers.
  5156. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5157. # Fake it for dumpbin and say T for any non-static function,
  5158. # D for any global variable and I for any imported variable.
  5159. # Also find C++ and __fastcall symbols from MSVC++,
  5160. # which start with @ or ?.
  5161. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5162. " {last_section=section; section=\$ 3};"\
  5163. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5164. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5165. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5166. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5167. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5168. " \$ 0!~/External *\|/{next};"\
  5169. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5170. " {if(hide[section]) next};"\
  5171. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5172. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5173. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5174. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5175. " ' prfx=^$ac_symprfx"
  5176. else
  5177. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5178. fi
  5179. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5180. # Check to see that the pipe works correctly.
  5181. pipe_works=no
  5182. rm -f conftest*
  5183. cat > conftest.$ac_ext <<_LT_EOF
  5184. #ifdef __cplusplus
  5185. extern "C" {
  5186. #endif
  5187. char nm_test_var;
  5188. void nm_test_func(void);
  5189. void nm_test_func(void){}
  5190. #ifdef __cplusplus
  5191. }
  5192. #endif
  5193. int main(){nm_test_var='a';nm_test_func();return(0);}
  5194. _LT_EOF
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. # Now try to grab the symbols.
  5201. nlist=conftest.nm
  5202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5203. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5204. ac_status=$?
  5205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5206. test $ac_status = 0; } && test -s "$nlist"; then
  5207. # Try sorting and uniquifying the output.
  5208. if sort "$nlist" | uniq > "$nlist"T; then
  5209. mv -f "$nlist"T "$nlist"
  5210. else
  5211. rm -f "$nlist"T
  5212. fi
  5213. # Make sure that we snagged all the symbols we need.
  5214. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5215. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5216. cat <<_LT_EOF > conftest.$ac_ext
  5217. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5218. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5219. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5220. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5221. # define LT_DLSYM_CONST
  5222. #elif defined __osf__
  5223. /* This system does not cope well with relocations in const data. */
  5224. # define LT_DLSYM_CONST
  5225. #else
  5226. # define LT_DLSYM_CONST const
  5227. #endif
  5228. #ifdef __cplusplus
  5229. extern "C" {
  5230. #endif
  5231. _LT_EOF
  5232. # Now generate the symbol file.
  5233. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5234. cat <<_LT_EOF >> conftest.$ac_ext
  5235. /* The mapping between symbol names and symbols. */
  5236. LT_DLSYM_CONST struct {
  5237. const char *name;
  5238. void *address;
  5239. }
  5240. lt__PROGRAM__LTX_preloaded_symbols[] =
  5241. {
  5242. { "@PROGRAM@", (void *) 0 },
  5243. _LT_EOF
  5244. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5245. cat <<\_LT_EOF >> conftest.$ac_ext
  5246. {0, (void *) 0}
  5247. };
  5248. /* This works around a problem in FreeBSD linker */
  5249. #ifdef FREEBSD_WORKAROUND
  5250. static const void *lt_preloaded_setup() {
  5251. return lt__PROGRAM__LTX_preloaded_symbols;
  5252. }
  5253. #endif
  5254. #ifdef __cplusplus
  5255. }
  5256. #endif
  5257. _LT_EOF
  5258. # Now try linking the two files.
  5259. mv conftest.$ac_objext conftstm.$ac_objext
  5260. lt_globsym_save_LIBS=$LIBS
  5261. lt_globsym_save_CFLAGS=$CFLAGS
  5262. LIBS=conftstm.$ac_objext
  5263. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5264. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5265. (eval $ac_link) 2>&5
  5266. ac_status=$?
  5267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5268. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5269. pipe_works=yes
  5270. fi
  5271. LIBS=$lt_globsym_save_LIBS
  5272. CFLAGS=$lt_globsym_save_CFLAGS
  5273. else
  5274. echo "cannot find nm_test_func in $nlist" >&5
  5275. fi
  5276. else
  5277. echo "cannot find nm_test_var in $nlist" >&5
  5278. fi
  5279. else
  5280. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5281. fi
  5282. else
  5283. echo "$progname: failed program was:" >&5
  5284. cat conftest.$ac_ext >&5
  5285. fi
  5286. rm -rf conftest* conftst*
  5287. # Do not use the global_symbol_pipe unless it works.
  5288. if test yes = "$pipe_works"; then
  5289. break
  5290. else
  5291. lt_cv_sys_global_symbol_pipe=
  5292. fi
  5293. done
  5294. fi
  5295. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5296. lt_cv_sys_global_symbol_to_cdecl=
  5297. fi
  5298. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5300. $as_echo "failed" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5303. $as_echo "ok" >&6; }
  5304. fi
  5305. # Response file support.
  5306. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5307. nm_file_list_spec='@'
  5308. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5309. nm_file_list_spec='@'
  5310. fi
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5312. $as_echo_n "checking for sysroot... " >&6; }
  5313. # Check whether --with-sysroot was given.
  5314. if test "${with_sysroot+set}" = set; then :
  5315. withval=$with_sysroot;
  5316. else
  5317. with_sysroot=no
  5318. fi
  5319. lt_sysroot=
  5320. case $with_sysroot in #(
  5321. yes)
  5322. if test yes = "$GCC"; then
  5323. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5324. fi
  5325. ;; #(
  5326. /*)
  5327. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5328. ;; #(
  5329. no|'')
  5330. ;; #(
  5331. *)
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5333. $as_echo "$with_sysroot" >&6; }
  5334. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5335. ;;
  5336. esac
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5338. $as_echo "${lt_sysroot:-no}" >&6; }
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5340. $as_echo_n "checking for a working dd... " >&6; }
  5341. if ${ac_cv_path_lt_DD+:} false; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. printf 0123456789abcdef0123456789abcdef >conftest.i
  5345. cat conftest.i conftest.i >conftest2.i
  5346. : ${lt_DD:=$DD}
  5347. if test -z "$lt_DD"; then
  5348. ac_path_lt_DD_found=false
  5349. # Loop through the user's path and test for each of PROGNAME-LIST
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. test -z "$as_dir" && as_dir=.
  5355. for ac_prog in dd; do
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5358. as_fn_executable_p "$ac_path_lt_DD" || continue
  5359. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5360. cmp -s conftest.i conftest.out \
  5361. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5362. fi
  5363. $ac_path_lt_DD_found && break 3
  5364. done
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. if test -z "$ac_cv_path_lt_DD"; then
  5369. :
  5370. fi
  5371. else
  5372. ac_cv_path_lt_DD=$lt_DD
  5373. fi
  5374. rm -f conftest.i conftest2.i conftest.out
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5377. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5379. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5380. if ${lt_cv_truncate_bin+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. printf 0123456789abcdef0123456789abcdef >conftest.i
  5384. cat conftest.i conftest.i >conftest2.i
  5385. lt_cv_truncate_bin=
  5386. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5387. cmp -s conftest.i conftest.out \
  5388. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5389. fi
  5390. rm -f conftest.i conftest2.i conftest.out
  5391. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5392. fi
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5394. $as_echo "$lt_cv_truncate_bin" >&6; }
  5395. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5396. func_cc_basename ()
  5397. {
  5398. for cc_temp in $*""; do
  5399. case $cc_temp in
  5400. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5401. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5402. \-*) ;;
  5403. *) break;;
  5404. esac
  5405. done
  5406. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5407. }
  5408. # Check whether --enable-libtool-lock was given.
  5409. if test "${enable_libtool_lock+set}" = set; then :
  5410. enableval=$enable_libtool_lock;
  5411. fi
  5412. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5413. # Some flags need to be propagated to the compiler or linker for good
  5414. # libtool support.
  5415. case $host in
  5416. ia64-*-hpux*)
  5417. # Find out what ABI is being produced by ac_compile, and set mode
  5418. # options accordingly.
  5419. echo 'int i;' > conftest.$ac_ext
  5420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5421. (eval $ac_compile) 2>&5
  5422. ac_status=$?
  5423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5424. test $ac_status = 0; }; then
  5425. case `/usr/bin/file conftest.$ac_objext` in
  5426. *ELF-32*)
  5427. HPUX_IA64_MODE=32
  5428. ;;
  5429. *ELF-64*)
  5430. HPUX_IA64_MODE=64
  5431. ;;
  5432. esac
  5433. fi
  5434. rm -rf conftest*
  5435. ;;
  5436. *-*-irix6*)
  5437. # Find out what ABI is being produced by ac_compile, and set linker
  5438. # options accordingly.
  5439. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5441. (eval $ac_compile) 2>&5
  5442. ac_status=$?
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5444. test $ac_status = 0; }; then
  5445. if test yes = "$lt_cv_prog_gnu_ld"; then
  5446. case `/usr/bin/file conftest.$ac_objext` in
  5447. *32-bit*)
  5448. LD="${LD-ld} -melf32bsmip"
  5449. ;;
  5450. *N32*)
  5451. LD="${LD-ld} -melf32bmipn32"
  5452. ;;
  5453. *64-bit*)
  5454. LD="${LD-ld} -melf64bmip"
  5455. ;;
  5456. esac
  5457. else
  5458. case `/usr/bin/file conftest.$ac_objext` in
  5459. *32-bit*)
  5460. LD="${LD-ld} -32"
  5461. ;;
  5462. *N32*)
  5463. LD="${LD-ld} -n32"
  5464. ;;
  5465. *64-bit*)
  5466. LD="${LD-ld} -64"
  5467. ;;
  5468. esac
  5469. fi
  5470. fi
  5471. rm -rf conftest*
  5472. ;;
  5473. mips64*-*linux*)
  5474. # Find out what ABI is being produced by ac_compile, and set linker
  5475. # options accordingly.
  5476. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5478. (eval $ac_compile) 2>&5
  5479. ac_status=$?
  5480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5481. test $ac_status = 0; }; then
  5482. emul=elf
  5483. case `/usr/bin/file conftest.$ac_objext` in
  5484. *32-bit*)
  5485. emul="${emul}32"
  5486. ;;
  5487. *64-bit*)
  5488. emul="${emul}64"
  5489. ;;
  5490. esac
  5491. case `/usr/bin/file conftest.$ac_objext` in
  5492. *MSB*)
  5493. emul="${emul}btsmip"
  5494. ;;
  5495. *LSB*)
  5496. emul="${emul}ltsmip"
  5497. ;;
  5498. esac
  5499. case `/usr/bin/file conftest.$ac_objext` in
  5500. *N32*)
  5501. emul="${emul}n32"
  5502. ;;
  5503. esac
  5504. LD="${LD-ld} -m $emul"
  5505. fi
  5506. rm -rf conftest*
  5507. ;;
  5508. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5509. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5510. # Find out what ABI is being produced by ac_compile, and set linker
  5511. # options accordingly. Note that the listed cases only cover the
  5512. # situations where additional linker options are needed (such as when
  5513. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5514. # vice versa); the common cases where no linker options are needed do
  5515. # not appear in the list.
  5516. echo 'int i;' > conftest.$ac_ext
  5517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5518. (eval $ac_compile) 2>&5
  5519. ac_status=$?
  5520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5521. test $ac_status = 0; }; then
  5522. case `/usr/bin/file conftest.o` in
  5523. *32-bit*)
  5524. case $host in
  5525. x86_64-*kfreebsd*-gnu)
  5526. LD="${LD-ld} -m elf_i386_fbsd"
  5527. ;;
  5528. x86_64-*linux*)
  5529. case `/usr/bin/file conftest.o` in
  5530. *x86-64*)
  5531. LD="${LD-ld} -m elf32_x86_64"
  5532. ;;
  5533. *)
  5534. LD="${LD-ld} -m elf_i386"
  5535. ;;
  5536. esac
  5537. ;;
  5538. powerpc64le-*linux*)
  5539. LD="${LD-ld} -m elf32lppclinux"
  5540. ;;
  5541. powerpc64-*linux*)
  5542. LD="${LD-ld} -m elf32ppclinux"
  5543. ;;
  5544. s390x-*linux*)
  5545. LD="${LD-ld} -m elf_s390"
  5546. ;;
  5547. sparc64-*linux*)
  5548. LD="${LD-ld} -m elf32_sparc"
  5549. ;;
  5550. esac
  5551. ;;
  5552. *64-bit*)
  5553. case $host in
  5554. x86_64-*kfreebsd*-gnu)
  5555. LD="${LD-ld} -m elf_x86_64_fbsd"
  5556. ;;
  5557. x86_64-*linux*)
  5558. LD="${LD-ld} -m elf_x86_64"
  5559. ;;
  5560. powerpcle-*linux*|powerpc64le-*linux*)
  5561. LD="${LD-ld} -m elf64lppc"
  5562. ;;
  5563. powerpc-*linux*|powerpc64-*linux*)
  5564. LD="${LD-ld} -m elf64ppc"
  5565. ;;
  5566. s390*-*linux*|s390*-*tpf*)
  5567. LD="${LD-ld} -m elf64_s390"
  5568. ;;
  5569. sparc*-*linux*)
  5570. LD="${LD-ld} -m elf64_sparc"
  5571. ;;
  5572. esac
  5573. ;;
  5574. esac
  5575. fi
  5576. rm -rf conftest*
  5577. ;;
  5578. *-*-sco3.2v5*)
  5579. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5580. SAVE_CFLAGS=$CFLAGS
  5581. CFLAGS="$CFLAGS -belf"
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5583. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5584. if ${lt_cv_cc_needs_belf+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. ac_ext=c
  5588. ac_cpp='$CPP $CPPFLAGS'
  5589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5593. /* end confdefs.h. */
  5594. int
  5595. main ()
  5596. {
  5597. ;
  5598. return 0;
  5599. }
  5600. _ACEOF
  5601. if ac_fn_c_try_link "$LINENO"; then :
  5602. lt_cv_cc_needs_belf=yes
  5603. else
  5604. lt_cv_cc_needs_belf=no
  5605. fi
  5606. rm -f core conftest.err conftest.$ac_objext \
  5607. conftest$ac_exeext conftest.$ac_ext
  5608. ac_ext=c
  5609. ac_cpp='$CPP $CPPFLAGS'
  5610. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5611. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5612. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5613. fi
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5615. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5616. if test yes != "$lt_cv_cc_needs_belf"; then
  5617. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5618. CFLAGS=$SAVE_CFLAGS
  5619. fi
  5620. ;;
  5621. *-*solaris*)
  5622. # Find out what ABI is being produced by ac_compile, and set linker
  5623. # options accordingly.
  5624. echo 'int i;' > conftest.$ac_ext
  5625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5626. (eval $ac_compile) 2>&5
  5627. ac_status=$?
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5629. test $ac_status = 0; }; then
  5630. case `/usr/bin/file conftest.o` in
  5631. *64-bit*)
  5632. case $lt_cv_prog_gnu_ld in
  5633. yes*)
  5634. case $host in
  5635. i?86-*-solaris*|x86_64-*-solaris*)
  5636. LD="${LD-ld} -m elf_x86_64"
  5637. ;;
  5638. sparc*-*-solaris*)
  5639. LD="${LD-ld} -m elf64_sparc"
  5640. ;;
  5641. esac
  5642. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5643. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5644. LD=${LD-ld}_sol2
  5645. fi
  5646. ;;
  5647. *)
  5648. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5649. LD="${LD-ld} -64"
  5650. fi
  5651. ;;
  5652. esac
  5653. ;;
  5654. esac
  5655. fi
  5656. rm -rf conftest*
  5657. ;;
  5658. esac
  5659. need_locks=$enable_libtool_lock
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$MANIFEST_TOOL"; then
  5669. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5688. if test -n "$MANIFEST_TOOL"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5690. $as_echo "$MANIFEST_TOOL" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. fi
  5696. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5697. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5698. # Extract the first word of "mt", so it can be a program name with args.
  5699. set dummy mt; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5706. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5725. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5727. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5733. MANIFEST_TOOL=":"
  5734. else
  5735. case $cross_compiling:$ac_tool_warned in
  5736. yes:)
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5739. ac_tool_warned=yes ;;
  5740. esac
  5741. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5742. fi
  5743. else
  5744. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5745. fi
  5746. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5748. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5749. if ${lt_cv_path_mainfest_tool+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. lt_cv_path_mainfest_tool=no
  5753. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5754. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5755. cat conftest.err >&5
  5756. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5757. lt_cv_path_mainfest_tool=yes
  5758. fi
  5759. rm -f conftest*
  5760. fi
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5762. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5763. if test yes != "$lt_cv_path_mainfest_tool"; then
  5764. MANIFEST_TOOL=:
  5765. fi
  5766. case $host_os in
  5767. rhapsody* | darwin*)
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$DSYMUTIL"; then
  5777. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5796. if test -n "$DSYMUTIL"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5798. $as_echo "$DSYMUTIL" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5805. ac_ct_DSYMUTIL=$DSYMUTIL
  5806. # Extract the first word of "dsymutil", so it can be a program name with args.
  5807. set dummy dsymutil; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$ac_ct_DSYMUTIL"; then
  5814. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5823. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5833. if test -n "$ac_ct_DSYMUTIL"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5835. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. if test "x$ac_ct_DSYMUTIL" = x; then
  5841. DSYMUTIL=":"
  5842. else
  5843. case $cross_compiling:$ac_tool_warned in
  5844. yes:)
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5847. ac_tool_warned=yes ;;
  5848. esac
  5849. DSYMUTIL=$ac_ct_DSYMUTIL
  5850. fi
  5851. else
  5852. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_NMEDIT+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$NMEDIT"; then
  5863. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. NMEDIT=$ac_cv_prog_NMEDIT
  5882. if test -n "$NMEDIT"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5884. $as_echo "$NMEDIT" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_NMEDIT"; then
  5891. ac_ct_NMEDIT=$NMEDIT
  5892. # Extract the first word of "nmedit", so it can be a program name with args.
  5893. set dummy nmedit; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_NMEDIT"; then
  5900. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5919. if test -n "$ac_ct_NMEDIT"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5921. $as_echo "$ac_ct_NMEDIT" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_NMEDIT" = x; then
  5927. NMEDIT=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. NMEDIT=$ac_ct_NMEDIT
  5936. fi
  5937. else
  5938. NMEDIT="$ac_cv_prog_NMEDIT"
  5939. fi
  5940. if test -n "$ac_tool_prefix"; then
  5941. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5942. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if ${ac_cv_prog_LIPO+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$LIPO"; then
  5949. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5958. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. LIPO=$ac_cv_prog_LIPO
  5968. if test -n "$LIPO"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5970. $as_echo "$LIPO" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. fi
  5976. if test -z "$ac_cv_prog_LIPO"; then
  5977. ac_ct_LIPO=$LIPO
  5978. # Extract the first word of "lipo", so it can be a program name with args.
  5979. set dummy lipo; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$ac_ct_LIPO"; then
  5986. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5995. ac_cv_prog_ac_ct_LIPO="lipo"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6005. if test -n "$ac_ct_LIPO"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6007. $as_echo "$ac_ct_LIPO" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. if test "x$ac_ct_LIPO" = x; then
  6013. LIPO=":"
  6014. else
  6015. case $cross_compiling:$ac_tool_warned in
  6016. yes:)
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6019. ac_tool_warned=yes ;;
  6020. esac
  6021. LIPO=$ac_ct_LIPO
  6022. fi
  6023. else
  6024. LIPO="$ac_cv_prog_LIPO"
  6025. fi
  6026. if test -n "$ac_tool_prefix"; then
  6027. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6028. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6030. $as_echo_n "checking for $ac_word... " >&6; }
  6031. if ${ac_cv_prog_OTOOL+:} false; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. if test -n "$OTOOL"; then
  6035. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6036. else
  6037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6038. for as_dir in $PATH
  6039. do
  6040. IFS=$as_save_IFS
  6041. test -z "$as_dir" && as_dir=.
  6042. for ac_exec_ext in '' $ac_executable_extensions; do
  6043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6044. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6046. break 2
  6047. fi
  6048. done
  6049. done
  6050. IFS=$as_save_IFS
  6051. fi
  6052. fi
  6053. OTOOL=$ac_cv_prog_OTOOL
  6054. if test -n "$OTOOL"; then
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6056. $as_echo "$OTOOL" >&6; }
  6057. else
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6059. $as_echo "no" >&6; }
  6060. fi
  6061. fi
  6062. if test -z "$ac_cv_prog_OTOOL"; then
  6063. ac_ct_OTOOL=$OTOOL
  6064. # Extract the first word of "otool", so it can be a program name with args.
  6065. set dummy otool; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$ac_ct_OTOOL"; then
  6072. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6081. ac_cv_prog_ac_ct_OTOOL="otool"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6091. if test -n "$ac_ct_OTOOL"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6093. $as_echo "$ac_ct_OTOOL" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. if test "x$ac_ct_OTOOL" = x; then
  6099. OTOOL=":"
  6100. else
  6101. case $cross_compiling:$ac_tool_warned in
  6102. yes:)
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6105. ac_tool_warned=yes ;;
  6106. esac
  6107. OTOOL=$ac_ct_OTOOL
  6108. fi
  6109. else
  6110. OTOOL="$ac_cv_prog_OTOOL"
  6111. fi
  6112. if test -n "$ac_tool_prefix"; then
  6113. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6114. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6116. $as_echo_n "checking for $ac_word... " >&6; }
  6117. if ${ac_cv_prog_OTOOL64+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. if test -n "$OTOOL64"; then
  6121. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6122. else
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. test -z "$as_dir" && as_dir=.
  6128. for ac_exec_ext in '' $ac_executable_extensions; do
  6129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6130. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6132. break 2
  6133. fi
  6134. done
  6135. done
  6136. IFS=$as_save_IFS
  6137. fi
  6138. fi
  6139. OTOOL64=$ac_cv_prog_OTOOL64
  6140. if test -n "$OTOOL64"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6142. $as_echo "$OTOOL64" >&6; }
  6143. else
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6145. $as_echo "no" >&6; }
  6146. fi
  6147. fi
  6148. if test -z "$ac_cv_prog_OTOOL64"; then
  6149. ac_ct_OTOOL64=$OTOOL64
  6150. # Extract the first word of "otool64", so it can be a program name with args.
  6151. set dummy otool64; ac_word=$2
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$ac_ct_OTOOL64"; then
  6158. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6167. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6177. if test -n "$ac_ct_OTOOL64"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6179. $as_echo "$ac_ct_OTOOL64" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test "x$ac_ct_OTOOL64" = x; then
  6185. OTOOL64=":"
  6186. else
  6187. case $cross_compiling:$ac_tool_warned in
  6188. yes:)
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6191. ac_tool_warned=yes ;;
  6192. esac
  6193. OTOOL64=$ac_ct_OTOOL64
  6194. fi
  6195. else
  6196. OTOOL64="$ac_cv_prog_OTOOL64"
  6197. fi
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6199. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6200. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. lt_cv_apple_cc_single_mod=no
  6204. if test -z "$LT_MULTI_MODULE"; then
  6205. # By default we will add the -single_module flag. You can override
  6206. # by either setting the environment variable LT_MULTI_MODULE
  6207. # non-empty at configure time, or by adding -multi_module to the
  6208. # link flags.
  6209. rm -rf libconftest.dylib*
  6210. echo "int foo(void){return 1;}" > conftest.c
  6211. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6212. -dynamiclib -Wl,-single_module conftest.c" >&5
  6213. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6214. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6215. _lt_result=$?
  6216. # If there is a non-empty error log, and "single_module"
  6217. # appears in it, assume the flag caused a linker warning
  6218. if test -s conftest.err && $GREP single_module conftest.err; then
  6219. cat conftest.err >&5
  6220. # Otherwise, if the output was created with a 0 exit code from
  6221. # the compiler, it worked.
  6222. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6223. lt_cv_apple_cc_single_mod=yes
  6224. else
  6225. cat conftest.err >&5
  6226. fi
  6227. rm -rf libconftest.dylib*
  6228. rm -f conftest.*
  6229. fi
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6232. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6234. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6235. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. lt_cv_ld_exported_symbols_list=no
  6239. save_LDFLAGS=$LDFLAGS
  6240. echo "_main" > conftest.sym
  6241. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6243. /* end confdefs.h. */
  6244. int
  6245. main ()
  6246. {
  6247. ;
  6248. return 0;
  6249. }
  6250. _ACEOF
  6251. if ac_fn_c_try_link "$LINENO"; then :
  6252. lt_cv_ld_exported_symbols_list=yes
  6253. else
  6254. lt_cv_ld_exported_symbols_list=no
  6255. fi
  6256. rm -f core conftest.err conftest.$ac_objext \
  6257. conftest$ac_exeext conftest.$ac_ext
  6258. LDFLAGS=$save_LDFLAGS
  6259. fi
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6261. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6263. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6264. if ${lt_cv_ld_force_load+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. lt_cv_ld_force_load=no
  6268. cat > conftest.c << _LT_EOF
  6269. int forced_loaded() { return 2;}
  6270. _LT_EOF
  6271. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6272. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6273. echo "$AR cru libconftest.a conftest.o" >&5
  6274. $AR cru libconftest.a conftest.o 2>&5
  6275. echo "$RANLIB libconftest.a" >&5
  6276. $RANLIB libconftest.a 2>&5
  6277. cat > conftest.c << _LT_EOF
  6278. int main() { return 0;}
  6279. _LT_EOF
  6280. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6281. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6282. _lt_result=$?
  6283. if test -s conftest.err && $GREP force_load conftest.err; then
  6284. cat conftest.err >&5
  6285. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6286. lt_cv_ld_force_load=yes
  6287. else
  6288. cat conftest.err >&5
  6289. fi
  6290. rm -f conftest.err libconftest.a conftest conftest.c
  6291. rm -rf conftest.dSYM
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6294. $as_echo "$lt_cv_ld_force_load" >&6; }
  6295. case $host_os in
  6296. rhapsody* | darwin1.[012])
  6297. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6298. darwin1.*)
  6299. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6300. darwin*)
  6301. case ${MACOSX_DEPLOYMENT_TARGET},$host in
  6302. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. *)
  6305. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6306. esac
  6307. ;;
  6308. esac
  6309. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6310. _lt_dar_single_mod='$single_module'
  6311. fi
  6312. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6313. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6314. else
  6315. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6316. fi
  6317. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6318. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6319. else
  6320. _lt_dsymutil=
  6321. fi
  6322. ;;
  6323. esac
  6324. # func_munge_path_list VARIABLE PATH
  6325. # -----------------------------------
  6326. # VARIABLE is name of variable containing _space_ separated list of
  6327. # directories to be munged by the contents of PATH, which is string
  6328. # having a format:
  6329. # "DIR[:DIR]:"
  6330. # string "DIR[ DIR]" will be prepended to VARIABLE
  6331. # ":DIR[:DIR]"
  6332. # string "DIR[ DIR]" will be appended to VARIABLE
  6333. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6334. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6335. # "DIRA[ DIRA]" will be appended to VARIABLE
  6336. # "DIR[:DIR]"
  6337. # VARIABLE will be replaced by "DIR[ DIR]"
  6338. func_munge_path_list ()
  6339. {
  6340. case x$2 in
  6341. x)
  6342. ;;
  6343. *:)
  6344. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6345. ;;
  6346. x:*)
  6347. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6348. ;;
  6349. *::*)
  6350. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6351. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6352. ;;
  6353. *)
  6354. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6355. ;;
  6356. esac
  6357. }
  6358. ac_ext=c
  6359. ac_cpp='$CPP $CPPFLAGS'
  6360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6364. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6365. # On Suns, sometimes $CPP names a directory.
  6366. if test -n "$CPP" && test -d "$CPP"; then
  6367. CPP=
  6368. fi
  6369. if test -z "$CPP"; then
  6370. if ${ac_cv_prog_CPP+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. # Double quotes because CPP needs to be expanded
  6374. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6375. do
  6376. ac_preproc_ok=false
  6377. for ac_c_preproc_warn_flag in '' yes
  6378. do
  6379. # Use a header file that comes with gcc, so configuring glibc
  6380. # with a fresh cross-compiler works.
  6381. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6382. # <limits.h> exists even on freestanding compilers.
  6383. # On the NeXT, cc -E runs the code through the compiler's parser,
  6384. # not just through cpp. "Syntax error" is here to catch this case.
  6385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6386. /* end confdefs.h. */
  6387. #ifdef __STDC__
  6388. # include <limits.h>
  6389. #else
  6390. # include <assert.h>
  6391. #endif
  6392. Syntax error
  6393. _ACEOF
  6394. if ac_fn_c_try_cpp "$LINENO"; then :
  6395. else
  6396. # Broken: fails on valid input.
  6397. continue
  6398. fi
  6399. rm -f conftest.err conftest.i conftest.$ac_ext
  6400. # OK, works on sane cases. Now check whether nonexistent headers
  6401. # can be detected and how.
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. #include <ac_nonexistent.h>
  6405. _ACEOF
  6406. if ac_fn_c_try_cpp "$LINENO"; then :
  6407. # Broken: success on invalid input.
  6408. continue
  6409. else
  6410. # Passes both tests.
  6411. ac_preproc_ok=:
  6412. break
  6413. fi
  6414. rm -f conftest.err conftest.i conftest.$ac_ext
  6415. done
  6416. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6417. rm -f conftest.i conftest.err conftest.$ac_ext
  6418. if $ac_preproc_ok; then :
  6419. break
  6420. fi
  6421. done
  6422. ac_cv_prog_CPP=$CPP
  6423. fi
  6424. CPP=$ac_cv_prog_CPP
  6425. else
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6429. $as_echo "$CPP" >&6; }
  6430. ac_preproc_ok=false
  6431. for ac_c_preproc_warn_flag in '' yes
  6432. do
  6433. # Use a header file that comes with gcc, so configuring glibc
  6434. # with a fresh cross-compiler works.
  6435. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6436. # <limits.h> exists even on freestanding compilers.
  6437. # On the NeXT, cc -E runs the code through the compiler's parser,
  6438. # not just through cpp. "Syntax error" is here to catch this case.
  6439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6440. /* end confdefs.h. */
  6441. #ifdef __STDC__
  6442. # include <limits.h>
  6443. #else
  6444. # include <assert.h>
  6445. #endif
  6446. Syntax error
  6447. _ACEOF
  6448. if ac_fn_c_try_cpp "$LINENO"; then :
  6449. else
  6450. # Broken: fails on valid input.
  6451. continue
  6452. fi
  6453. rm -f conftest.err conftest.i conftest.$ac_ext
  6454. # OK, works on sane cases. Now check whether nonexistent headers
  6455. # can be detected and how.
  6456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6457. /* end confdefs.h. */
  6458. #include <ac_nonexistent.h>
  6459. _ACEOF
  6460. if ac_fn_c_try_cpp "$LINENO"; then :
  6461. # Broken: success on invalid input.
  6462. continue
  6463. else
  6464. # Passes both tests.
  6465. ac_preproc_ok=:
  6466. break
  6467. fi
  6468. rm -f conftest.err conftest.i conftest.$ac_ext
  6469. done
  6470. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6471. rm -f conftest.i conftest.err conftest.$ac_ext
  6472. if $ac_preproc_ok; then :
  6473. else
  6474. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6475. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6476. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6477. See \`config.log' for more details" "$LINENO" 5; }
  6478. fi
  6479. ac_ext=c
  6480. ac_cpp='$CPP $CPPFLAGS'
  6481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6485. $as_echo_n "checking for ANSI C header files... " >&6; }
  6486. if ${ac_cv_header_stdc+:} false; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. #include <stdlib.h>
  6492. #include <stdarg.h>
  6493. #include <string.h>
  6494. #include <float.h>
  6495. int
  6496. main ()
  6497. {
  6498. ;
  6499. return 0;
  6500. }
  6501. _ACEOF
  6502. if ac_fn_c_try_compile "$LINENO"; then :
  6503. ac_cv_header_stdc=yes
  6504. else
  6505. ac_cv_header_stdc=no
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6508. if test $ac_cv_header_stdc = yes; then
  6509. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6511. /* end confdefs.h. */
  6512. #include <string.h>
  6513. _ACEOF
  6514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6515. $EGREP "memchr" >/dev/null 2>&1; then :
  6516. else
  6517. ac_cv_header_stdc=no
  6518. fi
  6519. rm -f conftest*
  6520. fi
  6521. if test $ac_cv_header_stdc = yes; then
  6522. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6524. /* end confdefs.h. */
  6525. #include <stdlib.h>
  6526. _ACEOF
  6527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6528. $EGREP "free" >/dev/null 2>&1; then :
  6529. else
  6530. ac_cv_header_stdc=no
  6531. fi
  6532. rm -f conftest*
  6533. fi
  6534. if test $ac_cv_header_stdc = yes; then
  6535. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6536. if test "$cross_compiling" = yes; then :
  6537. :
  6538. else
  6539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6540. /* end confdefs.h. */
  6541. #include <ctype.h>
  6542. #include <stdlib.h>
  6543. #if ((' ' & 0x0FF) == 0x020)
  6544. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6545. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6546. #else
  6547. # define ISLOWER(c) \
  6548. (('a' <= (c) && (c) <= 'i') \
  6549. || ('j' <= (c) && (c) <= 'r') \
  6550. || ('s' <= (c) && (c) <= 'z'))
  6551. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6552. #endif
  6553. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6554. int
  6555. main ()
  6556. {
  6557. int i;
  6558. for (i = 0; i < 256; i++)
  6559. if (XOR (islower (i), ISLOWER (i))
  6560. || toupper (i) != TOUPPER (i))
  6561. return 2;
  6562. return 0;
  6563. }
  6564. _ACEOF
  6565. if ac_fn_c_try_run "$LINENO"; then :
  6566. else
  6567. ac_cv_header_stdc=no
  6568. fi
  6569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6571. fi
  6572. fi
  6573. fi
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6575. $as_echo "$ac_cv_header_stdc" >&6; }
  6576. if test $ac_cv_header_stdc = yes; then
  6577. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6578. fi
  6579. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6580. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6581. inttypes.h stdint.h unistd.h
  6582. do :
  6583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6584. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6585. "
  6586. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6587. cat >>confdefs.h <<_ACEOF
  6588. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6589. _ACEOF
  6590. fi
  6591. done
  6592. for ac_header in dlfcn.h
  6593. do :
  6594. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6595. "
  6596. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6597. cat >>confdefs.h <<_ACEOF
  6598. #define HAVE_DLFCN_H 1
  6599. _ACEOF
  6600. fi
  6601. done
  6602. # Set options
  6603. enable_win32_dll=yes
  6604. case $host in
  6605. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6606. if test -n "$ac_tool_prefix"; then
  6607. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6608. set dummy ${ac_tool_prefix}as; ac_word=$2
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6610. $as_echo_n "checking for $ac_word... " >&6; }
  6611. if ${ac_cv_prog_AS+:} false; then :
  6612. $as_echo_n "(cached) " >&6
  6613. else
  6614. if test -n "$AS"; then
  6615. ac_cv_prog_AS="$AS" # Let the user override the test.
  6616. else
  6617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6618. for as_dir in $PATH
  6619. do
  6620. IFS=$as_save_IFS
  6621. test -z "$as_dir" && as_dir=.
  6622. for ac_exec_ext in '' $ac_executable_extensions; do
  6623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6624. ac_cv_prog_AS="${ac_tool_prefix}as"
  6625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6626. break 2
  6627. fi
  6628. done
  6629. done
  6630. IFS=$as_save_IFS
  6631. fi
  6632. fi
  6633. AS=$ac_cv_prog_AS
  6634. if test -n "$AS"; then
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6636. $as_echo "$AS" >&6; }
  6637. else
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6639. $as_echo "no" >&6; }
  6640. fi
  6641. fi
  6642. if test -z "$ac_cv_prog_AS"; then
  6643. ac_ct_AS=$AS
  6644. # Extract the first word of "as", so it can be a program name with args.
  6645. set dummy as; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$ac_ct_AS"; then
  6652. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_ac_ct_AS="as"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6671. if test -n "$ac_ct_AS"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6673. $as_echo "$ac_ct_AS" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. if test "x$ac_ct_AS" = x; then
  6679. AS="false"
  6680. else
  6681. case $cross_compiling:$ac_tool_warned in
  6682. yes:)
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6685. ac_tool_warned=yes ;;
  6686. esac
  6687. AS=$ac_ct_AS
  6688. fi
  6689. else
  6690. AS="$ac_cv_prog_AS"
  6691. fi
  6692. if test -n "$ac_tool_prefix"; then
  6693. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6694. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. $as_echo_n "checking for $ac_word... " >&6; }
  6697. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. if test -n "$DLLTOOL"; then
  6701. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. test -z "$as_dir" && as_dir=.
  6708. for ac_exec_ext in '' $ac_executable_extensions; do
  6709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6710. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6712. break 2
  6713. fi
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. fi
  6718. fi
  6719. DLLTOOL=$ac_cv_prog_DLLTOOL
  6720. if test -n "$DLLTOOL"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6722. $as_echo "$DLLTOOL" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. fi
  6728. if test -z "$ac_cv_prog_DLLTOOL"; then
  6729. ac_ct_DLLTOOL=$DLLTOOL
  6730. # Extract the first word of "dlltool", so it can be a program name with args.
  6731. set dummy dlltool; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$ac_ct_DLLTOOL"; then
  6738. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6747. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6757. if test -n "$ac_ct_DLLTOOL"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6759. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. if test "x$ac_ct_DLLTOOL" = x; then
  6765. DLLTOOL="false"
  6766. else
  6767. case $cross_compiling:$ac_tool_warned in
  6768. yes:)
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6771. ac_tool_warned=yes ;;
  6772. esac
  6773. DLLTOOL=$ac_ct_DLLTOOL
  6774. fi
  6775. else
  6776. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6777. fi
  6778. if test -n "$ac_tool_prefix"; then
  6779. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6780. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6782. $as_echo_n "checking for $ac_word... " >&6; }
  6783. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. if test -n "$OBJDUMP"; then
  6787. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6788. else
  6789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6790. for as_dir in $PATH
  6791. do
  6792. IFS=$as_save_IFS
  6793. test -z "$as_dir" && as_dir=.
  6794. for ac_exec_ext in '' $ac_executable_extensions; do
  6795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6796. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6798. break 2
  6799. fi
  6800. done
  6801. done
  6802. IFS=$as_save_IFS
  6803. fi
  6804. fi
  6805. OBJDUMP=$ac_cv_prog_OBJDUMP
  6806. if test -n "$OBJDUMP"; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6808. $as_echo "$OBJDUMP" >&6; }
  6809. else
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6811. $as_echo "no" >&6; }
  6812. fi
  6813. fi
  6814. if test -z "$ac_cv_prog_OBJDUMP"; then
  6815. ac_ct_OBJDUMP=$OBJDUMP
  6816. # Extract the first word of "objdump", so it can be a program name with args.
  6817. set dummy objdump; ac_word=$2
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6819. $as_echo_n "checking for $ac_word... " >&6; }
  6820. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. if test -n "$ac_ct_OBJDUMP"; then
  6824. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6825. else
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. fi
  6841. fi
  6842. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6843. if test -n "$ac_ct_OBJDUMP"; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6845. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6846. else
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6848. $as_echo "no" >&6; }
  6849. fi
  6850. if test "x$ac_ct_OBJDUMP" = x; then
  6851. OBJDUMP="false"
  6852. else
  6853. case $cross_compiling:$ac_tool_warned in
  6854. yes:)
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6857. ac_tool_warned=yes ;;
  6858. esac
  6859. OBJDUMP=$ac_ct_OBJDUMP
  6860. fi
  6861. else
  6862. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6863. fi
  6864. ;;
  6865. esac
  6866. test -z "$AS" && AS=as
  6867. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6868. test -z "$OBJDUMP" && OBJDUMP=objdump
  6869. enable_dlopen=no
  6870. # Check whether --enable-shared was given.
  6871. if test "${enable_shared+set}" = set; then :
  6872. enableval=$enable_shared; p=${PACKAGE-default}
  6873. case $enableval in
  6874. yes) enable_shared=yes ;;
  6875. no) enable_shared=no ;;
  6876. *)
  6877. enable_shared=no
  6878. # Look at the argument we got. We use all the common list separators.
  6879. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6880. for pkg in $enableval; do
  6881. IFS=$lt_save_ifs
  6882. if test "X$pkg" = "X$p"; then
  6883. enable_shared=yes
  6884. fi
  6885. done
  6886. IFS=$lt_save_ifs
  6887. ;;
  6888. esac
  6889. else
  6890. enable_shared=yes
  6891. fi
  6892. # Check whether --enable-static was given.
  6893. if test "${enable_static+set}" = set; then :
  6894. enableval=$enable_static; p=${PACKAGE-default}
  6895. case $enableval in
  6896. yes) enable_static=yes ;;
  6897. no) enable_static=no ;;
  6898. *)
  6899. enable_static=no
  6900. # Look at the argument we got. We use all the common list separators.
  6901. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6902. for pkg in $enableval; do
  6903. IFS=$lt_save_ifs
  6904. if test "X$pkg" = "X$p"; then
  6905. enable_static=yes
  6906. fi
  6907. done
  6908. IFS=$lt_save_ifs
  6909. ;;
  6910. esac
  6911. else
  6912. enable_static=yes
  6913. fi
  6914. # Check whether --with-pic was given.
  6915. if test "${with_pic+set}" = set; then :
  6916. withval=$with_pic; lt_p=${PACKAGE-default}
  6917. case $withval in
  6918. yes|no) pic_mode=$withval ;;
  6919. *)
  6920. pic_mode=default
  6921. # Look at the argument we got. We use all the common list separators.
  6922. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6923. for lt_pkg in $withval; do
  6924. IFS=$lt_save_ifs
  6925. if test "X$lt_pkg" = "X$lt_p"; then
  6926. pic_mode=yes
  6927. fi
  6928. done
  6929. IFS=$lt_save_ifs
  6930. ;;
  6931. esac
  6932. else
  6933. pic_mode=default
  6934. fi
  6935. # Check whether --enable-fast-install was given.
  6936. if test "${enable_fast_install+set}" = set; then :
  6937. enableval=$enable_fast_install; p=${PACKAGE-default}
  6938. case $enableval in
  6939. yes) enable_fast_install=yes ;;
  6940. no) enable_fast_install=no ;;
  6941. *)
  6942. enable_fast_install=no
  6943. # Look at the argument we got. We use all the common list separators.
  6944. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6945. for pkg in $enableval; do
  6946. IFS=$lt_save_ifs
  6947. if test "X$pkg" = "X$p"; then
  6948. enable_fast_install=yes
  6949. fi
  6950. done
  6951. IFS=$lt_save_ifs
  6952. ;;
  6953. esac
  6954. else
  6955. enable_fast_install=yes
  6956. fi
  6957. shared_archive_member_spec=
  6958. case $host,$enable_shared in
  6959. power*-*-aix[5-9]*,yes)
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6961. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6962. # Check whether --with-aix-soname was given.
  6963. if test "${with_aix_soname+set}" = set; then :
  6964. withval=$with_aix_soname; case $withval in
  6965. aix|svr4|both)
  6966. ;;
  6967. *)
  6968. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6969. ;;
  6970. esac
  6971. lt_cv_with_aix_soname=$with_aix_soname
  6972. else
  6973. if ${lt_cv_with_aix_soname+:} false; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. lt_cv_with_aix_soname=aix
  6977. fi
  6978. with_aix_soname=$lt_cv_with_aix_soname
  6979. fi
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6981. $as_echo "$with_aix_soname" >&6; }
  6982. if test aix != "$with_aix_soname"; then
  6983. # For the AIX way of multilib, we name the shared archive member
  6984. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6985. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6986. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6987. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6988. if test 64 = "${OBJECT_MODE-32}"; then
  6989. shared_archive_member_spec=shr_64
  6990. else
  6991. shared_archive_member_spec=shr
  6992. fi
  6993. fi
  6994. ;;
  6995. *)
  6996. with_aix_soname=aix
  6997. ;;
  6998. esac
  6999. # This can be used to rebuild libtool when needed
  7000. LIBTOOL_DEPS=$ltmain
  7001. # Always use our own libtool.
  7002. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7003. test -z "$LN_S" && LN_S="ln -s"
  7004. if test -n "${ZSH_VERSION+set}"; then
  7005. setopt NO_GLOB_SUBST
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7008. $as_echo_n "checking for objdir... " >&6; }
  7009. if ${lt_cv_objdir+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. rm -f .libs 2>/dev/null
  7013. mkdir .libs 2>/dev/null
  7014. if test -d .libs; then
  7015. lt_cv_objdir=.libs
  7016. else
  7017. # MS-DOS does not allow filenames that begin with a dot.
  7018. lt_cv_objdir=_libs
  7019. fi
  7020. rmdir .libs 2>/dev/null
  7021. fi
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7023. $as_echo "$lt_cv_objdir" >&6; }
  7024. objdir=$lt_cv_objdir
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define LT_OBJDIR "$lt_cv_objdir/"
  7027. _ACEOF
  7028. case $host_os in
  7029. aix3*)
  7030. # AIX sometimes has problems with the GCC collect2 program. For some
  7031. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7032. # vanish in a puff of smoke.
  7033. if test set != "${COLLECT_NAMES+set}"; then
  7034. COLLECT_NAMES=
  7035. export COLLECT_NAMES
  7036. fi
  7037. ;;
  7038. esac
  7039. # Global variables:
  7040. ofile=libtool
  7041. can_build_shared=yes
  7042. # All known linkers require a '.a' archive for static linking (except MSVC,
  7043. # which needs '.lib').
  7044. libext=a
  7045. with_gnu_ld=$lt_cv_prog_gnu_ld
  7046. old_CC=$CC
  7047. old_CFLAGS=$CFLAGS
  7048. # Set sane defaults for various variables
  7049. test -z "$CC" && CC=cc
  7050. test -z "$LTCC" && LTCC=$CC
  7051. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7052. test -z "$LD" && LD=ld
  7053. test -z "$ac_objext" && ac_objext=o
  7054. func_cc_basename $compiler
  7055. cc_basename=$func_cc_basename_result
  7056. # Only perform the check for file, if the check method requires it
  7057. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7058. case $deplibs_check_method in
  7059. file_magic*)
  7060. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7062. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7063. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7064. $as_echo_n "(cached) " >&6
  7065. else
  7066. case $MAGIC_CMD in
  7067. [\\/*] | ?:[\\/]*)
  7068. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7069. ;;
  7070. *)
  7071. lt_save_MAGIC_CMD=$MAGIC_CMD
  7072. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7073. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7074. for ac_dir in $ac_dummy; do
  7075. IFS=$lt_save_ifs
  7076. test -z "$ac_dir" && ac_dir=.
  7077. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7078. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7079. if test -n "$file_magic_test_file"; then
  7080. case $deplibs_check_method in
  7081. "file_magic "*)
  7082. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7083. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7084. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7085. $EGREP "$file_magic_regex" > /dev/null; then
  7086. :
  7087. else
  7088. cat <<_LT_EOF 1>&2
  7089. *** Warning: the command libtool uses to detect shared libraries,
  7090. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7091. *** The result is that libtool may fail to recognize shared libraries
  7092. *** as such. This will affect the creation of libtool libraries that
  7093. *** depend on shared libraries, but programs linked with such libtool
  7094. *** libraries will work regardless of this problem. Nevertheless, you
  7095. *** may want to report the problem to your system manager and/or to
  7096. *** bug-libtool@gnu.org
  7097. _LT_EOF
  7098. fi ;;
  7099. esac
  7100. fi
  7101. break
  7102. fi
  7103. done
  7104. IFS=$lt_save_ifs
  7105. MAGIC_CMD=$lt_save_MAGIC_CMD
  7106. ;;
  7107. esac
  7108. fi
  7109. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7110. if test -n "$MAGIC_CMD"; then
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7112. $as_echo "$MAGIC_CMD" >&6; }
  7113. else
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7115. $as_echo "no" >&6; }
  7116. fi
  7117. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7118. if test -n "$ac_tool_prefix"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7120. $as_echo_n "checking for file... " >&6; }
  7121. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. case $MAGIC_CMD in
  7125. [\\/*] | ?:[\\/]*)
  7126. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7127. ;;
  7128. *)
  7129. lt_save_MAGIC_CMD=$MAGIC_CMD
  7130. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7131. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7132. for ac_dir in $ac_dummy; do
  7133. IFS=$lt_save_ifs
  7134. test -z "$ac_dir" && ac_dir=.
  7135. if test -f "$ac_dir/file"; then
  7136. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7137. if test -n "$file_magic_test_file"; then
  7138. case $deplibs_check_method in
  7139. "file_magic "*)
  7140. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7141. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7142. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7143. $EGREP "$file_magic_regex" > /dev/null; then
  7144. :
  7145. else
  7146. cat <<_LT_EOF 1>&2
  7147. *** Warning: the command libtool uses to detect shared libraries,
  7148. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7149. *** The result is that libtool may fail to recognize shared libraries
  7150. *** as such. This will affect the creation of libtool libraries that
  7151. *** depend on shared libraries, but programs linked with such libtool
  7152. *** libraries will work regardless of this problem. Nevertheless, you
  7153. *** may want to report the problem to your system manager and/or to
  7154. *** bug-libtool@gnu.org
  7155. _LT_EOF
  7156. fi ;;
  7157. esac
  7158. fi
  7159. break
  7160. fi
  7161. done
  7162. IFS=$lt_save_ifs
  7163. MAGIC_CMD=$lt_save_MAGIC_CMD
  7164. ;;
  7165. esac
  7166. fi
  7167. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7168. if test -n "$MAGIC_CMD"; then
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7170. $as_echo "$MAGIC_CMD" >&6; }
  7171. else
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7173. $as_echo "no" >&6; }
  7174. fi
  7175. else
  7176. MAGIC_CMD=:
  7177. fi
  7178. fi
  7179. fi
  7180. ;;
  7181. esac
  7182. # Use C for the default configuration in the libtool script
  7183. lt_save_CC=$CC
  7184. ac_ext=c
  7185. ac_cpp='$CPP $CPPFLAGS'
  7186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7189. # Source file extension for C test sources.
  7190. ac_ext=c
  7191. # Object file extension for compiled C test sources.
  7192. objext=o
  7193. objext=$objext
  7194. # Code to be used in simple compile tests
  7195. lt_simple_compile_test_code="int some_variable = 0;"
  7196. # Code to be used in simple link tests
  7197. lt_simple_link_test_code='int main(){return(0);}'
  7198. # If no C compiler was specified, use CC.
  7199. LTCC=${LTCC-"$CC"}
  7200. # If no C compiler flags were specified, use CFLAGS.
  7201. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7202. # Allow CC to be a program name with arguments.
  7203. compiler=$CC
  7204. # Save the default compiler, since it gets overwritten when the other
  7205. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7206. compiler_DEFAULT=$CC
  7207. # save warnings/boilerplate of simple test code
  7208. ac_outfile=conftest.$ac_objext
  7209. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7210. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7211. _lt_compiler_boilerplate=`cat conftest.err`
  7212. $RM conftest*
  7213. ac_outfile=conftest.$ac_objext
  7214. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7215. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7216. _lt_linker_boilerplate=`cat conftest.err`
  7217. $RM -r conftest*
  7218. ## CAVEAT EMPTOR:
  7219. ## There is no encapsulation within the following macros, do not change
  7220. ## the running order or otherwise move them around unless you know exactly
  7221. ## what you are doing...
  7222. if test -n "$compiler"; then
  7223. lt_prog_compiler_no_builtin_flag=
  7224. if test yes = "$GCC"; then
  7225. case $cc_basename in
  7226. nvcc*)
  7227. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7228. *)
  7229. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7230. esac
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7232. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7233. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. lt_cv_prog_compiler_rtti_exceptions=no
  7237. ac_outfile=conftest.$ac_objext
  7238. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7239. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7240. # Insert the option either (1) after the last *FLAGS variable, or
  7241. # (2) before a word containing "conftest.", or (3) at the end.
  7242. # Note that $ac_compile itself does not contain backslashes and begins
  7243. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7244. # The option is referenced via a variable to avoid confusing sed.
  7245. lt_compile=`echo "$ac_compile" | $SED \
  7246. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7247. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7248. -e 's:$: $lt_compiler_flag:'`
  7249. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7250. (eval "$lt_compile" 2>conftest.err)
  7251. ac_status=$?
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. if (exit $ac_status) && test -s "$ac_outfile"; then
  7255. # The compiler can only warn and ignore the option if not recognized
  7256. # So say no if there are warnings other than the usual output.
  7257. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7258. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7259. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7260. lt_cv_prog_compiler_rtti_exceptions=yes
  7261. fi
  7262. fi
  7263. $RM conftest*
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7266. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7267. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7268. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7269. else
  7270. :
  7271. fi
  7272. fi
  7273. lt_prog_compiler_wl=
  7274. lt_prog_compiler_pic=
  7275. lt_prog_compiler_static=
  7276. if test yes = "$GCC"; then
  7277. lt_prog_compiler_wl='-Wl,'
  7278. lt_prog_compiler_static='-static'
  7279. case $host_os in
  7280. aix*)
  7281. # All AIX code is PIC.
  7282. if test ia64 = "$host_cpu"; then
  7283. # AIX 5 now supports IA64 processor
  7284. lt_prog_compiler_static='-Bstatic'
  7285. fi
  7286. lt_prog_compiler_pic='-fPIC'
  7287. ;;
  7288. amigaos*)
  7289. case $host_cpu in
  7290. powerpc)
  7291. # see comment about AmigaOS4 .so support
  7292. lt_prog_compiler_pic='-fPIC'
  7293. ;;
  7294. m68k)
  7295. # FIXME: we need at least 68020 code to build shared libraries, but
  7296. # adding the '-m68020' flag to GCC prevents building anything better,
  7297. # like '-m68040'.
  7298. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7299. ;;
  7300. esac
  7301. ;;
  7302. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7303. # PIC is the default for these OSes.
  7304. ;;
  7305. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7306. # This hack is so that the source file can tell whether it is being
  7307. # built for inclusion in a dll (and should export symbols for example).
  7308. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7309. # (--disable-auto-import) libraries
  7310. lt_prog_compiler_pic='-DDLL_EXPORT'
  7311. case $host_os in
  7312. os2*)
  7313. lt_prog_compiler_static='$wl-static'
  7314. ;;
  7315. esac
  7316. ;;
  7317. darwin* | rhapsody*)
  7318. # PIC is the default on this platform
  7319. # Common symbols not allowed in MH_DYLIB files
  7320. lt_prog_compiler_pic='-fno-common'
  7321. ;;
  7322. haiku*)
  7323. # PIC is the default for Haiku.
  7324. # The "-static" flag exists, but is broken.
  7325. lt_prog_compiler_static=
  7326. ;;
  7327. hpux*)
  7328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7330. # sets the default TLS model and affects inlining.
  7331. case $host_cpu in
  7332. hppa*64*)
  7333. # +Z the default
  7334. ;;
  7335. *)
  7336. lt_prog_compiler_pic='-fPIC'
  7337. ;;
  7338. esac
  7339. ;;
  7340. interix[3-9]*)
  7341. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7342. # Instead, we relocate shared libraries at runtime.
  7343. ;;
  7344. msdosdjgpp*)
  7345. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7346. # on systems that don't support them.
  7347. lt_prog_compiler_can_build_shared=no
  7348. enable_shared=no
  7349. ;;
  7350. *nto* | *qnx*)
  7351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7352. # it will coredump.
  7353. lt_prog_compiler_pic='-fPIC -shared'
  7354. ;;
  7355. sysv4*MP*)
  7356. if test -d /usr/nec; then
  7357. lt_prog_compiler_pic=-Kconform_pic
  7358. fi
  7359. ;;
  7360. *)
  7361. lt_prog_compiler_pic='-fPIC'
  7362. ;;
  7363. esac
  7364. case $cc_basename in
  7365. nvcc*) # Cuda Compiler Driver 2.2
  7366. lt_prog_compiler_wl='-Xlinker '
  7367. if test -n "$lt_prog_compiler_pic"; then
  7368. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7369. fi
  7370. ;;
  7371. esac
  7372. else
  7373. # PORTME Check for flag to pass linker flags through the system compiler.
  7374. case $host_os in
  7375. aix*)
  7376. lt_prog_compiler_wl='-Wl,'
  7377. if test ia64 = "$host_cpu"; then
  7378. # AIX 5 now supports IA64 processor
  7379. lt_prog_compiler_static='-Bstatic'
  7380. else
  7381. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7382. fi
  7383. ;;
  7384. darwin* | rhapsody*)
  7385. # PIC is the default on this platform
  7386. # Common symbols not allowed in MH_DYLIB files
  7387. lt_prog_compiler_pic='-fno-common'
  7388. case $cc_basename in
  7389. nagfor*)
  7390. # NAG Fortran compiler
  7391. lt_prog_compiler_wl='-Wl,-Wl,,'
  7392. lt_prog_compiler_pic='-PIC'
  7393. lt_prog_compiler_static='-Bstatic'
  7394. ;;
  7395. esac
  7396. ;;
  7397. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7398. # This hack is so that the source file can tell whether it is being
  7399. # built for inclusion in a dll (and should export symbols for example).
  7400. lt_prog_compiler_pic='-DDLL_EXPORT'
  7401. case $host_os in
  7402. os2*)
  7403. lt_prog_compiler_static='$wl-static'
  7404. ;;
  7405. esac
  7406. ;;
  7407. hpux9* | hpux10* | hpux11*)
  7408. lt_prog_compiler_wl='-Wl,'
  7409. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7410. # not for PA HP-UX.
  7411. case $host_cpu in
  7412. hppa*64*|ia64*)
  7413. # +Z the default
  7414. ;;
  7415. *)
  7416. lt_prog_compiler_pic='+Z'
  7417. ;;
  7418. esac
  7419. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7420. lt_prog_compiler_static='$wl-a ${wl}archive'
  7421. ;;
  7422. irix5* | irix6* | nonstopux*)
  7423. lt_prog_compiler_wl='-Wl,'
  7424. # PIC (with -KPIC) is the default.
  7425. lt_prog_compiler_static='-non_shared'
  7426. ;;
  7427. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7428. case $cc_basename in
  7429. # old Intel for x86_64, which still supported -KPIC.
  7430. ecc*)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. lt_prog_compiler_pic='-KPIC'
  7433. lt_prog_compiler_static='-static'
  7434. ;;
  7435. # icc used to be incompatible with GCC.
  7436. # ICC 10 doesn't accept -KPIC any more.
  7437. icc* | ifort*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. lt_prog_compiler_pic='-fPIC'
  7440. lt_prog_compiler_static='-static'
  7441. ;;
  7442. # Lahey Fortran 8.1.
  7443. lf95*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='--shared'
  7446. lt_prog_compiler_static='--static'
  7447. ;;
  7448. nagfor*)
  7449. # NAG Fortran compiler
  7450. lt_prog_compiler_wl='-Wl,-Wl,,'
  7451. lt_prog_compiler_pic='-PIC'
  7452. lt_prog_compiler_static='-Bstatic'
  7453. ;;
  7454. tcc*)
  7455. # Fabrice Bellard et al's Tiny C Compiler
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='-fPIC'
  7458. lt_prog_compiler_static='-static'
  7459. ;;
  7460. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7461. # Portland Group compilers (*not* the Pentium gcc compiler,
  7462. # which looks to be a dead project)
  7463. lt_prog_compiler_wl='-Wl,'
  7464. lt_prog_compiler_pic='-fpic'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. ;;
  7467. ccc*)
  7468. lt_prog_compiler_wl='-Wl,'
  7469. # All Alpha code is PIC.
  7470. lt_prog_compiler_static='-non_shared'
  7471. ;;
  7472. xl* | bgxl* | bgf* | mpixl*)
  7473. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7474. lt_prog_compiler_wl='-Wl,'
  7475. lt_prog_compiler_pic='-qpic'
  7476. lt_prog_compiler_static='-qstaticlink'
  7477. ;;
  7478. *)
  7479. case `$CC -V 2>&1 | sed 5q` in
  7480. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7481. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7482. lt_prog_compiler_pic='-KPIC'
  7483. lt_prog_compiler_static='-Bstatic'
  7484. lt_prog_compiler_wl=''
  7485. ;;
  7486. *Sun\ F* | *Sun*Fortran*)
  7487. lt_prog_compiler_pic='-KPIC'
  7488. lt_prog_compiler_static='-Bstatic'
  7489. lt_prog_compiler_wl='-Qoption ld '
  7490. ;;
  7491. *Sun\ C*)
  7492. # Sun C 5.9
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. lt_prog_compiler_wl='-Wl,'
  7496. ;;
  7497. *Intel*\ [CF]*Compiler*)
  7498. lt_prog_compiler_wl='-Wl,'
  7499. lt_prog_compiler_pic='-fPIC'
  7500. lt_prog_compiler_static='-static'
  7501. ;;
  7502. *Portland\ Group*)
  7503. lt_prog_compiler_wl='-Wl,'
  7504. lt_prog_compiler_pic='-fpic'
  7505. lt_prog_compiler_static='-Bstatic'
  7506. ;;
  7507. esac
  7508. ;;
  7509. esac
  7510. ;;
  7511. newsos6)
  7512. lt_prog_compiler_pic='-KPIC'
  7513. lt_prog_compiler_static='-Bstatic'
  7514. ;;
  7515. *nto* | *qnx*)
  7516. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7517. # it will coredump.
  7518. lt_prog_compiler_pic='-fPIC -shared'
  7519. ;;
  7520. osf3* | osf4* | osf5*)
  7521. lt_prog_compiler_wl='-Wl,'
  7522. # All OSF/1 code is PIC.
  7523. lt_prog_compiler_static='-non_shared'
  7524. ;;
  7525. rdos*)
  7526. lt_prog_compiler_static='-non_shared'
  7527. ;;
  7528. solaris*)
  7529. lt_prog_compiler_pic='-KPIC'
  7530. lt_prog_compiler_static='-Bstatic'
  7531. case $cc_basename in
  7532. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7533. lt_prog_compiler_wl='-Qoption ld ';;
  7534. *)
  7535. lt_prog_compiler_wl='-Wl,';;
  7536. esac
  7537. ;;
  7538. sunos4*)
  7539. lt_prog_compiler_wl='-Qoption ld '
  7540. lt_prog_compiler_pic='-PIC'
  7541. lt_prog_compiler_static='-Bstatic'
  7542. ;;
  7543. sysv4 | sysv4.2uw2* | sysv4.3*)
  7544. lt_prog_compiler_wl='-Wl,'
  7545. lt_prog_compiler_pic='-KPIC'
  7546. lt_prog_compiler_static='-Bstatic'
  7547. ;;
  7548. sysv4*MP*)
  7549. if test -d /usr/nec; then
  7550. lt_prog_compiler_pic='-Kconform_pic'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. fi
  7553. ;;
  7554. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7555. lt_prog_compiler_wl='-Wl,'
  7556. lt_prog_compiler_pic='-KPIC'
  7557. lt_prog_compiler_static='-Bstatic'
  7558. ;;
  7559. unicos*)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_can_build_shared=no
  7562. ;;
  7563. uts4*)
  7564. lt_prog_compiler_pic='-pic'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. ;;
  7567. *)
  7568. lt_prog_compiler_can_build_shared=no
  7569. ;;
  7570. esac
  7571. fi
  7572. case $host_os in
  7573. # For platforms that do not support PIC, -DPIC is meaningless:
  7574. *djgpp*)
  7575. lt_prog_compiler_pic=
  7576. ;;
  7577. *)
  7578. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7579. ;;
  7580. esac
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7582. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7583. if ${lt_cv_prog_compiler_pic+:} false; then :
  7584. $as_echo_n "(cached) " >&6
  7585. else
  7586. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7589. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7590. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7591. #
  7592. # Check to make sure the PIC flag actually works.
  7593. #
  7594. if test -n "$lt_prog_compiler_pic"; then
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7596. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7597. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7598. $as_echo_n "(cached) " >&6
  7599. else
  7600. lt_cv_prog_compiler_pic_works=no
  7601. ac_outfile=conftest.$ac_objext
  7602. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7603. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7604. # Insert the option either (1) after the last *FLAGS variable, or
  7605. # (2) before a word containing "conftest.", or (3) at the end.
  7606. # Note that $ac_compile itself does not contain backslashes and begins
  7607. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7608. # The option is referenced via a variable to avoid confusing sed.
  7609. lt_compile=`echo "$ac_compile" | $SED \
  7610. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7611. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7612. -e 's:$: $lt_compiler_flag:'`
  7613. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7614. (eval "$lt_compile" 2>conftest.err)
  7615. ac_status=$?
  7616. cat conftest.err >&5
  7617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7618. if (exit $ac_status) && test -s "$ac_outfile"; then
  7619. # The compiler can only warn and ignore the option if not recognized
  7620. # So say no if there are warnings other than the usual output.
  7621. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7622. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7623. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7624. lt_cv_prog_compiler_pic_works=yes
  7625. fi
  7626. fi
  7627. $RM conftest*
  7628. fi
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7630. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7631. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7632. case $lt_prog_compiler_pic in
  7633. "" | " "*) ;;
  7634. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7635. esac
  7636. else
  7637. lt_prog_compiler_pic=
  7638. lt_prog_compiler_can_build_shared=no
  7639. fi
  7640. fi
  7641. #
  7642. # Check to make sure the static flag actually works.
  7643. #
  7644. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7646. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7647. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7648. $as_echo_n "(cached) " >&6
  7649. else
  7650. lt_cv_prog_compiler_static_works=no
  7651. save_LDFLAGS=$LDFLAGS
  7652. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7653. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7654. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7655. # The linker can only warn and ignore the option if not recognized
  7656. # So say no if there are warnings
  7657. if test -s conftest.err; then
  7658. # Append any errors to the config.log.
  7659. cat conftest.err 1>&5
  7660. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7661. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7662. if diff conftest.exp conftest.er2 >/dev/null; then
  7663. lt_cv_prog_compiler_static_works=yes
  7664. fi
  7665. else
  7666. lt_cv_prog_compiler_static_works=yes
  7667. fi
  7668. fi
  7669. $RM -r conftest*
  7670. LDFLAGS=$save_LDFLAGS
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7673. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7674. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7675. :
  7676. else
  7677. lt_prog_compiler_static=
  7678. fi
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7680. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7681. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. lt_cv_prog_compiler_c_o=no
  7685. $RM -r conftest 2>/dev/null
  7686. mkdir conftest
  7687. cd conftest
  7688. mkdir out
  7689. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7690. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7691. # Insert the option either (1) after the last *FLAGS variable, or
  7692. # (2) before a word containing "conftest.", or (3) at the end.
  7693. # Note that $ac_compile itself does not contain backslashes and begins
  7694. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7695. lt_compile=`echo "$ac_compile" | $SED \
  7696. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7697. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7698. -e 's:$: $lt_compiler_flag:'`
  7699. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7700. (eval "$lt_compile" 2>out/conftest.err)
  7701. ac_status=$?
  7702. cat out/conftest.err >&5
  7703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7704. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7705. then
  7706. # The compiler can only warn and ignore the option if not recognized
  7707. # So say no if there are warnings
  7708. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7709. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7710. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7711. lt_cv_prog_compiler_c_o=yes
  7712. fi
  7713. fi
  7714. chmod u+w . 2>&5
  7715. $RM conftest*
  7716. # SGI C++ compiler will create directory out/ii_files/ for
  7717. # template instantiation
  7718. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7719. $RM out/* && rmdir out
  7720. cd ..
  7721. $RM -r conftest
  7722. $RM conftest*
  7723. fi
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7725. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7727. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7728. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7729. $as_echo_n "(cached) " >&6
  7730. else
  7731. lt_cv_prog_compiler_c_o=no
  7732. $RM -r conftest 2>/dev/null
  7733. mkdir conftest
  7734. cd conftest
  7735. mkdir out
  7736. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7737. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7738. # Insert the option either (1) after the last *FLAGS variable, or
  7739. # (2) before a word containing "conftest.", or (3) at the end.
  7740. # Note that $ac_compile itself does not contain backslashes and begins
  7741. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7742. lt_compile=`echo "$ac_compile" | $SED \
  7743. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7744. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7745. -e 's:$: $lt_compiler_flag:'`
  7746. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7747. (eval "$lt_compile" 2>out/conftest.err)
  7748. ac_status=$?
  7749. cat out/conftest.err >&5
  7750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7752. then
  7753. # The compiler can only warn and ignore the option if not recognized
  7754. # So say no if there are warnings
  7755. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7756. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7757. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7758. lt_cv_prog_compiler_c_o=yes
  7759. fi
  7760. fi
  7761. chmod u+w . 2>&5
  7762. $RM conftest*
  7763. # SGI C++ compiler will create directory out/ii_files/ for
  7764. # template instantiation
  7765. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7766. $RM out/* && rmdir out
  7767. cd ..
  7768. $RM -r conftest
  7769. $RM conftest*
  7770. fi
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7772. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7773. hard_links=nottested
  7774. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7775. # do not overwrite the value of need_locks provided by the user
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7777. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7778. hard_links=yes
  7779. $RM conftest*
  7780. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7781. touch conftest.a
  7782. ln conftest.a conftest.b 2>&5 || hard_links=no
  7783. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7785. $as_echo "$hard_links" >&6; }
  7786. if test no = "$hard_links"; then
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7788. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7789. need_locks=warn
  7790. fi
  7791. else
  7792. need_locks=no
  7793. fi
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7795. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7796. runpath_var=
  7797. allow_undefined_flag=
  7798. always_export_symbols=no
  7799. archive_cmds=
  7800. archive_expsym_cmds=
  7801. compiler_needs_object=no
  7802. enable_shared_with_static_runtimes=no
  7803. export_dynamic_flag_spec=
  7804. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7805. hardcode_automatic=no
  7806. hardcode_direct=no
  7807. hardcode_direct_absolute=no
  7808. hardcode_libdir_flag_spec=
  7809. hardcode_libdir_separator=
  7810. hardcode_minus_L=no
  7811. hardcode_shlibpath_var=unsupported
  7812. inherit_rpath=no
  7813. link_all_deplibs=unknown
  7814. module_cmds=
  7815. module_expsym_cmds=
  7816. old_archive_from_new_cmds=
  7817. old_archive_from_expsyms_cmds=
  7818. thread_safe_flag_spec=
  7819. whole_archive_flag_spec=
  7820. # include_expsyms should be a list of space-separated symbols to be *always*
  7821. # included in the symbol list
  7822. include_expsyms=
  7823. # exclude_expsyms can be an extended regexp of symbols to exclude
  7824. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7825. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7826. # as well as any symbol that contains 'd'.
  7827. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7828. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7829. # platforms (ab)use it in PIC code, but their linkers get confused if
  7830. # the symbol is explicitly referenced. Since portable code cannot
  7831. # rely on this symbol name, it's probably fine to never include it in
  7832. # preloaded symbol tables.
  7833. # Exclude shared library initialization/finalization symbols.
  7834. extract_expsyms_cmds=
  7835. case $host_os in
  7836. cygwin* | mingw* | pw32* | cegcc*)
  7837. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7838. # When not using gcc, we currently assume that we are using
  7839. # Microsoft Visual C++.
  7840. if test yes != "$GCC"; then
  7841. with_gnu_ld=no
  7842. fi
  7843. ;;
  7844. interix*)
  7845. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7846. with_gnu_ld=yes
  7847. ;;
  7848. openbsd* | bitrig*)
  7849. with_gnu_ld=no
  7850. ;;
  7851. esac
  7852. ld_shlibs=yes
  7853. # On some targets, GNU ld is compatible enough with the native linker
  7854. # that we're better off using the native interface for both.
  7855. lt_use_gnu_ld_interface=no
  7856. if test yes = "$with_gnu_ld"; then
  7857. case $host_os in
  7858. aix*)
  7859. # The AIX port of GNU ld has always aspired to compatibility
  7860. # with the native linker. However, as the warning in the GNU ld
  7861. # block says, versions before 2.19.5* couldn't really create working
  7862. # shared libraries, regardless of the interface used.
  7863. case `$LD -v 2>&1` in
  7864. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7865. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7866. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7867. *)
  7868. lt_use_gnu_ld_interface=yes
  7869. ;;
  7870. esac
  7871. ;;
  7872. *)
  7873. lt_use_gnu_ld_interface=yes
  7874. ;;
  7875. esac
  7876. fi
  7877. if test yes = "$lt_use_gnu_ld_interface"; then
  7878. # If archive_cmds runs LD, not CC, wlarc should be empty
  7879. wlarc='$wl'
  7880. # Set some defaults for GNU ld with shared library support. These
  7881. # are reset later if shared libraries are not supported. Putting them
  7882. # here allows them to be overridden if necessary.
  7883. runpath_var=LD_RUN_PATH
  7884. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7885. export_dynamic_flag_spec='$wl--export-dynamic'
  7886. # ancient GNU ld didn't support --whole-archive et. al.
  7887. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7888. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7889. else
  7890. whole_archive_flag_spec=
  7891. fi
  7892. supports_anon_versioning=no
  7893. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7894. *GNU\ gold*) supports_anon_versioning=yes ;;
  7895. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7896. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7897. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7898. *\ 2.11.*) ;; # other 2.11 versions
  7899. *) supports_anon_versioning=yes ;;
  7900. esac
  7901. # See if GNU ld supports shared libraries.
  7902. case $host_os in
  7903. aix[3-9]*)
  7904. # On AIX/PPC, the GNU linker is very broken
  7905. if test ia64 != "$host_cpu"; then
  7906. ld_shlibs=no
  7907. cat <<_LT_EOF 1>&2
  7908. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7909. *** to be unable to reliably create shared libraries on AIX.
  7910. *** Therefore, libtool is disabling shared libraries support. If you
  7911. *** really care for shared libraries, you may want to install binutils
  7912. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7913. *** You will then need to restart the configuration process.
  7914. _LT_EOF
  7915. fi
  7916. ;;
  7917. amigaos*)
  7918. case $host_cpu in
  7919. powerpc)
  7920. # see comment about AmigaOS4 .so support
  7921. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7922. archive_expsym_cmds=''
  7923. ;;
  7924. m68k)
  7925. 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)'
  7926. hardcode_libdir_flag_spec='-L$libdir'
  7927. hardcode_minus_L=yes
  7928. ;;
  7929. esac
  7930. ;;
  7931. beos*)
  7932. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7933. allow_undefined_flag=unsupported
  7934. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7935. # support --undefined. This deserves some investigation. FIXME
  7936. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7937. else
  7938. ld_shlibs=no
  7939. fi
  7940. ;;
  7941. cygwin* | mingw* | pw32* | cegcc*)
  7942. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7943. # as there is no search path for DLLs.
  7944. hardcode_libdir_flag_spec='-L$libdir'
  7945. export_dynamic_flag_spec='$wl--export-all-symbols'
  7946. allow_undefined_flag=unsupported
  7947. always_export_symbols=no
  7948. enable_shared_with_static_runtimes=yes
  7949. 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'
  7950. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7951. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7952. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7953. # If the export-symbols file already is a .def file, use it as
  7954. # is; otherwise, prepend EXPORTS...
  7955. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7956. cp $export_symbols $output_objdir/$soname.def;
  7957. else
  7958. echo EXPORTS > $output_objdir/$soname.def;
  7959. cat $export_symbols >> $output_objdir/$soname.def;
  7960. fi~
  7961. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7962. else
  7963. ld_shlibs=no
  7964. fi
  7965. ;;
  7966. haiku*)
  7967. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7968. link_all_deplibs=yes
  7969. ;;
  7970. os2*)
  7971. hardcode_libdir_flag_spec='-L$libdir'
  7972. hardcode_minus_L=yes
  7973. allow_undefined_flag=unsupported
  7974. shrext_cmds=.dll
  7975. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7976. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7977. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7978. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7979. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7980. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7981. emximp -o $lib $output_objdir/$libname.def'
  7982. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7983. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7984. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7985. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7986. prefix_cmds="$SED"~
  7987. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7988. prefix_cmds="$prefix_cmds -e 1d";
  7989. fi~
  7990. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7991. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7992. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7993. emximp -o $lib $output_objdir/$libname.def'
  7994. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7995. enable_shared_with_static_runtimes=yes
  7996. file_list_spec='@'
  7997. ;;
  7998. interix[3-9]*)
  7999. hardcode_direct=no
  8000. hardcode_shlibpath_var=no
  8001. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8002. export_dynamic_flag_spec='$wl-E'
  8003. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8004. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8005. # default) and relocated if they conflict, which is a slow very memory
  8006. # consuming and fragmenting process. To avoid this, we pick a random,
  8007. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8008. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8009. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8010. 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'
  8011. ;;
  8012. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8013. tmp_diet=no
  8014. if test linux-dietlibc = "$host_os"; then
  8015. case $cc_basename in
  8016. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8017. esac
  8018. fi
  8019. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8020. && test no = "$tmp_diet"
  8021. then
  8022. tmp_addflag=' $pic_flag'
  8023. tmp_sharedflag='-shared'
  8024. case $cc_basename,$host_cpu in
  8025. pgcc*) # Portland Group C compiler
  8026. 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'
  8027. tmp_addflag=' $pic_flag'
  8028. ;;
  8029. pgf77* | pgf90* | pgf95* | pgfortran*)
  8030. # Portland Group f77 and f90 compilers
  8031. 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'
  8032. tmp_addflag=' $pic_flag -Mnomain' ;;
  8033. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8034. tmp_addflag=' -i_dynamic' ;;
  8035. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8036. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8037. ifc* | ifort*) # Intel Fortran compiler
  8038. tmp_addflag=' -nofor_main' ;;
  8039. lf95*) # Lahey Fortran 8.1
  8040. whole_archive_flag_spec=
  8041. tmp_sharedflag='--shared' ;;
  8042. nagfor*) # NAGFOR 5.3
  8043. tmp_sharedflag='-Wl,-shared' ;;
  8044. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8045. tmp_sharedflag='-qmkshrobj'
  8046. tmp_addflag= ;;
  8047. nvcc*) # Cuda Compiler Driver 2.2
  8048. 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'
  8049. compiler_needs_object=yes
  8050. ;;
  8051. esac
  8052. case `$CC -V 2>&1 | sed 5q` in
  8053. *Sun\ C*) # Sun C 5.9
  8054. 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'
  8055. compiler_needs_object=yes
  8056. tmp_sharedflag='-G' ;;
  8057. *Sun\ F*) # Sun Fortran 8.3
  8058. tmp_sharedflag='-G' ;;
  8059. esac
  8060. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8061. if test yes = "$supports_anon_versioning"; then
  8062. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8063. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8064. echo "local: *; };" >> $output_objdir/$libname.ver~
  8065. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8066. fi
  8067. case $cc_basename in
  8068. tcc*)
  8069. export_dynamic_flag_spec='-rdynamic'
  8070. ;;
  8071. xlf* | bgf* | bgxlf* | mpixlf*)
  8072. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8073. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8074. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8075. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8076. if test yes = "$supports_anon_versioning"; then
  8077. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8078. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8079. echo "local: *; };" >> $output_objdir/$libname.ver~
  8080. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8081. fi
  8082. ;;
  8083. esac
  8084. else
  8085. ld_shlibs=no
  8086. fi
  8087. ;;
  8088. netbsd*)
  8089. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8090. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8091. wlarc=
  8092. else
  8093. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8095. fi
  8096. ;;
  8097. solaris*)
  8098. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8099. ld_shlibs=no
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8102. *** create shared libraries on Solaris systems. Therefore, libtool
  8103. *** is disabling shared libraries support. We urge you to upgrade GNU
  8104. *** binutils to release 2.9.1 or newer. Another option is to modify
  8105. *** your PATH or compiler configuration so that the native linker is
  8106. *** used, and then restart.
  8107. _LT_EOF
  8108. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8109. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8110. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8111. else
  8112. ld_shlibs=no
  8113. fi
  8114. ;;
  8115. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8116. case `$LD -v 2>&1` in
  8117. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8118. ld_shlibs=no
  8119. cat <<_LT_EOF 1>&2
  8120. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8121. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8122. *** is disabling shared libraries support. We urge you to upgrade GNU
  8123. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8124. *** your PATH or compiler configuration so that the native linker is
  8125. *** used, and then restart.
  8126. _LT_EOF
  8127. ;;
  8128. *)
  8129. # For security reasons, it is highly recommended that you always
  8130. # use absolute paths for naming shared libraries, and exclude the
  8131. # DT_RUNPATH tag from executables and libraries. But doing so
  8132. # requires that you compile everything twice, which is a pain.
  8133. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8134. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8137. else
  8138. ld_shlibs=no
  8139. fi
  8140. ;;
  8141. esac
  8142. ;;
  8143. sunos4*)
  8144. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8145. wlarc=
  8146. hardcode_direct=yes
  8147. hardcode_shlibpath_var=no
  8148. ;;
  8149. *)
  8150. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8151. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8152. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8153. else
  8154. ld_shlibs=no
  8155. fi
  8156. ;;
  8157. esac
  8158. if test no = "$ld_shlibs"; then
  8159. runpath_var=
  8160. hardcode_libdir_flag_spec=
  8161. export_dynamic_flag_spec=
  8162. whole_archive_flag_spec=
  8163. fi
  8164. else
  8165. # PORTME fill in a description of your system's linker (not GNU ld)
  8166. case $host_os in
  8167. aix3*)
  8168. allow_undefined_flag=unsupported
  8169. always_export_symbols=yes
  8170. 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'
  8171. # Note: this linker hardcodes the directories in LIBPATH if there
  8172. # are no directories specified by -L.
  8173. hardcode_minus_L=yes
  8174. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8175. # Neither direct hardcoding nor static linking is supported with a
  8176. # broken collect2.
  8177. hardcode_direct=unsupported
  8178. fi
  8179. ;;
  8180. aix[4-9]*)
  8181. if test ia64 = "$host_cpu"; then
  8182. # On IA64, the linker does run time linking by default, so we don't
  8183. # have to do anything special.
  8184. aix_use_runtimelinking=no
  8185. exp_sym_flag='-Bexport'
  8186. no_entry_flag=
  8187. else
  8188. # If we're using GNU nm, then we don't want the "-C" option.
  8189. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8190. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8191. # weak defined symbols like other global defined symbols, whereas
  8192. # GNU nm marks them as "W".
  8193. # While the 'weak' keyword is ignored in the Export File, we need
  8194. # it in the Import File for the 'aix-soname' feature, so we have
  8195. # to replace the "-B" option with "-P" for AIX nm.
  8196. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8197. 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'
  8198. else
  8199. 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'
  8200. fi
  8201. aix_use_runtimelinking=no
  8202. # Test if we are trying to use run time linking or normal
  8203. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8204. # have runtime linking enabled, and use it for executables.
  8205. # For shared libraries, we enable/disable runtime linking
  8206. # depending on the kind of the shared library created -
  8207. # when "with_aix_soname,aix_use_runtimelinking" is:
  8208. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8209. # "aix,yes" lib.so shared, rtl:yes, for executables
  8210. # lib.a static archive
  8211. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8212. # lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8214. # lib.a(lib.so.V) shared, rtl:no
  8215. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8216. # lib.a static archive
  8217. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8218. for ld_flag in $LDFLAGS; do
  8219. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8220. aix_use_runtimelinking=yes
  8221. break
  8222. fi
  8223. done
  8224. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8225. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8226. # so we don't have lib.a shared libs to link our executables.
  8227. # We have to force runtime linking in this case.
  8228. aix_use_runtimelinking=yes
  8229. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8230. fi
  8231. ;;
  8232. esac
  8233. exp_sym_flag='-bexport'
  8234. no_entry_flag='-bnoentry'
  8235. fi
  8236. # When large executables or shared objects are built, AIX ld can
  8237. # have problems creating the table of contents. If linking a library
  8238. # or program results in "error TOC overflow" add -mminimal-toc to
  8239. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8240. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8241. archive_cmds=''
  8242. hardcode_direct=yes
  8243. hardcode_direct_absolute=yes
  8244. hardcode_libdir_separator=':'
  8245. link_all_deplibs=yes
  8246. file_list_spec='$wl-f,'
  8247. case $with_aix_soname,$aix_use_runtimelinking in
  8248. aix,*) ;; # traditional, no import file
  8249. svr4,* | *,yes) # use import file
  8250. # The Import File defines what to hardcode.
  8251. hardcode_direct=no
  8252. hardcode_direct_absolute=no
  8253. ;;
  8254. esac
  8255. if test yes = "$GCC"; then
  8256. case $host_os in aix4.[012]|aix4.[012].*)
  8257. # We only want to do this on AIX 4.2 and lower, the check
  8258. # below for broken collect2 doesn't work under 4.3+
  8259. collect2name=`$CC -print-prog-name=collect2`
  8260. if test -f "$collect2name" &&
  8261. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8262. then
  8263. # We have reworked collect2
  8264. :
  8265. else
  8266. # We have old collect2
  8267. hardcode_direct=unsupported
  8268. # It fails to find uninstalled libraries when the uninstalled
  8269. # path is not listed in the libpath. Setting hardcode_minus_L
  8270. # to unsupported forces relinking
  8271. hardcode_minus_L=yes
  8272. hardcode_libdir_flag_spec='-L$libdir'
  8273. hardcode_libdir_separator=
  8274. fi
  8275. ;;
  8276. esac
  8277. shared_flag='-shared'
  8278. if test yes = "$aix_use_runtimelinking"; then
  8279. shared_flag="$shared_flag "'$wl-G'
  8280. fi
  8281. # Need to ensure runtime linking is disabled for the traditional
  8282. # shared library, or the linker may eventually find shared libraries
  8283. # /with/ Import File - we do not want to mix them.
  8284. shared_flag_aix='-shared'
  8285. shared_flag_svr4='-shared $wl-G'
  8286. else
  8287. # not using gcc
  8288. if test ia64 = "$host_cpu"; then
  8289. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8290. # chokes on -Wl,-G. The following line is correct:
  8291. shared_flag='-G'
  8292. else
  8293. if test yes = "$aix_use_runtimelinking"; then
  8294. shared_flag='$wl-G'
  8295. else
  8296. shared_flag='$wl-bM:SRE'
  8297. fi
  8298. shared_flag_aix='$wl-bM:SRE'
  8299. shared_flag_svr4='$wl-G'
  8300. fi
  8301. fi
  8302. export_dynamic_flag_spec='$wl-bexpall'
  8303. # It seems that -bexpall does not export symbols beginning with
  8304. # underscore (_), so it is better to generate a list of symbols to export.
  8305. always_export_symbols=yes
  8306. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8307. # Warning - without using the other runtime loading flags (-brtl),
  8308. # -berok will link without error, but may produce a broken library.
  8309. allow_undefined_flag='-berok'
  8310. # Determine the default libpath from the value encoded in an
  8311. # empty executable.
  8312. if test set = "${lt_cv_aix_libpath+set}"; then
  8313. aix_libpath=$lt_cv_aix_libpath
  8314. else
  8315. if ${lt_cv_aix_libpath_+:} false; then :
  8316. $as_echo_n "(cached) " >&6
  8317. else
  8318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8319. /* end confdefs.h. */
  8320. int
  8321. main ()
  8322. {
  8323. ;
  8324. return 0;
  8325. }
  8326. _ACEOF
  8327. if ac_fn_c_try_link "$LINENO"; then :
  8328. lt_aix_libpath_sed='
  8329. /Import File Strings/,/^$/ {
  8330. /^0/ {
  8331. s/^0 *\([^ ]*\) *$/\1/
  8332. p
  8333. }
  8334. }'
  8335. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8336. # Check for a 64-bit object if we didn't find anything.
  8337. if test -z "$lt_cv_aix_libpath_"; then
  8338. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8339. fi
  8340. fi
  8341. rm -f core conftest.err conftest.$ac_objext \
  8342. conftest$ac_exeext conftest.$ac_ext
  8343. if test -z "$lt_cv_aix_libpath_"; then
  8344. lt_cv_aix_libpath_=/usr/lib:/lib
  8345. fi
  8346. fi
  8347. aix_libpath=$lt_cv_aix_libpath_
  8348. fi
  8349. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8350. 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
  8351. else
  8352. if test ia64 = "$host_cpu"; then
  8353. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8354. allow_undefined_flag="-z nodefs"
  8355. 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"
  8356. else
  8357. # Determine the default libpath from the value encoded in an
  8358. # empty executable.
  8359. if test set = "${lt_cv_aix_libpath+set}"; then
  8360. aix_libpath=$lt_cv_aix_libpath
  8361. else
  8362. if ${lt_cv_aix_libpath_+:} false; then :
  8363. $as_echo_n "(cached) " >&6
  8364. else
  8365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8366. /* end confdefs.h. */
  8367. int
  8368. main ()
  8369. {
  8370. ;
  8371. return 0;
  8372. }
  8373. _ACEOF
  8374. if ac_fn_c_try_link "$LINENO"; then :
  8375. lt_aix_libpath_sed='
  8376. /Import File Strings/,/^$/ {
  8377. /^0/ {
  8378. s/^0 *\([^ ]*\) *$/\1/
  8379. p
  8380. }
  8381. }'
  8382. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8383. # Check for a 64-bit object if we didn't find anything.
  8384. if test -z "$lt_cv_aix_libpath_"; then
  8385. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8386. fi
  8387. fi
  8388. rm -f core conftest.err conftest.$ac_objext \
  8389. conftest$ac_exeext conftest.$ac_ext
  8390. if test -z "$lt_cv_aix_libpath_"; then
  8391. lt_cv_aix_libpath_=/usr/lib:/lib
  8392. fi
  8393. fi
  8394. aix_libpath=$lt_cv_aix_libpath_
  8395. fi
  8396. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8397. # Warning - without using the other run time loading flags,
  8398. # -berok will link without error, but may produce a broken library.
  8399. no_undefined_flag=' $wl-bernotok'
  8400. allow_undefined_flag=' $wl-berok'
  8401. if test yes = "$with_gnu_ld"; then
  8402. # We only use this code for GNU lds that support --whole-archive.
  8403. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8404. else
  8405. # Exported symbols can be pulled into shared objects from archives
  8406. whole_archive_flag_spec='$convenience'
  8407. fi
  8408. archive_cmds_need_lc=yes
  8409. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8410. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8411. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8412. if test svr4 != "$with_aix_soname"; then
  8413. # This is similar to how AIX traditionally builds its shared libraries.
  8414. 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'
  8415. fi
  8416. if test aix != "$with_aix_soname"; then
  8417. 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'
  8418. else
  8419. # used by -dlpreopen to get the symbols
  8420. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8421. fi
  8422. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8423. fi
  8424. fi
  8425. ;;
  8426. amigaos*)
  8427. case $host_cpu in
  8428. powerpc)
  8429. # see comment about AmigaOS4 .so support
  8430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8431. archive_expsym_cmds=''
  8432. ;;
  8433. m68k)
  8434. 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)'
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_minus_L=yes
  8437. ;;
  8438. esac
  8439. ;;
  8440. bsdi[45]*)
  8441. export_dynamic_flag_spec=-rdynamic
  8442. ;;
  8443. cygwin* | mingw* | pw32* | cegcc*)
  8444. # When not using gcc, we currently assume that we are using
  8445. # Microsoft Visual C++.
  8446. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8447. # no search path for DLLs.
  8448. case $cc_basename in
  8449. cl*)
  8450. # Native MSVC
  8451. hardcode_libdir_flag_spec=' '
  8452. allow_undefined_flag=unsupported
  8453. always_export_symbols=yes
  8454. file_list_spec='@'
  8455. # Tell ltmain to make .lib files, not .a files.
  8456. libext=lib
  8457. # Tell ltmain to make .dll files, not .so files.
  8458. shrext_cmds=.dll
  8459. # FIXME: Setting linknames here is a bad hack.
  8460. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8461. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8462. cp "$export_symbols" "$output_objdir/$soname.def";
  8463. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8464. else
  8465. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8466. fi~
  8467. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8468. linknames='
  8469. # The linker will not automatically build a static lib if we build a DLL.
  8470. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8471. enable_shared_with_static_runtimes=yes
  8472. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8473. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8474. # Don't use ranlib
  8475. old_postinstall_cmds='chmod 644 $oldlib'
  8476. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8477. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8478. case $lt_outputfile in
  8479. *.exe|*.EXE) ;;
  8480. *)
  8481. lt_outputfile=$lt_outputfile.exe
  8482. lt_tool_outputfile=$lt_tool_outputfile.exe
  8483. ;;
  8484. esac~
  8485. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8486. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8487. $RM "$lt_outputfile.manifest";
  8488. fi'
  8489. ;;
  8490. *)
  8491. # Assume MSVC wrapper
  8492. hardcode_libdir_flag_spec=' '
  8493. allow_undefined_flag=unsupported
  8494. # Tell ltmain to make .lib files, not .a files.
  8495. libext=lib
  8496. # Tell ltmain to make .dll files, not .so files.
  8497. shrext_cmds=.dll
  8498. # FIXME: Setting linknames here is a bad hack.
  8499. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8500. # The linker will automatically build a .lib file if we build a DLL.
  8501. old_archive_from_new_cmds='true'
  8502. # FIXME: Should let the user specify the lib program.
  8503. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8504. enable_shared_with_static_runtimes=yes
  8505. ;;
  8506. esac
  8507. ;;
  8508. darwin* | rhapsody*)
  8509. archive_cmds_need_lc=no
  8510. hardcode_direct=no
  8511. hardcode_automatic=yes
  8512. hardcode_shlibpath_var=unsupported
  8513. if test yes = "$lt_cv_ld_force_load"; then
  8514. 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\"`'
  8515. else
  8516. whole_archive_flag_spec=''
  8517. fi
  8518. link_all_deplibs=yes
  8519. allow_undefined_flag=$_lt_dar_allow_undefined
  8520. case $cc_basename in
  8521. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8522. *) _lt_dar_can_shared=$GCC ;;
  8523. esac
  8524. if test yes = "$_lt_dar_can_shared"; then
  8525. output_verbose_link_cmd=func_echo_all
  8526. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8527. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8528. 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"
  8529. 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"
  8530. else
  8531. ld_shlibs=no
  8532. fi
  8533. ;;
  8534. dgux*)
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_libdir_flag_spec='-L$libdir'
  8537. hardcode_shlibpath_var=no
  8538. ;;
  8539. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8540. # support. Future versions do this automatically, but an explicit c++rt0.o
  8541. # does not break anything, and helps significantly (at the cost of a little
  8542. # extra space).
  8543. freebsd2.2*)
  8544. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8545. hardcode_libdir_flag_spec='-R$libdir'
  8546. hardcode_direct=yes
  8547. hardcode_shlibpath_var=no
  8548. ;;
  8549. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8550. freebsd2.*)
  8551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8552. hardcode_direct=yes
  8553. hardcode_minus_L=yes
  8554. hardcode_shlibpath_var=no
  8555. ;;
  8556. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8557. freebsd* | dragonfly* | midnightbsd*)
  8558. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8559. hardcode_libdir_flag_spec='-R$libdir'
  8560. hardcode_direct=yes
  8561. hardcode_shlibpath_var=no
  8562. ;;
  8563. hpux9*)
  8564. if test yes = "$GCC"; then
  8565. 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'
  8566. else
  8567. 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'
  8568. fi
  8569. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8570. hardcode_libdir_separator=:
  8571. hardcode_direct=yes
  8572. # hardcode_minus_L: Not really in the search PATH,
  8573. # but as the default location of the library.
  8574. hardcode_minus_L=yes
  8575. export_dynamic_flag_spec='$wl-E'
  8576. ;;
  8577. hpux10*)
  8578. if test yes,no = "$GCC,$with_gnu_ld"; then
  8579. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8582. fi
  8583. if test no = "$with_gnu_ld"; then
  8584. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8585. hardcode_libdir_separator=:
  8586. hardcode_direct=yes
  8587. hardcode_direct_absolute=yes
  8588. export_dynamic_flag_spec='$wl-E'
  8589. # hardcode_minus_L: Not really in the search PATH,
  8590. # but as the default location of the library.
  8591. hardcode_minus_L=yes
  8592. fi
  8593. ;;
  8594. hpux11*)
  8595. if test yes,no = "$GCC,$with_gnu_ld"; then
  8596. case $host_cpu in
  8597. hppa*64*)
  8598. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8599. ;;
  8600. ia64*)
  8601. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8602. ;;
  8603. *)
  8604. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8605. ;;
  8606. esac
  8607. else
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. # Older versions of the 11.00 compiler do not understand -b yet
  8617. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8619. $as_echo_n "checking if $CC understands -b... " >&6; }
  8620. if ${lt_cv_prog_compiler__b+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. lt_cv_prog_compiler__b=no
  8624. save_LDFLAGS=$LDFLAGS
  8625. LDFLAGS="$LDFLAGS -b"
  8626. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8627. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8628. # The linker can only warn and ignore the option if not recognized
  8629. # So say no if there are warnings
  8630. if test -s conftest.err; then
  8631. # Append any errors to the config.log.
  8632. cat conftest.err 1>&5
  8633. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8635. if diff conftest.exp conftest.er2 >/dev/null; then
  8636. lt_cv_prog_compiler__b=yes
  8637. fi
  8638. else
  8639. lt_cv_prog_compiler__b=yes
  8640. fi
  8641. fi
  8642. $RM -r conftest*
  8643. LDFLAGS=$save_LDFLAGS
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8646. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8647. if test yes = "$lt_cv_prog_compiler__b"; then
  8648. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8649. else
  8650. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8651. fi
  8652. ;;
  8653. esac
  8654. fi
  8655. if test no = "$with_gnu_ld"; then
  8656. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8657. hardcode_libdir_separator=:
  8658. case $host_cpu in
  8659. hppa*64*|ia64*)
  8660. hardcode_direct=no
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. *)
  8664. hardcode_direct=yes
  8665. hardcode_direct_absolute=yes
  8666. export_dynamic_flag_spec='$wl-E'
  8667. # hardcode_minus_L: Not really in the search PATH,
  8668. # but as the default location of the library.
  8669. hardcode_minus_L=yes
  8670. ;;
  8671. esac
  8672. fi
  8673. ;;
  8674. irix5* | irix6* | nonstopux*)
  8675. if test yes = "$GCC"; then
  8676. 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'
  8677. # Try to use the -exported_symbol ld option, if it does not
  8678. # work, assume that -exports_file does not work either and
  8679. # implicitly export all symbols.
  8680. # This should be the same for all languages, so no per-tag cache variable.
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8682. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8683. if ${lt_cv_irix_exported_symbol+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. save_LDFLAGS=$LDFLAGS
  8687. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8689. /* end confdefs.h. */
  8690. int foo (void) { return 0; }
  8691. _ACEOF
  8692. if ac_fn_c_try_link "$LINENO"; then :
  8693. lt_cv_irix_exported_symbol=yes
  8694. else
  8695. lt_cv_irix_exported_symbol=no
  8696. fi
  8697. rm -f core conftest.err conftest.$ac_objext \
  8698. conftest$ac_exeext conftest.$ac_ext
  8699. LDFLAGS=$save_LDFLAGS
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8702. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8703. if test yes = "$lt_cv_irix_exported_symbol"; then
  8704. 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'
  8705. fi
  8706. else
  8707. 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'
  8708. 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'
  8709. fi
  8710. archive_cmds_need_lc='no'
  8711. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8712. hardcode_libdir_separator=:
  8713. inherit_rpath=yes
  8714. link_all_deplibs=yes
  8715. ;;
  8716. linux*)
  8717. case $cc_basename in
  8718. tcc*)
  8719. # Fabrice Bellard et al's Tiny C Compiler
  8720. ld_shlibs=yes
  8721. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8722. ;;
  8723. esac
  8724. ;;
  8725. netbsd*)
  8726. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8727. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8728. else
  8729. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8730. fi
  8731. hardcode_libdir_flag_spec='-R$libdir'
  8732. hardcode_direct=yes
  8733. hardcode_shlibpath_var=no
  8734. ;;
  8735. newsos6)
  8736. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8737. hardcode_direct=yes
  8738. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8739. hardcode_libdir_separator=:
  8740. hardcode_shlibpath_var=no
  8741. ;;
  8742. *nto* | *qnx*)
  8743. ;;
  8744. openbsd* | bitrig*)
  8745. if test -f /usr/libexec/ld.so; then
  8746. hardcode_direct=yes
  8747. hardcode_shlibpath_var=no
  8748. hardcode_direct_absolute=yes
  8749. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8750. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8751. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8752. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8753. export_dynamic_flag_spec='$wl-E'
  8754. else
  8755. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. fi
  8758. else
  8759. ld_shlibs=no
  8760. fi
  8761. ;;
  8762. os2*)
  8763. hardcode_libdir_flag_spec='-L$libdir'
  8764. hardcode_minus_L=yes
  8765. allow_undefined_flag=unsupported
  8766. shrext_cmds=.dll
  8767. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8768. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8769. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8770. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8771. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8772. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8773. emximp -o $lib $output_objdir/$libname.def'
  8774. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8775. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8776. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8777. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8778. prefix_cmds="$SED"~
  8779. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8780. prefix_cmds="$prefix_cmds -e 1d";
  8781. fi~
  8782. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8783. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8784. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8785. emximp -o $lib $output_objdir/$libname.def'
  8786. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8787. enable_shared_with_static_runtimes=yes
  8788. file_list_spec='@'
  8789. ;;
  8790. osf3*)
  8791. if test yes = "$GCC"; then
  8792. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8793. 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'
  8794. else
  8795. allow_undefined_flag=' -expect_unresolved \*'
  8796. 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'
  8797. fi
  8798. archive_cmds_need_lc='no'
  8799. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8800. hardcode_libdir_separator=:
  8801. ;;
  8802. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8803. if test yes = "$GCC"; then
  8804. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8805. 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'
  8806. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8807. else
  8808. allow_undefined_flag=' -expect_unresolved \*'
  8809. 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'
  8810. 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~
  8811. $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'
  8812. # Both c and cxx compiler support -rpath directly
  8813. hardcode_libdir_flag_spec='-rpath $libdir'
  8814. fi
  8815. archive_cmds_need_lc='no'
  8816. hardcode_libdir_separator=:
  8817. ;;
  8818. solaris*)
  8819. no_undefined_flag=' -z defs'
  8820. if test yes = "$GCC"; then
  8821. wlarc='$wl'
  8822. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8824. $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'
  8825. else
  8826. case `$CC -V 2>&1` in
  8827. *"Compilers 5.0"*)
  8828. wlarc=''
  8829. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8830. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8831. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8832. ;;
  8833. *)
  8834. wlarc='$wl'
  8835. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8836. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8837. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8838. ;;
  8839. esac
  8840. fi
  8841. hardcode_libdir_flag_spec='-R$libdir'
  8842. hardcode_shlibpath_var=no
  8843. case $host_os in
  8844. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8845. *)
  8846. # The compiler driver will combine and reorder linker options,
  8847. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8848. # but is careful enough not to reorder.
  8849. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8850. if test yes = "$GCC"; then
  8851. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8852. else
  8853. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8854. fi
  8855. ;;
  8856. esac
  8857. link_all_deplibs=yes
  8858. ;;
  8859. sunos4*)
  8860. if test sequent = "$host_vendor"; then
  8861. # Use $CC to link under sequent, because it throws in some extra .o
  8862. # files that make .init and .fini sections work.
  8863. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8864. else
  8865. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8866. fi
  8867. hardcode_libdir_flag_spec='-L$libdir'
  8868. hardcode_direct=yes
  8869. hardcode_minus_L=yes
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. sysv4)
  8873. case $host_vendor in
  8874. sni)
  8875. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8876. hardcode_direct=yes # is this really true???
  8877. ;;
  8878. siemens)
  8879. ## LD is ld it makes a PLAMLIB
  8880. ## CC just makes a GrossModule.
  8881. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8882. reload_cmds='$CC -r -o $output$reload_objs'
  8883. hardcode_direct=no
  8884. ;;
  8885. motorola)
  8886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8887. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8888. ;;
  8889. esac
  8890. runpath_var='LD_RUN_PATH'
  8891. hardcode_shlibpath_var=no
  8892. ;;
  8893. sysv4.3*)
  8894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. hardcode_shlibpath_var=no
  8896. export_dynamic_flag_spec='-Bexport'
  8897. ;;
  8898. sysv4*MP*)
  8899. if test -d /usr/nec; then
  8900. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_shlibpath_var=no
  8902. runpath_var=LD_RUN_PATH
  8903. hardcode_runpath_var=yes
  8904. ld_shlibs=yes
  8905. fi
  8906. ;;
  8907. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8908. no_undefined_flag='$wl-z,text'
  8909. archive_cmds_need_lc=no
  8910. hardcode_shlibpath_var=no
  8911. runpath_var='LD_RUN_PATH'
  8912. if test yes = "$GCC"; then
  8913. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8914. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8915. else
  8916. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8917. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. fi
  8919. ;;
  8920. sysv5* | sco3.2v5* | sco5v6*)
  8921. # Note: We CANNOT use -z defs as we might desire, because we do not
  8922. # link with -lc, and that would cause any symbols used from libc to
  8923. # always be unresolved, which means just about no library would
  8924. # ever link correctly. If we're not using GNU ld we use -z text
  8925. # though, which does catch some bad symbols but isn't as heavy-handed
  8926. # as -z defs.
  8927. no_undefined_flag='$wl-z,text'
  8928. allow_undefined_flag='$wl-z,nodefs'
  8929. archive_cmds_need_lc=no
  8930. hardcode_shlibpath_var=no
  8931. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8932. hardcode_libdir_separator=':'
  8933. link_all_deplibs=yes
  8934. export_dynamic_flag_spec='$wl-Bexport'
  8935. runpath_var='LD_RUN_PATH'
  8936. if test yes = "$GCC"; then
  8937. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8938. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. else
  8940. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8941. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. fi
  8943. ;;
  8944. uts4*)
  8945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8946. hardcode_libdir_flag_spec='-L$libdir'
  8947. hardcode_shlibpath_var=no
  8948. ;;
  8949. *)
  8950. ld_shlibs=no
  8951. ;;
  8952. esac
  8953. if test sni = "$host_vendor"; then
  8954. case $host in
  8955. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8956. export_dynamic_flag_spec='$wl-Blargedynsym'
  8957. ;;
  8958. esac
  8959. fi
  8960. fi
  8961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8962. $as_echo "$ld_shlibs" >&6; }
  8963. test no = "$ld_shlibs" && can_build_shared=no
  8964. with_gnu_ld=$with_gnu_ld
  8965. #
  8966. # Do we need to explicitly link libc?
  8967. #
  8968. case "x$archive_cmds_need_lc" in
  8969. x|xyes)
  8970. # Assume -lc should be added
  8971. archive_cmds_need_lc=yes
  8972. if test yes,yes = "$GCC,$enable_shared"; then
  8973. case $archive_cmds in
  8974. *'~'*)
  8975. # FIXME: we may have to deal with multi-command sequences.
  8976. ;;
  8977. '$CC '*)
  8978. # Test whether the compiler implicitly links with -lc since on some
  8979. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8980. # to ld, don't add -lc before -lgcc.
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8982. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8983. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. $RM conftest*
  8987. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8988. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8989. (eval $ac_compile) 2>&5
  8990. ac_status=$?
  8991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8992. test $ac_status = 0; } 2>conftest.err; then
  8993. soname=conftest
  8994. lib=conftest
  8995. libobjs=conftest.$ac_objext
  8996. deplibs=
  8997. wl=$lt_prog_compiler_wl
  8998. pic_flag=$lt_prog_compiler_pic
  8999. compiler_flags=-v
  9000. linker_flags=-v
  9001. verstring=
  9002. output_objdir=.
  9003. libname=conftest
  9004. lt_save_allow_undefined_flag=$allow_undefined_flag
  9005. allow_undefined_flag=
  9006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9007. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9008. ac_status=$?
  9009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9010. test $ac_status = 0; }
  9011. then
  9012. lt_cv_archive_cmds_need_lc=no
  9013. else
  9014. lt_cv_archive_cmds_need_lc=yes
  9015. fi
  9016. allow_undefined_flag=$lt_save_allow_undefined_flag
  9017. else
  9018. cat conftest.err 1>&5
  9019. fi
  9020. $RM conftest*
  9021. fi
  9022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9023. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9024. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9025. ;;
  9026. esac
  9027. fi
  9028. ;;
  9029. esac
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9031. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9032. if test yes = "$GCC"; then
  9033. case $host_os in
  9034. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9035. *) lt_awk_arg='/^libraries:/' ;;
  9036. esac
  9037. case $host_os in
  9038. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9039. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9040. esac
  9041. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9042. case $lt_search_path_spec in
  9043. *\;*)
  9044. # if the path contains ";" then we assume it to be the separator
  9045. # otherwise default to the standard path separator (i.e. ":") - it is
  9046. # assumed that no part of a normal pathname contains ";" but that should
  9047. # okay in the real world where ";" in dirpaths is itself problematic.
  9048. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9049. ;;
  9050. *)
  9051. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9052. ;;
  9053. esac
  9054. # Ok, now we have the path, separated by spaces, we can step through it
  9055. # and add multilib dir if necessary...
  9056. lt_tmp_lt_search_path_spec=
  9057. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9058. # ...but if some path component already ends with the multilib dir we assume
  9059. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9060. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9061. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9062. lt_multi_os_dir=
  9063. ;;
  9064. esac
  9065. for lt_sys_path in $lt_search_path_spec; do
  9066. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9067. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9068. elif test -n "$lt_multi_os_dir"; then
  9069. test -d "$lt_sys_path" && \
  9070. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9071. fi
  9072. done
  9073. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9074. BEGIN {RS = " "; FS = "/|\n";} {
  9075. lt_foo = "";
  9076. lt_count = 0;
  9077. for (lt_i = NF; lt_i > 0; lt_i--) {
  9078. if ($lt_i != "" && $lt_i != ".") {
  9079. if ($lt_i == "..") {
  9080. lt_count++;
  9081. } else {
  9082. if (lt_count == 0) {
  9083. lt_foo = "/" $lt_i lt_foo;
  9084. } else {
  9085. lt_count--;
  9086. }
  9087. }
  9088. }
  9089. }
  9090. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9091. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9092. }'`
  9093. # AWK program above erroneously prepends '/' to C:/dos/paths
  9094. # for these hosts.
  9095. case $host_os in
  9096. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9097. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9098. esac
  9099. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9100. else
  9101. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9102. fi
  9103. library_names_spec=
  9104. libname_spec='lib$name'
  9105. soname_spec=
  9106. shrext_cmds=.so
  9107. postinstall_cmds=
  9108. postuninstall_cmds=
  9109. finish_cmds=
  9110. finish_eval=
  9111. shlibpath_var=
  9112. shlibpath_overrides_runpath=unknown
  9113. version_type=none
  9114. dynamic_linker="$host_os ld.so"
  9115. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9116. need_lib_prefix=unknown
  9117. hardcode_into_libs=no
  9118. # when you set need_version to no, make sure it does not cause -set_version
  9119. # flags to be left without arguments
  9120. need_version=unknown
  9121. case $host_os in
  9122. aix3*)
  9123. version_type=linux # correct to gnu/linux during the next big refactor
  9124. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9125. shlibpath_var=LIBPATH
  9126. # AIX 3 has no versioning support, so we append a major version to the name.
  9127. soname_spec='$libname$release$shared_ext$major'
  9128. ;;
  9129. aix[4-9]*)
  9130. version_type=linux # correct to gnu/linux during the next big refactor
  9131. need_lib_prefix=no
  9132. need_version=no
  9133. hardcode_into_libs=yes
  9134. if test ia64 = "$host_cpu"; then
  9135. # AIX 5 supports IA64
  9136. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. else
  9139. # With GCC up to 2.95.x, collect2 would create an import file
  9140. # for dependence libraries. The import file would start with
  9141. # the line '#! .'. This would cause the generated library to
  9142. # depend on '.', always an invalid library. This was fixed in
  9143. # development snapshots of GCC prior to 3.0.
  9144. case $host_os in
  9145. aix4 | aix4.[01] | aix4.[01].*)
  9146. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9147. echo ' yes '
  9148. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9149. :
  9150. else
  9151. can_build_shared=no
  9152. fi
  9153. ;;
  9154. esac
  9155. # Using Import Files as archive members, it is possible to support
  9156. # filename-based versioning of shared library archives on AIX. While
  9157. # this would work for both with and without runtime linking, it will
  9158. # prevent static linking of such archives. So we do filename-based
  9159. # shared library versioning with .so extension only, which is used
  9160. # when both runtime linking and shared linking is enabled.
  9161. # Unfortunately, runtime linking may impact performance, so we do
  9162. # not want this to be the default eventually. Also, we use the
  9163. # versioned .so libs for executables only if there is the -brtl
  9164. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9165. # To allow for filename-based versioning support, we need to create
  9166. # libNAME.so.V as an archive file, containing:
  9167. # *) an Import File, referring to the versioned filename of the
  9168. # archive as well as the shared archive member, telling the
  9169. # bitwidth (32 or 64) of that shared object, and providing the
  9170. # list of exported symbols of that shared object, eventually
  9171. # decorated with the 'weak' keyword
  9172. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9173. # it being seen by the linker.
  9174. # At run time we better use the real file rather than another symlink,
  9175. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9176. case $with_aix_soname,$aix_use_runtimelinking in
  9177. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9178. # soname into executable. Probably we can add versioning support to
  9179. # collect2, so additional links can be useful in future.
  9180. aix,yes) # traditional libtool
  9181. dynamic_linker='AIX unversionable lib.so'
  9182. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9183. # instead of lib<name>.a to let people know that these are not
  9184. # typical AIX shared libraries.
  9185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9186. ;;
  9187. aix,no) # traditional AIX only
  9188. dynamic_linker='AIX lib.a(lib.so.V)'
  9189. # We preserve .a as extension for shared libraries through AIX4.2
  9190. # and later when we are not doing run time linking.
  9191. library_names_spec='$libname$release.a $libname.a'
  9192. soname_spec='$libname$release$shared_ext$major'
  9193. ;;
  9194. svr4,*) # full svr4 only
  9195. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9196. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9197. # We do not specify a path in Import Files, so LIBPATH fires.
  9198. shlibpath_overrides_runpath=yes
  9199. ;;
  9200. *,yes) # both, prefer svr4
  9201. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9202. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9203. # unpreferred sharedlib libNAME.a needs extra handling
  9204. 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"'
  9205. 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"'
  9206. # We do not specify a path in Import Files, so LIBPATH fires.
  9207. shlibpath_overrides_runpath=yes
  9208. ;;
  9209. *,no) # both, prefer aix
  9210. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9211. library_names_spec='$libname$release.a $libname.a'
  9212. soname_spec='$libname$release$shared_ext$major'
  9213. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9214. 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)'
  9215. 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"'
  9216. ;;
  9217. esac
  9218. shlibpath_var=LIBPATH
  9219. fi
  9220. ;;
  9221. amigaos*)
  9222. case $host_cpu in
  9223. powerpc)
  9224. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9225. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9226. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9227. ;;
  9228. m68k)
  9229. library_names_spec='$libname.ixlibrary $libname.a'
  9230. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9231. 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'
  9232. ;;
  9233. esac
  9234. ;;
  9235. beos*)
  9236. library_names_spec='$libname$shared_ext'
  9237. dynamic_linker="$host_os ld.so"
  9238. shlibpath_var=LIBRARY_PATH
  9239. ;;
  9240. bsdi[45]*)
  9241. version_type=linux # correct to gnu/linux during the next big refactor
  9242. need_version=no
  9243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9244. soname_spec='$libname$release$shared_ext$major'
  9245. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9248. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9249. # the default ld.so.conf also contains /usr/contrib/lib and
  9250. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9251. # libtool to hard-code these into programs
  9252. ;;
  9253. cygwin* | mingw* | pw32* | cegcc*)
  9254. version_type=windows
  9255. shrext_cmds=.dll
  9256. need_version=no
  9257. need_lib_prefix=no
  9258. case $GCC,$cc_basename in
  9259. yes,*)
  9260. # gcc
  9261. library_names_spec='$libname.dll.a'
  9262. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9263. postinstall_cmds='base_file=`basename \$file`~
  9264. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9265. dldir=$destdir/`dirname \$dlpath`~
  9266. test -d \$dldir || mkdir -p \$dldir~
  9267. $install_prog $dir/$dlname \$dldir/$dlname~
  9268. chmod a+x \$dldir/$dlname~
  9269. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9270. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9271. fi'
  9272. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9273. dlpath=$dir/\$dldll~
  9274. $RM \$dlpath'
  9275. shlibpath_overrides_runpath=yes
  9276. case $host_os in
  9277. cygwin*)
  9278. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9279. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9280. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9281. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9282. ;;
  9283. mingw* | cegcc*)
  9284. # MinGW DLLs use traditional 'lib' prefix
  9285. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9286. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9287. ;;
  9288. pw32*)
  9289. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9290. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9291. ;;
  9292. esac
  9293. dynamic_linker='Win32 ld.exe'
  9294. ;;
  9295. *,cl*)
  9296. # Native MSVC
  9297. libname_spec='$name'
  9298. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9299. library_names_spec='$libname.dll.lib'
  9300. case $build_os in
  9301. mingw*)
  9302. sys_lib_search_path_spec=
  9303. lt_save_ifs=$IFS
  9304. IFS=';'
  9305. for lt_path in $LIB
  9306. do
  9307. IFS=$lt_save_ifs
  9308. # Let DOS variable expansion print the short 8.3 style file name.
  9309. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9310. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9311. done
  9312. IFS=$lt_save_ifs
  9313. # Convert to MSYS style.
  9314. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9315. ;;
  9316. cygwin*)
  9317. # Convert to unix form, then to dos form, then back to unix form
  9318. # but this time dos style (no spaces!) so that the unix form looks
  9319. # like /cygdrive/c/PROGRA~1:/cygdr...
  9320. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9321. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9322. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9323. ;;
  9324. *)
  9325. sys_lib_search_path_spec=$LIB
  9326. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9327. # It is most probably a Windows format PATH.
  9328. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9329. else
  9330. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9331. fi
  9332. # FIXME: find the short name or the path components, as spaces are
  9333. # common. (e.g. "Program Files" -> "PROGRA~1")
  9334. ;;
  9335. esac
  9336. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9337. postinstall_cmds='base_file=`basename \$file`~
  9338. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9339. dldir=$destdir/`dirname \$dlpath`~
  9340. test -d \$dldir || mkdir -p \$dldir~
  9341. $install_prog $dir/$dlname \$dldir/$dlname'
  9342. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9343. dlpath=$dir/\$dldll~
  9344. $RM \$dlpath'
  9345. shlibpath_overrides_runpath=yes
  9346. dynamic_linker='Win32 link.exe'
  9347. ;;
  9348. *)
  9349. # Assume MSVC wrapper
  9350. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9351. dynamic_linker='Win32 ld.exe'
  9352. ;;
  9353. esac
  9354. # FIXME: first we should search . and the directory the executable is in
  9355. shlibpath_var=PATH
  9356. ;;
  9357. darwin* | rhapsody*)
  9358. dynamic_linker="$host_os dyld"
  9359. version_type=darwin
  9360. need_lib_prefix=no
  9361. need_version=no
  9362. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9363. soname_spec='$libname$release$major$shared_ext'
  9364. shlibpath_overrides_runpath=yes
  9365. shlibpath_var=DYLD_LIBRARY_PATH
  9366. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9367. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9368. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9369. ;;
  9370. dgux*)
  9371. version_type=linux # correct to gnu/linux during the next big refactor
  9372. need_lib_prefix=no
  9373. need_version=no
  9374. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9375. soname_spec='$libname$release$shared_ext$major'
  9376. shlibpath_var=LD_LIBRARY_PATH
  9377. ;;
  9378. freebsd* | dragonfly* | midnightbsd*)
  9379. # DragonFly does not have aout. When/if they implement a new
  9380. # versioning mechanism, adjust this.
  9381. if test -x /usr/bin/objformat; then
  9382. objformat=`/usr/bin/objformat`
  9383. else
  9384. case $host_os in
  9385. freebsd[23].*) objformat=aout ;;
  9386. *) objformat=elf ;;
  9387. esac
  9388. fi
  9389. version_type=freebsd-$objformat
  9390. case $version_type in
  9391. freebsd-elf*)
  9392. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9393. soname_spec='$libname$release$shared_ext$major'
  9394. need_version=no
  9395. need_lib_prefix=no
  9396. ;;
  9397. freebsd-*)
  9398. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9399. need_version=yes
  9400. ;;
  9401. esac
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. case $host_os in
  9404. freebsd2.*)
  9405. shlibpath_overrides_runpath=yes
  9406. ;;
  9407. freebsd3.[01]* | freebsdelf3.[01]*)
  9408. shlibpath_overrides_runpath=yes
  9409. hardcode_into_libs=yes
  9410. ;;
  9411. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9412. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9413. shlibpath_overrides_runpath=no
  9414. hardcode_into_libs=yes
  9415. ;;
  9416. *) # from 4.6 on, and DragonFly
  9417. shlibpath_overrides_runpath=yes
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. esac
  9421. ;;
  9422. haiku*)
  9423. version_type=linux # correct to gnu/linux during the next big refactor
  9424. need_lib_prefix=no
  9425. need_version=no
  9426. dynamic_linker="$host_os runtime_loader"
  9427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9428. soname_spec='$libname$release$shared_ext$major'
  9429. shlibpath_var=LIBRARY_PATH
  9430. shlibpath_overrides_runpath=no
  9431. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9432. hardcode_into_libs=yes
  9433. ;;
  9434. hpux9* | hpux10* | hpux11*)
  9435. # Give a soname corresponding to the major version so that dld.sl refuses to
  9436. # link against other versions.
  9437. version_type=sunos
  9438. need_lib_prefix=no
  9439. need_version=no
  9440. case $host_cpu in
  9441. ia64*)
  9442. shrext_cmds='.so'
  9443. hardcode_into_libs=yes
  9444. dynamic_linker="$host_os dld.so"
  9445. shlibpath_var=LD_LIBRARY_PATH
  9446. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9447. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9448. soname_spec='$libname$release$shared_ext$major'
  9449. if test 32 = "$HPUX_IA64_MODE"; then
  9450. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9451. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9452. else
  9453. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9454. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9455. fi
  9456. ;;
  9457. hppa*64*)
  9458. shrext_cmds='.sl'
  9459. hardcode_into_libs=yes
  9460. dynamic_linker="$host_os dld.sl"
  9461. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9462. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9463. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9464. soname_spec='$libname$release$shared_ext$major'
  9465. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9467. ;;
  9468. *)
  9469. shrext_cmds='.sl'
  9470. dynamic_linker="$host_os dld.sl"
  9471. shlibpath_var=SHLIB_PATH
  9472. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9474. soname_spec='$libname$release$shared_ext$major'
  9475. ;;
  9476. esac
  9477. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9478. postinstall_cmds='chmod 555 $lib'
  9479. # or fails outright, so override atomically:
  9480. install_override_mode=555
  9481. ;;
  9482. interix[3-9]*)
  9483. version_type=linux # correct to gnu/linux during the next big refactor
  9484. need_lib_prefix=no
  9485. need_version=no
  9486. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9487. soname_spec='$libname$release$shared_ext$major'
  9488. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9489. shlibpath_var=LD_LIBRARY_PATH
  9490. shlibpath_overrides_runpath=no
  9491. hardcode_into_libs=yes
  9492. ;;
  9493. irix5* | irix6* | nonstopux*)
  9494. case $host_os in
  9495. nonstopux*) version_type=nonstopux ;;
  9496. *)
  9497. if test yes = "$lt_cv_prog_gnu_ld"; then
  9498. version_type=linux # correct to gnu/linux during the next big refactor
  9499. else
  9500. version_type=irix
  9501. fi ;;
  9502. esac
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. soname_spec='$libname$release$shared_ext$major'
  9506. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9507. case $host_os in
  9508. irix5* | nonstopux*)
  9509. libsuff= shlibsuff=
  9510. ;;
  9511. *)
  9512. case $LD in # libtool.m4 will add one of these switches to LD
  9513. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9514. libsuff= shlibsuff= libmagic=32-bit;;
  9515. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9516. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9517. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9518. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9519. *) libsuff= shlibsuff= libmagic=never-match;;
  9520. esac
  9521. ;;
  9522. esac
  9523. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9524. shlibpath_overrides_runpath=no
  9525. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9526. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9527. hardcode_into_libs=yes
  9528. ;;
  9529. # No shared lib support for Linux oldld, aout, or coff.
  9530. linux*oldld* | linux*aout* | linux*coff*)
  9531. dynamic_linker=no
  9532. ;;
  9533. linux*android*)
  9534. version_type=none # Android doesn't support versioned libraries.
  9535. need_lib_prefix=no
  9536. need_version=no
  9537. library_names_spec='$libname$release$shared_ext'
  9538. soname_spec='$libname$release$shared_ext'
  9539. finish_cmds=
  9540. shlibpath_var=LD_LIBRARY_PATH
  9541. shlibpath_overrides_runpath=yes
  9542. # This implies no fast_install, which is unacceptable.
  9543. # Some rework will be needed to allow for fast_install
  9544. # before this can be enabled.
  9545. hardcode_into_libs=yes
  9546. dynamic_linker='Android linker'
  9547. # Don't embed -rpath directories since the linker doesn't support them.
  9548. hardcode_libdir_flag_spec='-L$libdir'
  9549. ;;
  9550. # This must be glibc/ELF.
  9551. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9552. version_type=linux # correct to gnu/linux during the next big refactor
  9553. need_lib_prefix=no
  9554. need_version=no
  9555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9556. soname_spec='$libname$release$shared_ext$major'
  9557. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. shlibpath_overrides_runpath=no
  9560. # Some binutils ld are patched to set DT_RUNPATH
  9561. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. lt_cv_shlibpath_overrides_runpath=no
  9565. save_LDFLAGS=$LDFLAGS
  9566. save_libdir=$libdir
  9567. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9568. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9570. /* end confdefs.h. */
  9571. int
  9572. main ()
  9573. {
  9574. ;
  9575. return 0;
  9576. }
  9577. _ACEOF
  9578. if ac_fn_c_try_link "$LINENO"; then :
  9579. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9580. lt_cv_shlibpath_overrides_runpath=yes
  9581. fi
  9582. fi
  9583. rm -f core conftest.err conftest.$ac_objext \
  9584. conftest$ac_exeext conftest.$ac_ext
  9585. LDFLAGS=$save_LDFLAGS
  9586. libdir=$save_libdir
  9587. fi
  9588. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9589. # This implies no fast_install, which is unacceptable.
  9590. # Some rework will be needed to allow for fast_install
  9591. # before this can be enabled.
  9592. hardcode_into_libs=yes
  9593. # Add ABI-specific directories to the system library path.
  9594. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9595. # Ideally, we could use ldconfig to report *all* directores which are
  9596. # searched for libraries, however this is still not possible. Aside from not
  9597. # being certain /sbin/ldconfig is available, command
  9598. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9599. # even though it is searched at run-time. Try to do the best guess by
  9600. # appending ld.so.conf contents (and includes) to the search path.
  9601. if test -f /etc/ld.so.conf; then
  9602. 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' ' '`
  9603. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9604. fi
  9605. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9606. # powerpc, because MkLinux only supported shared libraries with the
  9607. # GNU dynamic linker. Since this was broken with cross compilers,
  9608. # most powerpc-linux boxes support dynamic linking these days and
  9609. # people can always --disable-shared, the test was removed, and we
  9610. # assume the GNU/Linux dynamic linker is in use.
  9611. dynamic_linker='GNU/Linux ld.so'
  9612. ;;
  9613. netbsd*)
  9614. version_type=sunos
  9615. need_lib_prefix=no
  9616. need_version=no
  9617. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9618. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9619. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9620. dynamic_linker='NetBSD (a.out) ld.so'
  9621. else
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9623. soname_spec='$libname$release$shared_ext$major'
  9624. dynamic_linker='NetBSD ld.elf_so'
  9625. fi
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=yes
  9628. hardcode_into_libs=yes
  9629. ;;
  9630. newsos6)
  9631. version_type=linux # correct to gnu/linux during the next big refactor
  9632. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9633. shlibpath_var=LD_LIBRARY_PATH
  9634. shlibpath_overrides_runpath=yes
  9635. ;;
  9636. *nto* | *qnx*)
  9637. version_type=qnx
  9638. need_lib_prefix=no
  9639. need_version=no
  9640. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9641. soname_spec='$libname$release$shared_ext$major'
  9642. shlibpath_var=LD_LIBRARY_PATH
  9643. shlibpath_overrides_runpath=no
  9644. hardcode_into_libs=yes
  9645. dynamic_linker='ldqnx.so'
  9646. ;;
  9647. openbsd* | bitrig*)
  9648. version_type=sunos
  9649. sys_lib_dlsearch_path_spec=/usr/lib
  9650. need_lib_prefix=no
  9651. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9652. need_version=no
  9653. else
  9654. need_version=yes
  9655. fi
  9656. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9657. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. shlibpath_overrides_runpath=yes
  9660. ;;
  9661. os2*)
  9662. libname_spec='$name'
  9663. shrext_cmds=.dll
  9664. need_lib_prefix=no
  9665. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9666. # SDL customization: removed versioning support.
  9667. # version_type=windows
  9668. # need_version=no
  9669. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9670. # v=$($ECHO $release$versuffix | tr -d .-);
  9671. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9672. # $ECHO $n$v`$shared_ext'
  9673. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9674. library_names_spec='${libname}_dll.$libext'
  9675. dynamic_linker='OS/2 ld.exe'
  9676. shlibpath_var=BEGINLIBPATH
  9677. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9678. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9679. postinstall_cmds='base_file=`basename \$file`~
  9680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9681. dldir=$destdir/`dirname \$dlpath`~
  9682. test -d \$dldir || mkdir -p \$dldir~
  9683. $install_prog $dir/$dlname \$dldir/$dlname~
  9684. chmod a+x \$dldir/$dlname~
  9685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9687. fi'
  9688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9689. dlpath=$dir/\$dldll~
  9690. $RM \$dlpath'
  9691. ;;
  9692. osf3* | osf4* | osf5*)
  9693. version_type=osf
  9694. need_lib_prefix=no
  9695. need_version=no
  9696. soname_spec='$libname$release$shared_ext$major'
  9697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9700. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9701. ;;
  9702. rdos*)
  9703. dynamic_linker=no
  9704. ;;
  9705. solaris*)
  9706. version_type=linux # correct to gnu/linux during the next big refactor
  9707. need_lib_prefix=no
  9708. need_version=no
  9709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9710. soname_spec='$libname$release$shared_ext$major'
  9711. shlibpath_var=LD_LIBRARY_PATH
  9712. shlibpath_overrides_runpath=yes
  9713. hardcode_into_libs=yes
  9714. # ldd complains unless libraries are executable
  9715. postinstall_cmds='chmod +x $lib'
  9716. ;;
  9717. sunos4*)
  9718. version_type=sunos
  9719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9720. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9721. shlibpath_var=LD_LIBRARY_PATH
  9722. shlibpath_overrides_runpath=yes
  9723. if test yes = "$with_gnu_ld"; then
  9724. need_lib_prefix=no
  9725. fi
  9726. need_version=yes
  9727. ;;
  9728. sysv4 | sysv4.3*)
  9729. version_type=linux # correct to gnu/linux during the next big refactor
  9730. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9731. soname_spec='$libname$release$shared_ext$major'
  9732. shlibpath_var=LD_LIBRARY_PATH
  9733. case $host_vendor in
  9734. sni)
  9735. shlibpath_overrides_runpath=no
  9736. need_lib_prefix=no
  9737. runpath_var=LD_RUN_PATH
  9738. ;;
  9739. siemens)
  9740. need_lib_prefix=no
  9741. ;;
  9742. motorola)
  9743. need_lib_prefix=no
  9744. need_version=no
  9745. shlibpath_overrides_runpath=no
  9746. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9747. ;;
  9748. esac
  9749. ;;
  9750. sysv4*MP*)
  9751. if test -d /usr/nec; then
  9752. version_type=linux # correct to gnu/linux during the next big refactor
  9753. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9754. soname_spec='$libname$shared_ext.$major'
  9755. shlibpath_var=LD_LIBRARY_PATH
  9756. fi
  9757. ;;
  9758. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9759. version_type=sco
  9760. need_lib_prefix=no
  9761. need_version=no
  9762. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9763. soname_spec='$libname$release$shared_ext$major'
  9764. shlibpath_var=LD_LIBRARY_PATH
  9765. shlibpath_overrides_runpath=yes
  9766. hardcode_into_libs=yes
  9767. if test yes = "$with_gnu_ld"; then
  9768. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9769. else
  9770. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9771. case $host_os in
  9772. sco3.2v5*)
  9773. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9774. ;;
  9775. esac
  9776. fi
  9777. sys_lib_dlsearch_path_spec='/usr/lib'
  9778. ;;
  9779. tpf*)
  9780. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9781. version_type=linux # correct to gnu/linux during the next big refactor
  9782. need_lib_prefix=no
  9783. need_version=no
  9784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9785. shlibpath_var=LD_LIBRARY_PATH
  9786. shlibpath_overrides_runpath=no
  9787. hardcode_into_libs=yes
  9788. ;;
  9789. uts4*)
  9790. version_type=linux # correct to gnu/linux during the next big refactor
  9791. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9792. soname_spec='$libname$release$shared_ext$major'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. ;;
  9795. *)
  9796. dynamic_linker=no
  9797. ;;
  9798. esac
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9800. $as_echo "$dynamic_linker" >&6; }
  9801. test no = "$dynamic_linker" && can_build_shared=no
  9802. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9803. if test yes = "$GCC"; then
  9804. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9805. fi
  9806. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9807. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9808. fi
  9809. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9810. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9811. fi
  9812. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9813. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9814. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9815. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9816. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9817. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9819. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9820. hardcode_action=
  9821. if test -n "$hardcode_libdir_flag_spec" ||
  9822. test -n "$runpath_var" ||
  9823. test yes = "$hardcode_automatic"; then
  9824. # We can hardcode non-existent directories.
  9825. if test no != "$hardcode_direct" &&
  9826. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9827. # have to relink, otherwise we might link with an installed library
  9828. # when we should be linking with a yet-to-be-installed one
  9829. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9830. test no != "$hardcode_minus_L"; then
  9831. # Linking always hardcodes the temporary library directory.
  9832. hardcode_action=relink
  9833. else
  9834. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9835. hardcode_action=immediate
  9836. fi
  9837. else
  9838. # We cannot hardcode anything, or else we can only hardcode existing
  9839. # directories.
  9840. hardcode_action=unsupported
  9841. fi
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9843. $as_echo "$hardcode_action" >&6; }
  9844. if test relink = "$hardcode_action" ||
  9845. test yes = "$inherit_rpath"; then
  9846. # Fast installation is not supported
  9847. enable_fast_install=no
  9848. elif test yes = "$shlibpath_overrides_runpath" ||
  9849. test no = "$enable_shared"; then
  9850. # Fast installation is not necessary
  9851. enable_fast_install=needless
  9852. fi
  9853. if test yes != "$enable_dlopen"; then
  9854. enable_dlopen=unknown
  9855. enable_dlopen_self=unknown
  9856. enable_dlopen_self_static=unknown
  9857. else
  9858. lt_cv_dlopen=no
  9859. lt_cv_dlopen_libs=
  9860. case $host_os in
  9861. beos*)
  9862. lt_cv_dlopen=load_add_on
  9863. lt_cv_dlopen_libs=
  9864. lt_cv_dlopen_self=yes
  9865. ;;
  9866. mingw* | pw32* | cegcc*)
  9867. lt_cv_dlopen=LoadLibrary
  9868. lt_cv_dlopen_libs=
  9869. ;;
  9870. cygwin*)
  9871. lt_cv_dlopen=dlopen
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. darwin*)
  9875. # if libdl is installed we need to link against it
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9877. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9878. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9879. $as_echo_n "(cached) " >&6
  9880. else
  9881. ac_check_lib_save_LIBS=$LIBS
  9882. LIBS="-ldl $LIBS"
  9883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9884. /* end confdefs.h. */
  9885. /* Override any GCC internal prototype to avoid an error.
  9886. Use char because int might match the return type of a GCC
  9887. builtin and then its argument prototype would still apply. */
  9888. #ifdef __cplusplus
  9889. extern "C"
  9890. #endif
  9891. char dlopen ();
  9892. int
  9893. main ()
  9894. {
  9895. return dlopen ();
  9896. ;
  9897. return 0;
  9898. }
  9899. _ACEOF
  9900. if ac_fn_c_try_link "$LINENO"; then :
  9901. ac_cv_lib_dl_dlopen=yes
  9902. else
  9903. ac_cv_lib_dl_dlopen=no
  9904. fi
  9905. rm -f core conftest.err conftest.$ac_objext \
  9906. conftest$ac_exeext conftest.$ac_ext
  9907. LIBS=$ac_check_lib_save_LIBS
  9908. fi
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9910. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9911. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9912. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9913. else
  9914. lt_cv_dlopen=dyld
  9915. lt_cv_dlopen_libs=
  9916. lt_cv_dlopen_self=yes
  9917. fi
  9918. ;;
  9919. tpf*)
  9920. # Don't try to run any link tests for TPF. We know it's impossible
  9921. # because TPF is a cross-compiler, and we know how we open DSOs.
  9922. lt_cv_dlopen=dlopen
  9923. lt_cv_dlopen_libs=
  9924. lt_cv_dlopen_self=no
  9925. ;;
  9926. *)
  9927. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9928. if test "x$ac_cv_func_shl_load" = xyes; then :
  9929. lt_cv_dlopen=shl_load
  9930. else
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9932. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9933. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. ac_check_lib_save_LIBS=$LIBS
  9937. LIBS="-ldld $LIBS"
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. /* Override any GCC internal prototype to avoid an error.
  9941. Use char because int might match the return type of a GCC
  9942. builtin and then its argument prototype would still apply. */
  9943. #ifdef __cplusplus
  9944. extern "C"
  9945. #endif
  9946. char shl_load ();
  9947. int
  9948. main ()
  9949. {
  9950. return shl_load ();
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. if ac_fn_c_try_link "$LINENO"; then :
  9956. ac_cv_lib_dld_shl_load=yes
  9957. else
  9958. ac_cv_lib_dld_shl_load=no
  9959. fi
  9960. rm -f core conftest.err conftest.$ac_objext \
  9961. conftest$ac_exeext conftest.$ac_ext
  9962. LIBS=$ac_check_lib_save_LIBS
  9963. fi
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9965. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9966. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9967. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9968. else
  9969. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9970. if test "x$ac_cv_func_dlopen" = xyes; then :
  9971. lt_cv_dlopen=dlopen
  9972. else
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9974. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9975. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. ac_check_lib_save_LIBS=$LIBS
  9979. LIBS="-ldl $LIBS"
  9980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9981. /* end confdefs.h. */
  9982. /* Override any GCC internal prototype to avoid an error.
  9983. Use char because int might match the return type of a GCC
  9984. builtin and then its argument prototype would still apply. */
  9985. #ifdef __cplusplus
  9986. extern "C"
  9987. #endif
  9988. char dlopen ();
  9989. int
  9990. main ()
  9991. {
  9992. return dlopen ();
  9993. ;
  9994. return 0;
  9995. }
  9996. _ACEOF
  9997. if ac_fn_c_try_link "$LINENO"; then :
  9998. ac_cv_lib_dl_dlopen=yes
  9999. else
  10000. ac_cv_lib_dl_dlopen=no
  10001. fi
  10002. rm -f core conftest.err conftest.$ac_objext \
  10003. conftest$ac_exeext conftest.$ac_ext
  10004. LIBS=$ac_check_lib_save_LIBS
  10005. fi
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10007. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10008. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10009. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10010. else
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10012. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10013. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10014. $as_echo_n "(cached) " >&6
  10015. else
  10016. ac_check_lib_save_LIBS=$LIBS
  10017. LIBS="-lsvld $LIBS"
  10018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10019. /* end confdefs.h. */
  10020. /* Override any GCC internal prototype to avoid an error.
  10021. Use char because int might match the return type of a GCC
  10022. builtin and then its argument prototype would still apply. */
  10023. #ifdef __cplusplus
  10024. extern "C"
  10025. #endif
  10026. char dlopen ();
  10027. int
  10028. main ()
  10029. {
  10030. return dlopen ();
  10031. ;
  10032. return 0;
  10033. }
  10034. _ACEOF
  10035. if ac_fn_c_try_link "$LINENO"; then :
  10036. ac_cv_lib_svld_dlopen=yes
  10037. else
  10038. ac_cv_lib_svld_dlopen=no
  10039. fi
  10040. rm -f core conftest.err conftest.$ac_objext \
  10041. conftest$ac_exeext conftest.$ac_ext
  10042. LIBS=$ac_check_lib_save_LIBS
  10043. fi
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10045. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10046. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10047. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10048. else
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10050. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10051. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10052. $as_echo_n "(cached) " >&6
  10053. else
  10054. ac_check_lib_save_LIBS=$LIBS
  10055. LIBS="-ldld $LIBS"
  10056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10057. /* end confdefs.h. */
  10058. /* Override any GCC internal prototype to avoid an error.
  10059. Use char because int might match the return type of a GCC
  10060. builtin and then its argument prototype would still apply. */
  10061. #ifdef __cplusplus
  10062. extern "C"
  10063. #endif
  10064. char dld_link ();
  10065. int
  10066. main ()
  10067. {
  10068. return dld_link ();
  10069. ;
  10070. return 0;
  10071. }
  10072. _ACEOF
  10073. if ac_fn_c_try_link "$LINENO"; then :
  10074. ac_cv_lib_dld_dld_link=yes
  10075. else
  10076. ac_cv_lib_dld_dld_link=no
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext \
  10079. conftest$ac_exeext conftest.$ac_ext
  10080. LIBS=$ac_check_lib_save_LIBS
  10081. fi
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10083. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10084. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10085. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10086. fi
  10087. fi
  10088. fi
  10089. fi
  10090. fi
  10091. fi
  10092. ;;
  10093. esac
  10094. if test no = "$lt_cv_dlopen"; then
  10095. enable_dlopen=no
  10096. else
  10097. enable_dlopen=yes
  10098. fi
  10099. case $lt_cv_dlopen in
  10100. dlopen)
  10101. save_CPPFLAGS=$CPPFLAGS
  10102. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10103. save_LDFLAGS=$LDFLAGS
  10104. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10105. save_LIBS=$LIBS
  10106. LIBS="$lt_cv_dlopen_libs $LIBS"
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10108. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10109. if ${lt_cv_dlopen_self+:} false; then :
  10110. $as_echo_n "(cached) " >&6
  10111. else
  10112. if test yes = "$cross_compiling"; then :
  10113. lt_cv_dlopen_self=cross
  10114. else
  10115. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10116. lt_status=$lt_dlunknown
  10117. cat > conftest.$ac_ext <<_LT_EOF
  10118. #line $LINENO "configure"
  10119. #include "confdefs.h"
  10120. #if HAVE_DLFCN_H
  10121. #include <dlfcn.h>
  10122. #endif
  10123. #include <stdio.h>
  10124. #ifdef RTLD_GLOBAL
  10125. # define LT_DLGLOBAL RTLD_GLOBAL
  10126. #else
  10127. # ifdef DL_GLOBAL
  10128. # define LT_DLGLOBAL DL_GLOBAL
  10129. # else
  10130. # define LT_DLGLOBAL 0
  10131. # endif
  10132. #endif
  10133. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10134. find out it does not work in some platform. */
  10135. #ifndef LT_DLLAZY_OR_NOW
  10136. # ifdef RTLD_LAZY
  10137. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10138. # else
  10139. # ifdef DL_LAZY
  10140. # define LT_DLLAZY_OR_NOW DL_LAZY
  10141. # else
  10142. # ifdef RTLD_NOW
  10143. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10144. # else
  10145. # ifdef DL_NOW
  10146. # define LT_DLLAZY_OR_NOW DL_NOW
  10147. # else
  10148. # define LT_DLLAZY_OR_NOW 0
  10149. # endif
  10150. # endif
  10151. # endif
  10152. # endif
  10153. #endif
  10154. /* When -fvisibility=hidden is used, assume the code has been annotated
  10155. correspondingly for the symbols needed. */
  10156. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10157. int fnord () __attribute__((visibility("default")));
  10158. #endif
  10159. int fnord () { return 42; }
  10160. int main ()
  10161. {
  10162. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10163. int status = $lt_dlunknown;
  10164. if (self)
  10165. {
  10166. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10167. else
  10168. {
  10169. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10170. else puts (dlerror ());
  10171. }
  10172. /* dlclose (self); */
  10173. }
  10174. else
  10175. puts (dlerror ());
  10176. return status;
  10177. }
  10178. _LT_EOF
  10179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10180. (eval $ac_link) 2>&5
  10181. ac_status=$?
  10182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10183. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10184. (./conftest; exit; ) >&5 2>/dev/null
  10185. lt_status=$?
  10186. case x$lt_status in
  10187. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10188. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10189. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10190. esac
  10191. else :
  10192. # compilation failed
  10193. lt_cv_dlopen_self=no
  10194. fi
  10195. fi
  10196. rm -fr conftest*
  10197. fi
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10199. $as_echo "$lt_cv_dlopen_self" >&6; }
  10200. if test yes = "$lt_cv_dlopen_self"; then
  10201. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10203. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10204. if ${lt_cv_dlopen_self_static+:} false; then :
  10205. $as_echo_n "(cached) " >&6
  10206. else
  10207. if test yes = "$cross_compiling"; then :
  10208. lt_cv_dlopen_self_static=cross
  10209. else
  10210. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10211. lt_status=$lt_dlunknown
  10212. cat > conftest.$ac_ext <<_LT_EOF
  10213. #line $LINENO "configure"
  10214. #include "confdefs.h"
  10215. #if HAVE_DLFCN_H
  10216. #include <dlfcn.h>
  10217. #endif
  10218. #include <stdio.h>
  10219. #ifdef RTLD_GLOBAL
  10220. # define LT_DLGLOBAL RTLD_GLOBAL
  10221. #else
  10222. # ifdef DL_GLOBAL
  10223. # define LT_DLGLOBAL DL_GLOBAL
  10224. # else
  10225. # define LT_DLGLOBAL 0
  10226. # endif
  10227. #endif
  10228. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10229. find out it does not work in some platform. */
  10230. #ifndef LT_DLLAZY_OR_NOW
  10231. # ifdef RTLD_LAZY
  10232. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10233. # else
  10234. # ifdef DL_LAZY
  10235. # define LT_DLLAZY_OR_NOW DL_LAZY
  10236. # else
  10237. # ifdef RTLD_NOW
  10238. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10239. # else
  10240. # ifdef DL_NOW
  10241. # define LT_DLLAZY_OR_NOW DL_NOW
  10242. # else
  10243. # define LT_DLLAZY_OR_NOW 0
  10244. # endif
  10245. # endif
  10246. # endif
  10247. # endif
  10248. #endif
  10249. /* When -fvisibility=hidden is used, assume the code has been annotated
  10250. correspondingly for the symbols needed. */
  10251. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10252. int fnord () __attribute__((visibility("default")));
  10253. #endif
  10254. int fnord () { return 42; }
  10255. int main ()
  10256. {
  10257. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10258. int status = $lt_dlunknown;
  10259. if (self)
  10260. {
  10261. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10262. else
  10263. {
  10264. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10265. else puts (dlerror ());
  10266. }
  10267. /* dlclose (self); */
  10268. }
  10269. else
  10270. puts (dlerror ());
  10271. return status;
  10272. }
  10273. _LT_EOF
  10274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10275. (eval $ac_link) 2>&5
  10276. ac_status=$?
  10277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10278. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10279. (./conftest; exit; ) >&5 2>/dev/null
  10280. lt_status=$?
  10281. case x$lt_status in
  10282. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10283. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10284. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10285. esac
  10286. else :
  10287. # compilation failed
  10288. lt_cv_dlopen_self_static=no
  10289. fi
  10290. fi
  10291. rm -fr conftest*
  10292. fi
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10294. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10295. fi
  10296. CPPFLAGS=$save_CPPFLAGS
  10297. LDFLAGS=$save_LDFLAGS
  10298. LIBS=$save_LIBS
  10299. ;;
  10300. esac
  10301. case $lt_cv_dlopen_self in
  10302. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10303. *) enable_dlopen_self=unknown ;;
  10304. esac
  10305. case $lt_cv_dlopen_self_static in
  10306. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10307. *) enable_dlopen_self_static=unknown ;;
  10308. esac
  10309. fi
  10310. striplib=
  10311. old_striplib=
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10313. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10314. if test -z "$STRIP"; then
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317. else
  10318. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10319. old_striplib="$STRIP --strip-debug"
  10320. striplib="$STRIP --strip-unneeded"
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10322. $as_echo "yes" >&6; }
  10323. else
  10324. case $host_os in
  10325. darwin*)
  10326. # FIXME - insert some real tests, host_os isn't really good enough
  10327. striplib="$STRIP -x"
  10328. old_striplib="$STRIP -S"
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10330. $as_echo "yes" >&6; }
  10331. ;;
  10332. freebsd*)
  10333. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10334. old_striplib="$STRIP --strip-debug"
  10335. striplib="$STRIP --strip-unneeded"
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10337. $as_echo "yes" >&6; }
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10340. $as_echo "no" >&6; }
  10341. fi
  10342. ;;
  10343. *)
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. ;;
  10347. esac
  10348. fi
  10349. fi
  10350. # Report what library types will actually be built
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10352. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10354. $as_echo "$can_build_shared" >&6; }
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10356. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10357. test no = "$can_build_shared" && enable_shared=no
  10358. # On AIX, shared libraries and static libraries use the same namespace, and
  10359. # are all built from PIC.
  10360. case $host_os in
  10361. aix3*)
  10362. test yes = "$enable_shared" && enable_static=no
  10363. if test -n "$RANLIB"; then
  10364. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10365. postinstall_cmds='$RANLIB $lib'
  10366. fi
  10367. ;;
  10368. aix[4-9]*)
  10369. if test ia64 != "$host_cpu"; then
  10370. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10371. yes,aix,yes) ;; # shared object as lib.so file only
  10372. yes,svr4,*) ;; # shared object as lib.so archive member only
  10373. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10374. esac
  10375. fi
  10376. ;;
  10377. esac
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10379. $as_echo "$enable_shared" >&6; }
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10381. $as_echo_n "checking whether to build static libraries... " >&6; }
  10382. # Make sure either enable_shared or enable_static is yes.
  10383. test yes = "$enable_shared" || enable_static=yes
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10385. $as_echo "$enable_static" >&6; }
  10386. fi
  10387. ac_ext=c
  10388. ac_cpp='$CPP $CPPFLAGS'
  10389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10392. CC=$lt_save_CC
  10393. ac_config_commands="$ac_config_commands libtool"
  10394. # Only expand once:
  10395. if test -n "$ac_tool_prefix"; then
  10396. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10397. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10399. $as_echo_n "checking for $ac_word... " >&6; }
  10400. if ${ac_cv_prog_RC+:} false; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. if test -n "$RC"; then
  10404. ac_cv_prog_RC="$RC" # Let the user override the test.
  10405. else
  10406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10407. for as_dir in $PATH
  10408. do
  10409. IFS=$as_save_IFS
  10410. test -z "$as_dir" && as_dir=.
  10411. for ac_exec_ext in '' $ac_executable_extensions; do
  10412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10413. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10415. break 2
  10416. fi
  10417. done
  10418. done
  10419. IFS=$as_save_IFS
  10420. fi
  10421. fi
  10422. RC=$ac_cv_prog_RC
  10423. if test -n "$RC"; then
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10425. $as_echo "$RC" >&6; }
  10426. else
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10428. $as_echo "no" >&6; }
  10429. fi
  10430. fi
  10431. if test -z "$ac_cv_prog_RC"; then
  10432. ac_ct_RC=$RC
  10433. # Extract the first word of "windres", so it can be a program name with args.
  10434. set dummy windres; ac_word=$2
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10436. $as_echo_n "checking for $ac_word... " >&6; }
  10437. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. if test -n "$ac_ct_RC"; then
  10441. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10442. else
  10443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10444. for as_dir in $PATH
  10445. do
  10446. IFS=$as_save_IFS
  10447. test -z "$as_dir" && as_dir=.
  10448. for ac_exec_ext in '' $ac_executable_extensions; do
  10449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10450. ac_cv_prog_ac_ct_RC="windres"
  10451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10452. break 2
  10453. fi
  10454. done
  10455. done
  10456. IFS=$as_save_IFS
  10457. fi
  10458. fi
  10459. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10460. if test -n "$ac_ct_RC"; then
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10462. $as_echo "$ac_ct_RC" >&6; }
  10463. else
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10465. $as_echo "no" >&6; }
  10466. fi
  10467. if test "x$ac_ct_RC" = x; then
  10468. RC=""
  10469. else
  10470. case $cross_compiling:$ac_tool_warned in
  10471. yes:)
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10473. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10474. ac_tool_warned=yes ;;
  10475. esac
  10476. RC=$ac_ct_RC
  10477. fi
  10478. else
  10479. RC="$ac_cv_prog_RC"
  10480. fi
  10481. # Source file extension for RC test sources.
  10482. ac_ext=rc
  10483. # Object file extension for compiled RC test sources.
  10484. objext=o
  10485. objext_RC=$objext
  10486. # Code to be used in simple compile tests
  10487. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10488. # Code to be used in simple link tests
  10489. lt_simple_link_test_code=$lt_simple_compile_test_code
  10490. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10491. # If no C compiler was specified, use CC.
  10492. LTCC=${LTCC-"$CC"}
  10493. # If no C compiler flags were specified, use CFLAGS.
  10494. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10495. # Allow CC to be a program name with arguments.
  10496. compiler=$CC
  10497. # save warnings/boilerplate of simple test code
  10498. ac_outfile=conftest.$ac_objext
  10499. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10500. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10501. _lt_compiler_boilerplate=`cat conftest.err`
  10502. $RM conftest*
  10503. ac_outfile=conftest.$ac_objext
  10504. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10505. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10506. _lt_linker_boilerplate=`cat conftest.err`
  10507. $RM -r conftest*
  10508. # Allow CC to be a program name with arguments.
  10509. lt_save_CC=$CC
  10510. lt_save_CFLAGS=$CFLAGS
  10511. lt_save_GCC=$GCC
  10512. GCC=
  10513. CC=${RC-"windres"}
  10514. CFLAGS=
  10515. compiler=$CC
  10516. compiler_RC=$CC
  10517. func_cc_basename $compiler
  10518. cc_basename=$func_cc_basename_result
  10519. lt_cv_prog_compiler_c_o_RC=yes
  10520. if test -n "$compiler"; then
  10521. :
  10522. fi
  10523. GCC=$lt_save_GCC
  10524. ac_ext=c
  10525. ac_cpp='$CPP $CPPFLAGS'
  10526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10529. CC=$lt_save_CC
  10530. CFLAGS=$lt_save_CFLAGS
  10531. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10532. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10533. LT_REVISION=$SDL_INTERFACE_AGE
  10534. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10535. ac_ext=c
  10536. ac_cpp='$CPP $CPPFLAGS'
  10537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10540. if test -n "$ac_tool_prefix"; then
  10541. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10542. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10544. $as_echo_n "checking for $ac_word... " >&6; }
  10545. if ${ac_cv_prog_CC+:} false; then :
  10546. $as_echo_n "(cached) " >&6
  10547. else
  10548. if test -n "$CC"; then
  10549. ac_cv_prog_CC="$CC" # Let the user override the test.
  10550. else
  10551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10552. for as_dir in $PATH
  10553. do
  10554. IFS=$as_save_IFS
  10555. test -z "$as_dir" && as_dir=.
  10556. for ac_exec_ext in '' $ac_executable_extensions; do
  10557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10558. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10560. break 2
  10561. fi
  10562. done
  10563. done
  10564. IFS=$as_save_IFS
  10565. fi
  10566. fi
  10567. CC=$ac_cv_prog_CC
  10568. if test -n "$CC"; then
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10570. $as_echo "$CC" >&6; }
  10571. else
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10573. $as_echo "no" >&6; }
  10574. fi
  10575. fi
  10576. if test -z "$ac_cv_prog_CC"; then
  10577. ac_ct_CC=$CC
  10578. # Extract the first word of "gcc", so it can be a program name with args.
  10579. set dummy gcc; ac_word=$2
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10581. $as_echo_n "checking for $ac_word... " >&6; }
  10582. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10583. $as_echo_n "(cached) " >&6
  10584. else
  10585. if test -n "$ac_ct_CC"; then
  10586. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10587. else
  10588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10589. for as_dir in $PATH
  10590. do
  10591. IFS=$as_save_IFS
  10592. test -z "$as_dir" && as_dir=.
  10593. for ac_exec_ext in '' $ac_executable_extensions; do
  10594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10595. ac_cv_prog_ac_ct_CC="gcc"
  10596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10597. break 2
  10598. fi
  10599. done
  10600. done
  10601. IFS=$as_save_IFS
  10602. fi
  10603. fi
  10604. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10605. if test -n "$ac_ct_CC"; then
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10607. $as_echo "$ac_ct_CC" >&6; }
  10608. else
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10610. $as_echo "no" >&6; }
  10611. fi
  10612. if test "x$ac_ct_CC" = x; then
  10613. CC=""
  10614. else
  10615. case $cross_compiling:$ac_tool_warned in
  10616. yes:)
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10619. ac_tool_warned=yes ;;
  10620. esac
  10621. CC=$ac_ct_CC
  10622. fi
  10623. else
  10624. CC="$ac_cv_prog_CC"
  10625. fi
  10626. if test -z "$CC"; then
  10627. if test -n "$ac_tool_prefix"; then
  10628. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10629. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10631. $as_echo_n "checking for $ac_word... " >&6; }
  10632. if ${ac_cv_prog_CC+:} false; then :
  10633. $as_echo_n "(cached) " >&6
  10634. else
  10635. if test -n "$CC"; then
  10636. ac_cv_prog_CC="$CC" # Let the user override the test.
  10637. else
  10638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10639. for as_dir in $PATH
  10640. do
  10641. IFS=$as_save_IFS
  10642. test -z "$as_dir" && as_dir=.
  10643. for ac_exec_ext in '' $ac_executable_extensions; do
  10644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10645. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10647. break 2
  10648. fi
  10649. done
  10650. done
  10651. IFS=$as_save_IFS
  10652. fi
  10653. fi
  10654. CC=$ac_cv_prog_CC
  10655. if test -n "$CC"; then
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10657. $as_echo "$CC" >&6; }
  10658. else
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10660. $as_echo "no" >&6; }
  10661. fi
  10662. fi
  10663. fi
  10664. if test -z "$CC"; then
  10665. # Extract the first word of "cc", so it can be a program name with args.
  10666. set dummy cc; ac_word=$2
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10668. $as_echo_n "checking for $ac_word... " >&6; }
  10669. if ${ac_cv_prog_CC+:} false; then :
  10670. $as_echo_n "(cached) " >&6
  10671. else
  10672. if test -n "$CC"; then
  10673. ac_cv_prog_CC="$CC" # Let the user override the test.
  10674. else
  10675. ac_prog_rejected=no
  10676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10677. for as_dir in $PATH
  10678. do
  10679. IFS=$as_save_IFS
  10680. test -z "$as_dir" && as_dir=.
  10681. for ac_exec_ext in '' $ac_executable_extensions; do
  10682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10683. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10684. ac_prog_rejected=yes
  10685. continue
  10686. fi
  10687. ac_cv_prog_CC="cc"
  10688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10689. break 2
  10690. fi
  10691. done
  10692. done
  10693. IFS=$as_save_IFS
  10694. if test $ac_prog_rejected = yes; then
  10695. # We found a bogon in the path, so make sure we never use it.
  10696. set dummy $ac_cv_prog_CC
  10697. shift
  10698. if test $# != 0; then
  10699. # We chose a different compiler from the bogus one.
  10700. # However, it has the same basename, so the bogon will be chosen
  10701. # first if we set CC to just the basename; use the full file name.
  10702. shift
  10703. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10704. fi
  10705. fi
  10706. fi
  10707. fi
  10708. CC=$ac_cv_prog_CC
  10709. if test -n "$CC"; then
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10711. $as_echo "$CC" >&6; }
  10712. else
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10714. $as_echo "no" >&6; }
  10715. fi
  10716. fi
  10717. if test -z "$CC"; then
  10718. if test -n "$ac_tool_prefix"; then
  10719. for ac_prog in cl.exe
  10720. do
  10721. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10722. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10724. $as_echo_n "checking for $ac_word... " >&6; }
  10725. if ${ac_cv_prog_CC+:} false; then :
  10726. $as_echo_n "(cached) " >&6
  10727. else
  10728. if test -n "$CC"; then
  10729. ac_cv_prog_CC="$CC" # Let the user override the test.
  10730. else
  10731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10732. for as_dir in $PATH
  10733. do
  10734. IFS=$as_save_IFS
  10735. test -z "$as_dir" && as_dir=.
  10736. for ac_exec_ext in '' $ac_executable_extensions; do
  10737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10738. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10740. break 2
  10741. fi
  10742. done
  10743. done
  10744. IFS=$as_save_IFS
  10745. fi
  10746. fi
  10747. CC=$ac_cv_prog_CC
  10748. if test -n "$CC"; then
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10750. $as_echo "$CC" >&6; }
  10751. else
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10753. $as_echo "no" >&6; }
  10754. fi
  10755. test -n "$CC" && break
  10756. done
  10757. fi
  10758. if test -z "$CC"; then
  10759. ac_ct_CC=$CC
  10760. for ac_prog in cl.exe
  10761. do
  10762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10763. set dummy $ac_prog; ac_word=$2
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10765. $as_echo_n "checking for $ac_word... " >&6; }
  10766. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10767. $as_echo_n "(cached) " >&6
  10768. else
  10769. if test -n "$ac_ct_CC"; then
  10770. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10771. else
  10772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10773. for as_dir in $PATH
  10774. do
  10775. IFS=$as_save_IFS
  10776. test -z "$as_dir" && as_dir=.
  10777. for ac_exec_ext in '' $ac_executable_extensions; do
  10778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10779. ac_cv_prog_ac_ct_CC="$ac_prog"
  10780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10781. break 2
  10782. fi
  10783. done
  10784. done
  10785. IFS=$as_save_IFS
  10786. fi
  10787. fi
  10788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10789. if test -n "$ac_ct_CC"; then
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10791. $as_echo "$ac_ct_CC" >&6; }
  10792. else
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10794. $as_echo "no" >&6; }
  10795. fi
  10796. test -n "$ac_ct_CC" && break
  10797. done
  10798. if test "x$ac_ct_CC" = x; then
  10799. CC=""
  10800. else
  10801. case $cross_compiling:$ac_tool_warned in
  10802. yes:)
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10805. ac_tool_warned=yes ;;
  10806. esac
  10807. CC=$ac_ct_CC
  10808. fi
  10809. fi
  10810. fi
  10811. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10813. as_fn_error $? "no acceptable C compiler found in \$PATH
  10814. See \`config.log' for more details" "$LINENO" 5; }
  10815. # Provide some information about the compiler.
  10816. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10817. set X $ac_compile
  10818. ac_compiler=$2
  10819. for ac_option in --version -v -V -qversion; do
  10820. { { ac_try="$ac_compiler $ac_option >&5"
  10821. case "(($ac_try" in
  10822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10823. *) ac_try_echo=$ac_try;;
  10824. esac
  10825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10826. $as_echo "$ac_try_echo"; } >&5
  10827. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10828. ac_status=$?
  10829. if test -s conftest.err; then
  10830. sed '10a\
  10831. ... rest of stderr output deleted ...
  10832. 10q' conftest.err >conftest.er1
  10833. cat conftest.er1 >&5
  10834. fi
  10835. rm -f conftest.er1 conftest.err
  10836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10837. test $ac_status = 0; }
  10838. done
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10840. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10841. if ${ac_cv_c_compiler_gnu+:} false; then :
  10842. $as_echo_n "(cached) " >&6
  10843. else
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. int
  10847. main ()
  10848. {
  10849. #ifndef __GNUC__
  10850. choke me
  10851. #endif
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_compile "$LINENO"; then :
  10857. ac_compiler_gnu=yes
  10858. else
  10859. ac_compiler_gnu=no
  10860. fi
  10861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10862. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10863. fi
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10865. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10866. if test $ac_compiler_gnu = yes; then
  10867. GCC=yes
  10868. else
  10869. GCC=
  10870. fi
  10871. ac_test_CFLAGS=${CFLAGS+set}
  10872. ac_save_CFLAGS=$CFLAGS
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10874. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10875. if ${ac_cv_prog_cc_g+:} false; then :
  10876. $as_echo_n "(cached) " >&6
  10877. else
  10878. ac_save_c_werror_flag=$ac_c_werror_flag
  10879. ac_c_werror_flag=yes
  10880. ac_cv_prog_cc_g=no
  10881. CFLAGS="-g"
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. int
  10885. main ()
  10886. {
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_c_try_compile "$LINENO"; then :
  10892. ac_cv_prog_cc_g=yes
  10893. else
  10894. CFLAGS=""
  10895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10896. /* end confdefs.h. */
  10897. int
  10898. main ()
  10899. {
  10900. ;
  10901. return 0;
  10902. }
  10903. _ACEOF
  10904. if ac_fn_c_try_compile "$LINENO"; then :
  10905. else
  10906. ac_c_werror_flag=$ac_save_c_werror_flag
  10907. CFLAGS="-g"
  10908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10909. /* end confdefs.h. */
  10910. int
  10911. main ()
  10912. {
  10913. ;
  10914. return 0;
  10915. }
  10916. _ACEOF
  10917. if ac_fn_c_try_compile "$LINENO"; then :
  10918. ac_cv_prog_cc_g=yes
  10919. fi
  10920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10921. fi
  10922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10923. fi
  10924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10925. ac_c_werror_flag=$ac_save_c_werror_flag
  10926. fi
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10928. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10929. if test "$ac_test_CFLAGS" = set; then
  10930. CFLAGS=$ac_save_CFLAGS
  10931. elif test $ac_cv_prog_cc_g = yes; then
  10932. if test "$GCC" = yes; then
  10933. CFLAGS="-g -O2"
  10934. else
  10935. CFLAGS="-g"
  10936. fi
  10937. else
  10938. if test "$GCC" = yes; then
  10939. CFLAGS="-O2"
  10940. else
  10941. CFLAGS=
  10942. fi
  10943. fi
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10945. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10946. if ${ac_cv_prog_cc_c89+:} false; then :
  10947. $as_echo_n "(cached) " >&6
  10948. else
  10949. ac_cv_prog_cc_c89=no
  10950. ac_save_CC=$CC
  10951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10952. /* end confdefs.h. */
  10953. #include <stdarg.h>
  10954. #include <stdio.h>
  10955. struct stat;
  10956. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10957. struct buf { int x; };
  10958. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10959. static char *e (p, i)
  10960. char **p;
  10961. int i;
  10962. {
  10963. return p[i];
  10964. }
  10965. static char *f (char * (*g) (char **, int), char **p, ...)
  10966. {
  10967. char *s;
  10968. va_list v;
  10969. va_start (v,p);
  10970. s = g (p, va_arg (v,int));
  10971. va_end (v);
  10972. return s;
  10973. }
  10974. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10975. function prototypes and stuff, but not '\xHH' hex character constants.
  10976. These don't provoke an error unfortunately, instead are silently treated
  10977. as 'x'. The following induces an error, until -std is added to get
  10978. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10979. array size at least. It's necessary to write '\x00'==0 to get something
  10980. that's true only with -std. */
  10981. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10982. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10983. inside strings and character constants. */
  10984. #define FOO(x) 'x'
  10985. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10986. int test (int i, double x);
  10987. struct s1 {int (*f) (int a);};
  10988. struct s2 {int (*f) (double a);};
  10989. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10990. int argc;
  10991. char **argv;
  10992. int
  10993. main ()
  10994. {
  10995. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10996. ;
  10997. return 0;
  10998. }
  10999. _ACEOF
  11000. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11001. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11002. do
  11003. CC="$ac_save_CC $ac_arg"
  11004. if ac_fn_c_try_compile "$LINENO"; then :
  11005. ac_cv_prog_cc_c89=$ac_arg
  11006. fi
  11007. rm -f core conftest.err conftest.$ac_objext
  11008. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11009. done
  11010. rm -f conftest.$ac_ext
  11011. CC=$ac_save_CC
  11012. fi
  11013. # AC_CACHE_VAL
  11014. case "x$ac_cv_prog_cc_c89" in
  11015. x)
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11017. $as_echo "none needed" >&6; } ;;
  11018. xno)
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11020. $as_echo "unsupported" >&6; } ;;
  11021. *)
  11022. CC="$CC $ac_cv_prog_cc_c89"
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11024. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11025. esac
  11026. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11027. fi
  11028. ac_ext=c
  11029. ac_cpp='$CPP $CPPFLAGS'
  11030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11033. ac_ext=cpp
  11034. ac_cpp='$CXXCPP $CPPFLAGS'
  11035. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11036. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11037. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11038. if test -z "$CXX"; then
  11039. if test -n "$CCC"; then
  11040. CXX=$CCC
  11041. else
  11042. if test -n "$ac_tool_prefix"; then
  11043. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11044. do
  11045. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11046. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11048. $as_echo_n "checking for $ac_word... " >&6; }
  11049. if ${ac_cv_prog_CXX+:} false; then :
  11050. $as_echo_n "(cached) " >&6
  11051. else
  11052. if test -n "$CXX"; then
  11053. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11054. else
  11055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11056. for as_dir in $PATH
  11057. do
  11058. IFS=$as_save_IFS
  11059. test -z "$as_dir" && as_dir=.
  11060. for ac_exec_ext in '' $ac_executable_extensions; do
  11061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11062. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11064. break 2
  11065. fi
  11066. done
  11067. done
  11068. IFS=$as_save_IFS
  11069. fi
  11070. fi
  11071. CXX=$ac_cv_prog_CXX
  11072. if test -n "$CXX"; then
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11074. $as_echo "$CXX" >&6; }
  11075. else
  11076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11077. $as_echo "no" >&6; }
  11078. fi
  11079. test -n "$CXX" && break
  11080. done
  11081. fi
  11082. if test -z "$CXX"; then
  11083. ac_ct_CXX=$CXX
  11084. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11085. do
  11086. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11087. set dummy $ac_prog; ac_word=$2
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11089. $as_echo_n "checking for $ac_word... " >&6; }
  11090. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11091. $as_echo_n "(cached) " >&6
  11092. else
  11093. if test -n "$ac_ct_CXX"; then
  11094. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11095. else
  11096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11097. for as_dir in $PATH
  11098. do
  11099. IFS=$as_save_IFS
  11100. test -z "$as_dir" && as_dir=.
  11101. for ac_exec_ext in '' $ac_executable_extensions; do
  11102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11103. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11105. break 2
  11106. fi
  11107. done
  11108. done
  11109. IFS=$as_save_IFS
  11110. fi
  11111. fi
  11112. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11113. if test -n "$ac_ct_CXX"; then
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11115. $as_echo "$ac_ct_CXX" >&6; }
  11116. else
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11118. $as_echo "no" >&6; }
  11119. fi
  11120. test -n "$ac_ct_CXX" && break
  11121. done
  11122. if test "x$ac_ct_CXX" = x; then
  11123. CXX="g++"
  11124. else
  11125. case $cross_compiling:$ac_tool_warned in
  11126. yes:)
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11129. ac_tool_warned=yes ;;
  11130. esac
  11131. CXX=$ac_ct_CXX
  11132. fi
  11133. fi
  11134. fi
  11135. fi
  11136. # Provide some information about the compiler.
  11137. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11138. set X $ac_compile
  11139. ac_compiler=$2
  11140. for ac_option in --version -v -V -qversion; do
  11141. { { ac_try="$ac_compiler $ac_option >&5"
  11142. case "(($ac_try" in
  11143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11144. *) ac_try_echo=$ac_try;;
  11145. esac
  11146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11147. $as_echo "$ac_try_echo"; } >&5
  11148. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11149. ac_status=$?
  11150. if test -s conftest.err; then
  11151. sed '10a\
  11152. ... rest of stderr output deleted ...
  11153. 10q' conftest.err >conftest.er1
  11154. cat conftest.er1 >&5
  11155. fi
  11156. rm -f conftest.er1 conftest.err
  11157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11158. test $ac_status = 0; }
  11159. done
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11161. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11162. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11163. $as_echo_n "(cached) " >&6
  11164. else
  11165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11166. /* end confdefs.h. */
  11167. int
  11168. main ()
  11169. {
  11170. #ifndef __GNUC__
  11171. choke me
  11172. #endif
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. if ac_fn_cxx_try_compile "$LINENO"; then :
  11178. ac_compiler_gnu=yes
  11179. else
  11180. ac_compiler_gnu=no
  11181. fi
  11182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11183. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11184. fi
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11186. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11187. if test $ac_compiler_gnu = yes; then
  11188. GXX=yes
  11189. else
  11190. GXX=
  11191. fi
  11192. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11193. ac_save_CXXFLAGS=$CXXFLAGS
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11195. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11196. if ${ac_cv_prog_cxx_g+:} false; then :
  11197. $as_echo_n "(cached) " >&6
  11198. else
  11199. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11200. ac_cxx_werror_flag=yes
  11201. ac_cv_prog_cxx_g=no
  11202. CXXFLAGS="-g"
  11203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11204. /* end confdefs.h. */
  11205. int
  11206. main ()
  11207. {
  11208. ;
  11209. return 0;
  11210. }
  11211. _ACEOF
  11212. if ac_fn_cxx_try_compile "$LINENO"; then :
  11213. ac_cv_prog_cxx_g=yes
  11214. else
  11215. CXXFLAGS=""
  11216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11217. /* end confdefs.h. */
  11218. int
  11219. main ()
  11220. {
  11221. ;
  11222. return 0;
  11223. }
  11224. _ACEOF
  11225. if ac_fn_cxx_try_compile "$LINENO"; then :
  11226. else
  11227. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11228. CXXFLAGS="-g"
  11229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11230. /* end confdefs.h. */
  11231. int
  11232. main ()
  11233. {
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. if ac_fn_cxx_try_compile "$LINENO"; then :
  11239. ac_cv_prog_cxx_g=yes
  11240. fi
  11241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11244. fi
  11245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11247. fi
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11249. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11250. if test "$ac_test_CXXFLAGS" = set; then
  11251. CXXFLAGS=$ac_save_CXXFLAGS
  11252. elif test $ac_cv_prog_cxx_g = yes; then
  11253. if test "$GXX" = yes; then
  11254. CXXFLAGS="-g -O2"
  11255. else
  11256. CXXFLAGS="-g"
  11257. fi
  11258. else
  11259. if test "$GXX" = yes; then
  11260. CXXFLAGS="-O2"
  11261. else
  11262. CXXFLAGS=
  11263. fi
  11264. fi
  11265. ac_ext=c
  11266. ac_cpp='$CPP $CPPFLAGS'
  11267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11270. func_stripname_cnf ()
  11271. {
  11272. case $2 in
  11273. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11274. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11275. esac
  11276. } # func_stripname_cnf
  11277. if test -n "$CXX" && ( test no != "$CXX" &&
  11278. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11279. (test g++ != "$CXX"))); then
  11280. ac_ext=cpp
  11281. ac_cpp='$CXXCPP $CPPFLAGS'
  11282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11286. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11287. if test -z "$CXXCPP"; then
  11288. if ${ac_cv_prog_CXXCPP+:} false; then :
  11289. $as_echo_n "(cached) " >&6
  11290. else
  11291. # Double quotes because CXXCPP needs to be expanded
  11292. for CXXCPP in "$CXX -E" "/lib/cpp"
  11293. do
  11294. ac_preproc_ok=false
  11295. for ac_cxx_preproc_warn_flag in '' yes
  11296. do
  11297. # Use a header file that comes with gcc, so configuring glibc
  11298. # with a fresh cross-compiler works.
  11299. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11300. # <limits.h> exists even on freestanding compilers.
  11301. # On the NeXT, cc -E runs the code through the compiler's parser,
  11302. # not just through cpp. "Syntax error" is here to catch this case.
  11303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11304. /* end confdefs.h. */
  11305. #ifdef __STDC__
  11306. # include <limits.h>
  11307. #else
  11308. # include <assert.h>
  11309. #endif
  11310. Syntax error
  11311. _ACEOF
  11312. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11313. else
  11314. # Broken: fails on valid input.
  11315. continue
  11316. fi
  11317. rm -f conftest.err conftest.i conftest.$ac_ext
  11318. # OK, works on sane cases. Now check whether nonexistent headers
  11319. # can be detected and how.
  11320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11321. /* end confdefs.h. */
  11322. #include <ac_nonexistent.h>
  11323. _ACEOF
  11324. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11325. # Broken: success on invalid input.
  11326. continue
  11327. else
  11328. # Passes both tests.
  11329. ac_preproc_ok=:
  11330. break
  11331. fi
  11332. rm -f conftest.err conftest.i conftest.$ac_ext
  11333. done
  11334. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11335. rm -f conftest.i conftest.err conftest.$ac_ext
  11336. if $ac_preproc_ok; then :
  11337. break
  11338. fi
  11339. done
  11340. ac_cv_prog_CXXCPP=$CXXCPP
  11341. fi
  11342. CXXCPP=$ac_cv_prog_CXXCPP
  11343. else
  11344. ac_cv_prog_CXXCPP=$CXXCPP
  11345. fi
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11347. $as_echo "$CXXCPP" >&6; }
  11348. ac_preproc_ok=false
  11349. for ac_cxx_preproc_warn_flag in '' yes
  11350. do
  11351. # Use a header file that comes with gcc, so configuring glibc
  11352. # with a fresh cross-compiler works.
  11353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11354. # <limits.h> exists even on freestanding compilers.
  11355. # On the NeXT, cc -E runs the code through the compiler's parser,
  11356. # not just through cpp. "Syntax error" is here to catch this case.
  11357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11358. /* end confdefs.h. */
  11359. #ifdef __STDC__
  11360. # include <limits.h>
  11361. #else
  11362. # include <assert.h>
  11363. #endif
  11364. Syntax error
  11365. _ACEOF
  11366. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11367. else
  11368. # Broken: fails on valid input.
  11369. continue
  11370. fi
  11371. rm -f conftest.err conftest.i conftest.$ac_ext
  11372. # OK, works on sane cases. Now check whether nonexistent headers
  11373. # can be detected and how.
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #include <ac_nonexistent.h>
  11377. _ACEOF
  11378. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11379. # Broken: success on invalid input.
  11380. continue
  11381. else
  11382. # Passes both tests.
  11383. ac_preproc_ok=:
  11384. break
  11385. fi
  11386. rm -f conftest.err conftest.i conftest.$ac_ext
  11387. done
  11388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11389. rm -f conftest.i conftest.err conftest.$ac_ext
  11390. if $ac_preproc_ok; then :
  11391. else
  11392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11394. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11395. See \`config.log' for more details" "$LINENO" 5; }
  11396. fi
  11397. ac_ext=c
  11398. ac_cpp='$CPP $CPPFLAGS'
  11399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11402. else
  11403. _lt_caught_CXX_error=yes
  11404. fi
  11405. ac_ext=cpp
  11406. ac_cpp='$CXXCPP $CPPFLAGS'
  11407. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11408. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11409. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11410. archive_cmds_need_lc_CXX=no
  11411. allow_undefined_flag_CXX=
  11412. always_export_symbols_CXX=no
  11413. archive_expsym_cmds_CXX=
  11414. compiler_needs_object_CXX=no
  11415. export_dynamic_flag_spec_CXX=
  11416. hardcode_direct_CXX=no
  11417. hardcode_direct_absolute_CXX=no
  11418. hardcode_libdir_flag_spec_CXX=
  11419. hardcode_libdir_separator_CXX=
  11420. hardcode_minus_L_CXX=no
  11421. hardcode_shlibpath_var_CXX=unsupported
  11422. hardcode_automatic_CXX=no
  11423. inherit_rpath_CXX=no
  11424. module_cmds_CXX=
  11425. module_expsym_cmds_CXX=
  11426. link_all_deplibs_CXX=unknown
  11427. old_archive_cmds_CXX=$old_archive_cmds
  11428. reload_flag_CXX=$reload_flag
  11429. reload_cmds_CXX=$reload_cmds
  11430. no_undefined_flag_CXX=
  11431. whole_archive_flag_spec_CXX=
  11432. enable_shared_with_static_runtimes_CXX=no
  11433. # Source file extension for C++ test sources.
  11434. ac_ext=cpp
  11435. # Object file extension for compiled C++ test sources.
  11436. objext=o
  11437. objext_CXX=$objext
  11438. # No sense in running all these tests if we already determined that
  11439. # the CXX compiler isn't working. Some variables (like enable_shared)
  11440. # are currently assumed to apply to all compilers on this platform,
  11441. # and will be corrupted by setting them based on a non-working compiler.
  11442. if test yes != "$_lt_caught_CXX_error"; then
  11443. # Code to be used in simple compile tests
  11444. lt_simple_compile_test_code="int some_variable = 0;"
  11445. # Code to be used in simple link tests
  11446. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11447. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11448. # If no C compiler was specified, use CC.
  11449. LTCC=${LTCC-"$CC"}
  11450. # If no C compiler flags were specified, use CFLAGS.
  11451. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11452. # Allow CC to be a program name with arguments.
  11453. compiler=$CC
  11454. # save warnings/boilerplate of simple test code
  11455. ac_outfile=conftest.$ac_objext
  11456. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11457. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11458. _lt_compiler_boilerplate=`cat conftest.err`
  11459. $RM conftest*
  11460. ac_outfile=conftest.$ac_objext
  11461. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11462. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11463. _lt_linker_boilerplate=`cat conftest.err`
  11464. $RM -r conftest*
  11465. # Allow CC to be a program name with arguments.
  11466. lt_save_CC=$CC
  11467. lt_save_CFLAGS=$CFLAGS
  11468. lt_save_LD=$LD
  11469. lt_save_GCC=$GCC
  11470. GCC=$GXX
  11471. lt_save_with_gnu_ld=$with_gnu_ld
  11472. lt_save_path_LD=$lt_cv_path_LD
  11473. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11474. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11475. else
  11476. $as_unset lt_cv_prog_gnu_ld
  11477. fi
  11478. if test -n "${lt_cv_path_LDCXX+set}"; then
  11479. lt_cv_path_LD=$lt_cv_path_LDCXX
  11480. else
  11481. $as_unset lt_cv_path_LD
  11482. fi
  11483. test -z "${LDCXX+set}" || LD=$LDCXX
  11484. CC=${CXX-"c++"}
  11485. CFLAGS=$CXXFLAGS
  11486. compiler=$CC
  11487. compiler_CXX=$CC
  11488. func_cc_basename $compiler
  11489. cc_basename=$func_cc_basename_result
  11490. if test -n "$compiler"; then
  11491. # We don't want -fno-exception when compiling C++ code, so set the
  11492. # no_builtin_flag separately
  11493. if test yes = "$GXX"; then
  11494. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11495. else
  11496. lt_prog_compiler_no_builtin_flag_CXX=
  11497. fi
  11498. if test yes = "$GXX"; then
  11499. # Set up default GNU C++ configuration
  11500. # Check whether --with-gnu-ld was given.
  11501. if test "${with_gnu_ld+set}" = set; then :
  11502. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11503. else
  11504. with_gnu_ld=no
  11505. fi
  11506. ac_prog=ld
  11507. if test yes = "$GCC"; then
  11508. # Check if gcc -print-prog-name=ld gives a path.
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11510. $as_echo_n "checking for ld used by $CC... " >&6; }
  11511. case $host in
  11512. *-*-mingw*)
  11513. # gcc leaves a trailing carriage return, which upsets mingw
  11514. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11515. *)
  11516. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11517. esac
  11518. case $ac_prog in
  11519. # Accept absolute paths.
  11520. [\\/]* | ?:[\\/]*)
  11521. re_direlt='/[^/][^/]*/\.\./'
  11522. # Canonicalize the pathname of ld
  11523. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11524. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11525. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11526. done
  11527. test -z "$LD" && LD=$ac_prog
  11528. ;;
  11529. "")
  11530. # If it fails, then pretend we aren't using GCC.
  11531. ac_prog=ld
  11532. ;;
  11533. *)
  11534. # If it is relative, then search for the first ld in PATH.
  11535. with_gnu_ld=unknown
  11536. ;;
  11537. esac
  11538. elif test yes = "$with_gnu_ld"; then
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11540. $as_echo_n "checking for GNU ld... " >&6; }
  11541. else
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11543. $as_echo_n "checking for non-GNU ld... " >&6; }
  11544. fi
  11545. if ${lt_cv_path_LD+:} false; then :
  11546. $as_echo_n "(cached) " >&6
  11547. else
  11548. if test -z "$LD"; then
  11549. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11550. for ac_dir in $PATH; do
  11551. IFS=$lt_save_ifs
  11552. test -z "$ac_dir" && ac_dir=.
  11553. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11554. lt_cv_path_LD=$ac_dir/$ac_prog
  11555. # Check to see if the program is GNU ld. I'd rather use --version,
  11556. # but apparently some variants of GNU ld only accept -v.
  11557. # Break only if it was the GNU/non-GNU ld that we prefer.
  11558. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11559. *GNU* | *'with BFD'*)
  11560. test no != "$with_gnu_ld" && break
  11561. ;;
  11562. *)
  11563. test yes != "$with_gnu_ld" && break
  11564. ;;
  11565. esac
  11566. fi
  11567. done
  11568. IFS=$lt_save_ifs
  11569. else
  11570. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11571. fi
  11572. fi
  11573. LD=$lt_cv_path_LD
  11574. if test -n "$LD"; then
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11576. $as_echo "$LD" >&6; }
  11577. else
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11579. $as_echo "no" >&6; }
  11580. fi
  11581. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11583. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11584. if ${lt_cv_prog_gnu_ld+:} false; then :
  11585. $as_echo_n "(cached) " >&6
  11586. else
  11587. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11588. case `$LD -v 2>&1 </dev/null` in
  11589. *GNU* | *'with BFD'*)
  11590. lt_cv_prog_gnu_ld=yes
  11591. ;;
  11592. *)
  11593. lt_cv_prog_gnu_ld=no
  11594. ;;
  11595. esac
  11596. fi
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11598. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11599. with_gnu_ld=$lt_cv_prog_gnu_ld
  11600. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11601. # archiving commands below assume that GNU ld is being used.
  11602. if test yes = "$with_gnu_ld"; then
  11603. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11604. 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'
  11605. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11606. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11607. # If archive_cmds runs LD, not CC, wlarc should be empty
  11608. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11609. # investigate it a little bit more. (MM)
  11610. wlarc='$wl'
  11611. # ancient GNU ld didn't support --whole-archive et. al.
  11612. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11613. $GREP 'no-whole-archive' > /dev/null; then
  11614. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11615. else
  11616. whole_archive_flag_spec_CXX=
  11617. fi
  11618. else
  11619. with_gnu_ld=no
  11620. wlarc=
  11621. # A generic and very simple default shared library creation
  11622. # command for GNU C++ for the case where it uses the native
  11623. # linker, instead of GNU ld. If possible, this setting should
  11624. # overridden to take advantage of the native linker features on
  11625. # the platform it is being used on.
  11626. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11627. fi
  11628. # Commands to make compiler produce verbose output that lists
  11629. # what "hidden" libraries, object files and flags are used when
  11630. # linking a shared library.
  11631. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11632. else
  11633. GXX=no
  11634. with_gnu_ld=no
  11635. wlarc=
  11636. fi
  11637. # PORTME: fill in a description of your system's C++ link characteristics
  11638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11639. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11640. ld_shlibs_CXX=yes
  11641. case $host_os in
  11642. aix3*)
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. ;;
  11646. aix[4-9]*)
  11647. if test ia64 = "$host_cpu"; then
  11648. # On IA64, the linker does run time linking by default, so we don't
  11649. # have to do anything special.
  11650. aix_use_runtimelinking=no
  11651. exp_sym_flag='-Bexport'
  11652. no_entry_flag=
  11653. else
  11654. aix_use_runtimelinking=no
  11655. # Test if we are trying to use run time linking or normal
  11656. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11657. # have runtime linking enabled, and use it for executables.
  11658. # For shared libraries, we enable/disable runtime linking
  11659. # depending on the kind of the shared library created -
  11660. # when "with_aix_soname,aix_use_runtimelinking" is:
  11661. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11662. # "aix,yes" lib.so shared, rtl:yes, for executables
  11663. # lib.a static archive
  11664. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11665. # lib.a(lib.so.V) shared, rtl:no, for executables
  11666. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11667. # lib.a(lib.so.V) shared, rtl:no
  11668. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11669. # lib.a static archive
  11670. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11671. for ld_flag in $LDFLAGS; do
  11672. case $ld_flag in
  11673. *-brtl*)
  11674. aix_use_runtimelinking=yes
  11675. break
  11676. ;;
  11677. esac
  11678. done
  11679. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11680. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11681. # so we don't have lib.a shared libs to link our executables.
  11682. # We have to force runtime linking in this case.
  11683. aix_use_runtimelinking=yes
  11684. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11685. fi
  11686. ;;
  11687. esac
  11688. exp_sym_flag='-bexport'
  11689. no_entry_flag='-bnoentry'
  11690. fi
  11691. # When large executables or shared objects are built, AIX ld can
  11692. # have problems creating the table of contents. If linking a library
  11693. # or program results in "error TOC overflow" add -mminimal-toc to
  11694. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11695. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11696. archive_cmds_CXX=''
  11697. hardcode_direct_CXX=yes
  11698. hardcode_direct_absolute_CXX=yes
  11699. hardcode_libdir_separator_CXX=':'
  11700. link_all_deplibs_CXX=yes
  11701. file_list_spec_CXX='$wl-f,'
  11702. case $with_aix_soname,$aix_use_runtimelinking in
  11703. aix,*) ;; # no import file
  11704. svr4,* | *,yes) # use import file
  11705. # The Import File defines what to hardcode.
  11706. hardcode_direct_CXX=no
  11707. hardcode_direct_absolute_CXX=no
  11708. ;;
  11709. esac
  11710. if test yes = "$GXX"; then
  11711. case $host_os in aix4.[012]|aix4.[012].*)
  11712. # We only want to do this on AIX 4.2 and lower, the check
  11713. # below for broken collect2 doesn't work under 4.3+
  11714. collect2name=`$CC -print-prog-name=collect2`
  11715. if test -f "$collect2name" &&
  11716. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11717. then
  11718. # We have reworked collect2
  11719. :
  11720. else
  11721. # We have old collect2
  11722. hardcode_direct_CXX=unsupported
  11723. # It fails to find uninstalled libraries when the uninstalled
  11724. # path is not listed in the libpath. Setting hardcode_minus_L
  11725. # to unsupported forces relinking
  11726. hardcode_minus_L_CXX=yes
  11727. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11728. hardcode_libdir_separator_CXX=
  11729. fi
  11730. esac
  11731. shared_flag='-shared'
  11732. if test yes = "$aix_use_runtimelinking"; then
  11733. shared_flag=$shared_flag' $wl-G'
  11734. fi
  11735. # Need to ensure runtime linking is disabled for the traditional
  11736. # shared library, or the linker may eventually find shared libraries
  11737. # /with/ Import File - we do not want to mix them.
  11738. shared_flag_aix='-shared'
  11739. shared_flag_svr4='-shared $wl-G'
  11740. else
  11741. # not using gcc
  11742. if test ia64 = "$host_cpu"; then
  11743. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11744. # chokes on -Wl,-G. The following line is correct:
  11745. shared_flag='-G'
  11746. else
  11747. if test yes = "$aix_use_runtimelinking"; then
  11748. shared_flag='$wl-G'
  11749. else
  11750. shared_flag='$wl-bM:SRE'
  11751. fi
  11752. shared_flag_aix='$wl-bM:SRE'
  11753. shared_flag_svr4='$wl-G'
  11754. fi
  11755. fi
  11756. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11757. # It seems that -bexpall does not export symbols beginning with
  11758. # underscore (_), so it is better to generate a list of symbols to
  11759. # export.
  11760. always_export_symbols_CXX=yes
  11761. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11762. # Warning - without using the other runtime loading flags (-brtl),
  11763. # -berok will link without error, but may produce a broken library.
  11764. # The "-G" linker flag allows undefined symbols.
  11765. no_undefined_flag_CXX='-bernotok'
  11766. # Determine the default libpath from the value encoded in an empty
  11767. # executable.
  11768. if test set = "${lt_cv_aix_libpath+set}"; then
  11769. aix_libpath=$lt_cv_aix_libpath
  11770. else
  11771. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11772. $as_echo_n "(cached) " >&6
  11773. else
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main ()
  11778. {
  11779. ;
  11780. return 0;
  11781. }
  11782. _ACEOF
  11783. if ac_fn_cxx_try_link "$LINENO"; then :
  11784. lt_aix_libpath_sed='
  11785. /Import File Strings/,/^$/ {
  11786. /^0/ {
  11787. s/^0 *\([^ ]*\) *$/\1/
  11788. p
  11789. }
  11790. }'
  11791. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11792. # Check for a 64-bit object if we didn't find anything.
  11793. if test -z "$lt_cv_aix_libpath__CXX"; then
  11794. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11795. fi
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext \
  11798. conftest$ac_exeext conftest.$ac_ext
  11799. if test -z "$lt_cv_aix_libpath__CXX"; then
  11800. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11801. fi
  11802. fi
  11803. aix_libpath=$lt_cv_aix_libpath__CXX
  11804. fi
  11805. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11806. 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
  11807. else
  11808. if test ia64 = "$host_cpu"; then
  11809. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11810. allow_undefined_flag_CXX="-z nodefs"
  11811. 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"
  11812. else
  11813. # Determine the default libpath from the value encoded in an
  11814. # empty executable.
  11815. if test set = "${lt_cv_aix_libpath+set}"; then
  11816. aix_libpath=$lt_cv_aix_libpath
  11817. else
  11818. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11819. $as_echo_n "(cached) " >&6
  11820. else
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. int
  11824. main ()
  11825. {
  11826. ;
  11827. return 0;
  11828. }
  11829. _ACEOF
  11830. if ac_fn_cxx_try_link "$LINENO"; then :
  11831. lt_aix_libpath_sed='
  11832. /Import File Strings/,/^$/ {
  11833. /^0/ {
  11834. s/^0 *\([^ ]*\) *$/\1/
  11835. p
  11836. }
  11837. }'
  11838. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11839. # Check for a 64-bit object if we didn't find anything.
  11840. if test -z "$lt_cv_aix_libpath__CXX"; then
  11841. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11842. fi
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext \
  11845. conftest$ac_exeext conftest.$ac_ext
  11846. if test -z "$lt_cv_aix_libpath__CXX"; then
  11847. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11848. fi
  11849. fi
  11850. aix_libpath=$lt_cv_aix_libpath__CXX
  11851. fi
  11852. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11853. # Warning - without using the other run time loading flags,
  11854. # -berok will link without error, but may produce a broken library.
  11855. no_undefined_flag_CXX=' $wl-bernotok'
  11856. allow_undefined_flag_CXX=' $wl-berok'
  11857. if test yes = "$with_gnu_ld"; then
  11858. # We only use this code for GNU lds that support --whole-archive.
  11859. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11860. else
  11861. # Exported symbols can be pulled into shared objects from archives
  11862. whole_archive_flag_spec_CXX='$convenience'
  11863. fi
  11864. archive_cmds_need_lc_CXX=yes
  11865. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11866. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11867. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11868. if test svr4 != "$with_aix_soname"; then
  11869. # This is similar to how AIX traditionally builds its shared
  11870. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11871. 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'
  11872. fi
  11873. if test aix != "$with_aix_soname"; then
  11874. 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'
  11875. else
  11876. # used by -dlpreopen to get the symbols
  11877. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11878. fi
  11879. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11880. fi
  11881. fi
  11882. ;;
  11883. beos*)
  11884. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11885. allow_undefined_flag_CXX=unsupported
  11886. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11887. # support --undefined. This deserves some investigation. FIXME
  11888. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11889. else
  11890. ld_shlibs_CXX=no
  11891. fi
  11892. ;;
  11893. chorus*)
  11894. case $cc_basename in
  11895. *)
  11896. # FIXME: insert proper C++ library support
  11897. ld_shlibs_CXX=no
  11898. ;;
  11899. esac
  11900. ;;
  11901. cygwin* | mingw* | pw32* | cegcc*)
  11902. case $GXX,$cc_basename in
  11903. ,cl* | no,cl*)
  11904. # Native MSVC
  11905. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11906. # no search path for DLLs.
  11907. hardcode_libdir_flag_spec_CXX=' '
  11908. allow_undefined_flag_CXX=unsupported
  11909. always_export_symbols_CXX=yes
  11910. file_list_spec_CXX='@'
  11911. # Tell ltmain to make .lib files, not .a files.
  11912. libext=lib
  11913. # Tell ltmain to make .dll files, not .so files.
  11914. shrext_cmds=.dll
  11915. # FIXME: Setting linknames here is a bad hack.
  11916. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11917. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11918. cp "$export_symbols" "$output_objdir/$soname.def";
  11919. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11920. else
  11921. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11922. fi~
  11923. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11924. linknames='
  11925. # The linker will not automatically build a static lib if we build a DLL.
  11926. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11927. enable_shared_with_static_runtimes_CXX=yes
  11928. # Don't use ranlib
  11929. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11930. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11931. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11932. case $lt_outputfile in
  11933. *.exe|*.EXE) ;;
  11934. *)
  11935. lt_outputfile=$lt_outputfile.exe
  11936. lt_tool_outputfile=$lt_tool_outputfile.exe
  11937. ;;
  11938. esac~
  11939. func_to_tool_file "$lt_outputfile"~
  11940. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11941. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11942. $RM "$lt_outputfile.manifest";
  11943. fi'
  11944. ;;
  11945. *)
  11946. # g++
  11947. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11948. # as there is no search path for DLLs.
  11949. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11950. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11951. allow_undefined_flag_CXX=unsupported
  11952. always_export_symbols_CXX=no
  11953. enable_shared_with_static_runtimes_CXX=yes
  11954. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11955. 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'
  11956. # If the export-symbols file already is a .def file, use it as
  11957. # is; otherwise, prepend EXPORTS...
  11958. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11959. cp $export_symbols $output_objdir/$soname.def;
  11960. else
  11961. echo EXPORTS > $output_objdir/$soname.def;
  11962. cat $export_symbols >> $output_objdir/$soname.def;
  11963. fi~
  11964. $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'
  11965. else
  11966. ld_shlibs_CXX=no
  11967. fi
  11968. ;;
  11969. esac
  11970. ;;
  11971. darwin* | rhapsody*)
  11972. archive_cmds_need_lc_CXX=no
  11973. hardcode_direct_CXX=no
  11974. hardcode_automatic_CXX=yes
  11975. hardcode_shlibpath_var_CXX=unsupported
  11976. if test yes = "$lt_cv_ld_force_load"; then
  11977. 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\"`'
  11978. else
  11979. whole_archive_flag_spec_CXX=''
  11980. fi
  11981. link_all_deplibs_CXX=yes
  11982. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11983. case $cc_basename in
  11984. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11985. *) _lt_dar_can_shared=$GCC ;;
  11986. esac
  11987. if test yes = "$_lt_dar_can_shared"; then
  11988. output_verbose_link_cmd=func_echo_all
  11989. 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"
  11990. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11991. 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"
  11992. 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"
  11993. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11994. 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"
  11995. 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"
  11996. fi
  11997. else
  11998. ld_shlibs_CXX=no
  11999. fi
  12000. ;;
  12001. os2*)
  12002. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12003. hardcode_minus_L_CXX=yes
  12004. allow_undefined_flag_CXX=unsupported
  12005. shrext_cmds=.dll
  12006. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12007. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12008. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12009. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12010. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12011. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12012. emximp -o $lib $output_objdir/$libname.def'
  12013. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12014. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12015. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12016. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12017. prefix_cmds="$SED"~
  12018. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12019. prefix_cmds="$prefix_cmds -e 1d";
  12020. fi~
  12021. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12022. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12023. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12024. emximp -o $lib $output_objdir/$libname.def'
  12025. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12026. enable_shared_with_static_runtimes_CXX=yes
  12027. file_list_spec_CXX='@'
  12028. ;;
  12029. dgux*)
  12030. case $cc_basename in
  12031. ec++*)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. ghcx*)
  12036. # Green Hills C++ Compiler
  12037. # FIXME: insert proper C++ library support
  12038. ld_shlibs_CXX=no
  12039. ;;
  12040. *)
  12041. # FIXME: insert proper C++ library support
  12042. ld_shlibs_CXX=no
  12043. ;;
  12044. esac
  12045. ;;
  12046. freebsd2.*)
  12047. # C++ shared libraries reported to be fairly broken before
  12048. # switch to ELF
  12049. ld_shlibs_CXX=no
  12050. ;;
  12051. freebsd-elf*)
  12052. archive_cmds_need_lc_CXX=no
  12053. ;;
  12054. freebsd* | dragonfly* | midnightbsd*)
  12055. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12056. # conventions
  12057. ld_shlibs_CXX=yes
  12058. ;;
  12059. haiku*)
  12060. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12061. link_all_deplibs_CXX=yes
  12062. ;;
  12063. hpux9*)
  12064. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12065. hardcode_libdir_separator_CXX=:
  12066. export_dynamic_flag_spec_CXX='$wl-E'
  12067. hardcode_direct_CXX=yes
  12068. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12069. # but as the default
  12070. # location of the library.
  12071. case $cc_basename in
  12072. CC*)
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. aCC*)
  12077. 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'
  12078. # Commands to make compiler produce verbose output that lists
  12079. # what "hidden" libraries, object files and flags are used when
  12080. # linking a shared library.
  12081. #
  12082. # There doesn't appear to be a way to prevent this compiler from
  12083. # explicitly linking system object files so we need to strip them
  12084. # from the output so that they don't get included in the library
  12085. # dependencies.
  12086. 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"'
  12087. ;;
  12088. *)
  12089. if test yes = "$GXX"; then
  12090. 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'
  12091. else
  12092. # FIXME: insert proper C++ library support
  12093. ld_shlibs_CXX=no
  12094. fi
  12095. ;;
  12096. esac
  12097. ;;
  12098. hpux10*|hpux11*)
  12099. if test no = "$with_gnu_ld"; then
  12100. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12101. hardcode_libdir_separator_CXX=:
  12102. case $host_cpu in
  12103. hppa*64*|ia64*)
  12104. ;;
  12105. *)
  12106. export_dynamic_flag_spec_CXX='$wl-E'
  12107. ;;
  12108. esac
  12109. fi
  12110. case $host_cpu in
  12111. hppa*64*|ia64*)
  12112. hardcode_direct_CXX=no
  12113. hardcode_shlibpath_var_CXX=no
  12114. ;;
  12115. *)
  12116. hardcode_direct_CXX=yes
  12117. hardcode_direct_absolute_CXX=yes
  12118. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12119. # but as the default
  12120. # location of the library.
  12121. ;;
  12122. esac
  12123. case $cc_basename in
  12124. CC*)
  12125. # FIXME: insert proper C++ library support
  12126. ld_shlibs_CXX=no
  12127. ;;
  12128. aCC*)
  12129. case $host_cpu in
  12130. hppa*64*)
  12131. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12132. ;;
  12133. ia64*)
  12134. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12135. ;;
  12136. *)
  12137. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12138. ;;
  12139. esac
  12140. # Commands to make compiler produce verbose output that lists
  12141. # what "hidden" libraries, object files and flags are used when
  12142. # linking a shared library.
  12143. #
  12144. # There doesn't appear to be a way to prevent this compiler from
  12145. # explicitly linking system object files so we need to strip them
  12146. # from the output so that they don't get included in the library
  12147. # dependencies.
  12148. 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"'
  12149. ;;
  12150. *)
  12151. if test yes = "$GXX"; then
  12152. if test no = "$with_gnu_ld"; then
  12153. case $host_cpu in
  12154. hppa*64*)
  12155. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12156. ;;
  12157. ia64*)
  12158. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12159. ;;
  12160. *)
  12161. 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'
  12162. ;;
  12163. esac
  12164. fi
  12165. else
  12166. # FIXME: insert proper C++ library support
  12167. ld_shlibs_CXX=no
  12168. fi
  12169. ;;
  12170. esac
  12171. ;;
  12172. interix[3-9]*)
  12173. hardcode_direct_CXX=no
  12174. hardcode_shlibpath_var_CXX=no
  12175. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12176. export_dynamic_flag_spec_CXX='$wl-E'
  12177. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12178. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12179. # default) and relocated if they conflict, which is a slow very memory
  12180. # consuming and fragmenting process. To avoid this, we pick a random,
  12181. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12182. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12183. 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'
  12184. 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'
  12185. ;;
  12186. irix5* | irix6*)
  12187. case $cc_basename in
  12188. CC*)
  12189. # SGI C++
  12190. 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'
  12191. # Archives containing C++ object files must be created using
  12192. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12193. # necessary to make sure instantiated templates are included
  12194. # in the archive.
  12195. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12196. ;;
  12197. *)
  12198. if test yes = "$GXX"; then
  12199. if test no = "$with_gnu_ld"; then
  12200. 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'
  12201. else
  12202. 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'
  12203. fi
  12204. fi
  12205. link_all_deplibs_CXX=yes
  12206. ;;
  12207. esac
  12208. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12209. hardcode_libdir_separator_CXX=:
  12210. inherit_rpath_CXX=yes
  12211. ;;
  12212. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12213. case $cc_basename in
  12214. KCC*)
  12215. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12216. # KCC will only create a shared library if the output file
  12217. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12218. # to its proper name (with version) after linking.
  12219. 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'
  12220. 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'
  12221. # Commands to make compiler produce verbose output that lists
  12222. # what "hidden" libraries, object files and flags are used when
  12223. # linking a shared library.
  12224. #
  12225. # There doesn't appear to be a way to prevent this compiler from
  12226. # explicitly linking system object files so we need to strip them
  12227. # from the output so that they don't get included in the library
  12228. # dependencies.
  12229. 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"'
  12230. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12231. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12232. # Archives containing C++ object files must be created using
  12233. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12234. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12235. ;;
  12236. icpc* | ecpc* )
  12237. # Intel C++
  12238. with_gnu_ld=yes
  12239. # version 8.0 and above of icpc choke on multiply defined symbols
  12240. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12241. # earlier do not add the objects themselves.
  12242. case `$CC -V 2>&1` in
  12243. *"Version 7."*)
  12244. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12245. 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'
  12246. ;;
  12247. *) # Version 8.0 or newer
  12248. tmp_idyn=
  12249. case $host_cpu in
  12250. ia64*) tmp_idyn=' -i_dynamic';;
  12251. esac
  12252. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12253. 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'
  12254. ;;
  12255. esac
  12256. archive_cmds_need_lc_CXX=no
  12257. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12258. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12259. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12260. ;;
  12261. pgCC* | pgcpp*)
  12262. # Portland Group C++ compiler
  12263. case `$CC -V` in
  12264. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12265. prelink_cmds_CXX='tpldir=Template.dir~
  12266. rm -rf $tpldir~
  12267. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12268. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12269. old_archive_cmds_CXX='tpldir=Template.dir~
  12270. rm -rf $tpldir~
  12271. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12272. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12273. $RANLIB $oldlib'
  12274. archive_cmds_CXX='tpldir=Template.dir~
  12275. rm -rf $tpldir~
  12276. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12277. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12278. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12279. rm -rf $tpldir~
  12280. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12281. $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'
  12282. ;;
  12283. *) # Version 6 and above use weak symbols
  12284. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12285. 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'
  12286. ;;
  12287. esac
  12288. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12289. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12290. 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'
  12291. ;;
  12292. cxx*)
  12293. # Compaq C++
  12294. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12295. 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'
  12296. runpath_var=LD_RUN_PATH
  12297. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12298. hardcode_libdir_separator_CXX=:
  12299. # Commands to make compiler produce verbose output that lists
  12300. # what "hidden" libraries, object files and flags are used when
  12301. # linking a shared library.
  12302. #
  12303. # There doesn't appear to be a way to prevent this compiler from
  12304. # explicitly linking system object files so we need to strip them
  12305. # from the output so that they don't get included in the library
  12306. # dependencies.
  12307. 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'
  12308. ;;
  12309. xl* | mpixl* | bgxl*)
  12310. # IBM XL 8.0 on PPC, with GNU ld
  12311. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12312. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12313. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12314. if test yes = "$supports_anon_versioning"; then
  12315. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12316. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12317. echo "local: *; };" >> $output_objdir/$libname.ver~
  12318. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12319. fi
  12320. ;;
  12321. *)
  12322. case `$CC -V 2>&1 | sed 5q` in
  12323. *Sun\ C*)
  12324. # Sun C++ 5.9
  12325. no_undefined_flag_CXX=' -zdefs'
  12326. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12327. 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'
  12328. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12329. 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'
  12330. compiler_needs_object_CXX=yes
  12331. # Not sure whether something based on
  12332. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12333. # would be better.
  12334. output_verbose_link_cmd='func_echo_all'
  12335. # Archives containing C++ object files must be created using
  12336. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12337. # necessary to make sure instantiated templates are included
  12338. # in the archive.
  12339. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12340. ;;
  12341. esac
  12342. ;;
  12343. esac
  12344. ;;
  12345. lynxos*)
  12346. # FIXME: insert proper C++ library support
  12347. ld_shlibs_CXX=no
  12348. ;;
  12349. m88k*)
  12350. # FIXME: insert proper C++ library support
  12351. ld_shlibs_CXX=no
  12352. ;;
  12353. mvs*)
  12354. case $cc_basename in
  12355. cxx*)
  12356. # FIXME: insert proper C++ library support
  12357. ld_shlibs_CXX=no
  12358. ;;
  12359. *)
  12360. # FIXME: insert proper C++ library support
  12361. ld_shlibs_CXX=no
  12362. ;;
  12363. esac
  12364. ;;
  12365. netbsd*)
  12366. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12367. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12368. wlarc=
  12369. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12370. hardcode_direct_CXX=yes
  12371. hardcode_shlibpath_var_CXX=no
  12372. fi
  12373. # Workaround some broken pre-1.5 toolchains
  12374. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12375. ;;
  12376. *nto* | *qnx*)
  12377. ld_shlibs_CXX=yes
  12378. ;;
  12379. openbsd* | bitrig*)
  12380. if test -f /usr/libexec/ld.so; then
  12381. hardcode_direct_CXX=yes
  12382. hardcode_shlibpath_var_CXX=no
  12383. hardcode_direct_absolute_CXX=yes
  12384. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12385. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12386. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12387. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12388. export_dynamic_flag_spec_CXX='$wl-E'
  12389. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12390. fi
  12391. output_verbose_link_cmd=func_echo_all
  12392. else
  12393. ld_shlibs_CXX=no
  12394. fi
  12395. ;;
  12396. osf3* | osf4* | osf5*)
  12397. case $cc_basename in
  12398. KCC*)
  12399. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12400. # KCC will only create a shared library if the output file
  12401. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12402. # to its proper name (with version) after linking.
  12403. 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'
  12404. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12405. hardcode_libdir_separator_CXX=:
  12406. # Archives containing C++ object files must be created using
  12407. # the KAI C++ compiler.
  12408. case $host in
  12409. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12410. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12411. esac
  12412. ;;
  12413. RCC*)
  12414. # Rational C++ 2.4.1
  12415. # FIXME: insert proper C++ library support
  12416. ld_shlibs_CXX=no
  12417. ;;
  12418. cxx*)
  12419. case $host in
  12420. osf3*)
  12421. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12422. 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'
  12423. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12424. ;;
  12425. *)
  12426. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12427. 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'
  12428. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12429. echo "-hidden">> $lib.exp~
  12430. $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~
  12431. $RM $lib.exp'
  12432. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12433. ;;
  12434. esac
  12435. hardcode_libdir_separator_CXX=:
  12436. # Commands to make compiler produce verbose output that lists
  12437. # what "hidden" libraries, object files and flags are used when
  12438. # linking a shared library.
  12439. #
  12440. # There doesn't appear to be a way to prevent this compiler from
  12441. # explicitly linking system object files so we need to strip them
  12442. # from the output so that they don't get included in the library
  12443. # dependencies.
  12444. 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"'
  12445. ;;
  12446. *)
  12447. if test yes,no = "$GXX,$with_gnu_ld"; then
  12448. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12449. case $host in
  12450. osf3*)
  12451. 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'
  12452. ;;
  12453. *)
  12454. 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'
  12455. ;;
  12456. esac
  12457. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12458. hardcode_libdir_separator_CXX=:
  12459. # Commands to make compiler produce verbose output that lists
  12460. # what "hidden" libraries, object files and flags are used when
  12461. # linking a shared library.
  12462. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12463. else
  12464. # FIXME: insert proper C++ library support
  12465. ld_shlibs_CXX=no
  12466. fi
  12467. ;;
  12468. esac
  12469. ;;
  12470. psos*)
  12471. # FIXME: insert proper C++ library support
  12472. ld_shlibs_CXX=no
  12473. ;;
  12474. sunos4*)
  12475. case $cc_basename in
  12476. CC*)
  12477. # Sun C++ 4.x
  12478. # FIXME: insert proper C++ library support
  12479. ld_shlibs_CXX=no
  12480. ;;
  12481. lcc*)
  12482. # Lucid
  12483. # FIXME: insert proper C++ library support
  12484. ld_shlibs_CXX=no
  12485. ;;
  12486. *)
  12487. # FIXME: insert proper C++ library support
  12488. ld_shlibs_CXX=no
  12489. ;;
  12490. esac
  12491. ;;
  12492. solaris*)
  12493. case $cc_basename in
  12494. CC* | sunCC*)
  12495. # Sun C++ 4.2, 5.x and Centerline C++
  12496. archive_cmds_need_lc_CXX=yes
  12497. no_undefined_flag_CXX=' -zdefs'
  12498. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12499. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12500. $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'
  12501. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12502. hardcode_shlibpath_var_CXX=no
  12503. case $host_os in
  12504. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12505. *)
  12506. # The compiler driver will combine and reorder linker options,
  12507. # but understands '-z linker_flag'.
  12508. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12509. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12510. ;;
  12511. esac
  12512. link_all_deplibs_CXX=yes
  12513. output_verbose_link_cmd='func_echo_all'
  12514. # Archives containing C++ object files must be created using
  12515. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12516. # necessary to make sure instantiated templates are included
  12517. # in the archive.
  12518. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12519. ;;
  12520. gcx*)
  12521. # Green Hills C++ Compiler
  12522. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12523. # The C++ compiler must be used to create the archive.
  12524. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12525. ;;
  12526. *)
  12527. # GNU C++ compiler with Solaris linker
  12528. if test yes,no = "$GXX,$with_gnu_ld"; then
  12529. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12530. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12531. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12532. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12533. $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'
  12534. # Commands to make compiler produce verbose output that lists
  12535. # what "hidden" libraries, object files and flags are used when
  12536. # linking a shared library.
  12537. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12538. else
  12539. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12540. # platform.
  12541. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12542. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12543. $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'
  12544. # Commands to make compiler produce verbose output that lists
  12545. # what "hidden" libraries, object files and flags are used when
  12546. # linking a shared library.
  12547. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12548. fi
  12549. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12550. case $host_os in
  12551. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12552. *)
  12553. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12554. ;;
  12555. esac
  12556. fi
  12557. ;;
  12558. esac
  12559. ;;
  12560. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12561. no_undefined_flag_CXX='$wl-z,text'
  12562. archive_cmds_need_lc_CXX=no
  12563. hardcode_shlibpath_var_CXX=no
  12564. runpath_var='LD_RUN_PATH'
  12565. case $cc_basename in
  12566. CC*)
  12567. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12568. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12569. ;;
  12570. *)
  12571. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12572. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. ;;
  12574. esac
  12575. ;;
  12576. sysv5* | sco3.2v5* | sco5v6*)
  12577. # Note: We CANNOT use -z defs as we might desire, because we do not
  12578. # link with -lc, and that would cause any symbols used from libc to
  12579. # always be unresolved, which means just about no library would
  12580. # ever link correctly. If we're not using GNU ld we use -z text
  12581. # though, which does catch some bad symbols but isn't as heavy-handed
  12582. # as -z defs.
  12583. no_undefined_flag_CXX='$wl-z,text'
  12584. allow_undefined_flag_CXX='$wl-z,nodefs'
  12585. archive_cmds_need_lc_CXX=no
  12586. hardcode_shlibpath_var_CXX=no
  12587. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12588. hardcode_libdir_separator_CXX=':'
  12589. link_all_deplibs_CXX=yes
  12590. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12591. runpath_var='LD_RUN_PATH'
  12592. case $cc_basename in
  12593. CC*)
  12594. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12595. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12596. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12597. '"$old_archive_cmds_CXX"
  12598. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12599. '"$reload_cmds_CXX"
  12600. ;;
  12601. *)
  12602. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12603. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12604. ;;
  12605. esac
  12606. ;;
  12607. tandem*)
  12608. case $cc_basename in
  12609. NCC*)
  12610. # NonStop-UX NCC 3.20
  12611. # FIXME: insert proper C++ library support
  12612. ld_shlibs_CXX=no
  12613. ;;
  12614. *)
  12615. # FIXME: insert proper C++ library support
  12616. ld_shlibs_CXX=no
  12617. ;;
  12618. esac
  12619. ;;
  12620. vxworks*)
  12621. # FIXME: insert proper C++ library support
  12622. ld_shlibs_CXX=no
  12623. ;;
  12624. *)
  12625. # FIXME: insert proper C++ library support
  12626. ld_shlibs_CXX=no
  12627. ;;
  12628. esac
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12630. $as_echo "$ld_shlibs_CXX" >&6; }
  12631. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12632. GCC_CXX=$GXX
  12633. LD_CXX=$LD
  12634. ## CAVEAT EMPTOR:
  12635. ## There is no encapsulation within the following macros, do not change
  12636. ## the running order or otherwise move them around unless you know exactly
  12637. ## what you are doing...
  12638. # Dependencies to place before and after the object being linked:
  12639. predep_objects_CXX=
  12640. postdep_objects_CXX=
  12641. predeps_CXX=
  12642. postdeps_CXX=
  12643. compiler_lib_search_path_CXX=
  12644. cat > conftest.$ac_ext <<_LT_EOF
  12645. class Foo
  12646. {
  12647. public:
  12648. Foo (void) { a = 0; }
  12649. private:
  12650. int a;
  12651. };
  12652. _LT_EOF
  12653. _lt_libdeps_save_CFLAGS=$CFLAGS
  12654. case "$CC $CFLAGS " in #(
  12655. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12656. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12657. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12658. esac
  12659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12660. (eval $ac_compile) 2>&5
  12661. ac_status=$?
  12662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12663. test $ac_status = 0; }; then
  12664. # Parse the compiler output and extract the necessary
  12665. # objects, libraries and library flags.
  12666. # Sentinel used to keep track of whether or not we are before
  12667. # the conftest object file.
  12668. pre_test_object_deps_done=no
  12669. for p in `eval "$output_verbose_link_cmd"`; do
  12670. case $prev$p in
  12671. -L* | -R* | -l*)
  12672. # Some compilers place space between "-{L,R}" and the path.
  12673. # Remove the space.
  12674. if test x-L = "x$p" ||
  12675. test x-R = "x$p" ||
  12676. test x-l = "x$p"; then
  12677. prev=$p
  12678. continue
  12679. fi
  12680. # Expand the sysroot to ease extracting the directories later.
  12681. if test -z "$prev"; then
  12682. case $p in
  12683. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12684. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12685. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12686. esac
  12687. fi
  12688. case $p in
  12689. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12690. esac
  12691. if test no = "$pre_test_object_deps_done"; then
  12692. case $prev in
  12693. -L | -R)
  12694. # Internal compiler library paths should come after those
  12695. # provided the user. The postdeps already come after the
  12696. # user supplied libs so there is no need to process them.
  12697. if test -z "$compiler_lib_search_path_CXX"; then
  12698. compiler_lib_search_path_CXX=$prev$p
  12699. else
  12700. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12701. fi
  12702. ;;
  12703. # The "-l" case would never come before the object being
  12704. # linked, so don't bother handling this case.
  12705. esac
  12706. else
  12707. if test -z "$postdeps_CXX"; then
  12708. postdeps_CXX=$prev$p
  12709. else
  12710. postdeps_CXX="${postdeps_CXX} $prev$p"
  12711. fi
  12712. fi
  12713. prev=
  12714. ;;
  12715. *.lto.$objext) ;; # Ignore GCC LTO objects
  12716. *.$objext)
  12717. # This assumes that the test object file only shows up
  12718. # once in the compiler output.
  12719. if test "$p" = "conftest.$objext"; then
  12720. pre_test_object_deps_done=yes
  12721. continue
  12722. fi
  12723. if test no = "$pre_test_object_deps_done"; then
  12724. if test -z "$predep_objects_CXX"; then
  12725. predep_objects_CXX=$p
  12726. else
  12727. predep_objects_CXX="$predep_objects_CXX $p"
  12728. fi
  12729. else
  12730. if test -z "$postdep_objects_CXX"; then
  12731. postdep_objects_CXX=$p
  12732. else
  12733. postdep_objects_CXX="$postdep_objects_CXX $p"
  12734. fi
  12735. fi
  12736. ;;
  12737. *) ;; # Ignore the rest.
  12738. esac
  12739. done
  12740. # Clean up.
  12741. rm -f a.out a.exe
  12742. else
  12743. echo "libtool.m4: error: problem compiling CXX test program"
  12744. fi
  12745. $RM -f confest.$objext
  12746. CFLAGS=$_lt_libdeps_save_CFLAGS
  12747. # PORTME: override above test on systems where it is broken
  12748. case $host_os in
  12749. interix[3-9]*)
  12750. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12751. # hack all around it, let's just trust "g++" to DTRT.
  12752. predep_objects_CXX=
  12753. postdep_objects_CXX=
  12754. postdeps_CXX=
  12755. ;;
  12756. esac
  12757. case " $postdeps_CXX " in
  12758. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12759. esac
  12760. compiler_lib_search_dirs_CXX=
  12761. if test -n "${compiler_lib_search_path_CXX}"; then
  12762. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12763. fi
  12764. lt_prog_compiler_wl_CXX=
  12765. lt_prog_compiler_pic_CXX=
  12766. lt_prog_compiler_static_CXX=
  12767. # C++ specific cases for pic, static, wl, etc.
  12768. if test yes = "$GXX"; then
  12769. lt_prog_compiler_wl_CXX='-Wl,'
  12770. lt_prog_compiler_static_CXX='-static'
  12771. case $host_os in
  12772. aix*)
  12773. # All AIX code is PIC.
  12774. if test ia64 = "$host_cpu"; then
  12775. # AIX 5 now supports IA64 processor
  12776. lt_prog_compiler_static_CXX='-Bstatic'
  12777. fi
  12778. lt_prog_compiler_pic_CXX='-fPIC'
  12779. ;;
  12780. amigaos*)
  12781. case $host_cpu in
  12782. powerpc)
  12783. # see comment about AmigaOS4 .so support
  12784. lt_prog_compiler_pic_CXX='-fPIC'
  12785. ;;
  12786. m68k)
  12787. # FIXME: we need at least 68020 code to build shared libraries, but
  12788. # adding the '-m68020' flag to GCC prevents building anything better,
  12789. # like '-m68040'.
  12790. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12791. ;;
  12792. esac
  12793. ;;
  12794. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12795. # PIC is the default for these OSes.
  12796. ;;
  12797. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12798. # This hack is so that the source file can tell whether it is being
  12799. # built for inclusion in a dll (and should export symbols for example).
  12800. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12801. # (--disable-auto-import) libraries
  12802. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12803. case $host_os in
  12804. os2*)
  12805. lt_prog_compiler_static_CXX='$wl-static'
  12806. ;;
  12807. esac
  12808. ;;
  12809. darwin* | rhapsody*)
  12810. # PIC is the default on this platform
  12811. # Common symbols not allowed in MH_DYLIB files
  12812. lt_prog_compiler_pic_CXX='-fno-common'
  12813. ;;
  12814. *djgpp*)
  12815. # DJGPP does not support shared libraries at all
  12816. lt_prog_compiler_pic_CXX=
  12817. ;;
  12818. haiku*)
  12819. # PIC is the default for Haiku.
  12820. # The "-static" flag exists, but is broken.
  12821. lt_prog_compiler_static_CXX=
  12822. ;;
  12823. interix[3-9]*)
  12824. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12825. # Instead, we relocate shared libraries at runtime.
  12826. ;;
  12827. sysv4*MP*)
  12828. if test -d /usr/nec; then
  12829. lt_prog_compiler_pic_CXX=-Kconform_pic
  12830. fi
  12831. ;;
  12832. hpux*)
  12833. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12834. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12835. # sets the default TLS model and affects inlining.
  12836. case $host_cpu in
  12837. hppa*64*)
  12838. ;;
  12839. *)
  12840. lt_prog_compiler_pic_CXX='-fPIC'
  12841. ;;
  12842. esac
  12843. ;;
  12844. *qnx* | *nto*)
  12845. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12846. # it will coredump.
  12847. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12848. ;;
  12849. *)
  12850. lt_prog_compiler_pic_CXX='-fPIC'
  12851. ;;
  12852. esac
  12853. else
  12854. case $host_os in
  12855. aix[4-9]*)
  12856. # All AIX code is PIC.
  12857. if test ia64 = "$host_cpu"; then
  12858. # AIX 5 now supports IA64 processor
  12859. lt_prog_compiler_static_CXX='-Bstatic'
  12860. else
  12861. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12862. fi
  12863. ;;
  12864. chorus*)
  12865. case $cc_basename in
  12866. cxch68*)
  12867. # Green Hills C++ Compiler
  12868. # _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"
  12869. ;;
  12870. esac
  12871. ;;
  12872. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12873. # This hack is so that the source file can tell whether it is being
  12874. # built for inclusion in a dll (and should export symbols for example).
  12875. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12876. ;;
  12877. dgux*)
  12878. case $cc_basename in
  12879. ec++*)
  12880. lt_prog_compiler_pic_CXX='-KPIC'
  12881. ;;
  12882. ghcx*)
  12883. # Green Hills C++ Compiler
  12884. lt_prog_compiler_pic_CXX='-pic'
  12885. ;;
  12886. *)
  12887. ;;
  12888. esac
  12889. ;;
  12890. freebsd* | dragonfly* | midnightbsd*)
  12891. # FreeBSD uses GNU C++
  12892. ;;
  12893. hpux9* | hpux10* | hpux11*)
  12894. case $cc_basename in
  12895. CC*)
  12896. lt_prog_compiler_wl_CXX='-Wl,'
  12897. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12898. if test ia64 != "$host_cpu"; then
  12899. lt_prog_compiler_pic_CXX='+Z'
  12900. fi
  12901. ;;
  12902. aCC*)
  12903. lt_prog_compiler_wl_CXX='-Wl,'
  12904. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12905. case $host_cpu in
  12906. hppa*64*|ia64*)
  12907. # +Z the default
  12908. ;;
  12909. *)
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. ;;
  12912. esac
  12913. ;;
  12914. *)
  12915. ;;
  12916. esac
  12917. ;;
  12918. interix*)
  12919. # This is c89, which is MS Visual C++ (no shared libs)
  12920. # Anyone wants to do a port?
  12921. ;;
  12922. irix5* | irix6* | nonstopux*)
  12923. case $cc_basename in
  12924. CC*)
  12925. lt_prog_compiler_wl_CXX='-Wl,'
  12926. lt_prog_compiler_static_CXX='-non_shared'
  12927. # CC pic flag -KPIC is the default.
  12928. ;;
  12929. *)
  12930. ;;
  12931. esac
  12932. ;;
  12933. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12934. case $cc_basename in
  12935. KCC*)
  12936. # KAI C++ Compiler
  12937. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12938. lt_prog_compiler_pic_CXX='-fPIC'
  12939. ;;
  12940. ecpc* )
  12941. # old Intel C++ for x86_64, which still supported -KPIC.
  12942. lt_prog_compiler_wl_CXX='-Wl,'
  12943. lt_prog_compiler_pic_CXX='-KPIC'
  12944. lt_prog_compiler_static_CXX='-static'
  12945. ;;
  12946. icpc* )
  12947. # Intel C++, used to be incompatible with GCC.
  12948. # ICC 10 doesn't accept -KPIC any more.
  12949. lt_prog_compiler_wl_CXX='-Wl,'
  12950. lt_prog_compiler_pic_CXX='-fPIC'
  12951. lt_prog_compiler_static_CXX='-static'
  12952. ;;
  12953. pgCC* | pgcpp*)
  12954. # Portland Group C++ compiler
  12955. lt_prog_compiler_wl_CXX='-Wl,'
  12956. lt_prog_compiler_pic_CXX='-fpic'
  12957. lt_prog_compiler_static_CXX='-Bstatic'
  12958. ;;
  12959. cxx*)
  12960. # Compaq C++
  12961. # Make sure the PIC flag is empty. It appears that all Alpha
  12962. # Linux and Compaq Tru64 Unix objects are PIC.
  12963. lt_prog_compiler_pic_CXX=
  12964. lt_prog_compiler_static_CXX='-non_shared'
  12965. ;;
  12966. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12967. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-qpic'
  12970. lt_prog_compiler_static_CXX='-qstaticlink'
  12971. ;;
  12972. *)
  12973. case `$CC -V 2>&1 | sed 5q` in
  12974. *Sun\ C*)
  12975. # Sun C++ 5.9
  12976. lt_prog_compiler_pic_CXX='-KPIC'
  12977. lt_prog_compiler_static_CXX='-Bstatic'
  12978. lt_prog_compiler_wl_CXX='-Qoption ld '
  12979. ;;
  12980. esac
  12981. ;;
  12982. esac
  12983. ;;
  12984. lynxos*)
  12985. ;;
  12986. m88k*)
  12987. ;;
  12988. mvs*)
  12989. case $cc_basename in
  12990. cxx*)
  12991. lt_prog_compiler_pic_CXX='-W c,exportall'
  12992. ;;
  12993. *)
  12994. ;;
  12995. esac
  12996. ;;
  12997. netbsd*)
  12998. ;;
  12999. *qnx* | *nto*)
  13000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13001. # it will coredump.
  13002. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13003. ;;
  13004. osf3* | osf4* | osf5*)
  13005. case $cc_basename in
  13006. KCC*)
  13007. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13008. ;;
  13009. RCC*)
  13010. # Rational C++ 2.4.1
  13011. lt_prog_compiler_pic_CXX='-pic'
  13012. ;;
  13013. cxx*)
  13014. # Digital/Compaq C++
  13015. lt_prog_compiler_wl_CXX='-Wl,'
  13016. # Make sure the PIC flag is empty. It appears that all Alpha
  13017. # Linux and Compaq Tru64 Unix objects are PIC.
  13018. lt_prog_compiler_pic_CXX=
  13019. lt_prog_compiler_static_CXX='-non_shared'
  13020. ;;
  13021. *)
  13022. ;;
  13023. esac
  13024. ;;
  13025. psos*)
  13026. ;;
  13027. solaris*)
  13028. case $cc_basename in
  13029. CC* | sunCC*)
  13030. # Sun C++ 4.2, 5.x and Centerline C++
  13031. lt_prog_compiler_pic_CXX='-KPIC'
  13032. lt_prog_compiler_static_CXX='-Bstatic'
  13033. lt_prog_compiler_wl_CXX='-Qoption ld '
  13034. ;;
  13035. gcx*)
  13036. # Green Hills C++ Compiler
  13037. lt_prog_compiler_pic_CXX='-PIC'
  13038. ;;
  13039. *)
  13040. ;;
  13041. esac
  13042. ;;
  13043. sunos4*)
  13044. case $cc_basename in
  13045. CC*)
  13046. # Sun C++ 4.x
  13047. lt_prog_compiler_pic_CXX='-pic'
  13048. lt_prog_compiler_static_CXX='-Bstatic'
  13049. ;;
  13050. lcc*)
  13051. # Lucid
  13052. lt_prog_compiler_pic_CXX='-pic'
  13053. ;;
  13054. *)
  13055. ;;
  13056. esac
  13057. ;;
  13058. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13059. case $cc_basename in
  13060. CC*)
  13061. lt_prog_compiler_wl_CXX='-Wl,'
  13062. lt_prog_compiler_pic_CXX='-KPIC'
  13063. lt_prog_compiler_static_CXX='-Bstatic'
  13064. ;;
  13065. esac
  13066. ;;
  13067. tandem*)
  13068. case $cc_basename in
  13069. NCC*)
  13070. # NonStop-UX NCC 3.20
  13071. lt_prog_compiler_pic_CXX='-KPIC'
  13072. ;;
  13073. *)
  13074. ;;
  13075. esac
  13076. ;;
  13077. vxworks*)
  13078. ;;
  13079. *)
  13080. lt_prog_compiler_can_build_shared_CXX=no
  13081. ;;
  13082. esac
  13083. fi
  13084. case $host_os in
  13085. # For platforms that do not support PIC, -DPIC is meaningless:
  13086. *djgpp*)
  13087. lt_prog_compiler_pic_CXX=
  13088. ;;
  13089. *)
  13090. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13091. ;;
  13092. esac
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13094. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13095. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13096. $as_echo_n "(cached) " >&6
  13097. else
  13098. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13099. fi
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13101. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13102. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13103. #
  13104. # Check to make sure the PIC flag actually works.
  13105. #
  13106. if test -n "$lt_prog_compiler_pic_CXX"; then
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13108. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13109. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. lt_cv_prog_compiler_pic_works_CXX=no
  13113. ac_outfile=conftest.$ac_objext
  13114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13115. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13116. # Insert the option either (1) after the last *FLAGS variable, or
  13117. # (2) before a word containing "conftest.", or (3) at the end.
  13118. # Note that $ac_compile itself does not contain backslashes and begins
  13119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13120. # The option is referenced via a variable to avoid confusing sed.
  13121. lt_compile=`echo "$ac_compile" | $SED \
  13122. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13123. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13124. -e 's:$: $lt_compiler_flag:'`
  13125. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13126. (eval "$lt_compile" 2>conftest.err)
  13127. ac_status=$?
  13128. cat conftest.err >&5
  13129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13130. if (exit $ac_status) && test -s "$ac_outfile"; then
  13131. # The compiler can only warn and ignore the option if not recognized
  13132. # So say no if there are warnings other than the usual output.
  13133. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13134. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13135. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13136. lt_cv_prog_compiler_pic_works_CXX=yes
  13137. fi
  13138. fi
  13139. $RM conftest*
  13140. fi
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13142. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13143. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13144. case $lt_prog_compiler_pic_CXX in
  13145. "" | " "*) ;;
  13146. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13147. esac
  13148. else
  13149. lt_prog_compiler_pic_CXX=
  13150. lt_prog_compiler_can_build_shared_CXX=no
  13151. fi
  13152. fi
  13153. #
  13154. # Check to make sure the static flag actually works.
  13155. #
  13156. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13158. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13159. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13160. $as_echo_n "(cached) " >&6
  13161. else
  13162. lt_cv_prog_compiler_static_works_CXX=no
  13163. save_LDFLAGS=$LDFLAGS
  13164. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13167. # The linker can only warn and ignore the option if not recognized
  13168. # So say no if there are warnings
  13169. if test -s conftest.err; then
  13170. # Append any errors to the config.log.
  13171. cat conftest.err 1>&5
  13172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13174. if diff conftest.exp conftest.er2 >/dev/null; then
  13175. lt_cv_prog_compiler_static_works_CXX=yes
  13176. fi
  13177. else
  13178. lt_cv_prog_compiler_static_works_CXX=yes
  13179. fi
  13180. fi
  13181. $RM -r conftest*
  13182. LDFLAGS=$save_LDFLAGS
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13185. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13186. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13187. :
  13188. else
  13189. lt_prog_compiler_static_CXX=
  13190. fi
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13192. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13193. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13194. $as_echo_n "(cached) " >&6
  13195. else
  13196. lt_cv_prog_compiler_c_o_CXX=no
  13197. $RM -r conftest 2>/dev/null
  13198. mkdir conftest
  13199. cd conftest
  13200. mkdir out
  13201. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13202. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13203. # Insert the option either (1) after the last *FLAGS variable, or
  13204. # (2) before a word containing "conftest.", or (3) at the end.
  13205. # Note that $ac_compile itself does not contain backslashes and begins
  13206. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13207. lt_compile=`echo "$ac_compile" | $SED \
  13208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13210. -e 's:$: $lt_compiler_flag:'`
  13211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13212. (eval "$lt_compile" 2>out/conftest.err)
  13213. ac_status=$?
  13214. cat out/conftest.err >&5
  13215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13216. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13217. then
  13218. # The compiler can only warn and ignore the option if not recognized
  13219. # So say no if there are warnings
  13220. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13221. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13222. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13223. lt_cv_prog_compiler_c_o_CXX=yes
  13224. fi
  13225. fi
  13226. chmod u+w . 2>&5
  13227. $RM conftest*
  13228. # SGI C++ compiler will create directory out/ii_files/ for
  13229. # template instantiation
  13230. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13231. $RM out/* && rmdir out
  13232. cd ..
  13233. $RM -r conftest
  13234. $RM conftest*
  13235. fi
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13237. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13239. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13240. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13241. $as_echo_n "(cached) " >&6
  13242. else
  13243. lt_cv_prog_compiler_c_o_CXX=no
  13244. $RM -r conftest 2>/dev/null
  13245. mkdir conftest
  13246. cd conftest
  13247. mkdir out
  13248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13250. # Insert the option either (1) after the last *FLAGS variable, or
  13251. # (2) before a word containing "conftest.", or (3) at the end.
  13252. # Note that $ac_compile itself does not contain backslashes and begins
  13253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13254. lt_compile=`echo "$ac_compile" | $SED \
  13255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13257. -e 's:$: $lt_compiler_flag:'`
  13258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13259. (eval "$lt_compile" 2>out/conftest.err)
  13260. ac_status=$?
  13261. cat out/conftest.err >&5
  13262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13264. then
  13265. # The compiler can only warn and ignore the option if not recognized
  13266. # So say no if there are warnings
  13267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13270. lt_cv_prog_compiler_c_o_CXX=yes
  13271. fi
  13272. fi
  13273. chmod u+w . 2>&5
  13274. $RM conftest*
  13275. # SGI C++ compiler will create directory out/ii_files/ for
  13276. # template instantiation
  13277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13278. $RM out/* && rmdir out
  13279. cd ..
  13280. $RM -r conftest
  13281. $RM conftest*
  13282. fi
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13284. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13285. hard_links=nottested
  13286. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13287. # do not overwrite the value of need_locks provided by the user
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13289. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13290. hard_links=yes
  13291. $RM conftest*
  13292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13293. touch conftest.a
  13294. ln conftest.a conftest.b 2>&5 || hard_links=no
  13295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13297. $as_echo "$hard_links" >&6; }
  13298. if test no = "$hard_links"; then
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13300. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13301. need_locks=warn
  13302. fi
  13303. else
  13304. need_locks=no
  13305. fi
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13307. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13308. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13309. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13310. case $host_os in
  13311. aix[4-9]*)
  13312. # If we're using GNU nm, then we don't want the "-C" option.
  13313. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13314. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13315. # weak defined symbols like other global defined symbols, whereas
  13316. # GNU nm marks them as "W".
  13317. # While the 'weak' keyword is ignored in the Export File, we need
  13318. # it in the Import File for the 'aix-soname' feature, so we have
  13319. # to replace the "-B" option with "-P" for AIX nm.
  13320. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13321. 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'
  13322. else
  13323. 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'
  13324. fi
  13325. ;;
  13326. pw32*)
  13327. export_symbols_cmds_CXX=$ltdll_cmds
  13328. ;;
  13329. cygwin* | mingw* | cegcc*)
  13330. case $cc_basename in
  13331. cl*)
  13332. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13333. ;;
  13334. *)
  13335. 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'
  13336. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13337. ;;
  13338. esac
  13339. ;;
  13340. *)
  13341. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13342. ;;
  13343. esac
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13345. $as_echo "$ld_shlibs_CXX" >&6; }
  13346. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13347. with_gnu_ld_CXX=$with_gnu_ld
  13348. #
  13349. # Do we need to explicitly link libc?
  13350. #
  13351. case "x$archive_cmds_need_lc_CXX" in
  13352. x|xyes)
  13353. # Assume -lc should be added
  13354. archive_cmds_need_lc_CXX=yes
  13355. if test yes,yes = "$GCC,$enable_shared"; then
  13356. case $archive_cmds_CXX in
  13357. *'~'*)
  13358. # FIXME: we may have to deal with multi-command sequences.
  13359. ;;
  13360. '$CC '*)
  13361. # Test whether the compiler implicitly links with -lc since on some
  13362. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13363. # to ld, don't add -lc before -lgcc.
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13365. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13366. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13367. $as_echo_n "(cached) " >&6
  13368. else
  13369. $RM conftest*
  13370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13371. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13372. (eval $ac_compile) 2>&5
  13373. ac_status=$?
  13374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13375. test $ac_status = 0; } 2>conftest.err; then
  13376. soname=conftest
  13377. lib=conftest
  13378. libobjs=conftest.$ac_objext
  13379. deplibs=
  13380. wl=$lt_prog_compiler_wl_CXX
  13381. pic_flag=$lt_prog_compiler_pic_CXX
  13382. compiler_flags=-v
  13383. linker_flags=-v
  13384. verstring=
  13385. output_objdir=.
  13386. libname=conftest
  13387. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13388. allow_undefined_flag_CXX=
  13389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13390. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13391. ac_status=$?
  13392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13393. test $ac_status = 0; }
  13394. then
  13395. lt_cv_archive_cmds_need_lc_CXX=no
  13396. else
  13397. lt_cv_archive_cmds_need_lc_CXX=yes
  13398. fi
  13399. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13400. else
  13401. cat conftest.err 1>&5
  13402. fi
  13403. $RM conftest*
  13404. fi
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13406. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13407. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13408. ;;
  13409. esac
  13410. fi
  13411. ;;
  13412. esac
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13414. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13415. library_names_spec=
  13416. libname_spec='lib$name'
  13417. soname_spec=
  13418. shrext_cmds=.so
  13419. postinstall_cmds=
  13420. postuninstall_cmds=
  13421. finish_cmds=
  13422. finish_eval=
  13423. shlibpath_var=
  13424. shlibpath_overrides_runpath=unknown
  13425. version_type=none
  13426. dynamic_linker="$host_os ld.so"
  13427. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13428. need_lib_prefix=unknown
  13429. hardcode_into_libs=no
  13430. # when you set need_version to no, make sure it does not cause -set_version
  13431. # flags to be left without arguments
  13432. need_version=unknown
  13433. case $host_os in
  13434. aix3*)
  13435. version_type=linux # correct to gnu/linux during the next big refactor
  13436. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13437. shlibpath_var=LIBPATH
  13438. # AIX 3 has no versioning support, so we append a major version to the name.
  13439. soname_spec='$libname$release$shared_ext$major'
  13440. ;;
  13441. aix[4-9]*)
  13442. version_type=linux # correct to gnu/linux during the next big refactor
  13443. need_lib_prefix=no
  13444. need_version=no
  13445. hardcode_into_libs=yes
  13446. if test ia64 = "$host_cpu"; then
  13447. # AIX 5 supports IA64
  13448. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. else
  13451. # With GCC up to 2.95.x, collect2 would create an import file
  13452. # for dependence libraries. The import file would start with
  13453. # the line '#! .'. This would cause the generated library to
  13454. # depend on '.', always an invalid library. This was fixed in
  13455. # development snapshots of GCC prior to 3.0.
  13456. case $host_os in
  13457. aix4 | aix4.[01] | aix4.[01].*)
  13458. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13459. echo ' yes '
  13460. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13461. :
  13462. else
  13463. can_build_shared=no
  13464. fi
  13465. ;;
  13466. esac
  13467. # Using Import Files as archive members, it is possible to support
  13468. # filename-based versioning of shared library archives on AIX. While
  13469. # this would work for both with and without runtime linking, it will
  13470. # prevent static linking of such archives. So we do filename-based
  13471. # shared library versioning with .so extension only, which is used
  13472. # when both runtime linking and shared linking is enabled.
  13473. # Unfortunately, runtime linking may impact performance, so we do
  13474. # not want this to be the default eventually. Also, we use the
  13475. # versioned .so libs for executables only if there is the -brtl
  13476. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13477. # To allow for filename-based versioning support, we need to create
  13478. # libNAME.so.V as an archive file, containing:
  13479. # *) an Import File, referring to the versioned filename of the
  13480. # archive as well as the shared archive member, telling the
  13481. # bitwidth (32 or 64) of that shared object, and providing the
  13482. # list of exported symbols of that shared object, eventually
  13483. # decorated with the 'weak' keyword
  13484. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13485. # it being seen by the linker.
  13486. # At run time we better use the real file rather than another symlink,
  13487. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13488. case $with_aix_soname,$aix_use_runtimelinking in
  13489. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13490. # soname into executable. Probably we can add versioning support to
  13491. # collect2, so additional links can be useful in future.
  13492. aix,yes) # traditional libtool
  13493. dynamic_linker='AIX unversionable lib.so'
  13494. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13495. # instead of lib<name>.a to let people know that these are not
  13496. # typical AIX shared libraries.
  13497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13498. ;;
  13499. aix,no) # traditional AIX only
  13500. dynamic_linker='AIX lib.a(lib.so.V)'
  13501. # We preserve .a as extension for shared libraries through AIX4.2
  13502. # and later when we are not doing run time linking.
  13503. library_names_spec='$libname$release.a $libname.a'
  13504. soname_spec='$libname$release$shared_ext$major'
  13505. ;;
  13506. svr4,*) # full svr4 only
  13507. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13508. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13509. # We do not specify a path in Import Files, so LIBPATH fires.
  13510. shlibpath_overrides_runpath=yes
  13511. ;;
  13512. *,yes) # both, prefer svr4
  13513. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13514. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13515. # unpreferred sharedlib libNAME.a needs extra handling
  13516. 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"'
  13517. 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"'
  13518. # We do not specify a path in Import Files, so LIBPATH fires.
  13519. shlibpath_overrides_runpath=yes
  13520. ;;
  13521. *,no) # both, prefer aix
  13522. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13523. library_names_spec='$libname$release.a $libname.a'
  13524. soname_spec='$libname$release$shared_ext$major'
  13525. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13526. 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)'
  13527. 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"'
  13528. ;;
  13529. esac
  13530. shlibpath_var=LIBPATH
  13531. fi
  13532. ;;
  13533. amigaos*)
  13534. case $host_cpu in
  13535. powerpc)
  13536. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13537. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13538. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13539. ;;
  13540. m68k)
  13541. library_names_spec='$libname.ixlibrary $libname.a'
  13542. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13543. 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'
  13544. ;;
  13545. esac
  13546. ;;
  13547. beos*)
  13548. library_names_spec='$libname$shared_ext'
  13549. dynamic_linker="$host_os ld.so"
  13550. shlibpath_var=LIBRARY_PATH
  13551. ;;
  13552. bsdi[45]*)
  13553. version_type=linux # correct to gnu/linux during the next big refactor
  13554. need_version=no
  13555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13556. soname_spec='$libname$release$shared_ext$major'
  13557. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13558. shlibpath_var=LD_LIBRARY_PATH
  13559. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13560. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13561. # the default ld.so.conf also contains /usr/contrib/lib and
  13562. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13563. # libtool to hard-code these into programs
  13564. ;;
  13565. cygwin* | mingw* | pw32* | cegcc*)
  13566. version_type=windows
  13567. shrext_cmds=.dll
  13568. need_version=no
  13569. need_lib_prefix=no
  13570. case $GCC,$cc_basename in
  13571. yes,*)
  13572. # gcc
  13573. library_names_spec='$libname.dll.a'
  13574. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13575. postinstall_cmds='base_file=`basename \$file`~
  13576. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13577. dldir=$destdir/`dirname \$dlpath`~
  13578. test -d \$dldir || mkdir -p \$dldir~
  13579. $install_prog $dir/$dlname \$dldir/$dlname~
  13580. chmod a+x \$dldir/$dlname~
  13581. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13582. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13583. fi'
  13584. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13585. dlpath=$dir/\$dldll~
  13586. $RM \$dlpath'
  13587. shlibpath_overrides_runpath=yes
  13588. case $host_os in
  13589. cygwin*)
  13590. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13591. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13592. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13593. ;;
  13594. mingw* | cegcc*)
  13595. # MinGW DLLs use traditional 'lib' prefix
  13596. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13597. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13598. ;;
  13599. pw32*)
  13600. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13601. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13602. ;;
  13603. esac
  13604. dynamic_linker='Win32 ld.exe'
  13605. ;;
  13606. *,cl*)
  13607. # Native MSVC
  13608. libname_spec='$name'
  13609. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13610. library_names_spec='$libname.dll.lib'
  13611. case $build_os in
  13612. mingw*)
  13613. sys_lib_search_path_spec=
  13614. lt_save_ifs=$IFS
  13615. IFS=';'
  13616. for lt_path in $LIB
  13617. do
  13618. IFS=$lt_save_ifs
  13619. # Let DOS variable expansion print the short 8.3 style file name.
  13620. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13621. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13622. done
  13623. IFS=$lt_save_ifs
  13624. # Convert to MSYS style.
  13625. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13626. ;;
  13627. cygwin*)
  13628. # Convert to unix form, then to dos form, then back to unix form
  13629. # but this time dos style (no spaces!) so that the unix form looks
  13630. # like /cygdrive/c/PROGRA~1:/cygdr...
  13631. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13632. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13633. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13634. ;;
  13635. *)
  13636. sys_lib_search_path_spec=$LIB
  13637. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13638. # It is most probably a Windows format PATH.
  13639. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13640. else
  13641. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13642. fi
  13643. # FIXME: find the short name or the path components, as spaces are
  13644. # common. (e.g. "Program Files" -> "PROGRA~1")
  13645. ;;
  13646. esac
  13647. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13648. postinstall_cmds='base_file=`basename \$file`~
  13649. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13650. dldir=$destdir/`dirname \$dlpath`~
  13651. test -d \$dldir || mkdir -p \$dldir~
  13652. $install_prog $dir/$dlname \$dldir/$dlname'
  13653. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13654. dlpath=$dir/\$dldll~
  13655. $RM \$dlpath'
  13656. shlibpath_overrides_runpath=yes
  13657. dynamic_linker='Win32 link.exe'
  13658. ;;
  13659. *)
  13660. # Assume MSVC wrapper
  13661. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13662. dynamic_linker='Win32 ld.exe'
  13663. ;;
  13664. esac
  13665. # FIXME: first we should search . and the directory the executable is in
  13666. shlibpath_var=PATH
  13667. ;;
  13668. darwin* | rhapsody*)
  13669. dynamic_linker="$host_os dyld"
  13670. version_type=darwin
  13671. need_lib_prefix=no
  13672. need_version=no
  13673. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13674. soname_spec='$libname$release$major$shared_ext'
  13675. shlibpath_overrides_runpath=yes
  13676. shlibpath_var=DYLD_LIBRARY_PATH
  13677. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13678. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13679. ;;
  13680. dgux*)
  13681. version_type=linux # correct to gnu/linux during the next big refactor
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13685. soname_spec='$libname$release$shared_ext$major'
  13686. shlibpath_var=LD_LIBRARY_PATH
  13687. ;;
  13688. freebsd* | dragonfly* | midnightbsd*)
  13689. # DragonFly does not have aout. When/if they implement a new
  13690. # versioning mechanism, adjust this.
  13691. if test -x /usr/bin/objformat; then
  13692. objformat=`/usr/bin/objformat`
  13693. else
  13694. case $host_os in
  13695. freebsd[23].*) objformat=aout ;;
  13696. *) objformat=elf ;;
  13697. esac
  13698. fi
  13699. version_type=freebsd-$objformat
  13700. case $version_type in
  13701. freebsd-elf*)
  13702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13703. soname_spec='$libname$release$shared_ext$major'
  13704. need_version=no
  13705. need_lib_prefix=no
  13706. ;;
  13707. freebsd-*)
  13708. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13709. need_version=yes
  13710. ;;
  13711. esac
  13712. shlibpath_var=LD_LIBRARY_PATH
  13713. case $host_os in
  13714. freebsd2.*)
  13715. shlibpath_overrides_runpath=yes
  13716. ;;
  13717. freebsd3.[01]* | freebsdelf3.[01]*)
  13718. shlibpath_overrides_runpath=yes
  13719. hardcode_into_libs=yes
  13720. ;;
  13721. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13722. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13723. shlibpath_overrides_runpath=no
  13724. hardcode_into_libs=yes
  13725. ;;
  13726. *) # from 4.6 on, and DragonFly
  13727. shlibpath_overrides_runpath=yes
  13728. hardcode_into_libs=yes
  13729. ;;
  13730. esac
  13731. ;;
  13732. haiku*)
  13733. version_type=linux # correct to gnu/linux during the next big refactor
  13734. need_lib_prefix=no
  13735. need_version=no
  13736. dynamic_linker="$host_os runtime_loader"
  13737. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13738. soname_spec='$libname$release$shared_ext$major'
  13739. shlibpath_var=LIBRARY_PATH
  13740. shlibpath_overrides_runpath=no
  13741. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13742. hardcode_into_libs=yes
  13743. ;;
  13744. hpux9* | hpux10* | hpux11*)
  13745. # Give a soname corresponding to the major version so that dld.sl refuses to
  13746. # link against other versions.
  13747. version_type=sunos
  13748. need_lib_prefix=no
  13749. need_version=no
  13750. case $host_cpu in
  13751. ia64*)
  13752. shrext_cmds='.so'
  13753. hardcode_into_libs=yes
  13754. dynamic_linker="$host_os dld.so"
  13755. shlibpath_var=LD_LIBRARY_PATH
  13756. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13758. soname_spec='$libname$release$shared_ext$major'
  13759. if test 32 = "$HPUX_IA64_MODE"; then
  13760. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13761. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13762. else
  13763. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13764. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13765. fi
  13766. ;;
  13767. hppa*64*)
  13768. shrext_cmds='.sl'
  13769. hardcode_into_libs=yes
  13770. dynamic_linker="$host_os dld.sl"
  13771. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13772. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13774. soname_spec='$libname$release$shared_ext$major'
  13775. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13777. ;;
  13778. *)
  13779. shrext_cmds='.sl'
  13780. dynamic_linker="$host_os dld.sl"
  13781. shlibpath_var=SHLIB_PATH
  13782. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13784. soname_spec='$libname$release$shared_ext$major'
  13785. ;;
  13786. esac
  13787. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13788. postinstall_cmds='chmod 555 $lib'
  13789. # or fails outright, so override atomically:
  13790. install_override_mode=555
  13791. ;;
  13792. interix[3-9]*)
  13793. version_type=linux # correct to gnu/linux during the next big refactor
  13794. need_lib_prefix=no
  13795. need_version=no
  13796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13797. soname_spec='$libname$release$shared_ext$major'
  13798. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13799. shlibpath_var=LD_LIBRARY_PATH
  13800. shlibpath_overrides_runpath=no
  13801. hardcode_into_libs=yes
  13802. ;;
  13803. irix5* | irix6* | nonstopux*)
  13804. case $host_os in
  13805. nonstopux*) version_type=nonstopux ;;
  13806. *)
  13807. if test yes = "$lt_cv_prog_gnu_ld"; then
  13808. version_type=linux # correct to gnu/linux during the next big refactor
  13809. else
  13810. version_type=irix
  13811. fi ;;
  13812. esac
  13813. need_lib_prefix=no
  13814. need_version=no
  13815. soname_spec='$libname$release$shared_ext$major'
  13816. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13817. case $host_os in
  13818. irix5* | nonstopux*)
  13819. libsuff= shlibsuff=
  13820. ;;
  13821. *)
  13822. case $LD in # libtool.m4 will add one of these switches to LD
  13823. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13824. libsuff= shlibsuff= libmagic=32-bit;;
  13825. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13826. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13827. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13828. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13829. *) libsuff= shlibsuff= libmagic=never-match;;
  13830. esac
  13831. ;;
  13832. esac
  13833. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13834. shlibpath_overrides_runpath=no
  13835. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13836. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13837. hardcode_into_libs=yes
  13838. ;;
  13839. # No shared lib support for Linux oldld, aout, or coff.
  13840. linux*oldld* | linux*aout* | linux*coff*)
  13841. dynamic_linker=no
  13842. ;;
  13843. linux*android*)
  13844. version_type=none # Android doesn't support versioned libraries.
  13845. need_lib_prefix=no
  13846. need_version=no
  13847. library_names_spec='$libname$release$shared_ext'
  13848. soname_spec='$libname$release$shared_ext'
  13849. finish_cmds=
  13850. shlibpath_var=LD_LIBRARY_PATH
  13851. shlibpath_overrides_runpath=yes
  13852. # This implies no fast_install, which is unacceptable.
  13853. # Some rework will be needed to allow for fast_install
  13854. # before this can be enabled.
  13855. hardcode_into_libs=yes
  13856. dynamic_linker='Android linker'
  13857. # Don't embed -rpath directories since the linker doesn't support them.
  13858. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13859. ;;
  13860. # This must be glibc/ELF.
  13861. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13862. version_type=linux # correct to gnu/linux during the next big refactor
  13863. need_lib_prefix=no
  13864. need_version=no
  13865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13866. soname_spec='$libname$release$shared_ext$major'
  13867. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13868. shlibpath_var=LD_LIBRARY_PATH
  13869. shlibpath_overrides_runpath=no
  13870. # Some binutils ld are patched to set DT_RUNPATH
  13871. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. lt_cv_shlibpath_overrides_runpath=no
  13875. save_LDFLAGS=$LDFLAGS
  13876. save_libdir=$libdir
  13877. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13878. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. int
  13882. main ()
  13883. {
  13884. ;
  13885. return 0;
  13886. }
  13887. _ACEOF
  13888. if ac_fn_cxx_try_link "$LINENO"; then :
  13889. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13890. lt_cv_shlibpath_overrides_runpath=yes
  13891. fi
  13892. fi
  13893. rm -f core conftest.err conftest.$ac_objext \
  13894. conftest$ac_exeext conftest.$ac_ext
  13895. LDFLAGS=$save_LDFLAGS
  13896. libdir=$save_libdir
  13897. fi
  13898. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13899. # This implies no fast_install, which is unacceptable.
  13900. # Some rework will be needed to allow for fast_install
  13901. # before this can be enabled.
  13902. hardcode_into_libs=yes
  13903. # Add ABI-specific directories to the system library path.
  13904. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13905. # Ideally, we could use ldconfig to report *all* directores which are
  13906. # searched for libraries, however this is still not possible. Aside from not
  13907. # being certain /sbin/ldconfig is available, command
  13908. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13909. # even though it is searched at run-time. Try to do the best guess by
  13910. # appending ld.so.conf contents (and includes) to the search path.
  13911. if test -f /etc/ld.so.conf; then
  13912. 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' ' '`
  13913. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13914. fi
  13915. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13916. # powerpc, because MkLinux only supported shared libraries with the
  13917. # GNU dynamic linker. Since this was broken with cross compilers,
  13918. # most powerpc-linux boxes support dynamic linking these days and
  13919. # people can always --disable-shared, the test was removed, and we
  13920. # assume the GNU/Linux dynamic linker is in use.
  13921. dynamic_linker='GNU/Linux ld.so'
  13922. ;;
  13923. netbsd*)
  13924. version_type=sunos
  13925. need_lib_prefix=no
  13926. need_version=no
  13927. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13928. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13929. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13930. dynamic_linker='NetBSD (a.out) ld.so'
  13931. else
  13932. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13933. soname_spec='$libname$release$shared_ext$major'
  13934. dynamic_linker='NetBSD ld.elf_so'
  13935. fi
  13936. shlibpath_var=LD_LIBRARY_PATH
  13937. shlibpath_overrides_runpath=yes
  13938. hardcode_into_libs=yes
  13939. ;;
  13940. newsos6)
  13941. version_type=linux # correct to gnu/linux during the next big refactor
  13942. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13943. shlibpath_var=LD_LIBRARY_PATH
  13944. shlibpath_overrides_runpath=yes
  13945. ;;
  13946. *nto* | *qnx*)
  13947. version_type=qnx
  13948. need_lib_prefix=no
  13949. need_version=no
  13950. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13951. soname_spec='$libname$release$shared_ext$major'
  13952. shlibpath_var=LD_LIBRARY_PATH
  13953. shlibpath_overrides_runpath=no
  13954. hardcode_into_libs=yes
  13955. dynamic_linker='ldqnx.so'
  13956. ;;
  13957. openbsd* | bitrig*)
  13958. version_type=sunos
  13959. sys_lib_dlsearch_path_spec=/usr/lib
  13960. need_lib_prefix=no
  13961. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13962. need_version=no
  13963. else
  13964. need_version=yes
  13965. fi
  13966. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13967. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13968. shlibpath_var=LD_LIBRARY_PATH
  13969. shlibpath_overrides_runpath=yes
  13970. ;;
  13971. os2*)
  13972. libname_spec='$name'
  13973. shrext_cmds=.dll
  13974. need_lib_prefix=no
  13975. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13976. # SDL customization: removed versioning support.
  13977. # version_type=windows
  13978. # need_version=no
  13979. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13980. # v=$($ECHO $release$versuffix | tr -d .-);
  13981. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13982. # $ECHO $n$v`$shared_ext'
  13983. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13984. library_names_spec='${libname}_dll.$libext'
  13985. dynamic_linker='OS/2 ld.exe'
  13986. shlibpath_var=BEGINLIBPATH
  13987. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13989. postinstall_cmds='base_file=`basename \$file`~
  13990. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13991. dldir=$destdir/`dirname \$dlpath`~
  13992. test -d \$dldir || mkdir -p \$dldir~
  13993. $install_prog $dir/$dlname \$dldir/$dlname~
  13994. chmod a+x \$dldir/$dlname~
  13995. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13996. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13997. fi'
  13998. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13999. dlpath=$dir/\$dldll~
  14000. $RM \$dlpath'
  14001. ;;
  14002. osf3* | osf4* | osf5*)
  14003. version_type=osf
  14004. need_lib_prefix=no
  14005. need_version=no
  14006. soname_spec='$libname$release$shared_ext$major'
  14007. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14008. shlibpath_var=LD_LIBRARY_PATH
  14009. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14010. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14011. ;;
  14012. rdos*)
  14013. dynamic_linker=no
  14014. ;;
  14015. solaris*)
  14016. version_type=linux # correct to gnu/linux during the next big refactor
  14017. need_lib_prefix=no
  14018. need_version=no
  14019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14020. soname_spec='$libname$release$shared_ext$major'
  14021. shlibpath_var=LD_LIBRARY_PATH
  14022. shlibpath_overrides_runpath=yes
  14023. hardcode_into_libs=yes
  14024. # ldd complains unless libraries are executable
  14025. postinstall_cmds='chmod +x $lib'
  14026. ;;
  14027. sunos4*)
  14028. version_type=sunos
  14029. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14030. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14031. shlibpath_var=LD_LIBRARY_PATH
  14032. shlibpath_overrides_runpath=yes
  14033. if test yes = "$with_gnu_ld"; then
  14034. need_lib_prefix=no
  14035. fi
  14036. need_version=yes
  14037. ;;
  14038. sysv4 | sysv4.3*)
  14039. version_type=linux # correct to gnu/linux during the next big refactor
  14040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14041. soname_spec='$libname$release$shared_ext$major'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. case $host_vendor in
  14044. sni)
  14045. shlibpath_overrides_runpath=no
  14046. need_lib_prefix=no
  14047. runpath_var=LD_RUN_PATH
  14048. ;;
  14049. siemens)
  14050. need_lib_prefix=no
  14051. ;;
  14052. motorola)
  14053. need_lib_prefix=no
  14054. need_version=no
  14055. shlibpath_overrides_runpath=no
  14056. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14057. ;;
  14058. esac
  14059. ;;
  14060. sysv4*MP*)
  14061. if test -d /usr/nec; then
  14062. version_type=linux # correct to gnu/linux during the next big refactor
  14063. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14064. soname_spec='$libname$shared_ext.$major'
  14065. shlibpath_var=LD_LIBRARY_PATH
  14066. fi
  14067. ;;
  14068. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14069. version_type=sco
  14070. need_lib_prefix=no
  14071. need_version=no
  14072. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14073. soname_spec='$libname$release$shared_ext$major'
  14074. shlibpath_var=LD_LIBRARY_PATH
  14075. shlibpath_overrides_runpath=yes
  14076. hardcode_into_libs=yes
  14077. if test yes = "$with_gnu_ld"; then
  14078. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14079. else
  14080. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14081. case $host_os in
  14082. sco3.2v5*)
  14083. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14084. ;;
  14085. esac
  14086. fi
  14087. sys_lib_dlsearch_path_spec='/usr/lib'
  14088. ;;
  14089. tpf*)
  14090. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14091. version_type=linux # correct to gnu/linux during the next big refactor
  14092. need_lib_prefix=no
  14093. need_version=no
  14094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14095. shlibpath_var=LD_LIBRARY_PATH
  14096. shlibpath_overrides_runpath=no
  14097. hardcode_into_libs=yes
  14098. ;;
  14099. uts4*)
  14100. version_type=linux # correct to gnu/linux during the next big refactor
  14101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14102. soname_spec='$libname$release$shared_ext$major'
  14103. shlibpath_var=LD_LIBRARY_PATH
  14104. ;;
  14105. *)
  14106. dynamic_linker=no
  14107. ;;
  14108. esac
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14110. $as_echo "$dynamic_linker" >&6; }
  14111. test no = "$dynamic_linker" && can_build_shared=no
  14112. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14113. if test yes = "$GCC"; then
  14114. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14115. fi
  14116. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14117. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14118. fi
  14119. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14120. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14121. fi
  14122. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14123. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14124. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14125. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14126. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14127. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14129. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14130. hardcode_action_CXX=
  14131. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14132. test -n "$runpath_var_CXX" ||
  14133. test yes = "$hardcode_automatic_CXX"; then
  14134. # We can hardcode non-existent directories.
  14135. if test no != "$hardcode_direct_CXX" &&
  14136. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14137. # have to relink, otherwise we might link with an installed library
  14138. # when we should be linking with a yet-to-be-installed one
  14139. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14140. test no != "$hardcode_minus_L_CXX"; then
  14141. # Linking always hardcodes the temporary library directory.
  14142. hardcode_action_CXX=relink
  14143. else
  14144. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14145. hardcode_action_CXX=immediate
  14146. fi
  14147. else
  14148. # We cannot hardcode anything, or else we can only hardcode existing
  14149. # directories.
  14150. hardcode_action_CXX=unsupported
  14151. fi
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14153. $as_echo "$hardcode_action_CXX" >&6; }
  14154. if test relink = "$hardcode_action_CXX" ||
  14155. test yes = "$inherit_rpath_CXX"; then
  14156. # Fast installation is not supported
  14157. enable_fast_install=no
  14158. elif test yes = "$shlibpath_overrides_runpath" ||
  14159. test no = "$enable_shared"; then
  14160. # Fast installation is not necessary
  14161. enable_fast_install=needless
  14162. fi
  14163. fi # test -n "$compiler"
  14164. CC=$lt_save_CC
  14165. CFLAGS=$lt_save_CFLAGS
  14166. LDCXX=$LD
  14167. LD=$lt_save_LD
  14168. GCC=$lt_save_GCC
  14169. with_gnu_ld=$lt_save_with_gnu_ld
  14170. lt_cv_path_LDCXX=$lt_cv_path_LD
  14171. lt_cv_path_LD=$lt_save_path_LD
  14172. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14173. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14174. fi # test yes != "$_lt_caught_CXX_error"
  14175. ac_ext=c
  14176. ac_cpp='$CPP $CPPFLAGS'
  14177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14180. # Find a good install program. We prefer a C program (faster),
  14181. # so one script is as good as another. But avoid the broken or
  14182. # incompatible versions:
  14183. # SysV /etc/install, /usr/sbin/install
  14184. # SunOS /usr/etc/install
  14185. # IRIX /sbin/install
  14186. # AIX /bin/install
  14187. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14188. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14189. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14190. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14191. # OS/2's system install, which has a completely different semantic
  14192. # ./install, which can be erroneously created by make from ./install.sh.
  14193. # Reject install programs that cannot install multiple files.
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14195. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14196. if test -z "$INSTALL"; then
  14197. if ${ac_cv_path_install+:} false; then :
  14198. $as_echo_n "(cached) " >&6
  14199. else
  14200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14201. for as_dir in $PATH
  14202. do
  14203. IFS=$as_save_IFS
  14204. test -z "$as_dir" && as_dir=.
  14205. # Account for people who put trailing slashes in PATH elements.
  14206. case $as_dir/ in #((
  14207. ./ | .// | /[cC]/* | \
  14208. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14209. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14210. /usr/ucb/* ) ;;
  14211. *)
  14212. # OSF1 and SCO ODT 3.0 have their own names for install.
  14213. # Don't use installbsd from OSF since it installs stuff as root
  14214. # by default.
  14215. for ac_prog in ginstall scoinst install; do
  14216. for ac_exec_ext in '' $ac_executable_extensions; do
  14217. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14218. if test $ac_prog = install &&
  14219. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14220. # AIX install. It has an incompatible calling convention.
  14221. :
  14222. elif test $ac_prog = install &&
  14223. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14224. # program-specific install script used by HP pwplus--don't use.
  14225. :
  14226. else
  14227. rm -rf conftest.one conftest.two conftest.dir
  14228. echo one > conftest.one
  14229. echo two > conftest.two
  14230. mkdir conftest.dir
  14231. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14232. test -s conftest.one && test -s conftest.two &&
  14233. test -s conftest.dir/conftest.one &&
  14234. test -s conftest.dir/conftest.two
  14235. then
  14236. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14237. break 3
  14238. fi
  14239. fi
  14240. fi
  14241. done
  14242. done
  14243. ;;
  14244. esac
  14245. done
  14246. IFS=$as_save_IFS
  14247. rm -rf conftest.one conftest.two conftest.dir
  14248. fi
  14249. if test "${ac_cv_path_install+set}" = set; then
  14250. INSTALL=$ac_cv_path_install
  14251. else
  14252. # As a last resort, use the slow shell script. Don't cache a
  14253. # value for INSTALL within a source directory, because that will
  14254. # break other packages using the cache if that directory is
  14255. # removed, or if the value is a relative name.
  14256. INSTALL=$ac_install_sh
  14257. fi
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14260. $as_echo "$INSTALL" >&6; }
  14261. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14262. # It thinks the first close brace ends the variable substitution.
  14263. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14264. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14265. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14267. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14268. set x ${MAKE-make}
  14269. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14270. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14271. $as_echo_n "(cached) " >&6
  14272. else
  14273. cat >conftest.make <<\_ACEOF
  14274. SHELL = /bin/sh
  14275. all:
  14276. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14277. _ACEOF
  14278. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14279. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14280. *@@@%%%=?*=@@@%%%*)
  14281. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14282. *)
  14283. eval ac_cv_prog_make_${ac_make}_set=no;;
  14284. esac
  14285. rm -f conftest.make
  14286. fi
  14287. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14289. $as_echo "yes" >&6; }
  14290. SET_MAKE=
  14291. else
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14293. $as_echo "no" >&6; }
  14294. SET_MAKE="MAKE=${MAKE-make}"
  14295. fi
  14296. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14297. if test -n "$ac_tool_prefix"; then
  14298. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14299. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14301. $as_echo_n "checking for $ac_word... " >&6; }
  14302. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14303. $as_echo_n "(cached) " >&6
  14304. else
  14305. case $PKG_CONFIG in
  14306. [\\/]* | ?:[\\/]*)
  14307. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14308. ;;
  14309. *)
  14310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14311. for as_dir in $PATH
  14312. do
  14313. IFS=$as_save_IFS
  14314. test -z "$as_dir" && as_dir=.
  14315. for ac_exec_ext in '' $ac_executable_extensions; do
  14316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14317. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14319. break 2
  14320. fi
  14321. done
  14322. done
  14323. IFS=$as_save_IFS
  14324. ;;
  14325. esac
  14326. fi
  14327. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14328. if test -n "$PKG_CONFIG"; then
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14330. $as_echo "$PKG_CONFIG" >&6; }
  14331. else
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14333. $as_echo "no" >&6; }
  14334. fi
  14335. fi
  14336. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14337. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14338. # Extract the first word of "pkg-config", so it can be a program name with args.
  14339. set dummy pkg-config; ac_word=$2
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14341. $as_echo_n "checking for $ac_word... " >&6; }
  14342. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14343. $as_echo_n "(cached) " >&6
  14344. else
  14345. case $ac_pt_PKG_CONFIG in
  14346. [\\/]* | ?:[\\/]*)
  14347. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14348. ;;
  14349. *)
  14350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14351. for as_dir in $PATH
  14352. do
  14353. IFS=$as_save_IFS
  14354. test -z "$as_dir" && as_dir=.
  14355. for ac_exec_ext in '' $ac_executable_extensions; do
  14356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14357. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14359. break 2
  14360. fi
  14361. done
  14362. done
  14363. IFS=$as_save_IFS
  14364. ;;
  14365. esac
  14366. fi
  14367. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14368. if test -n "$ac_pt_PKG_CONFIG"; then
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14370. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14371. else
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14373. $as_echo "no" >&6; }
  14374. fi
  14375. if test "x$ac_pt_PKG_CONFIG" = x; then
  14376. PKG_CONFIG=""
  14377. else
  14378. case $cross_compiling:$ac_tool_warned in
  14379. yes:)
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14382. ac_tool_warned=yes ;;
  14383. esac
  14384. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14385. fi
  14386. else
  14387. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14388. fi
  14389. fi
  14390. if test -n "$PKG_CONFIG"; then
  14391. _pkg_min_version=0.9.0
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14393. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14394. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14396. $as_echo "yes" >&6; }
  14397. else
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14399. $as_echo "no" >&6; }
  14400. PKG_CONFIG=""
  14401. fi
  14402. fi
  14403. case "$host" in
  14404. *-*-mingw*)
  14405. # Except on msys, where make can't handle full pathnames (bug 1972)
  14406. ;;
  14407. *)
  14408. srcdir=`cd $srcdir && pwd`
  14409. ;;
  14410. esac
  14411. INCLUDE="-I$srcdir/include"
  14412. case "$host" in
  14413. *-*-nto-qnx*)
  14414. ;;
  14415. *)
  14416. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14417. ;;
  14418. esac
  14419. case "$host" in
  14420. *-*-haiku*)
  14421. LINKER='$(CXX)'
  14422. LIBTOOLLINKERTAG='CXX'
  14423. ;;
  14424. *)
  14425. LINKER='$(CC)'
  14426. LIBTOOLLINKERTAG='CC'
  14427. ;;
  14428. esac
  14429. if test x$srcdir != x.; then
  14430. INCLUDE="-Iinclude $INCLUDE"
  14431. elif test -d .git; then
  14432. as_fn_error $? "
  14433. *** When building from a git clone you should configure and build in a
  14434. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14435. " "$LINENO" 5
  14436. fi
  14437. BASE_CFLAGS=""
  14438. BASE_LDFLAGS=""
  14439. case "$host" in
  14440. *-*-cygwin*)
  14441. # We build SDL on cygwin without the UNIX emulation layer
  14442. save_CFLAGS="$CFLAGS"
  14443. have_no_cygwin=no
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14445. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14446. CFLAGS="$save_CFLAGS -mno-cygwin"
  14447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14448. /* end confdefs.h. */
  14449. int
  14450. main ()
  14451. {
  14452. ;
  14453. return 0;
  14454. }
  14455. _ACEOF
  14456. if ac_fn_c_try_compile "$LINENO"; then :
  14457. have_no_cygwin=yes
  14458. fi
  14459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14461. $as_echo "$have_no_cygwin" >&6; }
  14462. CFLAGS="$save_CFLAGS"
  14463. if test x$have_no_cygwin = xyes; then
  14464. BASE_CFLAGS="-mno-cygwin"
  14465. BASE_LDFLAGS="-mno-cygwin"
  14466. fi
  14467. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14468. ;;
  14469. esac
  14470. # Uncomment the following line if you want to force SDL and applications
  14471. # built with it to be compiled for a particular architecture.
  14472. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14473. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14474. # The default optimization for SDL is -O3 (Bug #31)
  14475. if test "x$orig_CFLAGS" = x; then
  14476. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14477. fi
  14478. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14479. BUILD_LDFLAGS="$LDFLAGS"
  14480. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14481. ## These are common directories to find software packages
  14482. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14483. # if test -d $path/include; then
  14484. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14485. # fi
  14486. # if test -d $path/lib; then
  14487. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14488. # fi
  14489. #done
  14490. SDL_CFLAGS="$BASE_CFLAGS"
  14491. SDL_LIBS="-lSDL2"
  14492. if test "x$BASE_LDFLAGS" != x; then
  14493. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14494. fi
  14495. if test "x$EXTRA_CFLAGS" != x; then
  14496. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14497. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14498. fi
  14499. if test "x$EXTRA_LDFLAGS" != x; then
  14500. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14501. fi
  14502. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14503. find_lib()
  14504. {
  14505. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14506. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14507. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14508. if test "$cross_compiling" = yes; then
  14509. host_lib_path=""
  14510. else
  14511. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14512. fi
  14513. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14514. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14515. if test x$lib != x; then
  14516. echo $lib
  14517. return
  14518. fi
  14519. done
  14520. # Try again, this time allowing more than one version digit after the .so
  14521. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14522. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14523. if test x$lib != x; then
  14524. echo $lib
  14525. return
  14526. fi
  14527. done
  14528. }
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14530. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14531. if ${ac_cv_c_const+:} false; then :
  14532. $as_echo_n "(cached) " >&6
  14533. else
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. int
  14537. main ()
  14538. {
  14539. #ifndef __cplusplus
  14540. /* Ultrix mips cc rejects this sort of thing. */
  14541. typedef int charset[2];
  14542. const charset cs = { 0, 0 };
  14543. /* SunOS 4.1.1 cc rejects this. */
  14544. char const *const *pcpcc;
  14545. char **ppc;
  14546. /* NEC SVR4.0.2 mips cc rejects this. */
  14547. struct point {int x, y;};
  14548. static struct point const zero = {0,0};
  14549. /* AIX XL C 1.02.0.0 rejects this.
  14550. It does not let you subtract one const X* pointer from another in
  14551. an arm of an if-expression whose if-part is not a constant
  14552. expression */
  14553. const char *g = "string";
  14554. pcpcc = &g + (g ? g-g : 0);
  14555. /* HPUX 7.0 cc rejects these. */
  14556. ++pcpcc;
  14557. ppc = (char**) pcpcc;
  14558. pcpcc = (char const *const *) ppc;
  14559. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14560. char tx;
  14561. char *t = &tx;
  14562. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14563. *t++ = 0;
  14564. if (s) return 0;
  14565. }
  14566. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14567. int x[] = {25, 17};
  14568. const int *foo = &x[0];
  14569. ++foo;
  14570. }
  14571. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14572. typedef const int *iptr;
  14573. iptr p = 0;
  14574. ++p;
  14575. }
  14576. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14577. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14578. struct s { int j; const int *ap[3]; } bx;
  14579. struct s *b = &bx; b->j = 5;
  14580. }
  14581. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14582. const int foo = 10;
  14583. if (!foo) return 0;
  14584. }
  14585. return !cs[0] && !zero.x;
  14586. #endif
  14587. ;
  14588. return 0;
  14589. }
  14590. _ACEOF
  14591. if ac_fn_c_try_compile "$LINENO"; then :
  14592. ac_cv_c_const=yes
  14593. else
  14594. ac_cv_c_const=no
  14595. fi
  14596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14597. fi
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14599. $as_echo "$ac_cv_c_const" >&6; }
  14600. if test $ac_cv_c_const = no; then
  14601. $as_echo "#define const /**/" >>confdefs.h
  14602. fi
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14604. $as_echo_n "checking for inline... " >&6; }
  14605. if ${ac_cv_c_inline+:} false; then :
  14606. $as_echo_n "(cached) " >&6
  14607. else
  14608. ac_cv_c_inline=no
  14609. for ac_kw in inline __inline__ __inline; do
  14610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14611. /* end confdefs.h. */
  14612. #ifndef __cplusplus
  14613. typedef int foo_t;
  14614. static $ac_kw foo_t static_foo () {return 0; }
  14615. $ac_kw foo_t foo () {return 0; }
  14616. #endif
  14617. _ACEOF
  14618. if ac_fn_c_try_compile "$LINENO"; then :
  14619. ac_cv_c_inline=$ac_kw
  14620. fi
  14621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14622. test "$ac_cv_c_inline" != no && break
  14623. done
  14624. fi
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14626. $as_echo "$ac_cv_c_inline" >&6; }
  14627. case $ac_cv_c_inline in
  14628. inline | yes) ;;
  14629. *)
  14630. case $ac_cv_c_inline in
  14631. no) ac_val=;;
  14632. *) ac_val=$ac_cv_c_inline;;
  14633. esac
  14634. cat >>confdefs.h <<_ACEOF
  14635. #ifndef __cplusplus
  14636. #define inline $ac_val
  14637. #endif
  14638. _ACEOF
  14639. ;;
  14640. esac
  14641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14642. $as_echo_n "checking for working volatile... " >&6; }
  14643. if ${ac_cv_c_volatile+:} false; then :
  14644. $as_echo_n "(cached) " >&6
  14645. else
  14646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14647. /* end confdefs.h. */
  14648. int
  14649. main ()
  14650. {
  14651. volatile int x;
  14652. int * volatile y = (int *) 0;
  14653. return !x && !y;
  14654. ;
  14655. return 0;
  14656. }
  14657. _ACEOF
  14658. if ac_fn_c_try_compile "$LINENO"; then :
  14659. ac_cv_c_volatile=yes
  14660. else
  14661. ac_cv_c_volatile=no
  14662. fi
  14663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14664. fi
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14666. $as_echo "$ac_cv_c_volatile" >&6; }
  14667. if test $ac_cv_c_volatile = no; then
  14668. $as_echo "#define volatile /**/" >>confdefs.h
  14669. fi
  14670. # Check whether --enable-assertions was given.
  14671. if test "${enable_assertions+set}" = set; then :
  14672. enableval=$enable_assertions;
  14673. else
  14674. enable_assertions=auto
  14675. fi
  14676. case "$enable_assertions" in
  14677. auto) # Use optimization settings to determine assertion level
  14678. ;;
  14679. disabled)
  14680. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14681. ;;
  14682. release)
  14683. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14684. ;;
  14685. enabled)
  14686. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14687. ;;
  14688. paranoid)
  14689. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14690. ;;
  14691. *)
  14692. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14693. ;;
  14694. esac
  14695. # Check whether --enable-dependency-tracking was given.
  14696. if test "${enable_dependency_tracking+set}" = set; then :
  14697. enableval=$enable_dependency_tracking;
  14698. else
  14699. enable_dependency_tracking=yes
  14700. fi
  14701. if test x$enable_dependency_tracking = xyes; then
  14702. have_gcc_mmd_mt=no
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14704. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. #if !defined(__GNUC__) || __GNUC__ < 3
  14708. #error Dependency tracking requires GCC 3.0 or newer
  14709. #endif
  14710. int
  14711. main ()
  14712. {
  14713. ;
  14714. return 0;
  14715. }
  14716. _ACEOF
  14717. if ac_fn_c_try_compile "$LINENO"; then :
  14718. have_gcc_mmd_mt=yes
  14719. fi
  14720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14722. $as_echo "$have_gcc_mmd_mt" >&6; }
  14723. if test x$have_gcc_mmd_mt = xyes; then
  14724. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14725. fi
  14726. fi
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14728. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14729. have_no_undefined=no
  14730. case "$host" in
  14731. *-*-openbsd*)
  14732. ;;
  14733. *)
  14734. save_LDFLAGS="$LDFLAGS"
  14735. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14737. /* end confdefs.h. */
  14738. int
  14739. main ()
  14740. {
  14741. ;
  14742. return 0;
  14743. }
  14744. _ACEOF
  14745. if ac_fn_c_try_link "$LINENO"; then :
  14746. have_no_undefined=yes
  14747. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14748. fi
  14749. rm -f core conftest.err conftest.$ac_objext \
  14750. conftest$ac_exeext conftest.$ac_ext
  14751. LDFLAGS="$save_LDFLAGS"
  14752. ;;
  14753. esac
  14754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14755. $as_echo "$have_no_undefined" >&6; }
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14757. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14758. have_dynamicbase=no
  14759. case "$host" in
  14760. *)
  14761. save_LDFLAGS="$LDFLAGS"
  14762. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14764. /* end confdefs.h. */
  14765. int
  14766. main ()
  14767. {
  14768. ;
  14769. return 0;
  14770. }
  14771. _ACEOF
  14772. if ac_fn_c_try_link "$LINENO"; then :
  14773. have_dynamicbase=yes
  14774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14775. fi
  14776. rm -f core conftest.err conftest.$ac_objext \
  14777. conftest$ac_exeext conftest.$ac_ext
  14778. LDFLAGS="$save_LDFLAGS"
  14779. ;;
  14780. esac
  14781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14782. $as_echo "$have_dynamicbase" >&6; }
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14784. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14785. have_nxcompat=no
  14786. case "$host" in
  14787. *)
  14788. save_LDFLAGS="$LDFLAGS"
  14789. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14791. /* end confdefs.h. */
  14792. int
  14793. main ()
  14794. {
  14795. ;
  14796. return 0;
  14797. }
  14798. _ACEOF
  14799. if ac_fn_c_try_link "$LINENO"; then :
  14800. have_nxcompat=yes
  14801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14802. fi
  14803. rm -f core conftest.err conftest.$ac_objext \
  14804. conftest$ac_exeext conftest.$ac_ext
  14805. LDFLAGS="$save_LDFLAGS"
  14806. ;;
  14807. esac
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14809. $as_echo "$have_nxcompat" >&6; }
  14810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14811. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14812. have_high_entropy_va=no
  14813. case "$host" in
  14814. *)
  14815. save_LDFLAGS="$LDFLAGS"
  14816. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14818. /* end confdefs.h. */
  14819. int
  14820. main ()
  14821. {
  14822. ;
  14823. return 0;
  14824. }
  14825. _ACEOF
  14826. if ac_fn_c_try_link "$LINENO"; then :
  14827. have_high_entropy_va=yes
  14828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext \
  14831. conftest$ac_exeext conftest.$ac_ext
  14832. LDFLAGS="$save_LDFLAGS"
  14833. ;;
  14834. esac
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14836. $as_echo "$have_high_entropy_va" >&6; }
  14837. # Check whether --enable-libc was given.
  14838. if test "${enable_libc+set}" = set; then :
  14839. enableval=$enable_libc;
  14840. else
  14841. enable_libc=yes
  14842. fi
  14843. if test x$enable_libc = xyes; then
  14844. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14846. $as_echo_n "checking for ANSI C header files... " >&6; }
  14847. if ${ac_cv_header_stdc+:} false; then :
  14848. $as_echo_n "(cached) " >&6
  14849. else
  14850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14851. /* end confdefs.h. */
  14852. #include <stdlib.h>
  14853. #include <stdarg.h>
  14854. #include <string.h>
  14855. #include <float.h>
  14856. int
  14857. main ()
  14858. {
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. if ac_fn_c_try_compile "$LINENO"; then :
  14864. ac_cv_header_stdc=yes
  14865. else
  14866. ac_cv_header_stdc=no
  14867. fi
  14868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14869. if test $ac_cv_header_stdc = yes; then
  14870. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14872. /* end confdefs.h. */
  14873. #include <string.h>
  14874. _ACEOF
  14875. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14876. $EGREP "memchr" >/dev/null 2>&1; then :
  14877. else
  14878. ac_cv_header_stdc=no
  14879. fi
  14880. rm -f conftest*
  14881. fi
  14882. if test $ac_cv_header_stdc = yes; then
  14883. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14885. /* end confdefs.h. */
  14886. #include <stdlib.h>
  14887. _ACEOF
  14888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14889. $EGREP "free" >/dev/null 2>&1; then :
  14890. else
  14891. ac_cv_header_stdc=no
  14892. fi
  14893. rm -f conftest*
  14894. fi
  14895. if test $ac_cv_header_stdc = yes; then
  14896. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14897. if test "$cross_compiling" = yes; then :
  14898. :
  14899. else
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. #include <ctype.h>
  14903. #include <stdlib.h>
  14904. #if ((' ' & 0x0FF) == 0x020)
  14905. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14906. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14907. #else
  14908. # define ISLOWER(c) \
  14909. (('a' <= (c) && (c) <= 'i') \
  14910. || ('j' <= (c) && (c) <= 'r') \
  14911. || ('s' <= (c) && (c) <= 'z'))
  14912. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14913. #endif
  14914. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14915. int
  14916. main ()
  14917. {
  14918. int i;
  14919. for (i = 0; i < 256; i++)
  14920. if (XOR (islower (i), ISLOWER (i))
  14921. || toupper (i) != TOUPPER (i))
  14922. return 2;
  14923. return 0;
  14924. }
  14925. _ACEOF
  14926. if ac_fn_c_try_run "$LINENO"; then :
  14927. else
  14928. ac_cv_header_stdc=no
  14929. fi
  14930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14931. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14932. fi
  14933. fi
  14934. fi
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14936. $as_echo "$ac_cv_header_stdc" >&6; }
  14937. if test $ac_cv_header_stdc = yes; then
  14938. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14939. fi
  14940. 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
  14941. do :
  14942. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14943. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14944. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14945. cat >>confdefs.h <<_ACEOF
  14946. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14947. _ACEOF
  14948. fi
  14949. done
  14950. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14951. if test "x$ac_cv_type_size_t" = xyes; then :
  14952. else
  14953. cat >>confdefs.h <<_ACEOF
  14954. #define size_t unsigned int
  14955. _ACEOF
  14956. fi
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14958. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14959. if ${ac_cv_define_M_PI+:} false; then :
  14960. $as_echo_n "(cached) " >&6
  14961. else
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. #include <math.h>
  14965. #ifdef M_PI
  14966. YES_IS_DEFINED
  14967. #endif
  14968. _ACEOF
  14969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14970. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14971. ac_cv_define_M_PI=yes
  14972. else
  14973. ac_cv_define_M_PI=no
  14974. fi
  14975. rm -f conftest*
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14978. $as_echo "$ac_cv_define_M_PI" >&6; }
  14979. if test "$ac_cv_define_M_PI" = "yes" ; then
  14980. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14981. fi
  14982. case "$host" in
  14983. *-*-cygwin* | *-*-mingw*)
  14984. ;;
  14985. *)
  14986. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14987. # for constant arguments. Useless!
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14989. $as_echo_n "checking for working alloca.h... " >&6; }
  14990. if ${ac_cv_working_alloca_h+:} false; then :
  14991. $as_echo_n "(cached) " >&6
  14992. else
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. #include <alloca.h>
  14996. int
  14997. main ()
  14998. {
  14999. char *p = (char *) alloca (2 * sizeof (int));
  15000. if (p) return 0;
  15001. ;
  15002. return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_link "$LINENO"; then :
  15006. ac_cv_working_alloca_h=yes
  15007. else
  15008. ac_cv_working_alloca_h=no
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext \
  15011. conftest$ac_exeext conftest.$ac_ext
  15012. fi
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15014. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15015. if test $ac_cv_working_alloca_h = yes; then
  15016. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15017. fi
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15019. $as_echo_n "checking for alloca... " >&6; }
  15020. if ${ac_cv_func_alloca_works+:} false; then :
  15021. $as_echo_n "(cached) " >&6
  15022. else
  15023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15024. /* end confdefs.h. */
  15025. #ifdef __GNUC__
  15026. # define alloca __builtin_alloca
  15027. #else
  15028. # ifdef _MSC_VER
  15029. # include <malloc.h>
  15030. # define alloca _alloca
  15031. # else
  15032. # ifdef HAVE_ALLOCA_H
  15033. # include <alloca.h>
  15034. # else
  15035. # ifdef _AIX
  15036. #pragma alloca
  15037. # else
  15038. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15039. void *alloca (size_t);
  15040. # endif
  15041. # endif
  15042. # endif
  15043. # endif
  15044. #endif
  15045. int
  15046. main ()
  15047. {
  15048. char *p = (char *) alloca (1);
  15049. if (p) return 0;
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. if ac_fn_c_try_link "$LINENO"; then :
  15055. ac_cv_func_alloca_works=yes
  15056. else
  15057. ac_cv_func_alloca_works=no
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext \
  15060. conftest$ac_exeext conftest.$ac_ext
  15061. fi
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15063. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15064. if test $ac_cv_func_alloca_works = yes; then
  15065. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15066. else
  15067. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15068. # that cause trouble. Some versions do not even contain alloca or
  15069. # contain a buggy version. If you still want to use their alloca,
  15070. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15071. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15072. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15074. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15075. if ${ac_cv_os_cray+:} false; then :
  15076. $as_echo_n "(cached) " >&6
  15077. else
  15078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15079. /* end confdefs.h. */
  15080. #if defined CRAY && ! defined CRAY2
  15081. webecray
  15082. #else
  15083. wenotbecray
  15084. #endif
  15085. _ACEOF
  15086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15087. $EGREP "webecray" >/dev/null 2>&1; then :
  15088. ac_cv_os_cray=yes
  15089. else
  15090. ac_cv_os_cray=no
  15091. fi
  15092. rm -f conftest*
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15095. $as_echo "$ac_cv_os_cray" >&6; }
  15096. if test $ac_cv_os_cray = yes; then
  15097. for ac_func in _getb67 GETB67 getb67; do
  15098. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15099. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15100. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15101. cat >>confdefs.h <<_ACEOF
  15102. #define CRAY_STACKSEG_END $ac_func
  15103. _ACEOF
  15104. break
  15105. fi
  15106. done
  15107. fi
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15109. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15110. if ${ac_cv_c_stack_direction+:} false; then :
  15111. $as_echo_n "(cached) " >&6
  15112. else
  15113. if test "$cross_compiling" = yes; then :
  15114. ac_cv_c_stack_direction=0
  15115. else
  15116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15117. /* end confdefs.h. */
  15118. $ac_includes_default
  15119. int
  15120. find_stack_direction (int *addr, int depth)
  15121. {
  15122. int dir, dummy = 0;
  15123. if (! addr)
  15124. addr = &dummy;
  15125. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15126. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15127. return dir + dummy;
  15128. }
  15129. int
  15130. main (int argc, char **argv)
  15131. {
  15132. return find_stack_direction (0, argc + !argv + 20) < 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_run "$LINENO"; then :
  15136. ac_cv_c_stack_direction=1
  15137. else
  15138. ac_cv_c_stack_direction=-1
  15139. fi
  15140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15142. fi
  15143. fi
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15145. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15146. cat >>confdefs.h <<_ACEOF
  15147. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15148. _ACEOF
  15149. fi
  15150. ;;
  15151. esac
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15153. $as_echo_n "checking for working memcmp... " >&6; }
  15154. if ${ac_cv_func_memcmp_working+:} false; then :
  15155. $as_echo_n "(cached) " >&6
  15156. else
  15157. if test "$cross_compiling" = yes; then :
  15158. ac_cv_func_memcmp_working=no
  15159. else
  15160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15161. /* end confdefs.h. */
  15162. $ac_includes_default
  15163. int
  15164. main ()
  15165. {
  15166. /* Some versions of memcmp are not 8-bit clean. */
  15167. char c0 = '\100', c1 = '\200', c2 = '\201';
  15168. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15169. return 1;
  15170. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15171. or more and with at least one buffer not starting on a 4-byte boundary.
  15172. William Lewis provided this test program. */
  15173. {
  15174. char foo[21];
  15175. char bar[21];
  15176. int i;
  15177. for (i = 0; i < 4; i++)
  15178. {
  15179. char *a = foo + i;
  15180. char *b = bar + i;
  15181. strcpy (a, "--------01111111");
  15182. strcpy (b, "--------10000000");
  15183. if (memcmp (a, b, 16) >= 0)
  15184. return 1;
  15185. }
  15186. return 0;
  15187. }
  15188. ;
  15189. return 0;
  15190. }
  15191. _ACEOF
  15192. if ac_fn_c_try_run "$LINENO"; then :
  15193. ac_cv_func_memcmp_working=yes
  15194. else
  15195. ac_cv_func_memcmp_working=no
  15196. fi
  15197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15198. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15199. fi
  15200. fi
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15202. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15203. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15204. *" memcmp.$ac_objext "* ) ;;
  15205. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15206. ;;
  15207. esac
  15208. if test x$ac_cv_func_memcmp_working = xyes; then
  15209. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15210. fi
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15212. $as_echo_n "checking for working strtod... " >&6; }
  15213. if ${ac_cv_func_strtod+:} false; then :
  15214. $as_echo_n "(cached) " >&6
  15215. else
  15216. if test "$cross_compiling" = yes; then :
  15217. ac_cv_func_strtod=no
  15218. else
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. $ac_includes_default
  15222. #ifndef strtod
  15223. double strtod ();
  15224. #endif
  15225. int
  15226. main()
  15227. {
  15228. {
  15229. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15230. char *string = " +69";
  15231. char *term;
  15232. double value;
  15233. value = strtod (string, &term);
  15234. if (value != 69 || term != (string + 4))
  15235. return 1;
  15236. }
  15237. {
  15238. /* Under Solaris 2.4, strtod returns the wrong value for the
  15239. terminating character under some conditions. */
  15240. char *string = "NaN";
  15241. char *term;
  15242. strtod (string, &term);
  15243. if (term != string && *(term - 1) == 0)
  15244. return 1;
  15245. }
  15246. return 0;
  15247. }
  15248. _ACEOF
  15249. if ac_fn_c_try_run "$LINENO"; then :
  15250. ac_cv_func_strtod=yes
  15251. else
  15252. ac_cv_func_strtod=no
  15253. fi
  15254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15256. fi
  15257. fi
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15259. $as_echo "$ac_cv_func_strtod" >&6; }
  15260. if test $ac_cv_func_strtod = no; then
  15261. case " $LIBOBJS " in
  15262. *" strtod.$ac_objext "* ) ;;
  15263. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15264. ;;
  15265. esac
  15266. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15267. if test "x$ac_cv_func_pow" = xyes; then :
  15268. fi
  15269. if test $ac_cv_func_pow = no; then
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15271. $as_echo_n "checking for pow in -lm... " >&6; }
  15272. if ${ac_cv_lib_m_pow+:} false; then :
  15273. $as_echo_n "(cached) " >&6
  15274. else
  15275. ac_check_lib_save_LIBS=$LIBS
  15276. LIBS="-lm $LIBS"
  15277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15278. /* end confdefs.h. */
  15279. /* Override any GCC internal prototype to avoid an error.
  15280. Use char because int might match the return type of a GCC
  15281. builtin and then its argument prototype would still apply. */
  15282. #ifdef __cplusplus
  15283. extern "C"
  15284. #endif
  15285. char pow ();
  15286. int
  15287. main ()
  15288. {
  15289. return pow ();
  15290. ;
  15291. return 0;
  15292. }
  15293. _ACEOF
  15294. if ac_fn_c_try_link "$LINENO"; then :
  15295. ac_cv_lib_m_pow=yes
  15296. else
  15297. ac_cv_lib_m_pow=no
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext \
  15300. conftest$ac_exeext conftest.$ac_ext
  15301. LIBS=$ac_check_lib_save_LIBS
  15302. fi
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15304. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15305. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15306. POW_LIB=-lm
  15307. else
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15309. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15310. fi
  15311. fi
  15312. fi
  15313. if test x$ac_cv_func_strtod = xyes; then
  15314. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15315. fi
  15316. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15317. if test "x$ac_cv_func_mprotect" = xyes; then :
  15318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15319. /* end confdefs.h. */
  15320. #include <sys/types.h>
  15321. #include <sys/mman.h>
  15322. int
  15323. main ()
  15324. {
  15325. ;
  15326. return 0;
  15327. }
  15328. _ACEOF
  15329. if ac_fn_c_try_compile "$LINENO"; then :
  15330. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15331. fi
  15332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15333. fi
  15334. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv 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
  15335. do :
  15336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15338. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15339. cat >>confdefs.h <<_ACEOF
  15340. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15341. _ACEOF
  15342. fi
  15343. done
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15345. $as_echo_n "checking for pow in -lm... " >&6; }
  15346. if ${ac_cv_lib_m_pow+:} false; then :
  15347. $as_echo_n "(cached) " >&6
  15348. else
  15349. ac_check_lib_save_LIBS=$LIBS
  15350. LIBS="-lm $LIBS"
  15351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15352. /* end confdefs.h. */
  15353. /* Override any GCC internal prototype to avoid an error.
  15354. Use char because int might match the return type of a GCC
  15355. builtin and then its argument prototype would still apply. */
  15356. #ifdef __cplusplus
  15357. extern "C"
  15358. #endif
  15359. char pow ();
  15360. int
  15361. main ()
  15362. {
  15363. return pow ();
  15364. ;
  15365. return 0;
  15366. }
  15367. _ACEOF
  15368. if ac_fn_c_try_link "$LINENO"; then :
  15369. ac_cv_lib_m_pow=yes
  15370. else
  15371. ac_cv_lib_m_pow=no
  15372. fi
  15373. rm -f core conftest.err conftest.$ac_objext \
  15374. conftest$ac_exeext conftest.$ac_ext
  15375. LIBS=$ac_check_lib_save_LIBS
  15376. fi
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15378. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15379. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15380. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15381. fi
  15382. 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
  15383. do :
  15384. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15385. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15386. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15387. cat >>confdefs.h <<_ACEOF
  15388. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15389. _ACEOF
  15390. fi
  15391. done
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15393. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15394. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15395. $as_echo_n "(cached) " >&6
  15396. else
  15397. ac_check_lib_save_LIBS=$LIBS
  15398. LIBS="-liconv $LIBS"
  15399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15400. /* end confdefs.h. */
  15401. /* Override any GCC internal prototype to avoid an error.
  15402. Use char because int might match the return type of a GCC
  15403. builtin and then its argument prototype would still apply. */
  15404. #ifdef __cplusplus
  15405. extern "C"
  15406. #endif
  15407. char iconv_open ();
  15408. int
  15409. main ()
  15410. {
  15411. return iconv_open ();
  15412. ;
  15413. return 0;
  15414. }
  15415. _ACEOF
  15416. if ac_fn_c_try_link "$LINENO"; then :
  15417. ac_cv_lib_iconv_iconv_open=yes
  15418. else
  15419. ac_cv_lib_iconv_iconv_open=no
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext \
  15422. conftest$ac_exeext conftest.$ac_ext
  15423. LIBS=$ac_check_lib_save_LIBS
  15424. fi
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15426. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15427. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15428. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15429. fi
  15430. for ac_func in iconv
  15431. do :
  15432. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15433. if test "x$ac_cv_func_iconv" = xyes; then :
  15434. cat >>confdefs.h <<_ACEOF
  15435. #define HAVE_ICONV 1
  15436. _ACEOF
  15437. fi
  15438. done
  15439. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15440. "
  15441. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15442. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15443. fi
  15444. for ac_header in libunwind.h
  15445. do :
  15446. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15447. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15448. cat >>confdefs.h <<_ACEOF
  15449. #define HAVE_LIBUNWIND_H 1
  15450. _ACEOF
  15451. fi
  15452. done
  15453. fi
  15454. # Check whether --enable-gcc-atomics was given.
  15455. if test "${enable_gcc_atomics+set}" = set; then :
  15456. enableval=$enable_gcc_atomics;
  15457. else
  15458. enable_gcc_atomics=yes
  15459. fi
  15460. if test x$enable_gcc_atomics = xyes; then
  15461. have_gcc_atomics=no
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15463. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15465. /* end confdefs.h. */
  15466. int
  15467. main ()
  15468. {
  15469. int a;
  15470. void *x, *y, *z;
  15471. __sync_lock_test_and_set(&a, 4);
  15472. __sync_lock_test_and_set(&x, y);
  15473. __sync_fetch_and_add(&a, 1);
  15474. __sync_bool_compare_and_swap(&a, 5, 10);
  15475. __sync_bool_compare_and_swap(&x, y, z);
  15476. ;
  15477. return 0;
  15478. }
  15479. _ACEOF
  15480. if ac_fn_c_try_link "$LINENO"; then :
  15481. have_gcc_atomics=yes
  15482. fi
  15483. rm -f core conftest.err conftest.$ac_objext \
  15484. conftest$ac_exeext conftest.$ac_ext
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15486. $as_echo "$have_gcc_atomics" >&6; }
  15487. if test x$have_gcc_atomics = xyes; then
  15488. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15489. else
  15490. # See if we have the minimum operation needed for GCC atomics
  15491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15492. /* end confdefs.h. */
  15493. int
  15494. main ()
  15495. {
  15496. int a;
  15497. __sync_lock_test_and_set(&a, 1);
  15498. __sync_lock_release(&a);
  15499. ;
  15500. return 0;
  15501. }
  15502. _ACEOF
  15503. if ac_fn_c_try_link "$LINENO"; then :
  15504. have_gcc_sync_lock_test_and_set=yes
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15509. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15510. fi
  15511. fi
  15512. fi
  15513. # Standard C sources
  15514. SOURCES="$SOURCES $srcdir/src/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15525. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15527. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15537. # Check whether --enable-atomic was given.
  15538. if test "${enable_atomic+set}" = set; then :
  15539. enableval=$enable_atomic;
  15540. else
  15541. enable_atomic=yes
  15542. fi
  15543. if test x$enable_atomic != xyes; then
  15544. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15545. else
  15546. SUMMARY_modules="${SUMMARY_modules} atomic"
  15547. fi
  15548. # Check whether --enable-audio was given.
  15549. if test "${enable_audio+set}" = set; then :
  15550. enableval=$enable_audio;
  15551. else
  15552. enable_audio=yes
  15553. fi
  15554. if test x$enable_audio != xyes; then
  15555. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15556. else
  15557. SUMMARY_modules="${SUMMARY_modules} audio"
  15558. fi
  15559. # Check whether --enable-video was given.
  15560. if test "${enable_video+set}" = set; then :
  15561. enableval=$enable_video;
  15562. else
  15563. enable_video=yes
  15564. fi
  15565. if test x$enable_video != xyes; then
  15566. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15567. else
  15568. SUMMARY_modules="${SUMMARY_modules} video"
  15569. fi
  15570. # Check whether --enable-render was given.
  15571. if test "${enable_render+set}" = set; then :
  15572. enableval=$enable_render;
  15573. else
  15574. enable_render=yes
  15575. fi
  15576. if test x$enable_render != xyes; then
  15577. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15578. else
  15579. SUMMARY_modules="${SUMMARY_modules} render"
  15580. fi
  15581. # Check whether --enable-events was given.
  15582. if test "${enable_events+set}" = set; then :
  15583. enableval=$enable_events;
  15584. else
  15585. enable_events=yes
  15586. fi
  15587. if test x$enable_events != xyes; then
  15588. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15589. else
  15590. SUMMARY_modules="${SUMMARY_modules} events"
  15591. fi
  15592. # Check whether --enable-joystick was given.
  15593. if test "${enable_joystick+set}" = set; then :
  15594. enableval=$enable_joystick;
  15595. else
  15596. enable_joystick=yes
  15597. fi
  15598. if test x$enable_joystick != xyes; then
  15599. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15600. else
  15601. SUMMARY_modules="${SUMMARY_modules} joystick"
  15602. fi
  15603. # Check whether --enable-haptic was given.
  15604. if test "${enable_haptic+set}" = set; then :
  15605. enableval=$enable_haptic;
  15606. else
  15607. enable_haptic=yes
  15608. fi
  15609. if test x$enable_haptic != xyes; then
  15610. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15611. else
  15612. SUMMARY_modules="${SUMMARY_modules} haptic"
  15613. fi
  15614. # Check whether --enable-hidapi was given.
  15615. if test "${enable_hidapi+set}" = set; then :
  15616. enableval=$enable_hidapi;
  15617. else
  15618. enable_hidapi=yes
  15619. fi
  15620. if test x$enable_hidapi != xyes; then
  15621. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15622. else
  15623. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15624. fi
  15625. # Check whether --enable-sensor was given.
  15626. if test "${enable_sensor+set}" = set; then :
  15627. enableval=$enable_sensor;
  15628. else
  15629. enable_sensor=yes
  15630. fi
  15631. if test x$enable_sensor != xyes; then
  15632. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15633. else
  15634. SUMMARY_modules="${SUMMARY_modules} sensor"
  15635. fi
  15636. # Check whether --enable-power was given.
  15637. if test "${enable_power+set}" = set; then :
  15638. enableval=$enable_power;
  15639. else
  15640. enable_power=yes
  15641. fi
  15642. if test x$enable_power != xyes; then
  15643. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15644. else
  15645. SUMMARY_modules="${SUMMARY_modules} power"
  15646. fi
  15647. # Check whether --enable-filesystem was given.
  15648. if test "${enable_filesystem+set}" = set; then :
  15649. enableval=$enable_filesystem;
  15650. else
  15651. enable_filesystem=yes
  15652. fi
  15653. if test x$enable_filesystem != xyes; then
  15654. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15655. else
  15656. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15657. fi
  15658. # Check whether --enable-threads was given.
  15659. if test "${enable_threads+set}" = set; then :
  15660. enableval=$enable_threads;
  15661. else
  15662. enable_threads=yes
  15663. fi
  15664. if test x$enable_threads != xyes; then
  15665. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15666. else
  15667. SUMMARY_modules="${SUMMARY_modules} threads"
  15668. fi
  15669. # Check whether --enable-timers was given.
  15670. if test "${enable_timers+set}" = set; then :
  15671. enableval=$enable_timers;
  15672. else
  15673. enable_timers=yes
  15674. fi
  15675. if test x$enable_timers != xyes; then
  15676. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15677. else
  15678. SUMMARY_modules="${SUMMARY_modules} timers"
  15679. fi
  15680. # Check whether --enable-file was given.
  15681. if test "${enable_file+set}" = set; then :
  15682. enableval=$enable_file;
  15683. else
  15684. enable_file=yes
  15685. fi
  15686. if test x$enable_file != xyes; then
  15687. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15688. else
  15689. SUMMARY_modules="${SUMMARY_modules} file"
  15690. fi
  15691. # Check whether --enable-loadso was given.
  15692. if test "${enable_loadso+set}" = set; then :
  15693. enableval=$enable_loadso;
  15694. else
  15695. enable_loadso=yes
  15696. fi
  15697. if test x$enable_loadso != xyes; then
  15698. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15699. else
  15700. SUMMARY_modules="${SUMMARY_modules} loadso"
  15701. fi
  15702. # Check whether --enable-cpuinfo was given.
  15703. if test "${enable_cpuinfo+set}" = set; then :
  15704. enableval=$enable_cpuinfo;
  15705. else
  15706. enable_cpuinfo=yes
  15707. fi
  15708. if test x$enable_cpuinfo != xyes; then
  15709. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15710. else
  15711. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15712. fi
  15713. # Check whether --enable-assembly was given.
  15714. if test "${enable_assembly+set}" = set; then :
  15715. enableval=$enable_assembly;
  15716. else
  15717. enable_assembly=yes
  15718. fi
  15719. if test x$enable_assembly = xyes; then
  15720. SUMMARY_modules="${SUMMARY_modules} assembly"
  15721. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15722. # Make sure that we don't generate floating point code that would
  15723. # cause illegal instruction exceptions on older processors
  15724. case "$host" in
  15725. *-*-darwin*)
  15726. # Don't need to worry about Apple hardware, it's all SSE capable
  15727. default_ssemath=yes
  15728. ;;
  15729. *64-*-*)
  15730. # x86 64-bit architectures all have SSE instructions
  15731. default_ssemath=yes
  15732. ;;
  15733. *)
  15734. default_ssemath=no
  15735. ;;
  15736. esac
  15737. # Check whether --enable-ssemath was given.
  15738. if test "${enable_ssemath+set}" = set; then :
  15739. enableval=$enable_ssemath;
  15740. else
  15741. enable_ssemath=$default_ssemath
  15742. fi
  15743. if test x$enable_ssemath = xno; then
  15744. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15745. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15746. fi
  15747. fi
  15748. # Check whether --enable-mmx was given.
  15749. if test "${enable_mmx+set}" = set; then :
  15750. enableval=$enable_mmx;
  15751. else
  15752. enable_mmx=yes
  15753. fi
  15754. if test x$enable_mmx = xyes; then
  15755. save_CFLAGS="$CFLAGS"
  15756. have_gcc_mmx=no
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15758. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15759. mmx_CFLAGS="-mmmx"
  15760. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15762. /* end confdefs.h. */
  15763. #ifdef __MINGW32__
  15764. #include <_mingw.h>
  15765. #ifdef __MINGW64_VERSION_MAJOR
  15766. #include <intrin.h>
  15767. #else
  15768. #include <mmintrin.h>
  15769. #endif
  15770. #else
  15771. #include <mmintrin.h>
  15772. #endif
  15773. #ifndef __MMX__
  15774. #error Assembler CPP flag not enabled
  15775. #endif
  15776. int
  15777. main ()
  15778. {
  15779. ;
  15780. return 0;
  15781. }
  15782. _ACEOF
  15783. if ac_fn_c_try_compile "$LINENO"; then :
  15784. have_gcc_mmx=yes
  15785. fi
  15786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15788. $as_echo "$have_gcc_mmx" >&6; }
  15789. CFLAGS="$save_CFLAGS"
  15790. if test x$have_gcc_mmx = xyes; then
  15791. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15792. SUMMARY_math="${SUMMARY_math} mmx"
  15793. fi
  15794. fi
  15795. # Check whether --enable-3dnow was given.
  15796. if test "${enable_3dnow+set}" = set; then :
  15797. enableval=$enable_3dnow;
  15798. else
  15799. enable_3dnow=yes
  15800. fi
  15801. if test x$enable_3dnow = xyes; then
  15802. save_CFLAGS="$CFLAGS"
  15803. have_gcc_3dnow=no
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15805. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15806. amd3dnow_CFLAGS="-m3dnow"
  15807. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15809. /* end confdefs.h. */
  15810. #include <mm3dnow.h>
  15811. #ifndef __3dNOW__
  15812. #error Assembler CPP flag not enabled
  15813. #endif
  15814. int
  15815. main ()
  15816. {
  15817. void *p = 0;
  15818. _m_prefetch(p);
  15819. ;
  15820. return 0;
  15821. }
  15822. _ACEOF
  15823. if ac_fn_c_try_link "$LINENO"; then :
  15824. have_gcc_3dnow=yes
  15825. fi
  15826. rm -f core conftest.err conftest.$ac_objext \
  15827. conftest$ac_exeext conftest.$ac_ext
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15829. $as_echo "$have_gcc_3dnow" >&6; }
  15830. CFLAGS="$save_CFLAGS"
  15831. if test x$have_gcc_3dnow = xyes; then
  15832. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15833. SUMMARY_math="${SUMMARY_math} 3dnow"
  15834. fi
  15835. fi
  15836. # Check whether --enable-sse was given.
  15837. if test "${enable_sse+set}" = set; then :
  15838. enableval=$enable_sse;
  15839. else
  15840. enable_sse=yes
  15841. fi
  15842. if test x$enable_sse = xyes; then
  15843. save_CFLAGS="$CFLAGS"
  15844. have_gcc_sse=no
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15846. $as_echo_n "checking for GCC -msse option... " >&6; }
  15847. sse_CFLAGS="-msse"
  15848. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15850. /* end confdefs.h. */
  15851. #ifdef __MINGW32__
  15852. #include <_mingw.h>
  15853. #ifdef __MINGW64_VERSION_MAJOR
  15854. #include <intrin.h>
  15855. #else
  15856. #include <xmmintrin.h>
  15857. #endif
  15858. #else
  15859. #include <xmmintrin.h>
  15860. #endif
  15861. #ifndef __SSE__
  15862. #error Assembler CPP flag not enabled
  15863. #endif
  15864. int
  15865. main ()
  15866. {
  15867. ;
  15868. return 0;
  15869. }
  15870. _ACEOF
  15871. if ac_fn_c_try_compile "$LINENO"; then :
  15872. have_gcc_sse=yes
  15873. fi
  15874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15876. $as_echo "$have_gcc_sse" >&6; }
  15877. CFLAGS="$save_CFLAGS"
  15878. if test x$have_gcc_sse = xyes; then
  15879. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15880. SUMMARY_math="${SUMMARY_math} sse"
  15881. fi
  15882. fi
  15883. # Check whether --enable-sse2 was given.
  15884. if test "${enable_sse2+set}" = set; then :
  15885. enableval=$enable_sse2;
  15886. else
  15887. enable_sse2=$default_ssemath
  15888. fi
  15889. if test x$enable_sse2 = xyes; then
  15890. save_CFLAGS="$CFLAGS"
  15891. have_gcc_sse2=no
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15893. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15894. sse2_CFLAGS="-msse2"
  15895. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15897. /* end confdefs.h. */
  15898. #ifdef __MINGW32__
  15899. #include <_mingw.h>
  15900. #ifdef __MINGW64_VERSION_MAJOR
  15901. #include <intrin.h>
  15902. #else
  15903. #include <emmintrin.h>
  15904. #endif
  15905. #else
  15906. #include <emmintrin.h>
  15907. #endif
  15908. #ifndef __SSE2__
  15909. #error Assembler CPP flag not enabled
  15910. #endif
  15911. int
  15912. main ()
  15913. {
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. if ac_fn_c_try_compile "$LINENO"; then :
  15919. have_gcc_sse2=yes
  15920. fi
  15921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15923. $as_echo "$have_gcc_sse2" >&6; }
  15924. CFLAGS="$save_CFLAGS"
  15925. if test x$have_gcc_sse2 = xyes; then
  15926. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15927. SUMMARY_math="${SUMMARY_math} sse2"
  15928. fi
  15929. fi
  15930. # Check whether --enable-sse3 was given.
  15931. if test "${enable_sse3+set}" = set; then :
  15932. enableval=$enable_sse3;
  15933. else
  15934. enable_sse3=$default_ssemath
  15935. fi
  15936. if test x$enable_sse3 = xyes; then
  15937. save_CFLAGS="$CFLAGS"
  15938. have_gcc_sse3=no
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15940. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15941. sse3_CFLAGS="-msse3"
  15942. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15944. /* end confdefs.h. */
  15945. #ifdef __MINGW32__
  15946. #include <_mingw.h>
  15947. #ifdef __MINGW64_VERSION_MAJOR
  15948. #include <intrin.h>
  15949. #else
  15950. #include <pmmintrin.h>
  15951. #endif
  15952. #else
  15953. #include <pmmintrin.h>
  15954. #endif
  15955. #ifndef __SSE2__
  15956. #error Assembler CPP flag not enabled
  15957. #endif
  15958. int
  15959. main ()
  15960. {
  15961. ;
  15962. return 0;
  15963. }
  15964. _ACEOF
  15965. if ac_fn_c_try_compile "$LINENO"; then :
  15966. have_gcc_sse3=yes
  15967. fi
  15968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15970. $as_echo "$have_gcc_sse3" >&6; }
  15971. CFLAGS="$save_CFLAGS"
  15972. if test x$have_gcc_sse3 = xyes; then
  15973. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15974. SUMMARY_math="${SUMMARY_math} sse3"
  15975. fi
  15976. fi
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15978. $as_echo_n "checking for immintrin.h... " >&6; }
  15979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15980. /* end confdefs.h. */
  15981. #include <immintrin.h>
  15982. int
  15983. main ()
  15984. {
  15985. ;
  15986. return 0;
  15987. }
  15988. _ACEOF
  15989. if ac_fn_c_try_compile "$LINENO"; then :
  15990. have_immintrin_h_hdr=yes
  15991. else
  15992. have_immintrin_h_hdr=no
  15993. fi
  15994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15996. $as_echo "$have_immintrin_h_hdr" >&6; }
  15997. if test x$have_immintrin_h_hdr = xyes; then
  15998. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15999. fi
  16000. # Check whether --enable-altivec was given.
  16001. if test "${enable_altivec+set}" = set; then :
  16002. enableval=$enable_altivec;
  16003. else
  16004. enable_altivec=yes
  16005. fi
  16006. if test x$enable_altivec = xyes; then
  16007. save_CFLAGS="$CFLAGS"
  16008. have_gcc_altivec=no
  16009. have_altivec_h_hdr=no
  16010. altivec_CFLAGS="-maltivec"
  16011. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16013. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16015. /* end confdefs.h. */
  16016. #include <altivec.h>
  16017. vector unsigned int vzero() {
  16018. return vec_splat_u32(0);
  16019. }
  16020. int
  16021. main ()
  16022. {
  16023. ;
  16024. return 0;
  16025. }
  16026. _ACEOF
  16027. if ac_fn_c_try_compile "$LINENO"; then :
  16028. have_gcc_altivec=yes
  16029. have_altivec_h_hdr=yes
  16030. fi
  16031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16033. $as_echo "$have_gcc_altivec" >&6; }
  16034. if test x$have_gcc_altivec = xno; then
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16036. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16038. /* end confdefs.h. */
  16039. vector unsigned int vzero() {
  16040. return vec_splat_u32(0);
  16041. }
  16042. int
  16043. main ()
  16044. {
  16045. ;
  16046. return 0;
  16047. }
  16048. _ACEOF
  16049. if ac_fn_c_try_compile "$LINENO"; then :
  16050. have_gcc_altivec=yes
  16051. fi
  16052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16054. $as_echo "$have_gcc_altivec" >&6; }
  16055. fi
  16056. if test x$have_gcc_altivec = xno; then
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16058. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16059. altivec_CFLAGS="-faltivec"
  16060. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16062. /* end confdefs.h. */
  16063. #include <altivec.h>
  16064. vector unsigned int vzero() {
  16065. return vec_splat_u32(0);
  16066. }
  16067. int
  16068. main ()
  16069. {
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_compile "$LINENO"; then :
  16075. have_gcc_altivec=yes
  16076. have_altivec_h_hdr=yes
  16077. fi
  16078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16080. $as_echo "$have_gcc_altivec" >&6; }
  16081. fi
  16082. if test x$have_gcc_altivec = xno; then
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16084. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16086. /* end confdefs.h. */
  16087. vector unsigned int vzero() {
  16088. return vec_splat_u32(0);
  16089. }
  16090. int
  16091. main ()
  16092. {
  16093. ;
  16094. return 0;
  16095. }
  16096. _ACEOF
  16097. if ac_fn_c_try_compile "$LINENO"; then :
  16098. have_gcc_altivec=yes
  16099. fi
  16100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16102. $as_echo "$have_gcc_altivec" >&6; }
  16103. fi
  16104. CFLAGS="$save_CFLAGS"
  16105. if test x$have_gcc_altivec = xyes; then
  16106. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16107. if test x$have_altivec_h_hdr = xyes; then
  16108. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16109. fi
  16110. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16111. SUMMARY_math="${SUMMARY_math} altivec"
  16112. fi
  16113. fi
  16114. fi
  16115. CheckOSS()
  16116. {
  16117. # Check whether --enable-oss was given.
  16118. if test "${enable_oss+set}" = set; then :
  16119. enableval=$enable_oss;
  16120. else
  16121. enable_oss=maybe
  16122. fi
  16123. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16124. # use sndio instead. So on there, we default to disabled. You can force
  16125. # it on if you really want, though.
  16126. if test x$enable_oss = xmaybe; then
  16127. enable_oss=yes
  16128. case "$host" in
  16129. *-*-openbsd*)
  16130. enable_oss=no;;
  16131. esac
  16132. fi
  16133. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16135. $as_echo_n "checking for OSS audio support... " >&6; }
  16136. have_oss=no
  16137. if test x$have_oss != xyes; then
  16138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16139. /* end confdefs.h. */
  16140. #include <sys/soundcard.h>
  16141. int
  16142. main ()
  16143. {
  16144. int arg = SNDCTL_DSP_SETFRAGMENT;
  16145. ;
  16146. return 0;
  16147. }
  16148. _ACEOF
  16149. if ac_fn_c_try_compile "$LINENO"; then :
  16150. have_oss=yes
  16151. fi
  16152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16153. fi
  16154. if test x$have_oss != xyes; then
  16155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16156. /* end confdefs.h. */
  16157. #include <soundcard.h>
  16158. int
  16159. main ()
  16160. {
  16161. int arg = SNDCTL_DSP_SETFRAGMENT;
  16162. ;
  16163. return 0;
  16164. }
  16165. _ACEOF
  16166. if ac_fn_c_try_compile "$LINENO"; then :
  16167. have_oss=yes
  16168. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16171. fi
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16173. $as_echo "$have_oss" >&6; }
  16174. if test x$have_oss = xyes; then
  16175. SUMMARY_audio="${SUMMARY_audio} oss"
  16176. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16177. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16178. have_audio=yes
  16179. # We may need to link with ossaudio emulation library
  16180. case "$host" in
  16181. *-*-openbsd*|*-*-netbsd*)
  16182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16183. esac
  16184. fi
  16185. fi
  16186. }
  16187. CheckALSA()
  16188. {
  16189. # Check whether --enable-alsa was given.
  16190. if test "${enable_alsa+set}" = set; then :
  16191. enableval=$enable_alsa;
  16192. else
  16193. enable_alsa=yes
  16194. fi
  16195. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16196. alsa_save_CFLAGS="$CFLAGS"
  16197. alsa_save_LDFLAGS="$LDFLAGS"
  16198. alsa_save_LIBS="$LIBS"
  16199. alsa_found=yes
  16200. # Check whether --with-alsa-prefix was given.
  16201. if test "${with_alsa_prefix+set}" = set; then :
  16202. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16203. else
  16204. alsa_prefix=""
  16205. fi
  16206. # Check whether --with-alsa-inc-prefix was given.
  16207. if test "${with_alsa_inc_prefix+set}" = set; then :
  16208. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16209. else
  16210. alsa_inc_prefix=""
  16211. fi
  16212. # Check whether --enable-alsatest was given.
  16213. if test "${enable_alsatest+set}" = set; then :
  16214. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16215. else
  16216. enable_alsatest=yes
  16217. fi
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16219. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16220. if test "$alsa_inc_prefix" != "" ; then
  16221. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16222. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16223. fi
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16225. $as_echo "$ALSA_CFLAGS" >&6; }
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16227. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16228. if test "$alsa_prefix" != "" ; then
  16229. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16230. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16231. fi
  16232. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16233. LIBS=`echo $LIBS | sed 's/-lm//'`
  16234. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16235. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16236. LIBS=`echo $LIBS | sed 's/ //'`
  16237. LIBS="$ALSA_LIBS $LIBS"
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16239. $as_echo "$ALSA_LIBS" >&6; }
  16240. min_alsa_version=1.0.11
  16241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16242. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16243. no_alsa=""
  16244. alsa_min_major_version=`echo $min_alsa_version | \
  16245. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16246. alsa_min_minor_version=`echo $min_alsa_version | \
  16247. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16248. alsa_min_micro_version=`echo $min_alsa_version | \
  16249. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16250. ac_ext=c
  16251. ac_cpp='$CPP $CPPFLAGS'
  16252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16256. /* end confdefs.h. */
  16257. #include <alsa/asoundlib.h>
  16258. int
  16259. main ()
  16260. {
  16261. /* ensure backward compatibility */
  16262. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16263. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16264. #endif
  16265. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16266. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16267. #endif
  16268. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16269. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16270. #endif
  16271. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16272. exit(0);
  16273. # else
  16274. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16275. # error not present
  16276. # endif
  16277. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16278. exit(0);
  16279. # else
  16280. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16281. # error not present
  16282. # endif
  16283. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16284. # error not present
  16285. # endif
  16286. # endif
  16287. # endif
  16288. exit(0);
  16289. ;
  16290. return 0;
  16291. }
  16292. _ACEOF
  16293. if ac_fn_c_try_compile "$LINENO"; then :
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16295. $as_echo "found." >&6; }
  16296. else
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16298. $as_echo "not present." >&6; }
  16299. alsa_found=no
  16300. fi
  16301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16302. ac_ext=c
  16303. ac_cpp='$CPP $CPPFLAGS'
  16304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16307. if test "x$enable_alsatest" = "xyes"; then
  16308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16309. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16310. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16311. $as_echo_n "(cached) " >&6
  16312. else
  16313. ac_check_lib_save_LIBS=$LIBS
  16314. LIBS="-lasound $LIBS"
  16315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16316. /* end confdefs.h. */
  16317. /* Override any GCC internal prototype to avoid an error.
  16318. Use char because int might match the return type of a GCC
  16319. builtin and then its argument prototype would still apply. */
  16320. #ifdef __cplusplus
  16321. extern "C"
  16322. #endif
  16323. char snd_ctl_open ();
  16324. int
  16325. main ()
  16326. {
  16327. return snd_ctl_open ();
  16328. ;
  16329. return 0;
  16330. }
  16331. _ACEOF
  16332. if ac_fn_c_try_link "$LINENO"; then :
  16333. ac_cv_lib_asound_snd_ctl_open=yes
  16334. else
  16335. ac_cv_lib_asound_snd_ctl_open=no
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext \
  16338. conftest$ac_exeext conftest.$ac_ext
  16339. LIBS=$ac_check_lib_save_LIBS
  16340. fi
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16342. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16343. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16344. cat >>confdefs.h <<_ACEOF
  16345. #define HAVE_LIBASOUND 1
  16346. _ACEOF
  16347. LIBS="-lasound $LIBS"
  16348. else
  16349. alsa_found=no
  16350. fi
  16351. fi
  16352. if test "x$alsa_found" = "xyes" ; then
  16353. have_alsa=yes
  16354. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16355. LIBS=`echo $LIBS | sed 's/ //'`
  16356. LIBS="-lasound $LIBS"
  16357. fi
  16358. if test "x$alsa_found" = "xno" ; then
  16359. have_alsa=no
  16360. CFLAGS="$alsa_save_CFLAGS"
  16361. LDFLAGS="$alsa_save_LDFLAGS"
  16362. LIBS="$alsa_save_LIBS"
  16363. ALSA_CFLAGS=""
  16364. ALSA_LIBS=""
  16365. fi
  16366. # Restore all flags from before the ALSA detection runs
  16367. CFLAGS="$alsa_save_CFLAGS"
  16368. LDFLAGS="$alsa_save_LDFLAGS"
  16369. LIBS="$alsa_save_LIBS"
  16370. if test x$have_alsa = xyes; then
  16371. # Check whether --enable-alsa-shared was given.
  16372. if test "${enable_alsa_shared+set}" = set; then :
  16373. enableval=$enable_alsa_shared;
  16374. else
  16375. enable_alsa_shared=yes
  16376. fi
  16377. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16378. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16379. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16380. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16381. if test x$have_loadso != xyes && \
  16382. test x$enable_alsa_shared = xyes; then
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16384. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16385. fi
  16386. if test x$have_loadso = xyes && \
  16387. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16388. echo "-- dynamic libasound -> $alsa_lib"
  16389. cat >>confdefs.h <<_ACEOF
  16390. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16391. _ACEOF
  16392. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16393. else
  16394. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16395. SUMMARY_audio="${SUMMARY_audio} alsa"
  16396. fi
  16397. have_audio=yes
  16398. fi
  16399. fi
  16400. }
  16401. CheckJACK()
  16402. {
  16403. # Check whether --enable-jack was given.
  16404. if test "${enable_jack+set}" = set; then :
  16405. enableval=$enable_jack;
  16406. else
  16407. enable_jack=yes
  16408. fi
  16409. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16410. pkg_failed=no
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16412. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16413. if test -n "$JACK_CFLAGS"; then
  16414. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16415. elif test -n "$PKG_CONFIG"; then
  16416. if test -n "$PKG_CONFIG" && \
  16417. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16418. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16419. ac_status=$?
  16420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16421. test $ac_status = 0; }; then
  16422. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16423. test "x$?" != "x0" && pkg_failed=yes
  16424. else
  16425. pkg_failed=yes
  16426. fi
  16427. else
  16428. pkg_failed=untried
  16429. fi
  16430. if test -n "$JACK_LIBS"; then
  16431. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16432. elif test -n "$PKG_CONFIG"; then
  16433. if test -n "$PKG_CONFIG" && \
  16434. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16435. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16436. ac_status=$?
  16437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16438. test $ac_status = 0; }; then
  16439. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16440. test "x$?" != "x0" && pkg_failed=yes
  16441. else
  16442. pkg_failed=yes
  16443. fi
  16444. else
  16445. pkg_failed=untried
  16446. fi
  16447. if test $pkg_failed = yes; then
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16449. $as_echo "no" >&6; }
  16450. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16451. _pkg_short_errors_supported=yes
  16452. else
  16453. _pkg_short_errors_supported=no
  16454. fi
  16455. if test $_pkg_short_errors_supported = yes; then
  16456. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16457. else
  16458. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16459. fi
  16460. # Put the nasty error message in config.log where it belongs
  16461. echo "$JACK_PKG_ERRORS" >&5
  16462. audio_jack=no
  16463. elif test $pkg_failed = untried; then
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16465. $as_echo "no" >&6; }
  16466. audio_jack=no
  16467. else
  16468. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16469. JACK_LIBS=$pkg_cv_JACK_LIBS
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16471. $as_echo "yes" >&6; }
  16472. audio_jack=yes
  16473. fi
  16474. if test x$audio_jack = xyes; then
  16475. # Check whether --enable-jack-shared was given.
  16476. if test "${enable_jack_shared+set}" = set; then :
  16477. enableval=$enable_jack_shared;
  16478. else
  16479. enable_jack_shared=yes
  16480. fi
  16481. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16482. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16483. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16484. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16485. if test x$have_loadso != xyes && \
  16486. test x$enable_jack_shared = xyes; then
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16488. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16489. fi
  16490. if test x$have_loadso = xyes && \
  16491. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16492. echo "-- dynamic libjack -> $jack_lib"
  16493. cat >>confdefs.h <<_ACEOF
  16494. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16495. _ACEOF
  16496. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16497. case "$host" in
  16498. # On Solaris, jack must be linked deferred explicitly
  16499. # to prevent undefined symbol failures.
  16500. *-*-solaris*)
  16501. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16503. esac
  16504. else
  16505. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16506. SUMMARY_audio="${SUMMARY_audio} jack"
  16507. fi
  16508. have_audio=yes
  16509. fi
  16510. fi
  16511. }
  16512. CheckESD()
  16513. {
  16514. # Check whether --enable-esd was given.
  16515. if test "${enable_esd+set}" = set; then :
  16516. enableval=$enable_esd;
  16517. else
  16518. enable_esd=yes
  16519. fi
  16520. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16521. # Check whether --with-esd-prefix was given.
  16522. if test "${with_esd_prefix+set}" = set; then :
  16523. withval=$with_esd_prefix; esd_prefix="$withval"
  16524. else
  16525. esd_prefix=""
  16526. fi
  16527. # Check whether --with-esd-exec-prefix was given.
  16528. if test "${with_esd_exec_prefix+set}" = set; then :
  16529. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16530. else
  16531. esd_exec_prefix=""
  16532. fi
  16533. # Check whether --enable-esdtest was given.
  16534. if test "${enable_esdtest+set}" = set; then :
  16535. enableval=$enable_esdtest;
  16536. else
  16537. enable_esdtest=yes
  16538. fi
  16539. if test x$esd_exec_prefix != x ; then
  16540. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16541. if test x${ESD_CONFIG+set} != xset ; then
  16542. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16543. fi
  16544. fi
  16545. if test x$esd_prefix != x ; then
  16546. esd_args="$esd_args --prefix=$esd_prefix"
  16547. if test x${ESD_CONFIG+set} != xset ; then
  16548. ESD_CONFIG=$esd_prefix/bin/esd-config
  16549. fi
  16550. fi
  16551. # Extract the first word of "esd-config", so it can be a program name with args.
  16552. set dummy esd-config; ac_word=$2
  16553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16554. $as_echo_n "checking for $ac_word... " >&6; }
  16555. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16556. $as_echo_n "(cached) " >&6
  16557. else
  16558. case $ESD_CONFIG in
  16559. [\\/]* | ?:[\\/]*)
  16560. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16561. ;;
  16562. *)
  16563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16564. for as_dir in $PATH
  16565. do
  16566. IFS=$as_save_IFS
  16567. test -z "$as_dir" && as_dir=.
  16568. for ac_exec_ext in '' $ac_executable_extensions; do
  16569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16570. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16572. break 2
  16573. fi
  16574. done
  16575. done
  16576. IFS=$as_save_IFS
  16577. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16578. ;;
  16579. esac
  16580. fi
  16581. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16582. if test -n "$ESD_CONFIG"; then
  16583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16584. $as_echo "$ESD_CONFIG" >&6; }
  16585. else
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16587. $as_echo "no" >&6; }
  16588. fi
  16589. min_esd_version=0.2.8
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16591. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16592. no_esd=""
  16593. if test "$ESD_CONFIG" = "no" ; then
  16594. no_esd=yes
  16595. else
  16596. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16597. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16598. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16599. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16600. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16601. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16602. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16603. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16604. if test "x$enable_esdtest" = "xyes" ; then
  16605. ac_ext=c
  16606. ac_cpp='$CPP $CPPFLAGS'
  16607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16610. ac_save_CFLAGS="$CFLAGS"
  16611. ac_save_LIBS="$LIBS"
  16612. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16613. LIBS="$LIBS $ESD_LIBS"
  16614. rm -f conf.esdtest
  16615. if test "$cross_compiling" = yes; then :
  16616. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16617. else
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. #include <stdio.h>
  16621. #include <stdlib.h>
  16622. #include <esd.h>
  16623. int main (void)
  16624. {
  16625. int major, minor, micro;
  16626. FILE *fp = fopen("conf.esdtest", "w");
  16627. if (fp) fclose(fp);
  16628. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16629. printf("%s, bad version string\n", "$min_esd_version");
  16630. exit(1);
  16631. }
  16632. if (($esd_major_version > major) ||
  16633. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16634. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16635. {
  16636. return 0;
  16637. }
  16638. else
  16639. {
  16640. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16641. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16642. printf("*** best to upgrade to the required version.\n");
  16643. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16644. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16645. printf("*** config.cache before re-running configure\n");
  16646. return 1;
  16647. }
  16648. }
  16649. _ACEOF
  16650. if ac_fn_c_try_run "$LINENO"; then :
  16651. else
  16652. no_esd=yes
  16653. fi
  16654. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16655. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16656. fi
  16657. CFLAGS="$ac_save_CFLAGS"
  16658. LIBS="$ac_save_LIBS"
  16659. ac_ext=c
  16660. ac_cpp='$CPP $CPPFLAGS'
  16661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16664. fi
  16665. fi
  16666. if test "x$no_esd" = x ; then
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16668. $as_echo "yes" >&6; }
  16669. have_esd=yes
  16670. else
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16672. $as_echo "no" >&6; }
  16673. if test "$ESD_CONFIG" = "no" ; then
  16674. echo "*** The esd-config script installed by ESD could not be found"
  16675. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16676. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16677. echo "*** full path to esd-config."
  16678. else
  16679. if test -f conf.esdtest ; then
  16680. :
  16681. else
  16682. echo "*** Could not run ESD test program, checking why..."
  16683. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16684. LIBS="$LIBS $ESD_LIBS"
  16685. ac_ext=c
  16686. ac_cpp='$CPP $CPPFLAGS'
  16687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. #include <stdio.h>
  16693. #include <esd.h>
  16694. int
  16695. main ()
  16696. {
  16697. return 0;
  16698. ;
  16699. return 0;
  16700. }
  16701. _ACEOF
  16702. if ac_fn_c_try_link "$LINENO"; then :
  16703. echo "*** The test program compiled, but did not run. This usually means"
  16704. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16705. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16706. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16707. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16708. echo "*** is required on your system"
  16709. echo "***"
  16710. echo "*** If you have an old version installed, it is best to remove it, although"
  16711. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16712. else
  16713. echo "*** The test program failed to compile or link. See the file config.log for the"
  16714. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16715. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16716. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16717. fi
  16718. rm -f core conftest.err conftest.$ac_objext \
  16719. conftest$ac_exeext conftest.$ac_ext
  16720. CFLAGS="$ac_save_CFLAGS"
  16721. LIBS="$ac_save_LIBS"
  16722. ac_ext=c
  16723. ac_cpp='$CPP $CPPFLAGS'
  16724. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16725. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16726. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16727. fi
  16728. fi
  16729. ESD_CFLAGS=""
  16730. ESD_LIBS=""
  16731. have_esd=no
  16732. fi
  16733. rm -f conf.esdtest
  16734. if test x$have_esd = xyes; then
  16735. # Check whether --enable-esd-shared was given.
  16736. if test "${enable_esd_shared+set}" = set; then :
  16737. enableval=$enable_esd_shared;
  16738. else
  16739. enable_esd_shared=yes
  16740. fi
  16741. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16742. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16743. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16744. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16745. if test x$have_loadso != xyes && \
  16746. test x$enable_esd_shared = xyes; then
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16748. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16749. fi
  16750. if test x$have_loadso = xyes && \
  16751. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16752. echo "-- dynamic libesd -> $esd_lib"
  16753. cat >>confdefs.h <<_ACEOF
  16754. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16755. _ACEOF
  16756. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16757. else
  16758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16759. SUMMARY_audio="${SUMMARY_audio} esd"
  16760. fi
  16761. have_audio=yes
  16762. fi
  16763. fi
  16764. }
  16765. CheckPipewire()
  16766. {
  16767. # Check whether --enable-pipewire was given.
  16768. if test "${enable_pipewire+set}" = set; then :
  16769. enableval=$enable_pipewire;
  16770. else
  16771. enable_pipewire=yes
  16772. fi
  16773. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16774. pkg_failed=no
  16775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16776. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16777. if test -n "$PIPEWIRE_CFLAGS"; then
  16778. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16779. elif test -n "$PKG_CONFIG"; then
  16780. if test -n "$PKG_CONFIG" && \
  16781. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16782. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16783. ac_status=$?
  16784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16785. test $ac_status = 0; }; then
  16786. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16787. test "x$?" != "x0" && pkg_failed=yes
  16788. else
  16789. pkg_failed=yes
  16790. fi
  16791. else
  16792. pkg_failed=untried
  16793. fi
  16794. if test -n "$PIPEWIRE_LIBS"; then
  16795. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16796. elif test -n "$PKG_CONFIG"; then
  16797. if test -n "$PKG_CONFIG" && \
  16798. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16799. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16800. ac_status=$?
  16801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16802. test $ac_status = 0; }; then
  16803. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16804. test "x$?" != "x0" && pkg_failed=yes
  16805. else
  16806. pkg_failed=yes
  16807. fi
  16808. else
  16809. pkg_failed=untried
  16810. fi
  16811. if test $pkg_failed = yes; then
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16813. $as_echo "no" >&6; }
  16814. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16815. _pkg_short_errors_supported=yes
  16816. else
  16817. _pkg_short_errors_supported=no
  16818. fi
  16819. if test $_pkg_short_errors_supported = yes; then
  16820. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16821. else
  16822. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16823. fi
  16824. # Put the nasty error message in config.log where it belongs
  16825. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16826. audio_pipewire=no
  16827. elif test $pkg_failed = untried; then
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16829. $as_echo "no" >&6; }
  16830. audio_pipewire=no
  16831. else
  16832. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16833. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16835. $as_echo "yes" >&6; }
  16836. audio_pipewire=yes
  16837. fi
  16838. if test x$audio_pipewire = xyes; then
  16839. # Check whether --enable-pipewire-shared was given.
  16840. if test "${enable_pipewire_shared+set}" = set; then :
  16841. enableval=$enable_pipewire_shared;
  16842. else
  16843. enable_pipewire_shared=yes
  16844. fi
  16845. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16846. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16847. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16848. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16849. if test x$have_loadso != xyes && \
  16850. test x$enable_pipewire_shared = xyes; then
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16852. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16853. fi
  16854. if test x$have_loadso = xyes && \
  16855. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16856. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16857. cat >>confdefs.h <<_ACEOF
  16858. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16859. _ACEOF
  16860. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16861. else
  16862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16863. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16864. fi
  16865. have_audio=yes
  16866. fi
  16867. fi
  16868. }
  16869. CheckPulseAudio()
  16870. {
  16871. # Check whether --enable-pulseaudio was given.
  16872. if test "${enable_pulseaudio+set}" = set; then :
  16873. enableval=$enable_pulseaudio;
  16874. else
  16875. enable_pulseaudio=yes
  16876. fi
  16877. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16878. pkg_failed=no
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16880. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16881. if test -n "$PULSEAUDIO_CFLAGS"; then
  16882. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16883. elif test -n "$PKG_CONFIG"; then
  16884. if test -n "$PKG_CONFIG" && \
  16885. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16886. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16887. ac_status=$?
  16888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16889. test $ac_status = 0; }; then
  16890. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16891. test "x$?" != "x0" && pkg_failed=yes
  16892. else
  16893. pkg_failed=yes
  16894. fi
  16895. else
  16896. pkg_failed=untried
  16897. fi
  16898. if test -n "$PULSEAUDIO_LIBS"; then
  16899. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16900. elif test -n "$PKG_CONFIG"; then
  16901. if test -n "$PKG_CONFIG" && \
  16902. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16903. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16904. ac_status=$?
  16905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16906. test $ac_status = 0; }; then
  16907. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16908. test "x$?" != "x0" && pkg_failed=yes
  16909. else
  16910. pkg_failed=yes
  16911. fi
  16912. else
  16913. pkg_failed=untried
  16914. fi
  16915. if test $pkg_failed = yes; then
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16917. $as_echo "no" >&6; }
  16918. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16919. _pkg_short_errors_supported=yes
  16920. else
  16921. _pkg_short_errors_supported=no
  16922. fi
  16923. if test $_pkg_short_errors_supported = yes; then
  16924. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16925. else
  16926. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16927. fi
  16928. # Put the nasty error message in config.log where it belongs
  16929. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16930. audio_pulseaudio=no
  16931. elif test $pkg_failed = untried; then
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16933. $as_echo "no" >&6; }
  16934. audio_pulseaudio=no
  16935. else
  16936. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16937. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16939. $as_echo "yes" >&6; }
  16940. audio_pulseaudio=yes
  16941. fi
  16942. if test x$audio_pulseaudio = xyes; then
  16943. # Check whether --enable-pulseaudio-shared was given.
  16944. if test "${enable_pulseaudio_shared+set}" = set; then :
  16945. enableval=$enable_pulseaudio_shared;
  16946. else
  16947. enable_pulseaudio_shared=yes
  16948. fi
  16949. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16950. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16951. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16952. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16953. if test x$have_loadso != xyes && \
  16954. test x$enable_pulseaudio_shared = xyes; then
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16956. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16957. fi
  16958. if test x$have_loadso = xyes && \
  16959. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16960. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16961. cat >>confdefs.h <<_ACEOF
  16962. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16963. _ACEOF
  16964. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16965. case "$host" in
  16966. # On Solaris, pulseaudio must be linked deferred explicitly
  16967. # to prevent undefined symbol failures.
  16968. *-*-solaris*)
  16969. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16971. esac
  16972. else
  16973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16974. SUMMARY_audio="${SUMMARY_audio} pulse"
  16975. fi
  16976. have_audio=yes
  16977. fi
  16978. fi
  16979. }
  16980. CheckARTSC()
  16981. {
  16982. # Check whether --enable-arts was given.
  16983. if test "${enable_arts+set}" = set; then :
  16984. enableval=$enable_arts;
  16985. else
  16986. enable_arts=yes
  16987. fi
  16988. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16989. # Extract the first word of "artsc-config", so it can be a program name with args.
  16990. set dummy artsc-config; ac_word=$2
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16992. $as_echo_n "checking for $ac_word... " >&6; }
  16993. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16994. $as_echo_n "(cached) " >&6
  16995. else
  16996. case $ARTSCONFIG in
  16997. [\\/]* | ?:[\\/]*)
  16998. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16999. ;;
  17000. *)
  17001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17002. for as_dir in $PATH
  17003. do
  17004. IFS=$as_save_IFS
  17005. test -z "$as_dir" && as_dir=.
  17006. for ac_exec_ext in '' $ac_executable_extensions; do
  17007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17008. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17010. break 2
  17011. fi
  17012. done
  17013. done
  17014. IFS=$as_save_IFS
  17015. ;;
  17016. esac
  17017. fi
  17018. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17019. if test -n "$ARTSCONFIG"; then
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17021. $as_echo "$ARTSCONFIG" >&6; }
  17022. else
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17024. $as_echo "no" >&6; }
  17025. fi
  17026. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17027. : # arts isn't installed
  17028. else
  17029. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17030. ARTS_LIBS=`$ARTSCONFIG --libs`
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17032. $as_echo_n "checking for aRts development environment... " >&6; }
  17033. audio_arts=no
  17034. save_CFLAGS="$CFLAGS"
  17035. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17037. /* end confdefs.h. */
  17038. #include <artsc.h>
  17039. int
  17040. main ()
  17041. {
  17042. arts_stream_t stream;
  17043. ;
  17044. return 0;
  17045. }
  17046. _ACEOF
  17047. if ac_fn_c_try_compile "$LINENO"; then :
  17048. audio_arts=yes
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17051. CFLAGS="$save_CFLAGS"
  17052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17053. $as_echo "$audio_arts" >&6; }
  17054. if test x$audio_arts = xyes; then
  17055. # Check whether --enable-arts-shared was given.
  17056. if test "${enable_arts_shared+set}" = set; then :
  17057. enableval=$enable_arts_shared;
  17058. else
  17059. enable_arts_shared=yes
  17060. fi
  17061. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17062. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17063. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17064. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17065. if test x$have_loadso != xyes && \
  17066. test x$enable_arts_shared = xyes; then
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17068. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17069. fi
  17070. if test x$have_loadso = xyes && \
  17071. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17072. echo "-- dynamic libartsc -> $arts_lib"
  17073. cat >>confdefs.h <<_ACEOF
  17074. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17075. _ACEOF
  17076. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17077. else
  17078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17079. SUMMARY_audio="${SUMMARY_audio} arts"
  17080. fi
  17081. have_audio=yes
  17082. fi
  17083. fi
  17084. fi
  17085. }
  17086. CheckNAS()
  17087. {
  17088. # Check whether --enable-nas was given.
  17089. if test "${enable_nas+set}" = set; then :
  17090. enableval=$enable_nas;
  17091. else
  17092. enable_nas=yes
  17093. fi
  17094. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17095. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17096. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17097. have_nas_hdr=yes
  17098. fi
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17100. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17101. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17102. $as_echo_n "(cached) " >&6
  17103. else
  17104. ac_check_lib_save_LIBS=$LIBS
  17105. LIBS="-laudio $LIBS"
  17106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17107. /* end confdefs.h. */
  17108. /* Override any GCC internal prototype to avoid an error.
  17109. Use char because int might match the return type of a GCC
  17110. builtin and then its argument prototype would still apply. */
  17111. #ifdef __cplusplus
  17112. extern "C"
  17113. #endif
  17114. char AuOpenServer ();
  17115. int
  17116. main ()
  17117. {
  17118. return AuOpenServer ();
  17119. ;
  17120. return 0;
  17121. }
  17122. _ACEOF
  17123. if ac_fn_c_try_link "$LINENO"; then :
  17124. ac_cv_lib_audio_AuOpenServer=yes
  17125. else
  17126. ac_cv_lib_audio_AuOpenServer=no
  17127. fi
  17128. rm -f core conftest.err conftest.$ac_objext \
  17129. conftest$ac_exeext conftest.$ac_ext
  17130. LIBS=$ac_check_lib_save_LIBS
  17131. fi
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17133. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17134. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17135. have_nas_lib=yes
  17136. fi
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17138. $as_echo_n "checking for NAS audio support... " >&6; }
  17139. have_nas=no
  17140. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17141. have_nas=yes
  17142. NAS_LIBS="-laudio"
  17143. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17144. have_nas=yes
  17145. NAS_CFLAGS="-I/usr/X11R6/include/"
  17146. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17147. fi
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17149. $as_echo "$have_nas" >&6; }
  17150. if test x$have_nas = xyes; then
  17151. # Check whether --enable-nas-shared was given.
  17152. if test "${enable_nas_shared+set}" = set; then :
  17153. enableval=$enable_nas_shared;
  17154. else
  17155. enable_nas_shared=yes
  17156. fi
  17157. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17158. if test x$have_loadso != xyes && \
  17159. test x$enable_nas_shared = xyes; then
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17161. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17162. fi
  17163. if test x$have_loadso = xyes && \
  17164. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17165. echo "-- dynamic libaudio -> $nas_lib"
  17166. cat >>confdefs.h <<_ACEOF
  17167. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17168. _ACEOF
  17169. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17170. else
  17171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17172. SUMMARY_audio="${SUMMARY_audio} nas"
  17173. fi
  17174. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17175. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17176. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17177. have_audio=yes
  17178. fi
  17179. fi
  17180. }
  17181. CheckSNDIO()
  17182. {
  17183. # Check whether --enable-sndio was given.
  17184. if test "${enable_sndio+set}" = set; then :
  17185. enableval=$enable_sndio;
  17186. else
  17187. enable_sndio=yes
  17188. fi
  17189. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17190. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17191. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17192. have_sndio_hdr=yes
  17193. fi
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17195. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17196. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17197. $as_echo_n "(cached) " >&6
  17198. else
  17199. ac_check_lib_save_LIBS=$LIBS
  17200. LIBS="-lsndio $LIBS"
  17201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17202. /* end confdefs.h. */
  17203. /* Override any GCC internal prototype to avoid an error.
  17204. Use char because int might match the return type of a GCC
  17205. builtin and then its argument prototype would still apply. */
  17206. #ifdef __cplusplus
  17207. extern "C"
  17208. #endif
  17209. char sio_open ();
  17210. int
  17211. main ()
  17212. {
  17213. return sio_open ();
  17214. ;
  17215. return 0;
  17216. }
  17217. _ACEOF
  17218. if ac_fn_c_try_link "$LINENO"; then :
  17219. ac_cv_lib_sndio_sio_open=yes
  17220. else
  17221. ac_cv_lib_sndio_sio_open=no
  17222. fi
  17223. rm -f core conftest.err conftest.$ac_objext \
  17224. conftest$ac_exeext conftest.$ac_ext
  17225. LIBS=$ac_check_lib_save_LIBS
  17226. fi
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17228. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17229. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17230. have_sndio_lib=yes
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17233. $as_echo_n "checking for sndio audio support... " >&6; }
  17234. have_sndio=no
  17235. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17236. have_sndio=yes
  17237. SNDIO_LIBS="-lsndio"
  17238. fi
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17240. $as_echo "$have_sndio" >&6; }
  17241. if test x$have_sndio = xyes; then
  17242. # Check whether --enable-sndio-shared was given.
  17243. if test "${enable_sndio_shared+set}" = set; then :
  17244. enableval=$enable_sndio_shared;
  17245. else
  17246. enable_sndio_shared=yes
  17247. fi
  17248. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17249. if test x$have_loadso != xyes && \
  17250. test x$enable_sndio_shared = xyes; then
  17251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17252. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17253. fi
  17254. if test x$have_loadso = xyes && \
  17255. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17256. echo "-- dynamic libsndio -> $sndio_lib"
  17257. cat >>confdefs.h <<_ACEOF
  17258. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17259. _ACEOF
  17260. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17261. else
  17262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17263. SUMMARY_audio="${SUMMARY_audio} sndio"
  17264. fi
  17265. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17266. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17267. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17268. have_audio=yes
  17269. fi
  17270. fi
  17271. }
  17272. CheckFusionSound()
  17273. {
  17274. # Check whether --enable-fusionsound was given.
  17275. if test "${enable_fusionsound+set}" = set; then :
  17276. enableval=$enable_fusionsound;
  17277. else
  17278. enable_fusionsound=no
  17279. fi
  17280. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17281. pkg_failed=no
  17282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17283. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17284. if test -n "$FUSIONSOUND_CFLAGS"; then
  17285. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17286. elif test -n "$PKG_CONFIG"; then
  17287. if test -n "$PKG_CONFIG" && \
  17288. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17289. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17290. ac_status=$?
  17291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17292. test $ac_status = 0; }; then
  17293. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17294. test "x$?" != "x0" && pkg_failed=yes
  17295. else
  17296. pkg_failed=yes
  17297. fi
  17298. else
  17299. pkg_failed=untried
  17300. fi
  17301. if test -n "$FUSIONSOUND_LIBS"; then
  17302. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17303. elif test -n "$PKG_CONFIG"; then
  17304. if test -n "$PKG_CONFIG" && \
  17305. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17306. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17307. ac_status=$?
  17308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17309. test $ac_status = 0; }; then
  17310. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17311. test "x$?" != "x0" && pkg_failed=yes
  17312. else
  17313. pkg_failed=yes
  17314. fi
  17315. else
  17316. pkg_failed=untried
  17317. fi
  17318. if test $pkg_failed = yes; then
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17320. $as_echo "no" >&6; }
  17321. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17322. _pkg_short_errors_supported=yes
  17323. else
  17324. _pkg_short_errors_supported=no
  17325. fi
  17326. if test $_pkg_short_errors_supported = yes; then
  17327. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17328. else
  17329. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17330. fi
  17331. # Put the nasty error message in config.log where it belongs
  17332. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17333. fusionsound=no
  17334. elif test $pkg_failed = untried; then
  17335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17336. $as_echo "no" >&6; }
  17337. fusionsound=no
  17338. else
  17339. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17340. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17342. $as_echo "yes" >&6; }
  17343. fusionsound=yes
  17344. fi
  17345. if test x$fusionsound = xyes; then
  17346. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17347. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17348. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17349. # Check whether --enable-fusionsound-shared was given.
  17350. if test "${enable_fusionsound_shared+set}" = set; then :
  17351. enableval=$enable_fusionsound_shared;
  17352. else
  17353. enable_fusionsound_shared=yes
  17354. fi
  17355. fusionsound_shared=no
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17357. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17358. if test x$have_loadso != xyes && \
  17359. test x$enable_fusionsound_shared = xyes; then
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17361. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17362. fi
  17363. if test x$have_loadso = xyes && \
  17364. test x$enable_fusionsound_shared = xyes; then
  17365. cat >>confdefs.h <<_ACEOF
  17366. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17367. _ACEOF
  17368. fusionsound_shared=yes
  17369. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17370. else
  17371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17372. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17373. fi
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17375. $as_echo "$fusionsound_shared" >&6; }
  17376. have_audio=yes
  17377. fi
  17378. fi
  17379. }
  17380. CheckDiskAudio()
  17381. {
  17382. # Check whether --enable-diskaudio was given.
  17383. if test "${enable_diskaudio+set}" = set; then :
  17384. enableval=$enable_diskaudio;
  17385. else
  17386. enable_diskaudio=yes
  17387. fi
  17388. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17389. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17390. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17391. SUMMARY_audio="${SUMMARY_audio} disk"
  17392. fi
  17393. }
  17394. CheckDummyAudio()
  17395. {
  17396. # Check whether --enable-dummyaudio was given.
  17397. if test "${enable_dummyaudio+set}" = set; then :
  17398. enableval=$enable_dummyaudio;
  17399. else
  17400. enable_dummyaudio=yes
  17401. fi
  17402. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17403. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17404. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17405. SUMMARY_audio="${SUMMARY_audio} dummy"
  17406. fi
  17407. }
  17408. CheckLibSampleRate()
  17409. {
  17410. # Check whether --enable-libsamplerate was given.
  17411. if test "${enable_libsamplerate+set}" = set; then :
  17412. enableval=$enable_libsamplerate;
  17413. else
  17414. enable_libsamplerate=yes
  17415. fi
  17416. if test x$enable_libsamplerate = xyes; then
  17417. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17418. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17419. have_samplerate_h_hdr=yes
  17420. else
  17421. have_samplerate_h_hdr=no
  17422. fi
  17423. if test x$have_samplerate_h_hdr = xyes; then
  17424. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17425. # Check whether --enable-libsamplerate-shared was given.
  17426. if test "${enable_libsamplerate_shared+set}" = set; then :
  17427. enableval=$enable_libsamplerate_shared;
  17428. else
  17429. enable_libsamplerate_shared=yes
  17430. fi
  17431. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17432. if test x$have_loadso != xyes && \
  17433. test x$enable_libsamplerate_shared = xyes; then
  17434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17435. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17436. fi
  17437. if test x$have_loadso = xyes && \
  17438. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17439. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17440. cat >>confdefs.h <<_ACEOF
  17441. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17442. _ACEOF
  17443. else
  17444. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17445. fi
  17446. fi
  17447. fi
  17448. }
  17449. CheckARM()
  17450. {
  17451. # Check whether --enable-arm-simd was given.
  17452. if test "${enable_arm_simd+set}" = set; then :
  17453. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17454. else
  17455. enable_arm_simd=no
  17456. fi
  17457. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17458. save_CFLAGS="$CFLAGS"
  17459. have_arm_simd=no
  17460. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17462. $as_echo_n "checking for ARM SIMD... " >&6; }
  17463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17464. /* end confdefs.h. */
  17465. .text
  17466. .arch armv6
  17467. .object_arch armv4
  17468. .arm
  17469. .altmacro
  17470. #ifndef __ARM_EABI__
  17471. #error EABI is required (to be sure that calling conventions are compatible)
  17472. #endif
  17473. pld [r0]
  17474. uqadd8 r0, r0, r0
  17475. _ACEOF
  17476. if ac_fn_c_try_compile "$LINENO"; then :
  17477. have_arm_simd=yes
  17478. fi
  17479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17481. $as_echo "$have_arm_simd" >&6; }
  17482. CFLAGS="$save_CFLAGS"
  17483. if test x$have_arm_simd = xyes; then
  17484. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17485. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17486. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17487. fi
  17488. fi
  17489. }
  17490. CheckNEON()
  17491. {
  17492. # Check whether --enable-arm-neon was given.
  17493. if test "${enable_arm_neon+set}" = set; then :
  17494. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17495. else
  17496. enable_arm_neon=no
  17497. fi
  17498. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17499. save_CFLAGS="$CFLAGS"
  17500. have_arm_neon=no
  17501. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17503. $as_echo_n "checking for ARM NEON... " >&6; }
  17504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17505. /* end confdefs.h. */
  17506. .text
  17507. .fpu neon
  17508. .arch armv7a
  17509. .object_arch armv4
  17510. .eabi_attribute 10, 0
  17511. .arm
  17512. .altmacro
  17513. #ifndef __ARM_EABI__
  17514. #error EABI is required (to be sure that calling conventions are compatible)
  17515. #endif
  17516. pld [r0]
  17517. vmovn.u16 d0, q0
  17518. _ACEOF
  17519. if ac_fn_c_try_compile "$LINENO"; then :
  17520. have_arm_neon=yes
  17521. fi
  17522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17524. $as_echo "$have_arm_neon" >&6; }
  17525. CFLAGS="$save_CFLAGS"
  17526. if test x$have_arm_neon = xyes; then
  17527. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17528. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17529. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17530. fi
  17531. fi
  17532. }
  17533. CheckVisibilityHidden()
  17534. {
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17536. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17537. have_gcc_fvisibility=no
  17538. visibility_CFLAGS="-fvisibility=hidden"
  17539. save_CFLAGS="$CFLAGS"
  17540. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. #if !defined(__GNUC__) || __GNUC__ < 4
  17544. #error SDL only uses visibility attributes in GCC 4 or newer
  17545. #endif
  17546. int
  17547. main ()
  17548. {
  17549. ;
  17550. return 0;
  17551. }
  17552. _ACEOF
  17553. if ac_fn_c_try_compile "$LINENO"; then :
  17554. have_gcc_fvisibility=yes
  17555. fi
  17556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17558. $as_echo "$have_gcc_fvisibility" >&6; }
  17559. CFLAGS="$save_CFLAGS"
  17560. if test x$have_gcc_fvisibility = xyes; then
  17561. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17562. fi
  17563. }
  17564. CheckNoStrictAliasing()
  17565. {
  17566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17567. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17568. have_gcc_no_strict_aliasing=no
  17569. save_CFLAGS="$CFLAGS"
  17570. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17572. /* end confdefs.h. */
  17573. int x = 0;
  17574. int
  17575. main ()
  17576. {
  17577. ;
  17578. return 0;
  17579. }
  17580. _ACEOF
  17581. if ac_fn_c_try_compile "$LINENO"; then :
  17582. have_gcc_no_strict_aliasing=yes
  17583. fi
  17584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17586. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17587. CFLAGS="$save_CFLAGS"
  17588. if test x$have_gcc_no_strict_aliasing = xyes; then
  17589. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17590. fi
  17591. }
  17592. CheckStackBoundary()
  17593. {
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17595. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17596. have_gcc_preferred_stack_boundary=no
  17597. save_CFLAGS="$CFLAGS"
  17598. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17600. /* end confdefs.h. */
  17601. int x = 0;
  17602. int
  17603. main ()
  17604. {
  17605. ;
  17606. return 0;
  17607. }
  17608. _ACEOF
  17609. if ac_fn_c_try_compile "$LINENO"; then :
  17610. have_gcc_preferred_stack_boundary=yes
  17611. fi
  17612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17614. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17615. CFLAGS="$save_CFLAGS"
  17616. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17617. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17618. fi
  17619. }
  17620. CheckDeclarationAfterStatement()
  17621. {
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17623. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17624. have_gcc_declaration_after_statement=no
  17625. save_CFLAGS="$CFLAGS"
  17626. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17628. /* end confdefs.h. */
  17629. int x = 0;
  17630. int
  17631. main ()
  17632. {
  17633. ;
  17634. return 0;
  17635. }
  17636. _ACEOF
  17637. if ac_fn_c_try_compile "$LINENO"; then :
  17638. have_gcc_declaration_after_statement=yes
  17639. fi
  17640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17642. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17643. CFLAGS="$save_CFLAGS"
  17644. if test x$have_gcc_declaration_after_statement = xyes; then
  17645. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17646. fi
  17647. }
  17648. CheckWarnAll()
  17649. {
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17651. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17652. have_gcc_Wall=no
  17653. save_CFLAGS="$CFLAGS"
  17654. CFLAGS="$save_CFLAGS -Wall"
  17655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17656. /* end confdefs.h. */
  17657. int x = 0;
  17658. int
  17659. main ()
  17660. {
  17661. ;
  17662. return 0;
  17663. }
  17664. _ACEOF
  17665. if ac_fn_c_try_compile "$LINENO"; then :
  17666. have_gcc_Wall=yes
  17667. fi
  17668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17670. $as_echo "$have_gcc_Wall" >&6; }
  17671. CFLAGS="$save_CFLAGS"
  17672. if test x$have_gcc_Wall = xyes; then
  17673. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17675. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17676. need_gcc_Wno_multichar=no
  17677. case "$host" in
  17678. *-*-haiku*)
  17679. need_gcc_Wno_multichar=yes
  17680. ;;
  17681. esac
  17682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17683. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17684. if test x$need_gcc_Wno_multichar = xyes; then
  17685. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17686. fi
  17687. fi
  17688. }
  17689. CheckWayland()
  17690. {
  17691. # Check whether --enable-video-wayland was given.
  17692. if test "${enable_video_wayland+set}" = set; then :
  17693. enableval=$enable_video_wayland;
  17694. else
  17695. enable_video_wayland=yes
  17696. fi
  17697. # Check whether --enable-video-wayland-qt-touch was given.
  17698. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17699. enableval=$enable_video_wayland_qt_touch;
  17700. else
  17701. enable_video_wayland_qt_touch=yes
  17702. fi
  17703. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17705. $as_echo_n "checking for Wayland support... " >&6; }
  17706. video_wayland=no
  17707. if test x$video_opengl_egl = xyes && \
  17708. test x$video_opengles_v2 = xyes; then
  17709. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17710. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17711. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17712. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17713. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17714. WAYLAND_SCANNER_CODE_MODE=private-code
  17715. else
  17716. WAYLAND_SCANNER_CODE_MODE=code
  17717. fi
  17718. video_wayland=yes
  17719. fi
  17720. fi
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17722. $as_echo "$video_wayland" >&6; }
  17723. if test x$video_wayland = xyes; then
  17724. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17725. if test x$enable_video_wayland_qt_touch = xyes; then
  17726. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17727. fi
  17728. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17729. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17730. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17731. # Check whether --enable-wayland-shared was given.
  17732. if test "${enable_wayland_shared+set}" = set; then :
  17733. enableval=$enable_wayland_shared;
  17734. else
  17735. enable_wayland_shared=maybe
  17736. fi
  17737. case "$host" in
  17738. *)
  17739. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17740. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17741. if test x$wayland_egl_lib = x; then
  17742. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17743. fi
  17744. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17745. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17746. ;;
  17747. esac
  17748. if test x$enable_wayland_shared = xmaybe; then
  17749. enable_wayland_shared=yes
  17750. fi
  17751. if test x$have_loadso != xyes && \
  17752. test x$enable_wayland_shared = xyes; then
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17754. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17755. enable_wayland_shared=no
  17756. fi
  17757. if test x$have_loadso = xyes && \
  17758. test x$enable_wayland_shared = xyes && \
  17759. test x$wayland_client_lib != x && \
  17760. test x$wayland_egl_lib != x && \
  17761. test x$wayland_cursor_lib != x && \
  17762. test x$xkbcommon_lib != x; then
  17763. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17764. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17765. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17766. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17767. cat >>confdefs.h <<_ACEOF
  17768. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17769. _ACEOF
  17770. cat >>confdefs.h <<_ACEOF
  17771. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17772. _ACEOF
  17773. cat >>confdefs.h <<_ACEOF
  17774. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17775. _ACEOF
  17776. cat >>confdefs.h <<_ACEOF
  17777. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17778. _ACEOF
  17779. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17780. else
  17781. enable_wayland_shared=no
  17782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17783. SUMMARY_video="${SUMMARY_video} wayland"
  17784. fi
  17785. have_video=yes
  17786. # Check whether --enable-libdecor was given.
  17787. if test "${enable_libdecor+set}" = set; then :
  17788. enableval=$enable_libdecor;
  17789. else
  17790. enable_libdecor=yes
  17791. fi
  17792. if test x$enable_libdecor = xyes; then
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17794. $as_echo_n "checking for libdecor support... " >&6; }
  17795. if $PKG_CONFIG --exists libdecor-0; then :
  17796. video_libdecor=yes
  17797. else
  17798. video_libdecor=no
  17799. fi
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17801. $as_echo "$video_libdecor" >&6; }
  17802. if test x$video_libdecor = xyes; then
  17803. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17804. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17805. # Check whether --enable-libdecor-shared was given.
  17806. if test "${enable_libdecor_shared+set}" = set; then :
  17807. enableval=$enable_libdecor_shared;
  17808. else
  17809. enable_libdecor_shared=yes
  17810. fi
  17811. if test x$enable_wayland_shared != xyes; then
  17812. enable_libdecor_shared=no
  17813. fi
  17814. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. if test x$have_loadso != xyes && \
  17816. test x$enable_libdecor_shared = xyes; then
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17818. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17819. fi
  17820. if test x$have_loadso = xyes && \
  17821. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17822. echo "-- dynamic libdecor -> $decor_lib"
  17823. cat >>confdefs.h <<_ACEOF
  17824. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17825. _ACEOF
  17826. else
  17827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17828. fi
  17829. fi
  17830. fi
  17831. fi
  17832. fi
  17833. }
  17834. CheckNativeClient()
  17835. {
  17836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17837. /* end confdefs.h. */
  17838. #if !defined(__native_client__)
  17839. #error "NO NACL"
  17840. #endif
  17841. int
  17842. main ()
  17843. {
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. if ac_fn_c_try_compile "$LINENO"; then :
  17849. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17850. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17851. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17852. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17853. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17854. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17855. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17856. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17857. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17858. SUMMARY_audio="${SUMMARY_audio} nacl"
  17859. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17860. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17861. fi
  17862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17863. }
  17864. CheckRPI()
  17865. {
  17866. # Check whether --enable-video-rpi was given.
  17867. if test "${enable_video_rpi+set}" = set; then :
  17868. enableval=$enable_video_rpi;
  17869. else
  17870. enable_video_rpi=yes
  17871. fi
  17872. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17873. pkg_failed=no
  17874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17875. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17876. if test -n "$RPI_CFLAGS"; then
  17877. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17878. elif test -n "$PKG_CONFIG"; then
  17879. if test -n "$PKG_CONFIG" && \
  17880. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17881. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17882. ac_status=$?
  17883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17884. test $ac_status = 0; }; then
  17885. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17886. test "x$?" != "x0" && pkg_failed=yes
  17887. else
  17888. pkg_failed=yes
  17889. fi
  17890. else
  17891. pkg_failed=untried
  17892. fi
  17893. if test -n "$RPI_LIBS"; then
  17894. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17895. elif test -n "$PKG_CONFIG"; then
  17896. if test -n "$PKG_CONFIG" && \
  17897. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17898. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17899. ac_status=$?
  17900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17901. test $ac_status = 0; }; then
  17902. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17903. test "x$?" != "x0" && pkg_failed=yes
  17904. else
  17905. pkg_failed=yes
  17906. fi
  17907. else
  17908. pkg_failed=untried
  17909. fi
  17910. if test $pkg_failed = yes; then
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17912. $as_echo "no" >&6; }
  17913. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17914. _pkg_short_errors_supported=yes
  17915. else
  17916. _pkg_short_errors_supported=no
  17917. fi
  17918. if test $_pkg_short_errors_supported = yes; then
  17919. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17920. else
  17921. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17922. fi
  17923. # Put the nasty error message in config.log where it belongs
  17924. echo "$RPI_PKG_ERRORS" >&5
  17925. video_rpi=no
  17926. elif test $pkg_failed = untried; then
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17928. $as_echo "no" >&6; }
  17929. video_rpi=no
  17930. else
  17931. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17932. RPI_LIBS=$pkg_cv_RPI_LIBS
  17933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17934. $as_echo "yes" >&6; }
  17935. video_rpi=yes
  17936. fi
  17937. if test x$video_rpi = xno; then
  17938. if test x$ARCH = xnetbsd; then
  17939. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17940. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17941. else
  17942. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17943. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17944. fi
  17945. fi
  17946. # Save the original compiler flags and libraries
  17947. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17948. # Add the Raspberry Pi compiler flags and libraries
  17949. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17951. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17952. have_video_rpi=no
  17953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17954. /* end confdefs.h. */
  17955. #include <bcm_host.h>
  17956. #include <EGL/eglplatform.h>
  17957. int
  17958. main ()
  17959. {
  17960. EGL_DISPMANX_WINDOW_T window;
  17961. bcm_host_init();
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. if ac_fn_c_try_link "$LINENO"; then :
  17967. have_video_rpi=yes
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext \
  17970. conftest$ac_exeext conftest.$ac_ext
  17971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17972. $as_echo "$have_video_rpi" >&6; }
  17973. # Restore the compiler flags and libraries
  17974. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17975. if test x$have_video_rpi = xyes; then
  17976. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17977. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17978. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17980. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17981. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17982. SUMMARY_video="${SUMMARY_video} rpi"
  17983. fi
  17984. fi
  17985. }
  17986. CheckX11()
  17987. {
  17988. # Check whether --enable-video-x11 was given.
  17989. if test "${enable_video_x11+set}" = set; then :
  17990. enableval=$enable_video_x11;
  17991. else
  17992. enable_video_x11=yes
  17993. fi
  17994. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17995. case "$host" in
  17996. *-*-darwin*)
  17997. # This isn't necessary for X11, but fixes GLX detection
  17998. if test "x$x_includes" = xNONE && \
  17999. test "x$x_libraries" = xNONE && \
  18000. test -d /opt/X11/include && \
  18001. test -d /opt/X11/lib; then
  18002. x_includes="/opt/X11/include"
  18003. x_libraries="/opt/X11/lib"
  18004. fi
  18005. ;;
  18006. esac
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18008. $as_echo_n "checking for X... " >&6; }
  18009. # Check whether --with-x was given.
  18010. if test "${with_x+set}" = set; then :
  18011. withval=$with_x;
  18012. fi
  18013. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18014. if test "x$with_x" = xno; then
  18015. # The user explicitly disabled X.
  18016. have_x=disabled
  18017. else
  18018. case $x_includes,$x_libraries in #(
  18019. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18020. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18021. $as_echo_n "(cached) " >&6
  18022. else
  18023. # One or both of the vars are not set, and there is no cached value.
  18024. ac_x_includes=no
  18025. ac_x_libraries=no
  18026. # Do we need to do anything special at all?
  18027. ac_save_LIBS=$LIBS
  18028. LIBS="-lX11 $LIBS"
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. #include <X11/Xlib.h>
  18032. int
  18033. main ()
  18034. {
  18035. XrmInitialize ()
  18036. ;
  18037. return 0;
  18038. }
  18039. _ACEOF
  18040. if ac_fn_c_try_link "$LINENO"; then :
  18041. # We can compile and link X programs with no special options.
  18042. ac_x_includes=
  18043. ac_x_libraries=
  18044. fi
  18045. rm -f core conftest.err conftest.$ac_objext \
  18046. conftest$ac_exeext conftest.$ac_ext
  18047. LIBS="$ac_save_LIBS"
  18048. # If that didn't work, only try xmkmf and filesystem searches
  18049. # for native compilation.
  18050. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18051. rm -f -r conftest.dir
  18052. if mkdir conftest.dir; then
  18053. cd conftest.dir
  18054. cat >Imakefile <<'_ACEOF'
  18055. incroot:
  18056. @echo incroot='${INCROOT}'
  18057. usrlibdir:
  18058. @echo usrlibdir='${USRLIBDIR}'
  18059. libdir:
  18060. @echo libdir='${LIBDIR}'
  18061. _ACEOF
  18062. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18063. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18064. for ac_var in incroot usrlibdir libdir; do
  18065. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18066. done
  18067. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18068. for ac_extension in a so sl dylib la dll; do
  18069. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18070. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18071. ac_im_usrlibdir=$ac_im_libdir; break
  18072. fi
  18073. done
  18074. # Screen out bogus values from the imake configuration. They are
  18075. # bogus both because they are the default anyway, and because
  18076. # using them would break gcc on systems where it needs fixed includes.
  18077. case $ac_im_incroot in
  18078. /usr/include) ac_x_includes= ;;
  18079. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18080. esac
  18081. case $ac_im_usrlibdir in
  18082. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18083. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18084. esac
  18085. fi
  18086. cd ..
  18087. rm -f -r conftest.dir
  18088. fi
  18089. # Standard set of common directories for X headers.
  18090. # Check X11 before X11Rn because it is often a symlink to the current release.
  18091. ac_x_header_dirs='
  18092. /usr/X11/include
  18093. /usr/X11R7/include
  18094. /usr/X11R6/include
  18095. /usr/X11R5/include
  18096. /usr/X11R4/include
  18097. /usr/include/X11
  18098. /usr/include/X11R7
  18099. /usr/include/X11R6
  18100. /usr/include/X11R5
  18101. /usr/include/X11R4
  18102. /usr/local/X11/include
  18103. /usr/local/X11R7/include
  18104. /usr/local/X11R6/include
  18105. /usr/local/X11R5/include
  18106. /usr/local/X11R4/include
  18107. /usr/local/include/X11
  18108. /usr/local/include/X11R7
  18109. /usr/local/include/X11R6
  18110. /usr/local/include/X11R5
  18111. /usr/local/include/X11R4
  18112. /opt/X11/include
  18113. /usr/X386/include
  18114. /usr/x386/include
  18115. /usr/XFree86/include/X11
  18116. /usr/include
  18117. /usr/local/include
  18118. /usr/unsupported/include
  18119. /usr/athena/include
  18120. /usr/local/x11r5/include
  18121. /usr/lpp/Xamples/include
  18122. /usr/openwin/include
  18123. /usr/openwin/share/include'
  18124. if test "$ac_x_includes" = no; then
  18125. # Guess where to find include files, by looking for Xlib.h.
  18126. # First, try using that file with no special directory specified.
  18127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18128. /* end confdefs.h. */
  18129. #include <X11/Xlib.h>
  18130. _ACEOF
  18131. if ac_fn_c_try_cpp "$LINENO"; then :
  18132. # We can compile using X headers with no special include directory.
  18133. ac_x_includes=
  18134. else
  18135. for ac_dir in $ac_x_header_dirs; do
  18136. if test -r "$ac_dir/X11/Xlib.h"; then
  18137. ac_x_includes=$ac_dir
  18138. break
  18139. fi
  18140. done
  18141. fi
  18142. rm -f conftest.err conftest.i conftest.$ac_ext
  18143. fi # $ac_x_includes = no
  18144. if test "$ac_x_libraries" = no; then
  18145. # Check for the libraries.
  18146. # See if we find them without any special options.
  18147. # Don't add to $LIBS permanently.
  18148. ac_save_LIBS=$LIBS
  18149. LIBS="-lX11 $LIBS"
  18150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18151. /* end confdefs.h. */
  18152. #include <X11/Xlib.h>
  18153. int
  18154. main ()
  18155. {
  18156. XrmInitialize ()
  18157. ;
  18158. return 0;
  18159. }
  18160. _ACEOF
  18161. if ac_fn_c_try_link "$LINENO"; then :
  18162. LIBS=$ac_save_LIBS
  18163. # We can link X programs with no special library path.
  18164. ac_x_libraries=
  18165. else
  18166. LIBS=$ac_save_LIBS
  18167. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18168. do
  18169. # Don't even attempt the hair of trying to link an X program!
  18170. for ac_extension in a so sl dylib la dll; do
  18171. if test -r "$ac_dir/libX11.$ac_extension"; then
  18172. ac_x_libraries=$ac_dir
  18173. break 2
  18174. fi
  18175. done
  18176. done
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext \
  18179. conftest$ac_exeext conftest.$ac_ext
  18180. fi # $ac_x_libraries = no
  18181. fi
  18182. # Record the results.
  18183. case $ac_x_includes,$ac_x_libraries in #(
  18184. no,* | *,no | *\'*) :
  18185. # Didn't find X, or a directory has "'" in its name.
  18186. ac_cv_have_x="have_x=no" ;; #(
  18187. *) :
  18188. # Record where we found X for the cache.
  18189. ac_cv_have_x="have_x=yes\
  18190. ac_x_includes='$ac_x_includes'\
  18191. ac_x_libraries='$ac_x_libraries'" ;;
  18192. esac
  18193. fi
  18194. ;; #(
  18195. *) have_x=yes;;
  18196. esac
  18197. eval "$ac_cv_have_x"
  18198. fi # $with_x != no
  18199. if test "$have_x" != yes; then
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18201. $as_echo "$have_x" >&6; }
  18202. no_x=yes
  18203. else
  18204. # If each of the values was on the command line, it overrides each guess.
  18205. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18206. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18207. # Update the cache value to reflect the command line values.
  18208. ac_cv_have_x="have_x=yes\
  18209. ac_x_includes='$x_includes'\
  18210. ac_x_libraries='$x_libraries'"
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18212. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18213. fi
  18214. if test "$no_x" = yes; then
  18215. # Not all programs may use this symbol, but it does not hurt to define it.
  18216. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18217. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18218. else
  18219. if test -n "$x_includes"; then
  18220. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18221. fi
  18222. # It would also be nice to do this for all -L options, not just this one.
  18223. if test -n "$x_libraries"; then
  18224. X_LIBS="$X_LIBS -L$x_libraries"
  18225. # For Solaris; some versions of Sun CC require a space after -R and
  18226. # others require no space. Words are not sufficient . . . .
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18228. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18229. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18230. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18231. ac_c_werror_flag=yes
  18232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18233. /* end confdefs.h. */
  18234. int
  18235. main ()
  18236. {
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_link "$LINENO"; then :
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18243. $as_echo "no" >&6; }
  18244. X_LIBS="$X_LIBS -R$x_libraries"
  18245. else
  18246. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. int
  18250. main ()
  18251. {
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_link "$LINENO"; then :
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18258. $as_echo "yes" >&6; }
  18259. X_LIBS="$X_LIBS -R $x_libraries"
  18260. else
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18262. $as_echo "neither works" >&6; }
  18263. fi
  18264. rm -f core conftest.err conftest.$ac_objext \
  18265. conftest$ac_exeext conftest.$ac_ext
  18266. fi
  18267. rm -f core conftest.err conftest.$ac_objext \
  18268. conftest$ac_exeext conftest.$ac_ext
  18269. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18270. LIBS=$ac_xsave_LIBS
  18271. fi
  18272. # Check for system-dependent libraries X programs must link with.
  18273. # Do this before checking for the system-independent R6 libraries
  18274. # (-lICE), since we may need -lsocket or whatever for X linking.
  18275. if test "$ISC" = yes; then
  18276. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18277. else
  18278. # Martyn Johnson says this is needed for Ultrix, if the X
  18279. # libraries were built with DECnet support. And Karl Berry says
  18280. # the Alpha needs dnet_stub (dnet does not exist).
  18281. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18283. /* end confdefs.h. */
  18284. /* Override any GCC internal prototype to avoid an error.
  18285. Use char because int might match the return type of a GCC
  18286. builtin and then its argument prototype would still apply. */
  18287. #ifdef __cplusplus
  18288. extern "C"
  18289. #endif
  18290. char XOpenDisplay ();
  18291. int
  18292. main ()
  18293. {
  18294. return XOpenDisplay ();
  18295. ;
  18296. return 0;
  18297. }
  18298. _ACEOF
  18299. if ac_fn_c_try_link "$LINENO"; then :
  18300. else
  18301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18302. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18303. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18304. $as_echo_n "(cached) " >&6
  18305. else
  18306. ac_check_lib_save_LIBS=$LIBS
  18307. LIBS="-ldnet $LIBS"
  18308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18309. /* end confdefs.h. */
  18310. /* Override any GCC internal prototype to avoid an error.
  18311. Use char because int might match the return type of a GCC
  18312. builtin and then its argument prototype would still apply. */
  18313. #ifdef __cplusplus
  18314. extern "C"
  18315. #endif
  18316. char dnet_ntoa ();
  18317. int
  18318. main ()
  18319. {
  18320. return dnet_ntoa ();
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. if ac_fn_c_try_link "$LINENO"; then :
  18326. ac_cv_lib_dnet_dnet_ntoa=yes
  18327. else
  18328. ac_cv_lib_dnet_dnet_ntoa=no
  18329. fi
  18330. rm -f core conftest.err conftest.$ac_objext \
  18331. conftest$ac_exeext conftest.$ac_ext
  18332. LIBS=$ac_check_lib_save_LIBS
  18333. fi
  18334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18335. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18336. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18337. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18338. fi
  18339. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18341. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18342. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18343. $as_echo_n "(cached) " >&6
  18344. else
  18345. ac_check_lib_save_LIBS=$LIBS
  18346. LIBS="-ldnet_stub $LIBS"
  18347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18348. /* end confdefs.h. */
  18349. /* Override any GCC internal prototype to avoid an error.
  18350. Use char because int might match the return type of a GCC
  18351. builtin and then its argument prototype would still apply. */
  18352. #ifdef __cplusplus
  18353. extern "C"
  18354. #endif
  18355. char dnet_ntoa ();
  18356. int
  18357. main ()
  18358. {
  18359. return dnet_ntoa ();
  18360. ;
  18361. return 0;
  18362. }
  18363. _ACEOF
  18364. if ac_fn_c_try_link "$LINENO"; then :
  18365. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18366. else
  18367. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18368. fi
  18369. rm -f core conftest.err conftest.$ac_objext \
  18370. conftest$ac_exeext conftest.$ac_ext
  18371. LIBS=$ac_check_lib_save_LIBS
  18372. fi
  18373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18374. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18375. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18376. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18377. fi
  18378. fi
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext \
  18381. conftest$ac_exeext conftest.$ac_ext
  18382. LIBS="$ac_xsave_LIBS"
  18383. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18384. # to get the SysV transport functions.
  18385. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18386. # needs -lnsl.
  18387. # The nsl library prevents programs from opening the X display
  18388. # on Irix 5.2, according to T.E. Dickey.
  18389. # The functions gethostbyname, getservbyname, and inet_addr are
  18390. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18391. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18392. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18393. fi
  18394. if test $ac_cv_func_gethostbyname = no; then
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18396. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18397. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18398. $as_echo_n "(cached) " >&6
  18399. else
  18400. ac_check_lib_save_LIBS=$LIBS
  18401. LIBS="-lnsl $LIBS"
  18402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h. */
  18404. /* Override any GCC internal prototype to avoid an error.
  18405. Use char because int might match the return type of a GCC
  18406. builtin and then its argument prototype would still apply. */
  18407. #ifdef __cplusplus
  18408. extern "C"
  18409. #endif
  18410. char gethostbyname ();
  18411. int
  18412. main ()
  18413. {
  18414. return gethostbyname ();
  18415. ;
  18416. return 0;
  18417. }
  18418. _ACEOF
  18419. if ac_fn_c_try_link "$LINENO"; then :
  18420. ac_cv_lib_nsl_gethostbyname=yes
  18421. else
  18422. ac_cv_lib_nsl_gethostbyname=no
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext \
  18425. conftest$ac_exeext conftest.$ac_ext
  18426. LIBS=$ac_check_lib_save_LIBS
  18427. fi
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18429. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18430. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18431. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18432. fi
  18433. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18435. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18436. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18437. $as_echo_n "(cached) " >&6
  18438. else
  18439. ac_check_lib_save_LIBS=$LIBS
  18440. LIBS="-lbsd $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 gethostbyname ();
  18450. int
  18451. main ()
  18452. {
  18453. return gethostbyname ();
  18454. ;
  18455. return 0;
  18456. }
  18457. _ACEOF
  18458. if ac_fn_c_try_link "$LINENO"; then :
  18459. ac_cv_lib_bsd_gethostbyname=yes
  18460. else
  18461. ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
  18468. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18469. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18470. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18471. fi
  18472. fi
  18473. fi
  18474. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18475. # socket/setsockopt and other routines are undefined under SCO ODT
  18476. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18477. # on later versions), says Simon Leinen: it contains gethostby*
  18478. # variants that don't use the name server (or something). -lsocket
  18479. # must be given before -lnsl if both are needed. We assume that
  18480. # if connect needs -lnsl, so does gethostbyname.
  18481. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18482. if test "x$ac_cv_func_connect" = xyes; then :
  18483. fi
  18484. if test $ac_cv_func_connect = no; then
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18486. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18487. if ${ac_cv_lib_socket_connect+:} false; then :
  18488. $as_echo_n "(cached) " >&6
  18489. else
  18490. ac_check_lib_save_LIBS=$LIBS
  18491. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18493. /* end confdefs.h. */
  18494. /* Override any GCC internal prototype to avoid an error.
  18495. Use char because int might match the return type of a GCC
  18496. builtin and then its argument prototype would still apply. */
  18497. #ifdef __cplusplus
  18498. extern "C"
  18499. #endif
  18500. char connect ();
  18501. int
  18502. main ()
  18503. {
  18504. return connect ();
  18505. ;
  18506. return 0;
  18507. }
  18508. _ACEOF
  18509. if ac_fn_c_try_link "$LINENO"; then :
  18510. ac_cv_lib_socket_connect=yes
  18511. else
  18512. ac_cv_lib_socket_connect=no
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext \
  18515. conftest$ac_exeext conftest.$ac_ext
  18516. LIBS=$ac_check_lib_save_LIBS
  18517. fi
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18519. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18520. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18521. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18522. fi
  18523. fi
  18524. # Guillermo Gomez says -lposix is necessary on A/UX.
  18525. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18526. if test "x$ac_cv_func_remove" = xyes; then :
  18527. fi
  18528. if test $ac_cv_func_remove = no; then
  18529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18530. $as_echo_n "checking for remove in -lposix... " >&6; }
  18531. if ${ac_cv_lib_posix_remove+:} false; then :
  18532. $as_echo_n "(cached) " >&6
  18533. else
  18534. ac_check_lib_save_LIBS=$LIBS
  18535. LIBS="-lposix $LIBS"
  18536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18537. /* end confdefs.h. */
  18538. /* Override any GCC internal prototype to avoid an error.
  18539. Use char because int might match the return type of a GCC
  18540. builtin and then its argument prototype would still apply. */
  18541. #ifdef __cplusplus
  18542. extern "C"
  18543. #endif
  18544. char remove ();
  18545. int
  18546. main ()
  18547. {
  18548. return remove ();
  18549. ;
  18550. return 0;
  18551. }
  18552. _ACEOF
  18553. if ac_fn_c_try_link "$LINENO"; then :
  18554. ac_cv_lib_posix_remove=yes
  18555. else
  18556. ac_cv_lib_posix_remove=no
  18557. fi
  18558. rm -f core conftest.err conftest.$ac_objext \
  18559. conftest$ac_exeext conftest.$ac_ext
  18560. LIBS=$ac_check_lib_save_LIBS
  18561. fi
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18563. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18564. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18565. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18566. fi
  18567. fi
  18568. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18569. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18570. if test "x$ac_cv_func_shmat" = xyes; then :
  18571. fi
  18572. if test $ac_cv_func_shmat = no; then
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18574. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18575. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18576. $as_echo_n "(cached) " >&6
  18577. else
  18578. ac_check_lib_save_LIBS=$LIBS
  18579. LIBS="-lipc $LIBS"
  18580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18581. /* end confdefs.h. */
  18582. /* Override any GCC internal prototype to avoid an error.
  18583. Use char because int might match the return type of a GCC
  18584. builtin and then its argument prototype would still apply. */
  18585. #ifdef __cplusplus
  18586. extern "C"
  18587. #endif
  18588. char shmat ();
  18589. int
  18590. main ()
  18591. {
  18592. return shmat ();
  18593. ;
  18594. return 0;
  18595. }
  18596. _ACEOF
  18597. if ac_fn_c_try_link "$LINENO"; then :
  18598. ac_cv_lib_ipc_shmat=yes
  18599. else
  18600. ac_cv_lib_ipc_shmat=no
  18601. fi
  18602. rm -f core conftest.err conftest.$ac_objext \
  18603. conftest$ac_exeext conftest.$ac_ext
  18604. LIBS=$ac_check_lib_save_LIBS
  18605. fi
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18607. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18608. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18609. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18610. fi
  18611. fi
  18612. fi
  18613. # Check for libraries that X11R6 Xt/Xaw programs need.
  18614. ac_save_LDFLAGS=$LDFLAGS
  18615. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18616. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18617. # check for ICE first), but we must link in the order -lSM -lICE or
  18618. # we get undefined symbols. So assume we have SM if we have ICE.
  18619. # These have to be linked with before -lX11, unlike the other
  18620. # libraries we check for below, so use a different variable.
  18621. # John Interrante, Karl Berry
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18623. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18624. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18625. $as_echo_n "(cached) " >&6
  18626. else
  18627. ac_check_lib_save_LIBS=$LIBS
  18628. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18630. /* end confdefs.h. */
  18631. /* Override any GCC internal prototype to avoid an error.
  18632. Use char because int might match the return type of a GCC
  18633. builtin and then its argument prototype would still apply. */
  18634. #ifdef __cplusplus
  18635. extern "C"
  18636. #endif
  18637. char IceConnectionNumber ();
  18638. int
  18639. main ()
  18640. {
  18641. return IceConnectionNumber ();
  18642. ;
  18643. return 0;
  18644. }
  18645. _ACEOF
  18646. if ac_fn_c_try_link "$LINENO"; then :
  18647. ac_cv_lib_ICE_IceConnectionNumber=yes
  18648. else
  18649. ac_cv_lib_ICE_IceConnectionNumber=no
  18650. fi
  18651. rm -f core conftest.err conftest.$ac_objext \
  18652. conftest$ac_exeext conftest.$ac_ext
  18653. LIBS=$ac_check_lib_save_LIBS
  18654. fi
  18655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18656. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18657. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18658. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18659. fi
  18660. LDFLAGS=$ac_save_LDFLAGS
  18661. fi
  18662. if test x$have_x = xyes; then
  18663. # Check whether --enable-x11-shared was given.
  18664. if test "${enable_x11_shared+set}" = set; then :
  18665. enableval=$enable_x11_shared;
  18666. else
  18667. enable_x11_shared=maybe
  18668. fi
  18669. case "$host" in
  18670. *-*-darwin*)
  18671. # Apple now puts this in /opt/X11
  18672. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18673. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18674. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18675. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18676. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18677. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18678. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18679. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18680. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18681. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18682. ;;
  18683. *-*-openbsd*)
  18684. x11_lib='libX11.so'
  18685. x11ext_lib='libXext.so'
  18686. xcursor_lib='libXcursor.so'
  18687. xinerama_lib='libXinerama.so'
  18688. xinput_lib='libXi.so'
  18689. xfixes_lib='libXfixes.so'
  18690. xrandr_lib='libXrandr.so'
  18691. xrender_lib='libXrender.so'
  18692. xss_lib='libXss.so'
  18693. xvidmode_lib='libXxf86vm.so'
  18694. ;;
  18695. *)
  18696. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18697. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18698. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18699. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18700. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18701. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18702. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18703. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18704. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18705. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18706. ;;
  18707. esac
  18708. if test x$ac_cv_func_shmat != xyes; then
  18709. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18710. fi
  18711. CFLAGS="$CFLAGS $X_CFLAGS"
  18712. LDFLAGS="$LDFLAGS $X_LIBS"
  18713. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18714. #include <X11/Xproto.h>
  18715. "
  18716. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18717. have_xext_h_hdr=yes
  18718. else
  18719. have_xext_h_hdr=no
  18720. fi
  18721. if test x$have_xext_h_hdr != xyes; then
  18722. as_fn_error $? "
  18723. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18724. " "$LINENO" 5
  18725. fi
  18726. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18727. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18728. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18729. # Needed so SDL applications can include SDL_syswm.h
  18730. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18731. if test x$enable_x11_shared = xmaybe; then
  18732. enable_x11_shared=yes
  18733. fi
  18734. if test x$have_loadso != xyes && \
  18735. test x$enable_x11_shared = xyes; then
  18736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18737. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18738. enable_x11_shared=no
  18739. fi
  18740. if test x$have_loadso = xyes && \
  18741. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18742. echo "-- dynamic libX11 -> $x11_lib"
  18743. echo "-- dynamic libX11ext -> $x11ext_lib"
  18744. cat >>confdefs.h <<_ACEOF
  18745. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18746. _ACEOF
  18747. cat >>confdefs.h <<_ACEOF
  18748. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18749. _ACEOF
  18750. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18751. else
  18752. enable_x11_shared=no
  18753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18754. SUMMARY_video="${SUMMARY_video} x11"
  18755. fi
  18756. have_video=yes
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18758. $as_echo_n "checking for XGenericEvent... " >&6; }
  18759. have_XGenericEvent=no
  18760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18761. /* end confdefs.h. */
  18762. #include <X11/Xlib.h>
  18763. int
  18764. main ()
  18765. {
  18766. Display *display;
  18767. XEvent event;
  18768. XGenericEventCookie *cookie = &event.xcookie;
  18769. XNextEvent(display, &event);
  18770. XGetEventData(display, cookie);
  18771. XFreeEventData(display, cookie);
  18772. ;
  18773. return 0;
  18774. }
  18775. _ACEOF
  18776. if ac_fn_c_try_compile "$LINENO"; then :
  18777. have_XGenericEvent=yes
  18778. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18779. fi
  18780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18782. $as_echo "$have_XGenericEvent" >&6; }
  18783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18784. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18785. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18786. $as_echo_n "(cached) " >&6
  18787. else
  18788. ac_check_lib_save_LIBS=$LIBS
  18789. LIBS="-lX11 $LIBS"
  18790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18791. /* end confdefs.h. */
  18792. /* Override any GCC internal prototype to avoid an error.
  18793. Use char because int might match the return type of a GCC
  18794. builtin and then its argument prototype would still apply. */
  18795. #ifdef __cplusplus
  18796. extern "C"
  18797. #endif
  18798. char XkbKeycodeToKeysym ();
  18799. int
  18800. main ()
  18801. {
  18802. return XkbKeycodeToKeysym ();
  18803. ;
  18804. return 0;
  18805. }
  18806. _ACEOF
  18807. if ac_fn_c_try_link "$LINENO"; then :
  18808. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18809. else
  18810. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18811. fi
  18812. rm -f core conftest.err conftest.$ac_objext \
  18813. conftest$ac_exeext conftest.$ac_ext
  18814. LIBS=$ac_check_lib_save_LIBS
  18815. fi
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18817. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18818. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18819. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18820. fi
  18821. # Check whether --enable-video-x11-xcursor was given.
  18822. if test "${enable_video_x11_xcursor+set}" = set; then :
  18823. enableval=$enable_video_x11_xcursor;
  18824. else
  18825. enable_video_x11_xcursor=yes
  18826. fi
  18827. if test x$enable_video_x11_xcursor = xyes; then
  18828. definitely_enable_video_x11_xcursor=no
  18829. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18830. "
  18831. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18832. have_xcursor_h_hdr=yes
  18833. else
  18834. have_xcursor_h_hdr=no
  18835. fi
  18836. if test x$have_xcursor_h_hdr = xyes; then
  18837. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18838. echo "-- dynamic libXcursor -> $xcursor_lib"
  18839. cat >>confdefs.h <<_ACEOF
  18840. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18841. _ACEOF
  18842. definitely_enable_video_x11_xcursor=yes
  18843. else
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18845. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18846. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18847. $as_echo_n "(cached) " >&6
  18848. else
  18849. ac_check_lib_save_LIBS=$LIBS
  18850. LIBS="-lXcursor $LIBS"
  18851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18852. /* end confdefs.h. */
  18853. /* Override any GCC internal prototype to avoid an error.
  18854. Use char because int might match the return type of a GCC
  18855. builtin and then its argument prototype would still apply. */
  18856. #ifdef __cplusplus
  18857. extern "C"
  18858. #endif
  18859. char XcursorImageCreate ();
  18860. int
  18861. main ()
  18862. {
  18863. return XcursorImageCreate ();
  18864. ;
  18865. return 0;
  18866. }
  18867. _ACEOF
  18868. if ac_fn_c_try_link "$LINENO"; then :
  18869. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18870. else
  18871. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18872. fi
  18873. rm -f core conftest.err conftest.$ac_objext \
  18874. conftest$ac_exeext conftest.$ac_ext
  18875. LIBS=$ac_check_lib_save_LIBS
  18876. fi
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18878. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18879. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18880. have_xcursor_lib=yes
  18881. fi
  18882. if test x$have_xcursor_lib = xyes ; then
  18883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18884. definitely_enable_video_x11_xcursor=yes
  18885. fi
  18886. fi
  18887. fi
  18888. fi
  18889. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18890. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18891. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18892. fi
  18893. # Check whether --enable-video-x11-xdbe was given.
  18894. if test "${enable_video_x11_xdbe+set}" = set; then :
  18895. enableval=$enable_video_x11_xdbe;
  18896. else
  18897. enable_video_x11_xdbe=yes
  18898. fi
  18899. if test x$enable_video_x11_xdbe = xyes; then
  18900. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18901. "
  18902. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18903. have_dbe_h_hdr=yes
  18904. else
  18905. have_dbe_h_hdr=no
  18906. fi
  18907. if test x$have_dbe_h_hdr = xyes; then
  18908. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18909. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18910. fi
  18911. fi
  18912. # Check whether --enable-video-x11-xinerama was given.
  18913. if test "${enable_video_x11_xinerama+set}" = set; then :
  18914. enableval=$enable_video_x11_xinerama;
  18915. else
  18916. enable_video_x11_xinerama=yes
  18917. fi
  18918. if test x$enable_video_x11_xinerama = xyes; then
  18919. definitely_enable_video_x11_xinerama=no
  18920. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18921. "
  18922. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18923. have_xinerama_h_hdr=yes
  18924. else
  18925. have_xinerama_h_hdr=no
  18926. fi
  18927. if test x$have_xinerama_h_hdr = xyes; then
  18928. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18929. echo "-- dynamic libXinerama -> $xinerama_lib"
  18930. cat >>confdefs.h <<_ACEOF
  18931. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18932. _ACEOF
  18933. definitely_enable_video_x11_xinerama=yes
  18934. else
  18935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18936. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18937. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18938. $as_echo_n "(cached) " >&6
  18939. else
  18940. ac_check_lib_save_LIBS=$LIBS
  18941. LIBS="-lXinerama $LIBS"
  18942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18943. /* end confdefs.h. */
  18944. /* Override any GCC internal prototype to avoid an error.
  18945. Use char because int might match the return type of a GCC
  18946. builtin and then its argument prototype would still apply. */
  18947. #ifdef __cplusplus
  18948. extern "C"
  18949. #endif
  18950. char XineramaQueryExtension ();
  18951. int
  18952. main ()
  18953. {
  18954. return XineramaQueryExtension ();
  18955. ;
  18956. return 0;
  18957. }
  18958. _ACEOF
  18959. if ac_fn_c_try_link "$LINENO"; then :
  18960. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18961. else
  18962. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18963. fi
  18964. rm -f core conftest.err conftest.$ac_objext \
  18965. conftest$ac_exeext conftest.$ac_ext
  18966. LIBS=$ac_check_lib_save_LIBS
  18967. fi
  18968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18969. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18970. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18971. have_xinerama_lib=yes
  18972. fi
  18973. if test x$have_xinerama_lib = xyes ; then
  18974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18975. definitely_enable_video_x11_xinerama=yes
  18976. fi
  18977. fi
  18978. fi
  18979. fi
  18980. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18981. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18982. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18983. fi
  18984. # Check whether --enable-video-x11-xinput was given.
  18985. if test "${enable_video_x11_xinput+set}" = set; then :
  18986. enableval=$enable_video_x11_xinput;
  18987. else
  18988. enable_video_x11_xinput=yes
  18989. fi
  18990. if test x$enable_video_x11_xinput = xyes; then
  18991. definitely_enable_video_x11_xinput=no
  18992. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18993. "
  18994. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18995. have_xinput_h_hdr=yes
  18996. else
  18997. have_xinput_h_hdr=no
  18998. fi
  18999. if test x$have_xinput_h_hdr = xyes; then
  19000. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19001. echo "-- dynamic libXi -> $xinput_lib"
  19002. cat >>confdefs.h <<_ACEOF
  19003. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19004. _ACEOF
  19005. definitely_enable_video_x11_xinput=yes
  19006. else
  19007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19008. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19009. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19010. $as_echo_n "(cached) " >&6
  19011. else
  19012. ac_check_lib_save_LIBS=$LIBS
  19013. LIBS="-lXi $LIBS"
  19014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19015. /* end confdefs.h. */
  19016. /* Override any GCC internal prototype to avoid an error.
  19017. Use char because int might match the return type of a GCC
  19018. builtin and then its argument prototype would still apply. */
  19019. #ifdef __cplusplus
  19020. extern "C"
  19021. #endif
  19022. char XOpenDevice ();
  19023. int
  19024. main ()
  19025. {
  19026. return XOpenDevice ();
  19027. ;
  19028. return 0;
  19029. }
  19030. _ACEOF
  19031. if ac_fn_c_try_link "$LINENO"; then :
  19032. ac_cv_lib_Xi_XOpenDevice=yes
  19033. else
  19034. ac_cv_lib_Xi_XOpenDevice=no
  19035. fi
  19036. rm -f core conftest.err conftest.$ac_objext \
  19037. conftest$ac_exeext conftest.$ac_ext
  19038. LIBS=$ac_check_lib_save_LIBS
  19039. fi
  19040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19041. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19042. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19043. have_xinput_lib=yes
  19044. fi
  19045. if test x$have_xinput_lib = xyes ; then
  19046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19047. definitely_enable_video_x11_xinput=yes
  19048. fi
  19049. fi
  19050. fi
  19051. fi
  19052. if test x$definitely_enable_video_x11_xinput = xyes; then
  19053. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19054. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19056. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19057. have_xinput2_multitouch=no
  19058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19059. /* end confdefs.h. */
  19060. #include <X11/Xlib.h>
  19061. #include <X11/Xproto.h>
  19062. #include <X11/extensions/XInput2.h>
  19063. int
  19064. main ()
  19065. {
  19066. int event_type = XI_TouchBegin;
  19067. XITouchClassInfo *t;
  19068. ;
  19069. return 0;
  19070. }
  19071. _ACEOF
  19072. if ac_fn_c_try_compile "$LINENO"; then :
  19073. have_xinput2_multitouch=yes
  19074. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19075. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19076. fi
  19077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19079. $as_echo "$have_xinput2_multitouch" >&6; }
  19080. fi
  19081. # Check whether --enable-video-x11-xfixes was given.
  19082. if test "${enable_video_x11_xfixes+set}" = set; then :
  19083. enableval=$enable_video_x11_xfixes;
  19084. else
  19085. enable_video_x11_xfixes=yes
  19086. fi
  19087. if test x$enable_video_x11_xfixes = xyes; then
  19088. definitely_enable_video_x11_xfixes=no
  19089. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19091. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. #include <X11/Xlib.h>
  19095. #include <X11/Xproto.h>
  19096. #include <X11/extensions/XInput2.h>
  19097. #include <X11/extensions/Xfixes.h>
  19098. int
  19099. main ()
  19100. {
  19101. BarrierEventID b;
  19102. ;
  19103. return 0;
  19104. }
  19105. _ACEOF
  19106. if ac_fn_c_try_compile "$LINENO"; then :
  19107. have_xfixes_h_hdr=yes
  19108. else
  19109. have_xfixes_h_hdr=no
  19110. fi
  19111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19113. $as_echo "$have_xfixes_h_hdr" >&6; }
  19114. if test x$have_xfixes_h_hdr = xyes; then
  19115. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19116. echo "-- dynamic libXfixes -> $xfixes_lib"
  19117. cat >>confdefs.h <<_ACEOF
  19118. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19119. _ACEOF
  19120. definitely_enable_video_x11_xfixes=yes
  19121. else
  19122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19123. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19124. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19125. $as_echo_n "(cached) " >&6
  19126. else
  19127. ac_check_lib_save_LIBS=$LIBS
  19128. LIBS="-lXfixes $LIBS"
  19129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19130. /* end confdefs.h. */
  19131. /* Override any GCC internal prototype to avoid an error.
  19132. Use char because int might match the return type of a GCC
  19133. builtin and then its argument prototype would still apply. */
  19134. #ifdef __cplusplus
  19135. extern "C"
  19136. #endif
  19137. char XFixesCreatePointerBarrier ();
  19138. int
  19139. main ()
  19140. {
  19141. return XFixesCreatePointerBarrier ();
  19142. ;
  19143. return 0;
  19144. }
  19145. _ACEOF
  19146. if ac_fn_c_try_link "$LINENO"; then :
  19147. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19148. else
  19149. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19150. fi
  19151. rm -f core conftest.err conftest.$ac_objext \
  19152. conftest$ac_exeext conftest.$ac_ext
  19153. LIBS=$ac_check_lib_save_LIBS
  19154. fi
  19155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19156. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19157. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19158. have_xfixes_lib=yes
  19159. fi
  19160. if test x$have_xfixes_lib = xyes ; then
  19161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19162. definitely_enable_video_x11_xfixes=yes
  19163. fi
  19164. fi
  19165. fi
  19166. fi
  19167. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19168. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19169. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19170. fi
  19171. # Check whether --enable-video-x11-xrandr was given.
  19172. if test "${enable_video_x11_xrandr+set}" = set; then :
  19173. enableval=$enable_video_x11_xrandr;
  19174. else
  19175. enable_video_x11_xrandr=yes
  19176. fi
  19177. if test x$enable_video_x11_xrandr = xyes; then
  19178. definitely_enable_video_x11_xrandr=no
  19179. have_xrandr_h_hdr=no
  19180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19181. /* end confdefs.h. */
  19182. #include <X11/Xlib.h>
  19183. #include <X11/extensions/Xrandr.h>
  19184. int
  19185. main ()
  19186. {
  19187. XRRScreenResources *res = NULL;
  19188. ;
  19189. return 0;
  19190. }
  19191. _ACEOF
  19192. if ac_fn_c_try_compile "$LINENO"; then :
  19193. have_xrandr_h_hdr=yes
  19194. fi
  19195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19196. if test x$have_xrandr_h_hdr = xyes; then
  19197. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19198. echo "-- dynamic libXrandr -> $xrandr_lib"
  19199. cat >>confdefs.h <<_ACEOF
  19200. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19201. _ACEOF
  19202. definitely_enable_video_x11_xrandr=yes
  19203. else
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19205. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19206. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19207. $as_echo_n "(cached) " >&6
  19208. else
  19209. ac_check_lib_save_LIBS=$LIBS
  19210. LIBS="-lXrandr $LIBS"
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. /* Override any GCC internal prototype to avoid an error.
  19214. Use char because int might match the return type of a GCC
  19215. builtin and then its argument prototype would still apply. */
  19216. #ifdef __cplusplus
  19217. extern "C"
  19218. #endif
  19219. char XRRQueryExtension ();
  19220. int
  19221. main ()
  19222. {
  19223. return XRRQueryExtension ();
  19224. ;
  19225. return 0;
  19226. }
  19227. _ACEOF
  19228. if ac_fn_c_try_link "$LINENO"; then :
  19229. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19230. else
  19231. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext \
  19234. conftest$ac_exeext conftest.$ac_ext
  19235. LIBS=$ac_check_lib_save_LIBS
  19236. fi
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19238. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19239. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19240. have_xrandr_lib=yes
  19241. fi
  19242. if test x$have_xrandr_lib = xyes ; then
  19243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19244. definitely_enable_video_x11_xrandr=yes
  19245. fi
  19246. fi
  19247. fi
  19248. fi
  19249. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19250. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19251. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19252. fi
  19253. # Check whether --enable-video-x11-scrnsaver was given.
  19254. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19255. enableval=$enable_video_x11_scrnsaver;
  19256. else
  19257. enable_video_x11_scrnsaver=yes
  19258. fi
  19259. if test x$enable_video_x11_scrnsaver = xyes; then
  19260. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19261. "
  19262. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19263. have_scrnsaver_h_hdr=yes
  19264. else
  19265. have_scrnsaver_h_hdr=no
  19266. fi
  19267. if test x$have_scrnsaver_h_hdr = xyes; then
  19268. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19269. echo "-- dynamic libXss -> $xss_lib"
  19270. cat >>confdefs.h <<_ACEOF
  19271. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19272. _ACEOF
  19273. definitely_enable_video_x11_scrnsaver=yes
  19274. else
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19276. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19277. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19278. $as_echo_n "(cached) " >&6
  19279. else
  19280. ac_check_lib_save_LIBS=$LIBS
  19281. LIBS="-lXss $LIBS"
  19282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19283. /* end confdefs.h. */
  19284. /* Override any GCC internal prototype to avoid an error.
  19285. Use char because int might match the return type of a GCC
  19286. builtin and then its argument prototype would still apply. */
  19287. #ifdef __cplusplus
  19288. extern "C"
  19289. #endif
  19290. char XScreenSaverSuspend ();
  19291. int
  19292. main ()
  19293. {
  19294. return XScreenSaverSuspend ();
  19295. ;
  19296. return 0;
  19297. }
  19298. _ACEOF
  19299. if ac_fn_c_try_link "$LINENO"; then :
  19300. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19301. else
  19302. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19303. fi
  19304. rm -f core conftest.err conftest.$ac_objext \
  19305. conftest$ac_exeext conftest.$ac_ext
  19306. LIBS=$ac_check_lib_save_LIBS
  19307. fi
  19308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19309. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19310. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19311. have_xss_lib=yes
  19312. fi
  19313. if test x$have_xss_lib = xyes ; then
  19314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19315. definitely_enable_video_x11_scrnsaver=yes
  19316. fi
  19317. fi
  19318. fi
  19319. fi
  19320. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19321. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19322. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19323. fi
  19324. # Check whether --enable-video-x11-xshape was given.
  19325. if test "${enable_video_x11_xshape+set}" = set; then :
  19326. enableval=$enable_video_x11_xshape;
  19327. else
  19328. enable_video_x11_xshape=yes
  19329. fi
  19330. if test x$enable_video_x11_xshape = xyes; then
  19331. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19332. "
  19333. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19334. have_shape_h_hdr=yes
  19335. else
  19336. have_shape_h_hdr=no
  19337. fi
  19338. if test x$have_shape_h_hdr = xyes; then
  19339. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19340. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19341. fi
  19342. fi
  19343. # Check whether --enable-video-x11-vm was given.
  19344. if test "${enable_video_x11_vm+set}" = set; then :
  19345. enableval=$enable_video_x11_vm;
  19346. else
  19347. enable_video_x11_vm=yes
  19348. fi
  19349. if test x$enable_video_x11_vm = xyes; then
  19350. definitely_enable_video_x11_vm=no
  19351. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19352. "
  19353. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19354. have_vm_h_hdr=yes
  19355. else
  19356. have_vm_h_hdr=no
  19357. fi
  19358. if test x$have_vm_h_hdr = xyes; then
  19359. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19360. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19361. cat >>confdefs.h <<_ACEOF
  19362. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19363. _ACEOF
  19364. definitely_enable_video_x11_vm=yes
  19365. else
  19366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19367. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19368. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19369. $as_echo_n "(cached) " >&6
  19370. else
  19371. ac_check_lib_save_LIBS=$LIBS
  19372. LIBS="-lXxf86vm $LIBS"
  19373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19374. /* end confdefs.h. */
  19375. /* Override any GCC internal prototype to avoid an error.
  19376. Use char because int might match the return type of a GCC
  19377. builtin and then its argument prototype would still apply. */
  19378. #ifdef __cplusplus
  19379. extern "C"
  19380. #endif
  19381. char XF86VidModeQueryVersion ();
  19382. int
  19383. main ()
  19384. {
  19385. return XF86VidModeQueryVersion ();
  19386. ;
  19387. return 0;
  19388. }
  19389. _ACEOF
  19390. if ac_fn_c_try_link "$LINENO"; then :
  19391. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19392. else
  19393. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19394. fi
  19395. rm -f core conftest.err conftest.$ac_objext \
  19396. conftest$ac_exeext conftest.$ac_ext
  19397. LIBS=$ac_check_lib_save_LIBS
  19398. fi
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19400. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19401. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19402. have_vm_lib=yes
  19403. fi
  19404. if test x$have_vm_lib = xyes ; then
  19405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19406. definitely_enable_video_x11_vm=yes
  19407. fi
  19408. fi
  19409. fi
  19410. fi
  19411. if test x$definitely_enable_video_x11_vm = xyes; then
  19412. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19413. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19414. fi
  19415. fi
  19416. fi
  19417. if test x$have_x != xyes; then
  19418. # Prevent Mesa from including X11 headers
  19419. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19420. fi
  19421. }
  19422. CheckVivanteVideo()
  19423. {
  19424. # Check whether --enable-video-vivante was given.
  19425. if test "${enable_video_vivante+set}" = set; then :
  19426. enableval=$enable_video_vivante;
  19427. else
  19428. enable_video_vivante=yes
  19429. fi
  19430. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19432. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19433. have_vivante_vdk=no
  19434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19435. /* end confdefs.h. */
  19436. #define LINUX
  19437. #define EGL_API_FB
  19438. #include <gc_vdk.h>
  19439. int
  19440. main ()
  19441. {
  19442. ;
  19443. return 0;
  19444. }
  19445. _ACEOF
  19446. if ac_fn_c_try_compile "$LINENO"; then :
  19447. have_vivante_vdk=yes
  19448. fi
  19449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19451. $as_echo "$have_vivante_vdk" >&6; }
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19453. $as_echo_n "checking for Vivante FB API... " >&6; }
  19454. have_vivante_egl=no
  19455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19456. /* end confdefs.h. */
  19457. #define LINUX
  19458. #define EGL_API_FB
  19459. #include <EGL/eglvivante.h>
  19460. int
  19461. main ()
  19462. {
  19463. ;
  19464. return 0;
  19465. }
  19466. _ACEOF
  19467. if ac_fn_c_try_compile "$LINENO"; then :
  19468. have_vivante_egl=yes
  19469. fi
  19470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19472. $as_echo "$have_vivante_egl" >&6; }
  19473. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19474. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19475. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19476. if test x$have_vivante_vdk = xyes; then
  19477. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19479. fi
  19480. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19481. SUMMARY_video="${SUMMARY_video} vivante"
  19482. have_video=yes
  19483. fi
  19484. fi
  19485. }
  19486. CheckHaikuVideo()
  19487. {
  19488. if test x$enable_video = xyes; then
  19489. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19490. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19491. have_video=yes
  19492. SUMMARY_video="${SUMMARY_video} haiku"
  19493. fi
  19494. }
  19495. CheckCOCOA()
  19496. {
  19497. # Check whether --enable-video-cocoa was given.
  19498. if test "${enable_video_cocoa+set}" = set; then :
  19499. enableval=$enable_video_cocoa;
  19500. else
  19501. enable_video_cocoa=yes
  19502. fi
  19503. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19504. save_CFLAGS="$CFLAGS"
  19505. CFLAGS="$CFLAGS -x objective-c"
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19507. $as_echo_n "checking for Cocoa framework... " >&6; }
  19508. have_cocoa=no
  19509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19510. /* end confdefs.h. */
  19511. #import <Cocoa/Cocoa.h>
  19512. int
  19513. main ()
  19514. {
  19515. ;
  19516. return 0;
  19517. }
  19518. _ACEOF
  19519. if ac_fn_c_try_compile "$LINENO"; then :
  19520. have_cocoa=yes
  19521. fi
  19522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19524. $as_echo "$have_cocoa" >&6; }
  19525. CFLAGS="$save_CFLAGS"
  19526. if test x$have_cocoa = xyes; then
  19527. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19528. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19529. SUMMARY_video="${SUMMARY_video} cocoa"
  19530. have_video=yes
  19531. fi
  19532. fi
  19533. }
  19534. CheckMETAL()
  19535. {
  19536. # Check whether --enable-video-metal was given.
  19537. if test "${enable_video_metal+set}" = set; then :
  19538. enableval=$enable_video_metal;
  19539. else
  19540. enable_video_metal=yes
  19541. fi
  19542. # Check whether --enable-render-metal was given.
  19543. if test "${enable_render_metal+set}" = set; then :
  19544. enableval=$enable_render_metal;
  19545. else
  19546. enable_render_metal=yes
  19547. fi
  19548. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19549. save_CFLAGS="$CFLAGS"
  19550. CFLAGS="$CFLAGS -x objective-c"
  19551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19552. $as_echo_n "checking for Metal framework... " >&6; }
  19553. have_metal=no
  19554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19555. /* end confdefs.h. */
  19556. #import <Cocoa/Cocoa.h>
  19557. #import <Metal/Metal.h>
  19558. #import <QuartzCore/CAMetalLayer.h>
  19559. #if TARGET_CPU_X86
  19560. #error Metal doesn't work on this configuration
  19561. #endif
  19562. int
  19563. main ()
  19564. {
  19565. ;
  19566. return 0;
  19567. }
  19568. _ACEOF
  19569. if ac_fn_c_try_compile "$LINENO"; then :
  19570. have_metal=yes
  19571. fi
  19572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19573. CFLAGS="$save_CFLAGS"
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19575. $as_echo "$have_metal" >&6; }
  19576. if test x$have_metal = xyes; then
  19577. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19578. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19579. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19580. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19581. fi
  19582. SUMMARY_video="${SUMMARY_video} metal"
  19583. else
  19584. enable_video_metal=no
  19585. enable_render_metal=no
  19586. fi
  19587. fi
  19588. }
  19589. CheckDirectFB()
  19590. {
  19591. # Check whether --enable-video-directfb was given.
  19592. if test "${enable_video_directfb+set}" = set; then :
  19593. enableval=$enable_video_directfb;
  19594. else
  19595. enable_video_directfb=no
  19596. fi
  19597. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19598. pkg_failed=no
  19599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19600. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19601. if test -n "$DIRECTFB_CFLAGS"; then
  19602. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$DIRECTFB_LIBS"; then
  19619. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19620. elif test -n "$PKG_CONFIG"; then
  19621. if test -n "$PKG_CONFIG" && \
  19622. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19623. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19624. ac_status=$?
  19625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19626. test $ac_status = 0; }; then
  19627. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19628. test "x$?" != "x0" && pkg_failed=yes
  19629. else
  19630. pkg_failed=yes
  19631. fi
  19632. else
  19633. pkg_failed=untried
  19634. fi
  19635. if test $pkg_failed = yes; then
  19636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19637. $as_echo "no" >&6; }
  19638. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19639. _pkg_short_errors_supported=yes
  19640. else
  19641. _pkg_short_errors_supported=no
  19642. fi
  19643. if test $_pkg_short_errors_supported = yes; then
  19644. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19645. else
  19646. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19647. fi
  19648. # Put the nasty error message in config.log where it belongs
  19649. echo "$DIRECTFB_PKG_ERRORS" >&5
  19650. video_directfb=no
  19651. elif test $pkg_failed = untried; then
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19653. $as_echo "no" >&6; }
  19654. video_directfb=no
  19655. else
  19656. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19657. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19659. $as_echo "yes" >&6; }
  19660. video_directfb=yes
  19661. fi
  19662. if test x$video_directfb = xyes; then
  19663. # SuSE 11.1 installs directfb-config without directfb-devel
  19664. save_CPPFLAGS="$CPPFLAGS"
  19665. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19666. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19667. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19668. have_directfb_hdr=yes
  19669. else
  19670. have_directfb_hdr=no
  19671. fi
  19672. CPPFLAGS="$save_CPPFLAGS"
  19673. video_directfb=$have_directfb_hdr
  19674. fi
  19675. if test x$video_directfb = xyes; then
  19676. # Check whether --enable-directfb-shared was given.
  19677. if test "${enable_directfb_shared+set}" = set; then :
  19678. enableval=$enable_directfb_shared;
  19679. else
  19680. enable_directfb_shared=yes
  19681. fi
  19682. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19683. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19684. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19685. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19686. directfb_shared=no
  19687. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19688. if test x$have_loadso != xyes && \
  19689. test x$enable_directfb_shared = xyes; then
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19691. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19692. fi
  19693. if test x$have_loadso = xyes && \
  19694. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19695. directfb_shared=yes
  19696. echo "-- dynamic libdirectfb -> $directfb_lib"
  19697. cat >>confdefs.h <<_ACEOF
  19698. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19699. _ACEOF
  19700. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19701. else
  19702. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19703. SUMMARY_video="${SUMMARY_video} directfb"
  19704. fi
  19705. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19706. have_video=yes
  19707. fi
  19708. fi
  19709. }
  19710. CheckKMSDRM()
  19711. {
  19712. # Check whether --enable-video-kmsdrm was given.
  19713. if test "${enable_video_kmsdrm+set}" = set; then :
  19714. enableval=$enable_video_kmsdrm;
  19715. else
  19716. enable_video_kmsdrm=yes
  19717. fi
  19718. if test x$enable_video = xyes && \
  19719. test x$enable_video_kmsdrm = xyes && \
  19720. test x$video_opengl_egl = xyes; then
  19721. video_kmsdrm=no
  19722. pkg_failed=no
  19723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19724. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19725. if test -n "$LIBDRM_CFLAGS"; then
  19726. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$LIBDRM_LIBS"; then
  19743. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19744. elif test -n "$PKG_CONFIG"; then
  19745. if test -n "$PKG_CONFIG" && \
  19746. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19747. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19748. ac_status=$?
  19749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19750. test $ac_status = 0; }; then
  19751. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19752. test "x$?" != "x0" && pkg_failed=yes
  19753. else
  19754. pkg_failed=yes
  19755. fi
  19756. else
  19757. pkg_failed=untried
  19758. fi
  19759. if test $pkg_failed = yes; then
  19760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19761. $as_echo "no" >&6; }
  19762. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19763. _pkg_short_errors_supported=yes
  19764. else
  19765. _pkg_short_errors_supported=no
  19766. fi
  19767. if test $_pkg_short_errors_supported = yes; then
  19768. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19769. else
  19770. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19771. fi
  19772. # Put the nasty error message in config.log where it belongs
  19773. echo "$LIBDRM_PKG_ERRORS" >&5
  19774. libdrm_avail=no
  19775. elif test $pkg_failed = untried; then
  19776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19777. $as_echo "no" >&6; }
  19778. libdrm_avail=no
  19779. else
  19780. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19781. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19783. $as_echo "yes" >&6; }
  19784. libdrm_avail=yes
  19785. fi
  19786. pkg_failed=no
  19787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19788. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19789. if test -n "$LIBGBM_CFLAGS"; then
  19790. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$LIBGBM_LIBS"; then
  19807. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19808. elif test -n "$PKG_CONFIG"; then
  19809. if test -n "$PKG_CONFIG" && \
  19810. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19811. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19812. ac_status=$?
  19813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19814. test $ac_status = 0; }; then
  19815. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19816. test "x$?" != "x0" && pkg_failed=yes
  19817. else
  19818. pkg_failed=yes
  19819. fi
  19820. else
  19821. pkg_failed=untried
  19822. fi
  19823. if test $pkg_failed = yes; then
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19825. $as_echo "no" >&6; }
  19826. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19827. _pkg_short_errors_supported=yes
  19828. else
  19829. _pkg_short_errors_supported=no
  19830. fi
  19831. if test $_pkg_short_errors_supported = yes; then
  19832. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19833. else
  19834. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19835. fi
  19836. # Put the nasty error message in config.log where it belongs
  19837. echo "$LIBGBM_PKG_ERRORS" >&5
  19838. libgbm_avail=no
  19839. elif test $pkg_failed = untried; then
  19840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19841. $as_echo "no" >&6; }
  19842. libgbm_avail=no
  19843. else
  19844. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19845. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19847. $as_echo "yes" >&6; }
  19848. libgbm_avail=yes
  19849. fi
  19850. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19851. video_kmsdrm=yes
  19852. fi
  19853. if test x$video_kmsdrm = xyes; then
  19854. # Check whether --enable-kmsdrm-shared was given.
  19855. if test "${enable_kmsdrm_shared+set}" = set; then :
  19856. enableval=$enable_kmsdrm_shared;
  19857. else
  19858. enable_kmsdrm_shared=yes
  19859. fi
  19860. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19861. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19862. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19864. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19865. kmsdrm_shared=no
  19866. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19867. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19868. if test x$have_loadso != xyes && \
  19869. test x$enable_kmsdrm_shared = xyes; then
  19870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19871. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19872. fi
  19873. if test x$have_loadso = xyes && \
  19874. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19875. kmsdrm_shared=yes
  19876. cat >>confdefs.h <<_ACEOF
  19877. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19878. _ACEOF
  19879. cat >>confdefs.h <<_ACEOF
  19880. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19881. _ACEOF
  19882. cat >>confdefs.h <<_ACEOF
  19883. #define HAVE_KMSDRM_SHARED "TRUE"
  19884. _ACEOF
  19885. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19886. else
  19887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19888. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19889. fi
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19891. $as_echo "$kmsdrm_shared" >&6; }
  19892. if test x$kmsdrm_shared = xyes; then
  19893. echo "-- dynamic libdrm -> $drm_lib"
  19894. echo "-- dynamic libgbm -> $gbm_lib"
  19895. fi
  19896. have_video=yes
  19897. fi
  19898. fi
  19899. }
  19900. CheckDummyVideo()
  19901. {
  19902. # Check whether --enable-video-dummy was given.
  19903. if test "${enable_video_dummy+set}" = set; then :
  19904. enableval=$enable_video_dummy;
  19905. else
  19906. enable_video_dummy=yes
  19907. fi
  19908. if test x$enable_video_dummy = xyes; then
  19909. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19910. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19911. have_video=yes
  19912. SUMMARY_video="${SUMMARY_video} dummy"
  19913. fi
  19914. }
  19915. CheckOffscreenVideo()
  19916. {
  19917. # Check whether --enable-video-offscreen was given.
  19918. if test "${enable_video_offscreen+set}" = set; then :
  19919. enableval=$enable_video_offscreen;
  19920. else
  19921. enable_video_offscreen=no
  19922. fi
  19923. if test x$enable_video_offscreen = xyes; then
  19924. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19925. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19926. have_video=yes
  19927. SUMMARY_video="${SUMMARY_video} offscreen"
  19928. fi
  19929. }
  19930. CheckQNXVideo()
  19931. {
  19932. if test x$enable_video = xyes; then
  19933. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19934. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19935. have_video=yes
  19936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19937. SUMMARY_video="${SUMMARY_video} qnx"
  19938. fi
  19939. }
  19940. CheckQNXAudio()
  19941. {
  19942. if test x$enable_audio = xyes; then
  19943. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19944. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19945. have_audio=yes
  19946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19947. SUMMARY_audio="${SUMMARY_audio} qsa"
  19948. fi
  19949. }
  19950. # Check whether --enable-video-opengl was given.
  19951. if test "${enable_video_opengl+set}" = set; then :
  19952. enableval=$enable_video_opengl;
  19953. else
  19954. enable_video_opengl=yes
  19955. fi
  19956. CheckGLX()
  19957. {
  19958. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19960. $as_echo_n "checking for GLX support... " >&6; }
  19961. video_opengl_glx=no
  19962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19963. /* end confdefs.h. */
  19964. #include <GL/glx.h>
  19965. int
  19966. main ()
  19967. {
  19968. ;
  19969. return 0;
  19970. }
  19971. _ACEOF
  19972. if ac_fn_c_try_compile "$LINENO"; then :
  19973. video_opengl_glx=yes
  19974. fi
  19975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19977. $as_echo "$video_opengl_glx" >&6; }
  19978. if test x$video_opengl_glx = xyes; then
  19979. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19980. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19981. fi
  19982. fi
  19983. }
  19984. # Check whether --enable-video-opengles was given.
  19985. if test "${enable_video_opengles+set}" = set; then :
  19986. enableval=$enable_video_opengles;
  19987. else
  19988. enable_video_opengles=yes
  19989. fi
  19990. # Check whether --enable-video-opengles1 was given.
  19991. if test "${enable_video_opengles1+set}" = set; then :
  19992. enableval=$enable_video_opengles1;
  19993. else
  19994. enable_video_opengles1=yes
  19995. fi
  19996. # Check whether --enable-video-opengles2 was given.
  19997. if test "${enable_video_opengles2+set}" = set; then :
  19998. enableval=$enable_video_opengles2;
  19999. else
  20000. enable_video_opengles2=yes
  20001. fi
  20002. CheckEGL()
  20003. {
  20004. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20006. $as_echo_n "checking for EGL support... " >&6; }
  20007. video_opengl_egl=no
  20008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20009. /* end confdefs.h. */
  20010. #define LINUX
  20011. #define EGL_API_FB
  20012. #define MESA_EGL_NO_X11_HEADERS
  20013. #define EGL_NO_X11
  20014. #include <EGL/egl.h>
  20015. #include <EGL/eglext.h>
  20016. int
  20017. main ()
  20018. {
  20019. ;
  20020. return 0;
  20021. }
  20022. _ACEOF
  20023. if ac_fn_c_try_compile "$LINENO"; then :
  20024. video_opengl_egl=yes
  20025. fi
  20026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20028. $as_echo "$video_opengl_egl" >&6; }
  20029. if test x$video_opengl_egl = xyes; then
  20030. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20031. fi
  20032. fi
  20033. }
  20034. CheckOpenGL()
  20035. {
  20036. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20038. $as_echo_n "checking for OpenGL headers... " >&6; }
  20039. video_opengl=no
  20040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20041. /* end confdefs.h. */
  20042. #include <GL/gl.h>
  20043. #include <GL/glext.h>
  20044. int
  20045. main ()
  20046. {
  20047. ;
  20048. return 0;
  20049. }
  20050. _ACEOF
  20051. if ac_fn_c_try_compile "$LINENO"; then :
  20052. video_opengl=yes
  20053. fi
  20054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20056. $as_echo "$video_opengl" >&6; }
  20057. if test x$video_opengl = xyes; then
  20058. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20059. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20060. SUMMARY_video="${SUMMARY_video} opengl"
  20061. fi
  20062. fi
  20063. }
  20064. CheckOpenGLES()
  20065. {
  20066. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20067. if test x$enable_video_opengles1 = xyes; then
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20069. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20070. video_opengles_v1=no
  20071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20072. /* end confdefs.h. */
  20073. #include <GLES/gl.h>
  20074. #include <GLES/glext.h>
  20075. int
  20076. main ()
  20077. {
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. if ac_fn_c_try_compile "$LINENO"; then :
  20083. video_opengles_v1=yes
  20084. fi
  20085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20087. $as_echo "$video_opengles_v1" >&6; }
  20088. if test x$video_opengles_v1 = xyes; then
  20089. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20090. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20091. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20092. fi
  20093. fi
  20094. if test x$enable_video_opengles2 = xyes; then
  20095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20096. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20097. video_opengles_v2=no
  20098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20099. /* end confdefs.h. */
  20100. #include <GLES2/gl2.h>
  20101. #include <GLES2/gl2ext.h>
  20102. int
  20103. main ()
  20104. {
  20105. ;
  20106. return 0;
  20107. }
  20108. _ACEOF
  20109. if ac_fn_c_try_compile "$LINENO"; then :
  20110. video_opengles_v2=yes
  20111. fi
  20112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20114. $as_echo "$video_opengles_v2" >&6; }
  20115. if test x$video_opengles_v2 = xyes; then
  20116. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20117. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20118. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20119. fi
  20120. fi
  20121. fi
  20122. }
  20123. CheckWINDOWSGL()
  20124. {
  20125. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20126. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20127. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20128. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20129. SUMMARY_video="${SUMMARY_video} opengl"
  20130. fi
  20131. }
  20132. CheckWINDOWSGLES()
  20133. {
  20134. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20136. $as_echo_n "checking for EGL support... " >&6; }
  20137. video_opengl_egl=no
  20138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20139. /* end confdefs.h. */
  20140. #include <EGL/egl.h>
  20141. int
  20142. main ()
  20143. {
  20144. ;
  20145. return 0;
  20146. }
  20147. _ACEOF
  20148. if ac_fn_c_try_compile "$LINENO"; then :
  20149. video_opengl_egl=yes
  20150. fi
  20151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20153. $as_echo "$video_opengl_egl" >&6; }
  20154. if test x$video_opengl_egl = xyes; then
  20155. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20156. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20157. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20158. fi
  20159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20160. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20161. video_opengles_v2=no
  20162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20163. /* end confdefs.h. */
  20164. #include <GLES2/gl2.h>
  20165. #include <GLES2/gl2ext.h>
  20166. int
  20167. main ()
  20168. {
  20169. ;
  20170. return 0;
  20171. }
  20172. _ACEOF
  20173. if ac_fn_c_try_compile "$LINENO"; then :
  20174. video_opengles_v2=yes
  20175. fi
  20176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20178. $as_echo "$video_opengles_v2" >&6; }
  20179. if test x$video_opengles_v2 = xyes; then
  20180. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20181. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20182. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20183. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20184. fi
  20185. fi
  20186. }
  20187. CheckHaikuGL()
  20188. {
  20189. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20190. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20191. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20192. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20194. SUMMARY_video="${SUMMARY_video} opengl"
  20195. fi
  20196. }
  20197. CheckMacGL()
  20198. {
  20199. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20200. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20201. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20202. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20203. SUMMARY_video="${SUMMARY_video} opengl"
  20204. fi
  20205. }
  20206. CheckMacGLES()
  20207. {
  20208. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20209. video_opengl_egl=yes
  20210. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20211. video_opengles_v2=yes
  20212. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20213. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20214. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20215. fi
  20216. }
  20217. CheckEmscriptenGLES()
  20218. {
  20219. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20221. $as_echo_n "checking for EGL support... " >&6; }
  20222. video_opengl_egl=no
  20223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20224. /* end confdefs.h. */
  20225. #include <EGL/egl.h>
  20226. int
  20227. main ()
  20228. {
  20229. ;
  20230. return 0;
  20231. }
  20232. _ACEOF
  20233. if ac_fn_c_try_compile "$LINENO"; then :
  20234. video_opengl_egl=yes
  20235. fi
  20236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20238. $as_echo "$video_opengl_egl" >&6; }
  20239. if test x$video_opengl_egl = xyes; then
  20240. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20241. fi
  20242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20243. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20244. video_opengles_v2=no
  20245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20246. /* end confdefs.h. */
  20247. #include <GLES2/gl2.h>
  20248. #include <GLES2/gl2ext.h>
  20249. int
  20250. main ()
  20251. {
  20252. ;
  20253. return 0;
  20254. }
  20255. _ACEOF
  20256. if ac_fn_c_try_compile "$LINENO"; then :
  20257. video_opengles_v2=yes
  20258. fi
  20259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20261. $as_echo "$video_opengles_v2" >&6; }
  20262. if test x$video_opengles_v2 = xyes; then
  20263. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20264. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20265. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20266. fi
  20267. fi
  20268. }
  20269. # Check whether --enable-video-vulkan was given.
  20270. if test "${enable_video_vulkan+set}" = set; then :
  20271. enableval=$enable_video_vulkan;
  20272. else
  20273. enable_video_vulkan=yes
  20274. fi
  20275. CheckVulkan()
  20276. {
  20277. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20278. case "$host" in
  20279. *-*-android*)
  20280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20281. /* end confdefs.h. */
  20282. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20283. #error Vulkan doesn't work on this configuration
  20284. #endif
  20285. int
  20286. main ()
  20287. {
  20288. ;
  20289. return 0;
  20290. }
  20291. _ACEOF
  20292. if ac_fn_c_try_compile "$LINENO"; then :
  20293. else
  20294. enable_video_vulkan=no
  20295. fi
  20296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20297. ;;
  20298. *-*-darwin*)
  20299. save_CFLAGS="$CFLAGS"
  20300. CFLAGS="$CFLAGS -x objective-c"
  20301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20302. /* end confdefs.h. */
  20303. #include <Cocoa/Cocoa.h>
  20304. #include <Metal/Metal.h>
  20305. #include <QuartzCore/CAMetalLayer.h>
  20306. #if TARGET_CPU_X86
  20307. #error Vulkan doesn't work on this configuration
  20308. #endif
  20309. int
  20310. main ()
  20311. {
  20312. ;
  20313. return 0;
  20314. }
  20315. _ACEOF
  20316. if ac_fn_c_try_compile "$LINENO"; then :
  20317. else
  20318. enable_video_vulkan=no
  20319. fi
  20320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20321. CFLAGS="$save_CFLAGS"
  20322. ;;
  20323. *)
  20324. ;;
  20325. esac
  20326. if test x$enable_video_vulkan = xno; then
  20327. # For reasons I am totally unable to see, I get an undefined macro error if
  20328. # I put this in the AC_TRY_COMPILE.
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20330. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20331. fi
  20332. fi
  20333. if test x$have_loadso != xyes; then
  20334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20335. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20336. enable_video_vulkan=no
  20337. fi
  20338. if test x$enable_video_vulkan = xyes; then
  20339. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20340. SUMMARY_video="${SUMMARY_video} vulkan"
  20341. fi
  20342. }
  20343. CheckInputEvents()
  20344. {
  20345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20346. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20347. use_input_events=no
  20348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20349. /* end confdefs.h. */
  20350. #include <linux/input.h>
  20351. int
  20352. main ()
  20353. {
  20354. #ifndef EVIOCGNAME
  20355. #error EVIOCGNAME() ioctl not available
  20356. #endif
  20357. ;
  20358. return 0;
  20359. }
  20360. _ACEOF
  20361. if ac_fn_c_try_compile "$LINENO"; then :
  20362. use_input_events=yes
  20363. fi
  20364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20366. $as_echo "$use_input_events" >&6; }
  20367. if test x$use_input_events = xyes; then
  20368. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20369. SUMMARY_input="${SUMMARY_input} linuxev"
  20370. fi
  20371. }
  20372. CheckInputKD()
  20373. {
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20375. $as_echo_n "checking for Linux kd.h... " >&6; }
  20376. use_input_kd=no
  20377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20378. /* end confdefs.h. */
  20379. #include <linux/kd.h>
  20380. #include <linux/keyboard.h>
  20381. int
  20382. main ()
  20383. {
  20384. struct kbentry kbe;
  20385. kbe.kb_table = KG_CTRL;
  20386. ioctl(0, KDGKBENT, &kbe);
  20387. ;
  20388. return 0;
  20389. }
  20390. _ACEOF
  20391. if ac_fn_c_try_compile "$LINENO"; then :
  20392. use_input_kd=yes
  20393. fi
  20394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20396. $as_echo "$use_input_kd" >&6; }
  20397. if test x$use_input_kd = xyes; then
  20398. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20399. SUMMARY_input="${SUMMARY_input} linuxkd"
  20400. fi
  20401. }
  20402. CheckInputKBIO()
  20403. {
  20404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20405. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20406. use_input_kbio=no
  20407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20408. /* end confdefs.h. */
  20409. #include <sys/kbio.h>
  20410. #include <sys/ioctl.h>
  20411. int
  20412. main ()
  20413. {
  20414. accentmap_t accTable;
  20415. ioctl(0, KDENABIO, 1);
  20416. ;
  20417. return 0;
  20418. }
  20419. _ACEOF
  20420. if ac_fn_c_try_compile "$LINENO"; then :
  20421. use_input_kbio=yes
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20425. $as_echo "$use_input_kbio" >&6; }
  20426. if test x$use_input_kbio = xyes; then
  20427. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20428. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20429. fi
  20430. }
  20431. CheckInputWSCONS()
  20432. {
  20433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20434. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20435. use_input_wscons=no
  20436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20437. /* end confdefs.h. */
  20438. #include <sys/time.h>
  20439. #include <dev/wscons/wsconsio.h>
  20440. #include <dev/wscons/wsksymdef.h>
  20441. #include <dev/wscons/wsksymvar.h>
  20442. #include <sys/ioctl.h>
  20443. int
  20444. main ()
  20445. {
  20446. struct wskbd_map_data data;
  20447. ioctl(0, WSKBDIO_GETMAP, &data);
  20448. ;
  20449. return 0;
  20450. }
  20451. _ACEOF
  20452. if ac_fn_c_try_compile "$LINENO"; then :
  20453. use_input_wscons=yes
  20454. fi
  20455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20457. $as_echo "$use_input_wscons" >&6; }
  20458. if test x$use_input_wscons = xyes; then
  20459. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20460. SUMMARY_input="${SUMMARY_input} wscons"
  20461. fi
  20462. }
  20463. CheckLibUDev()
  20464. {
  20465. # Check whether --enable-libudev was given.
  20466. if test "${enable_libudev+set}" = set; then :
  20467. enableval=$enable_libudev;
  20468. else
  20469. enable_libudev=yes
  20470. fi
  20471. if test x$enable_libudev = xyes; then
  20472. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20473. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20474. have_libudev_h_hdr=yes
  20475. else
  20476. have_libudev_h_hdr=no
  20477. fi
  20478. if test x$have_libudev_h_hdr = xyes; then
  20479. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20480. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20481. if test x$udev_lib != x; then
  20482. echo "-- dynamic udev -> $udev_lib"
  20483. cat >>confdefs.h <<_ACEOF
  20484. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20485. _ACEOF
  20486. fi
  20487. fi
  20488. fi
  20489. }
  20490. CheckDBus()
  20491. {
  20492. # Check whether --enable-dbus was given.
  20493. if test "${enable_dbus+set}" = set; then :
  20494. enableval=$enable_dbus;
  20495. else
  20496. enable_dbus=yes
  20497. fi
  20498. if test x$enable_dbus = xyes; then
  20499. pkg_failed=no
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20501. $as_echo_n "checking for dbus-1... " >&6; }
  20502. if test -n "$DBUS_CFLAGS"; then
  20503. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$DBUS_LIBS"; then
  20520. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20521. elif test -n "$PKG_CONFIG"; then
  20522. if test -n "$PKG_CONFIG" && \
  20523. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20524. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20525. ac_status=$?
  20526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20527. test $ac_status = 0; }; then
  20528. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20529. test "x$?" != "x0" && pkg_failed=yes
  20530. else
  20531. pkg_failed=yes
  20532. fi
  20533. else
  20534. pkg_failed=untried
  20535. fi
  20536. if test $pkg_failed = yes; then
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20538. $as_echo "no" >&6; }
  20539. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20540. _pkg_short_errors_supported=yes
  20541. else
  20542. _pkg_short_errors_supported=no
  20543. fi
  20544. if test $_pkg_short_errors_supported = yes; then
  20545. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20546. else
  20547. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20548. fi
  20549. # Put the nasty error message in config.log where it belongs
  20550. echo "$DBUS_PKG_ERRORS" >&5
  20551. have_dbus=no
  20552. elif test $pkg_failed = untried; then
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20554. $as_echo "no" >&6; }
  20555. have_dbus=no
  20556. else
  20557. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20558. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20560. $as_echo "yes" >&6; }
  20561. have_dbus=yes
  20562. fi
  20563. save_CPPFLAGS="$CPPFLAGS"
  20564. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20565. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20566. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20567. have_dbus_dbus_h_hdr=yes
  20568. else
  20569. have_dbus_dbus_h_hdr=no
  20570. fi
  20571. CPPFLAGS="$save_CPPFLAGS"
  20572. if test x$have_dbus_dbus_h_hdr = xyes; then
  20573. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20574. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20575. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20576. fi
  20577. fi
  20578. }
  20579. CheckIME()
  20580. {
  20581. # Check whether --enable-ime was given.
  20582. if test "${enable_ime+set}" = set; then :
  20583. enableval=$enable_ime;
  20584. else
  20585. enable_ime=yes
  20586. fi
  20587. if test x$enable_ime = xyes; then
  20588. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20589. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20590. fi
  20591. }
  20592. CheckInotify()
  20593. {
  20594. save_LIBS="$LIBS"
  20595. case "$host" in
  20596. *-*-freebsd*) LIBS="$LIBS -linotify"
  20597. ;;
  20598. esac
  20599. for ac_header in sys/inotify.h
  20600. do :
  20601. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20602. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20603. cat >>confdefs.h <<_ACEOF
  20604. #define HAVE_SYS_INOTIFY_H 1
  20605. _ACEOF
  20606. have_inotify_inotify_h_hdr=yes
  20607. fi
  20608. done
  20609. for ac_func in inotify_init
  20610. do :
  20611. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20612. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20613. cat >>confdefs.h <<_ACEOF
  20614. #define HAVE_INOTIFY_INIT 1
  20615. _ACEOF
  20616. have_inotify=yes
  20617. fi
  20618. done
  20619. for ac_func in inotify_init1
  20620. do :
  20621. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20622. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20623. cat >>confdefs.h <<_ACEOF
  20624. #define HAVE_INOTIFY_INIT1 1
  20625. _ACEOF
  20626. fi
  20627. done
  20628. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20629. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20630. case "$host" in
  20631. *-*-freebsd*)
  20632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20633. ;;
  20634. esac
  20635. fi
  20636. LIBS="$save_LIBS"
  20637. }
  20638. CheckIBus()
  20639. {
  20640. # Check whether --enable-ibus was given.
  20641. if test "${enable_ibus+set}" = set; then :
  20642. enableval=$enable_ibus;
  20643. else
  20644. enable_ibus=yes
  20645. fi
  20646. if test x$enable_ibus = xyes; then
  20647. pkg_failed=no
  20648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20649. $as_echo_n "checking for ibus-1.0... " >&6; }
  20650. if test -n "$IBUS_CFLAGS"; then
  20651. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  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_CFLAGS=`$PKG_CONFIG --cflags "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 -n "$IBUS_LIBS"; then
  20668. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20669. elif test -n "$PKG_CONFIG"; then
  20670. if test -n "$PKG_CONFIG" && \
  20671. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20672. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20673. ac_status=$?
  20674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20675. test $ac_status = 0; }; then
  20676. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20677. test "x$?" != "x0" && pkg_failed=yes
  20678. else
  20679. pkg_failed=yes
  20680. fi
  20681. else
  20682. pkg_failed=untried
  20683. fi
  20684. if test $pkg_failed = yes; then
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20686. $as_echo "no" >&6; }
  20687. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20688. _pkg_short_errors_supported=yes
  20689. else
  20690. _pkg_short_errors_supported=no
  20691. fi
  20692. if test $_pkg_short_errors_supported = yes; then
  20693. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20694. else
  20695. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20696. fi
  20697. # Put the nasty error message in config.log where it belongs
  20698. echo "$IBUS_PKG_ERRORS" >&5
  20699. have_ibus=no
  20700. elif test $pkg_failed = untried; then
  20701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20702. $as_echo "no" >&6; }
  20703. have_ibus=no
  20704. else
  20705. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20706. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20708. $as_echo "yes" >&6; }
  20709. have_ibus=yes
  20710. fi
  20711. save_CPPFLAGS="$CPPFLAGS"
  20712. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20713. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20714. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20715. have_ibus_ibus_h_hdr=yes
  20716. else
  20717. have_ibus_ibus_h_hdr=no
  20718. fi
  20719. CPPFLAGS="$save_CPPFLAGS"
  20720. if test x$have_ibus_ibus_h_hdr = xyes; then
  20721. if test x$enable_ime != xyes; then
  20722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20723. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20724. have_ibus_ibus_h_hdr=no
  20725. elif test x$enable_dbus != xyes; then
  20726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20727. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20728. have_ibus_ibus_h_hdr=no
  20729. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20731. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20732. have_ibus_ibus_h_hdr=no
  20733. else
  20734. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20735. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20736. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20737. fi
  20738. fi
  20739. fi
  20740. }
  20741. CheckFcitx()
  20742. {
  20743. # Check whether --enable-fcitx was given.
  20744. if test "${enable_fcitx+set}" = set; then :
  20745. enableval=$enable_fcitx;
  20746. else
  20747. enable_fcitx=yes
  20748. fi
  20749. if test x$enable_fcitx = xyes; then
  20750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20751. $as_echo_n "checking for fcitx support... " >&6; }
  20752. have_fcitx=no
  20753. if test x$enable_ime != xyes; then
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20755. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20756. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20758. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20759. else
  20760. have_fcitx=yes
  20761. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20762. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20763. fi
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20765. $as_echo "$have_fcitx" >&6; }
  20766. fi
  20767. }
  20768. CheckJoystickMFI()
  20769. {
  20770. # Check whether --enable-joystick-mfi was given.
  20771. if test "${enable_joystick_mfi+set}" = set; then :
  20772. enableval=$enable_joystick_mfi;
  20773. else
  20774. enable_joystick_mfi=yes
  20775. fi
  20776. if test x$enable_joystick_mfi = xyes; then
  20777. save_CFLAGS="$CFLAGS"
  20778. save_LDFLAGS="$LDFLAGS"
  20779. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20780. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20782. $as_echo_n "checking for GameController framework... " >&6; }
  20783. enable_joystick_mfi=no
  20784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20785. /* end confdefs.h. */
  20786. #include <AvailabilityMacros.h>
  20787. #include <TargetConditionals.h>
  20788. #import <GameController/GameController.h>
  20789. int
  20790. main ()
  20791. {
  20792. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20793. #error GameController framework doesn't work on this configuration
  20794. #endif
  20795. #if TARGET_CPU_X86
  20796. #error GameController framework doesn't work on this configuration
  20797. #endif
  20798. ;
  20799. return 0;
  20800. }
  20801. _ACEOF
  20802. if ac_fn_c_try_link "$LINENO"; then :
  20803. enable_joystick_mfi=yes
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext \
  20806. conftest$ac_exeext conftest.$ac_ext
  20807. CFLAGS="$save_CFLAGS"
  20808. LDFLAGS="$save_LDFLAGS"
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20810. $as_echo "$enable_joystick_mfi" >&6; }
  20811. if test x$enable_joystick_mfi = xyes; then
  20812. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20813. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20814. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20815. fi
  20816. fi
  20817. }
  20818. CheckPTHREAD()
  20819. {
  20820. case "$host" in
  20821. *-*-emscripten*)
  20822. enable_pthreads_default=no
  20823. ;;
  20824. *)
  20825. enable_pthreads_default=yes
  20826. ;;
  20827. esac
  20828. # Check whether --enable-pthreads was given.
  20829. if test "${enable_pthreads+set}" = set; then :
  20830. enableval=$enable_pthreads;
  20831. else
  20832. enable_pthreads=maybe
  20833. fi
  20834. # Check whether --enable-pthread-sem was given.
  20835. if test "${enable_pthread_sem+set}" = set; then :
  20836. enableval=$enable_pthread_sem;
  20837. else
  20838. enable_pthread_sem=maybe
  20839. fi
  20840. if test x$enable_pthreads = xmaybe; then
  20841. enable_pthreads=$enable_pthreads_default
  20842. fi
  20843. if test x$enable_pthread_sem = xmaybe; then
  20844. enable_pthread_sem=$enable_pthreads
  20845. fi
  20846. case "$host" in
  20847. *-*-android*)
  20848. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20849. pthread_lib=""
  20850. ;;
  20851. *-*-linux*|*-*-uclinux*)
  20852. pthread_cflags="-D_REENTRANT"
  20853. pthread_lib="-lpthread"
  20854. ;;
  20855. *-*-bsdi*)
  20856. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20857. pthread_lib=""
  20858. ;;
  20859. *-*-darwin*)
  20860. pthread_cflags="-D_THREAD_SAFE"
  20861. # causes Carbon.p complaints?
  20862. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20863. ;;
  20864. *-*-freebsd*|*-*-dragonfly*)
  20865. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20866. pthread_lib="-pthread"
  20867. ;;
  20868. *-*-netbsd*)
  20869. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20870. pthread_lib="-lpthread"
  20871. ;;
  20872. *-*-openbsd*)
  20873. pthread_cflags="-D_REENTRANT"
  20874. pthread_lib="-pthread"
  20875. ;;
  20876. *-*-solaris2.9)
  20877. # From Solaris 9+, posix4's preferred name is rt.
  20878. pthread_cflags="-D_REENTRANT"
  20879. pthread_lib="-lpthread -lrt"
  20880. ;;
  20881. *-*-solaris2.10)
  20882. # Solaris 10+ merged pthread into libc.
  20883. pthread_cflags="-D_REENTRANT"
  20884. pthread_lib="-lrt"
  20885. ;;
  20886. *-*-solaris*)
  20887. # Solaris 11+ merged rt into libc.
  20888. pthread_cflags="-D_REENTRANT"
  20889. pthread_lib=""
  20890. ;;
  20891. *-*-sysv5*)
  20892. pthread_cflags="-D_REENTRANT -Kthread"
  20893. pthread_lib=""
  20894. ;;
  20895. *-*-aix*)
  20896. pthread_cflags="-D_REENTRANT -mthreads"
  20897. pthread_lib="-lpthread"
  20898. ;;
  20899. *-*-hpux11*)
  20900. pthread_cflags="-D_REENTRANT"
  20901. pthread_lib="-L/usr/lib -lpthread"
  20902. ;;
  20903. *-*-haiku*)
  20904. pthread_cflags="-D_REENTRANT"
  20905. pthread_lib=""
  20906. ;;
  20907. *-*-nto*)
  20908. pthread_cflags="-D_REENTRANT"
  20909. pthread_lib=""
  20910. ;;
  20911. *-*-emscripten*)
  20912. pthread_cflags="-D_REENTRANT -pthread"
  20913. pthread_lib="-pthread"
  20914. ;;
  20915. *)
  20916. pthread_cflags="-D_REENTRANT"
  20917. pthread_lib="-lpthread"
  20918. ;;
  20919. esac
  20920. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20921. # Save the original compiler flags and libraries
  20922. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20923. # Add the pthread compiler flags and libraries
  20924. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20925. # Check to see if we have pthread support on this system
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20927. $as_echo_n "checking for pthreads... " >&6; }
  20928. use_pthreads=no
  20929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20930. /* end confdefs.h. */
  20931. #include <pthread.h>
  20932. int
  20933. main ()
  20934. {
  20935. pthread_attr_t type;
  20936. pthread_attr_init(&type);
  20937. ;
  20938. return 0;
  20939. }
  20940. _ACEOF
  20941. if ac_fn_c_try_link "$LINENO"; then :
  20942. use_pthreads=yes
  20943. fi
  20944. rm -f core conftest.err conftest.$ac_objext \
  20945. conftest$ac_exeext conftest.$ac_ext
  20946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20947. $as_echo "$use_pthreads" >&6; }
  20948. # Restore the compiler flags and libraries
  20949. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20950. # Do futher testing if we have pthread support...
  20951. if test x$use_pthreads = xyes; then
  20952. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20953. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20955. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20956. # Save the original compiler flags and libraries
  20957. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20958. # Add the pthread compiler flags and libraries
  20959. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20960. # Check to see if recursive mutexes are available
  20961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20962. $as_echo_n "checking for recursive mutexes... " >&6; }
  20963. has_recursive_mutexes=no
  20964. if test x$has_recursive_mutexes = xno; then
  20965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20966. /* end confdefs.h. */
  20967. #define _GNU_SOURCE 1
  20968. #include <pthread.h>
  20969. int
  20970. main ()
  20971. {
  20972. pthread_mutexattr_t attr;
  20973. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20974. ;
  20975. return 0;
  20976. }
  20977. _ACEOF
  20978. if ac_fn_c_try_link "$LINENO"; then :
  20979. has_recursive_mutexes=yes
  20980. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20981. fi
  20982. rm -f core conftest.err conftest.$ac_objext \
  20983. conftest$ac_exeext conftest.$ac_ext
  20984. fi
  20985. if test x$has_recursive_mutexes = xno; then
  20986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20987. /* end confdefs.h. */
  20988. #define _GNU_SOURCE 1
  20989. #include <pthread.h>
  20990. int
  20991. main ()
  20992. {
  20993. pthread_mutexattr_t attr;
  20994. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20995. ;
  20996. return 0;
  20997. }
  20998. _ACEOF
  20999. if ac_fn_c_try_link "$LINENO"; then :
  21000. has_recursive_mutexes=yes
  21001. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21002. fi
  21003. rm -f core conftest.err conftest.$ac_objext \
  21004. conftest$ac_exeext conftest.$ac_ext
  21005. fi
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21007. $as_echo "$has_recursive_mutexes" >&6; }
  21008. # Check to see if pthread semaphore support is missing
  21009. if test x$enable_pthread_sem = xyes; then
  21010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21011. $as_echo_n "checking for pthread semaphores... " >&6; }
  21012. have_pthread_sem=no
  21013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21014. /* end confdefs.h. */
  21015. #include <pthread.h>
  21016. #include <semaphore.h>
  21017. int
  21018. main ()
  21019. {
  21020. ;
  21021. return 0;
  21022. }
  21023. _ACEOF
  21024. if ac_fn_c_try_compile "$LINENO"; then :
  21025. have_pthread_sem=yes
  21026. fi
  21027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21029. $as_echo "$have_pthread_sem" >&6; }
  21030. fi
  21031. if test x$have_pthread_sem = xyes; then
  21032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21033. $as_echo_n "checking for sem_timedwait... " >&6; }
  21034. have_sem_timedwait=no
  21035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21036. /* end confdefs.h. */
  21037. #include <pthread.h>
  21038. #include <semaphore.h>
  21039. int
  21040. main ()
  21041. {
  21042. sem_timedwait(NULL, NULL);
  21043. ;
  21044. return 0;
  21045. }
  21046. _ACEOF
  21047. if ac_fn_c_try_link "$LINENO"; then :
  21048. have_sem_timedwait=yes
  21049. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21050. fi
  21051. rm -f core conftest.err conftest.$ac_objext \
  21052. conftest$ac_exeext conftest.$ac_ext
  21053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21054. $as_echo "$have_sem_timedwait" >&6; }
  21055. fi
  21056. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21057. "
  21058. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21059. have_pthread_np_h=yes
  21060. else
  21061. have_pthread_np_h=no
  21062. fi
  21063. if test x$have_pthread_np_h = xyes; then
  21064. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21065. fi
  21066. # Check to see if pthread naming is available
  21067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21068. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21070. /* end confdefs.h. */
  21071. /* Override any GCC internal prototype to avoid an error.
  21072. Use char because int might match the return type of a GCC
  21073. builtin and then its argument prototype would still apply. */
  21074. #ifdef __cplusplus
  21075. extern "C"
  21076. #endif
  21077. char pthread_setname_np ();
  21078. int
  21079. main ()
  21080. {
  21081. return pthread_setname_np ();
  21082. ;
  21083. return 0;
  21084. }
  21085. _ACEOF
  21086. if ac_fn_c_try_link "$LINENO"; then :
  21087. has_pthread_setname_np=yes
  21088. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21089. else
  21090. has_pthread_setname_np=no
  21091. fi
  21092. rm -f core conftest.err conftest.$ac_objext \
  21093. conftest$ac_exeext conftest.$ac_ext
  21094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21095. $as_echo "$has_pthread_setname_np" >&6; }
  21096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21097. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21099. /* end confdefs.h. */
  21100. /* Override any GCC internal prototype to avoid an error.
  21101. Use char because int might match the return type of a GCC
  21102. builtin and then its argument prototype would still apply. */
  21103. #ifdef __cplusplus
  21104. extern "C"
  21105. #endif
  21106. char pthread_set_name_np ();
  21107. int
  21108. main ()
  21109. {
  21110. return pthread_set_name_np ();
  21111. ;
  21112. return 0;
  21113. }
  21114. _ACEOF
  21115. if ac_fn_c_try_link "$LINENO"; then :
  21116. has_pthread_set_name_np=yes
  21117. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21118. else
  21119. has_pthread_set_name_np=no
  21120. fi
  21121. rm -f core conftest.err conftest.$ac_objext \
  21122. conftest$ac_exeext conftest.$ac_ext
  21123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21124. $as_echo "$has_pthread_set_name_np" >&6; }
  21125. # Restore the compiler flags and libraries
  21126. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21127. # Basic thread creation functions
  21128. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21129. # Semaphores
  21130. # We can fake these with mutexes and condition variables if necessary
  21131. if test x$have_pthread_sem = xyes; then
  21132. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21133. else
  21134. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21135. fi
  21136. # Mutexes
  21137. # We can fake these with semaphores if necessary
  21138. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21139. # Condition variables
  21140. # We can fake these with semaphores and mutexes if necessary
  21141. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21142. # Thread local storage
  21143. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21144. have_threads=yes
  21145. fi
  21146. fi
  21147. }
  21148. CheckWINDOWS()
  21149. {
  21150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21151. $as_echo_n "checking Windows compiler... " >&6; }
  21152. have_win32_gcc=no
  21153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21154. /* end confdefs.h. */
  21155. #include <windows.h>
  21156. int
  21157. main ()
  21158. {
  21159. ;
  21160. return 0;
  21161. }
  21162. _ACEOF
  21163. if ac_fn_c_try_compile "$LINENO"; then :
  21164. have_win32_gcc=yes
  21165. fi
  21166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21168. $as_echo "$have_win32_gcc" >&6; }
  21169. if test x$have_win32_gcc != xyes; then
  21170. as_fn_error $? "
  21171. *** Your compiler ($CC) does not produce Windows executables!
  21172. " "$LINENO" 5
  21173. fi
  21174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21175. $as_echo_n "checking Windows CE... " >&6; }
  21176. have_wince=no
  21177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21178. /* end confdefs.h. */
  21179. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21180. #error This is not Windows CE
  21181. #endif
  21182. int
  21183. main ()
  21184. {
  21185. ;
  21186. return 0;
  21187. }
  21188. _ACEOF
  21189. if ac_fn_c_try_compile "$LINENO"; then :
  21190. have_wince=yes
  21191. as_fn_error $? "
  21192. *** Sorry, Windows CE is no longer supported.
  21193. " "$LINENO" 5
  21194. fi
  21195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21197. $as_echo "$have_wince" >&6; }
  21198. # This fixes Windows stack alignment with newer GCC
  21199. CheckStackBoundary
  21200. }
  21201. CheckOS2()
  21202. {
  21203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21204. $as_echo_n "checking OS/2 compiler... " >&6; }
  21205. have_os2_gcc=no
  21206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21207. /* end confdefs.h. */
  21208. #include <os2.h>
  21209. int
  21210. main ()
  21211. {
  21212. ;
  21213. return 0;
  21214. }
  21215. _ACEOF
  21216. if ac_fn_c_try_compile "$LINENO"; then :
  21217. have_os2_gcc=yes
  21218. fi
  21219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21221. $as_echo "$have_os2_gcc" >&6; }
  21222. if test x$have_os2_gcc != xyes; then
  21223. as_fn_error $? "
  21224. *** Your compiler ($CC) does not produce OS/2 executables!
  21225. " "$LINENO" 5
  21226. fi
  21227. }
  21228. CheckDIRECTX()
  21229. {
  21230. # Check whether --enable-directx was given.
  21231. if test "${enable_directx+set}" = set; then :
  21232. enableval=$enable_directx;
  21233. else
  21234. enable_directx=yes
  21235. fi
  21236. if test x$enable_directx = xyes; then
  21237. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21238. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21239. have_d3d=yes
  21240. fi
  21241. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21242. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21243. have_d3d11=yes
  21244. fi
  21245. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21246. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21247. have_ddraw=yes
  21248. fi
  21249. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21250. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21251. have_dsound=yes
  21252. fi
  21253. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21254. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21255. have_dinput=yes
  21256. fi
  21257. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21258. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21259. have_dxgi=yes
  21260. fi
  21261. if test x$have_ddraw = xyes; then
  21262. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21263. fi
  21264. if test x$have_dinput = xyes; then
  21265. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21266. fi
  21267. if test x$have_dsound = xyes; then
  21268. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21269. fi
  21270. if test x$have_dxgi = xyes; then
  21271. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21272. fi
  21273. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21274. # FIXME: ...so force it off for now.
  21275. case "$host" in
  21276. *-*-cygwin*)
  21277. have_dinput=false
  21278. ;;
  21279. esac
  21280. fi
  21281. # Check whether --enable-xinput was given.
  21282. if test "${enable_xinput+set}" = set; then :
  21283. enableval=$enable_xinput;
  21284. else
  21285. enable_xinput=yes
  21286. fi
  21287. if test x$enable_xinput = xyes; then
  21288. have_xinput_gamepadex=no
  21289. have_xinput_stateex=no
  21290. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21291. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21292. have_xinput=yes
  21293. fi
  21294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21295. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21297. /* end confdefs.h. */
  21298. #include <windows.h>
  21299. #include <xinput.h>
  21300. XINPUT_GAMEPAD_EX x1;
  21301. int
  21302. main ()
  21303. {
  21304. ;
  21305. return 0;
  21306. }
  21307. _ACEOF
  21308. if ac_fn_c_try_compile "$LINENO"; then :
  21309. have_xinput_gamepadex=yes
  21310. fi
  21311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21313. $as_echo "$have_xinput_gamepadex" >&6; }
  21314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21315. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21317. /* end confdefs.h. */
  21318. #include <windows.h>
  21319. #include <xinput.h>
  21320. XINPUT_STATE_EX s1;
  21321. int
  21322. main ()
  21323. {
  21324. ;
  21325. return 0;
  21326. }
  21327. _ACEOF
  21328. if ac_fn_c_try_compile "$LINENO"; then :
  21329. have_xinput_stateex=yes
  21330. fi
  21331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21333. $as_echo "$have_xinput_stateex" >&6; }
  21334. if test x$have_xinput = xyes; then
  21335. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21336. fi
  21337. if test x$have_xinput_gamepadex = xyes; then
  21338. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21339. fi
  21340. if test x$have_xinput_stateex = xyes; then
  21341. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21342. fi
  21343. fi
  21344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21345. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21347. /* end confdefs.h. */
  21348. #define COBJMACROS
  21349. #include <windows.gaming.input.h>
  21350. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21351. int
  21352. main ()
  21353. {
  21354. ;
  21355. return 0;
  21356. }
  21357. _ACEOF
  21358. if ac_fn_c_try_compile "$LINENO"; then :
  21359. have_wgi=yes
  21360. else
  21361. have_wgi=no
  21362. fi
  21363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21365. $as_echo "$have_wgi" >&6; }
  21366. if test x$have_wgi = xyes; then
  21367. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21368. fi
  21369. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21370. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21371. have_wasapi=yes
  21372. fi
  21373. if test x$have_wasapi = xyes; then
  21374. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21375. fi
  21376. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21377. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21378. else
  21379. have_wasapi=no
  21380. fi
  21381. if test x$have_wasapi = xyes; then
  21382. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21383. fi
  21384. # Check whether --enable-wasapi was given.
  21385. if test "${enable_wasapi+set}" = set; then :
  21386. enableval=$enable_wasapi;
  21387. else
  21388. enable_wasapi=yes
  21389. fi
  21390. }
  21391. CheckDLOPEN()
  21392. {
  21393. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21394. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21395. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21396. have_dlfcn_h=yes
  21397. else
  21398. have_dlfcn_h=no
  21399. fi
  21400. have_dlopen=no
  21401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21402. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21403. if ${ac_cv_lib_c_dlopen+:} false; then :
  21404. $as_echo_n "(cached) " >&6
  21405. else
  21406. ac_check_lib_save_LIBS=$LIBS
  21407. LIBS="-lc $LIBS"
  21408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21409. /* end confdefs.h. */
  21410. /* Override any GCC internal prototype to avoid an error.
  21411. Use char because int might match the return type of a GCC
  21412. builtin and then its argument prototype would still apply. */
  21413. #ifdef __cplusplus
  21414. extern "C"
  21415. #endif
  21416. char dlopen ();
  21417. int
  21418. main ()
  21419. {
  21420. return dlopen ();
  21421. ;
  21422. return 0;
  21423. }
  21424. _ACEOF
  21425. if ac_fn_c_try_link "$LINENO"; then :
  21426. ac_cv_lib_c_dlopen=yes
  21427. else
  21428. ac_cv_lib_c_dlopen=no
  21429. fi
  21430. rm -f core conftest.err conftest.$ac_objext \
  21431. conftest$ac_exeext conftest.$ac_ext
  21432. LIBS=$ac_check_lib_save_LIBS
  21433. fi
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21435. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21436. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21437. have_dlopen=yes
  21438. else
  21439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21440. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21441. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21442. $as_echo_n "(cached) " >&6
  21443. else
  21444. ac_check_lib_save_LIBS=$LIBS
  21445. LIBS="-ldl $LIBS"
  21446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21447. /* end confdefs.h. */
  21448. /* Override any GCC internal prototype to avoid an error.
  21449. Use char because int might match the return type of a GCC
  21450. builtin and then its argument prototype would still apply. */
  21451. #ifdef __cplusplus
  21452. extern "C"
  21453. #endif
  21454. char dlopen ();
  21455. int
  21456. main ()
  21457. {
  21458. return dlopen ();
  21459. ;
  21460. return 0;
  21461. }
  21462. _ACEOF
  21463. if ac_fn_c_try_link "$LINENO"; then :
  21464. ac_cv_lib_dl_dlopen=yes
  21465. else
  21466. ac_cv_lib_dl_dlopen=no
  21467. fi
  21468. rm -f core conftest.err conftest.$ac_objext \
  21469. conftest$ac_exeext conftest.$ac_ext
  21470. LIBS=$ac_check_lib_save_LIBS
  21471. fi
  21472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21473. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21474. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21475. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21476. fi
  21477. fi
  21478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21479. $as_echo_n "checking for dlopen... " >&6; }
  21480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21481. $as_echo "$have_dlopen" >&6; }
  21482. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21483. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21484. if test x$enable_loadso = xyes; then
  21485. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21486. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21487. have_loadso=yes
  21488. fi
  21489. fi
  21490. }
  21491. CheckO_CLOEXEC()
  21492. {
  21493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21494. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21496. /* end confdefs.h. */
  21497. #include <fcntl.h>
  21498. int flag = O_CLOEXEC;
  21499. int
  21500. main ()
  21501. {
  21502. ;
  21503. return 0;
  21504. }
  21505. _ACEOF
  21506. if ac_fn_c_try_compile "$LINENO"; then :
  21507. have_o_cloexec=yes
  21508. else
  21509. have_o_cloexec=no
  21510. fi
  21511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21513. $as_echo "$have_o_cloexec" >&6; }
  21514. if test $have_o_cloexec = yes; then
  21515. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21516. fi
  21517. }
  21518. CheckUSBHID()
  21519. {
  21520. case "$host" in
  21521. *-*-*bsd*|*-*-dragonfly*)
  21522. if test x$enable_joystick = xyes; then
  21523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21524. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21525. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21526. $as_echo_n "(cached) " >&6
  21527. else
  21528. ac_check_lib_save_LIBS=$LIBS
  21529. LIBS="-lusbhid $LIBS"
  21530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21531. /* end confdefs.h. */
  21532. /* Override any GCC internal prototype to avoid an error.
  21533. Use char because int might match the return type of a GCC
  21534. builtin and then its argument prototype would still apply. */
  21535. #ifdef __cplusplus
  21536. extern "C"
  21537. #endif
  21538. char hid_init ();
  21539. int
  21540. main ()
  21541. {
  21542. return hid_init ();
  21543. ;
  21544. return 0;
  21545. }
  21546. _ACEOF
  21547. if ac_fn_c_try_link "$LINENO"; then :
  21548. ac_cv_lib_usbhid_hid_init=yes
  21549. else
  21550. ac_cv_lib_usbhid_hid_init=no
  21551. fi
  21552. rm -f core conftest.err conftest.$ac_objext \
  21553. conftest$ac_exeext conftest.$ac_ext
  21554. LIBS=$ac_check_lib_save_LIBS
  21555. fi
  21556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21557. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21558. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21559. have_libusbhid=yes
  21560. fi
  21561. if test x$have_libusbhid = xyes; then
  21562. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21563. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21564. USB_CFLAGS="-DHAVE_USBHID_H"
  21565. fi
  21566. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21567. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21568. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21569. fi
  21570. USB_LIBS="$USB_LIBS -lusbhid"
  21571. else
  21572. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21573. if test "x$ac_cv_header_usb_h" = xyes; then :
  21574. USB_CFLAGS="-DHAVE_USB_H"
  21575. fi
  21576. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21577. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21578. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21579. fi
  21580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21581. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21582. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21583. $as_echo_n "(cached) " >&6
  21584. else
  21585. ac_check_lib_save_LIBS=$LIBS
  21586. LIBS="-lusb $LIBS"
  21587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21588. /* end confdefs.h. */
  21589. /* Override any GCC internal prototype to avoid an error.
  21590. Use char because int might match the return type of a GCC
  21591. builtin and then its argument prototype would still apply. */
  21592. #ifdef __cplusplus
  21593. extern "C"
  21594. #endif
  21595. char hid_init ();
  21596. int
  21597. main ()
  21598. {
  21599. return hid_init ();
  21600. ;
  21601. return 0;
  21602. }
  21603. _ACEOF
  21604. if ac_fn_c_try_link "$LINENO"; then :
  21605. ac_cv_lib_usb_hid_init=yes
  21606. else
  21607. ac_cv_lib_usb_hid_init=no
  21608. fi
  21609. rm -f core conftest.err conftest.$ac_objext \
  21610. conftest$ac_exeext conftest.$ac_ext
  21611. LIBS=$ac_check_lib_save_LIBS
  21612. fi
  21613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21614. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21615. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21616. USB_LIBS="$USB_LIBS -lusb"
  21617. fi
  21618. fi
  21619. save_CFLAGS="$CFLAGS"
  21620. CFLAGS="$CFLAGS $USB_CFLAGS"
  21621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21622. $as_echo_n "checking for usbhid... " >&6; }
  21623. have_usbhid=no
  21624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. #include <sys/types.h>
  21627. #if defined(HAVE_USB_H)
  21628. #include <usb.h>
  21629. #endif
  21630. #ifdef __DragonFly__
  21631. # include <bus/u4b/usb.h>
  21632. # include <bus/u4b/usbhid.h>
  21633. #else
  21634. # include <dev/usb/usb.h>
  21635. # include <dev/usb/usbhid.h>
  21636. #endif
  21637. #if defined(HAVE_USBHID_H)
  21638. #include <usbhid.h>
  21639. #elif defined(HAVE_LIBUSB_H)
  21640. #include <libusb.h>
  21641. #elif defined(HAVE_LIBUSBHID_H)
  21642. #include <libusbhid.h>
  21643. #endif
  21644. int
  21645. main ()
  21646. {
  21647. struct report_desc *repdesc;
  21648. struct usb_ctl_report *repbuf;
  21649. hid_kind_t hidkind;
  21650. ;
  21651. return 0;
  21652. }
  21653. _ACEOF
  21654. if ac_fn_c_try_compile "$LINENO"; then :
  21655. have_usbhid=yes
  21656. fi
  21657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21659. $as_echo "$have_usbhid" >&6; }
  21660. if test x$have_usbhid = xyes; then
  21661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21662. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21663. have_usbhid_ucr_data=no
  21664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21665. /* end confdefs.h. */
  21666. #include <sys/types.h>
  21667. #if defined(HAVE_USB_H)
  21668. #include <usb.h>
  21669. #endif
  21670. #ifdef __DragonFly__
  21671. # include <bus/u4b/usb.h>
  21672. # include <bus/u4b/usbhid.h>
  21673. #else
  21674. # include <dev/usb/usb.h>
  21675. # include <dev/usb/usbhid.h>
  21676. #endif
  21677. #if defined(HAVE_USBHID_H)
  21678. #include <usbhid.h>
  21679. #elif defined(HAVE_LIBUSB_H)
  21680. #include <libusb.h>
  21681. #elif defined(HAVE_LIBUSBHID_H)
  21682. #include <libusbhid.h>
  21683. #endif
  21684. int
  21685. main ()
  21686. {
  21687. struct usb_ctl_report buf;
  21688. if (buf.ucr_data) { }
  21689. ;
  21690. return 0;
  21691. }
  21692. _ACEOF
  21693. if ac_fn_c_try_compile "$LINENO"; then :
  21694. have_usbhid_ucr_data=yes
  21695. fi
  21696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21697. if test x$have_usbhid_ucr_data = xyes; then
  21698. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21699. fi
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21701. $as_echo "$have_usbhid_ucr_data" >&6; }
  21702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21703. $as_echo_n "checking for new usbhid API... " >&6; }
  21704. have_usbhid_new=no
  21705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21706. /* end confdefs.h. */
  21707. #include <sys/types.h>
  21708. #if defined(HAVE_USB_H)
  21709. #include <usb.h>
  21710. #endif
  21711. #ifdef __DragonFly__
  21712. #include <bus/u4b/usb.h>
  21713. #include <bus/u4b/usbhid.h>
  21714. #else
  21715. #include <dev/usb/usb.h>
  21716. #include <dev/usb/usbhid.h>
  21717. #endif
  21718. #if defined(HAVE_USBHID_H)
  21719. #include <usbhid.h>
  21720. #elif defined(HAVE_LIBUSB_H)
  21721. #include <libusb.h>
  21722. #elif defined(HAVE_LIBUSBHID_H)
  21723. #include <libusbhid.h>
  21724. #endif
  21725. int
  21726. main ()
  21727. {
  21728. report_desc_t d;
  21729. hid_start_parse(d, 1, 1);
  21730. ;
  21731. return 0;
  21732. }
  21733. _ACEOF
  21734. if ac_fn_c_try_compile "$LINENO"; then :
  21735. have_usbhid_new=yes
  21736. fi
  21737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21738. if test x$have_usbhid_new = xyes; then
  21739. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21740. fi
  21741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21742. $as_echo "$have_usbhid_new" >&6; }
  21743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21744. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21745. have_machine_joystick=no
  21746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21747. /* end confdefs.h. */
  21748. #include <machine/joystick.h>
  21749. int
  21750. main ()
  21751. {
  21752. struct joystick t;
  21753. ;
  21754. return 0;
  21755. }
  21756. _ACEOF
  21757. if ac_fn_c_try_compile "$LINENO"; then :
  21758. have_machine_joystick=yes
  21759. fi
  21760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21761. if test x$have_machine_joystick = xyes; then
  21762. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21763. fi
  21764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21765. $as_echo "$have_machine_joystick" >&6; }
  21766. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21767. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21768. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21770. have_joystick=yes
  21771. fi
  21772. CFLAGS="$save_CFLAGS"
  21773. fi
  21774. ;;
  21775. esac
  21776. }
  21777. CheckHIDAPI()
  21778. {
  21779. # Check whether --enable-hidapi-joystick was given.
  21780. if test "${enable_hidapi_joystick+set}" = set; then :
  21781. enableval=$enable_hidapi_joystick;
  21782. else
  21783. enable_hidapi_joystick=yes
  21784. fi
  21785. # Check whether --enable-hidapi-libusb was given.
  21786. if test "${enable_hidapi_libusb+set}" = set; then :
  21787. enableval=$enable_hidapi_libusb;
  21788. else
  21789. enable_hidapi_libusb=maybe
  21790. fi
  21791. if test x$enable_hidapi = xyes; then
  21792. case "$host" in
  21793. # libusb does not support iOS
  21794. *-ios-* )
  21795. enable_hidapi_libusb=no
  21796. ;;
  21797. # On the other hand, *BSD specifically uses libusb only
  21798. *-*-*bsd* )
  21799. enable_hidapi_libusb=yes
  21800. require_hidapi_libusb=yes
  21801. ;;
  21802. *-*-os2* )
  21803. enable_hidapi_libusb=yes
  21804. ;;
  21805. esac
  21806. hidapi_support=yes
  21807. if test x$enable_hidapi_libusb = xyes; then
  21808. pkg_failed=no
  21809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21810. $as_echo_n "checking for libusb-1.0... " >&6; }
  21811. if test -n "$LIBUSB_CFLAGS"; then
  21812. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21813. elif test -n "$PKG_CONFIG"; then
  21814. if test -n "$PKG_CONFIG" && \
  21815. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21816. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21817. ac_status=$?
  21818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21819. test $ac_status = 0; }; then
  21820. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21821. test "x$?" != "x0" && pkg_failed=yes
  21822. else
  21823. pkg_failed=yes
  21824. fi
  21825. else
  21826. pkg_failed=untried
  21827. fi
  21828. if test -n "$LIBUSB_LIBS"; then
  21829. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21830. elif test -n "$PKG_CONFIG"; then
  21831. if test -n "$PKG_CONFIG" && \
  21832. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21833. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21834. ac_status=$?
  21835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21836. test $ac_status = 0; }; then
  21837. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21838. test "x$?" != "x0" && pkg_failed=yes
  21839. else
  21840. pkg_failed=yes
  21841. fi
  21842. else
  21843. pkg_failed=untried
  21844. fi
  21845. if test $pkg_failed = yes; then
  21846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21847. $as_echo "no" >&6; }
  21848. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21849. _pkg_short_errors_supported=yes
  21850. else
  21851. _pkg_short_errors_supported=no
  21852. fi
  21853. if test $_pkg_short_errors_supported = yes; then
  21854. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21855. else
  21856. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21857. fi
  21858. # Put the nasty error message in config.log where it belongs
  21859. echo "$LIBUSB_PKG_ERRORS" >&5
  21860. have_libusb=no
  21861. elif test $pkg_failed = untried; then
  21862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21863. $as_echo "no" >&6; }
  21864. have_libusb=no
  21865. else
  21866. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21867. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21869. $as_echo "yes" >&6; }
  21870. have_libusb=yes
  21871. fi
  21872. save_CPPFLAGS="$CPPFLAGS"
  21873. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21874. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21875. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21876. have_libusb_h=yes
  21877. else
  21878. have_libusb_h=no
  21879. fi
  21880. CPPFLAGS="$save_CPPFLAGS"
  21881. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21882. hidapi_support=no
  21883. fi
  21884. fi
  21885. if test x$hidapi_support = xyes; then
  21886. if test x$have_libusb_h = xyes; then
  21887. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21888. if test x$require_hidapi_libusb = xyes; then
  21889. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21890. else
  21891. if test x$have_loadso != xyes; then
  21892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21893. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21894. fi
  21895. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21896. libusb_lib=""
  21897. case "$host" in
  21898. *-*-darwin* )
  21899. libusb_lib="libusb-1.0.0.dylib"
  21900. ;;
  21901. *-*-cygwin* | *-*-mingw* )
  21902. libusb_lib="libusb-1.0.dll"
  21903. ;;
  21904. *-*-os2* )
  21905. libusb_lib="usb100.dll"
  21906. ;;
  21907. esac
  21908. if test x$libusb_lib = x; then
  21909. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21910. fi
  21911. cat >>confdefs.h <<_ACEOF
  21912. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21913. _ACEOF
  21914. fi
  21915. fi
  21916. fi
  21917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21918. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21920. $as_echo "$hidapi_support" >&6; }
  21921. fi
  21922. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21923. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21924. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21925. fi
  21926. }
  21927. CheckClockGettime()
  21928. {
  21929. # Check whether --enable-clock_gettime was given.
  21930. if test "${enable_clock_gettime+set}" = set; then :
  21931. enableval=$enable_clock_gettime;
  21932. else
  21933. enable_clock_gettime=yes
  21934. fi
  21935. if test x$enable_clock_gettime = xyes; then
  21936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21937. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21938. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21939. $as_echo_n "(cached) " >&6
  21940. else
  21941. ac_check_lib_save_LIBS=$LIBS
  21942. LIBS="-lrt $LIBS"
  21943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21944. /* end confdefs.h. */
  21945. /* Override any GCC internal prototype to avoid an error.
  21946. Use char because int might match the return type of a GCC
  21947. builtin and then its argument prototype would still apply. */
  21948. #ifdef __cplusplus
  21949. extern "C"
  21950. #endif
  21951. char clock_gettime ();
  21952. int
  21953. main ()
  21954. {
  21955. return clock_gettime ();
  21956. ;
  21957. return 0;
  21958. }
  21959. _ACEOF
  21960. if ac_fn_c_try_link "$LINENO"; then :
  21961. ac_cv_lib_rt_clock_gettime=yes
  21962. else
  21963. ac_cv_lib_rt_clock_gettime=no
  21964. fi
  21965. rm -f core conftest.err conftest.$ac_objext \
  21966. conftest$ac_exeext conftest.$ac_ext
  21967. LIBS=$ac_check_lib_save_LIBS
  21968. fi
  21969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21970. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21971. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21972. have_clock_gettime=yes
  21973. fi
  21974. if test x$have_clock_gettime = xyes; then
  21975. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21977. else
  21978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21979. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21980. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21981. $as_echo_n "(cached) " >&6
  21982. else
  21983. ac_check_lib_save_LIBS=$LIBS
  21984. LIBS="-lc $LIBS"
  21985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21986. /* end confdefs.h. */
  21987. /* Override any GCC internal prototype to avoid an error.
  21988. Use char because int might match the return type of a GCC
  21989. builtin and then its argument prototype would still apply. */
  21990. #ifdef __cplusplus
  21991. extern "C"
  21992. #endif
  21993. char clock_gettime ();
  21994. int
  21995. main ()
  21996. {
  21997. return clock_gettime ();
  21998. ;
  21999. return 0;
  22000. }
  22001. _ACEOF
  22002. if ac_fn_c_try_link "$LINENO"; then :
  22003. ac_cv_lib_c_clock_gettime=yes
  22004. else
  22005. ac_cv_lib_c_clock_gettime=no
  22006. fi
  22007. rm -f core conftest.err conftest.$ac_objext \
  22008. conftest$ac_exeext conftest.$ac_ext
  22009. LIBS=$ac_check_lib_save_LIBS
  22010. fi
  22011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22012. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22013. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22014. have_clock_gettime=yes
  22015. fi
  22016. if test x$have_clock_gettime = xyes; then
  22017. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22019. fi
  22020. fi
  22021. fi
  22022. }
  22023. CheckLinuxVersion()
  22024. {
  22025. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22026. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22027. have_linux_version_h=yes
  22028. fi
  22029. if test x$have_linux_version_h = xyes; then
  22030. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22031. fi
  22032. }
  22033. CheckRPATH()
  22034. {
  22035. # Check whether --enable-rpath was given.
  22036. if test "${enable_rpath+set}" = set; then :
  22037. enableval=$enable_rpath;
  22038. else
  22039. enable_rpath=yes
  22040. fi
  22041. }
  22042. CheckEventSignals()
  22043. {
  22044. # Check whether --enable-backgrounding-signal was given.
  22045. if test "${enable_backgrounding_signal+set}" = set; then :
  22046. enableval=$enable_backgrounding_signal;
  22047. else
  22048. enable_backgrounding_signal=no
  22049. fi
  22050. if test x$enable_backgrounding_signal != xno; then
  22051. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22052. fi
  22053. # Check whether --enable-foregrounding-signal was given.
  22054. if test "${enable_foregrounding_signal+set}" = set; then :
  22055. enableval=$enable_foregrounding_signal;
  22056. else
  22057. enable_foregrounding_signal=no
  22058. fi
  22059. if test x$enable_foregrounding_signal != xno; then
  22060. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22061. fi
  22062. }
  22063. CheckVirtualJoystick()
  22064. {
  22065. # Check whether --enable-joystick-virtual was given.
  22066. if test "${enable_joystick_virtual+set}" = set; then :
  22067. enableval=$enable_joystick_virtual;
  22068. else
  22069. enable_joystick_virtual=yes
  22070. fi
  22071. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22072. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22073. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22074. have_joystick_virtual=yes
  22075. fi
  22076. }
  22077. CheckWarnAll
  22078. CheckNoStrictAliasing
  22079. CheckEventSignals
  22080. have_locale=no
  22081. case "$host" in
  22082. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22083. case "$host" in
  22084. *-*-android*)
  22085. # Android
  22086. ARCH=android
  22087. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22088. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22089. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22090. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22092. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22093. if test x$enable_video = xyes; then
  22094. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22095. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22096. SUMMARY_video="${SUMMARY_video} android"
  22097. fi
  22098. ;;
  22099. *-*-linux*) ARCH=linux ;;
  22100. *-*-uclinux*) ARCH=linux ;;
  22101. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22102. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22103. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22104. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22105. *-*-bsdi*) ARCH=bsdi ;;
  22106. *-*-freebsd*) ARCH=freebsd ;;
  22107. *-*-dragonfly*) ARCH=freebsd ;;
  22108. *-*-netbsd*) ARCH=netbsd ;;
  22109. *-*-openbsd*) ARCH=openbsd ;;
  22110. *-*-sysv5*) ARCH=sysv5 ;;
  22111. *-*-solaris*) ARCH=solaris ;;
  22112. *-*-hpux*) ARCH=hpux ;;
  22113. *-*-aix*) ARCH=aix ;;
  22114. *-*-minix*) ARCH=minix ;;
  22115. *-*-nto*) ARCH=nto
  22116. CheckQNXVideo
  22117. ;;
  22118. esac
  22119. CheckVisibilityHidden
  22120. CheckDeclarationAfterStatement
  22121. CheckDummyVideo
  22122. CheckOffscreenVideo
  22123. CheckDiskAudio
  22124. CheckDummyAudio
  22125. CheckDLOPEN
  22126. CheckARM
  22127. CheckNEON
  22128. CheckO_CLOEXEC
  22129. CheckOSS
  22130. CheckALSA
  22131. CheckPipewire
  22132. CheckPulseAudio
  22133. CheckJACK
  22134. CheckARTSC
  22135. CheckESD
  22136. CheckNAS
  22137. CheckSNDIO
  22138. CheckFusionSound
  22139. CheckLibSampleRate
  22140. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22141. CheckRPI
  22142. CheckX11
  22143. CheckDirectFB
  22144. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22145. CheckEGL
  22146. CheckKMSDRM
  22147. CheckGLX
  22148. CheckOpenGL
  22149. CheckOpenGLES
  22150. CheckVulkan
  22151. CheckWayland
  22152. CheckInputEvents
  22153. CheckLibUDev
  22154. CheckDBus
  22155. CheckIME
  22156. CheckInotify
  22157. CheckIBus
  22158. CheckFcitx
  22159. case $ARCH in
  22160. linux)
  22161. CheckInputKD
  22162. ;;
  22163. freebsd)
  22164. CheckInputKBIO
  22165. ;;
  22166. openbsd|netbsd)
  22167. CheckInputWSCONS
  22168. ;;
  22169. esac
  22170. CheckUSBHID
  22171. CheckHIDAPI
  22172. CheckPTHREAD
  22173. CheckClockGettime
  22174. CheckLinuxVersion
  22175. CheckRPATH
  22176. CheckVivanteVideo
  22177. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22178. have_misc=yes
  22179. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22180. have_locale=yes
  22181. # Set up files for the audio library
  22182. if test x$enable_audio = xyes; then
  22183. case $ARCH in
  22184. sysv5|solaris|hpux)
  22185. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22186. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22187. SUMMARY_audio="${SUMMARY_audio} sun"
  22188. have_audio=yes
  22189. ;;
  22190. netbsd) # Don't use this on OpenBSD, it's busted.
  22191. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22192. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22193. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22194. have_audio=yes
  22195. ;;
  22196. aix)
  22197. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22198. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22199. SUMMARY_audio="${SUMMARY_audio} paudio"
  22200. have_audio=yes
  22201. ;;
  22202. android)
  22203. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22204. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22205. SUMMARY_audio="${SUMMARY_audio} android"
  22206. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22207. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22208. SUMMARY_audio="${SUMMARY_audio} openslES"
  22209. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22210. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22211. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22212. have_audio=yes
  22213. ;;
  22214. nto)
  22215. CheckQNXAudio
  22216. ;;
  22217. esac
  22218. fi
  22219. # Set up files for the joystick library
  22220. if test x$enable_joystick = xyes; then
  22221. case $ARCH in
  22222. linux)
  22223. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22224. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22225. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22226. have_joystick=yes
  22227. ;;
  22228. freebsd)
  22229. if test x$use_input_events = xyes; then
  22230. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22231. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22232. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22233. have_joystick=yes
  22234. fi
  22235. ;;
  22236. android)
  22237. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22238. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22239. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22240. have_joystick=yes
  22241. ;;
  22242. esac
  22243. fi
  22244. # Set up files for the haptic library
  22245. if test x$enable_haptic = xyes; then
  22246. case $ARCH in
  22247. linux|freebsd)
  22248. if test x$use_input_events = xyes; then
  22249. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22250. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22251. have_haptic=yes
  22252. fi
  22253. ;;
  22254. android)
  22255. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22256. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22257. have_haptic=yes
  22258. ;;
  22259. esac
  22260. fi
  22261. # Set up files for the sensor library
  22262. if test x$enable_sensor = xyes; then
  22263. case $ARCH in
  22264. android)
  22265. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22266. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22267. have_sensor=yes
  22268. ;;
  22269. esac
  22270. fi
  22271. # Set up files for the power library
  22272. if test x$enable_power = xyes; then
  22273. case $ARCH in
  22274. linux)
  22275. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22276. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22277. have_power=yes
  22278. ;;
  22279. android)
  22280. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22281. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22282. have_power=yes
  22283. ;;
  22284. esac
  22285. fi
  22286. # Set up files for the filesystem library
  22287. if test x$enable_filesystem = xyes; then
  22288. case $ARCH in
  22289. android)
  22290. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22291. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22292. have_filesystem=yes
  22293. ;;
  22294. *)
  22295. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22296. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22297. have_filesystem=yes
  22298. ;;
  22299. esac
  22300. fi
  22301. # Set up files for the timer library
  22302. if test x$enable_timers = xyes; then
  22303. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22304. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22305. have_timers=yes
  22306. fi
  22307. # Set up files for udev hotplugging support
  22308. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22309. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22310. fi
  22311. # Set up files for evdev input
  22312. if test x$use_input_events = xyes; then
  22313. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22314. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22315. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22316. fi
  22317. # Set up files for wscons input
  22318. if test x$use_input_wscons = xyes; then
  22319. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22320. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22321. fi
  22322. # Set up other core UNIX files
  22323. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22324. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22325. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22326. ;;
  22327. *-*-cygwin* | *-*-mingw*)
  22328. ARCH=win32
  22329. if test "$build" != "$host"; then # cross-compiling
  22330. # Default cross-compile location
  22331. ac_default_prefix=/usr/local/cross-tools/$host
  22332. else
  22333. # Look for the location of the tools and install there
  22334. if test "$BUILD_PREFIX" != ""; then
  22335. ac_default_prefix=$BUILD_PREFIX
  22336. fi
  22337. fi
  22338. if test x$enable_loadso = xyes; then
  22339. have_loadso=yes
  22340. fi
  22341. CheckDeclarationAfterStatement
  22342. CheckDummyVideo
  22343. CheckOffscreenVideo
  22344. CheckDiskAudio
  22345. CheckDummyAudio
  22346. CheckWINDOWS
  22347. CheckWINDOWSGL
  22348. CheckWINDOWSGLES
  22349. CheckVulkan
  22350. CheckDIRECTX
  22351. CheckHIDAPI
  22352. # Set up the core platform files
  22353. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22354. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22355. have_misc=yes
  22356. # Use the Windows locale APIs.
  22357. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22358. have_locale=yes
  22359. # Set up files for the video library
  22360. if test x$enable_video = xyes; then
  22361. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22362. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22363. have_video=yes
  22364. # Check whether --enable-render-d3d was given.
  22365. if test "${enable_render_d3d+set}" = set; then :
  22366. enableval=$enable_render_d3d;
  22367. else
  22368. enable_render_d3d=yes
  22369. fi
  22370. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22371. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22372. SUMMARY_video="${SUMMARY_video} d3d9"
  22373. fi
  22374. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22375. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22376. SUMMARY_video="${SUMMARY_video} d3d11"
  22377. fi
  22378. fi
  22379. # Set up files for the audio library
  22380. if test x$enable_audio = xyes; then
  22381. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22382. SUMMARY_audio="${SUMMARY_audio} winmm"
  22383. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22384. if test x$have_dsound = xyes; then
  22385. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22386. SUMMARY_audio="${SUMMARY_audio} directsound"
  22387. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22388. fi
  22389. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22390. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22391. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22392. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22393. fi
  22394. have_audio=yes
  22395. fi
  22396. # Set up files for the joystick library
  22397. if test x$enable_joystick = xyes; then
  22398. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22399. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22400. if test x$have_xinput = xyes; then
  22401. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22402. fi
  22403. if test x$have_wgi = xyes; then
  22404. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22405. fi
  22406. if test x$have_dinput = xyes; then
  22407. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22409. fi
  22410. fi
  22411. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22412. have_joystick=yes
  22413. fi
  22414. if test x$enable_haptic = xyes; then
  22415. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22416. if test x$have_xinput = xyes; then
  22417. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22418. fi
  22419. if test x$have_dinput = xyes; then
  22420. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22421. fi
  22422. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22423. have_haptic=yes
  22424. fi
  22425. fi
  22426. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22427. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  22428. have_tpcshrd_h=yes
  22429. fi
  22430. if test x$have_tpcshrd_h = xyes; then
  22431. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22432. fi
  22433. # Set up files for the sensor library
  22434. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22435. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22436. have_winsensors=yes
  22437. else
  22438. have_winsensors=no
  22439. fi
  22440. if test x$have_winsensors = xyes; then
  22441. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22442. fi
  22443. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22444. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22445. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22446. have_sensor=yes
  22447. fi
  22448. # Set up files for the power library
  22449. if test x$enable_power = xyes; then
  22450. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22451. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22452. have_power=yes
  22453. fi
  22454. # Set up files for the filesystem library
  22455. if test x$enable_filesystem = xyes; then
  22456. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22457. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22458. have_filesystem=yes
  22459. fi
  22460. # Set up files for the thread library
  22461. if test x$enable_threads = xyes; then
  22462. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22463. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22464. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22465. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22466. have_threads=yes
  22467. fi
  22468. # Set up files for the timer library
  22469. if test x$enable_timers = xyes; then
  22470. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22471. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22472. have_timers=yes
  22473. fi
  22474. # Set up files for the shared object loading library
  22475. if test x$enable_loadso = xyes; then
  22476. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22477. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22478. fi
  22479. # Set up the system libraries we need
  22480. if test -f /lib/w32api/libuuid.a; then
  22481. LIBUUID=/lib/w32api/libuuid.a
  22482. else
  22483. LIBUUID=-luuid
  22484. fi
  22485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22486. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22487. # The Windows platform requires special setup
  22488. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22489. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22490. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22491. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22492. # Check to see if this is a mingw or cygwin build
  22493. have_mingw32=
  22494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22495. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22496. if ${ac_cv_lib_mingw32_main+:} false; then :
  22497. $as_echo_n "(cached) " >&6
  22498. else
  22499. ac_check_lib_save_LIBS=$LIBS
  22500. LIBS="-lmingw32 $LIBS"
  22501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22502. /* end confdefs.h. */
  22503. int
  22504. main ()
  22505. {
  22506. return main ();
  22507. ;
  22508. return 0;
  22509. }
  22510. _ACEOF
  22511. if ac_fn_c_try_link "$LINENO"; then :
  22512. ac_cv_lib_mingw32_main=yes
  22513. else
  22514. ac_cv_lib_mingw32_main=no
  22515. fi
  22516. rm -f core conftest.err conftest.$ac_objext \
  22517. conftest$ac_exeext conftest.$ac_ext
  22518. LIBS=$ac_check_lib_save_LIBS
  22519. fi
  22520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22521. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22522. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22523. have_mingw32=yes
  22524. fi
  22525. if test x$have_mingw32 = xyes; then
  22526. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22527. else
  22528. SDL_LIBS="-lcygwin $SDL_LIBS"
  22529. fi
  22530. ;;
  22531. *-*-beos*)
  22532. as_fn_error $? "
  22533. *** BeOS support has been removed as of SDL 2.0.2.
  22534. " "$LINENO" 5
  22535. ;;
  22536. *-*-haiku*)
  22537. ARCH=haiku
  22538. ac_default_prefix=/boot/system
  22539. CheckDummyVideo
  22540. CheckOffscreenVideo
  22541. CheckDiskAudio
  22542. CheckDummyAudio
  22543. CheckDLOPEN
  22544. CheckO_CLOEXEC
  22545. CheckHaikuVideo
  22546. CheckHaikuGL
  22547. CheckPTHREAD
  22548. # Set up files for the audio library
  22549. if test x$enable_audio = xyes; then
  22550. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22551. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22552. SUMMARY_audio="${SUMMARY_audio} haiku"
  22553. have_audio=yes
  22554. fi
  22555. # Set up files for the joystick library
  22556. if test x$enable_joystick = xyes; then
  22557. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22558. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22559. have_joystick=yes
  22560. fi
  22561. # Set up files for the timer library
  22562. if test x$enable_timers = xyes; then
  22563. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22564. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22565. have_timers=yes
  22566. fi
  22567. # Set up files for the system power library
  22568. if test x$enable_power = xyes; then
  22569. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22570. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22571. have_power=yes
  22572. fi
  22573. # Set up files for the system filesystem library
  22574. if test x$enable_filesystem = xyes; then
  22575. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22576. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22577. have_filesystem=yes
  22578. fi
  22579. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22580. have_misc=yes
  22581. # Set up files for the locale library
  22582. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22583. have_locale=yes
  22584. # The Haiku platform requires special setup.
  22585. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22587. ;;
  22588. *-ios-*)
  22589. ARCH=ios
  22590. CheckVisibilityHidden
  22591. CheckDeclarationAfterStatement
  22592. CheckDummyVideo
  22593. CheckOffscreenVideo
  22594. CheckDiskAudio
  22595. CheckDummyAudio
  22596. CheckDLOPEN
  22597. CheckO_CLOEXEC
  22598. CheckMETAL
  22599. CheckVulkan
  22600. CheckPTHREAD
  22601. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22602. have_misc=yes
  22603. # Set up files for the locale library
  22604. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22605. have_locale=yes
  22606. # Set up files for the audio library
  22607. if test x$enable_audio = xyes; then
  22608. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22609. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22610. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22611. have_audio=yes
  22612. fi
  22613. # Set up files for the joystick library
  22614. if test x$enable_joystick = xyes; then
  22615. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22616. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22617. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22618. have_joystick=yes
  22619. else
  22620. # Need this code for accelerometer as joystick support
  22621. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22622. fi
  22623. # Set up files for the haptic library
  22624. #if test x$enable_haptic = xyes; then
  22625. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22626. # have_haptic=yes
  22627. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22628. #fi
  22629. # Set up files for the sensor library
  22630. if test x$enable_sensor = xyes; then
  22631. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22632. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22633. have_sensor=yes
  22634. fi
  22635. # Set up files for the power library
  22636. if test x$enable_power = xyes; then
  22637. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22638. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22639. have_power=yes
  22640. fi
  22641. # Set up files for the filesystem library
  22642. if test x$enable_filesystem = xyes; then
  22643. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22644. have_filesystem=yes
  22645. fi
  22646. # Set up additional files for the file library
  22647. if test x$enable_file = xyes; then
  22648. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22649. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22650. fi
  22651. # Set up files for the timer library
  22652. if test x$enable_timers = xyes; then
  22653. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22654. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22655. have_timers=yes
  22656. fi
  22657. # Set up other core UNIX files
  22658. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22659. # The iOS platform requires special setup.
  22660. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22661. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22662. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22663. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22664. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22665. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22667. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22668. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22670. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22671. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22672. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22674. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22677. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22679. fi
  22680. ;;
  22681. *-*-darwin* )
  22682. # This could be either full "Mac OS X", or plain "Darwin" which is
  22683. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22684. # Next line is broken, and a few files below require Mac OS X (full)
  22685. ARCH=macosx
  22686. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22687. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22688. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22689. CheckVisibilityHidden
  22690. CheckDeclarationAfterStatement
  22691. CheckDummyVideo
  22692. CheckOffscreenVideo
  22693. CheckDiskAudio
  22694. CheckDummyAudio
  22695. CheckDLOPEN
  22696. CheckO_CLOEXEC
  22697. CheckCOCOA
  22698. CheckMETAL
  22699. CheckX11
  22700. CheckMacGL
  22701. CheckMacGLES
  22702. CheckGLX
  22703. CheckOpenGL
  22704. CheckVulkan
  22705. CheckPTHREAD
  22706. CheckHIDAPI
  22707. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22708. have_misc=yes
  22709. # Set up files for the locale library
  22710. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22711. have_locale=yes
  22712. # Set up files for the audio library
  22713. if test x$enable_audio = xyes; then
  22714. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22715. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22716. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22717. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22718. have_audio=yes
  22719. fi
  22720. # Set up files for the joystick library
  22721. if test x$enable_joystick = xyes; then
  22722. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22723. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22724. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22725. CheckJoystickMFI
  22726. have_joystick=yes
  22727. fi
  22728. # Set up files for the haptic library
  22729. if test x$enable_haptic = xyes; then
  22730. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22731. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22733. have_haptic=yes
  22734. fi
  22735. # Set up files for the power library
  22736. if test x$enable_power = xyes; then
  22737. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22738. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22739. have_power=yes
  22740. fi
  22741. # Set up files for the filesystem library
  22742. if test x$enable_filesystem = xyes; then
  22743. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22744. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22745. have_filesystem=yes
  22746. fi
  22747. # Set up files for the timer library
  22748. if test x$enable_timers = xyes; then
  22749. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22750. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22751. have_timers=yes
  22752. fi
  22753. # Set up additional files for the file library
  22754. if test x$enable_file = xyes; then
  22755. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22756. fi
  22757. # Set up other core UNIX files
  22758. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22759. # The Mac OS X platform requires special setup.
  22760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22762. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22764. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22765. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22767. fi
  22768. ;;
  22769. *-nacl|*-pnacl)
  22770. ARCH=nacl
  22771. CheckNativeClient
  22772. CheckDummyAudio
  22773. CheckDummyVideo
  22774. CheckOffscreenVideo
  22775. CheckInputEvents
  22776. CheckPTHREAD
  22777. CheckO_CLOEXEC
  22778. # Set up files for the timer library
  22779. if test x$enable_timers = xyes; then
  22780. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22781. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22782. have_timers=yes
  22783. fi
  22784. if test x$enable_filesystem = xyes; then
  22785. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22786. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22787. have_filesystem=yes
  22788. fi
  22789. ;;
  22790. *-*-emscripten* )
  22791. if test x$enable_video = xyes; then
  22792. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22793. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22794. have_video=yes
  22795. SUMMARY_video="${SUMMARY_video} emscripten"
  22796. fi
  22797. if test x$enable_audio = xyes; then
  22798. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22799. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22800. have_audio=yes
  22801. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22802. fi
  22803. CheckVisibilityHidden
  22804. CheckDeclarationAfterStatement
  22805. CheckDummyVideo
  22806. CheckOffscreenVideo
  22807. CheckDiskAudio
  22808. CheckDummyAudio
  22809. CheckPTHREAD
  22810. CheckDLOPEN
  22811. CheckClockGettime
  22812. CheckEmscriptenGLES
  22813. # Set up files for the power library
  22814. if test x$enable_power = xyes; then
  22815. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22816. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22817. have_power=yes
  22818. fi
  22819. # Set up files for the power library
  22820. if test x$enable_joystick = xyes; then
  22821. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22822. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22823. have_joystick=yes
  22824. fi
  22825. # Set up files for the filesystem library
  22826. if test x$enable_filesystem = xyes; then
  22827. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22828. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22829. have_filesystem=yes
  22830. fi
  22831. # Set up files for the timer library
  22832. if test x$enable_timers = xyes; then
  22833. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22834. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22835. have_timers=yes
  22836. fi
  22837. # Set up files for the locale library
  22838. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22839. have_locale=yes
  22840. ;;
  22841. *-*-riscos*)
  22842. ARCH=riscos
  22843. CheckVisibilityHidden
  22844. CheckDeclarationAfterStatement
  22845. CheckDummyVideo
  22846. CheckOffscreenVideo
  22847. CheckDiskAudio
  22848. CheckDummyAudio
  22849. CheckDLOPEN
  22850. CheckO_CLOEXEC
  22851. CheckOSS
  22852. CheckPTHREAD
  22853. CheckClockGettime
  22854. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22855. have_misc=yes
  22856. # Set up files for the video library
  22857. if test x$enable_video = xyes; then
  22858. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22860. have_video=yes
  22861. SUMMARY_video="${SUMMARY_video} riscos"
  22862. fi
  22863. # Set up files for the filesystem library
  22864. if test x$enable_filesystem = xyes; then
  22865. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22866. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22867. have_filesystem=yes
  22868. fi
  22869. # Set up files for the timer library
  22870. if test x$enable_timers = xyes; then
  22871. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22872. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22873. have_timers=yes
  22874. fi
  22875. ;;
  22876. *-*-os2*)
  22877. ARCH=os2
  22878. if test "$build" != "$host"; then # cross-compiling
  22879. # Default cross-compile location
  22880. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22881. else
  22882. # Look for the location of the tools and install there
  22883. if test "$BUILD_PREFIX" != ""; then
  22884. ac_default_prefix=$BUILD_PREFIX
  22885. fi
  22886. fi
  22887. enable_static=no # disable static builds
  22888. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22889. CheckOS2
  22890. CheckDeclarationAfterStatement
  22891. CheckDummyVideo
  22892. CheckDiskAudio
  22893. CheckDummyAudio
  22894. CheckHIDAPI
  22895. # Set up the core platform files
  22896. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22897. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22898. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22899. fi
  22900. # Use the Unix locale APIs.
  22901. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22902. have_locale=yes
  22903. # Set up files for the video library
  22904. if test x$enable_video = xyes; then
  22905. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22906. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22907. have_video=yes
  22908. SUMMARY_video="${SUMMARY_video} os/2"
  22909. fi
  22910. # Set up files for the audio library
  22911. if test x$enable_audio = xyes; then
  22912. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22913. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22914. have_audio=yes
  22915. SUMMARY_audio="${SUMMARY_audio} os/2"
  22916. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22917. fi
  22918. # Set up files for the thread library
  22919. if test x$enable_threads = xyes; then
  22920. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22921. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22922. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22923. have_threads=yes
  22924. fi
  22925. # Set up files for the timer library
  22926. if test x$enable_timers = xyes; then
  22927. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22928. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22929. have_timers=yes
  22930. fi
  22931. # Set up files for the shared object loading library
  22932. if test x$enable_loadso = xyes; then
  22933. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22934. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22935. have_loadso=yes
  22936. fi
  22937. # Set up files for the filesystem library
  22938. if test x$enable_filesystem = xyes; then
  22939. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22940. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22941. have_filesystem=yes
  22942. fi
  22943. # Set up files for the joystick library
  22944. if test x$enable_joystick = xyes; then
  22945. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22946. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22947. have_joystick=yes
  22948. fi
  22949. ;;
  22950. *)
  22951. as_fn_error $? "
  22952. *** Unsupported host: Please add to configure.ac
  22953. " "$LINENO" 5
  22954. ;;
  22955. esac
  22956. CheckVirtualJoystick
  22957. # Check whether to install sdl2-config
  22958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22959. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22960. # Check whether --enable-sdl2-config was given.
  22961. if test "${enable_sdl2_config+set}" = set; then :
  22962. enableval=$enable_sdl2_config; case "${enableval}" in
  22963. yes) enable_sdl2_config="TRUE" ;;
  22964. no) enable_sdl2_config="FALSE" ;;
  22965. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22966. esac
  22967. else
  22968. enable_sdl2_config="TRUE"
  22969. fi
  22970. if test "$enable_sdl2_config" = "TRUE"; then
  22971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22972. $as_echo "yes" >&6; }
  22973. else
  22974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22975. $as_echo "no" >&6; }
  22976. fi
  22977. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22978. # Verify that we have all the platform specific files we need
  22979. if test x$have_misc != xyes; then
  22980. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22981. fi
  22982. if test x$have_locale != xyes; then
  22983. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22984. fi
  22985. if test x$have_joystick != xyes; then
  22986. if test x$enable_joystick = xyes; then
  22987. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22988. fi
  22989. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22990. fi
  22991. if test x$have_haptic != xyes; then
  22992. if test x$enable_haptic = xyes; then
  22993. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22994. fi
  22995. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22996. fi
  22997. if test x$have_sensor != xyes; then
  22998. if test x$enable_sensor = xyes; then
  22999. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23000. fi
  23001. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23002. fi
  23003. if test x$have_threads != xyes; then
  23004. if test x$enable_threads = xyes; then
  23005. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23006. fi
  23007. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23008. fi
  23009. if test x$have_timers != xyes; then
  23010. if test x$enable_timers = xyes; then
  23011. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  23012. fi
  23013. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23014. fi
  23015. if test x$have_filesystem != xyes; then
  23016. if test x$enable_filesystem = xyes; then
  23017. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  23018. fi
  23019. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23020. fi
  23021. if test x$have_loadso != xyes; then
  23022. if test x$enable_loadso = xyes; then
  23023. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  23024. fi
  23025. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23026. fi
  23027. if test x$SDLMAIN_SOURCES = x; then
  23028. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23029. fi
  23030. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23031. if test x$video_wayland = xyes; then
  23032. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23033. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23034. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23035. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23036. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23037. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23038. echo ;\
  23039. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23040. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23041. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23042. echo ;\
  23043. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23044. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23045. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23046. echo ;\
  23047. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23048. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23049. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23050. done ;\
  23051. echo ;\
  23052. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23053. fi
  23054. OBJECTS=`echo $SOURCES`
  23055. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23056. for EXT in asm cc m c S; do
  23057. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23058. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23059. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23060. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23061. done
  23062. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23063. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23064. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23065. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23066. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23067. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23068. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23069. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23070. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23071. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23072. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23073. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23074. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23075. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23076. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23077. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23078. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23079. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23080. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23081. # Set runtime shared library paths as needed
  23082. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23083. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23084. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23086. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23087. have_enable_new_dtags=no
  23088. save_LDFLAGS="$LDFLAGS"
  23089. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23091. /* end confdefs.h. */
  23092. int
  23093. main ()
  23094. {
  23095. ;
  23096. return 0;
  23097. }
  23098. _ACEOF
  23099. if ac_fn_c_try_link "$LINENO"; then :
  23100. have_enable_new_dtags=yes
  23101. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23102. fi
  23103. rm -f core conftest.err conftest.$ac_objext \
  23104. conftest$ac_exeext conftest.$ac_ext
  23105. LDFLAGS="$save_LDFLAGS"
  23106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23107. $as_echo "$have_enable_new_dtags" >&6; }
  23108. fi
  23109. if test $ARCH = solaris; then
  23110. SDL_RLD_FLAGS="-R\${libdir}"
  23111. fi
  23112. else
  23113. SDL_RLD_FLAGS=""
  23114. fi
  23115. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23116. if test x$enable_shared = xyes; then
  23117. PKGCONFIG_LIBS_PRIV="
  23118. Libs.private:"
  23119. ENABLE_SHARED_TRUE=
  23120. ENABLE_SHARED_FALSE="#"
  23121. else
  23122. PKGCONFIG_LIBS_PRIV=
  23123. ENABLE_SHARED_TRUE="#"
  23124. ENABLE_SHARED_FALSE=
  23125. fi
  23126. if test x$enable_static = xyes; then
  23127. ENABLE_STATIC_TRUE=
  23128. ENABLE_STATIC_FALSE="#"
  23129. else
  23130. ENABLE_STATIC_TRUE="#"
  23131. ENABLE_STATIC_FALSE=
  23132. fi
  23133. cat >Makefile.rules <<__EOF__
  23134. # Build rules for objects
  23135. -include \$(OBJECTS:.lo=.d)
  23136. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23137. $srcdir/src/SDL.c: update-revision
  23138. $DEPENDS
  23139. $VERSION_DEPENDS
  23140. $SDLMAIN_DEPENDS
  23141. $SDLTEST_DEPENDS
  23142. $WAYLAND_PROTOCOLS_DEPENDS
  23143. __EOF__
  23144. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23145. ac_config_commands="$ac_config_commands sdl2_config"
  23146. SUMMARY="SDL2 Configure Summary:\n"
  23147. if test x$enable_shared = xyes; then
  23148. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23149. fi
  23150. if test x$enable_static = xyes; then
  23151. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23152. fi
  23153. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23154. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23155. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23156. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23157. if test x$have_x = xyes; then
  23158. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23159. fi
  23160. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23161. if test x$have_joystick_virtual = xyes; then
  23162. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23163. else
  23164. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23165. fi
  23166. if test x$have_samplerate_h_hdr = xyes; then
  23167. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23168. else
  23169. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23170. fi
  23171. if test x$have_libudev_h_hdr = xyes; then
  23172. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23173. else
  23174. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23175. fi
  23176. if test x$have_dbus_dbus_h_hdr = xyes; then
  23177. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23178. else
  23179. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23180. fi
  23181. if test x$enable_ime = xyes; then
  23182. SUMMARY="${SUMMARY}Using ime : YES\n"
  23183. else
  23184. SUMMARY="${SUMMARY}Using ime : NO\n"
  23185. fi
  23186. if test x$have_ibus_ibus_h_hdr = xyes; then
  23187. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23188. else
  23189. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23190. fi
  23191. if test x$have_fcitx = xyes; then
  23192. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23193. else
  23194. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23195. fi
  23196. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23197. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23198. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23199. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23200. SUMMARY="${SUMMARY}configure script with:\n"
  23201. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23202. fi
  23203. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23204. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23205. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23206. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23207. SUMMARY="${SUMMARY}configure script with:\n"
  23208. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23209. fi
  23210. ac_config_commands="$ac_config_commands summary"
  23211. cat >confcache <<\_ACEOF
  23212. # This file is a shell script that caches the results of configure
  23213. # tests run on this system so they can be shared between configure
  23214. # scripts and configure runs, see configure's option --config-cache.
  23215. # It is not useful on other systems. If it contains results you don't
  23216. # want to keep, you may remove or edit it.
  23217. #
  23218. # config.status only pays attention to the cache file if you give it
  23219. # the --recheck option to rerun configure.
  23220. #
  23221. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23222. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23223. # following values.
  23224. _ACEOF
  23225. # The following way of writing the cache mishandles newlines in values,
  23226. # but we know of no workaround that is simple, portable, and efficient.
  23227. # So, we kill variables containing newlines.
  23228. # Ultrix sh set writes to stderr and can't be redirected directly,
  23229. # and sets the high bit in the cache file unless we assign to the vars.
  23230. (
  23231. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23232. eval ac_val=\$$ac_var
  23233. case $ac_val in #(
  23234. *${as_nl}*)
  23235. case $ac_var in #(
  23236. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23237. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23238. esac
  23239. case $ac_var in #(
  23240. _ | IFS | as_nl) ;; #(
  23241. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23242. *) { eval $ac_var=; unset $ac_var;} ;;
  23243. esac ;;
  23244. esac
  23245. done
  23246. (set) 2>&1 |
  23247. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23248. *${as_nl}ac_space=\ *)
  23249. # `set' does not quote correctly, so add quotes: double-quote
  23250. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23251. sed -n \
  23252. "s/'/'\\\\''/g;
  23253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23254. ;; #(
  23255. *)
  23256. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23257. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23258. ;;
  23259. esac |
  23260. sort
  23261. ) |
  23262. sed '
  23263. /^ac_cv_env_/b end
  23264. t clear
  23265. :clear
  23266. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23267. t end
  23268. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23269. :end' >>confcache
  23270. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23271. if test -w "$cache_file"; then
  23272. if test "x$cache_file" != "x/dev/null"; then
  23273. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23274. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23275. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23276. cat confcache >"$cache_file"
  23277. else
  23278. case $cache_file in #(
  23279. */* | ?:*)
  23280. mv -f confcache "$cache_file"$$ &&
  23281. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23282. *)
  23283. mv -f confcache "$cache_file" ;;
  23284. esac
  23285. fi
  23286. fi
  23287. else
  23288. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23289. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23290. fi
  23291. fi
  23292. rm -f confcache
  23293. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23294. # Let make expand exec_prefix.
  23295. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23296. DEFS=-DHAVE_CONFIG_H
  23297. ac_libobjs=
  23298. ac_ltlibobjs=
  23299. U=
  23300. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23301. # 1. Remove the extension, and $U if already installed.
  23302. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23303. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23304. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23305. # will be set to the directory where LIBOBJS objects are built.
  23306. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23307. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23308. done
  23309. LIBOBJS=$ac_libobjs
  23310. LTLIBOBJS=$ac_ltlibobjs
  23311. : "${CONFIG_STATUS=./config.status}"
  23312. ac_write_fail=0
  23313. ac_clean_files_save=$ac_clean_files
  23314. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23315. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23316. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23317. as_write_fail=0
  23318. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23319. #! $SHELL
  23320. # Generated by $as_me.
  23321. # Run this file to recreate the current configuration.
  23322. # Compiler output produced by configure, useful for debugging
  23323. # configure, is in config.log if it exists.
  23324. debug=false
  23325. ac_cs_recheck=false
  23326. ac_cs_silent=false
  23327. SHELL=\${CONFIG_SHELL-$SHELL}
  23328. export SHELL
  23329. _ASEOF
  23330. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23331. ## -------------------- ##
  23332. ## M4sh Initialization. ##
  23333. ## -------------------- ##
  23334. # Be more Bourne compatible
  23335. DUALCASE=1; export DUALCASE # for MKS sh
  23336. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23337. emulate sh
  23338. NULLCMD=:
  23339. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23340. # is contrary to our usage. Disable this feature.
  23341. alias -g '${1+"$@"}'='"$@"'
  23342. setopt NO_GLOB_SUBST
  23343. else
  23344. case `(set -o) 2>/dev/null` in #(
  23345. *posix*) :
  23346. set -o posix ;; #(
  23347. *) :
  23348. ;;
  23349. esac
  23350. fi
  23351. as_nl='
  23352. '
  23353. export as_nl
  23354. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23355. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23356. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23357. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23358. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23359. # but without wasting forks for bash or zsh.
  23360. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23361. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23362. as_echo='print -r --'
  23363. as_echo_n='print -rn --'
  23364. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23365. as_echo='printf %s\n'
  23366. as_echo_n='printf %s'
  23367. else
  23368. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23369. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23370. as_echo_n='/usr/ucb/echo -n'
  23371. else
  23372. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23373. as_echo_n_body='eval
  23374. arg=$1;
  23375. case $arg in #(
  23376. *"$as_nl"*)
  23377. expr "X$arg" : "X\\(.*\\)$as_nl";
  23378. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23379. esac;
  23380. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23381. '
  23382. export as_echo_n_body
  23383. as_echo_n='sh -c $as_echo_n_body as_echo'
  23384. fi
  23385. export as_echo_body
  23386. as_echo='sh -c $as_echo_body as_echo'
  23387. fi
  23388. # The user is always right.
  23389. if test "${PATH_SEPARATOR+set}" != set; then
  23390. PATH_SEPARATOR=:
  23391. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23392. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23393. PATH_SEPARATOR=';'
  23394. }
  23395. fi
  23396. # IFS
  23397. # We need space, tab and new line, in precisely that order. Quoting is
  23398. # there to prevent editors from complaining about space-tab.
  23399. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23400. # splitting by setting IFS to empty value.)
  23401. IFS=" "" $as_nl"
  23402. # Find who we are. Look in the path if we contain no directory separator.
  23403. as_myself=
  23404. case $0 in #((
  23405. *[\\/]* ) as_myself=$0 ;;
  23406. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23407. for as_dir in $PATH
  23408. do
  23409. IFS=$as_save_IFS
  23410. test -z "$as_dir" && as_dir=.
  23411. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23412. done
  23413. IFS=$as_save_IFS
  23414. ;;
  23415. esac
  23416. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23417. # in which case we are not to be found in the path.
  23418. if test "x$as_myself" = x; then
  23419. as_myself=$0
  23420. fi
  23421. if test ! -f "$as_myself"; then
  23422. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23423. exit 1
  23424. fi
  23425. # Unset variables that we do not need and which cause bugs (e.g. in
  23426. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23427. # suppresses any "Segmentation fault" message there. '((' could
  23428. # trigger a bug in pdksh 5.2.14.
  23429. for as_var in BASH_ENV ENV MAIL MAILPATH
  23430. do eval test x\${$as_var+set} = xset \
  23431. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23432. done
  23433. PS1='$ '
  23434. PS2='> '
  23435. PS4='+ '
  23436. # NLS nuisances.
  23437. LC_ALL=C
  23438. export LC_ALL
  23439. LANGUAGE=C
  23440. export LANGUAGE
  23441. # CDPATH.
  23442. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23443. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23444. # ----------------------------------------
  23445. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23446. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23447. # script with STATUS, using 1 if that was 0.
  23448. as_fn_error ()
  23449. {
  23450. as_status=$1; test $as_status -eq 0 && as_status=1
  23451. if test "$4"; then
  23452. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23453. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23454. fi
  23455. $as_echo "$as_me: error: $2" >&2
  23456. as_fn_exit $as_status
  23457. } # as_fn_error
  23458. # as_fn_set_status STATUS
  23459. # -----------------------
  23460. # Set $? to STATUS, without forking.
  23461. as_fn_set_status ()
  23462. {
  23463. return $1
  23464. } # as_fn_set_status
  23465. # as_fn_exit STATUS
  23466. # -----------------
  23467. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23468. as_fn_exit ()
  23469. {
  23470. set +e
  23471. as_fn_set_status $1
  23472. exit $1
  23473. } # as_fn_exit
  23474. # as_fn_unset VAR
  23475. # ---------------
  23476. # Portably unset VAR.
  23477. as_fn_unset ()
  23478. {
  23479. { eval $1=; unset $1;}
  23480. }
  23481. as_unset=as_fn_unset
  23482. # as_fn_append VAR VALUE
  23483. # ----------------------
  23484. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23485. # advantage of any shell optimizations that allow amortized linear growth over
  23486. # repeated appends, instead of the typical quadratic growth present in naive
  23487. # implementations.
  23488. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23489. eval 'as_fn_append ()
  23490. {
  23491. eval $1+=\$2
  23492. }'
  23493. else
  23494. as_fn_append ()
  23495. {
  23496. eval $1=\$$1\$2
  23497. }
  23498. fi # as_fn_append
  23499. # as_fn_arith ARG...
  23500. # ------------------
  23501. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23502. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23503. # must be portable across $(()) and expr.
  23504. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23505. eval 'as_fn_arith ()
  23506. {
  23507. as_val=$(( $* ))
  23508. }'
  23509. else
  23510. as_fn_arith ()
  23511. {
  23512. as_val=`expr "$@" || test $? -eq 1`
  23513. }
  23514. fi # as_fn_arith
  23515. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23516. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23517. as_expr=expr
  23518. else
  23519. as_expr=false
  23520. fi
  23521. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23522. as_basename=basename
  23523. else
  23524. as_basename=false
  23525. fi
  23526. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23527. as_dirname=dirname
  23528. else
  23529. as_dirname=false
  23530. fi
  23531. as_me=`$as_basename -- "$0" ||
  23532. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23533. X"$0" : 'X\(//\)$' \| \
  23534. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23535. $as_echo X/"$0" |
  23536. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23537. s//\1/
  23538. q
  23539. }
  23540. /^X\/\(\/\/\)$/{
  23541. s//\1/
  23542. q
  23543. }
  23544. /^X\/\(\/\).*/{
  23545. s//\1/
  23546. q
  23547. }
  23548. s/.*/./; q'`
  23549. # Avoid depending upon Character Ranges.
  23550. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23551. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23552. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23553. as_cr_digits='0123456789'
  23554. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23555. ECHO_C= ECHO_N= ECHO_T=
  23556. case `echo -n x` in #(((((
  23557. -n*)
  23558. case `echo 'xy\c'` in
  23559. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23560. xy) ECHO_C='\c';;
  23561. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23562. ECHO_T=' ';;
  23563. esac;;
  23564. *)
  23565. ECHO_N='-n';;
  23566. esac
  23567. rm -f conf$$ conf$$.exe conf$$.file
  23568. if test -d conf$$.dir; then
  23569. rm -f conf$$.dir/conf$$.file
  23570. else
  23571. rm -f conf$$.dir
  23572. mkdir conf$$.dir 2>/dev/null
  23573. fi
  23574. if (echo >conf$$.file) 2>/dev/null; then
  23575. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23576. as_ln_s='ln -s'
  23577. # ... but there are two gotchas:
  23578. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23579. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23580. # In both cases, we have to default to `cp -pR'.
  23581. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23582. as_ln_s='cp -pR'
  23583. elif ln conf$$.file conf$$ 2>/dev/null; then
  23584. as_ln_s=ln
  23585. else
  23586. as_ln_s='cp -pR'
  23587. fi
  23588. else
  23589. as_ln_s='cp -pR'
  23590. fi
  23591. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23592. rmdir conf$$.dir 2>/dev/null
  23593. # as_fn_mkdir_p
  23594. # -------------
  23595. # Create "$as_dir" as a directory, including parents if necessary.
  23596. as_fn_mkdir_p ()
  23597. {
  23598. case $as_dir in #(
  23599. -*) as_dir=./$as_dir;;
  23600. esac
  23601. test -d "$as_dir" || eval $as_mkdir_p || {
  23602. as_dirs=
  23603. while :; do
  23604. case $as_dir in #(
  23605. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23606. *) as_qdir=$as_dir;;
  23607. esac
  23608. as_dirs="'$as_qdir' $as_dirs"
  23609. as_dir=`$as_dirname -- "$as_dir" ||
  23610. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23611. X"$as_dir" : 'X\(//\)[^/]' \| \
  23612. X"$as_dir" : 'X\(//\)$' \| \
  23613. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23614. $as_echo X"$as_dir" |
  23615. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23616. s//\1/
  23617. q
  23618. }
  23619. /^X\(\/\/\)[^/].*/{
  23620. s//\1/
  23621. q
  23622. }
  23623. /^X\(\/\/\)$/{
  23624. s//\1/
  23625. q
  23626. }
  23627. /^X\(\/\).*/{
  23628. s//\1/
  23629. q
  23630. }
  23631. s/.*/./; q'`
  23632. test -d "$as_dir" && break
  23633. done
  23634. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23635. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23636. } # as_fn_mkdir_p
  23637. if mkdir -p . 2>/dev/null; then
  23638. as_mkdir_p='mkdir -p "$as_dir"'
  23639. else
  23640. test -d ./-p && rmdir ./-p
  23641. as_mkdir_p=false
  23642. fi
  23643. # as_fn_executable_p FILE
  23644. # -----------------------
  23645. # Test if FILE is an executable regular file.
  23646. as_fn_executable_p ()
  23647. {
  23648. test -f "$1" && test -x "$1"
  23649. } # as_fn_executable_p
  23650. as_test_x='test -x'
  23651. as_executable_p=as_fn_executable_p
  23652. # Sed expression to map a string onto a valid CPP name.
  23653. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23654. # Sed expression to map a string onto a valid variable name.
  23655. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23656. exec 6>&1
  23657. ## ----------------------------------- ##
  23658. ## Main body of $CONFIG_STATUS script. ##
  23659. ## ----------------------------------- ##
  23660. _ASEOF
  23661. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23663. # Save the log message, to keep $0 and so on meaningful, and to
  23664. # report actual input values of CONFIG_FILES etc. instead of their
  23665. # values after options handling.
  23666. ac_log="
  23667. This file was extended by $as_me, which was
  23668. generated by GNU Autoconf 2.69. Invocation command line was
  23669. CONFIG_FILES = $CONFIG_FILES
  23670. CONFIG_HEADERS = $CONFIG_HEADERS
  23671. CONFIG_LINKS = $CONFIG_LINKS
  23672. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23673. $ $0 $@
  23674. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23675. "
  23676. _ACEOF
  23677. case $ac_config_files in *"
  23678. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23679. esac
  23680. case $ac_config_headers in *"
  23681. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23682. esac
  23683. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23684. # Files that config.status was made for.
  23685. config_files="$ac_config_files"
  23686. config_headers="$ac_config_headers"
  23687. config_commands="$ac_config_commands"
  23688. _ACEOF
  23689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23690. ac_cs_usage="\
  23691. \`$as_me' instantiates files and other configuration actions
  23692. from templates according to the current configuration. Unless the files
  23693. and actions are specified as TAGs, all are instantiated by default.
  23694. Usage: $0 [OPTION]... [TAG]...
  23695. -h, --help print this help, then exit
  23696. -V, --version print version number and configuration settings, then exit
  23697. --config print configuration, then exit
  23698. -q, --quiet, --silent
  23699. do not print progress messages
  23700. -d, --debug don't remove temporary files
  23701. --recheck update $as_me by reconfiguring in the same conditions
  23702. --file=FILE[:TEMPLATE]
  23703. instantiate the configuration file FILE
  23704. --header=FILE[:TEMPLATE]
  23705. instantiate the configuration header FILE
  23706. Configuration files:
  23707. $config_files
  23708. Configuration headers:
  23709. $config_headers
  23710. Configuration commands:
  23711. $config_commands
  23712. Report bugs to the package provider."
  23713. _ACEOF
  23714. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23715. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23716. ac_cs_version="\\
  23717. config.status
  23718. configured by $0, generated by GNU Autoconf 2.69,
  23719. with options \\"\$ac_cs_config\\"
  23720. Copyright (C) 2012 Free Software Foundation, Inc.
  23721. This config.status script is free software; the Free Software Foundation
  23722. gives unlimited permission to copy, distribute and modify it."
  23723. ac_pwd='$ac_pwd'
  23724. srcdir='$srcdir'
  23725. INSTALL='$INSTALL'
  23726. AWK='$AWK'
  23727. test -n "\$AWK" || AWK=awk
  23728. _ACEOF
  23729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23730. # The default lists apply if the user does not specify any file.
  23731. ac_need_defaults=:
  23732. while test $# != 0
  23733. do
  23734. case $1 in
  23735. --*=?*)
  23736. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23737. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23738. ac_shift=:
  23739. ;;
  23740. --*=)
  23741. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23742. ac_optarg=
  23743. ac_shift=:
  23744. ;;
  23745. *)
  23746. ac_option=$1
  23747. ac_optarg=$2
  23748. ac_shift=shift
  23749. ;;
  23750. esac
  23751. case $ac_option in
  23752. # Handling of the options.
  23753. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23754. ac_cs_recheck=: ;;
  23755. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23756. $as_echo "$ac_cs_version"; exit ;;
  23757. --config | --confi | --conf | --con | --co | --c )
  23758. $as_echo "$ac_cs_config"; exit ;;
  23759. --debug | --debu | --deb | --de | --d | -d )
  23760. debug=: ;;
  23761. --file | --fil | --fi | --f )
  23762. $ac_shift
  23763. case $ac_optarg in
  23764. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23765. '') as_fn_error $? "missing file argument" ;;
  23766. esac
  23767. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23768. ac_need_defaults=false;;
  23769. --header | --heade | --head | --hea )
  23770. $ac_shift
  23771. case $ac_optarg in
  23772. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23773. esac
  23774. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23775. ac_need_defaults=false;;
  23776. --he | --h)
  23777. # Conflict between --help and --header
  23778. as_fn_error $? "ambiguous option: \`$1'
  23779. Try \`$0 --help' for more information.";;
  23780. --help | --hel | -h )
  23781. $as_echo "$ac_cs_usage"; exit ;;
  23782. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23783. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23784. ac_cs_silent=: ;;
  23785. # This is an error.
  23786. -*) as_fn_error $? "unrecognized option: \`$1'
  23787. Try \`$0 --help' for more information." ;;
  23788. *) as_fn_append ac_config_targets " $1"
  23789. ac_need_defaults=false ;;
  23790. esac
  23791. shift
  23792. done
  23793. ac_configure_extra_args=
  23794. if $ac_cs_silent; then
  23795. exec 6>/dev/null
  23796. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23797. fi
  23798. _ACEOF
  23799. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23800. if \$ac_cs_recheck; then
  23801. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23802. shift
  23803. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23804. CONFIG_SHELL='$SHELL'
  23805. export CONFIG_SHELL
  23806. exec "\$@"
  23807. fi
  23808. _ACEOF
  23809. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23810. exec 5>>config.log
  23811. {
  23812. echo
  23813. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23814. ## Running $as_me. ##
  23815. _ASBOX
  23816. $as_echo "$ac_log"
  23817. } >&5
  23818. _ACEOF
  23819. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23820. #
  23821. # INIT-COMMANDS
  23822. #
  23823. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23824. # if CDPATH is set.
  23825. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23826. sed_quote_subst='$sed_quote_subst'
  23827. double_quote_subst='$double_quote_subst'
  23828. delay_variable_subst='$delay_variable_subst'
  23829. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23830. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23831. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23832. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23833. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23834. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23835. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23836. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23837. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23838. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23839. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23840. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23841. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23842. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23843. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23844. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23845. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23846. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23847. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23848. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23849. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23850. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23851. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23852. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23853. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23854. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23855. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23856. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23857. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23858. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23859. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23860. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23861. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23862. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23863. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23864. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23865. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23866. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23867. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23868. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23869. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23870. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23871. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23872. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23873. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23874. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23875. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23876. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23877. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23878. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23879. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23880. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23881. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23882. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23883. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23884. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23885. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23886. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23887. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23888. 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"`'
  23889. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23890. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23891. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23892. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23893. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23894. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23895. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23896. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23897. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23898. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23899. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23900. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23901. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23902. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23903. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23904. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23905. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23906. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23907. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23908. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23909. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23910. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23911. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23912. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23913. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23914. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23915. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23916. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23917. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23918. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23919. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23920. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23921. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23922. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23923. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23924. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23925. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23926. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23927. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23928. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23929. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23930. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23931. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23932. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23933. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23934. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23935. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23936. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23937. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23938. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23939. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23940. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23941. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23942. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23943. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23944. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23945. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23946. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23947. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23948. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23949. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23950. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23951. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23952. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23953. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23954. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23955. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23956. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23957. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  23958. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  23959. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23960. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23961. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23962. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23963. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23964. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23965. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23966. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23967. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23968. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23969. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23970. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23971. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23972. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23973. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23974. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23975. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23976. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23977. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23978. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23979. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23980. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23981. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23982. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23983. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23984. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23985. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23986. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23987. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23988. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23989. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23990. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23991. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23992. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23993. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23994. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23995. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23996. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23997. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23998. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23999. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24000. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24001. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24002. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24003. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24004. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24005. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24006. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24007. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24008. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24009. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24010. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24011. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24012. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24013. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24014. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24015. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24016. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24017. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24018. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24019. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24020. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24021. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24022. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24023. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24024. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24025. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24026. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24027. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24028. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24029. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24030. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24031. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24032. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24033. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24034. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24035. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24036. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24037. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24038. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24039. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24040. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24041. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24042. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24043. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24044. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24045. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24046. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24047. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24048. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24049. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24050. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24051. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24052. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24053. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24054. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24055. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24056. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24057. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24058. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24059. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24060. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24061. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24062. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24063. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24064. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24065. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24066. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24067. LTCC='$LTCC'
  24068. LTCFLAGS='$LTCFLAGS'
  24069. compiler='$compiler_DEFAULT'
  24070. # A function that is used when there is no print builtin or printf.
  24071. func_fallback_echo ()
  24072. {
  24073. eval 'cat <<_LTECHO_EOF
  24074. \$1
  24075. _LTECHO_EOF'
  24076. }
  24077. # Quote evaled strings.
  24078. for var in AS \
  24079. DLLTOOL \
  24080. OBJDUMP \
  24081. SHELL \
  24082. ECHO \
  24083. PATH_SEPARATOR \
  24084. SED \
  24085. GREP \
  24086. EGREP \
  24087. FGREP \
  24088. LD \
  24089. NM \
  24090. LN_S \
  24091. lt_SP2NL \
  24092. lt_NL2SP \
  24093. reload_flag \
  24094. deplibs_check_method \
  24095. file_magic_cmd \
  24096. file_magic_glob \
  24097. want_nocaseglob \
  24098. sharedlib_from_linklib_cmd \
  24099. AR \
  24100. AR_FLAGS \
  24101. archiver_list_spec \
  24102. STRIP \
  24103. RANLIB \
  24104. CC \
  24105. CFLAGS \
  24106. compiler \
  24107. lt_cv_sys_global_symbol_pipe \
  24108. lt_cv_sys_global_symbol_to_cdecl \
  24109. lt_cv_sys_global_symbol_to_import \
  24110. lt_cv_sys_global_symbol_to_c_name_address \
  24111. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24112. lt_cv_nm_interface \
  24113. nm_file_list_spec \
  24114. lt_cv_truncate_bin \
  24115. lt_prog_compiler_no_builtin_flag \
  24116. lt_prog_compiler_pic \
  24117. lt_prog_compiler_wl \
  24118. lt_prog_compiler_static \
  24119. lt_cv_prog_compiler_c_o \
  24120. need_locks \
  24121. MANIFEST_TOOL \
  24122. DSYMUTIL \
  24123. NMEDIT \
  24124. LIPO \
  24125. OTOOL \
  24126. OTOOL64 \
  24127. shrext_cmds \
  24128. export_dynamic_flag_spec \
  24129. whole_archive_flag_spec \
  24130. compiler_needs_object \
  24131. with_gnu_ld \
  24132. allow_undefined_flag \
  24133. no_undefined_flag \
  24134. hardcode_libdir_flag_spec \
  24135. hardcode_libdir_separator \
  24136. exclude_expsyms \
  24137. include_expsyms \
  24138. file_list_spec \
  24139. variables_saved_for_relink \
  24140. libname_spec \
  24141. library_names_spec \
  24142. soname_spec \
  24143. install_override_mode \
  24144. finish_eval \
  24145. old_striplib \
  24146. striplib \
  24147. compiler_lib_search_dirs \
  24148. predep_objects \
  24149. postdep_objects \
  24150. predeps \
  24151. postdeps \
  24152. compiler_lib_search_path \
  24153. LD_RC \
  24154. LD_CXX \
  24155. reload_flag_RC \
  24156. reload_flag_CXX \
  24157. compiler_RC \
  24158. compiler_CXX \
  24159. lt_prog_compiler_no_builtin_flag_RC \
  24160. lt_prog_compiler_no_builtin_flag_CXX \
  24161. lt_prog_compiler_pic_RC \
  24162. lt_prog_compiler_pic_CXX \
  24163. lt_prog_compiler_wl_RC \
  24164. lt_prog_compiler_wl_CXX \
  24165. lt_prog_compiler_static_RC \
  24166. lt_prog_compiler_static_CXX \
  24167. lt_cv_prog_compiler_c_o_RC \
  24168. lt_cv_prog_compiler_c_o_CXX \
  24169. export_dynamic_flag_spec_RC \
  24170. export_dynamic_flag_spec_CXX \
  24171. whole_archive_flag_spec_RC \
  24172. whole_archive_flag_spec_CXX \
  24173. compiler_needs_object_RC \
  24174. compiler_needs_object_CXX \
  24175. with_gnu_ld_RC \
  24176. with_gnu_ld_CXX \
  24177. allow_undefined_flag_RC \
  24178. allow_undefined_flag_CXX \
  24179. no_undefined_flag_RC \
  24180. no_undefined_flag_CXX \
  24181. hardcode_libdir_flag_spec_RC \
  24182. hardcode_libdir_flag_spec_CXX \
  24183. hardcode_libdir_separator_RC \
  24184. hardcode_libdir_separator_CXX \
  24185. exclude_expsyms_RC \
  24186. exclude_expsyms_CXX \
  24187. include_expsyms_RC \
  24188. include_expsyms_CXX \
  24189. file_list_spec_RC \
  24190. file_list_spec_CXX \
  24191. compiler_lib_search_dirs_RC \
  24192. compiler_lib_search_dirs_CXX \
  24193. predep_objects_RC \
  24194. predep_objects_CXX \
  24195. postdep_objects_RC \
  24196. postdep_objects_CXX \
  24197. predeps_RC \
  24198. predeps_CXX \
  24199. postdeps_RC \
  24200. postdeps_CXX \
  24201. compiler_lib_search_path_RC \
  24202. compiler_lib_search_path_CXX; do
  24203. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24204. *[\\\\\\\`\\"\\\$]*)
  24205. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24206. ;;
  24207. *)
  24208. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24209. ;;
  24210. esac
  24211. done
  24212. # Double-quote double-evaled strings.
  24213. for var in reload_cmds \
  24214. old_postinstall_cmds \
  24215. old_postuninstall_cmds \
  24216. old_archive_cmds \
  24217. extract_expsyms_cmds \
  24218. old_archive_from_new_cmds \
  24219. old_archive_from_expsyms_cmds \
  24220. archive_cmds \
  24221. archive_expsym_cmds \
  24222. module_cmds \
  24223. module_expsym_cmds \
  24224. export_symbols_cmds \
  24225. prelink_cmds \
  24226. postlink_cmds \
  24227. postinstall_cmds \
  24228. postuninstall_cmds \
  24229. finish_cmds \
  24230. sys_lib_search_path_spec \
  24231. configure_time_dlsearch_path \
  24232. configure_time_lt_sys_library_path \
  24233. reload_cmds_RC \
  24234. reload_cmds_CXX \
  24235. old_archive_cmds_RC \
  24236. old_archive_cmds_CXX \
  24237. old_archive_from_new_cmds_RC \
  24238. old_archive_from_new_cmds_CXX \
  24239. old_archive_from_expsyms_cmds_RC \
  24240. old_archive_from_expsyms_cmds_CXX \
  24241. archive_cmds_RC \
  24242. archive_cmds_CXX \
  24243. archive_expsym_cmds_RC \
  24244. archive_expsym_cmds_CXX \
  24245. module_cmds_RC \
  24246. module_cmds_CXX \
  24247. module_expsym_cmds_RC \
  24248. module_expsym_cmds_CXX \
  24249. export_symbols_cmds_RC \
  24250. export_symbols_cmds_CXX \
  24251. prelink_cmds_RC \
  24252. prelink_cmds_CXX \
  24253. postlink_cmds_RC \
  24254. postlink_cmds_CXX; do
  24255. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24256. *[\\\\\\\`\\"\\\$]*)
  24257. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24258. ;;
  24259. *)
  24260. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24261. ;;
  24262. esac
  24263. done
  24264. ac_aux_dir='$ac_aux_dir'
  24265. # See if we are running on zsh, and set the options that allow our
  24266. # commands through without removal of \ escapes INIT.
  24267. if test -n "\${ZSH_VERSION+set}"; then
  24268. setopt NO_GLOB_SUBST
  24269. fi
  24270. PACKAGE='$PACKAGE'
  24271. VERSION='$VERSION'
  24272. RM='$RM'
  24273. ofile='$ofile'
  24274. SUMMARY="$SUMMARY"
  24275. _ACEOF
  24276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24277. # Handling of arguments.
  24278. for ac_config_target in $ac_config_targets
  24279. do
  24280. case $ac_config_target in
  24281. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24282. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24283. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24284. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24285. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24286. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24287. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24288. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24289. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24290. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24291. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24292. esac
  24293. done
  24294. # If the user did not use the arguments to specify the items to instantiate,
  24295. # then the envvar interface is used. Set only those that are not.
  24296. # We use the long form for the default assignment because of an extremely
  24297. # bizarre bug on SunOS 4.1.3.
  24298. if $ac_need_defaults; then
  24299. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24300. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24301. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24302. fi
  24303. # Have a temporary directory for convenience. Make it in the build tree
  24304. # simply because there is no reason against having it here, and in addition,
  24305. # creating and moving files from /tmp can sometimes cause problems.
  24306. # Hook for its removal unless debugging.
  24307. # Note that there is a small window in which the directory will not be cleaned:
  24308. # after its creation but before its name has been assigned to `$tmp'.
  24309. $debug ||
  24310. {
  24311. tmp= ac_tmp=
  24312. trap 'exit_status=$?
  24313. : "${ac_tmp:=$tmp}"
  24314. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24315. ' 0
  24316. trap 'as_fn_exit 1' 1 2 13 15
  24317. }
  24318. # Create a (secure) tmp directory for tmp files.
  24319. {
  24320. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24321. test -d "$tmp"
  24322. } ||
  24323. {
  24324. tmp=./conf$$-$RANDOM
  24325. (umask 077 && mkdir "$tmp")
  24326. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24327. ac_tmp=$tmp
  24328. # Set up the scripts for CONFIG_FILES section.
  24329. # No need to generate them if there are no CONFIG_FILES.
  24330. # This happens for instance with `./config.status config.h'.
  24331. if test -n "$CONFIG_FILES"; then
  24332. ac_cr=`echo X | tr X '\015'`
  24333. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24334. # But we know of no other shell where ac_cr would be empty at this
  24335. # point, so we can use a bashism as a fallback.
  24336. if test "x$ac_cr" = x; then
  24337. eval ac_cr=\$\'\\r\'
  24338. fi
  24339. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24340. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24341. ac_cs_awk_cr='\\r'
  24342. else
  24343. ac_cs_awk_cr=$ac_cr
  24344. fi
  24345. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24346. _ACEOF
  24347. {
  24348. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24349. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24350. echo "_ACEOF"
  24351. } >conf$$subs.sh ||
  24352. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24353. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24354. ac_delim='%!_!# '
  24355. for ac_last_try in false false false false false :; do
  24356. . ./conf$$subs.sh ||
  24357. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24358. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24359. if test $ac_delim_n = $ac_delim_num; then
  24360. break
  24361. elif $ac_last_try; then
  24362. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24363. else
  24364. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24365. fi
  24366. done
  24367. rm -f conf$$subs.sh
  24368. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24369. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24370. _ACEOF
  24371. sed -n '
  24372. h
  24373. s/^/S["/; s/!.*/"]=/
  24374. p
  24375. g
  24376. s/^[^!]*!//
  24377. :repl
  24378. t repl
  24379. s/'"$ac_delim"'$//
  24380. t delim
  24381. :nl
  24382. h
  24383. s/\(.\{148\}\)..*/\1/
  24384. t more1
  24385. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24386. p
  24387. n
  24388. b repl
  24389. :more1
  24390. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24391. p
  24392. g
  24393. s/.\{148\}//
  24394. t nl
  24395. :delim
  24396. h
  24397. s/\(.\{148\}\)..*/\1/
  24398. t more2
  24399. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24400. p
  24401. b
  24402. :more2
  24403. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24404. p
  24405. g
  24406. s/.\{148\}//
  24407. t delim
  24408. ' <conf$$subs.awk | sed '
  24409. /^[^""]/{
  24410. N
  24411. s/\n//
  24412. }
  24413. ' >>$CONFIG_STATUS || ac_write_fail=1
  24414. rm -f conf$$subs.awk
  24415. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24416. _ACAWK
  24417. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24418. for (key in S) S_is_set[key] = 1
  24419. FS = ""
  24420. }
  24421. {
  24422. line = $ 0
  24423. nfields = split(line, field, "@")
  24424. substed = 0
  24425. len = length(field[1])
  24426. for (i = 2; i < nfields; i++) {
  24427. key = field[i]
  24428. keylen = length(key)
  24429. if (S_is_set[key]) {
  24430. value = S[key]
  24431. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24432. len += length(value) + length(field[++i])
  24433. substed = 1
  24434. } else
  24435. len += 1 + keylen
  24436. }
  24437. print line
  24438. }
  24439. _ACAWK
  24440. _ACEOF
  24441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24442. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24443. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24444. else
  24445. cat
  24446. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24447. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24448. _ACEOF
  24449. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24450. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24451. # trailing colons and then remove the whole line if VPATH becomes empty
  24452. # (actually we leave an empty line to preserve line numbers).
  24453. if test "x$srcdir" = x.; then
  24454. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24455. h
  24456. s///
  24457. s/^/:/
  24458. s/[ ]*$/:/
  24459. s/:\$(srcdir):/:/g
  24460. s/:\${srcdir}:/:/g
  24461. s/:@srcdir@:/:/g
  24462. s/^:*//
  24463. s/:*$//
  24464. x
  24465. s/\(=[ ]*\).*/\1/
  24466. G
  24467. s/\n//
  24468. s/^[^=]*=[ ]*$//
  24469. }'
  24470. fi
  24471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24472. fi # test -n "$CONFIG_FILES"
  24473. # Set up the scripts for CONFIG_HEADERS section.
  24474. # No need to generate them if there are no CONFIG_HEADERS.
  24475. # This happens for instance with `./config.status Makefile'.
  24476. if test -n "$CONFIG_HEADERS"; then
  24477. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24478. BEGIN {
  24479. _ACEOF
  24480. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24481. # here-document in config.status, that substitutes the proper values into
  24482. # config.h.in to produce config.h.
  24483. # Create a delimiter string that does not exist in confdefs.h, to ease
  24484. # handling of long lines.
  24485. ac_delim='%!_!# '
  24486. for ac_last_try in false false :; do
  24487. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24488. if test -z "$ac_tt"; then
  24489. break
  24490. elif $ac_last_try; then
  24491. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24492. else
  24493. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24494. fi
  24495. done
  24496. # For the awk script, D is an array of macro values keyed by name,
  24497. # likewise P contains macro parameters if any. Preserve backslash
  24498. # newline sequences.
  24499. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24500. sed -n '
  24501. s/.\{148\}/&'"$ac_delim"'/g
  24502. t rset
  24503. :rset
  24504. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24505. t def
  24506. d
  24507. :def
  24508. s/\\$//
  24509. t bsnl
  24510. s/["\\]/\\&/g
  24511. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24512. D["\1"]=" \3"/p
  24513. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24514. d
  24515. :bsnl
  24516. s/["\\]/\\&/g
  24517. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24518. D["\1"]=" \3\\\\\\n"\\/p
  24519. t cont
  24520. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24521. t cont
  24522. d
  24523. :cont
  24524. n
  24525. s/.\{148\}/&'"$ac_delim"'/g
  24526. t clear
  24527. :clear
  24528. s/\\$//
  24529. t bsnlc
  24530. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24531. d
  24532. :bsnlc
  24533. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24534. b cont
  24535. ' <confdefs.h | sed '
  24536. s/'"$ac_delim"'/"\\\
  24537. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24538. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24539. for (key in D) D_is_set[key] = 1
  24540. FS = ""
  24541. }
  24542. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24543. line = \$ 0
  24544. split(line, arg, " ")
  24545. if (arg[1] == "#") {
  24546. defundef = arg[2]
  24547. mac1 = arg[3]
  24548. } else {
  24549. defundef = substr(arg[1], 2)
  24550. mac1 = arg[2]
  24551. }
  24552. split(mac1, mac2, "(") #)
  24553. macro = mac2[1]
  24554. prefix = substr(line, 1, index(line, defundef) - 1)
  24555. if (D_is_set[macro]) {
  24556. # Preserve the white space surrounding the "#".
  24557. print prefix "define", macro P[macro] D[macro]
  24558. next
  24559. } else {
  24560. # Replace #undef with comments. This is necessary, for example,
  24561. # in the case of _POSIX_SOURCE, which is predefined and required
  24562. # on some systems where configure will not decide to define it.
  24563. if (defundef == "undef") {
  24564. print "/*", prefix defundef, macro, "*/"
  24565. next
  24566. }
  24567. }
  24568. }
  24569. { print }
  24570. _ACAWK
  24571. _ACEOF
  24572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24573. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24574. fi # test -n "$CONFIG_HEADERS"
  24575. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24576. shift
  24577. for ac_tag
  24578. do
  24579. case $ac_tag in
  24580. :[FHLC]) ac_mode=$ac_tag; continue;;
  24581. esac
  24582. case $ac_mode$ac_tag in
  24583. :[FHL]*:*);;
  24584. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24585. :[FH]-) ac_tag=-:-;;
  24586. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24587. esac
  24588. ac_save_IFS=$IFS
  24589. IFS=:
  24590. set x $ac_tag
  24591. IFS=$ac_save_IFS
  24592. shift
  24593. ac_file=$1
  24594. shift
  24595. case $ac_mode in
  24596. :L) ac_source=$1;;
  24597. :[FH])
  24598. ac_file_inputs=
  24599. for ac_f
  24600. do
  24601. case $ac_f in
  24602. -) ac_f="$ac_tmp/stdin";;
  24603. *) # Look for the file first in the build tree, then in the source tree
  24604. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24605. # because $ac_f cannot contain `:'.
  24606. test -f "$ac_f" ||
  24607. case $ac_f in
  24608. [\\/$]*) false;;
  24609. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24610. esac ||
  24611. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24612. esac
  24613. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24614. as_fn_append ac_file_inputs " '$ac_f'"
  24615. done
  24616. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24617. # use $as_me), people would be surprised to read:
  24618. # /* config.h. Generated by config.status. */
  24619. configure_input='Generated from '`
  24620. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24621. `' by configure.'
  24622. if test x"$ac_file" != x-; then
  24623. configure_input="$ac_file. $configure_input"
  24624. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24625. $as_echo "$as_me: creating $ac_file" >&6;}
  24626. fi
  24627. # Neutralize special characters interpreted by sed in replacement strings.
  24628. case $configure_input in #(
  24629. *\&* | *\|* | *\\* )
  24630. ac_sed_conf_input=`$as_echo "$configure_input" |
  24631. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24632. *) ac_sed_conf_input=$configure_input;;
  24633. esac
  24634. case $ac_tag in
  24635. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24636. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24637. esac
  24638. ;;
  24639. esac
  24640. ac_dir=`$as_dirname -- "$ac_file" ||
  24641. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24642. X"$ac_file" : 'X\(//\)[^/]' \| \
  24643. X"$ac_file" : 'X\(//\)$' \| \
  24644. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24645. $as_echo X"$ac_file" |
  24646. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24647. s//\1/
  24648. q
  24649. }
  24650. /^X\(\/\/\)[^/].*/{
  24651. s//\1/
  24652. q
  24653. }
  24654. /^X\(\/\/\)$/{
  24655. s//\1/
  24656. q
  24657. }
  24658. /^X\(\/\).*/{
  24659. s//\1/
  24660. q
  24661. }
  24662. s/.*/./; q'`
  24663. as_dir="$ac_dir"; as_fn_mkdir_p
  24664. ac_builddir=.
  24665. case "$ac_dir" in
  24666. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24667. *)
  24668. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24669. # A ".." for each directory in $ac_dir_suffix.
  24670. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24671. case $ac_top_builddir_sub in
  24672. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24673. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24674. esac ;;
  24675. esac
  24676. ac_abs_top_builddir=$ac_pwd
  24677. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24678. # for backward compatibility:
  24679. ac_top_builddir=$ac_top_build_prefix
  24680. case $srcdir in
  24681. .) # We are building in place.
  24682. ac_srcdir=.
  24683. ac_top_srcdir=$ac_top_builddir_sub
  24684. ac_abs_top_srcdir=$ac_pwd ;;
  24685. [\\/]* | ?:[\\/]* ) # Absolute name.
  24686. ac_srcdir=$srcdir$ac_dir_suffix;
  24687. ac_top_srcdir=$srcdir
  24688. ac_abs_top_srcdir=$srcdir ;;
  24689. *) # Relative name.
  24690. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24691. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24692. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24693. esac
  24694. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24695. case $ac_mode in
  24696. :F)
  24697. #
  24698. # CONFIG_FILE
  24699. #
  24700. case $INSTALL in
  24701. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24702. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24703. esac
  24704. _ACEOF
  24705. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24706. # If the template does not know about datarootdir, expand it.
  24707. # FIXME: This hack should be removed a few years after 2.60.
  24708. ac_datarootdir_hack=; ac_datarootdir_seen=
  24709. ac_sed_dataroot='
  24710. /datarootdir/ {
  24711. p
  24712. q
  24713. }
  24714. /@datadir@/p
  24715. /@docdir@/p
  24716. /@infodir@/p
  24717. /@localedir@/p
  24718. /@mandir@/p'
  24719. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24720. *datarootdir*) ac_datarootdir_seen=yes;;
  24721. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24723. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24724. _ACEOF
  24725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24726. ac_datarootdir_hack='
  24727. s&@datadir@&$datadir&g
  24728. s&@docdir@&$docdir&g
  24729. s&@infodir@&$infodir&g
  24730. s&@localedir@&$localedir&g
  24731. s&@mandir@&$mandir&g
  24732. s&\\\${datarootdir}&$datarootdir&g' ;;
  24733. esac
  24734. _ACEOF
  24735. # Neutralize VPATH when `$srcdir' = `.'.
  24736. # Shell code in configure.ac might set extrasub.
  24737. # FIXME: do we really want to maintain this feature?
  24738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24739. ac_sed_extra="$ac_vpsub
  24740. $extrasub
  24741. _ACEOF
  24742. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24743. :t
  24744. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24745. s|@configure_input@|$ac_sed_conf_input|;t t
  24746. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24747. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24748. s&@srcdir@&$ac_srcdir&;t t
  24749. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24750. s&@top_srcdir@&$ac_top_srcdir&;t t
  24751. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24752. s&@builddir@&$ac_builddir&;t t
  24753. s&@abs_builddir@&$ac_abs_builddir&;t t
  24754. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24755. s&@INSTALL@&$ac_INSTALL&;t t
  24756. $ac_datarootdir_hack
  24757. "
  24758. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24759. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24760. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24761. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24762. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24763. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24765. which seems to be undefined. Please make sure it is defined" >&5
  24766. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24767. which seems to be undefined. Please make sure it is defined" >&2;}
  24768. rm -f "$ac_tmp/stdin"
  24769. case $ac_file in
  24770. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24771. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24772. esac \
  24773. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24774. ;;
  24775. :H)
  24776. #
  24777. # CONFIG_HEADER
  24778. #
  24779. if test x"$ac_file" != x-; then
  24780. {
  24781. $as_echo "/* $configure_input */" \
  24782. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24783. } >"$ac_tmp/config.h" \
  24784. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24785. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24786. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24787. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24788. else
  24789. rm -f "$ac_file"
  24790. mv "$ac_tmp/config.h" "$ac_file" \
  24791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24792. fi
  24793. else
  24794. $as_echo "/* $configure_input */" \
  24795. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24796. || as_fn_error $? "could not create -" "$LINENO" 5
  24797. fi
  24798. ;;
  24799. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24800. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24801. ;;
  24802. esac
  24803. case $ac_file$ac_mode in
  24804. "libtool":C)
  24805. # See if we are running on zsh, and set the options that allow our
  24806. # commands through without removal of \ escapes.
  24807. if test -n "${ZSH_VERSION+set}"; then
  24808. setopt NO_GLOB_SUBST
  24809. fi
  24810. cfgfile=${ofile}T
  24811. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24812. $RM "$cfgfile"
  24813. cat <<_LT_EOF >> "$cfgfile"
  24814. #! $SHELL
  24815. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24816. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24817. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24818. # Provide generalized library-building support services.
  24819. # Written by Gordon Matzigkeit, 1996
  24820. # Copyright (C) 2014 Free Software Foundation, Inc.
  24821. # This is free software; see the source for copying conditions. There is NO
  24822. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24823. # GNU Libtool is free software; you can redistribute it and/or modify
  24824. # it under the terms of the GNU General Public License as published by
  24825. # the Free Software Foundation; either version 2 of of the License, or
  24826. # (at your option) any later version.
  24827. #
  24828. # As a special exception to the GNU General Public License, if you
  24829. # distribute this file as part of a program or library that is built
  24830. # using GNU Libtool, you may include this file under the same
  24831. # distribution terms that you use for the rest of that program.
  24832. #
  24833. # GNU Libtool is distributed in the hope that it will be useful, but
  24834. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24835. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24836. # GNU General Public License for more details.
  24837. #
  24838. # You should have received a copy of the GNU General Public License
  24839. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24840. # The names of the tagged configurations supported by this script.
  24841. available_tags='RC CXX '
  24842. # Configured defaults for sys_lib_dlsearch_path munging.
  24843. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24844. # ### BEGIN LIBTOOL CONFIG
  24845. # Which release of libtool.m4 was used?
  24846. macro_version=$macro_version
  24847. macro_revision=$macro_revision
  24848. # Assembler program.
  24849. AS=$lt_AS
  24850. # DLL creation program.
  24851. DLLTOOL=$lt_DLLTOOL
  24852. # Object dumper program.
  24853. OBJDUMP=$lt_OBJDUMP
  24854. # Whether or not to build shared libraries.
  24855. build_libtool_libs=$enable_shared
  24856. # Whether or not to build static libraries.
  24857. build_old_libs=$enable_static
  24858. # What type of objects to build.
  24859. pic_mode=$pic_mode
  24860. # Whether or not to optimize for fast installation.
  24861. fast_install=$enable_fast_install
  24862. # Shared archive member basename,for filename based shared library versioning on AIX.
  24863. shared_archive_member_spec=$shared_archive_member_spec
  24864. # Shell to use when invoking shell scripts.
  24865. SHELL=$lt_SHELL
  24866. # An echo program that protects backslashes.
  24867. ECHO=$lt_ECHO
  24868. # The PATH separator for the build system.
  24869. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24870. # The host system.
  24871. host_alias=$host_alias
  24872. host=$host
  24873. host_os=$host_os
  24874. # The build system.
  24875. build_alias=$build_alias
  24876. build=$build
  24877. build_os=$build_os
  24878. # A sed program that does not truncate output.
  24879. SED=$lt_SED
  24880. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24881. Xsed="\$SED -e 1s/^X//"
  24882. # A grep program that handles long lines.
  24883. GREP=$lt_GREP
  24884. # An ERE matcher.
  24885. EGREP=$lt_EGREP
  24886. # A literal string matcher.
  24887. FGREP=$lt_FGREP
  24888. # A BSD- or MS-compatible name lister.
  24889. NM=$lt_NM
  24890. # Whether we need soft or hard links.
  24891. LN_S=$lt_LN_S
  24892. # What is the maximum length of a command?
  24893. max_cmd_len=$max_cmd_len
  24894. # Object file suffix (normally "o").
  24895. objext=$ac_objext
  24896. # Executable file suffix (normally "").
  24897. exeext=$exeext
  24898. # whether the shell understands "unset".
  24899. lt_unset=$lt_unset
  24900. # turn spaces into newlines.
  24901. SP2NL=$lt_lt_SP2NL
  24902. # turn newlines into spaces.
  24903. NL2SP=$lt_lt_NL2SP
  24904. # convert \$build file names to \$host format.
  24905. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24906. # convert \$build files to toolchain format.
  24907. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24908. # Method to check whether dependent libraries are shared objects.
  24909. deplibs_check_method=$lt_deplibs_check_method
  24910. # Command to use when deplibs_check_method = "file_magic".
  24911. file_magic_cmd=$lt_file_magic_cmd
  24912. # How to find potential files when deplibs_check_method = "file_magic".
  24913. file_magic_glob=$lt_file_magic_glob
  24914. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24915. want_nocaseglob=$lt_want_nocaseglob
  24916. # Command to associate shared and link libraries.
  24917. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24918. # The archiver.
  24919. AR=$lt_AR
  24920. # Flags to create an archive.
  24921. AR_FLAGS=$lt_AR_FLAGS
  24922. # How to feed a file listing to the archiver.
  24923. archiver_list_spec=$lt_archiver_list_spec
  24924. # A symbol stripping program.
  24925. STRIP=$lt_STRIP
  24926. # Commands used to install an old-style archive.
  24927. RANLIB=$lt_RANLIB
  24928. old_postinstall_cmds=$lt_old_postinstall_cmds
  24929. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24930. # Whether to use a lock for old archive extraction.
  24931. lock_old_archive_extraction=$lock_old_archive_extraction
  24932. # A C compiler.
  24933. LTCC=$lt_CC
  24934. # LTCC compiler flags.
  24935. LTCFLAGS=$lt_CFLAGS
  24936. # Take the output of nm and produce a listing of raw symbols and C names.
  24937. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24938. # Transform the output of nm in a proper C declaration.
  24939. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24940. # Transform the output of nm into a list of symbols to manually relocate.
  24941. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24942. # Transform the output of nm in a C name address pair.
  24943. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24944. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24945. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24946. # The name lister interface.
  24947. nm_interface=$lt_lt_cv_nm_interface
  24948. # Specify filename containing input files for \$NM.
  24949. nm_file_list_spec=$lt_nm_file_list_spec
  24950. # The root where to search for dependent libraries,and where our libraries should be installed.
  24951. lt_sysroot=$lt_sysroot
  24952. # Command to truncate a binary pipe.
  24953. lt_truncate_bin=$lt_lt_cv_truncate_bin
  24954. # The name of the directory that contains temporary libtool files.
  24955. objdir=$objdir
  24956. # Used to examine libraries when file_magic_cmd begins with "file".
  24957. MAGIC_CMD=$MAGIC_CMD
  24958. # Must we lock files when doing compilation?
  24959. need_locks=$lt_need_locks
  24960. # Manifest tool.
  24961. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24962. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24963. DSYMUTIL=$lt_DSYMUTIL
  24964. # Tool to change global to local symbols on Mac OS X.
  24965. NMEDIT=$lt_NMEDIT
  24966. # Tool to manipulate fat objects and archives on Mac OS X.
  24967. LIPO=$lt_LIPO
  24968. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24969. OTOOL=$lt_OTOOL
  24970. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24971. OTOOL64=$lt_OTOOL64
  24972. # Old archive suffix (normally "a").
  24973. libext=$libext
  24974. # Shared library suffix (normally ".so").
  24975. shrext_cmds=$lt_shrext_cmds
  24976. # The commands to extract the exported symbol list from a shared archive.
  24977. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24978. # Variables whose values should be saved in libtool wrapper scripts and
  24979. # restored at link time.
  24980. variables_saved_for_relink=$lt_variables_saved_for_relink
  24981. # Do we need the "lib" prefix for modules?
  24982. need_lib_prefix=$need_lib_prefix
  24983. # Do we need a version for libraries?
  24984. need_version=$need_version
  24985. # Library versioning type.
  24986. version_type=$version_type
  24987. # Shared library runtime path variable.
  24988. runpath_var=$runpath_var
  24989. # Shared library path variable.
  24990. shlibpath_var=$shlibpath_var
  24991. # Is shlibpath searched before the hard-coded library search path?
  24992. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24993. # Format of library name prefix.
  24994. libname_spec=$lt_libname_spec
  24995. # List of archive names. First name is the real one, the rest are links.
  24996. # The last name is the one that the linker finds with -lNAME
  24997. library_names_spec=$lt_library_names_spec
  24998. # The coded name of the library, if different from the real name.
  24999. soname_spec=$lt_soname_spec
  25000. # Permission mode override for installation of shared libraries.
  25001. install_override_mode=$lt_install_override_mode
  25002. # Command to use after installation of a shared archive.
  25003. postinstall_cmds=$lt_postinstall_cmds
  25004. # Command to use after uninstallation of a shared archive.
  25005. postuninstall_cmds=$lt_postuninstall_cmds
  25006. # Commands used to finish a libtool library installation in a directory.
  25007. finish_cmds=$lt_finish_cmds
  25008. # As "finish_cmds", except a single script fragment to be evaled but
  25009. # not shown.
  25010. finish_eval=$lt_finish_eval
  25011. # Whether we should hardcode library paths into libraries.
  25012. hardcode_into_libs=$hardcode_into_libs
  25013. # Compile-time system search path for libraries.
  25014. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25015. # Detected run-time system search path for libraries.
  25016. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25017. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25018. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25019. # Whether dlopen is supported.
  25020. dlopen_support=$enable_dlopen
  25021. # Whether dlopen of programs is supported.
  25022. dlopen_self=$enable_dlopen_self
  25023. # Whether dlopen of statically linked programs is supported.
  25024. dlopen_self_static=$enable_dlopen_self_static
  25025. # Commands to strip libraries.
  25026. old_striplib=$lt_old_striplib
  25027. striplib=$lt_striplib
  25028. # The linker used to build libraries.
  25029. LD=$lt_LD
  25030. # How to create reloadable object files.
  25031. reload_flag=$lt_reload_flag
  25032. reload_cmds=$lt_reload_cmds
  25033. # Commands used to build an old-style archive.
  25034. old_archive_cmds=$lt_old_archive_cmds
  25035. # A language specific compiler.
  25036. CC=$lt_compiler
  25037. # Is the compiler the GNU compiler?
  25038. with_gcc=$GCC
  25039. # Compiler flag to turn off builtin functions.
  25040. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25041. # Additional compiler flags for building library objects.
  25042. pic_flag=$lt_lt_prog_compiler_pic
  25043. # How to pass a linker flag through the compiler.
  25044. wl=$lt_lt_prog_compiler_wl
  25045. # Compiler flag to prevent dynamic linking.
  25046. link_static_flag=$lt_lt_prog_compiler_static
  25047. # Does compiler simultaneously support -c and -o options?
  25048. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25049. # Whether or not to add -lc for building shared libraries.
  25050. build_libtool_need_lc=$archive_cmds_need_lc
  25051. # Whether or not to disallow shared libs when runtime libs are static.
  25052. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25053. # Compiler flag to allow reflexive dlopens.
  25054. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25055. # Compiler flag to generate shared objects directly from archives.
  25056. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25057. # Whether the compiler copes with passing no objects directly.
  25058. compiler_needs_object=$lt_compiler_needs_object
  25059. # Create an old-style archive from a shared archive.
  25060. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25061. # Create a temporary old-style archive to link instead of a shared archive.
  25062. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25063. # Commands used to build a shared archive.
  25064. archive_cmds=$lt_archive_cmds
  25065. archive_expsym_cmds=$lt_archive_expsym_cmds
  25066. # Commands used to build a loadable module if different from building
  25067. # a shared archive.
  25068. module_cmds=$lt_module_cmds
  25069. module_expsym_cmds=$lt_module_expsym_cmds
  25070. # Whether we are building with GNU ld or not.
  25071. with_gnu_ld=$lt_with_gnu_ld
  25072. # Flag that allows shared libraries with undefined symbols to be built.
  25073. allow_undefined_flag=$lt_allow_undefined_flag
  25074. # Flag that enforces no undefined symbols.
  25075. no_undefined_flag=$lt_no_undefined_flag
  25076. # Flag to hardcode \$libdir into a binary during linking.
  25077. # This must work even if \$libdir does not exist
  25078. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25079. # Whether we need a single "-rpath" flag with a separated argument.
  25080. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25081. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25082. # DIR into the resulting binary.
  25083. hardcode_direct=$hardcode_direct
  25084. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25085. # DIR into the resulting binary and the resulting library dependency is
  25086. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25087. # library is relocated.
  25088. hardcode_direct_absolute=$hardcode_direct_absolute
  25089. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25090. # into the resulting binary.
  25091. hardcode_minus_L=$hardcode_minus_L
  25092. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25093. # into the resulting binary.
  25094. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25095. # Set to "yes" if building a shared library automatically hardcodes DIR
  25096. # into the library and all subsequent libraries and executables linked
  25097. # against it.
  25098. hardcode_automatic=$hardcode_automatic
  25099. # Set to yes if linker adds runtime paths of dependent libraries
  25100. # to runtime path list.
  25101. inherit_rpath=$inherit_rpath
  25102. # Whether libtool must link a program against all its dependency libraries.
  25103. link_all_deplibs=$link_all_deplibs
  25104. # Set to "yes" if exported symbols are required.
  25105. always_export_symbols=$always_export_symbols
  25106. # The commands to list exported symbols.
  25107. export_symbols_cmds=$lt_export_symbols_cmds
  25108. # Symbols that should not be listed in the preloaded symbols.
  25109. exclude_expsyms=$lt_exclude_expsyms
  25110. # Symbols that must always be exported.
  25111. include_expsyms=$lt_include_expsyms
  25112. # Commands necessary for linking programs (against libraries) with templates.
  25113. prelink_cmds=$lt_prelink_cmds
  25114. # Commands necessary for finishing linking programs.
  25115. postlink_cmds=$lt_postlink_cmds
  25116. # Specify filename containing input files.
  25117. file_list_spec=$lt_file_list_spec
  25118. # How to hardcode a shared library path into an executable.
  25119. hardcode_action=$hardcode_action
  25120. # The directories searched by this compiler when creating a shared library.
  25121. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25122. # Dependencies to place before and after the objects being linked to
  25123. # create a shared library.
  25124. predep_objects=$lt_predep_objects
  25125. postdep_objects=$lt_postdep_objects
  25126. predeps=$lt_predeps
  25127. postdeps=$lt_postdeps
  25128. # The library search path used internally by the compiler when linking
  25129. # a shared library.
  25130. compiler_lib_search_path=$lt_compiler_lib_search_path
  25131. # ### END LIBTOOL CONFIG
  25132. _LT_EOF
  25133. cat <<'_LT_EOF' >> "$cfgfile"
  25134. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25135. # func_munge_path_list VARIABLE PATH
  25136. # -----------------------------------
  25137. # VARIABLE is name of variable containing _space_ separated list of
  25138. # directories to be munged by the contents of PATH, which is string
  25139. # having a format:
  25140. # "DIR[:DIR]:"
  25141. # string "DIR[ DIR]" will be prepended to VARIABLE
  25142. # ":DIR[:DIR]"
  25143. # string "DIR[ DIR]" will be appended to VARIABLE
  25144. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25145. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25146. # "DIRA[ DIRA]" will be appended to VARIABLE
  25147. # "DIR[:DIR]"
  25148. # VARIABLE will be replaced by "DIR[ DIR]"
  25149. func_munge_path_list ()
  25150. {
  25151. case x$2 in
  25152. x)
  25153. ;;
  25154. *:)
  25155. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25156. ;;
  25157. x:*)
  25158. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25159. ;;
  25160. *::*)
  25161. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25162. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25163. ;;
  25164. *)
  25165. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25166. ;;
  25167. esac
  25168. }
  25169. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25170. func_cc_basename ()
  25171. {
  25172. for cc_temp in $*""; do
  25173. case $cc_temp in
  25174. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25175. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25176. \-*) ;;
  25177. *) break;;
  25178. esac
  25179. done
  25180. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25181. }
  25182. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25183. _LT_EOF
  25184. case $host_os in
  25185. aix3*)
  25186. cat <<\_LT_EOF >> "$cfgfile"
  25187. # AIX sometimes has problems with the GCC collect2 program. For some
  25188. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25189. # vanish in a puff of smoke.
  25190. if test set != "${COLLECT_NAMES+set}"; then
  25191. COLLECT_NAMES=
  25192. export COLLECT_NAMES
  25193. fi
  25194. _LT_EOF
  25195. ;;
  25196. esac
  25197. ltmain=$ac_aux_dir/ltmain.sh
  25198. # We use sed instead of cat because bash on DJGPP gets confused if
  25199. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25200. # text mode, it properly converts lines to CR/LF. This bash problem
  25201. # is reportedly fixed, but why not run on old versions too?
  25202. sed '$q' "$ltmain" >> "$cfgfile" \
  25203. || (rm -f "$cfgfile"; exit 1)
  25204. mv -f "$cfgfile" "$ofile" ||
  25205. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25206. chmod +x "$ofile"
  25207. cat <<_LT_EOF >> "$ofile"
  25208. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25209. # The linker used to build libraries.
  25210. LD=$lt_LD_RC
  25211. # How to create reloadable object files.
  25212. reload_flag=$lt_reload_flag_RC
  25213. reload_cmds=$lt_reload_cmds_RC
  25214. # Commands used to build an old-style archive.
  25215. old_archive_cmds=$lt_old_archive_cmds_RC
  25216. # A language specific compiler.
  25217. CC=$lt_compiler_RC
  25218. # Is the compiler the GNU compiler?
  25219. with_gcc=$GCC_RC
  25220. # Compiler flag to turn off builtin functions.
  25221. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25222. # Additional compiler flags for building library objects.
  25223. pic_flag=$lt_lt_prog_compiler_pic_RC
  25224. # How to pass a linker flag through the compiler.
  25225. wl=$lt_lt_prog_compiler_wl_RC
  25226. # Compiler flag to prevent dynamic linking.
  25227. link_static_flag=$lt_lt_prog_compiler_static_RC
  25228. # Does compiler simultaneously support -c and -o options?
  25229. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25230. # Whether or not to add -lc for building shared libraries.
  25231. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25232. # Whether or not to disallow shared libs when runtime libs are static.
  25233. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25234. # Compiler flag to allow reflexive dlopens.
  25235. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25236. # Compiler flag to generate shared objects directly from archives.
  25237. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25238. # Whether the compiler copes with passing no objects directly.
  25239. compiler_needs_object=$lt_compiler_needs_object_RC
  25240. # Create an old-style archive from a shared archive.
  25241. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25242. # Create a temporary old-style archive to link instead of a shared archive.
  25243. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25244. # Commands used to build a shared archive.
  25245. archive_cmds=$lt_archive_cmds_RC
  25246. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25247. # Commands used to build a loadable module if different from building
  25248. # a shared archive.
  25249. module_cmds=$lt_module_cmds_RC
  25250. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25251. # Whether we are building with GNU ld or not.
  25252. with_gnu_ld=$lt_with_gnu_ld_RC
  25253. # Flag that allows shared libraries with undefined symbols to be built.
  25254. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25255. # Flag that enforces no undefined symbols.
  25256. no_undefined_flag=$lt_no_undefined_flag_RC
  25257. # Flag to hardcode \$libdir into a binary during linking.
  25258. # This must work even if \$libdir does not exist
  25259. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25260. # Whether we need a single "-rpath" flag with a separated argument.
  25261. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25262. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25263. # DIR into the resulting binary.
  25264. hardcode_direct=$hardcode_direct_RC
  25265. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25266. # DIR into the resulting binary and the resulting library dependency is
  25267. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25268. # library is relocated.
  25269. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25270. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25271. # into the resulting binary.
  25272. hardcode_minus_L=$hardcode_minus_L_RC
  25273. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25274. # into the resulting binary.
  25275. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25276. # Set to "yes" if building a shared library automatically hardcodes DIR
  25277. # into the library and all subsequent libraries and executables linked
  25278. # against it.
  25279. hardcode_automatic=$hardcode_automatic_RC
  25280. # Set to yes if linker adds runtime paths of dependent libraries
  25281. # to runtime path list.
  25282. inherit_rpath=$inherit_rpath_RC
  25283. # Whether libtool must link a program against all its dependency libraries.
  25284. link_all_deplibs=$link_all_deplibs_RC
  25285. # Set to "yes" if exported symbols are required.
  25286. always_export_symbols=$always_export_symbols_RC
  25287. # The commands to list exported symbols.
  25288. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25289. # Symbols that should not be listed in the preloaded symbols.
  25290. exclude_expsyms=$lt_exclude_expsyms_RC
  25291. # Symbols that must always be exported.
  25292. include_expsyms=$lt_include_expsyms_RC
  25293. # Commands necessary for linking programs (against libraries) with templates.
  25294. prelink_cmds=$lt_prelink_cmds_RC
  25295. # Commands necessary for finishing linking programs.
  25296. postlink_cmds=$lt_postlink_cmds_RC
  25297. # Specify filename containing input files.
  25298. file_list_spec=$lt_file_list_spec_RC
  25299. # How to hardcode a shared library path into an executable.
  25300. hardcode_action=$hardcode_action_RC
  25301. # The directories searched by this compiler when creating a shared library.
  25302. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25303. # Dependencies to place before and after the objects being linked to
  25304. # create a shared library.
  25305. predep_objects=$lt_predep_objects_RC
  25306. postdep_objects=$lt_postdep_objects_RC
  25307. predeps=$lt_predeps_RC
  25308. postdeps=$lt_postdeps_RC
  25309. # The library search path used internally by the compiler when linking
  25310. # a shared library.
  25311. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25312. # ### END LIBTOOL TAG CONFIG: RC
  25313. _LT_EOF
  25314. cat <<_LT_EOF >> "$ofile"
  25315. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25316. # The linker used to build libraries.
  25317. LD=$lt_LD_CXX
  25318. # How to create reloadable object files.
  25319. reload_flag=$lt_reload_flag_CXX
  25320. reload_cmds=$lt_reload_cmds_CXX
  25321. # Commands used to build an old-style archive.
  25322. old_archive_cmds=$lt_old_archive_cmds_CXX
  25323. # A language specific compiler.
  25324. CC=$lt_compiler_CXX
  25325. # Is the compiler the GNU compiler?
  25326. with_gcc=$GCC_CXX
  25327. # Compiler flag to turn off builtin functions.
  25328. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25329. # Additional compiler flags for building library objects.
  25330. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25331. # How to pass a linker flag through the compiler.
  25332. wl=$lt_lt_prog_compiler_wl_CXX
  25333. # Compiler flag to prevent dynamic linking.
  25334. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25335. # Does compiler simultaneously support -c and -o options?
  25336. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25337. # Whether or not to add -lc for building shared libraries.
  25338. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25339. # Whether or not to disallow shared libs when runtime libs are static.
  25340. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25341. # Compiler flag to allow reflexive dlopens.
  25342. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25343. # Compiler flag to generate shared objects directly from archives.
  25344. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25345. # Whether the compiler copes with passing no objects directly.
  25346. compiler_needs_object=$lt_compiler_needs_object_CXX
  25347. # Create an old-style archive from a shared archive.
  25348. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25349. # Create a temporary old-style archive to link instead of a shared archive.
  25350. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25351. # Commands used to build a shared archive.
  25352. archive_cmds=$lt_archive_cmds_CXX
  25353. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25354. # Commands used to build a loadable module if different from building
  25355. # a shared archive.
  25356. module_cmds=$lt_module_cmds_CXX
  25357. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25358. # Whether we are building with GNU ld or not.
  25359. with_gnu_ld=$lt_with_gnu_ld_CXX
  25360. # Flag that allows shared libraries with undefined symbols to be built.
  25361. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25362. # Flag that enforces no undefined symbols.
  25363. no_undefined_flag=$lt_no_undefined_flag_CXX
  25364. # Flag to hardcode \$libdir into a binary during linking.
  25365. # This must work even if \$libdir does not exist
  25366. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25367. # Whether we need a single "-rpath" flag with a separated argument.
  25368. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25369. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25370. # DIR into the resulting binary.
  25371. hardcode_direct=$hardcode_direct_CXX
  25372. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25373. # DIR into the resulting binary and the resulting library dependency is
  25374. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25375. # library is relocated.
  25376. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25377. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25378. # into the resulting binary.
  25379. hardcode_minus_L=$hardcode_minus_L_CXX
  25380. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25381. # into the resulting binary.
  25382. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25383. # Set to "yes" if building a shared library automatically hardcodes DIR
  25384. # into the library and all subsequent libraries and executables linked
  25385. # against it.
  25386. hardcode_automatic=$hardcode_automatic_CXX
  25387. # Set to yes if linker adds runtime paths of dependent libraries
  25388. # to runtime path list.
  25389. inherit_rpath=$inherit_rpath_CXX
  25390. # Whether libtool must link a program against all its dependency libraries.
  25391. link_all_deplibs=$link_all_deplibs_CXX
  25392. # Set to "yes" if exported symbols are required.
  25393. always_export_symbols=$always_export_symbols_CXX
  25394. # The commands to list exported symbols.
  25395. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25396. # Symbols that should not be listed in the preloaded symbols.
  25397. exclude_expsyms=$lt_exclude_expsyms_CXX
  25398. # Symbols that must always be exported.
  25399. include_expsyms=$lt_include_expsyms_CXX
  25400. # Commands necessary for linking programs (against libraries) with templates.
  25401. prelink_cmds=$lt_prelink_cmds_CXX
  25402. # Commands necessary for finishing linking programs.
  25403. postlink_cmds=$lt_postlink_cmds_CXX
  25404. # Specify filename containing input files.
  25405. file_list_spec=$lt_file_list_spec_CXX
  25406. # How to hardcode a shared library path into an executable.
  25407. hardcode_action=$hardcode_action_CXX
  25408. # The directories searched by this compiler when creating a shared library.
  25409. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25410. # Dependencies to place before and after the objects being linked to
  25411. # create a shared library.
  25412. predep_objects=$lt_predep_objects_CXX
  25413. postdep_objects=$lt_postdep_objects_CXX
  25414. predeps=$lt_predeps_CXX
  25415. postdeps=$lt_postdeps_CXX
  25416. # The library search path used internally by the compiler when linking
  25417. # a shared library.
  25418. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25419. # ### END LIBTOOL TAG CONFIG: CXX
  25420. _LT_EOF
  25421. ;;
  25422. "sdl2_config":C) chmod a+x sdl2-config ;;
  25423. "summary":C) printf "$SUMMARY" ;;
  25424. esac
  25425. done # for ac_tag
  25426. as_fn_exit 0
  25427. _ACEOF
  25428. ac_clean_files=$ac_clean_files_save
  25429. test $ac_write_fail = 0 ||
  25430. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25431. # configure is writing to config.log, and then calls config.status.
  25432. # config.status does its own redirection, appending to config.log.
  25433. # Unfortunately, on DOS this fails, as config.log is still kept open
  25434. # by configure, so config.status won't be able to write to it; its
  25435. # output is simply discarded. So we exec the FD to /dev/null,
  25436. # effectively closing config.log, so it can be properly (re)opened and
  25437. # appended to by config.status. When coming back to configure, we
  25438. # need to make the FD available again.
  25439. if test "$no_create" != yes; then
  25440. ac_cs_success=:
  25441. ac_config_status_args=
  25442. test "$silent" = yes &&
  25443. ac_config_status_args="$ac_config_status_args --quiet"
  25444. exec 5>/dev/null
  25445. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25446. exec 5>>config.log
  25447. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25448. # would make configure fail if this is the last instruction.
  25449. $ac_cs_success || as_fn_exit 1
  25450. fi
  25451. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25453. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25454. fi