configure 885 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794
  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_misc
  774. enable_loadso
  775. enable_cpuinfo
  776. enable_assembly
  777. enable_ssemath
  778. enable_mmx
  779. enable_3dnow
  780. enable_sse
  781. enable_sse2
  782. enable_sse3
  783. enable_altivec
  784. enable_oss
  785. enable_alsa
  786. with_alsa_prefix
  787. with_alsa_inc_prefix
  788. enable_alsatest
  789. enable_alsa_shared
  790. enable_jack
  791. enable_jack_shared
  792. enable_esd
  793. with_esd_prefix
  794. with_esd_exec_prefix
  795. enable_esdtest
  796. enable_esd_shared
  797. enable_pipewire
  798. enable_pipewire_shared
  799. enable_pulseaudio
  800. enable_pulseaudio_shared
  801. enable_arts
  802. enable_arts_shared
  803. enable_nas
  804. enable_nas_shared
  805. enable_sndio
  806. enable_sndio_shared
  807. enable_fusionsound
  808. enable_fusionsound_shared
  809. enable_diskaudio
  810. enable_dummyaudio
  811. enable_libsamplerate
  812. enable_libsamplerate_shared
  813. enable_arm_simd
  814. enable_arm_neon
  815. enable_video_wayland
  816. enable_video_wayland_qt_touch
  817. enable_wayland_shared
  818. enable_libdecor
  819. enable_libdecor_shared
  820. enable_video_rpi
  821. enable_video_x11
  822. with_x
  823. enable_x11_shared
  824. enable_video_x11_xcursor
  825. enable_video_x11_xdbe
  826. enable_video_x11_xinerama
  827. enable_video_x11_xinput
  828. enable_video_x11_xfixes
  829. enable_video_x11_xrandr
  830. enable_video_x11_scrnsaver
  831. enable_video_x11_xshape
  832. enable_video_x11_vm
  833. enable_video_vivante
  834. enable_video_cocoa
  835. enable_video_metal
  836. enable_render_metal
  837. enable_video_directfb
  838. enable_directfb_shared
  839. enable_video_kmsdrm
  840. enable_kmsdrm_shared
  841. enable_video_dummy
  842. enable_video_offscreen
  843. enable_video_opengl
  844. enable_video_opengles
  845. enable_video_opengles1
  846. enable_video_opengles2
  847. enable_video_vulkan
  848. enable_libudev
  849. enable_dbus
  850. enable_ime
  851. enable_ibus
  852. enable_fcitx
  853. enable_joystick_mfi
  854. enable_pthreads
  855. enable_pthread_sem
  856. enable_directx
  857. enable_xinput
  858. enable_wasapi
  859. enable_hidapi_joystick
  860. enable_hidapi_libusb
  861. enable_clock_gettime
  862. enable_rpath
  863. enable_backgrounding_signal
  864. enable_foregrounding_signal
  865. enable_joystick_virtual
  866. enable_render_d3d
  867. enable_sdl2_config
  868. '
  869. ac_precious_vars='build_alias
  870. host_alias
  871. target_alias
  872. CC
  873. CFLAGS
  874. LDFLAGS
  875. LIBS
  876. CPPFLAGS
  877. LT_SYS_LIBRARY_PATH
  878. CPP
  879. CXX
  880. CXXFLAGS
  881. CCC
  882. CXXCPP
  883. PKG_CONFIG
  884. PKG_CONFIG_PATH
  885. PKG_CONFIG_LIBDIR
  886. JACK_CFLAGS
  887. JACK_LIBS
  888. PIPEWIRE_CFLAGS
  889. PIPEWIRE_LIBS
  890. PULSEAUDIO_CFLAGS
  891. PULSEAUDIO_LIBS
  892. FUSIONSOUND_CFLAGS
  893. FUSIONSOUND_LIBS
  894. RPI_CFLAGS
  895. RPI_LIBS
  896. XMKMF
  897. DIRECTFB_CFLAGS
  898. DIRECTFB_LIBS
  899. LIBDRM_CFLAGS
  900. LIBDRM_LIBS
  901. LIBGBM_CFLAGS
  902. LIBGBM_LIBS
  903. DBUS_CFLAGS
  904. DBUS_LIBS
  905. IBUS_CFLAGS
  906. IBUS_LIBS
  907. LIBUSB_CFLAGS
  908. LIBUSB_LIBS'
  909. # Initialize some variables set by options.
  910. ac_init_help=
  911. ac_init_version=false
  912. ac_unrecognized_opts=
  913. ac_unrecognized_sep=
  914. # The variables have the same names as the options, with
  915. # dashes changed to underlines.
  916. cache_file=/dev/null
  917. exec_prefix=NONE
  918. no_create=
  919. no_recursion=
  920. prefix=NONE
  921. program_prefix=NONE
  922. program_suffix=NONE
  923. program_transform_name=s,x,x,
  924. silent=
  925. site=
  926. srcdir=
  927. verbose=
  928. x_includes=NONE
  929. x_libraries=NONE
  930. # Installation directory options.
  931. # These are left unexpanded so users can "make install exec_prefix=/foo"
  932. # and all the variables that are supposed to be based on exec_prefix
  933. # by default will actually change.
  934. # Use braces instead of parens because sh, perl, etc. also accept them.
  935. # (The list follows the same order as the GNU Coding Standards.)
  936. bindir='${exec_prefix}/bin'
  937. sbindir='${exec_prefix}/sbin'
  938. libexecdir='${exec_prefix}/libexec'
  939. datarootdir='${prefix}/share'
  940. datadir='${datarootdir}'
  941. sysconfdir='${prefix}/etc'
  942. sharedstatedir='${prefix}/com'
  943. localstatedir='${prefix}/var'
  944. includedir='${prefix}/include'
  945. oldincludedir='/usr/include'
  946. docdir='${datarootdir}/doc/${PACKAGE}'
  947. infodir='${datarootdir}/info'
  948. htmldir='${docdir}'
  949. dvidir='${docdir}'
  950. pdfdir='${docdir}'
  951. psdir='${docdir}'
  952. libdir='${exec_prefix}/lib'
  953. localedir='${datarootdir}/locale'
  954. mandir='${datarootdir}/man'
  955. ac_prev=
  956. ac_dashdash=
  957. for ac_option
  958. do
  959. # If the previous option needs an argument, assign it.
  960. if test -n "$ac_prev"; then
  961. eval $ac_prev=\$ac_option
  962. ac_prev=
  963. continue
  964. fi
  965. case $ac_option in
  966. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  967. *=) ac_optarg= ;;
  968. *) ac_optarg=yes ;;
  969. esac
  970. # Accept the important Cygnus configure options, so we can diagnose typos.
  971. case $ac_dashdash$ac_option in
  972. --)
  973. ac_dashdash=yes ;;
  974. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  975. ac_prev=bindir ;;
  976. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  977. bindir=$ac_optarg ;;
  978. -build | --build | --buil | --bui | --bu)
  979. ac_prev=build_alias ;;
  980. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  981. build_alias=$ac_optarg ;;
  982. -cache-file | --cache-file | --cache-fil | --cache-fi \
  983. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  984. ac_prev=cache_file ;;
  985. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  986. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  987. cache_file=$ac_optarg ;;
  988. --config-cache | -C)
  989. cache_file=config.cache ;;
  990. -datadir | --datadir | --datadi | --datad)
  991. ac_prev=datadir ;;
  992. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  993. datadir=$ac_optarg ;;
  994. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  995. | --dataroo | --dataro | --datar)
  996. ac_prev=datarootdir ;;
  997. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  998. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  999. datarootdir=$ac_optarg ;;
  1000. -disable-* | --disable-*)
  1001. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1002. # Reject names that are not valid shell variable names.
  1003. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1004. as_fn_error $? "invalid feature name: $ac_useropt"
  1005. ac_useropt_orig=$ac_useropt
  1006. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007. case $ac_user_opts in
  1008. *"
  1009. "enable_$ac_useropt"
  1010. "*) ;;
  1011. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1012. ac_unrecognized_sep=', ';;
  1013. esac
  1014. eval enable_$ac_useropt=no ;;
  1015. -docdir | --docdir | --docdi | --doc | --do)
  1016. ac_prev=docdir ;;
  1017. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1018. docdir=$ac_optarg ;;
  1019. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1020. ac_prev=dvidir ;;
  1021. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1022. dvidir=$ac_optarg ;;
  1023. -enable-* | --enable-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid feature name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "enable_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval enable_$ac_useropt=\$ac_optarg ;;
  1038. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1039. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1040. | --exec | --exe | --ex)
  1041. ac_prev=exec_prefix ;;
  1042. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1043. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1044. | --exec=* | --exe=* | --ex=*)
  1045. exec_prefix=$ac_optarg ;;
  1046. -gas | --gas | --ga | --g)
  1047. # Obsolete; use --with-gas.
  1048. with_gas=yes ;;
  1049. -help | --help | --hel | --he | -h)
  1050. ac_init_help=long ;;
  1051. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1052. ac_init_help=recursive ;;
  1053. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1054. ac_init_help=short ;;
  1055. -host | --host | --hos | --ho)
  1056. ac_prev=host_alias ;;
  1057. -host=* | --host=* | --hos=* | --ho=*)
  1058. host_alias=$ac_optarg ;;
  1059. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1060. ac_prev=htmldir ;;
  1061. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1062. | --ht=*)
  1063. htmldir=$ac_optarg ;;
  1064. -includedir | --includedir | --includedi | --included | --include \
  1065. | --includ | --inclu | --incl | --inc)
  1066. ac_prev=includedir ;;
  1067. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1068. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1069. includedir=$ac_optarg ;;
  1070. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1071. ac_prev=infodir ;;
  1072. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1073. infodir=$ac_optarg ;;
  1074. -libdir | --libdir | --libdi | --libd)
  1075. ac_prev=libdir ;;
  1076. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1077. libdir=$ac_optarg ;;
  1078. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1079. | --libexe | --libex | --libe)
  1080. ac_prev=libexecdir ;;
  1081. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1082. | --libexe=* | --libex=* | --libe=*)
  1083. libexecdir=$ac_optarg ;;
  1084. -localedir | --localedir | --localedi | --localed | --locale)
  1085. ac_prev=localedir ;;
  1086. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1087. localedir=$ac_optarg ;;
  1088. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1089. | --localstate | --localstat | --localsta | --localst | --locals)
  1090. ac_prev=localstatedir ;;
  1091. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1092. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1093. localstatedir=$ac_optarg ;;
  1094. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1095. ac_prev=mandir ;;
  1096. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1097. mandir=$ac_optarg ;;
  1098. -nfp | --nfp | --nf)
  1099. # Obsolete; use --without-fp.
  1100. with_fp=no ;;
  1101. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1102. | --no-cr | --no-c | -n)
  1103. no_create=yes ;;
  1104. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1105. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1106. no_recursion=yes ;;
  1107. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1108. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1109. | --oldin | --oldi | --old | --ol | --o)
  1110. ac_prev=oldincludedir ;;
  1111. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1112. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1113. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1114. oldincludedir=$ac_optarg ;;
  1115. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1116. ac_prev=prefix ;;
  1117. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1118. prefix=$ac_optarg ;;
  1119. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1120. | --program-pre | --program-pr | --program-p)
  1121. ac_prev=program_prefix ;;
  1122. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1123. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1124. program_prefix=$ac_optarg ;;
  1125. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1126. | --program-suf | --program-su | --program-s)
  1127. ac_prev=program_suffix ;;
  1128. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1129. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1130. program_suffix=$ac_optarg ;;
  1131. -program-transform-name | --program-transform-name \
  1132. | --program-transform-nam | --program-transform-na \
  1133. | --program-transform-n | --program-transform- \
  1134. | --program-transform | --program-transfor \
  1135. | --program-transfo | --program-transf \
  1136. | --program-trans | --program-tran \
  1137. | --progr-tra | --program-tr | --program-t)
  1138. ac_prev=program_transform_name ;;
  1139. -program-transform-name=* | --program-transform-name=* \
  1140. | --program-transform-nam=* | --program-transform-na=* \
  1141. | --program-transform-n=* | --program-transform-=* \
  1142. | --program-transform=* | --program-transfor=* \
  1143. | --program-transfo=* | --program-transf=* \
  1144. | --program-trans=* | --program-tran=* \
  1145. | --progr-tra=* | --program-tr=* | --program-t=*)
  1146. program_transform_name=$ac_optarg ;;
  1147. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1148. ac_prev=pdfdir ;;
  1149. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1150. pdfdir=$ac_optarg ;;
  1151. -psdir | --psdir | --psdi | --psd | --ps)
  1152. ac_prev=psdir ;;
  1153. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1154. psdir=$ac_optarg ;;
  1155. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1156. | -silent | --silent | --silen | --sile | --sil)
  1157. silent=yes ;;
  1158. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1159. ac_prev=sbindir ;;
  1160. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1161. | --sbi=* | --sb=*)
  1162. sbindir=$ac_optarg ;;
  1163. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1164. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1165. | --sharedst | --shareds | --shared | --share | --shar \
  1166. | --sha | --sh)
  1167. ac_prev=sharedstatedir ;;
  1168. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1169. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1170. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1171. | --sha=* | --sh=*)
  1172. sharedstatedir=$ac_optarg ;;
  1173. -site | --site | --sit)
  1174. ac_prev=site ;;
  1175. -site=* | --site=* | --sit=*)
  1176. site=$ac_optarg ;;
  1177. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1178. ac_prev=srcdir ;;
  1179. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1180. srcdir=$ac_optarg ;;
  1181. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1182. | --syscon | --sysco | --sysc | --sys | --sy)
  1183. ac_prev=sysconfdir ;;
  1184. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1185. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1186. sysconfdir=$ac_optarg ;;
  1187. -target | --target | --targe | --targ | --tar | --ta | --t)
  1188. ac_prev=target_alias ;;
  1189. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1190. target_alias=$ac_optarg ;;
  1191. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1192. verbose=yes ;;
  1193. -version | --version | --versio | --versi | --vers | -V)
  1194. ac_init_version=: ;;
  1195. -with-* | --with-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid package name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "with_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval with_$ac_useropt=\$ac_optarg ;;
  1210. -without-* | --without-*)
  1211. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1214. as_fn_error $? "invalid package name: $ac_useropt"
  1215. ac_useropt_orig=$ac_useropt
  1216. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1217. case $ac_user_opts in
  1218. *"
  1219. "with_$ac_useropt"
  1220. "*) ;;
  1221. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1222. ac_unrecognized_sep=', ';;
  1223. esac
  1224. eval with_$ac_useropt=no ;;
  1225. --x)
  1226. # Obsolete; use --with-x.
  1227. with_x=yes ;;
  1228. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1229. | --x-incl | --x-inc | --x-in | --x-i)
  1230. ac_prev=x_includes ;;
  1231. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1232. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1233. x_includes=$ac_optarg ;;
  1234. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1235. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1236. ac_prev=x_libraries ;;
  1237. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1238. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1239. x_libraries=$ac_optarg ;;
  1240. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1241. Try \`$0 --help' for more information"
  1242. ;;
  1243. *=*)
  1244. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1245. # Reject names that are not valid shell variable names.
  1246. case $ac_envvar in #(
  1247. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1248. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1249. esac
  1250. eval $ac_envvar=\$ac_optarg
  1251. export $ac_envvar ;;
  1252. *)
  1253. # FIXME: should be removed in autoconf 3.0.
  1254. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1255. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1256. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1257. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1258. ;;
  1259. esac
  1260. done
  1261. if test -n "$ac_prev"; then
  1262. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1263. as_fn_error $? "missing argument to $ac_option"
  1264. fi
  1265. if test -n "$ac_unrecognized_opts"; then
  1266. case $enable_option_checking in
  1267. no) ;;
  1268. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1269. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1270. esac
  1271. fi
  1272. # Check all directory arguments for consistency.
  1273. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1274. datadir sysconfdir sharedstatedir localstatedir includedir \
  1275. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1276. libdir localedir mandir
  1277. do
  1278. eval ac_val=\$$ac_var
  1279. # Remove trailing slashes.
  1280. case $ac_val in
  1281. */ )
  1282. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1283. eval $ac_var=\$ac_val;;
  1284. esac
  1285. # Be sure to have absolute directory names.
  1286. case $ac_val in
  1287. [\\/$]* | ?:[\\/]* ) continue;;
  1288. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1289. esac
  1290. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1291. done
  1292. # There might be people who depend on the old broken behavior: `$host'
  1293. # used to hold the argument of --host etc.
  1294. # FIXME: To remove some day.
  1295. build=$build_alias
  1296. host=$host_alias
  1297. target=$target_alias
  1298. # FIXME: To remove some day.
  1299. if test "x$host_alias" != x; then
  1300. if test "x$build_alias" = x; then
  1301. cross_compiling=maybe
  1302. elif test "x$build_alias" != "x$host_alias"; then
  1303. cross_compiling=yes
  1304. fi
  1305. fi
  1306. ac_tool_prefix=
  1307. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1308. test "$silent" = yes && exec 6>/dev/null
  1309. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1310. ac_ls_di=`ls -di .` &&
  1311. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1312. as_fn_error $? "working directory cannot be determined"
  1313. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1314. as_fn_error $? "pwd does not report name of working directory"
  1315. # Find the source files, if location was not specified.
  1316. if test -z "$srcdir"; then
  1317. ac_srcdir_defaulted=yes
  1318. # Try the directory containing this script, then the parent directory.
  1319. ac_confdir=`$as_dirname -- "$as_myself" ||
  1320. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1321. X"$as_myself" : 'X\(//\)[^/]' \| \
  1322. X"$as_myself" : 'X\(//\)$' \| \
  1323. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1324. $as_echo X"$as_myself" |
  1325. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1326. s//\1/
  1327. q
  1328. }
  1329. /^X\(\/\/\)[^/].*/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\/\)$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\).*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. s/.*/./; q'`
  1342. srcdir=$ac_confdir
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. srcdir=..
  1345. fi
  1346. else
  1347. ac_srcdir_defaulted=no
  1348. fi
  1349. if test ! -r "$srcdir/$ac_unique_file"; then
  1350. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1351. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1352. fi
  1353. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1354. ac_abs_confdir=`(
  1355. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1356. pwd)`
  1357. # When building in place, set srcdir=.
  1358. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1359. srcdir=.
  1360. fi
  1361. # Remove unnecessary trailing slashes from srcdir.
  1362. # Double slashes in file names in object file debugging info
  1363. # mess up M-x gdb in Emacs.
  1364. case $srcdir in
  1365. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1366. esac
  1367. for ac_var in $ac_precious_vars; do
  1368. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1369. eval ac_env_${ac_var}_value=\$${ac_var}
  1370. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1371. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1372. done
  1373. #
  1374. # Report the --help message.
  1375. #
  1376. if test "$ac_init_help" = "long"; then
  1377. # Omit some internal or obsolete options to make the list less imposing.
  1378. # This message is too long to be a string in the A/UX 3.1 sh.
  1379. cat <<_ACEOF
  1380. \`configure' configures this package to adapt to many kinds of systems.
  1381. Usage: $0 [OPTION]... [VAR=VALUE]...
  1382. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1383. VAR=VALUE. See below for descriptions of some of the useful variables.
  1384. Defaults for the options are specified in brackets.
  1385. Configuration:
  1386. -h, --help display this help and exit
  1387. --help=short display options specific to this package
  1388. --help=recursive display the short help of all the included packages
  1389. -V, --version display version information and exit
  1390. -q, --quiet, --silent do not print \`checking ...' messages
  1391. --cache-file=FILE cache test results in FILE [disabled]
  1392. -C, --config-cache alias for \`--cache-file=config.cache'
  1393. -n, --no-create do not create output files
  1394. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1395. Installation directories:
  1396. --prefix=PREFIX install architecture-independent files in PREFIX
  1397. [$ac_default_prefix]
  1398. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1399. [PREFIX]
  1400. By default, \`make install' will install all the files in
  1401. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1402. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1403. for instance \`--prefix=\$HOME'.
  1404. For better control, use the options below.
  1405. Fine tuning of the installation directories:
  1406. --bindir=DIR user executables [EPREFIX/bin]
  1407. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1408. --libexecdir=DIR program executables [EPREFIX/libexec]
  1409. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1410. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1411. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1412. --libdir=DIR object code libraries [EPREFIX/lib]
  1413. --includedir=DIR C header files [PREFIX/include]
  1414. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1415. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1416. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1417. --infodir=DIR info documentation [DATAROOTDIR/info]
  1418. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1419. --mandir=DIR man documentation [DATAROOTDIR/man]
  1420. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1421. --htmldir=DIR html documentation [DOCDIR]
  1422. --dvidir=DIR dvi documentation [DOCDIR]
  1423. --pdfdir=DIR pdf documentation [DOCDIR]
  1424. --psdir=DIR ps documentation [DOCDIR]
  1425. _ACEOF
  1426. cat <<\_ACEOF
  1427. X features:
  1428. --x-includes=DIR X include files are in DIR
  1429. --x-libraries=DIR X library files are in DIR
  1430. System types:
  1431. --build=BUILD configure for building on BUILD [guessed]
  1432. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1433. _ACEOF
  1434. fi
  1435. if test -n "$ac_init_help"; then
  1436. cat <<\_ACEOF
  1437. Optional Features:
  1438. --disable-option-checking ignore unrecognized --enable/--with options
  1439. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1440. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1441. --enable-shared[=PKGS] build shared libraries [default=yes]
  1442. --enable-static[=PKGS] build static libraries [default=yes]
  1443. --enable-fast-install[=PKGS]
  1444. optimize for fast installation [default=yes]
  1445. --disable-libtool-lock avoid locking (might break parallel builds)
  1446. --enable-assertions Enable internal sanity checks
  1447. (auto/disabled/release/enabled/paranoid)
  1448. [default=auto]
  1449. --enable-dependency-tracking
  1450. Use gcc -MMD -MT dependency tracking [default=yes]
  1451. --enable-libc Use the system C library [default=yes]
  1452. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1453. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1454. --enable-audio Enable the audio subsystem [default=yes]
  1455. --enable-video Enable the video subsystem [default=yes]
  1456. --enable-render Enable the render subsystem [default=yes]
  1457. --enable-events Enable the events subsystem [default=yes]
  1458. --enable-joystick Enable the joystick subsystem [default=yes]
  1459. --enable-haptic Enable the haptic (force feedback) subsystem
  1460. [default=yes]
  1461. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1462. --enable-sensor Enable the sensor subsystem [default=yes]
  1463. --enable-power Enable the power subsystem [default=yes]
  1464. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1465. --enable-threads Enable the threading subsystem [default=yes]
  1466. --enable-timers Enable the timer subsystem [default=yes]
  1467. --enable-file Enable the file subsystem [default=yes]
  1468. --enable-misc Enable the misc subsystem [default=yes]
  1469. --enable-loadso Enable the shared object loading subsystem
  1470. [default=yes]
  1471. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1472. --enable-assembly Enable assembly routines [default=yes]
  1473. --enable-ssemath Allow GCC to use SSE floating point math
  1474. [default=maybe]
  1475. --enable-mmx use MMX assembly routines [default=yes]
  1476. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1477. --enable-sse use SSE assembly routines [default=yes]
  1478. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1479. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1480. --enable-altivec use Altivec assembly routines [default=yes]
  1481. --enable-oss support the OSS audio API [default=maybe]
  1482. --enable-alsa support the ALSA audio API [default=yes]
  1483. --disable-alsatest Do not try to compile and run a test Alsa program
  1484. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1485. --enable-jack use JACK audio [default=yes]
  1486. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1487. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1488. --disable-esdtest Do not try to compile and run a test ESD program
  1489. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1490. --enable-pipewire use Pipewire audio [default=yes]
  1491. --enable-pipewire-shared
  1492. dynamically load Pipewire support [default=yes]
  1493. --enable-pulseaudio use PulseAudio [default=yes]
  1494. --enable-pulseaudio-shared
  1495. dynamically load PulseAudio support [default=yes]
  1496. --enable-arts support the Analog Real Time Synthesizer
  1497. [default=yes]
  1498. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1499. --enable-nas support the NAS audio API [default=yes]
  1500. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1501. --enable-sndio support the sndio audio API [default=yes]
  1502. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1503. --enable-fusionsound use FusionSound audio driver [default=no]
  1504. --enable-fusionsound-shared
  1505. dynamically load fusionsound audio support
  1506. [default=yes]
  1507. --enable-diskaudio support the disk writer audio driver [default=yes]
  1508. --enable-dummyaudio support the dummy audio driver [default=yes]
  1509. --enable-libsamplerate use libsamplerate for audio rate conversion
  1510. [default=yes]
  1511. --enable-libsamplerate-shared
  1512. dynamically load libsamplerate [default=yes]
  1513. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1514. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1515. --enable-video-wayland use Wayland video driver [default=yes]
  1516. --enable-video-wayland-qt-touch
  1517. QtWayland server support for Wayland video driver
  1518. [default=yes]
  1519. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1520. --enable-libdecor use libdecor for Wayland client-side decorations
  1521. [default=yes]
  1522. --enable-libdecor-shared
  1523. dynamically load libdecor [default=yes]
  1524. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1525. --enable-video-x11 use X11 video driver [default=yes]
  1526. --enable-x11-shared dynamically load X11 support [default=maybe]
  1527. --enable-video-x11-xcursor
  1528. enable X11 Xcursor support [default=yes]
  1529. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1530. --enable-video-x11-xinerama
  1531. enable X11 Xinerama support [default=yes]
  1532. --enable-video-x11-xinput
  1533. enable X11 XInput extension for manymouse, tablets,
  1534. etc [default=yes]
  1535. --enable-video-x11-xfixes
  1536. enable X11 Xfixes support [default=yes]
  1537. --enable-video-x11-xrandr
  1538. enable X11 Xrandr extension for fullscreen
  1539. [default=yes]
  1540. --enable-video-x11-scrnsaver
  1541. enable X11 screensaver extension [default=yes]
  1542. --enable-video-x11-xshape
  1543. enable X11 XShape support [default=yes]
  1544. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1545. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1546. --enable-video-cocoa use Cocoa video driver [default=yes]
  1547. --enable-video-metal include Metal support [default=yes]
  1548. --enable-render-metal enable the Metal render driver [default=yes]
  1549. --enable-video-directfb use DirectFB video driver [default=no]
  1550. --enable-directfb-shared
  1551. dynamically load directfb support [default=yes]
  1552. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1553. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1554. --enable-video-dummy use dummy video driver [default=yes]
  1555. --enable-video-offscreen
  1556. use offscreen video driver [default=no]
  1557. --enable-video-opengl include OpenGL support [default=yes]
  1558. --enable-video-opengles include OpenGL ES support [default=yes]
  1559. --enable-video-opengles1
  1560. include OpenGL ES 1.1 support [default=yes]
  1561. --enable-video-opengles2
  1562. include OpenGL ES 2.0 support [default=yes]
  1563. --enable-video-vulkan include Vulkan support [default=yes]
  1564. --enable-libudev enable libudev support [default=yes]
  1565. --enable-dbus enable D-Bus support [default=yes]
  1566. --enable-ime enable IME support [default=yes]
  1567. --enable-ibus enable IBus support [default=yes]
  1568. --enable-fcitx enable fcitx support [default=yes]
  1569. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1570. --enable-pthreads use POSIX threads for multi-threading
  1571. [default=maybe]
  1572. --enable-pthread-sem use pthread semaphores [default=maybe]
  1573. --enable-directx use DirectX for Windows audio/video [default=yes]
  1574. --enable-xinput use Xinput for Windows [default=yes]
  1575. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1576. --enable-hidapi-joystick
  1577. use HIDAPI for low level joystick drivers
  1578. [default=yes]
  1579. --enable-hidapi-libusb use libusb for low level joystick drivers
  1580. [default=maybe]
  1581. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1582. UNIX [default=yes]
  1583. --enable-rpath use an rpath when linking SDL [default=yes]
  1584. --enable-backgrounding-signal
  1585. number to use for magic backgrounding signal or 'no'
  1586. [default=no]
  1587. --enable-foregrounding-signal
  1588. number to use for magic foregrounding signal or 'no'
  1589. [default=no]
  1590. --enable-joystick-virtual
  1591. enable virtual joystick APIs [default=yes]
  1592. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1593. --enable-sdl2-config Install sdl2-config [default=yes]
  1594. Optional Packages:
  1595. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1596. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1597. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1598. both]
  1599. --with-aix-soname=aix|svr4|both
  1600. shared library versioning (aka "SONAME") variant to
  1601. provide on AIX, [default=aix].
  1602. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1603. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1604. compiler's sysroot if not specified).
  1605. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1606. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1607. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1608. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1609. --with-x use the X Window System
  1610. Some influential environment variables:
  1611. CC C compiler command
  1612. CFLAGS C compiler flags
  1613. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1614. nonstandard directory <lib dir>
  1615. LIBS libraries to pass to the linker, e.g. -l<library>
  1616. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1617. you have headers in a nonstandard directory <include dir>
  1618. LT_SYS_LIBRARY_PATH
  1619. User-defined run-time library search path.
  1620. CPP C preprocessor
  1621. CXX C++ compiler command
  1622. CXXFLAGS C++ compiler flags
  1623. CXXCPP C++ preprocessor
  1624. PKG_CONFIG path to pkg-config utility
  1625. PKG_CONFIG_PATH
  1626. directories to add to pkg-config's search path
  1627. PKG_CONFIG_LIBDIR
  1628. path overriding pkg-config's built-in search path
  1629. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1630. JACK_LIBS linker flags for JACK, overriding pkg-config
  1631. PIPEWIRE_CFLAGS
  1632. C compiler flags for PIPEWIRE, overriding pkg-config
  1633. PIPEWIRE_LIBS
  1634. linker flags for PIPEWIRE, overriding pkg-config
  1635. PULSEAUDIO_CFLAGS
  1636. C compiler flags for PULSEAUDIO, overriding pkg-config
  1637. PULSEAUDIO_LIBS
  1638. linker flags for PULSEAUDIO, overriding pkg-config
  1639. FUSIONSOUND_CFLAGS
  1640. C compiler flags for FUSIONSOUND, overriding pkg-config
  1641. FUSIONSOUND_LIBS
  1642. linker flags for FUSIONSOUND, overriding pkg-config
  1643. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1644. RPI_LIBS linker flags for RPI, overriding pkg-config
  1645. XMKMF Path to xmkmf, Makefile generator for X Window System
  1646. DIRECTFB_CFLAGS
  1647. C compiler flags for DIRECTFB, overriding pkg-config
  1648. DIRECTFB_LIBS
  1649. linker flags for DIRECTFB, overriding pkg-config
  1650. LIBDRM_CFLAGS
  1651. C compiler flags for LIBDRM, overriding pkg-config
  1652. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1653. LIBGBM_CFLAGS
  1654. C compiler flags for LIBGBM, overriding pkg-config
  1655. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1656. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1657. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1658. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1659. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1660. LIBUSB_CFLAGS
  1661. C compiler flags for LIBUSB, overriding pkg-config
  1662. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1663. Use these variables to override the choices made by `configure' or to help
  1664. it to find libraries and programs with nonstandard names/locations.
  1665. Report bugs to the package provider.
  1666. _ACEOF
  1667. ac_status=$?
  1668. fi
  1669. if test "$ac_init_help" = "recursive"; then
  1670. # If there are subdirs, report their specific --help.
  1671. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1672. test -d "$ac_dir" ||
  1673. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1674. continue
  1675. ac_builddir=.
  1676. case "$ac_dir" in
  1677. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1678. *)
  1679. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1680. # A ".." for each directory in $ac_dir_suffix.
  1681. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1682. case $ac_top_builddir_sub in
  1683. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1684. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1685. esac ;;
  1686. esac
  1687. ac_abs_top_builddir=$ac_pwd
  1688. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1689. # for backward compatibility:
  1690. ac_top_builddir=$ac_top_build_prefix
  1691. case $srcdir in
  1692. .) # We are building in place.
  1693. ac_srcdir=.
  1694. ac_top_srcdir=$ac_top_builddir_sub
  1695. ac_abs_top_srcdir=$ac_pwd ;;
  1696. [\\/]* | ?:[\\/]* ) # Absolute name.
  1697. ac_srcdir=$srcdir$ac_dir_suffix;
  1698. ac_top_srcdir=$srcdir
  1699. ac_abs_top_srcdir=$srcdir ;;
  1700. *) # Relative name.
  1701. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1702. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1703. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1704. esac
  1705. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1706. cd "$ac_dir" || { ac_status=$?; continue; }
  1707. # Check for guested configure.
  1708. if test -f "$ac_srcdir/configure.gnu"; then
  1709. echo &&
  1710. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1711. elif test -f "$ac_srcdir/configure"; then
  1712. echo &&
  1713. $SHELL "$ac_srcdir/configure" --help=recursive
  1714. else
  1715. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1716. fi || ac_status=$?
  1717. cd "$ac_pwd" || { ac_status=$?; break; }
  1718. done
  1719. fi
  1720. test -n "$ac_init_help" && exit $ac_status
  1721. if $ac_init_version; then
  1722. cat <<\_ACEOF
  1723. configure
  1724. generated by GNU Autoconf 2.69
  1725. Copyright (C) 2012 Free Software Foundation, Inc.
  1726. This configure script is free software; the Free Software Foundation
  1727. gives unlimited permission to copy, distribute and modify it.
  1728. _ACEOF
  1729. exit
  1730. fi
  1731. ## ------------------------ ##
  1732. ## Autoconf initialization. ##
  1733. ## ------------------------ ##
  1734. # ac_fn_c_try_compile LINENO
  1735. # --------------------------
  1736. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1737. ac_fn_c_try_compile ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. rm -f conftest.$ac_objext
  1741. if { { ac_try="$ac_compile"
  1742. case "(($ac_try" in
  1743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744. *) ac_try_echo=$ac_try;;
  1745. esac
  1746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1747. $as_echo "$ac_try_echo"; } >&5
  1748. (eval "$ac_compile") 2>conftest.err
  1749. ac_status=$?
  1750. if test -s conftest.err; then
  1751. grep -v '^ *+' conftest.err >conftest.er1
  1752. cat conftest.er1 >&5
  1753. mv -f conftest.er1 conftest.err
  1754. fi
  1755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756. test $ac_status = 0; } && {
  1757. test -z "$ac_c_werror_flag" ||
  1758. test ! -s conftest.err
  1759. } && test -s conftest.$ac_objext; then :
  1760. ac_retval=0
  1761. else
  1762. $as_echo "$as_me: failed program was:" >&5
  1763. sed 's/^/| /' conftest.$ac_ext >&5
  1764. ac_retval=1
  1765. fi
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. as_fn_set_status $ac_retval
  1768. } # ac_fn_c_try_compile
  1769. # ac_fn_c_try_link LINENO
  1770. # -----------------------
  1771. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1772. ac_fn_c_try_link ()
  1773. {
  1774. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1775. rm -f conftest.$ac_objext conftest$ac_exeext
  1776. if { { ac_try="$ac_link"
  1777. case "(($ac_try" in
  1778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1779. *) ac_try_echo=$ac_try;;
  1780. esac
  1781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1782. $as_echo "$ac_try_echo"; } >&5
  1783. (eval "$ac_link") 2>conftest.err
  1784. ac_status=$?
  1785. if test -s conftest.err; then
  1786. grep -v '^ *+' conftest.err >conftest.er1
  1787. cat conftest.er1 >&5
  1788. mv -f conftest.er1 conftest.err
  1789. fi
  1790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; } && {
  1792. test -z "$ac_c_werror_flag" ||
  1793. test ! -s conftest.err
  1794. } && test -s conftest$ac_exeext && {
  1795. test "$cross_compiling" = yes ||
  1796. test -x conftest$ac_exeext
  1797. }; then :
  1798. ac_retval=0
  1799. else
  1800. $as_echo "$as_me: failed program was:" >&5
  1801. sed 's/^/| /' conftest.$ac_ext >&5
  1802. ac_retval=1
  1803. fi
  1804. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1805. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1806. # interfere with the next link command; also delete a directory that is
  1807. # left behind by Apple's compiler. We do this before executing the actions.
  1808. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_c_try_link
  1812. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1813. # -------------------------------------------------------
  1814. # Tests whether HEADER exists and can be compiled using the include files in
  1815. # INCLUDES, setting the cache variable VAR accordingly.
  1816. ac_fn_c_check_header_compile ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1820. $as_echo_n "checking for $2... " >&6; }
  1821. if eval \${$3+:} false; then :
  1822. $as_echo_n "(cached) " >&6
  1823. else
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. eval "$3=yes"
  1831. else
  1832. eval "$3=no"
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. fi
  1836. eval ac_res=\$$3
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1838. $as_echo "$ac_res" >&6; }
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. } # ac_fn_c_check_header_compile
  1841. # ac_fn_c_try_cpp LINENO
  1842. # ----------------------
  1843. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1844. ac_fn_c_try_cpp ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. $as_echo "$ac_try_echo"; } >&5
  1854. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } > conftest.i && {
  1863. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. }; then :
  1866. ac_retval=0
  1867. else
  1868. $as_echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. ac_retval=1
  1871. fi
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_cpp
  1875. # ac_fn_c_try_run LINENO
  1876. # ----------------------
  1877. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1878. # that executables *can* be run.
  1879. ac_fn_c_try_run ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. if { { ac_try="$ac_link"
  1883. case "(($ac_try" in
  1884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1885. *) ac_try_echo=$ac_try;;
  1886. esac
  1887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1888. $as_echo "$ac_try_echo"; } >&5
  1889. (eval "$ac_link") 2>&5
  1890. ac_status=$?
  1891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1892. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1893. { { case "(($ac_try" in
  1894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1895. *) ac_try_echo=$ac_try;;
  1896. esac
  1897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1898. $as_echo "$ac_try_echo"; } >&5
  1899. (eval "$ac_try") 2>&5
  1900. ac_status=$?
  1901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1902. test $ac_status = 0; }; }; then :
  1903. ac_retval=0
  1904. else
  1905. $as_echo "$as_me: program exited with status $ac_status" >&5
  1906. $as_echo "$as_me: failed program was:" >&5
  1907. sed 's/^/| /' conftest.$ac_ext >&5
  1908. ac_retval=$ac_status
  1909. fi
  1910. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1911. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1912. as_fn_set_status $ac_retval
  1913. } # ac_fn_c_try_run
  1914. # ac_fn_c_check_func LINENO FUNC VAR
  1915. # ----------------------------------
  1916. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1917. ac_fn_c_check_func ()
  1918. {
  1919. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. else
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1928. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1929. #define $2 innocuous_$2
  1930. /* System header to define __stub macros and hopefully few prototypes,
  1931. which can conflict with char $2 (); below.
  1932. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1933. <limits.h> exists even on freestanding compilers. */
  1934. #ifdef __STDC__
  1935. # include <limits.h>
  1936. #else
  1937. # include <assert.h>
  1938. #endif
  1939. #undef $2
  1940. /* Override any GCC internal prototype to avoid an error.
  1941. Use char because int might match the return type of a GCC
  1942. builtin and then its argument prototype would still apply. */
  1943. #ifdef __cplusplus
  1944. extern "C"
  1945. #endif
  1946. char $2 ();
  1947. /* The GNU C library defines this for functions which it implements
  1948. to always fail with ENOSYS. Some functions are actually named
  1949. something starting with __ and the normal name is an alias. */
  1950. #if defined __stub_$2 || defined __stub___$2
  1951. choke me
  1952. #endif
  1953. int
  1954. main ()
  1955. {
  1956. return $2 ();
  1957. ;
  1958. return 0;
  1959. }
  1960. _ACEOF
  1961. if ac_fn_c_try_link "$LINENO"; then :
  1962. eval "$3=yes"
  1963. else
  1964. eval "$3=no"
  1965. fi
  1966. rm -f core conftest.err conftest.$ac_objext \
  1967. conftest$ac_exeext conftest.$ac_ext
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } # ac_fn_c_check_func
  1974. # ac_fn_cxx_try_compile LINENO
  1975. # ----------------------------
  1976. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1977. ac_fn_cxx_try_compile ()
  1978. {
  1979. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1980. rm -f conftest.$ac_objext
  1981. if { { ac_try="$ac_compile"
  1982. case "(($ac_try" in
  1983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1984. *) ac_try_echo=$ac_try;;
  1985. esac
  1986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1987. $as_echo "$ac_try_echo"; } >&5
  1988. (eval "$ac_compile") 2>conftest.err
  1989. ac_status=$?
  1990. if test -s conftest.err; then
  1991. grep -v '^ *+' conftest.err >conftest.er1
  1992. cat conftest.er1 >&5
  1993. mv -f conftest.er1 conftest.err
  1994. fi
  1995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1996. test $ac_status = 0; } && {
  1997. test -z "$ac_cxx_werror_flag" ||
  1998. test ! -s conftest.err
  1999. } && test -s conftest.$ac_objext; then :
  2000. ac_retval=0
  2001. else
  2002. $as_echo "$as_me: failed program was:" >&5
  2003. sed 's/^/| /' conftest.$ac_ext >&5
  2004. ac_retval=1
  2005. fi
  2006. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2007. as_fn_set_status $ac_retval
  2008. } # ac_fn_cxx_try_compile
  2009. # ac_fn_cxx_try_cpp LINENO
  2010. # ------------------------
  2011. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2012. ac_fn_cxx_try_cpp ()
  2013. {
  2014. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2015. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2016. case "(($ac_try" in
  2017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2018. *) ac_try_echo=$ac_try;;
  2019. esac
  2020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2021. $as_echo "$ac_try_echo"; } >&5
  2022. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2023. ac_status=$?
  2024. if test -s conftest.err; then
  2025. grep -v '^ *+' conftest.err >conftest.er1
  2026. cat conftest.er1 >&5
  2027. mv -f conftest.er1 conftest.err
  2028. fi
  2029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2030. test $ac_status = 0; } > conftest.i && {
  2031. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2032. test ! -s conftest.err
  2033. }; then :
  2034. ac_retval=0
  2035. else
  2036. $as_echo "$as_me: failed program was:" >&5
  2037. sed 's/^/| /' conftest.$ac_ext >&5
  2038. ac_retval=1
  2039. fi
  2040. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2041. as_fn_set_status $ac_retval
  2042. } # ac_fn_cxx_try_cpp
  2043. # ac_fn_cxx_try_link LINENO
  2044. # -------------------------
  2045. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2046. ac_fn_cxx_try_link ()
  2047. {
  2048. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2049. rm -f conftest.$ac_objext conftest$ac_exeext
  2050. if { { ac_try="$ac_link"
  2051. case "(($ac_try" in
  2052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2053. *) ac_try_echo=$ac_try;;
  2054. esac
  2055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2056. $as_echo "$ac_try_echo"; } >&5
  2057. (eval "$ac_link") 2>conftest.err
  2058. ac_status=$?
  2059. if test -s conftest.err; then
  2060. grep -v '^ *+' conftest.err >conftest.er1
  2061. cat conftest.er1 >&5
  2062. mv -f conftest.er1 conftest.err
  2063. fi
  2064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2065. test $ac_status = 0; } && {
  2066. test -z "$ac_cxx_werror_flag" ||
  2067. test ! -s conftest.err
  2068. } && test -s conftest$ac_exeext && {
  2069. test "$cross_compiling" = yes ||
  2070. test -x conftest$ac_exeext
  2071. }; then :
  2072. ac_retval=0
  2073. else
  2074. $as_echo "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2079. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2080. # interfere with the next link command; also delete a directory that is
  2081. # left behind by Apple's compiler. We do this before executing the actions.
  2082. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. as_fn_set_status $ac_retval
  2085. } # ac_fn_cxx_try_link
  2086. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2087. # -------------------------------------------------------
  2088. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2089. # the include files in INCLUDES and setting the cache variable VAR
  2090. # accordingly.
  2091. ac_fn_c_check_header_mongrel ()
  2092. {
  2093. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2094. if eval \${$3+:} false; then :
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2096. $as_echo_n "checking for $2... " >&6; }
  2097. if eval \${$3+:} false; then :
  2098. $as_echo_n "(cached) " >&6
  2099. fi
  2100. eval ac_res=\$$3
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2102. $as_echo "$ac_res" >&6; }
  2103. else
  2104. # Is the header compilable?
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2106. $as_echo_n "checking $2 usability... " >&6; }
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. $4
  2110. #include <$2>
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"; then :
  2113. ac_header_compiler=yes
  2114. else
  2115. ac_header_compiler=no
  2116. fi
  2117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2119. $as_echo "$ac_header_compiler" >&6; }
  2120. # Is the header present?
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2122. $as_echo_n "checking $2 presence... " >&6; }
  2123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2124. /* end confdefs.h. */
  2125. #include <$2>
  2126. _ACEOF
  2127. if ac_fn_c_try_cpp "$LINENO"; then :
  2128. ac_header_preproc=yes
  2129. else
  2130. ac_header_preproc=no
  2131. fi
  2132. rm -f conftest.err conftest.i conftest.$ac_ext
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2134. $as_echo "$ac_header_preproc" >&6; }
  2135. # So? What about this header?
  2136. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2137. yes:no: )
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2139. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2141. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2142. ;;
  2143. no:yes:* )
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2145. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2147. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2149. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2151. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2153. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2154. ;;
  2155. esac
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2157. $as_echo_n "checking for $2... " >&6; }
  2158. if eval \${$3+:} false; then :
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. eval "$3=\$ac_header_compiler"
  2162. fi
  2163. eval ac_res=\$$3
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2165. $as_echo "$ac_res" >&6; }
  2166. fi
  2167. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2168. } # ac_fn_c_check_header_mongrel
  2169. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2170. # -------------------------------------------
  2171. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2172. # variable VAR accordingly.
  2173. ac_fn_c_check_type ()
  2174. {
  2175. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2177. $as_echo_n "checking for $2... " >&6; }
  2178. if eval \${$3+:} false; then :
  2179. $as_echo_n "(cached) " >&6
  2180. else
  2181. eval "$3=no"
  2182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2183. /* end confdefs.h. */
  2184. $4
  2185. int
  2186. main ()
  2187. {
  2188. if (sizeof ($2))
  2189. return 0;
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. if ac_fn_c_try_compile "$LINENO"; then :
  2195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2196. /* end confdefs.h. */
  2197. $4
  2198. int
  2199. main ()
  2200. {
  2201. if (sizeof (($2)))
  2202. return 0;
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_c_try_compile "$LINENO"; then :
  2208. else
  2209. eval "$3=yes"
  2210. fi
  2211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. fi
  2213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2214. fi
  2215. eval ac_res=\$$3
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2217. $as_echo "$ac_res" >&6; }
  2218. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2219. } # ac_fn_c_check_type
  2220. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2221. # ----------------------------------------------------
  2222. # Tries to find if the field MEMBER exists in type AGGR, after including
  2223. # INCLUDES, setting cache variable VAR accordingly.
  2224. ac_fn_c_check_member ()
  2225. {
  2226. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2228. $as_echo_n "checking for $2.$3... " >&6; }
  2229. if eval \${$4+:} false; then :
  2230. $as_echo_n "(cached) " >&6
  2231. else
  2232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2233. /* end confdefs.h. */
  2234. $5
  2235. int
  2236. main ()
  2237. {
  2238. static $2 ac_aggr;
  2239. if (ac_aggr.$3)
  2240. return 0;
  2241. ;
  2242. return 0;
  2243. }
  2244. _ACEOF
  2245. if ac_fn_c_try_compile "$LINENO"; then :
  2246. eval "$4=yes"
  2247. else
  2248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2249. /* end confdefs.h. */
  2250. $5
  2251. int
  2252. main ()
  2253. {
  2254. static $2 ac_aggr;
  2255. if (sizeof ac_aggr.$3)
  2256. return 0;
  2257. ;
  2258. return 0;
  2259. }
  2260. _ACEOF
  2261. if ac_fn_c_try_compile "$LINENO"; then :
  2262. eval "$4=yes"
  2263. else
  2264. eval "$4=no"
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2267. fi
  2268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. fi
  2270. eval ac_res=\$$4
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2272. $as_echo "$ac_res" >&6; }
  2273. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2274. } # ac_fn_c_check_member
  2275. cat >config.log <<_ACEOF
  2276. This file contains any messages produced by compilers while
  2277. running configure, to aid debugging if configure makes a mistake.
  2278. It was created by $as_me, which was
  2279. generated by GNU Autoconf 2.69. Invocation command line was
  2280. $ $0 $@
  2281. _ACEOF
  2282. exec 5>>config.log
  2283. {
  2284. cat <<_ASUNAME
  2285. ## --------- ##
  2286. ## Platform. ##
  2287. ## --------- ##
  2288. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2289. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2290. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2291. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2292. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2293. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2294. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2295. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2296. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2297. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2298. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2299. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2300. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2301. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2302. _ASUNAME
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. $as_echo "PATH: $as_dir"
  2309. done
  2310. IFS=$as_save_IFS
  2311. } >&5
  2312. cat >&5 <<_ACEOF
  2313. ## ----------- ##
  2314. ## Core tests. ##
  2315. ## ----------- ##
  2316. _ACEOF
  2317. # Keep a trace of the command line.
  2318. # Strip out --no-create and --no-recursion so they do not pile up.
  2319. # Strip out --silent because we don't want to record it for future runs.
  2320. # Also quote any args containing shell meta-characters.
  2321. # Make two passes to allow for proper duplicate-argument suppression.
  2322. ac_configure_args=
  2323. ac_configure_args0=
  2324. ac_configure_args1=
  2325. ac_must_keep_next=false
  2326. for ac_pass in 1 2
  2327. do
  2328. for ac_arg
  2329. do
  2330. case $ac_arg in
  2331. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2332. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2333. | -silent | --silent | --silen | --sile | --sil)
  2334. continue ;;
  2335. *\'*)
  2336. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2337. esac
  2338. case $ac_pass in
  2339. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2340. 2)
  2341. as_fn_append ac_configure_args1 " '$ac_arg'"
  2342. if test $ac_must_keep_next = true; then
  2343. ac_must_keep_next=false # Got value, back to normal.
  2344. else
  2345. case $ac_arg in
  2346. *=* | --config-cache | -C | -disable-* | --disable-* \
  2347. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2348. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2349. | -with-* | --with-* | -without-* | --without-* | --x)
  2350. case "$ac_configure_args0 " in
  2351. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2352. esac
  2353. ;;
  2354. -* ) ac_must_keep_next=true ;;
  2355. esac
  2356. fi
  2357. as_fn_append ac_configure_args " '$ac_arg'"
  2358. ;;
  2359. esac
  2360. done
  2361. done
  2362. { ac_configure_args0=; unset ac_configure_args0;}
  2363. { ac_configure_args1=; unset ac_configure_args1;}
  2364. # When interrupted or exit'd, cleanup temporary files, and complete
  2365. # config.log. We remove comments because anyway the quotes in there
  2366. # would cause problems or look ugly.
  2367. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2368. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2369. trap 'exit_status=$?
  2370. # Save into config.log some information that might help in debugging.
  2371. {
  2372. echo
  2373. $as_echo "## ---------------- ##
  2374. ## Cache variables. ##
  2375. ## ---------------- ##"
  2376. echo
  2377. # The following way of writing the cache mishandles newlines in values,
  2378. (
  2379. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2380. eval ac_val=\$$ac_var
  2381. case $ac_val in #(
  2382. *${as_nl}*)
  2383. case $ac_var in #(
  2384. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2385. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2386. esac
  2387. case $ac_var in #(
  2388. _ | IFS | as_nl) ;; #(
  2389. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2390. *) { eval $ac_var=; unset $ac_var;} ;;
  2391. esac ;;
  2392. esac
  2393. done
  2394. (set) 2>&1 |
  2395. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2396. *${as_nl}ac_space=\ *)
  2397. sed -n \
  2398. "s/'\''/'\''\\\\'\'''\''/g;
  2399. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2400. ;; #(
  2401. *)
  2402. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2403. ;;
  2404. esac |
  2405. sort
  2406. )
  2407. echo
  2408. $as_echo "## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##"
  2411. echo
  2412. for ac_var in $ac_subst_vars
  2413. do
  2414. eval ac_val=\$$ac_var
  2415. case $ac_val in
  2416. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2417. esac
  2418. $as_echo "$ac_var='\''$ac_val'\''"
  2419. done | sort
  2420. echo
  2421. if test -n "$ac_subst_files"; then
  2422. $as_echo "## ------------------- ##
  2423. ## File substitutions. ##
  2424. ## ------------------- ##"
  2425. echo
  2426. for ac_var in $ac_subst_files
  2427. do
  2428. eval ac_val=\$$ac_var
  2429. case $ac_val in
  2430. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2431. esac
  2432. $as_echo "$ac_var='\''$ac_val'\''"
  2433. done | sort
  2434. echo
  2435. fi
  2436. if test -s confdefs.h; then
  2437. $as_echo "## ----------- ##
  2438. ## confdefs.h. ##
  2439. ## ----------- ##"
  2440. echo
  2441. cat confdefs.h
  2442. echo
  2443. fi
  2444. test "$ac_signal" != 0 &&
  2445. $as_echo "$as_me: caught signal $ac_signal"
  2446. $as_echo "$as_me: exit $exit_status"
  2447. } >&5
  2448. rm -f core *.core core.conftest.* &&
  2449. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2450. exit $exit_status
  2451. ' 0
  2452. for ac_signal in 1 2 13 15; do
  2453. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2454. done
  2455. ac_signal=0
  2456. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2457. rm -f -r conftest* confdefs.h
  2458. $as_echo "/* confdefs.h */" > confdefs.h
  2459. # Predefined preprocessor variables.
  2460. cat >>confdefs.h <<_ACEOF
  2461. #define PACKAGE_NAME "$PACKAGE_NAME"
  2462. _ACEOF
  2463. cat >>confdefs.h <<_ACEOF
  2464. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2465. _ACEOF
  2466. cat >>confdefs.h <<_ACEOF
  2467. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2468. _ACEOF
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_STRING "$PACKAGE_STRING"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_URL "$PACKAGE_URL"
  2477. _ACEOF
  2478. # Let the site file select an alternate cache file if it wants to.
  2479. # Prefer an explicitly selected file to automatically selected ones.
  2480. ac_site_file1=NONE
  2481. ac_site_file2=NONE
  2482. if test -n "$CONFIG_SITE"; then
  2483. # We do not want a PATH search for config.site.
  2484. case $CONFIG_SITE in #((
  2485. -*) ac_site_file1=./$CONFIG_SITE;;
  2486. */*) ac_site_file1=$CONFIG_SITE;;
  2487. *) ac_site_file1=./$CONFIG_SITE;;
  2488. esac
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file" \
  2504. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2506. as_fn_error $? "failed to load site script $ac_site_file
  2507. See \`config.log' for more details" "$LINENO" 5; }
  2508. fi
  2509. done
  2510. if test -r "$cache_file"; then
  2511. # Some versions of bash will fail to source /dev/null (special files
  2512. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2513. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2515. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2516. case $cache_file in
  2517. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2518. *) . "./$cache_file";;
  2519. esac
  2520. fi
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2523. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2524. >$cache_file
  2525. fi
  2526. # Check that the precious variables saved in the cache have kept the same
  2527. # value.
  2528. ac_cache_corrupted=false
  2529. for ac_var in $ac_precious_vars; do
  2530. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2531. eval ac_new_set=\$ac_env_${ac_var}_set
  2532. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2533. eval ac_new_val=\$ac_env_${ac_var}_value
  2534. case $ac_old_set,$ac_new_set in
  2535. set,)
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2537. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2538. ac_cache_corrupted=: ;;
  2539. ,set)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2542. ac_cache_corrupted=: ;;
  2543. ,);;
  2544. *)
  2545. if test "x$ac_old_val" != "x$ac_new_val"; then
  2546. # differences in whitespace do not lead to failure.
  2547. ac_old_val_w=`echo x $ac_old_val`
  2548. ac_new_val_w=`echo x $ac_new_val`
  2549. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2551. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2552. ac_cache_corrupted=:
  2553. else
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2555. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2556. eval $ac_var=\$ac_old_val
  2557. fi
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2559. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2561. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2562. fi;;
  2563. esac
  2564. # Pass precious variables to config.status.
  2565. if test "$ac_new_set" = set; then
  2566. case $ac_new_val in
  2567. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2568. *) ac_arg=$ac_var=$ac_new_val ;;
  2569. esac
  2570. case " $ac_configure_args " in
  2571. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2572. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2573. esac
  2574. fi
  2575. done
  2576. if $ac_cache_corrupted; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2580. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2581. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2582. fi
  2583. ## -------------------- ##
  2584. ## Main body of script. ##
  2585. ## -------------------- ##
  2586. ac_ext=c
  2587. ac_cpp='$CPP $CPPFLAGS'
  2588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2591. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2592. ac_aux_dir=
  2593. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2594. if test -f "$ac_dir/install-sh"; then
  2595. ac_aux_dir=$ac_dir
  2596. ac_install_sh="$ac_aux_dir/install-sh -c"
  2597. break
  2598. elif test -f "$ac_dir/install.sh"; then
  2599. ac_aux_dir=$ac_dir
  2600. ac_install_sh="$ac_aux_dir/install.sh -c"
  2601. break
  2602. elif test -f "$ac_dir/shtool"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/shtool install -c"
  2605. break
  2606. fi
  2607. done
  2608. if test -z "$ac_aux_dir"; then
  2609. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2610. fi
  2611. # These three variables are undocumented and unsupported,
  2612. # and are intended to be withdrawn in a future Autoconf release.
  2613. # They can cause serious problems if a builder's source tree is in a directory
  2614. # whose full name contains unusual characters.
  2615. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2616. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2617. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2618. orig_CFLAGS="$CFLAGS"
  2619. #
  2620. # Making releases:
  2621. # Edit include/SDL_version.h and change the version, then:
  2622. # SDL_MICRO_VERSION += 1;
  2623. # SDL_INTERFACE_AGE += 1;
  2624. # SDL_BINARY_AGE += 1;
  2625. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2626. # if backwards compatibility has been broken,
  2627. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2628. #
  2629. SDL_MAJOR_VERSION=2
  2630. SDL_MINOR_VERSION=0
  2631. SDL_MICRO_VERSION=21
  2632. SDL_INTERFACE_AGE=3
  2633. SDL_BINARY_AGE=21
  2634. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2635. # libtool versioning
  2636. case `pwd` in
  2637. *\ * | *\ *)
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2639. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2640. esac
  2641. macro_version='2.4.6'
  2642. macro_revision='2.4.6'
  2643. ltmain=$ac_aux_dir/ltmain.sh
  2644. # Make sure we can run config.sub.
  2645. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2646. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2648. $as_echo_n "checking build system type... " >&6; }
  2649. if ${ac_cv_build+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. ac_build_alias=$build_alias
  2653. test "x$ac_build_alias" = x &&
  2654. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2655. test "x$ac_build_alias" = x &&
  2656. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2657. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2658. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2661. $as_echo "$ac_cv_build" >&6; }
  2662. case $ac_cv_build in
  2663. *-*-*) ;;
  2664. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2665. esac
  2666. build=$ac_cv_build
  2667. ac_save_IFS=$IFS; IFS='-'
  2668. set x $ac_cv_build
  2669. shift
  2670. build_cpu=$1
  2671. build_vendor=$2
  2672. shift; shift
  2673. # Remember, the first character of IFS is used to create $*,
  2674. # except with old shells:
  2675. build_os=$*
  2676. IFS=$ac_save_IFS
  2677. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2679. $as_echo_n "checking host system type... " >&6; }
  2680. if ${ac_cv_host+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. if test "x$host_alias" = x; then
  2684. ac_cv_host=$ac_cv_build
  2685. else
  2686. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2687. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2688. fi
  2689. fi
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2691. $as_echo "$ac_cv_host" >&6; }
  2692. case $ac_cv_host in
  2693. *-*-*) ;;
  2694. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2695. esac
  2696. host=$ac_cv_host
  2697. ac_save_IFS=$IFS; IFS='-'
  2698. set x $ac_cv_host
  2699. shift
  2700. host_cpu=$1
  2701. host_vendor=$2
  2702. shift; shift
  2703. # Remember, the first character of IFS is used to create $*,
  2704. # except with old shells:
  2705. host_os=$*
  2706. IFS=$ac_save_IFS
  2707. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2708. # Backslashify metacharacters that are still active within
  2709. # double-quoted strings.
  2710. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2711. # Same as above, but do not quote variable references.
  2712. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2713. # Sed substitution to delay expansion of an escaped shell variable in a
  2714. # double_quote_subst'ed string.
  2715. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2716. # Sed substitution to delay expansion of an escaped single quote.
  2717. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2718. # Sed substitution to avoid accidental globbing in evaled expressions
  2719. no_glob_subst='s/\*/\\\*/g'
  2720. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2721. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2722. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2724. $as_echo_n "checking how to print strings... " >&6; }
  2725. # Test print first, because it will be a builtin if present.
  2726. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2727. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2728. ECHO='print -r --'
  2729. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2730. ECHO='printf %s\n'
  2731. else
  2732. # Use this function as a fallback that always works.
  2733. func_fallback_echo ()
  2734. {
  2735. eval 'cat <<_LTECHO_EOF
  2736. $1
  2737. _LTECHO_EOF'
  2738. }
  2739. ECHO='func_fallback_echo'
  2740. fi
  2741. # func_echo_all arg...
  2742. # Invoke $ECHO with all args, space-separated.
  2743. func_echo_all ()
  2744. {
  2745. $ECHO ""
  2746. }
  2747. case $ECHO in
  2748. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2749. $as_echo "printf" >&6; } ;;
  2750. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2751. $as_echo "print -r" >&6; } ;;
  2752. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2753. $as_echo "cat" >&6; } ;;
  2754. esac
  2755. ac_ext=c
  2756. ac_cpp='$CPP $CPPFLAGS'
  2757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2760. if test -n "$ac_tool_prefix"; then
  2761. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2762. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$CC"; then
  2769. ac_cv_prog_CC="$CC" # Let the user override the test.
  2770. else
  2771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2772. for as_dir in $PATH
  2773. do
  2774. IFS=$as_save_IFS
  2775. test -z "$as_dir" && as_dir=.
  2776. for ac_exec_ext in '' $ac_executable_extensions; do
  2777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2778. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. IFS=$as_save_IFS
  2785. fi
  2786. fi
  2787. CC=$ac_cv_prog_CC
  2788. if test -n "$CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2790. $as_echo "$CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. fi
  2796. if test -z "$ac_cv_prog_CC"; then
  2797. ac_ct_CC=$CC
  2798. # Extract the first word of "gcc", so it can be a program name with args.
  2799. set dummy gcc; ac_word=$2
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2801. $as_echo_n "checking for $ac_word... " >&6; }
  2802. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2803. $as_echo_n "(cached) " >&6
  2804. else
  2805. if test -n "$ac_ct_CC"; then
  2806. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2807. else
  2808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2809. for as_dir in $PATH
  2810. do
  2811. IFS=$as_save_IFS
  2812. test -z "$as_dir" && as_dir=.
  2813. for ac_exec_ext in '' $ac_executable_extensions; do
  2814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2815. ac_cv_prog_ac_ct_CC="gcc"
  2816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2817. break 2
  2818. fi
  2819. done
  2820. done
  2821. IFS=$as_save_IFS
  2822. fi
  2823. fi
  2824. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2825. if test -n "$ac_ct_CC"; then
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2827. $as_echo "$ac_ct_CC" >&6; }
  2828. else
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2830. $as_echo "no" >&6; }
  2831. fi
  2832. if test "x$ac_ct_CC" = x; then
  2833. CC=""
  2834. else
  2835. case $cross_compiling:$ac_tool_warned in
  2836. yes:)
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2839. ac_tool_warned=yes ;;
  2840. esac
  2841. CC=$ac_ct_CC
  2842. fi
  2843. else
  2844. CC="$ac_cv_prog_CC"
  2845. fi
  2846. if test -z "$CC"; then
  2847. if test -n "$ac_tool_prefix"; then
  2848. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2849. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2851. $as_echo_n "checking for $ac_word... " >&6; }
  2852. if ${ac_cv_prog_CC+:} false; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -n "$CC"; then
  2856. ac_cv_prog_CC="$CC" # Let the user override the test.
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2865. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. fi
  2873. fi
  2874. CC=$ac_cv_prog_CC
  2875. if test -n "$CC"; then
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2877. $as_echo "$CC" >&6; }
  2878. else
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2880. $as_echo "no" >&6; }
  2881. fi
  2882. fi
  2883. fi
  2884. if test -z "$CC"; then
  2885. # Extract the first word of "cc", so it can be a program name with args.
  2886. set dummy cc; ac_word=$2
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2888. $as_echo_n "checking for $ac_word... " >&6; }
  2889. if ${ac_cv_prog_CC+:} false; then :
  2890. $as_echo_n "(cached) " >&6
  2891. else
  2892. if test -n "$CC"; then
  2893. ac_cv_prog_CC="$CC" # Let the user override the test.
  2894. else
  2895. ac_prog_rejected=no
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. for ac_exec_ext in '' $ac_executable_extensions; do
  2902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2903. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2904. ac_prog_rejected=yes
  2905. continue
  2906. fi
  2907. ac_cv_prog_CC="cc"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. if test $ac_prog_rejected = yes; then
  2915. # We found a bogon in the path, so make sure we never use it.
  2916. set dummy $ac_cv_prog_CC
  2917. shift
  2918. if test $# != 0; then
  2919. # We chose a different compiler from the bogus one.
  2920. # However, it has the same basename, so the bogon will be chosen
  2921. # first if we set CC to just the basename; use the full file name.
  2922. shift
  2923. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2924. fi
  2925. fi
  2926. fi
  2927. fi
  2928. CC=$ac_cv_prog_CC
  2929. if test -n "$CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2931. $as_echo "$CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. fi
  2937. if test -z "$CC"; then
  2938. if test -n "$ac_tool_prefix"; then
  2939. for ac_prog in cl.exe
  2940. do
  2941. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2942. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2944. $as_echo_n "checking for $ac_word... " >&6; }
  2945. if ${ac_cv_prog_CC+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. if test -n "$CC"; then
  2949. ac_cv_prog_CC="$CC" # Let the user override the test.
  2950. else
  2951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH
  2953. do
  2954. IFS=$as_save_IFS
  2955. test -z "$as_dir" && as_dir=.
  2956. for ac_exec_ext in '' $ac_executable_extensions; do
  2957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2958. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. IFS=$as_save_IFS
  2965. fi
  2966. fi
  2967. CC=$ac_cv_prog_CC
  2968. if test -n "$CC"; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2970. $as_echo "$CC" >&6; }
  2971. else
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2973. $as_echo "no" >&6; }
  2974. fi
  2975. test -n "$CC" && break
  2976. done
  2977. fi
  2978. if test -z "$CC"; then
  2979. ac_ct_CC=$CC
  2980. for ac_prog in cl.exe
  2981. do
  2982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2983. set dummy $ac_prog; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$ac_ct_CC"; then
  2990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_ac_ct_CC="$ac_prog"
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. fi
  3008. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3009. if test -n "$ac_ct_CC"; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3011. $as_echo "$ac_ct_CC" >&6; }
  3012. else
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. fi
  3016. test -n "$ac_ct_CC" && break
  3017. done
  3018. if test "x$ac_ct_CC" = x; then
  3019. CC=""
  3020. else
  3021. case $cross_compiling:$ac_tool_warned in
  3022. yes:)
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3025. ac_tool_warned=yes ;;
  3026. esac
  3027. CC=$ac_ct_CC
  3028. fi
  3029. fi
  3030. fi
  3031. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3032. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3033. as_fn_error $? "no acceptable C compiler found in \$PATH
  3034. See \`config.log' for more details" "$LINENO" 5; }
  3035. # Provide some information about the compiler.
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3037. set X $ac_compile
  3038. ac_compiler=$2
  3039. for ac_option in --version -v -V -qversion; do
  3040. { { ac_try="$ac_compiler $ac_option >&5"
  3041. case "(($ac_try" in
  3042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3043. *) ac_try_echo=$ac_try;;
  3044. esac
  3045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3046. $as_echo "$ac_try_echo"; } >&5
  3047. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3048. ac_status=$?
  3049. if test -s conftest.err; then
  3050. sed '10a\
  3051. ... rest of stderr output deleted ...
  3052. 10q' conftest.err >conftest.er1
  3053. cat conftest.er1 >&5
  3054. fi
  3055. rm -f conftest.er1 conftest.err
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }
  3058. done
  3059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3060. /* end confdefs.h. */
  3061. int
  3062. main ()
  3063. {
  3064. ;
  3065. return 0;
  3066. }
  3067. _ACEOF
  3068. ac_clean_files_save=$ac_clean_files
  3069. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3070. # Try to create an executable without -o first, disregard a.out.
  3071. # It will help us diagnose broken compilers, and finding out an intuition
  3072. # of exeext.
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3074. $as_echo_n "checking whether the C compiler works... " >&6; }
  3075. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3076. # The possible output files:
  3077. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3078. ac_rmfiles=
  3079. for ac_file in $ac_files
  3080. do
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3083. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3084. esac
  3085. done
  3086. rm -f $ac_rmfiles
  3087. if { { ac_try="$ac_link_default"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_link_default") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; then :
  3098. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3099. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3100. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3101. # so that the user can short-circuit this test for compilers unknown to
  3102. # Autoconf.
  3103. for ac_file in $ac_files ''
  3104. do
  3105. test -f "$ac_file" || continue
  3106. case $ac_file in
  3107. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3108. ;;
  3109. [ab].out )
  3110. # We found the default executable, but exeext='' is most
  3111. # certainly right.
  3112. break;;
  3113. *.* )
  3114. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3115. then :; else
  3116. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3117. fi
  3118. # We set ac_cv_exeext here because the later test for it is not
  3119. # safe: cross compilers may not add the suffix if given an `-o'
  3120. # argument, so we may need to know it at that point already.
  3121. # Even if this section looks crufty: it has the advantage of
  3122. # actually working.
  3123. break;;
  3124. * )
  3125. break;;
  3126. esac
  3127. done
  3128. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3129. else
  3130. ac_file=''
  3131. fi
  3132. if test -z "$ac_file"; then :
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3134. $as_echo "no" >&6; }
  3135. $as_echo "$as_me: failed program was:" >&5
  3136. sed 's/^/| /' conftest.$ac_ext >&5
  3137. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3139. as_fn_error 77 "C compiler cannot create executables
  3140. See \`config.log' for more details" "$LINENO" 5; }
  3141. else
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3143. $as_echo "yes" >&6; }
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3146. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3148. $as_echo "$ac_file" >&6; }
  3149. ac_exeext=$ac_cv_exeext
  3150. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3151. ac_clean_files=$ac_clean_files_save
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3153. $as_echo_n "checking for suffix of executables... " >&6; }
  3154. if { { ac_try="$ac_link"
  3155. case "(($ac_try" in
  3156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157. *) ac_try_echo=$ac_try;;
  3158. esac
  3159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3160. $as_echo "$ac_try_echo"; } >&5
  3161. (eval "$ac_link") 2>&5
  3162. ac_status=$?
  3163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3164. test $ac_status = 0; }; then :
  3165. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3166. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3167. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3168. # `rm'.
  3169. for ac_file in conftest.exe conftest conftest.*; do
  3170. test -f "$ac_file" || continue
  3171. case $ac_file in
  3172. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3173. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3174. break;;
  3175. * ) break;;
  3176. esac
  3177. done
  3178. else
  3179. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3180. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3181. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3182. See \`config.log' for more details" "$LINENO" 5; }
  3183. fi
  3184. rm -f conftest conftest$ac_cv_exeext
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3186. $as_echo "$ac_cv_exeext" >&6; }
  3187. rm -f conftest.$ac_ext
  3188. EXEEXT=$ac_cv_exeext
  3189. ac_exeext=$EXEEXT
  3190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3191. /* end confdefs.h. */
  3192. #include <stdio.h>
  3193. int
  3194. main ()
  3195. {
  3196. FILE *f = fopen ("conftest.out", "w");
  3197. return ferror (f) || fclose (f) != 0;
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. ac_clean_files="$ac_clean_files conftest.out"
  3203. # Check that the compiler produces executables we can run. If not, either
  3204. # the compiler is broken, or we cross compile.
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3206. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3207. if test "$cross_compiling" != yes; then
  3208. { { ac_try="$ac_link"
  3209. case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3214. $as_echo "$ac_try_echo"; } >&5
  3215. (eval "$ac_link") 2>&5
  3216. ac_status=$?
  3217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3218. test $ac_status = 0; }
  3219. if { ac_try='./conftest$ac_cv_exeext'
  3220. { { case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3225. $as_echo "$ac_try_echo"; } >&5
  3226. (eval "$ac_try") 2>&5
  3227. ac_status=$?
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3229. test $ac_status = 0; }; }; then
  3230. cross_compiling=no
  3231. else
  3232. if test "$cross_compiling" = maybe; then
  3233. cross_compiling=yes
  3234. else
  3235. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3236. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3237. as_fn_error $? "cannot run C compiled programs.
  3238. If you meant to cross compile, use \`--host'.
  3239. See \`config.log' for more details" "$LINENO" 5; }
  3240. fi
  3241. fi
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3244. $as_echo "$cross_compiling" >&6; }
  3245. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3246. ac_clean_files=$ac_clean_files_save
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3248. $as_echo_n "checking for suffix of object files... " >&6; }
  3249. if ${ac_cv_objext+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. int
  3255. main ()
  3256. {
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. rm -f conftest.o conftest.obj
  3262. if { { ac_try="$ac_compile"
  3263. case "(($ac_try" in
  3264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3265. *) ac_try_echo=$ac_try;;
  3266. esac
  3267. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3268. $as_echo "$ac_try_echo"; } >&5
  3269. (eval "$ac_compile") 2>&5
  3270. ac_status=$?
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3272. test $ac_status = 0; }; then :
  3273. for ac_file in conftest.o conftest.obj conftest.*; do
  3274. test -f "$ac_file" || continue;
  3275. case $ac_file in
  3276. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3277. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3278. break;;
  3279. esac
  3280. done
  3281. else
  3282. $as_echo "$as_me: failed program was:" >&5
  3283. sed 's/^/| /' conftest.$ac_ext >&5
  3284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3286. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3287. See \`config.log' for more details" "$LINENO" 5; }
  3288. fi
  3289. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3290. fi
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3292. $as_echo "$ac_cv_objext" >&6; }
  3293. OBJEXT=$ac_cv_objext
  3294. ac_objext=$OBJEXT
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3296. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3297. if ${ac_cv_c_compiler_gnu+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. #ifndef __GNUC__
  3306. choke me
  3307. #endif
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. if ac_fn_c_try_compile "$LINENO"; then :
  3313. ac_compiler_gnu=yes
  3314. else
  3315. ac_compiler_gnu=no
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3318. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3321. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3322. if test $ac_compiler_gnu = yes; then
  3323. GCC=yes
  3324. else
  3325. GCC=
  3326. fi
  3327. ac_test_CFLAGS=${CFLAGS+set}
  3328. ac_save_CFLAGS=$CFLAGS
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3330. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3331. if ${ac_cv_prog_cc_g+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. ac_save_c_werror_flag=$ac_c_werror_flag
  3335. ac_c_werror_flag=yes
  3336. ac_cv_prog_cc_g=no
  3337. CFLAGS="-g"
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. int
  3341. main ()
  3342. {
  3343. ;
  3344. return 0;
  3345. }
  3346. _ACEOF
  3347. if ac_fn_c_try_compile "$LINENO"; then :
  3348. ac_cv_prog_cc_g=yes
  3349. else
  3350. CFLAGS=""
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. int
  3354. main ()
  3355. {
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. if ac_fn_c_try_compile "$LINENO"; then :
  3361. else
  3362. ac_c_werror_flag=$ac_save_c_werror_flag
  3363. CFLAGS="-g"
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. ;
  3370. return 0;
  3371. }
  3372. _ACEOF
  3373. if ac_fn_c_try_compile "$LINENO"; then :
  3374. ac_cv_prog_cc_g=yes
  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. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. ac_c_werror_flag=$ac_save_c_werror_flag
  3382. fi
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3384. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3385. if test "$ac_test_CFLAGS" = set; then
  3386. CFLAGS=$ac_save_CFLAGS
  3387. elif test $ac_cv_prog_cc_g = yes; then
  3388. if test "$GCC" = yes; then
  3389. CFLAGS="-g -O2"
  3390. else
  3391. CFLAGS="-g"
  3392. fi
  3393. else
  3394. if test "$GCC" = yes; then
  3395. CFLAGS="-O2"
  3396. else
  3397. CFLAGS=
  3398. fi
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3401. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3402. if ${ac_cv_prog_cc_c89+:} false; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. ac_cv_prog_cc_c89=no
  3406. ac_save_CC=$CC
  3407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3408. /* end confdefs.h. */
  3409. #include <stdarg.h>
  3410. #include <stdio.h>
  3411. struct stat;
  3412. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3413. struct buf { int x; };
  3414. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3415. static char *e (p, i)
  3416. char **p;
  3417. int i;
  3418. {
  3419. return p[i];
  3420. }
  3421. static char *f (char * (*g) (char **, int), char **p, ...)
  3422. {
  3423. char *s;
  3424. va_list v;
  3425. va_start (v,p);
  3426. s = g (p, va_arg (v,int));
  3427. va_end (v);
  3428. return s;
  3429. }
  3430. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3431. function prototypes and stuff, but not '\xHH' hex character constants.
  3432. These don't provoke an error unfortunately, instead are silently treated
  3433. as 'x'. The following induces an error, until -std is added to get
  3434. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3435. array size at least. It's necessary to write '\x00'==0 to get something
  3436. that's true only with -std. */
  3437. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3438. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3439. inside strings and character constants. */
  3440. #define FOO(x) 'x'
  3441. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3442. int test (int i, double x);
  3443. struct s1 {int (*f) (int a);};
  3444. struct s2 {int (*f) (double a);};
  3445. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3446. int argc;
  3447. char **argv;
  3448. int
  3449. main ()
  3450. {
  3451. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3452. ;
  3453. return 0;
  3454. }
  3455. _ACEOF
  3456. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3457. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3458. do
  3459. CC="$ac_save_CC $ac_arg"
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. ac_cv_prog_cc_c89=$ac_arg
  3462. fi
  3463. rm -f core conftest.err conftest.$ac_objext
  3464. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3465. done
  3466. rm -f conftest.$ac_ext
  3467. CC=$ac_save_CC
  3468. fi
  3469. # AC_CACHE_VAL
  3470. case "x$ac_cv_prog_cc_c89" in
  3471. x)
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3473. $as_echo "none needed" >&6; } ;;
  3474. xno)
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3476. $as_echo "unsupported" >&6; } ;;
  3477. *)
  3478. CC="$CC $ac_cv_prog_cc_c89"
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3480. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3481. esac
  3482. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3483. fi
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3490. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3491. if ${ac_cv_path_SED+:} false; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3495. for ac_i in 1 2 3 4 5 6 7; do
  3496. ac_script="$ac_script$as_nl$ac_script"
  3497. done
  3498. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3499. { ac_script=; unset ac_script;}
  3500. if test -z "$SED"; then
  3501. ac_path_SED_found=false
  3502. # Loop through the user's path and test for each of PROGNAME-LIST
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_prog in sed gsed; do
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3511. as_fn_executable_p "$ac_path_SED" || continue
  3512. # Check for GNU ac_path_SED and select it if it is found.
  3513. # Check for GNU $ac_path_SED
  3514. case `"$ac_path_SED" --version 2>&1` in
  3515. *GNU*)
  3516. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3517. *)
  3518. ac_count=0
  3519. $as_echo_n 0123456789 >"conftest.in"
  3520. while :
  3521. do
  3522. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3523. mv "conftest.tmp" "conftest.in"
  3524. cp "conftest.in" "conftest.nl"
  3525. $as_echo '' >> "conftest.nl"
  3526. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3527. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3528. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3529. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3530. # Best one so far, save it but keep looking for a better one
  3531. ac_cv_path_SED="$ac_path_SED"
  3532. ac_path_SED_max=$ac_count
  3533. fi
  3534. # 10*(2^10) chars as input seems more than enough
  3535. test $ac_count -gt 10 && break
  3536. done
  3537. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3538. esac
  3539. $ac_path_SED_found && break 3
  3540. done
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. if test -z "$ac_cv_path_SED"; then
  3545. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3546. fi
  3547. else
  3548. ac_cv_path_SED=$SED
  3549. fi
  3550. fi
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3552. $as_echo "$ac_cv_path_SED" >&6; }
  3553. SED="$ac_cv_path_SED"
  3554. rm -f conftest.sed
  3555. test -z "$SED" && SED=sed
  3556. Xsed="$SED -e 1s/^X//"
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3558. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3559. if ${ac_cv_path_GREP+:} false; then :
  3560. $as_echo_n "(cached) " >&6
  3561. else
  3562. if test -z "$GREP"; then
  3563. ac_path_GREP_found=false
  3564. # Loop through the user's path and test for each of PROGNAME-LIST
  3565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3566. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3567. do
  3568. IFS=$as_save_IFS
  3569. test -z "$as_dir" && as_dir=.
  3570. for ac_prog in grep ggrep; do
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3573. as_fn_executable_p "$ac_path_GREP" || continue
  3574. # Check for GNU ac_path_GREP and select it if it is found.
  3575. # Check for GNU $ac_path_GREP
  3576. case `"$ac_path_GREP" --version 2>&1` in
  3577. *GNU*)
  3578. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3579. *)
  3580. ac_count=0
  3581. $as_echo_n 0123456789 >"conftest.in"
  3582. while :
  3583. do
  3584. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3585. mv "conftest.tmp" "conftest.in"
  3586. cp "conftest.in" "conftest.nl"
  3587. $as_echo 'GREP' >> "conftest.nl"
  3588. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3589. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3590. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3591. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3592. # Best one so far, save it but keep looking for a better one
  3593. ac_cv_path_GREP="$ac_path_GREP"
  3594. ac_path_GREP_max=$ac_count
  3595. fi
  3596. # 10*(2^10) chars as input seems more than enough
  3597. test $ac_count -gt 10 && break
  3598. done
  3599. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3600. esac
  3601. $ac_path_GREP_found && break 3
  3602. done
  3603. done
  3604. done
  3605. IFS=$as_save_IFS
  3606. if test -z "$ac_cv_path_GREP"; then
  3607. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3608. fi
  3609. else
  3610. ac_cv_path_GREP=$GREP
  3611. fi
  3612. fi
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3614. $as_echo "$ac_cv_path_GREP" >&6; }
  3615. GREP="$ac_cv_path_GREP"
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3617. $as_echo_n "checking for egrep... " >&6; }
  3618. if ${ac_cv_path_EGREP+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3622. then ac_cv_path_EGREP="$GREP -E"
  3623. else
  3624. if test -z "$EGREP"; then
  3625. ac_path_EGREP_found=false
  3626. # Loop through the user's path and test for each of PROGNAME-LIST
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_prog in egrep; do
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3635. as_fn_executable_p "$ac_path_EGREP" || continue
  3636. # Check for GNU ac_path_EGREP and select it if it is found.
  3637. # Check for GNU $ac_path_EGREP
  3638. case `"$ac_path_EGREP" --version 2>&1` in
  3639. *GNU*)
  3640. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3641. *)
  3642. ac_count=0
  3643. $as_echo_n 0123456789 >"conftest.in"
  3644. while :
  3645. do
  3646. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3647. mv "conftest.tmp" "conftest.in"
  3648. cp "conftest.in" "conftest.nl"
  3649. $as_echo 'EGREP' >> "conftest.nl"
  3650. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3651. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3652. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3653. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3654. # Best one so far, save it but keep looking for a better one
  3655. ac_cv_path_EGREP="$ac_path_EGREP"
  3656. ac_path_EGREP_max=$ac_count
  3657. fi
  3658. # 10*(2^10) chars as input seems more than enough
  3659. test $ac_count -gt 10 && break
  3660. done
  3661. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3662. esac
  3663. $ac_path_EGREP_found && break 3
  3664. done
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668. if test -z "$ac_cv_path_EGREP"; then
  3669. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3670. fi
  3671. else
  3672. ac_cv_path_EGREP=$EGREP
  3673. fi
  3674. fi
  3675. fi
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3677. $as_echo "$ac_cv_path_EGREP" >&6; }
  3678. EGREP="$ac_cv_path_EGREP"
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3680. $as_echo_n "checking for fgrep... " >&6; }
  3681. if ${ac_cv_path_FGREP+:} false; then :
  3682. $as_echo_n "(cached) " >&6
  3683. else
  3684. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3685. then ac_cv_path_FGREP="$GREP -F"
  3686. else
  3687. if test -z "$FGREP"; then
  3688. ac_path_FGREP_found=false
  3689. # Loop through the user's path and test for each of PROGNAME-LIST
  3690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3691. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3692. do
  3693. IFS=$as_save_IFS
  3694. test -z "$as_dir" && as_dir=.
  3695. for ac_prog in fgrep; do
  3696. for ac_exec_ext in '' $ac_executable_extensions; do
  3697. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3698. as_fn_executable_p "$ac_path_FGREP" || continue
  3699. # Check for GNU ac_path_FGREP and select it if it is found.
  3700. # Check for GNU $ac_path_FGREP
  3701. case `"$ac_path_FGREP" --version 2>&1` in
  3702. *GNU*)
  3703. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3704. *)
  3705. ac_count=0
  3706. $as_echo_n 0123456789 >"conftest.in"
  3707. while :
  3708. do
  3709. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3710. mv "conftest.tmp" "conftest.in"
  3711. cp "conftest.in" "conftest.nl"
  3712. $as_echo 'FGREP' >> "conftest.nl"
  3713. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3714. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3715. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3716. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3717. # Best one so far, save it but keep looking for a better one
  3718. ac_cv_path_FGREP="$ac_path_FGREP"
  3719. ac_path_FGREP_max=$ac_count
  3720. fi
  3721. # 10*(2^10) chars as input seems more than enough
  3722. test $ac_count -gt 10 && break
  3723. done
  3724. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3725. esac
  3726. $ac_path_FGREP_found && break 3
  3727. done
  3728. done
  3729. done
  3730. IFS=$as_save_IFS
  3731. if test -z "$ac_cv_path_FGREP"; then
  3732. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3733. fi
  3734. else
  3735. ac_cv_path_FGREP=$FGREP
  3736. fi
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3740. $as_echo "$ac_cv_path_FGREP" >&6; }
  3741. FGREP="$ac_cv_path_FGREP"
  3742. test -z "$GREP" && GREP=grep
  3743. # Check whether --with-gnu-ld was given.
  3744. if test "${with_gnu_ld+set}" = set; then :
  3745. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3746. else
  3747. with_gnu_ld=no
  3748. fi
  3749. ac_prog=ld
  3750. if test yes = "$GCC"; then
  3751. # Check if gcc -print-prog-name=ld gives a path.
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3753. $as_echo_n "checking for ld used by $CC... " >&6; }
  3754. case $host in
  3755. *-*-mingw*)
  3756. # gcc leaves a trailing carriage return, which upsets mingw
  3757. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3758. *)
  3759. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3760. esac
  3761. case $ac_prog in
  3762. # Accept absolute paths.
  3763. [\\/]* | ?:[\\/]*)
  3764. re_direlt='/[^/][^/]*/\.\./'
  3765. # Canonicalize the pathname of ld
  3766. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3767. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3768. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3769. done
  3770. test -z "$LD" && LD=$ac_prog
  3771. ;;
  3772. "")
  3773. # If it fails, then pretend we aren't using GCC.
  3774. ac_prog=ld
  3775. ;;
  3776. *)
  3777. # If it is relative, then search for the first ld in PATH.
  3778. with_gnu_ld=unknown
  3779. ;;
  3780. esac
  3781. elif test yes = "$with_gnu_ld"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3783. $as_echo_n "checking for GNU ld... " >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3786. $as_echo_n "checking for non-GNU ld... " >&6; }
  3787. fi
  3788. if ${lt_cv_path_LD+:} false; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if test -z "$LD"; then
  3792. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3793. for ac_dir in $PATH; do
  3794. IFS=$lt_save_ifs
  3795. test -z "$ac_dir" && ac_dir=.
  3796. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3797. lt_cv_path_LD=$ac_dir/$ac_prog
  3798. # Check to see if the program is GNU ld. I'd rather use --version,
  3799. # but apparently some variants of GNU ld only accept -v.
  3800. # Break only if it was the GNU/non-GNU ld that we prefer.
  3801. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3802. *GNU* | *'with BFD'*)
  3803. test no != "$with_gnu_ld" && break
  3804. ;;
  3805. *)
  3806. test yes != "$with_gnu_ld" && break
  3807. ;;
  3808. esac
  3809. fi
  3810. done
  3811. IFS=$lt_save_ifs
  3812. else
  3813. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3814. fi
  3815. fi
  3816. LD=$lt_cv_path_LD
  3817. if test -n "$LD"; then
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3819. $as_echo "$LD" >&6; }
  3820. else
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3822. $as_echo "no" >&6; }
  3823. fi
  3824. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3826. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3827. if ${lt_cv_prog_gnu_ld+:} false; then :
  3828. $as_echo_n "(cached) " >&6
  3829. else
  3830. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3831. case `$LD -v 2>&1 </dev/null` in
  3832. *GNU* | *'with BFD'*)
  3833. lt_cv_prog_gnu_ld=yes
  3834. ;;
  3835. *)
  3836. lt_cv_prog_gnu_ld=no
  3837. ;;
  3838. esac
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3841. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3842. with_gnu_ld=$lt_cv_prog_gnu_ld
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3844. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3845. if ${lt_cv_path_NM+:} false; then :
  3846. $as_echo_n "(cached) " >&6
  3847. else
  3848. if test -n "$NM"; then
  3849. # Let the user override the test.
  3850. lt_cv_path_NM=$NM
  3851. else
  3852. lt_nm_to_check=${ac_tool_prefix}nm
  3853. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3854. lt_nm_to_check="$lt_nm_to_check nm"
  3855. fi
  3856. for lt_tmp_nm in $lt_nm_to_check; do
  3857. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3858. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3859. IFS=$lt_save_ifs
  3860. test -z "$ac_dir" && ac_dir=.
  3861. tmp_nm=$ac_dir/$lt_tmp_nm
  3862. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3863. # Check to see if the nm accepts a BSD-compat flag.
  3864. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3865. # nm: unknown option "B" ignored
  3866. # Tru64's nm complains that /dev/null is an invalid object file
  3867. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3868. case $build_os in
  3869. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3870. *) lt_bad_file=/dev/null ;;
  3871. esac
  3872. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3873. *$lt_bad_file* | *'Invalid file or object type'*)
  3874. lt_cv_path_NM="$tmp_nm -B"
  3875. break 2
  3876. ;;
  3877. *)
  3878. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3879. */dev/null*)
  3880. lt_cv_path_NM="$tmp_nm -p"
  3881. break 2
  3882. ;;
  3883. *)
  3884. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3885. continue # so that we can try to find one that supports BSD flags
  3886. ;;
  3887. esac
  3888. ;;
  3889. esac
  3890. fi
  3891. done
  3892. IFS=$lt_save_ifs
  3893. done
  3894. : ${lt_cv_path_NM=no}
  3895. fi
  3896. fi
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3898. $as_echo "$lt_cv_path_NM" >&6; }
  3899. if test no != "$lt_cv_path_NM"; then
  3900. NM=$lt_cv_path_NM
  3901. else
  3902. # Didn't find any BSD compatible name lister, look for dumpbin.
  3903. if test -n "$DUMPBIN"; then :
  3904. # Let the user override the test.
  3905. else
  3906. if test -n "$ac_tool_prefix"; then
  3907. for ac_prog in dumpbin "link -dump"
  3908. do
  3909. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3910. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$DUMPBIN"; then
  3917. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. DUMPBIN=$ac_cv_prog_DUMPBIN
  3936. if test -n "$DUMPBIN"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3938. $as_echo "$DUMPBIN" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. test -n "$DUMPBIN" && break
  3944. done
  3945. fi
  3946. if test -z "$DUMPBIN"; then
  3947. ac_ct_DUMPBIN=$DUMPBIN
  3948. for ac_prog in dumpbin "link -dump"
  3949. do
  3950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3951. set dummy $ac_prog; ac_word=$2
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3953. $as_echo_n "checking for $ac_word... " >&6; }
  3954. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3955. $as_echo_n "(cached) " >&6
  3956. else
  3957. if test -n "$ac_ct_DUMPBIN"; then
  3958. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3959. else
  3960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3961. for as_dir in $PATH
  3962. do
  3963. IFS=$as_save_IFS
  3964. test -z "$as_dir" && as_dir=.
  3965. for ac_exec_ext in '' $ac_executable_extensions; do
  3966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3967. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3969. break 2
  3970. fi
  3971. done
  3972. done
  3973. IFS=$as_save_IFS
  3974. fi
  3975. fi
  3976. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3977. if test -n "$ac_ct_DUMPBIN"; then
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3979. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3980. else
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3982. $as_echo "no" >&6; }
  3983. fi
  3984. test -n "$ac_ct_DUMPBIN" && break
  3985. done
  3986. if test "x$ac_ct_DUMPBIN" = x; then
  3987. DUMPBIN=":"
  3988. else
  3989. case $cross_compiling:$ac_tool_warned in
  3990. yes:)
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3993. ac_tool_warned=yes ;;
  3994. esac
  3995. DUMPBIN=$ac_ct_DUMPBIN
  3996. fi
  3997. fi
  3998. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3999. *COFF*)
  4000. DUMPBIN="$DUMPBIN -symbols -headers"
  4001. ;;
  4002. *)
  4003. DUMPBIN=:
  4004. ;;
  4005. esac
  4006. fi
  4007. if test : != "$DUMPBIN"; then
  4008. NM=$DUMPBIN
  4009. fi
  4010. fi
  4011. test -z "$NM" && NM=nm
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4013. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4014. if ${lt_cv_nm_interface+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. lt_cv_nm_interface="BSD nm"
  4018. echo "int some_variable = 0;" > conftest.$ac_ext
  4019. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4020. (eval "$ac_compile" 2>conftest.err)
  4021. cat conftest.err >&5
  4022. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4023. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4024. cat conftest.err >&5
  4025. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4026. cat conftest.out >&5
  4027. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4028. lt_cv_nm_interface="MS dumpbin"
  4029. fi
  4030. rm -f conftest*
  4031. fi
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4033. $as_echo "$lt_cv_nm_interface" >&6; }
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4035. $as_echo_n "checking whether ln -s works... " >&6; }
  4036. LN_S=$as_ln_s
  4037. if test "$LN_S" = "ln -s"; then
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4039. $as_echo "yes" >&6; }
  4040. else
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4042. $as_echo "no, using $LN_S" >&6; }
  4043. fi
  4044. # find the maximum length of command line arguments
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4046. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4047. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. i=0
  4051. teststring=ABCD
  4052. case $build_os in
  4053. msdosdjgpp*)
  4054. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4055. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4056. # during glob expansion). Even if it were fixed, the result of this
  4057. # check would be larger than it should be.
  4058. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4059. ;;
  4060. gnu*)
  4061. # Under GNU Hurd, this test is not required because there is
  4062. # no limit to the length of command line arguments.
  4063. # Libtool will interpret -1 as no limit whatsoever
  4064. lt_cv_sys_max_cmd_len=-1;
  4065. ;;
  4066. cygwin* | mingw* | cegcc*)
  4067. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4068. # about 5 minutes as the teststring grows exponentially.
  4069. # Worse, since 9x/ME are not pre-emptively multitasking,
  4070. # you end up with a "frozen" computer, even though with patience
  4071. # the test eventually succeeds (with a max line length of 256k).
  4072. # Instead, let's just punt: use the minimum linelength reported by
  4073. # all of the supported platforms: 8192 (on NT/2K/XP).
  4074. lt_cv_sys_max_cmd_len=8192;
  4075. ;;
  4076. mint*)
  4077. # On MiNT this can take a long time and run out of memory.
  4078. lt_cv_sys_max_cmd_len=8192;
  4079. ;;
  4080. amigaos*)
  4081. # On AmigaOS with pdksh, this test takes hours, literally.
  4082. # So we just punt and use a minimum line length of 8192.
  4083. lt_cv_sys_max_cmd_len=8192;
  4084. ;;
  4085. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4086. # This has been around since 386BSD, at least. Likely further.
  4087. if test -x /sbin/sysctl; then
  4088. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4089. elif test -x /usr/sbin/sysctl; then
  4090. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4091. else
  4092. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4093. fi
  4094. # And add a safety zone
  4095. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4096. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4097. ;;
  4098. interix*)
  4099. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4100. lt_cv_sys_max_cmd_len=196608
  4101. ;;
  4102. os2*)
  4103. # The test takes a long time on OS/2.
  4104. lt_cv_sys_max_cmd_len=8192
  4105. ;;
  4106. osf*)
  4107. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4108. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4109. # nice to cause kernel panics so lets avoid the loop below.
  4110. # First set a reasonable default.
  4111. lt_cv_sys_max_cmd_len=16384
  4112. #
  4113. if test -x /sbin/sysconfig; then
  4114. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4115. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4116. esac
  4117. fi
  4118. ;;
  4119. sco3.2v5*)
  4120. lt_cv_sys_max_cmd_len=102400
  4121. ;;
  4122. sysv5* | sco5v6* | sysv4.2uw2*)
  4123. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4124. if test -n "$kargmax"; then
  4125. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4126. else
  4127. lt_cv_sys_max_cmd_len=32768
  4128. fi
  4129. ;;
  4130. *)
  4131. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4132. if test -n "$lt_cv_sys_max_cmd_len" && \
  4133. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4135. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4136. else
  4137. # Make teststring a little bigger before we do anything with it.
  4138. # a 1K string should be a reasonable start.
  4139. for i in 1 2 3 4 5 6 7 8; do
  4140. teststring=$teststring$teststring
  4141. done
  4142. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4143. # If test is not a shell built-in, we'll probably end up computing a
  4144. # maximum length that is only half of the actual maximum length, but
  4145. # we can't tell.
  4146. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4147. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4148. test 17 != "$i" # 1/2 MB should be enough
  4149. do
  4150. i=`expr $i + 1`
  4151. teststring=$teststring$teststring
  4152. done
  4153. # Only check the string length outside the loop.
  4154. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4155. teststring=
  4156. # Add a significant safety factor because C++ compilers can tack on
  4157. # massive amounts of additional arguments before passing them to the
  4158. # linker. It appears as though 1/2 is a usable value.
  4159. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4160. fi
  4161. ;;
  4162. esac
  4163. fi
  4164. if test -n "$lt_cv_sys_max_cmd_len"; then
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4166. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4167. else
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4169. $as_echo "none" >&6; }
  4170. fi
  4171. max_cmd_len=$lt_cv_sys_max_cmd_len
  4172. : ${CP="cp -f"}
  4173. : ${MV="mv -f"}
  4174. : ${RM="rm -f"}
  4175. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4176. lt_unset=unset
  4177. else
  4178. lt_unset=false
  4179. fi
  4180. # test EBCDIC or ASCII
  4181. case `echo X|tr X '\101'` in
  4182. A) # ASCII based system
  4183. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4184. lt_SP2NL='tr \040 \012'
  4185. lt_NL2SP='tr \015\012 \040\040'
  4186. ;;
  4187. *) # EBCDIC based system
  4188. lt_SP2NL='tr \100 \n'
  4189. lt_NL2SP='tr \r\n \100\100'
  4190. ;;
  4191. esac
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4193. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4194. if ${lt_cv_to_host_file_cmd+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. case $host in
  4198. *-*-mingw* )
  4199. case $build in
  4200. *-*-mingw* ) # actually msys
  4201. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4202. ;;
  4203. *-*-cygwin* )
  4204. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4205. ;;
  4206. * ) # otherwise, assume *nix
  4207. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4208. ;;
  4209. esac
  4210. ;;
  4211. *-*-cygwin* )
  4212. case $build in
  4213. *-*-mingw* ) # actually msys
  4214. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4215. ;;
  4216. *-*-cygwin* )
  4217. lt_cv_to_host_file_cmd=func_convert_file_noop
  4218. ;;
  4219. * ) # otherwise, assume *nix
  4220. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4221. ;;
  4222. esac
  4223. ;;
  4224. * ) # unhandled hosts (and "normal" native builds)
  4225. lt_cv_to_host_file_cmd=func_convert_file_noop
  4226. ;;
  4227. esac
  4228. fi
  4229. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4231. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4233. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4234. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. #assume ordinary cross tools, or native build.
  4238. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4239. case $host in
  4240. *-*-mingw* )
  4241. case $build in
  4242. *-*-mingw* ) # actually msys
  4243. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4244. ;;
  4245. esac
  4246. ;;
  4247. esac
  4248. fi
  4249. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4251. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4253. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4254. if ${lt_cv_ld_reload_flag+:} false; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. lt_cv_ld_reload_flag='-r'
  4258. fi
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4260. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4261. reload_flag=$lt_cv_ld_reload_flag
  4262. case $reload_flag in
  4263. "" | " "*) ;;
  4264. *) reload_flag=" $reload_flag" ;;
  4265. esac
  4266. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4267. case $host_os in
  4268. cygwin* | mingw* | pw32* | cegcc*)
  4269. if test yes != "$GCC"; then
  4270. reload_cmds=false
  4271. fi
  4272. ;;
  4273. darwin*)
  4274. if test yes = "$GCC"; then
  4275. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4276. else
  4277. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4278. fi
  4279. ;;
  4280. esac
  4281. if test -n "$ac_tool_prefix"; then
  4282. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4283. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4285. $as_echo_n "checking for $ac_word... " >&6; }
  4286. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. if test -n "$OBJDUMP"; then
  4290. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4291. else
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH
  4294. do
  4295. IFS=$as_save_IFS
  4296. test -z "$as_dir" && as_dir=.
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4299. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4301. break 2
  4302. fi
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. fi
  4307. fi
  4308. OBJDUMP=$ac_cv_prog_OBJDUMP
  4309. if test -n "$OBJDUMP"; then
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4311. $as_echo "$OBJDUMP" >&6; }
  4312. else
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4314. $as_echo "no" >&6; }
  4315. fi
  4316. fi
  4317. if test -z "$ac_cv_prog_OBJDUMP"; then
  4318. ac_ct_OBJDUMP=$OBJDUMP
  4319. # Extract the first word of "objdump", so it can be a program name with args.
  4320. set dummy objdump; ac_word=$2
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4322. $as_echo_n "checking for $ac_word... " >&6; }
  4323. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test -n "$ac_ct_OBJDUMP"; then
  4327. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4328. else
  4329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4330. for as_dir in $PATH
  4331. do
  4332. IFS=$as_save_IFS
  4333. test -z "$as_dir" && as_dir=.
  4334. for ac_exec_ext in '' $ac_executable_extensions; do
  4335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4336. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4338. break 2
  4339. fi
  4340. done
  4341. done
  4342. IFS=$as_save_IFS
  4343. fi
  4344. fi
  4345. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4346. if test -n "$ac_ct_OBJDUMP"; then
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4348. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4349. else
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4351. $as_echo "no" >&6; }
  4352. fi
  4353. if test "x$ac_ct_OBJDUMP" = x; then
  4354. OBJDUMP="false"
  4355. else
  4356. case $cross_compiling:$ac_tool_warned in
  4357. yes:)
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4360. ac_tool_warned=yes ;;
  4361. esac
  4362. OBJDUMP=$ac_ct_OBJDUMP
  4363. fi
  4364. else
  4365. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4366. fi
  4367. test -z "$OBJDUMP" && OBJDUMP=objdump
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4369. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4370. if ${lt_cv_deplibs_check_method+:} false; then :
  4371. $as_echo_n "(cached) " >&6
  4372. else
  4373. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4374. lt_cv_file_magic_test_file=
  4375. lt_cv_deplibs_check_method='unknown'
  4376. # Need to set the preceding variable on all platforms that support
  4377. # interlibrary dependencies.
  4378. # 'none' -- dependencies not supported.
  4379. # 'unknown' -- same as none, but documents that we really don't know.
  4380. # 'pass_all' -- all dependencies passed with no checks.
  4381. # 'test_compile' -- check by making test program.
  4382. # 'file_magic [[regex]]' -- check by looking for files in library path
  4383. # that responds to the $file_magic_cmd with a given extended regex.
  4384. # If you have 'file' or equivalent on your system and you're not sure
  4385. # whether 'pass_all' will *always* work, you probably want this one.
  4386. case $host_os in
  4387. aix[4-9]*)
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. beos*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. bsdi[45]*)
  4394. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4395. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4396. lt_cv_file_magic_test_file=/shlib/libc.so
  4397. ;;
  4398. cygwin*)
  4399. # func_win32_libid is a shell function defined in ltmain.sh
  4400. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4401. lt_cv_file_magic_cmd='func_win32_libid'
  4402. lt_cv_deplibs_check_method=pass_all # SDL customization
  4403. ;;
  4404. mingw* | pw32*)
  4405. # Base MSYS/MinGW do not provide the 'file' command needed by
  4406. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4407. # unless we find 'file', for example because we are cross-compiling.
  4408. if ( file / ) >/dev/null 2>&1; then
  4409. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4410. lt_cv_file_magic_cmd='func_win32_libid'
  4411. else
  4412. # Keep this pattern in sync with the one in func_win32_libid.
  4413. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4414. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4415. fi
  4416. lt_cv_deplibs_check_method=pass_all # SDL customization
  4417. ;;
  4418. cegcc*)
  4419. # use the weaker test based on 'objdump'. See mingw*.
  4420. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4421. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4422. ;;
  4423. darwin* | rhapsody*)
  4424. lt_cv_deplibs_check_method=pass_all
  4425. ;;
  4426. freebsd* | dragonfly* | midnightbsd*)
  4427. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4428. case $host_cpu in
  4429. i*86 )
  4430. # Not sure whether the presence of OpenBSD here was a mistake.
  4431. # Let's accept both of them until this is cleared up.
  4432. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4433. lt_cv_file_magic_cmd=/usr/bin/file
  4434. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4435. ;;
  4436. esac
  4437. else
  4438. lt_cv_deplibs_check_method=pass_all
  4439. fi
  4440. ;;
  4441. haiku*)
  4442. lt_cv_deplibs_check_method=pass_all
  4443. ;;
  4444. hpux10.20* | hpux11*)
  4445. lt_cv_file_magic_cmd=/usr/bin/file
  4446. case $host_cpu in
  4447. ia64*)
  4448. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4449. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4450. ;;
  4451. hppa*64*)
  4452. 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]'
  4453. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4454. ;;
  4455. *)
  4456. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4457. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4458. ;;
  4459. esac
  4460. ;;
  4461. interix[3-9]*)
  4462. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4464. ;;
  4465. irix5* | irix6* | nonstopux*)
  4466. case $LD in
  4467. *-32|*"-32 ") libmagic=32-bit;;
  4468. *-n32|*"-n32 ") libmagic=N32;;
  4469. *-64|*"-64 ") libmagic=64-bit;;
  4470. *) libmagic=never-match;;
  4471. esac
  4472. lt_cv_deplibs_check_method=pass_all
  4473. ;;
  4474. # This must be glibc/ELF.
  4475. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. netbsd*)
  4479. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4481. else
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4483. fi
  4484. ;;
  4485. newos6*)
  4486. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4487. lt_cv_file_magic_cmd=/usr/bin/file
  4488. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4489. ;;
  4490. *nto* | *qnx*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. openbsd* | bitrig*)
  4494. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4495. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4496. else
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4498. fi
  4499. ;;
  4500. osf3* | osf4* | osf5*)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. rdos*)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. solaris*)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. sysv4 | sysv4.3*)
  4513. case $host_vendor in
  4514. motorola)
  4515. 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]'
  4516. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4517. ;;
  4518. ncr)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. sequent)
  4522. lt_cv_file_magic_cmd='/bin/file'
  4523. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4524. ;;
  4525. sni)
  4526. lt_cv_file_magic_cmd='/bin/file'
  4527. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4528. lt_cv_file_magic_test_file=/lib/libc.so
  4529. ;;
  4530. siemens)
  4531. lt_cv_deplibs_check_method=pass_all
  4532. ;;
  4533. pc)
  4534. lt_cv_deplibs_check_method=pass_all
  4535. ;;
  4536. esac
  4537. ;;
  4538. tpf*)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. os2*)
  4542. lt_cv_deplibs_check_method=pass_all
  4543. ;;
  4544. esac
  4545. fi
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4547. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4548. file_magic_glob=
  4549. want_nocaseglob=no
  4550. if test "$build" = "$host"; then
  4551. case $host_os in
  4552. mingw* | pw32*)
  4553. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4554. want_nocaseglob=yes
  4555. else
  4556. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4557. fi
  4558. ;;
  4559. esac
  4560. fi
  4561. file_magic_cmd=$lt_cv_file_magic_cmd
  4562. deplibs_check_method=$lt_cv_deplibs_check_method
  4563. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4564. if test -n "$ac_tool_prefix"; then
  4565. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4566. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4568. $as_echo_n "checking for $ac_word... " >&6; }
  4569. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. if test -n "$DLLTOOL"; then
  4573. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4574. else
  4575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4576. for as_dir in $PATH
  4577. do
  4578. IFS=$as_save_IFS
  4579. test -z "$as_dir" && as_dir=.
  4580. for ac_exec_ext in '' $ac_executable_extensions; do
  4581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4582. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4584. break 2
  4585. fi
  4586. done
  4587. done
  4588. IFS=$as_save_IFS
  4589. fi
  4590. fi
  4591. DLLTOOL=$ac_cv_prog_DLLTOOL
  4592. if test -n "$DLLTOOL"; then
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4594. $as_echo "$DLLTOOL" >&6; }
  4595. else
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4597. $as_echo "no" >&6; }
  4598. fi
  4599. fi
  4600. if test -z "$ac_cv_prog_DLLTOOL"; then
  4601. ac_ct_DLLTOOL=$DLLTOOL
  4602. # Extract the first word of "dlltool", so it can be a program name with args.
  4603. set dummy dlltool; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$ac_ct_DLLTOOL"; then
  4610. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4619. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4629. if test -n "$ac_ct_DLLTOOL"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4631. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. if test "x$ac_ct_DLLTOOL" = x; then
  4637. DLLTOOL="false"
  4638. else
  4639. case $cross_compiling:$ac_tool_warned in
  4640. yes:)
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4643. ac_tool_warned=yes ;;
  4644. esac
  4645. DLLTOOL=$ac_ct_DLLTOOL
  4646. fi
  4647. else
  4648. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4649. fi
  4650. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4652. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4653. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4657. case $host_os in
  4658. cygwin* | mingw* | pw32* | cegcc*)
  4659. # two different shell functions defined in ltmain.sh;
  4660. # decide which one to use based on capabilities of $DLLTOOL
  4661. case `$DLLTOOL --help 2>&1` in
  4662. *--identify-strict*)
  4663. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4664. ;;
  4665. *)
  4666. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4667. ;;
  4668. esac
  4669. ;;
  4670. *)
  4671. # fallback: assume linklib IS sharedlib
  4672. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4673. ;;
  4674. esac
  4675. fi
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4677. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4678. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4679. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4680. if test -n "$ac_tool_prefix"; then
  4681. for ac_prog in ar
  4682. do
  4683. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4684. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4686. $as_echo_n "checking for $ac_word... " >&6; }
  4687. if ${ac_cv_prog_AR+:} false; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. if test -n "$AR"; then
  4691. ac_cv_prog_AR="$AR" # Let the user override the test.
  4692. else
  4693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4694. for as_dir in $PATH
  4695. do
  4696. IFS=$as_save_IFS
  4697. test -z "$as_dir" && as_dir=.
  4698. for ac_exec_ext in '' $ac_executable_extensions; do
  4699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4700. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4702. break 2
  4703. fi
  4704. done
  4705. done
  4706. IFS=$as_save_IFS
  4707. fi
  4708. fi
  4709. AR=$ac_cv_prog_AR
  4710. if test -n "$AR"; then
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4712. $as_echo "$AR" >&6; }
  4713. else
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4715. $as_echo "no" >&6; }
  4716. fi
  4717. test -n "$AR" && break
  4718. done
  4719. fi
  4720. if test -z "$AR"; then
  4721. ac_ct_AR=$AR
  4722. for ac_prog in ar
  4723. do
  4724. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4725. set dummy $ac_prog; ac_word=$2
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4727. $as_echo_n "checking for $ac_word... " >&6; }
  4728. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4729. $as_echo_n "(cached) " >&6
  4730. else
  4731. if test -n "$ac_ct_AR"; then
  4732. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4733. else
  4734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4735. for as_dir in $PATH
  4736. do
  4737. IFS=$as_save_IFS
  4738. test -z "$as_dir" && as_dir=.
  4739. for ac_exec_ext in '' $ac_executable_extensions; do
  4740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4741. ac_cv_prog_ac_ct_AR="$ac_prog"
  4742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4743. break 2
  4744. fi
  4745. done
  4746. done
  4747. IFS=$as_save_IFS
  4748. fi
  4749. fi
  4750. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4751. if test -n "$ac_ct_AR"; then
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4753. $as_echo "$ac_ct_AR" >&6; }
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. $as_echo "no" >&6; }
  4757. fi
  4758. test -n "$ac_ct_AR" && break
  4759. done
  4760. if test "x$ac_ct_AR" = x; then
  4761. AR="false"
  4762. else
  4763. case $cross_compiling:$ac_tool_warned in
  4764. yes:)
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4767. ac_tool_warned=yes ;;
  4768. esac
  4769. AR=$ac_ct_AR
  4770. fi
  4771. fi
  4772. : ${AR=ar}
  4773. : ${AR_FLAGS=cru}
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4775. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4776. if ${lt_cv_ar_at_file+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. lt_cv_ar_at_file=no
  4780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4781. /* end confdefs.h. */
  4782. int
  4783. main ()
  4784. {
  4785. ;
  4786. return 0;
  4787. }
  4788. _ACEOF
  4789. if ac_fn_c_try_compile "$LINENO"; then :
  4790. echo conftest.$ac_objext > conftest.lst
  4791. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4792. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4793. (eval $lt_ar_try) 2>&5
  4794. ac_status=$?
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4796. test $ac_status = 0; }
  4797. if test 0 -eq "$ac_status"; then
  4798. # Ensure the archiver fails upon bogus file names.
  4799. rm -f conftest.$ac_objext libconftest.a
  4800. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4801. (eval $lt_ar_try) 2>&5
  4802. ac_status=$?
  4803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4804. test $ac_status = 0; }
  4805. if test 0 -ne "$ac_status"; then
  4806. lt_cv_ar_at_file=@
  4807. fi
  4808. fi
  4809. rm -f conftest.* libconftest.a
  4810. fi
  4811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4812. fi
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4814. $as_echo "$lt_cv_ar_at_file" >&6; }
  4815. if test no = "$lt_cv_ar_at_file"; then
  4816. archiver_list_spec=
  4817. else
  4818. archiver_list_spec=$lt_cv_ar_at_file
  4819. fi
  4820. if test -n "$ac_tool_prefix"; then
  4821. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4822. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4824. $as_echo_n "checking for $ac_word... " >&6; }
  4825. if ${ac_cv_prog_STRIP+:} false; then :
  4826. $as_echo_n "(cached) " >&6
  4827. else
  4828. if test -n "$STRIP"; then
  4829. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4830. else
  4831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4832. for as_dir in $PATH
  4833. do
  4834. IFS=$as_save_IFS
  4835. test -z "$as_dir" && as_dir=.
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4838. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4840. break 2
  4841. fi
  4842. done
  4843. done
  4844. IFS=$as_save_IFS
  4845. fi
  4846. fi
  4847. STRIP=$ac_cv_prog_STRIP
  4848. if test -n "$STRIP"; then
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4850. $as_echo "$STRIP" >&6; }
  4851. else
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4853. $as_echo "no" >&6; }
  4854. fi
  4855. fi
  4856. if test -z "$ac_cv_prog_STRIP"; then
  4857. ac_ct_STRIP=$STRIP
  4858. # Extract the first word of "strip", so it can be a program name with args.
  4859. set dummy strip; ac_word=$2
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4861. $as_echo_n "checking for $ac_word... " >&6; }
  4862. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4863. $as_echo_n "(cached) " >&6
  4864. else
  4865. if test -n "$ac_ct_STRIP"; then
  4866. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4867. else
  4868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4869. for as_dir in $PATH
  4870. do
  4871. IFS=$as_save_IFS
  4872. test -z "$as_dir" && as_dir=.
  4873. for ac_exec_ext in '' $ac_executable_extensions; do
  4874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4875. ac_cv_prog_ac_ct_STRIP="strip"
  4876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4877. break 2
  4878. fi
  4879. done
  4880. done
  4881. IFS=$as_save_IFS
  4882. fi
  4883. fi
  4884. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4885. if test -n "$ac_ct_STRIP"; then
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4887. $as_echo "$ac_ct_STRIP" >&6; }
  4888. else
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4890. $as_echo "no" >&6; }
  4891. fi
  4892. if test "x$ac_ct_STRIP" = x; then
  4893. STRIP=":"
  4894. else
  4895. case $cross_compiling:$ac_tool_warned in
  4896. yes:)
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4898. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4899. ac_tool_warned=yes ;;
  4900. esac
  4901. STRIP=$ac_ct_STRIP
  4902. fi
  4903. else
  4904. STRIP="$ac_cv_prog_STRIP"
  4905. fi
  4906. test -z "$STRIP" && STRIP=:
  4907. if test -n "$ac_tool_prefix"; then
  4908. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4909. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4911. $as_echo_n "checking for $ac_word... " >&6; }
  4912. if ${ac_cv_prog_RANLIB+:} false; then :
  4913. $as_echo_n "(cached) " >&6
  4914. else
  4915. if test -n "$RANLIB"; then
  4916. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4917. else
  4918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4919. for as_dir in $PATH
  4920. do
  4921. IFS=$as_save_IFS
  4922. test -z "$as_dir" && as_dir=.
  4923. for ac_exec_ext in '' $ac_executable_extensions; do
  4924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4925. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4927. break 2
  4928. fi
  4929. done
  4930. done
  4931. IFS=$as_save_IFS
  4932. fi
  4933. fi
  4934. RANLIB=$ac_cv_prog_RANLIB
  4935. if test -n "$RANLIB"; then
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4937. $as_echo "$RANLIB" >&6; }
  4938. else
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4940. $as_echo "no" >&6; }
  4941. fi
  4942. fi
  4943. if test -z "$ac_cv_prog_RANLIB"; then
  4944. ac_ct_RANLIB=$RANLIB
  4945. # Extract the first word of "ranlib", so it can be a program name with args.
  4946. set dummy ranlib; ac_word=$2
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4948. $as_echo_n "checking for $ac_word... " >&6; }
  4949. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4950. $as_echo_n "(cached) " >&6
  4951. else
  4952. if test -n "$ac_ct_RANLIB"; then
  4953. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4954. else
  4955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4956. for as_dir in $PATH
  4957. do
  4958. IFS=$as_save_IFS
  4959. test -z "$as_dir" && as_dir=.
  4960. for ac_exec_ext in '' $ac_executable_extensions; do
  4961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4962. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4964. break 2
  4965. fi
  4966. done
  4967. done
  4968. IFS=$as_save_IFS
  4969. fi
  4970. fi
  4971. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4972. if test -n "$ac_ct_RANLIB"; then
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4974. $as_echo "$ac_ct_RANLIB" >&6; }
  4975. else
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4977. $as_echo "no" >&6; }
  4978. fi
  4979. if test "x$ac_ct_RANLIB" = x; then
  4980. RANLIB=":"
  4981. else
  4982. case $cross_compiling:$ac_tool_warned in
  4983. yes:)
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4986. ac_tool_warned=yes ;;
  4987. esac
  4988. RANLIB=$ac_ct_RANLIB
  4989. fi
  4990. else
  4991. RANLIB="$ac_cv_prog_RANLIB"
  4992. fi
  4993. test -z "$RANLIB" && RANLIB=:
  4994. # Determine commands to create old-style static archives.
  4995. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4996. old_postinstall_cmds='chmod 644 $oldlib'
  4997. old_postuninstall_cmds=
  4998. if test -n "$RANLIB"; then
  4999. case $host_os in
  5000. bitrig* | openbsd*)
  5001. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5002. ;;
  5003. *)
  5004. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5005. ;;
  5006. esac
  5007. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5008. fi
  5009. case $host_os in
  5010. darwin*)
  5011. lock_old_archive_extraction=yes ;;
  5012. *)
  5013. lock_old_archive_extraction=no ;;
  5014. esac
  5015. for ac_prog in gawk mawk nawk awk
  5016. do
  5017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5018. set dummy $ac_prog; ac_word=$2
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5020. $as_echo_n "checking for $ac_word... " >&6; }
  5021. if ${ac_cv_prog_AWK+:} false; then :
  5022. $as_echo_n "(cached) " >&6
  5023. else
  5024. if test -n "$AWK"; then
  5025. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5026. else
  5027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5028. for as_dir in $PATH
  5029. do
  5030. IFS=$as_save_IFS
  5031. test -z "$as_dir" && as_dir=.
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5034. ac_cv_prog_AWK="$ac_prog"
  5035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. AWK=$ac_cv_prog_AWK
  5044. if test -n "$AWK"; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5046. $as_echo "$AWK" >&6; }
  5047. else
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5049. $as_echo "no" >&6; }
  5050. fi
  5051. test -n "$AWK" && break
  5052. done
  5053. # If no C compiler was specified, use CC.
  5054. LTCC=${LTCC-"$CC"}
  5055. # If no C compiler flags were specified, use CFLAGS.
  5056. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5057. # Allow CC to be a program name with arguments.
  5058. compiler=$CC
  5059. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5061. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5062. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5063. $as_echo_n "(cached) " >&6
  5064. else
  5065. # These are sane defaults that work on at least a few old systems.
  5066. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5067. # Character class describing NM global symbol codes.
  5068. symcode='[BCDEGRST]'
  5069. # Regexp to match symbols that can be accessed directly from C.
  5070. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5071. # Define system-specific variables.
  5072. case $host_os in
  5073. aix*)
  5074. symcode='[BCDT]'
  5075. ;;
  5076. cygwin* | mingw* | pw32* | cegcc*)
  5077. symcode='[ABCDGISTW]'
  5078. ;;
  5079. hpux*)
  5080. if test ia64 = "$host_cpu"; then
  5081. symcode='[ABCDEGRST]'
  5082. fi
  5083. ;;
  5084. irix* | nonstopux*)
  5085. symcode='[BCDEGRST]'
  5086. ;;
  5087. osf*)
  5088. symcode='[BCDEGQRST]'
  5089. ;;
  5090. solaris*)
  5091. symcode='[BCDRT]'
  5092. ;;
  5093. sco3.2v5*)
  5094. symcode='[DT]'
  5095. ;;
  5096. sysv4.2uw2*)
  5097. symcode='[DT]'
  5098. ;;
  5099. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5100. symcode='[ABDT]'
  5101. ;;
  5102. sysv4)
  5103. symcode='[DFNSTU]'
  5104. ;;
  5105. esac
  5106. # If we're using GNU nm, then use its standard symbol codes.
  5107. case `$NM -V 2>&1` in
  5108. *GNU* | *'with BFD'*)
  5109. symcode='[ABCDGIRSTW]' ;;
  5110. esac
  5111. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5112. # Gets list of data symbols to import.
  5113. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5114. # Adjust the below global symbol transforms to fixup imported variables.
  5115. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5116. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5117. lt_c_name_lib_hook="\
  5118. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5119. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5120. else
  5121. # Disable hooks by default.
  5122. lt_cv_sys_global_symbol_to_import=
  5123. lt_cdecl_hook=
  5124. lt_c_name_hook=
  5125. lt_c_name_lib_hook=
  5126. fi
  5127. # Transform an extracted symbol line into a proper C declaration.
  5128. # Some systems (esp. on ia64) link data and code symbols differently,
  5129. # so use this general approach.
  5130. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5131. $lt_cdecl_hook\
  5132. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5133. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5134. # Transform an extracted symbol line into symbol name and symbol address
  5135. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5136. $lt_c_name_hook\
  5137. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5138. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5139. # Transform an extracted symbol line into symbol name with lib prefix and
  5140. # symbol address.
  5141. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5142. $lt_c_name_lib_hook\
  5143. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5144. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5145. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5146. # Handle CRLF in mingw tool chain
  5147. opt_cr=
  5148. case $build_os in
  5149. mingw*)
  5150. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5151. ;;
  5152. esac
  5153. # Try without a prefix underscore, then with it.
  5154. for ac_symprfx in "" "_"; do
  5155. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5156. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5157. # Write the raw and C identifiers.
  5158. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5159. # Fake it for dumpbin and say T for any non-static function,
  5160. # D for any global variable and I for any imported variable.
  5161. # Also find C++ and __fastcall symbols from MSVC++,
  5162. # which start with @ or ?.
  5163. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5164. " {last_section=section; section=\$ 3};"\
  5165. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5166. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5167. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5168. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5169. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5170. " \$ 0!~/External *\|/{next};"\
  5171. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5172. " {if(hide[section]) next};"\
  5173. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5174. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5175. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5176. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5177. " ' prfx=^$ac_symprfx"
  5178. else
  5179. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5180. fi
  5181. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5182. # Check to see that the pipe works correctly.
  5183. pipe_works=no
  5184. rm -f conftest*
  5185. cat > conftest.$ac_ext <<_LT_EOF
  5186. #ifdef __cplusplus
  5187. extern "C" {
  5188. #endif
  5189. char nm_test_var;
  5190. void nm_test_func(void);
  5191. void nm_test_func(void){}
  5192. #ifdef __cplusplus
  5193. }
  5194. #endif
  5195. int main(){nm_test_var='a';nm_test_func();return(0);}
  5196. _LT_EOF
  5197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5198. (eval $ac_compile) 2>&5
  5199. ac_status=$?
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5201. test $ac_status = 0; }; then
  5202. # Now try to grab the symbols.
  5203. nlist=conftest.nm
  5204. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5205. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5206. ac_status=$?
  5207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5208. test $ac_status = 0; } && test -s "$nlist"; then
  5209. # Try sorting and uniquifying the output.
  5210. if sort "$nlist" | uniq > "$nlist"T; then
  5211. mv -f "$nlist"T "$nlist"
  5212. else
  5213. rm -f "$nlist"T
  5214. fi
  5215. # Make sure that we snagged all the symbols we need.
  5216. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5217. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5218. cat <<_LT_EOF > conftest.$ac_ext
  5219. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5220. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5221. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5222. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5223. # define LT_DLSYM_CONST
  5224. #elif defined __osf__
  5225. /* This system does not cope well with relocations in const data. */
  5226. # define LT_DLSYM_CONST
  5227. #else
  5228. # define LT_DLSYM_CONST const
  5229. #endif
  5230. #ifdef __cplusplus
  5231. extern "C" {
  5232. #endif
  5233. _LT_EOF
  5234. # Now generate the symbol file.
  5235. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5236. cat <<_LT_EOF >> conftest.$ac_ext
  5237. /* The mapping between symbol names and symbols. */
  5238. LT_DLSYM_CONST struct {
  5239. const char *name;
  5240. void *address;
  5241. }
  5242. lt__PROGRAM__LTX_preloaded_symbols[] =
  5243. {
  5244. { "@PROGRAM@", (void *) 0 },
  5245. _LT_EOF
  5246. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5247. cat <<\_LT_EOF >> conftest.$ac_ext
  5248. {0, (void *) 0}
  5249. };
  5250. /* This works around a problem in FreeBSD linker */
  5251. #ifdef FREEBSD_WORKAROUND
  5252. static const void *lt_preloaded_setup() {
  5253. return lt__PROGRAM__LTX_preloaded_symbols;
  5254. }
  5255. #endif
  5256. #ifdef __cplusplus
  5257. }
  5258. #endif
  5259. _LT_EOF
  5260. # Now try linking the two files.
  5261. mv conftest.$ac_objext conftstm.$ac_objext
  5262. lt_globsym_save_LIBS=$LIBS
  5263. lt_globsym_save_CFLAGS=$CFLAGS
  5264. LIBS=conftstm.$ac_objext
  5265. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5266. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5267. (eval $ac_link) 2>&5
  5268. ac_status=$?
  5269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5270. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5271. pipe_works=yes
  5272. fi
  5273. LIBS=$lt_globsym_save_LIBS
  5274. CFLAGS=$lt_globsym_save_CFLAGS
  5275. else
  5276. echo "cannot find nm_test_func in $nlist" >&5
  5277. fi
  5278. else
  5279. echo "cannot find nm_test_var in $nlist" >&5
  5280. fi
  5281. else
  5282. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5283. fi
  5284. else
  5285. echo "$progname: failed program was:" >&5
  5286. cat conftest.$ac_ext >&5
  5287. fi
  5288. rm -rf conftest* conftst*
  5289. # Do not use the global_symbol_pipe unless it works.
  5290. if test yes = "$pipe_works"; then
  5291. break
  5292. else
  5293. lt_cv_sys_global_symbol_pipe=
  5294. fi
  5295. done
  5296. fi
  5297. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5298. lt_cv_sys_global_symbol_to_cdecl=
  5299. fi
  5300. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5302. $as_echo "failed" >&6; }
  5303. else
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5305. $as_echo "ok" >&6; }
  5306. fi
  5307. # Response file support.
  5308. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5309. nm_file_list_spec='@'
  5310. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5311. nm_file_list_spec='@'
  5312. fi
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5314. $as_echo_n "checking for sysroot... " >&6; }
  5315. # Check whether --with-sysroot was given.
  5316. if test "${with_sysroot+set}" = set; then :
  5317. withval=$with_sysroot;
  5318. else
  5319. with_sysroot=no
  5320. fi
  5321. lt_sysroot=
  5322. case $with_sysroot in #(
  5323. yes)
  5324. if test yes = "$GCC"; then
  5325. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5326. fi
  5327. ;; #(
  5328. /*)
  5329. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5330. ;; #(
  5331. no|'')
  5332. ;; #(
  5333. *)
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5335. $as_echo "$with_sysroot" >&6; }
  5336. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5337. ;;
  5338. esac
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5340. $as_echo "${lt_sysroot:-no}" >&6; }
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5342. $as_echo_n "checking for a working dd... " >&6; }
  5343. if ${ac_cv_path_lt_DD+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. printf 0123456789abcdef0123456789abcdef >conftest.i
  5347. cat conftest.i conftest.i >conftest2.i
  5348. : ${lt_DD:=$DD}
  5349. if test -z "$lt_DD"; then
  5350. ac_path_lt_DD_found=false
  5351. # Loop through the user's path and test for each of PROGNAME-LIST
  5352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5353. for as_dir in $PATH
  5354. do
  5355. IFS=$as_save_IFS
  5356. test -z "$as_dir" && as_dir=.
  5357. for ac_prog in dd; do
  5358. for ac_exec_ext in '' $ac_executable_extensions; do
  5359. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5360. as_fn_executable_p "$ac_path_lt_DD" || continue
  5361. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5362. cmp -s conftest.i conftest.out \
  5363. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5364. fi
  5365. $ac_path_lt_DD_found && break 3
  5366. done
  5367. done
  5368. done
  5369. IFS=$as_save_IFS
  5370. if test -z "$ac_cv_path_lt_DD"; then
  5371. :
  5372. fi
  5373. else
  5374. ac_cv_path_lt_DD=$lt_DD
  5375. fi
  5376. rm -f conftest.i conftest2.i conftest.out
  5377. fi
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5379. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5381. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5382. if ${lt_cv_truncate_bin+:} false; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. printf 0123456789abcdef0123456789abcdef >conftest.i
  5386. cat conftest.i conftest.i >conftest2.i
  5387. lt_cv_truncate_bin=
  5388. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5389. cmp -s conftest.i conftest.out \
  5390. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5391. fi
  5392. rm -f conftest.i conftest2.i conftest.out
  5393. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5394. fi
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5396. $as_echo "$lt_cv_truncate_bin" >&6; }
  5397. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5398. func_cc_basename ()
  5399. {
  5400. for cc_temp in $*""; do
  5401. case $cc_temp in
  5402. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5403. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5404. \-*) ;;
  5405. *) break;;
  5406. esac
  5407. done
  5408. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5409. }
  5410. # Check whether --enable-libtool-lock was given.
  5411. if test "${enable_libtool_lock+set}" = set; then :
  5412. enableval=$enable_libtool_lock;
  5413. fi
  5414. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5415. # Some flags need to be propagated to the compiler or linker for good
  5416. # libtool support.
  5417. case $host in
  5418. ia64-*-hpux*)
  5419. # Find out what ABI is being produced by ac_compile, and set mode
  5420. # options accordingly.
  5421. echo 'int i;' > conftest.$ac_ext
  5422. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5423. (eval $ac_compile) 2>&5
  5424. ac_status=$?
  5425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5426. test $ac_status = 0; }; then
  5427. case `/usr/bin/file conftest.$ac_objext` in
  5428. *ELF-32*)
  5429. HPUX_IA64_MODE=32
  5430. ;;
  5431. *ELF-64*)
  5432. HPUX_IA64_MODE=64
  5433. ;;
  5434. esac
  5435. fi
  5436. rm -rf conftest*
  5437. ;;
  5438. *-*-irix6*)
  5439. # Find out what ABI is being produced by ac_compile, and set linker
  5440. # options accordingly.
  5441. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5443. (eval $ac_compile) 2>&5
  5444. ac_status=$?
  5445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5446. test $ac_status = 0; }; then
  5447. if test yes = "$lt_cv_prog_gnu_ld"; then
  5448. case `/usr/bin/file conftest.$ac_objext` in
  5449. *32-bit*)
  5450. LD="${LD-ld} -melf32bsmip"
  5451. ;;
  5452. *N32*)
  5453. LD="${LD-ld} -melf32bmipn32"
  5454. ;;
  5455. *64-bit*)
  5456. LD="${LD-ld} -melf64bmip"
  5457. ;;
  5458. esac
  5459. else
  5460. case `/usr/bin/file conftest.$ac_objext` in
  5461. *32-bit*)
  5462. LD="${LD-ld} -32"
  5463. ;;
  5464. *N32*)
  5465. LD="${LD-ld} -n32"
  5466. ;;
  5467. *64-bit*)
  5468. LD="${LD-ld} -64"
  5469. ;;
  5470. esac
  5471. fi
  5472. fi
  5473. rm -rf conftest*
  5474. ;;
  5475. mips64*-*linux*)
  5476. # Find out what ABI is being produced by ac_compile, and set linker
  5477. # options accordingly.
  5478. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5480. (eval $ac_compile) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; }; then
  5484. emul=elf
  5485. case `/usr/bin/file conftest.$ac_objext` in
  5486. *32-bit*)
  5487. emul="${emul}32"
  5488. ;;
  5489. *64-bit*)
  5490. emul="${emul}64"
  5491. ;;
  5492. esac
  5493. case `/usr/bin/file conftest.$ac_objext` in
  5494. *MSB*)
  5495. emul="${emul}btsmip"
  5496. ;;
  5497. *LSB*)
  5498. emul="${emul}ltsmip"
  5499. ;;
  5500. esac
  5501. case `/usr/bin/file conftest.$ac_objext` in
  5502. *N32*)
  5503. emul="${emul}n32"
  5504. ;;
  5505. esac
  5506. LD="${LD-ld} -m $emul"
  5507. fi
  5508. rm -rf conftest*
  5509. ;;
  5510. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5511. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5512. # Find out what ABI is being produced by ac_compile, and set linker
  5513. # options accordingly. Note that the listed cases only cover the
  5514. # situations where additional linker options are needed (such as when
  5515. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5516. # vice versa); the common cases where no linker options are needed do
  5517. # not appear in the list.
  5518. echo 'int i;' > conftest.$ac_ext
  5519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5520. (eval $ac_compile) 2>&5
  5521. ac_status=$?
  5522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5523. test $ac_status = 0; }; then
  5524. case `/usr/bin/file conftest.o` in
  5525. *32-bit*)
  5526. case $host in
  5527. x86_64-*kfreebsd*-gnu)
  5528. LD="${LD-ld} -m elf_i386_fbsd"
  5529. ;;
  5530. x86_64-*linux*)
  5531. case `/usr/bin/file conftest.o` in
  5532. *x86-64*)
  5533. LD="${LD-ld} -m elf32_x86_64"
  5534. ;;
  5535. *)
  5536. LD="${LD-ld} -m elf_i386"
  5537. ;;
  5538. esac
  5539. ;;
  5540. powerpc64le-*linux*)
  5541. LD="${LD-ld} -m elf32lppclinux"
  5542. ;;
  5543. powerpc64-*linux*)
  5544. LD="${LD-ld} -m elf32ppclinux"
  5545. ;;
  5546. s390x-*linux*)
  5547. LD="${LD-ld} -m elf_s390"
  5548. ;;
  5549. sparc64-*linux*)
  5550. LD="${LD-ld} -m elf32_sparc"
  5551. ;;
  5552. esac
  5553. ;;
  5554. *64-bit*)
  5555. case $host in
  5556. x86_64-*kfreebsd*-gnu)
  5557. LD="${LD-ld} -m elf_x86_64_fbsd"
  5558. ;;
  5559. x86_64-*linux*)
  5560. LD="${LD-ld} -m elf_x86_64"
  5561. ;;
  5562. powerpcle-*linux*|powerpc64le-*linux*)
  5563. LD="${LD-ld} -m elf64lppc"
  5564. ;;
  5565. powerpc-*linux*|powerpc64-*linux*)
  5566. LD="${LD-ld} -m elf64ppc"
  5567. ;;
  5568. s390*-*linux*|s390*-*tpf*)
  5569. LD="${LD-ld} -m elf64_s390"
  5570. ;;
  5571. sparc*-*linux*)
  5572. LD="${LD-ld} -m elf64_sparc"
  5573. ;;
  5574. esac
  5575. ;;
  5576. esac
  5577. fi
  5578. rm -rf conftest*
  5579. ;;
  5580. *-*-sco3.2v5*)
  5581. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5582. SAVE_CFLAGS=$CFLAGS
  5583. CFLAGS="$CFLAGS -belf"
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5585. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5586. if ${lt_cv_cc_needs_belf+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. ac_ext=c
  5590. ac_cpp='$CPP $CPPFLAGS'
  5591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5595. /* end confdefs.h. */
  5596. int
  5597. main ()
  5598. {
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. if ac_fn_c_try_link "$LINENO"; then :
  5604. lt_cv_cc_needs_belf=yes
  5605. else
  5606. lt_cv_cc_needs_belf=no
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext \
  5609. conftest$ac_exeext conftest.$ac_ext
  5610. ac_ext=c
  5611. ac_cpp='$CPP $CPPFLAGS'
  5612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5615. fi
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5617. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5618. if test yes != "$lt_cv_cc_needs_belf"; then
  5619. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5620. CFLAGS=$SAVE_CFLAGS
  5621. fi
  5622. ;;
  5623. *-*solaris*)
  5624. # Find out what ABI is being produced by ac_compile, and set linker
  5625. # options accordingly.
  5626. echo 'int i;' > conftest.$ac_ext
  5627. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5628. (eval $ac_compile) 2>&5
  5629. ac_status=$?
  5630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5631. test $ac_status = 0; }; then
  5632. case `/usr/bin/file conftest.o` in
  5633. *64-bit*)
  5634. case $lt_cv_prog_gnu_ld in
  5635. yes*)
  5636. case $host in
  5637. i?86-*-solaris*|x86_64-*-solaris*)
  5638. LD="${LD-ld} -m elf_x86_64"
  5639. ;;
  5640. sparc*-*-solaris*)
  5641. LD="${LD-ld} -m elf64_sparc"
  5642. ;;
  5643. esac
  5644. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5645. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5646. LD=${LD-ld}_sol2
  5647. fi
  5648. ;;
  5649. *)
  5650. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5651. LD="${LD-ld} -64"
  5652. fi
  5653. ;;
  5654. esac
  5655. ;;
  5656. esac
  5657. fi
  5658. rm -rf conftest*
  5659. ;;
  5660. esac
  5661. need_locks=$enable_libtool_lock
  5662. if test -n "$ac_tool_prefix"; then
  5663. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5664. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5666. $as_echo_n "checking for $ac_word... " >&6; }
  5667. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5668. $as_echo_n "(cached) " >&6
  5669. else
  5670. if test -n "$MANIFEST_TOOL"; then
  5671. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5672. else
  5673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5674. for as_dir in $PATH
  5675. do
  5676. IFS=$as_save_IFS
  5677. test -z "$as_dir" && as_dir=.
  5678. for ac_exec_ext in '' $ac_executable_extensions; do
  5679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5680. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5682. break 2
  5683. fi
  5684. done
  5685. done
  5686. IFS=$as_save_IFS
  5687. fi
  5688. fi
  5689. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5690. if test -n "$MANIFEST_TOOL"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5692. $as_echo "$MANIFEST_TOOL" >&6; }
  5693. else
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696. fi
  5697. fi
  5698. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5699. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5700. # Extract the first word of "mt", so it can be a program name with args.
  5701. set dummy mt; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5708. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5727. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5729. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5735. MANIFEST_TOOL=":"
  5736. else
  5737. case $cross_compiling:$ac_tool_warned in
  5738. yes:)
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5740. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5741. ac_tool_warned=yes ;;
  5742. esac
  5743. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5744. fi
  5745. else
  5746. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5747. fi
  5748. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5750. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5751. if ${lt_cv_path_mainfest_tool+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. lt_cv_path_mainfest_tool=no
  5755. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5756. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5757. cat conftest.err >&5
  5758. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5759. lt_cv_path_mainfest_tool=yes
  5760. fi
  5761. rm -f conftest*
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5764. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5765. if test yes != "$lt_cv_path_mainfest_tool"; then
  5766. MANIFEST_TOOL=:
  5767. fi
  5768. case $host_os in
  5769. rhapsody* | darwin*)
  5770. if test -n "$ac_tool_prefix"; then
  5771. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5772. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5774. $as_echo_n "checking for $ac_word... " >&6; }
  5775. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5776. $as_echo_n "(cached) " >&6
  5777. else
  5778. if test -n "$DSYMUTIL"; then
  5779. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5780. else
  5781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5782. for as_dir in $PATH
  5783. do
  5784. IFS=$as_save_IFS
  5785. test -z "$as_dir" && as_dir=.
  5786. for ac_exec_ext in '' $ac_executable_extensions; do
  5787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5788. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5790. break 2
  5791. fi
  5792. done
  5793. done
  5794. IFS=$as_save_IFS
  5795. fi
  5796. fi
  5797. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5798. if test -n "$DSYMUTIL"; then
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5800. $as_echo "$DSYMUTIL" >&6; }
  5801. else
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5803. $as_echo "no" >&6; }
  5804. fi
  5805. fi
  5806. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5807. ac_ct_DSYMUTIL=$DSYMUTIL
  5808. # Extract the first word of "dsymutil", so it can be a program name with args.
  5809. set dummy dsymutil; ac_word=$2
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5811. $as_echo_n "checking for $ac_word... " >&6; }
  5812. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5813. $as_echo_n "(cached) " >&6
  5814. else
  5815. if test -n "$ac_ct_DSYMUTIL"; then
  5816. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5817. else
  5818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5819. for as_dir in $PATH
  5820. do
  5821. IFS=$as_save_IFS
  5822. test -z "$as_dir" && as_dir=.
  5823. for ac_exec_ext in '' $ac_executable_extensions; do
  5824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5825. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5827. break 2
  5828. fi
  5829. done
  5830. done
  5831. IFS=$as_save_IFS
  5832. fi
  5833. fi
  5834. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5835. if test -n "$ac_ct_DSYMUTIL"; then
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5837. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5838. else
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5840. $as_echo "no" >&6; }
  5841. fi
  5842. if test "x$ac_ct_DSYMUTIL" = x; then
  5843. DSYMUTIL=":"
  5844. else
  5845. case $cross_compiling:$ac_tool_warned in
  5846. yes:)
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5849. ac_tool_warned=yes ;;
  5850. esac
  5851. DSYMUTIL=$ac_ct_DSYMUTIL
  5852. fi
  5853. else
  5854. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5855. fi
  5856. if test -n "$ac_tool_prefix"; then
  5857. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5858. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5860. $as_echo_n "checking for $ac_word... " >&6; }
  5861. if ${ac_cv_prog_NMEDIT+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. if test -n "$NMEDIT"; then
  5865. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5866. else
  5867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5868. for as_dir in $PATH
  5869. do
  5870. IFS=$as_save_IFS
  5871. test -z "$as_dir" && as_dir=.
  5872. for ac_exec_ext in '' $ac_executable_extensions; do
  5873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5874. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5876. break 2
  5877. fi
  5878. done
  5879. done
  5880. IFS=$as_save_IFS
  5881. fi
  5882. fi
  5883. NMEDIT=$ac_cv_prog_NMEDIT
  5884. if test -n "$NMEDIT"; then
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5886. $as_echo "$NMEDIT" >&6; }
  5887. else
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5889. $as_echo "no" >&6; }
  5890. fi
  5891. fi
  5892. if test -z "$ac_cv_prog_NMEDIT"; then
  5893. ac_ct_NMEDIT=$NMEDIT
  5894. # Extract the first word of "nmedit", so it can be a program name with args.
  5895. set dummy nmedit; ac_word=$2
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5897. $as_echo_n "checking for $ac_word... " >&6; }
  5898. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. if test -n "$ac_ct_NMEDIT"; then
  5902. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5903. else
  5904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5905. for as_dir in $PATH
  5906. do
  5907. IFS=$as_save_IFS
  5908. test -z "$as_dir" && as_dir=.
  5909. for ac_exec_ext in '' $ac_executable_extensions; do
  5910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5911. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5913. break 2
  5914. fi
  5915. done
  5916. done
  5917. IFS=$as_save_IFS
  5918. fi
  5919. fi
  5920. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5921. if test -n "$ac_ct_NMEDIT"; then
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5923. $as_echo "$ac_ct_NMEDIT" >&6; }
  5924. else
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5926. $as_echo "no" >&6; }
  5927. fi
  5928. if test "x$ac_ct_NMEDIT" = x; then
  5929. NMEDIT=":"
  5930. else
  5931. case $cross_compiling:$ac_tool_warned in
  5932. yes:)
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5935. ac_tool_warned=yes ;;
  5936. esac
  5937. NMEDIT=$ac_ct_NMEDIT
  5938. fi
  5939. else
  5940. NMEDIT="$ac_cv_prog_NMEDIT"
  5941. fi
  5942. if test -n "$ac_tool_prefix"; then
  5943. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5944. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5946. $as_echo_n "checking for $ac_word... " >&6; }
  5947. if ${ac_cv_prog_LIPO+:} false; then :
  5948. $as_echo_n "(cached) " >&6
  5949. else
  5950. if test -n "$LIPO"; then
  5951. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5952. else
  5953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5954. for as_dir in $PATH
  5955. do
  5956. IFS=$as_save_IFS
  5957. test -z "$as_dir" && as_dir=.
  5958. for ac_exec_ext in '' $ac_executable_extensions; do
  5959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5960. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5962. break 2
  5963. fi
  5964. done
  5965. done
  5966. IFS=$as_save_IFS
  5967. fi
  5968. fi
  5969. LIPO=$ac_cv_prog_LIPO
  5970. if test -n "$LIPO"; then
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5972. $as_echo "$LIPO" >&6; }
  5973. else
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5975. $as_echo "no" >&6; }
  5976. fi
  5977. fi
  5978. if test -z "$ac_cv_prog_LIPO"; then
  5979. ac_ct_LIPO=$LIPO
  5980. # Extract the first word of "lipo", so it can be a program name with args.
  5981. set dummy lipo; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$ac_ct_LIPO"; then
  5988. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5997. ac_cv_prog_ac_ct_LIPO="lipo"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6007. if test -n "$ac_ct_LIPO"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6009. $as_echo "$ac_ct_LIPO" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. if test "x$ac_ct_LIPO" = x; then
  6015. LIPO=":"
  6016. else
  6017. case $cross_compiling:$ac_tool_warned in
  6018. yes:)
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6020. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6021. ac_tool_warned=yes ;;
  6022. esac
  6023. LIPO=$ac_ct_LIPO
  6024. fi
  6025. else
  6026. LIPO="$ac_cv_prog_LIPO"
  6027. fi
  6028. if test -n "$ac_tool_prefix"; then
  6029. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6030. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6032. $as_echo_n "checking for $ac_word... " >&6; }
  6033. if ${ac_cv_prog_OTOOL+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. if test -n "$OTOOL"; then
  6037. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6038. else
  6039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6040. for as_dir in $PATH
  6041. do
  6042. IFS=$as_save_IFS
  6043. test -z "$as_dir" && as_dir=.
  6044. for ac_exec_ext in '' $ac_executable_extensions; do
  6045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6046. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6048. break 2
  6049. fi
  6050. done
  6051. done
  6052. IFS=$as_save_IFS
  6053. fi
  6054. fi
  6055. OTOOL=$ac_cv_prog_OTOOL
  6056. if test -n "$OTOOL"; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6058. $as_echo "$OTOOL" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. fi
  6064. if test -z "$ac_cv_prog_OTOOL"; then
  6065. ac_ct_OTOOL=$OTOOL
  6066. # Extract the first word of "otool", so it can be a program name with args.
  6067. set dummy otool; ac_word=$2
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6069. $as_echo_n "checking for $ac_word... " >&6; }
  6070. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. if test -n "$ac_ct_OTOOL"; then
  6074. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6083. ac_cv_prog_ac_ct_OTOOL="otool"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6093. if test -n "$ac_ct_OTOOL"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6095. $as_echo "$ac_ct_OTOOL" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. if test "x$ac_ct_OTOOL" = x; then
  6101. OTOOL=":"
  6102. else
  6103. case $cross_compiling:$ac_tool_warned in
  6104. yes:)
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6106. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6107. ac_tool_warned=yes ;;
  6108. esac
  6109. OTOOL=$ac_ct_OTOOL
  6110. fi
  6111. else
  6112. OTOOL="$ac_cv_prog_OTOOL"
  6113. fi
  6114. if test -n "$ac_tool_prefix"; then
  6115. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6116. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if ${ac_cv_prog_OTOOL64+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$OTOOL64"; then
  6123. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6132. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. OTOOL64=$ac_cv_prog_OTOOL64
  6142. if test -n "$OTOOL64"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6144. $as_echo "$OTOOL64" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. fi
  6150. if test -z "$ac_cv_prog_OTOOL64"; then
  6151. ac_ct_OTOOL64=$OTOOL64
  6152. # Extract the first word of "otool64", so it can be a program name with args.
  6153. set dummy otool64; ac_word=$2
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6155. $as_echo_n "checking for $ac_word... " >&6; }
  6156. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. if test -n "$ac_ct_OTOOL64"; then
  6160. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6161. else
  6162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6163. for as_dir in $PATH
  6164. do
  6165. IFS=$as_save_IFS
  6166. test -z "$as_dir" && as_dir=.
  6167. for ac_exec_ext in '' $ac_executable_extensions; do
  6168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6169. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6171. break 2
  6172. fi
  6173. done
  6174. done
  6175. IFS=$as_save_IFS
  6176. fi
  6177. fi
  6178. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6179. if test -n "$ac_ct_OTOOL64"; then
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6181. $as_echo "$ac_ct_OTOOL64" >&6; }
  6182. else
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6184. $as_echo "no" >&6; }
  6185. fi
  6186. if test "x$ac_ct_OTOOL64" = x; then
  6187. OTOOL64=":"
  6188. else
  6189. case $cross_compiling:$ac_tool_warned in
  6190. yes:)
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6193. ac_tool_warned=yes ;;
  6194. esac
  6195. OTOOL64=$ac_ct_OTOOL64
  6196. fi
  6197. else
  6198. OTOOL64="$ac_cv_prog_OTOOL64"
  6199. fi
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6201. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6202. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. lt_cv_apple_cc_single_mod=no
  6206. if test -z "$LT_MULTI_MODULE"; then
  6207. # By default we will add the -single_module flag. You can override
  6208. # by either setting the environment variable LT_MULTI_MODULE
  6209. # non-empty at configure time, or by adding -multi_module to the
  6210. # link flags.
  6211. rm -rf libconftest.dylib*
  6212. echo "int foo(void){return 1;}" > conftest.c
  6213. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6214. -dynamiclib -Wl,-single_module conftest.c" >&5
  6215. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6216. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6217. _lt_result=$?
  6218. # If there is a non-empty error log, and "single_module"
  6219. # appears in it, assume the flag caused a linker warning
  6220. if test -s conftest.err && $GREP single_module conftest.err; then
  6221. cat conftest.err >&5
  6222. # Otherwise, if the output was created with a 0 exit code from
  6223. # the compiler, it worked.
  6224. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6225. lt_cv_apple_cc_single_mod=yes
  6226. else
  6227. cat conftest.err >&5
  6228. fi
  6229. rm -rf libconftest.dylib*
  6230. rm -f conftest.*
  6231. fi
  6232. fi
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6234. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6236. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6237. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6238. $as_echo_n "(cached) " >&6
  6239. else
  6240. lt_cv_ld_exported_symbols_list=no
  6241. save_LDFLAGS=$LDFLAGS
  6242. echo "_main" > conftest.sym
  6243. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end confdefs.h. */
  6246. int
  6247. main ()
  6248. {
  6249. ;
  6250. return 0;
  6251. }
  6252. _ACEOF
  6253. if ac_fn_c_try_link "$LINENO"; then :
  6254. lt_cv_ld_exported_symbols_list=yes
  6255. else
  6256. lt_cv_ld_exported_symbols_list=no
  6257. fi
  6258. rm -f core conftest.err conftest.$ac_objext \
  6259. conftest$ac_exeext conftest.$ac_ext
  6260. LDFLAGS=$save_LDFLAGS
  6261. fi
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6263. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6265. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6266. if ${lt_cv_ld_force_load+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. lt_cv_ld_force_load=no
  6270. cat > conftest.c << _LT_EOF
  6271. int forced_loaded() { return 2;}
  6272. _LT_EOF
  6273. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6274. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6275. echo "$AR cru libconftest.a conftest.o" >&5
  6276. $AR cru libconftest.a conftest.o 2>&5
  6277. echo "$RANLIB libconftest.a" >&5
  6278. $RANLIB libconftest.a 2>&5
  6279. cat > conftest.c << _LT_EOF
  6280. int main() { return 0;}
  6281. _LT_EOF
  6282. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6283. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6284. _lt_result=$?
  6285. if test -s conftest.err && $GREP force_load conftest.err; then
  6286. cat conftest.err >&5
  6287. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6288. lt_cv_ld_force_load=yes
  6289. else
  6290. cat conftest.err >&5
  6291. fi
  6292. rm -f conftest.err libconftest.a conftest conftest.c
  6293. rm -rf conftest.dSYM
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6296. $as_echo "$lt_cv_ld_force_load" >&6; }
  6297. case $host_os in
  6298. rhapsody* | darwin1.[012])
  6299. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6300. darwin1.*)
  6301. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6302. darwin*)
  6303. case ${MACOSX_DEPLOYMENT_TARGET},$host in
  6304. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6305. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6306. *)
  6307. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6308. esac
  6309. ;;
  6310. esac
  6311. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6312. _lt_dar_single_mod='$single_module'
  6313. fi
  6314. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6315. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6316. else
  6317. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6318. fi
  6319. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6320. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6321. else
  6322. _lt_dsymutil=
  6323. fi
  6324. ;;
  6325. esac
  6326. # func_munge_path_list VARIABLE PATH
  6327. # -----------------------------------
  6328. # VARIABLE is name of variable containing _space_ separated list of
  6329. # directories to be munged by the contents of PATH, which is string
  6330. # having a format:
  6331. # "DIR[:DIR]:"
  6332. # string "DIR[ DIR]" will be prepended to VARIABLE
  6333. # ":DIR[:DIR]"
  6334. # string "DIR[ DIR]" will be appended to VARIABLE
  6335. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6336. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6337. # "DIRA[ DIRA]" will be appended to VARIABLE
  6338. # "DIR[:DIR]"
  6339. # VARIABLE will be replaced by "DIR[ DIR]"
  6340. func_munge_path_list ()
  6341. {
  6342. case x$2 in
  6343. x)
  6344. ;;
  6345. *:)
  6346. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6347. ;;
  6348. x:*)
  6349. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6350. ;;
  6351. *::*)
  6352. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6353. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6354. ;;
  6355. *)
  6356. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6357. ;;
  6358. esac
  6359. }
  6360. ac_ext=c
  6361. ac_cpp='$CPP $CPPFLAGS'
  6362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6366. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6367. # On Suns, sometimes $CPP names a directory.
  6368. if test -n "$CPP" && test -d "$CPP"; then
  6369. CPP=
  6370. fi
  6371. if test -z "$CPP"; then
  6372. if ${ac_cv_prog_CPP+:} false; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. # Double quotes because CPP needs to be expanded
  6376. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6377. do
  6378. ac_preproc_ok=false
  6379. for ac_c_preproc_warn_flag in '' yes
  6380. do
  6381. # Use a header file that comes with gcc, so configuring glibc
  6382. # with a fresh cross-compiler works.
  6383. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6384. # <limits.h> exists even on freestanding compilers.
  6385. # On the NeXT, cc -E runs the code through the compiler's parser,
  6386. # not just through cpp. "Syntax error" is here to catch this case.
  6387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6388. /* end confdefs.h. */
  6389. #ifdef __STDC__
  6390. # include <limits.h>
  6391. #else
  6392. # include <assert.h>
  6393. #endif
  6394. Syntax error
  6395. _ACEOF
  6396. if ac_fn_c_try_cpp "$LINENO"; then :
  6397. else
  6398. # Broken: fails on valid input.
  6399. continue
  6400. fi
  6401. rm -f conftest.err conftest.i conftest.$ac_ext
  6402. # OK, works on sane cases. Now check whether nonexistent headers
  6403. # can be detected and how.
  6404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6405. /* end confdefs.h. */
  6406. #include <ac_nonexistent.h>
  6407. _ACEOF
  6408. if ac_fn_c_try_cpp "$LINENO"; then :
  6409. # Broken: success on invalid input.
  6410. continue
  6411. else
  6412. # Passes both tests.
  6413. ac_preproc_ok=:
  6414. break
  6415. fi
  6416. rm -f conftest.err conftest.i conftest.$ac_ext
  6417. done
  6418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6419. rm -f conftest.i conftest.err conftest.$ac_ext
  6420. if $ac_preproc_ok; then :
  6421. break
  6422. fi
  6423. done
  6424. ac_cv_prog_CPP=$CPP
  6425. fi
  6426. CPP=$ac_cv_prog_CPP
  6427. else
  6428. ac_cv_prog_CPP=$CPP
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6431. $as_echo "$CPP" >&6; }
  6432. ac_preproc_ok=false
  6433. for ac_c_preproc_warn_flag in '' yes
  6434. do
  6435. # Use a header file that comes with gcc, so configuring glibc
  6436. # with a fresh cross-compiler works.
  6437. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6438. # <limits.h> exists even on freestanding compilers.
  6439. # On the NeXT, cc -E runs the code through the compiler's parser,
  6440. # not just through cpp. "Syntax error" is here to catch this case.
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. #ifdef __STDC__
  6444. # include <limits.h>
  6445. #else
  6446. # include <assert.h>
  6447. #endif
  6448. Syntax error
  6449. _ACEOF
  6450. if ac_fn_c_try_cpp "$LINENO"; then :
  6451. else
  6452. # Broken: fails on valid input.
  6453. continue
  6454. fi
  6455. rm -f conftest.err conftest.i conftest.$ac_ext
  6456. # OK, works on sane cases. Now check whether nonexistent headers
  6457. # can be detected and how.
  6458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6459. /* end confdefs.h. */
  6460. #include <ac_nonexistent.h>
  6461. _ACEOF
  6462. if ac_fn_c_try_cpp "$LINENO"; then :
  6463. # Broken: success on invalid input.
  6464. continue
  6465. else
  6466. # Passes both tests.
  6467. ac_preproc_ok=:
  6468. break
  6469. fi
  6470. rm -f conftest.err conftest.i conftest.$ac_ext
  6471. done
  6472. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6473. rm -f conftest.i conftest.err conftest.$ac_ext
  6474. if $ac_preproc_ok; then :
  6475. else
  6476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6478. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6479. See \`config.log' for more details" "$LINENO" 5; }
  6480. fi
  6481. ac_ext=c
  6482. ac_cpp='$CPP $CPPFLAGS'
  6483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6487. $as_echo_n "checking for ANSI C header files... " >&6; }
  6488. if ${ac_cv_header_stdc+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. #include <stdlib.h>
  6494. #include <stdarg.h>
  6495. #include <string.h>
  6496. #include <float.h>
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_compile "$LINENO"; then :
  6505. ac_cv_header_stdc=yes
  6506. else
  6507. ac_cv_header_stdc=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. if test $ac_cv_header_stdc = yes; then
  6511. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6513. /* end confdefs.h. */
  6514. #include <string.h>
  6515. _ACEOF
  6516. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6517. $EGREP "memchr" >/dev/null 2>&1; then :
  6518. else
  6519. ac_cv_header_stdc=no
  6520. fi
  6521. rm -f conftest*
  6522. fi
  6523. if test $ac_cv_header_stdc = yes; then
  6524. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6526. /* end confdefs.h. */
  6527. #include <stdlib.h>
  6528. _ACEOF
  6529. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6530. $EGREP "free" >/dev/null 2>&1; then :
  6531. else
  6532. ac_cv_header_stdc=no
  6533. fi
  6534. rm -f conftest*
  6535. fi
  6536. if test $ac_cv_header_stdc = yes; then
  6537. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6538. if test "$cross_compiling" = yes; then :
  6539. :
  6540. else
  6541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6542. /* end confdefs.h. */
  6543. #include <ctype.h>
  6544. #include <stdlib.h>
  6545. #if ((' ' & 0x0FF) == 0x020)
  6546. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6547. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6548. #else
  6549. # define ISLOWER(c) \
  6550. (('a' <= (c) && (c) <= 'i') \
  6551. || ('j' <= (c) && (c) <= 'r') \
  6552. || ('s' <= (c) && (c) <= 'z'))
  6553. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6554. #endif
  6555. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6556. int
  6557. main ()
  6558. {
  6559. int i;
  6560. for (i = 0; i < 256; i++)
  6561. if (XOR (islower (i), ISLOWER (i))
  6562. || toupper (i) != TOUPPER (i))
  6563. return 2;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. if ac_fn_c_try_run "$LINENO"; then :
  6568. else
  6569. ac_cv_header_stdc=no
  6570. fi
  6571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6573. fi
  6574. fi
  6575. fi
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6577. $as_echo "$ac_cv_header_stdc" >&6; }
  6578. if test $ac_cv_header_stdc = yes; then
  6579. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6580. fi
  6581. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6582. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6583. inttypes.h stdint.h unistd.h
  6584. do :
  6585. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6586. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6587. "
  6588. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6589. cat >>confdefs.h <<_ACEOF
  6590. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6591. _ACEOF
  6592. fi
  6593. done
  6594. for ac_header in dlfcn.h
  6595. do :
  6596. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6597. "
  6598. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define HAVE_DLFCN_H 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. # Set options
  6605. enable_win32_dll=yes
  6606. case $host in
  6607. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6608. if test -n "$ac_tool_prefix"; then
  6609. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6610. set dummy ${ac_tool_prefix}as; ac_word=$2
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6612. $as_echo_n "checking for $ac_word... " >&6; }
  6613. if ${ac_cv_prog_AS+:} false; then :
  6614. $as_echo_n "(cached) " >&6
  6615. else
  6616. if test -n "$AS"; then
  6617. ac_cv_prog_AS="$AS" # Let the user override the test.
  6618. else
  6619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6620. for as_dir in $PATH
  6621. do
  6622. IFS=$as_save_IFS
  6623. test -z "$as_dir" && as_dir=.
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_AS="${ac_tool_prefix}as"
  6627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. AS=$ac_cv_prog_AS
  6636. if test -n "$AS"; then
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6638. $as_echo "$AS" >&6; }
  6639. else
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. $as_echo "no" >&6; }
  6642. fi
  6643. fi
  6644. if test -z "$ac_cv_prog_AS"; then
  6645. ac_ct_AS=$AS
  6646. # Extract the first word of "as", so it can be a program name with args.
  6647. set dummy as; ac_word=$2
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6649. $as_echo_n "checking for $ac_word... " >&6; }
  6650. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. if test -n "$ac_ct_AS"; then
  6654. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. test -z "$as_dir" && as_dir=.
  6661. for ac_exec_ext in '' $ac_executable_extensions; do
  6662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6663. ac_cv_prog_ac_ct_AS="as"
  6664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6665. break 2
  6666. fi
  6667. done
  6668. done
  6669. IFS=$as_save_IFS
  6670. fi
  6671. fi
  6672. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6673. if test -n "$ac_ct_AS"; then
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6675. $as_echo "$ac_ct_AS" >&6; }
  6676. else
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6678. $as_echo "no" >&6; }
  6679. fi
  6680. if test "x$ac_ct_AS" = x; then
  6681. AS="false"
  6682. else
  6683. case $cross_compiling:$ac_tool_warned in
  6684. yes:)
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6687. ac_tool_warned=yes ;;
  6688. esac
  6689. AS=$ac_ct_AS
  6690. fi
  6691. else
  6692. AS="$ac_cv_prog_AS"
  6693. fi
  6694. if test -n "$ac_tool_prefix"; then
  6695. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6696. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6698. $as_echo_n "checking for $ac_word... " >&6; }
  6699. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6700. $as_echo_n "(cached) " >&6
  6701. else
  6702. if test -n "$DLLTOOL"; then
  6703. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6704. else
  6705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6706. for as_dir in $PATH
  6707. do
  6708. IFS=$as_save_IFS
  6709. test -z "$as_dir" && as_dir=.
  6710. for ac_exec_ext in '' $ac_executable_extensions; do
  6711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6712. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6714. break 2
  6715. fi
  6716. done
  6717. done
  6718. IFS=$as_save_IFS
  6719. fi
  6720. fi
  6721. DLLTOOL=$ac_cv_prog_DLLTOOL
  6722. if test -n "$DLLTOOL"; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6724. $as_echo "$DLLTOOL" >&6; }
  6725. else
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6727. $as_echo "no" >&6; }
  6728. fi
  6729. fi
  6730. if test -z "$ac_cv_prog_DLLTOOL"; then
  6731. ac_ct_DLLTOOL=$DLLTOOL
  6732. # Extract the first word of "dlltool", so it can be a program name with args.
  6733. set dummy dlltool; ac_word=$2
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6735. $as_echo_n "checking for $ac_word... " >&6; }
  6736. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. if test -n "$ac_ct_DLLTOOL"; then
  6740. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6741. else
  6742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6743. for as_dir in $PATH
  6744. do
  6745. IFS=$as_save_IFS
  6746. test -z "$as_dir" && as_dir=.
  6747. for ac_exec_ext in '' $ac_executable_extensions; do
  6748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6749. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6751. break 2
  6752. fi
  6753. done
  6754. done
  6755. IFS=$as_save_IFS
  6756. fi
  6757. fi
  6758. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6759. if test -n "$ac_ct_DLLTOOL"; then
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6761. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6762. else
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6764. $as_echo "no" >&6; }
  6765. fi
  6766. if test "x$ac_ct_DLLTOOL" = x; then
  6767. DLLTOOL="false"
  6768. else
  6769. case $cross_compiling:$ac_tool_warned in
  6770. yes:)
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6773. ac_tool_warned=yes ;;
  6774. esac
  6775. DLLTOOL=$ac_ct_DLLTOOL
  6776. fi
  6777. else
  6778. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6779. fi
  6780. if test -n "$ac_tool_prefix"; then
  6781. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6782. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6784. $as_echo_n "checking for $ac_word... " >&6; }
  6785. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. if test -n "$OBJDUMP"; then
  6789. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6790. else
  6791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6792. for as_dir in $PATH
  6793. do
  6794. IFS=$as_save_IFS
  6795. test -z "$as_dir" && as_dir=.
  6796. for ac_exec_ext in '' $ac_executable_extensions; do
  6797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6798. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6800. break 2
  6801. fi
  6802. done
  6803. done
  6804. IFS=$as_save_IFS
  6805. fi
  6806. fi
  6807. OBJDUMP=$ac_cv_prog_OBJDUMP
  6808. if test -n "$OBJDUMP"; then
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6810. $as_echo "$OBJDUMP" >&6; }
  6811. else
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6813. $as_echo "no" >&6; }
  6814. fi
  6815. fi
  6816. if test -z "$ac_cv_prog_OBJDUMP"; then
  6817. ac_ct_OBJDUMP=$OBJDUMP
  6818. # Extract the first word of "objdump", so it can be a program name with args.
  6819. set dummy objdump; ac_word=$2
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6821. $as_echo_n "checking for $ac_word... " >&6; }
  6822. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6823. $as_echo_n "(cached) " >&6
  6824. else
  6825. if test -n "$ac_ct_OBJDUMP"; then
  6826. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6827. else
  6828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6829. for as_dir in $PATH
  6830. do
  6831. IFS=$as_save_IFS
  6832. test -z "$as_dir" && as_dir=.
  6833. for ac_exec_ext in '' $ac_executable_extensions; do
  6834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6835. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6837. break 2
  6838. fi
  6839. done
  6840. done
  6841. IFS=$as_save_IFS
  6842. fi
  6843. fi
  6844. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6845. if test -n "$ac_ct_OBJDUMP"; then
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6847. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6848. else
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6850. $as_echo "no" >&6; }
  6851. fi
  6852. if test "x$ac_ct_OBJDUMP" = x; then
  6853. OBJDUMP="false"
  6854. else
  6855. case $cross_compiling:$ac_tool_warned in
  6856. yes:)
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6858. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6859. ac_tool_warned=yes ;;
  6860. esac
  6861. OBJDUMP=$ac_ct_OBJDUMP
  6862. fi
  6863. else
  6864. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6865. fi
  6866. ;;
  6867. esac
  6868. test -z "$AS" && AS=as
  6869. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6870. test -z "$OBJDUMP" && OBJDUMP=objdump
  6871. enable_dlopen=no
  6872. # Check whether --enable-shared was given.
  6873. if test "${enable_shared+set}" = set; then :
  6874. enableval=$enable_shared; p=${PACKAGE-default}
  6875. case $enableval in
  6876. yes) enable_shared=yes ;;
  6877. no) enable_shared=no ;;
  6878. *)
  6879. enable_shared=no
  6880. # Look at the argument we got. We use all the common list separators.
  6881. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6882. for pkg in $enableval; do
  6883. IFS=$lt_save_ifs
  6884. if test "X$pkg" = "X$p"; then
  6885. enable_shared=yes
  6886. fi
  6887. done
  6888. IFS=$lt_save_ifs
  6889. ;;
  6890. esac
  6891. else
  6892. enable_shared=yes
  6893. fi
  6894. # Check whether --enable-static was given.
  6895. if test "${enable_static+set}" = set; then :
  6896. enableval=$enable_static; p=${PACKAGE-default}
  6897. case $enableval in
  6898. yes) enable_static=yes ;;
  6899. no) enable_static=no ;;
  6900. *)
  6901. enable_static=no
  6902. # Look at the argument we got. We use all the common list separators.
  6903. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6904. for pkg in $enableval; do
  6905. IFS=$lt_save_ifs
  6906. if test "X$pkg" = "X$p"; then
  6907. enable_static=yes
  6908. fi
  6909. done
  6910. IFS=$lt_save_ifs
  6911. ;;
  6912. esac
  6913. else
  6914. enable_static=yes
  6915. fi
  6916. # Check whether --with-pic was given.
  6917. if test "${with_pic+set}" = set; then :
  6918. withval=$with_pic; lt_p=${PACKAGE-default}
  6919. case $withval in
  6920. yes|no) pic_mode=$withval ;;
  6921. *)
  6922. pic_mode=default
  6923. # Look at the argument we got. We use all the common list separators.
  6924. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6925. for lt_pkg in $withval; do
  6926. IFS=$lt_save_ifs
  6927. if test "X$lt_pkg" = "X$lt_p"; then
  6928. pic_mode=yes
  6929. fi
  6930. done
  6931. IFS=$lt_save_ifs
  6932. ;;
  6933. esac
  6934. else
  6935. pic_mode=default
  6936. fi
  6937. # Check whether --enable-fast-install was given.
  6938. if test "${enable_fast_install+set}" = set; then :
  6939. enableval=$enable_fast_install; p=${PACKAGE-default}
  6940. case $enableval in
  6941. yes) enable_fast_install=yes ;;
  6942. no) enable_fast_install=no ;;
  6943. *)
  6944. enable_fast_install=no
  6945. # Look at the argument we got. We use all the common list separators.
  6946. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6947. for pkg in $enableval; do
  6948. IFS=$lt_save_ifs
  6949. if test "X$pkg" = "X$p"; then
  6950. enable_fast_install=yes
  6951. fi
  6952. done
  6953. IFS=$lt_save_ifs
  6954. ;;
  6955. esac
  6956. else
  6957. enable_fast_install=yes
  6958. fi
  6959. shared_archive_member_spec=
  6960. case $host,$enable_shared in
  6961. power*-*-aix[5-9]*,yes)
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6963. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6964. # Check whether --with-aix-soname was given.
  6965. if test "${with_aix_soname+set}" = set; then :
  6966. withval=$with_aix_soname; case $withval in
  6967. aix|svr4|both)
  6968. ;;
  6969. *)
  6970. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6971. ;;
  6972. esac
  6973. lt_cv_with_aix_soname=$with_aix_soname
  6974. else
  6975. if ${lt_cv_with_aix_soname+:} false; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. lt_cv_with_aix_soname=aix
  6979. fi
  6980. with_aix_soname=$lt_cv_with_aix_soname
  6981. fi
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6983. $as_echo "$with_aix_soname" >&6; }
  6984. if test aix != "$with_aix_soname"; then
  6985. # For the AIX way of multilib, we name the shared archive member
  6986. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6987. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6988. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6989. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6990. if test 64 = "${OBJECT_MODE-32}"; then
  6991. shared_archive_member_spec=shr_64
  6992. else
  6993. shared_archive_member_spec=shr
  6994. fi
  6995. fi
  6996. ;;
  6997. *)
  6998. with_aix_soname=aix
  6999. ;;
  7000. esac
  7001. # This can be used to rebuild libtool when needed
  7002. LIBTOOL_DEPS=$ltmain
  7003. # Always use our own libtool.
  7004. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7005. test -z "$LN_S" && LN_S="ln -s"
  7006. if test -n "${ZSH_VERSION+set}"; then
  7007. setopt NO_GLOB_SUBST
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7010. $as_echo_n "checking for objdir... " >&6; }
  7011. if ${lt_cv_objdir+:} false; then :
  7012. $as_echo_n "(cached) " >&6
  7013. else
  7014. rm -f .libs 2>/dev/null
  7015. mkdir .libs 2>/dev/null
  7016. if test -d .libs; then
  7017. lt_cv_objdir=.libs
  7018. else
  7019. # MS-DOS does not allow filenames that begin with a dot.
  7020. lt_cv_objdir=_libs
  7021. fi
  7022. rmdir .libs 2>/dev/null
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7025. $as_echo "$lt_cv_objdir" >&6; }
  7026. objdir=$lt_cv_objdir
  7027. cat >>confdefs.h <<_ACEOF
  7028. #define LT_OBJDIR "$lt_cv_objdir/"
  7029. _ACEOF
  7030. case $host_os in
  7031. aix3*)
  7032. # AIX sometimes has problems with the GCC collect2 program. For some
  7033. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7034. # vanish in a puff of smoke.
  7035. if test set != "${COLLECT_NAMES+set}"; then
  7036. COLLECT_NAMES=
  7037. export COLLECT_NAMES
  7038. fi
  7039. ;;
  7040. esac
  7041. # Global variables:
  7042. ofile=libtool
  7043. can_build_shared=yes
  7044. # All known linkers require a '.a' archive for static linking (except MSVC,
  7045. # which needs '.lib').
  7046. libext=a
  7047. with_gnu_ld=$lt_cv_prog_gnu_ld
  7048. old_CC=$CC
  7049. old_CFLAGS=$CFLAGS
  7050. # Set sane defaults for various variables
  7051. test -z "$CC" && CC=cc
  7052. test -z "$LTCC" && LTCC=$CC
  7053. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7054. test -z "$LD" && LD=ld
  7055. test -z "$ac_objext" && ac_objext=o
  7056. func_cc_basename $compiler
  7057. cc_basename=$func_cc_basename_result
  7058. # Only perform the check for file, if the check method requires it
  7059. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7060. case $deplibs_check_method in
  7061. file_magic*)
  7062. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7064. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7065. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. case $MAGIC_CMD in
  7069. [\\/*] | ?:[\\/]*)
  7070. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7071. ;;
  7072. *)
  7073. lt_save_MAGIC_CMD=$MAGIC_CMD
  7074. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7075. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7076. for ac_dir in $ac_dummy; do
  7077. IFS=$lt_save_ifs
  7078. test -z "$ac_dir" && ac_dir=.
  7079. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7080. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7081. if test -n "$file_magic_test_file"; then
  7082. case $deplibs_check_method in
  7083. "file_magic "*)
  7084. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7085. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7086. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7087. $EGREP "$file_magic_regex" > /dev/null; then
  7088. :
  7089. else
  7090. cat <<_LT_EOF 1>&2
  7091. *** Warning: the command libtool uses to detect shared libraries,
  7092. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7093. *** The result is that libtool may fail to recognize shared libraries
  7094. *** as such. This will affect the creation of libtool libraries that
  7095. *** depend on shared libraries, but programs linked with such libtool
  7096. *** libraries will work regardless of this problem. Nevertheless, you
  7097. *** may want to report the problem to your system manager and/or to
  7098. *** bug-libtool@gnu.org
  7099. _LT_EOF
  7100. fi ;;
  7101. esac
  7102. fi
  7103. break
  7104. fi
  7105. done
  7106. IFS=$lt_save_ifs
  7107. MAGIC_CMD=$lt_save_MAGIC_CMD
  7108. ;;
  7109. esac
  7110. fi
  7111. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7112. if test -n "$MAGIC_CMD"; then
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7114. $as_echo "$MAGIC_CMD" >&6; }
  7115. else
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7117. $as_echo "no" >&6; }
  7118. fi
  7119. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7120. if test -n "$ac_tool_prefix"; then
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7122. $as_echo_n "checking for file... " >&6; }
  7123. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. case $MAGIC_CMD in
  7127. [\\/*] | ?:[\\/]*)
  7128. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7129. ;;
  7130. *)
  7131. lt_save_MAGIC_CMD=$MAGIC_CMD
  7132. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7133. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7134. for ac_dir in $ac_dummy; do
  7135. IFS=$lt_save_ifs
  7136. test -z "$ac_dir" && ac_dir=.
  7137. if test -f "$ac_dir/file"; then
  7138. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7139. if test -n "$file_magic_test_file"; then
  7140. case $deplibs_check_method in
  7141. "file_magic "*)
  7142. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7143. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7144. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7145. $EGREP "$file_magic_regex" > /dev/null; then
  7146. :
  7147. else
  7148. cat <<_LT_EOF 1>&2
  7149. *** Warning: the command libtool uses to detect shared libraries,
  7150. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7151. *** The result is that libtool may fail to recognize shared libraries
  7152. *** as such. This will affect the creation of libtool libraries that
  7153. *** depend on shared libraries, but programs linked with such libtool
  7154. *** libraries will work regardless of this problem. Nevertheless, you
  7155. *** may want to report the problem to your system manager and/or to
  7156. *** bug-libtool@gnu.org
  7157. _LT_EOF
  7158. fi ;;
  7159. esac
  7160. fi
  7161. break
  7162. fi
  7163. done
  7164. IFS=$lt_save_ifs
  7165. MAGIC_CMD=$lt_save_MAGIC_CMD
  7166. ;;
  7167. esac
  7168. fi
  7169. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7170. if test -n "$MAGIC_CMD"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7172. $as_echo "$MAGIC_CMD" >&6; }
  7173. else
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7175. $as_echo "no" >&6; }
  7176. fi
  7177. else
  7178. MAGIC_CMD=:
  7179. fi
  7180. fi
  7181. fi
  7182. ;;
  7183. esac
  7184. # Use C for the default configuration in the libtool script
  7185. lt_save_CC=$CC
  7186. ac_ext=c
  7187. ac_cpp='$CPP $CPPFLAGS'
  7188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7191. # Source file extension for C test sources.
  7192. ac_ext=c
  7193. # Object file extension for compiled C test sources.
  7194. objext=o
  7195. objext=$objext
  7196. # Code to be used in simple compile tests
  7197. lt_simple_compile_test_code="int some_variable = 0;"
  7198. # Code to be used in simple link tests
  7199. lt_simple_link_test_code='int main(){return(0);}'
  7200. # If no C compiler was specified, use CC.
  7201. LTCC=${LTCC-"$CC"}
  7202. # If no C compiler flags were specified, use CFLAGS.
  7203. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7204. # Allow CC to be a program name with arguments.
  7205. compiler=$CC
  7206. # Save the default compiler, since it gets overwritten when the other
  7207. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7208. compiler_DEFAULT=$CC
  7209. # save warnings/boilerplate of simple test code
  7210. ac_outfile=conftest.$ac_objext
  7211. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7212. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7213. _lt_compiler_boilerplate=`cat conftest.err`
  7214. $RM conftest*
  7215. ac_outfile=conftest.$ac_objext
  7216. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7217. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7218. _lt_linker_boilerplate=`cat conftest.err`
  7219. $RM -r conftest*
  7220. ## CAVEAT EMPTOR:
  7221. ## There is no encapsulation within the following macros, do not change
  7222. ## the running order or otherwise move them around unless you know exactly
  7223. ## what you are doing...
  7224. if test -n "$compiler"; then
  7225. lt_prog_compiler_no_builtin_flag=
  7226. if test yes = "$GCC"; then
  7227. case $cc_basename in
  7228. nvcc*)
  7229. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7230. *)
  7231. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7232. esac
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7234. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7235. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. lt_cv_prog_compiler_rtti_exceptions=no
  7239. ac_outfile=conftest.$ac_objext
  7240. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7241. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7242. # Insert the option either (1) after the last *FLAGS variable, or
  7243. # (2) before a word containing "conftest.", or (3) at the end.
  7244. # Note that $ac_compile itself does not contain backslashes and begins
  7245. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7246. # The option is referenced via a variable to avoid confusing sed.
  7247. lt_compile=`echo "$ac_compile" | $SED \
  7248. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7249. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7250. -e 's:$: $lt_compiler_flag:'`
  7251. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7252. (eval "$lt_compile" 2>conftest.err)
  7253. ac_status=$?
  7254. cat conftest.err >&5
  7255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7256. if (exit $ac_status) && test -s "$ac_outfile"; then
  7257. # The compiler can only warn and ignore the option if not recognized
  7258. # So say no if there are warnings other than the usual output.
  7259. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7260. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7261. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7262. lt_cv_prog_compiler_rtti_exceptions=yes
  7263. fi
  7264. fi
  7265. $RM conftest*
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7268. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7269. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7270. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7271. else
  7272. :
  7273. fi
  7274. fi
  7275. lt_prog_compiler_wl=
  7276. lt_prog_compiler_pic=
  7277. lt_prog_compiler_static=
  7278. if test yes = "$GCC"; then
  7279. lt_prog_compiler_wl='-Wl,'
  7280. lt_prog_compiler_static='-static'
  7281. case $host_os in
  7282. aix*)
  7283. # All AIX code is PIC.
  7284. if test ia64 = "$host_cpu"; then
  7285. # AIX 5 now supports IA64 processor
  7286. lt_prog_compiler_static='-Bstatic'
  7287. fi
  7288. lt_prog_compiler_pic='-fPIC'
  7289. ;;
  7290. amigaos*)
  7291. case $host_cpu in
  7292. powerpc)
  7293. # see comment about AmigaOS4 .so support
  7294. lt_prog_compiler_pic='-fPIC'
  7295. ;;
  7296. m68k)
  7297. # FIXME: we need at least 68020 code to build shared libraries, but
  7298. # adding the '-m68020' flag to GCC prevents building anything better,
  7299. # like '-m68040'.
  7300. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7301. ;;
  7302. esac
  7303. ;;
  7304. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7305. # PIC is the default for these OSes.
  7306. ;;
  7307. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7308. # This hack is so that the source file can tell whether it is being
  7309. # built for inclusion in a dll (and should export symbols for example).
  7310. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7311. # (--disable-auto-import) libraries
  7312. lt_prog_compiler_pic='-DDLL_EXPORT'
  7313. case $host_os in
  7314. os2*)
  7315. lt_prog_compiler_static='$wl-static'
  7316. ;;
  7317. esac
  7318. ;;
  7319. darwin* | rhapsody*)
  7320. # PIC is the default on this platform
  7321. # Common symbols not allowed in MH_DYLIB files
  7322. lt_prog_compiler_pic='-fno-common'
  7323. ;;
  7324. haiku*)
  7325. # PIC is the default for Haiku.
  7326. # The "-static" flag exists, but is broken.
  7327. lt_prog_compiler_static=
  7328. ;;
  7329. hpux*)
  7330. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7331. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7332. # sets the default TLS model and affects inlining.
  7333. case $host_cpu in
  7334. hppa*64*)
  7335. # +Z the default
  7336. ;;
  7337. *)
  7338. lt_prog_compiler_pic='-fPIC'
  7339. ;;
  7340. esac
  7341. ;;
  7342. interix[3-9]*)
  7343. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7344. # Instead, we relocate shared libraries at runtime.
  7345. ;;
  7346. msdosdjgpp*)
  7347. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7348. # on systems that don't support them.
  7349. lt_prog_compiler_can_build_shared=no
  7350. enable_shared=no
  7351. ;;
  7352. *nto* | *qnx*)
  7353. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7354. # it will coredump.
  7355. lt_prog_compiler_pic='-fPIC -shared'
  7356. ;;
  7357. sysv4*MP*)
  7358. if test -d /usr/nec; then
  7359. lt_prog_compiler_pic=-Kconform_pic
  7360. fi
  7361. ;;
  7362. *)
  7363. lt_prog_compiler_pic='-fPIC'
  7364. ;;
  7365. esac
  7366. case $cc_basename in
  7367. nvcc*) # Cuda Compiler Driver 2.2
  7368. lt_prog_compiler_wl='-Xlinker '
  7369. if test -n "$lt_prog_compiler_pic"; then
  7370. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7371. fi
  7372. ;;
  7373. esac
  7374. else
  7375. # PORTME Check for flag to pass linker flags through the system compiler.
  7376. case $host_os in
  7377. aix*)
  7378. lt_prog_compiler_wl='-Wl,'
  7379. if test ia64 = "$host_cpu"; then
  7380. # AIX 5 now supports IA64 processor
  7381. lt_prog_compiler_static='-Bstatic'
  7382. else
  7383. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7384. fi
  7385. ;;
  7386. darwin* | rhapsody*)
  7387. # PIC is the default on this platform
  7388. # Common symbols not allowed in MH_DYLIB files
  7389. lt_prog_compiler_pic='-fno-common'
  7390. case $cc_basename in
  7391. nagfor*)
  7392. # NAG Fortran compiler
  7393. lt_prog_compiler_wl='-Wl,-Wl,,'
  7394. lt_prog_compiler_pic='-PIC'
  7395. lt_prog_compiler_static='-Bstatic'
  7396. ;;
  7397. esac
  7398. ;;
  7399. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7400. # This hack is so that the source file can tell whether it is being
  7401. # built for inclusion in a dll (and should export symbols for example).
  7402. lt_prog_compiler_pic='-DDLL_EXPORT'
  7403. case $host_os in
  7404. os2*)
  7405. lt_prog_compiler_static='$wl-static'
  7406. ;;
  7407. esac
  7408. ;;
  7409. hpux9* | hpux10* | hpux11*)
  7410. lt_prog_compiler_wl='-Wl,'
  7411. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7412. # not for PA HP-UX.
  7413. case $host_cpu in
  7414. hppa*64*|ia64*)
  7415. # +Z the default
  7416. ;;
  7417. *)
  7418. lt_prog_compiler_pic='+Z'
  7419. ;;
  7420. esac
  7421. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7422. lt_prog_compiler_static='$wl-a ${wl}archive'
  7423. ;;
  7424. irix5* | irix6* | nonstopux*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. # PIC (with -KPIC) is the default.
  7427. lt_prog_compiler_static='-non_shared'
  7428. ;;
  7429. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7430. case $cc_basename in
  7431. # old Intel for x86_64, which still supported -KPIC.
  7432. ecc*)
  7433. lt_prog_compiler_wl='-Wl,'
  7434. lt_prog_compiler_pic='-KPIC'
  7435. lt_prog_compiler_static='-static'
  7436. ;;
  7437. # icc used to be incompatible with GCC.
  7438. # ICC 10 doesn't accept -KPIC any more.
  7439. icc* | ifort*)
  7440. lt_prog_compiler_wl='-Wl,'
  7441. lt_prog_compiler_pic='-fPIC'
  7442. lt_prog_compiler_static='-static'
  7443. ;;
  7444. # Lahey Fortran 8.1.
  7445. lf95*)
  7446. lt_prog_compiler_wl='-Wl,'
  7447. lt_prog_compiler_pic='--shared'
  7448. lt_prog_compiler_static='--static'
  7449. ;;
  7450. nagfor*)
  7451. # NAG Fortran compiler
  7452. lt_prog_compiler_wl='-Wl,-Wl,,'
  7453. lt_prog_compiler_pic='-PIC'
  7454. lt_prog_compiler_static='-Bstatic'
  7455. ;;
  7456. tcc*)
  7457. # Fabrice Bellard et al's Tiny C Compiler
  7458. lt_prog_compiler_wl='-Wl,'
  7459. lt_prog_compiler_pic='-fPIC'
  7460. lt_prog_compiler_static='-static'
  7461. ;;
  7462. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7463. # Portland Group compilers (*not* the Pentium gcc compiler,
  7464. # which looks to be a dead project)
  7465. lt_prog_compiler_wl='-Wl,'
  7466. lt_prog_compiler_pic='-fpic'
  7467. lt_prog_compiler_static='-Bstatic'
  7468. ;;
  7469. ccc*)
  7470. lt_prog_compiler_wl='-Wl,'
  7471. # All Alpha code is PIC.
  7472. lt_prog_compiler_static='-non_shared'
  7473. ;;
  7474. xl* | bgxl* | bgf* | mpixl*)
  7475. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7476. lt_prog_compiler_wl='-Wl,'
  7477. lt_prog_compiler_pic='-qpic'
  7478. lt_prog_compiler_static='-qstaticlink'
  7479. ;;
  7480. *)
  7481. case `$CC -V 2>&1 | sed 5q` in
  7482. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7483. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7484. lt_prog_compiler_pic='-KPIC'
  7485. lt_prog_compiler_static='-Bstatic'
  7486. lt_prog_compiler_wl=''
  7487. ;;
  7488. *Sun\ F* | *Sun*Fortran*)
  7489. lt_prog_compiler_pic='-KPIC'
  7490. lt_prog_compiler_static='-Bstatic'
  7491. lt_prog_compiler_wl='-Qoption ld '
  7492. ;;
  7493. *Sun\ C*)
  7494. # Sun C 5.9
  7495. lt_prog_compiler_pic='-KPIC'
  7496. lt_prog_compiler_static='-Bstatic'
  7497. lt_prog_compiler_wl='-Wl,'
  7498. ;;
  7499. *Intel*\ [CF]*Compiler*)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. lt_prog_compiler_pic='-fPIC'
  7502. lt_prog_compiler_static='-static'
  7503. ;;
  7504. *Portland\ Group*)
  7505. lt_prog_compiler_wl='-Wl,'
  7506. lt_prog_compiler_pic='-fpic'
  7507. lt_prog_compiler_static='-Bstatic'
  7508. ;;
  7509. esac
  7510. ;;
  7511. esac
  7512. ;;
  7513. newsos6)
  7514. lt_prog_compiler_pic='-KPIC'
  7515. lt_prog_compiler_static='-Bstatic'
  7516. ;;
  7517. *nto* | *qnx*)
  7518. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7519. # it will coredump.
  7520. lt_prog_compiler_pic='-fPIC -shared'
  7521. ;;
  7522. osf3* | osf4* | osf5*)
  7523. lt_prog_compiler_wl='-Wl,'
  7524. # All OSF/1 code is PIC.
  7525. lt_prog_compiler_static='-non_shared'
  7526. ;;
  7527. rdos*)
  7528. lt_prog_compiler_static='-non_shared'
  7529. ;;
  7530. solaris*)
  7531. lt_prog_compiler_pic='-KPIC'
  7532. lt_prog_compiler_static='-Bstatic'
  7533. case $cc_basename in
  7534. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7535. lt_prog_compiler_wl='-Qoption ld ';;
  7536. *)
  7537. lt_prog_compiler_wl='-Wl,';;
  7538. esac
  7539. ;;
  7540. sunos4*)
  7541. lt_prog_compiler_wl='-Qoption ld '
  7542. lt_prog_compiler_pic='-PIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. ;;
  7545. sysv4 | sysv4.2uw2* | sysv4.3*)
  7546. lt_prog_compiler_wl='-Wl,'
  7547. lt_prog_compiler_pic='-KPIC'
  7548. lt_prog_compiler_static='-Bstatic'
  7549. ;;
  7550. sysv4*MP*)
  7551. if test -d /usr/nec; then
  7552. lt_prog_compiler_pic='-Kconform_pic'
  7553. lt_prog_compiler_static='-Bstatic'
  7554. fi
  7555. ;;
  7556. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7557. lt_prog_compiler_wl='-Wl,'
  7558. lt_prog_compiler_pic='-KPIC'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. ;;
  7561. unicos*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. lt_prog_compiler_can_build_shared=no
  7564. ;;
  7565. uts4*)
  7566. lt_prog_compiler_pic='-pic'
  7567. lt_prog_compiler_static='-Bstatic'
  7568. ;;
  7569. *)
  7570. lt_prog_compiler_can_build_shared=no
  7571. ;;
  7572. esac
  7573. fi
  7574. case $host_os in
  7575. # For platforms that do not support PIC, -DPIC is meaningless:
  7576. *djgpp*)
  7577. lt_prog_compiler_pic=
  7578. ;;
  7579. *)
  7580. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7581. ;;
  7582. esac
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7584. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7585. if ${lt_cv_prog_compiler_pic+:} false; then :
  7586. $as_echo_n "(cached) " >&6
  7587. else
  7588. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7589. fi
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7591. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7592. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7593. #
  7594. # Check to make sure the PIC flag actually works.
  7595. #
  7596. if test -n "$lt_prog_compiler_pic"; then
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7598. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7599. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7600. $as_echo_n "(cached) " >&6
  7601. else
  7602. lt_cv_prog_compiler_pic_works=no
  7603. ac_outfile=conftest.$ac_objext
  7604. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7605. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7606. # Insert the option either (1) after the last *FLAGS variable, or
  7607. # (2) before a word containing "conftest.", or (3) at the end.
  7608. # Note that $ac_compile itself does not contain backslashes and begins
  7609. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7610. # The option is referenced via a variable to avoid confusing sed.
  7611. lt_compile=`echo "$ac_compile" | $SED \
  7612. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7613. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7614. -e 's:$: $lt_compiler_flag:'`
  7615. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7616. (eval "$lt_compile" 2>conftest.err)
  7617. ac_status=$?
  7618. cat conftest.err >&5
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. if (exit $ac_status) && test -s "$ac_outfile"; then
  7621. # The compiler can only warn and ignore the option if not recognized
  7622. # So say no if there are warnings other than the usual output.
  7623. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7624. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7625. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7626. lt_cv_prog_compiler_pic_works=yes
  7627. fi
  7628. fi
  7629. $RM conftest*
  7630. fi
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7632. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7633. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7634. case $lt_prog_compiler_pic in
  7635. "" | " "*) ;;
  7636. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7637. esac
  7638. else
  7639. lt_prog_compiler_pic=
  7640. lt_prog_compiler_can_build_shared=no
  7641. fi
  7642. fi
  7643. #
  7644. # Check to make sure the static flag actually works.
  7645. #
  7646. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7648. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7649. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7650. $as_echo_n "(cached) " >&6
  7651. else
  7652. lt_cv_prog_compiler_static_works=no
  7653. save_LDFLAGS=$LDFLAGS
  7654. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7655. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7656. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7657. # The linker can only warn and ignore the option if not recognized
  7658. # So say no if there are warnings
  7659. if test -s conftest.err; then
  7660. # Append any errors to the config.log.
  7661. cat conftest.err 1>&5
  7662. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7663. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7664. if diff conftest.exp conftest.er2 >/dev/null; then
  7665. lt_cv_prog_compiler_static_works=yes
  7666. fi
  7667. else
  7668. lt_cv_prog_compiler_static_works=yes
  7669. fi
  7670. fi
  7671. $RM -r conftest*
  7672. LDFLAGS=$save_LDFLAGS
  7673. fi
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7675. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7676. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7677. :
  7678. else
  7679. lt_prog_compiler_static=
  7680. fi
  7681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7682. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7683. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7684. $as_echo_n "(cached) " >&6
  7685. else
  7686. lt_cv_prog_compiler_c_o=no
  7687. $RM -r conftest 2>/dev/null
  7688. mkdir conftest
  7689. cd conftest
  7690. mkdir out
  7691. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7692. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7693. # Insert the option either (1) after the last *FLAGS variable, or
  7694. # (2) before a word containing "conftest.", or (3) at the end.
  7695. # Note that $ac_compile itself does not contain backslashes and begins
  7696. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7697. lt_compile=`echo "$ac_compile" | $SED \
  7698. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7699. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7700. -e 's:$: $lt_compiler_flag:'`
  7701. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7702. (eval "$lt_compile" 2>out/conftest.err)
  7703. ac_status=$?
  7704. cat out/conftest.err >&5
  7705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7707. then
  7708. # The compiler can only warn and ignore the option if not recognized
  7709. # So say no if there are warnings
  7710. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7711. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7712. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7713. lt_cv_prog_compiler_c_o=yes
  7714. fi
  7715. fi
  7716. chmod u+w . 2>&5
  7717. $RM conftest*
  7718. # SGI C++ compiler will create directory out/ii_files/ for
  7719. # template instantiation
  7720. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7721. $RM out/* && rmdir out
  7722. cd ..
  7723. $RM -r conftest
  7724. $RM conftest*
  7725. fi
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7727. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7729. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7730. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. lt_cv_prog_compiler_c_o=no
  7734. $RM -r conftest 2>/dev/null
  7735. mkdir conftest
  7736. cd conftest
  7737. mkdir out
  7738. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7740. # Insert the option either (1) after the last *FLAGS variable, or
  7741. # (2) before a word containing "conftest.", or (3) at the end.
  7742. # Note that $ac_compile itself does not contain backslashes and begins
  7743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7744. lt_compile=`echo "$ac_compile" | $SED \
  7745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7747. -e 's:$: $lt_compiler_flag:'`
  7748. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7749. (eval "$lt_compile" 2>out/conftest.err)
  7750. ac_status=$?
  7751. cat out/conftest.err >&5
  7752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7754. then
  7755. # The compiler can only warn and ignore the option if not recognized
  7756. # So say no if there are warnings
  7757. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7758. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7759. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7760. lt_cv_prog_compiler_c_o=yes
  7761. fi
  7762. fi
  7763. chmod u+w . 2>&5
  7764. $RM conftest*
  7765. # SGI C++ compiler will create directory out/ii_files/ for
  7766. # template instantiation
  7767. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7768. $RM out/* && rmdir out
  7769. cd ..
  7770. $RM -r conftest
  7771. $RM conftest*
  7772. fi
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7774. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7775. hard_links=nottested
  7776. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7777. # do not overwrite the value of need_locks provided by the user
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7779. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7780. hard_links=yes
  7781. $RM conftest*
  7782. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7783. touch conftest.a
  7784. ln conftest.a conftest.b 2>&5 || hard_links=no
  7785. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7787. $as_echo "$hard_links" >&6; }
  7788. if test no = "$hard_links"; then
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7790. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7791. need_locks=warn
  7792. fi
  7793. else
  7794. need_locks=no
  7795. fi
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7797. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7798. runpath_var=
  7799. allow_undefined_flag=
  7800. always_export_symbols=no
  7801. archive_cmds=
  7802. archive_expsym_cmds=
  7803. compiler_needs_object=no
  7804. enable_shared_with_static_runtimes=no
  7805. export_dynamic_flag_spec=
  7806. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7807. hardcode_automatic=no
  7808. hardcode_direct=no
  7809. hardcode_direct_absolute=no
  7810. hardcode_libdir_flag_spec=
  7811. hardcode_libdir_separator=
  7812. hardcode_minus_L=no
  7813. hardcode_shlibpath_var=unsupported
  7814. inherit_rpath=no
  7815. link_all_deplibs=unknown
  7816. module_cmds=
  7817. module_expsym_cmds=
  7818. old_archive_from_new_cmds=
  7819. old_archive_from_expsyms_cmds=
  7820. thread_safe_flag_spec=
  7821. whole_archive_flag_spec=
  7822. # include_expsyms should be a list of space-separated symbols to be *always*
  7823. # included in the symbol list
  7824. include_expsyms=
  7825. # exclude_expsyms can be an extended regexp of symbols to exclude
  7826. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7827. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7828. # as well as any symbol that contains 'd'.
  7829. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7830. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7831. # platforms (ab)use it in PIC code, but their linkers get confused if
  7832. # the symbol is explicitly referenced. Since portable code cannot
  7833. # rely on this symbol name, it's probably fine to never include it in
  7834. # preloaded symbol tables.
  7835. # Exclude shared library initialization/finalization symbols.
  7836. extract_expsyms_cmds=
  7837. case $host_os in
  7838. cygwin* | mingw* | pw32* | cegcc*)
  7839. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7840. # When not using gcc, we currently assume that we are using
  7841. # Microsoft Visual C++.
  7842. if test yes != "$GCC"; then
  7843. with_gnu_ld=no
  7844. fi
  7845. ;;
  7846. interix*)
  7847. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7848. with_gnu_ld=yes
  7849. ;;
  7850. openbsd* | bitrig*)
  7851. with_gnu_ld=no
  7852. ;;
  7853. esac
  7854. ld_shlibs=yes
  7855. # On some targets, GNU ld is compatible enough with the native linker
  7856. # that we're better off using the native interface for both.
  7857. lt_use_gnu_ld_interface=no
  7858. if test yes = "$with_gnu_ld"; then
  7859. case $host_os in
  7860. aix*)
  7861. # The AIX port of GNU ld has always aspired to compatibility
  7862. # with the native linker. However, as the warning in the GNU ld
  7863. # block says, versions before 2.19.5* couldn't really create working
  7864. # shared libraries, regardless of the interface used.
  7865. case `$LD -v 2>&1` in
  7866. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7867. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7868. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7869. *)
  7870. lt_use_gnu_ld_interface=yes
  7871. ;;
  7872. esac
  7873. ;;
  7874. *)
  7875. lt_use_gnu_ld_interface=yes
  7876. ;;
  7877. esac
  7878. fi
  7879. if test yes = "$lt_use_gnu_ld_interface"; then
  7880. # If archive_cmds runs LD, not CC, wlarc should be empty
  7881. wlarc='$wl'
  7882. # Set some defaults for GNU ld with shared library support. These
  7883. # are reset later if shared libraries are not supported. Putting them
  7884. # here allows them to be overridden if necessary.
  7885. runpath_var=LD_RUN_PATH
  7886. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7887. export_dynamic_flag_spec='$wl--export-dynamic'
  7888. # ancient GNU ld didn't support --whole-archive et. al.
  7889. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7890. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7891. else
  7892. whole_archive_flag_spec=
  7893. fi
  7894. supports_anon_versioning=no
  7895. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7896. *GNU\ gold*) supports_anon_versioning=yes ;;
  7897. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7898. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7899. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7900. *\ 2.11.*) ;; # other 2.11 versions
  7901. *) supports_anon_versioning=yes ;;
  7902. esac
  7903. # See if GNU ld supports shared libraries.
  7904. case $host_os in
  7905. aix[3-9]*)
  7906. # On AIX/PPC, the GNU linker is very broken
  7907. if test ia64 != "$host_cpu"; then
  7908. ld_shlibs=no
  7909. cat <<_LT_EOF 1>&2
  7910. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7911. *** to be unable to reliably create shared libraries on AIX.
  7912. *** Therefore, libtool is disabling shared libraries support. If you
  7913. *** really care for shared libraries, you may want to install binutils
  7914. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7915. *** You will then need to restart the configuration process.
  7916. _LT_EOF
  7917. fi
  7918. ;;
  7919. amigaos*)
  7920. case $host_cpu in
  7921. powerpc)
  7922. # see comment about AmigaOS4 .so support
  7923. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7924. archive_expsym_cmds=''
  7925. ;;
  7926. m68k)
  7927. 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)'
  7928. hardcode_libdir_flag_spec='-L$libdir'
  7929. hardcode_minus_L=yes
  7930. ;;
  7931. esac
  7932. ;;
  7933. beos*)
  7934. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7935. allow_undefined_flag=unsupported
  7936. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7937. # support --undefined. This deserves some investigation. FIXME
  7938. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7939. else
  7940. ld_shlibs=no
  7941. fi
  7942. ;;
  7943. cygwin* | mingw* | pw32* | cegcc*)
  7944. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7945. # as there is no search path for DLLs.
  7946. hardcode_libdir_flag_spec='-L$libdir'
  7947. export_dynamic_flag_spec='$wl--export-all-symbols'
  7948. allow_undefined_flag=unsupported
  7949. always_export_symbols=no
  7950. enable_shared_with_static_runtimes=yes
  7951. 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'
  7952. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7953. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7955. # If the export-symbols file already is a .def file, use it as
  7956. # is; otherwise, prepend EXPORTS...
  7957. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7958. cp $export_symbols $output_objdir/$soname.def;
  7959. else
  7960. echo EXPORTS > $output_objdir/$soname.def;
  7961. cat $export_symbols >> $output_objdir/$soname.def;
  7962. fi~
  7963. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7964. else
  7965. ld_shlibs=no
  7966. fi
  7967. ;;
  7968. haiku*)
  7969. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7970. link_all_deplibs=yes
  7971. ;;
  7972. os2*)
  7973. hardcode_libdir_flag_spec='-L$libdir'
  7974. hardcode_minus_L=yes
  7975. allow_undefined_flag=unsupported
  7976. shrext_cmds=.dll
  7977. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7978. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7979. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7980. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7981. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7982. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7983. emximp -o $lib $output_objdir/$libname.def'
  7984. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7985. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7986. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7987. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7988. prefix_cmds="$SED"~
  7989. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7990. prefix_cmds="$prefix_cmds -e 1d";
  7991. fi~
  7992. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7993. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7994. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7995. emximp -o $lib $output_objdir/$libname.def'
  7996. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7997. enable_shared_with_static_runtimes=yes
  7998. file_list_spec='@'
  7999. ;;
  8000. interix[3-9]*)
  8001. hardcode_direct=no
  8002. hardcode_shlibpath_var=no
  8003. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8004. export_dynamic_flag_spec='$wl-E'
  8005. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8006. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8007. # default) and relocated if they conflict, which is a slow very memory
  8008. # consuming and fragmenting process. To avoid this, we pick a random,
  8009. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8010. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8011. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8012. 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'
  8013. ;;
  8014. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8015. tmp_diet=no
  8016. if test linux-dietlibc = "$host_os"; then
  8017. case $cc_basename in
  8018. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8019. esac
  8020. fi
  8021. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8022. && test no = "$tmp_diet"
  8023. then
  8024. tmp_addflag=' $pic_flag'
  8025. tmp_sharedflag='-shared'
  8026. case $cc_basename,$host_cpu in
  8027. pgcc*) # Portland Group C compiler
  8028. 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'
  8029. tmp_addflag=' $pic_flag'
  8030. ;;
  8031. pgf77* | pgf90* | pgf95* | pgfortran*)
  8032. # Portland Group f77 and f90 compilers
  8033. 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'
  8034. tmp_addflag=' $pic_flag -Mnomain' ;;
  8035. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8036. tmp_addflag=' -i_dynamic' ;;
  8037. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8038. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8039. ifc* | ifort*) # Intel Fortran compiler
  8040. tmp_addflag=' -nofor_main' ;;
  8041. lf95*) # Lahey Fortran 8.1
  8042. whole_archive_flag_spec=
  8043. tmp_sharedflag='--shared' ;;
  8044. nagfor*) # NAGFOR 5.3
  8045. tmp_sharedflag='-Wl,-shared' ;;
  8046. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8047. tmp_sharedflag='-qmkshrobj'
  8048. tmp_addflag= ;;
  8049. nvcc*) # Cuda Compiler Driver 2.2
  8050. 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'
  8051. compiler_needs_object=yes
  8052. ;;
  8053. esac
  8054. case `$CC -V 2>&1 | sed 5q` in
  8055. *Sun\ C*) # Sun C 5.9
  8056. 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'
  8057. compiler_needs_object=yes
  8058. tmp_sharedflag='-G' ;;
  8059. *Sun\ F*) # Sun Fortran 8.3
  8060. tmp_sharedflag='-G' ;;
  8061. esac
  8062. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8063. if test yes = "$supports_anon_versioning"; then
  8064. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8065. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8066. echo "local: *; };" >> $output_objdir/$libname.ver~
  8067. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8068. fi
  8069. case $cc_basename in
  8070. tcc*)
  8071. export_dynamic_flag_spec='-rdynamic'
  8072. ;;
  8073. xlf* | bgf* | bgxlf* | mpixlf*)
  8074. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8075. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8076. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8077. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8078. if test yes = "$supports_anon_versioning"; then
  8079. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8080. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8081. echo "local: *; };" >> $output_objdir/$libname.ver~
  8082. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8083. fi
  8084. ;;
  8085. esac
  8086. else
  8087. ld_shlibs=no
  8088. fi
  8089. ;;
  8090. netbsd*)
  8091. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8092. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8093. wlarc=
  8094. else
  8095. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8096. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8097. fi
  8098. ;;
  8099. solaris*)
  8100. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8101. ld_shlibs=no
  8102. cat <<_LT_EOF 1>&2
  8103. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8104. *** create shared libraries on Solaris systems. Therefore, libtool
  8105. *** is disabling shared libraries support. We urge you to upgrade GNU
  8106. *** binutils to release 2.9.1 or newer. Another option is to modify
  8107. *** your PATH or compiler configuration so that the native linker is
  8108. *** used, and then restart.
  8109. _LT_EOF
  8110. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8111. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8112. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8113. else
  8114. ld_shlibs=no
  8115. fi
  8116. ;;
  8117. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8118. case `$LD -v 2>&1` in
  8119. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8120. ld_shlibs=no
  8121. cat <<_LT_EOF 1>&2
  8122. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8123. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8124. *** is disabling shared libraries support. We urge you to upgrade GNU
  8125. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8126. *** your PATH or compiler configuration so that the native linker is
  8127. *** used, and then restart.
  8128. _LT_EOF
  8129. ;;
  8130. *)
  8131. # For security reasons, it is highly recommended that you always
  8132. # use absolute paths for naming shared libraries, and exclude the
  8133. # DT_RUNPATH tag from executables and libraries. But doing so
  8134. # requires that you compile everything twice, which is a pain.
  8135. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8136. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8137. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8138. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8139. else
  8140. ld_shlibs=no
  8141. fi
  8142. ;;
  8143. esac
  8144. ;;
  8145. sunos4*)
  8146. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8147. wlarc=
  8148. hardcode_direct=yes
  8149. hardcode_shlibpath_var=no
  8150. ;;
  8151. *)
  8152. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8153. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8154. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8155. else
  8156. ld_shlibs=no
  8157. fi
  8158. ;;
  8159. esac
  8160. if test no = "$ld_shlibs"; then
  8161. runpath_var=
  8162. hardcode_libdir_flag_spec=
  8163. export_dynamic_flag_spec=
  8164. whole_archive_flag_spec=
  8165. fi
  8166. else
  8167. # PORTME fill in a description of your system's linker (not GNU ld)
  8168. case $host_os in
  8169. aix3*)
  8170. allow_undefined_flag=unsupported
  8171. always_export_symbols=yes
  8172. 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'
  8173. # Note: this linker hardcodes the directories in LIBPATH if there
  8174. # are no directories specified by -L.
  8175. hardcode_minus_L=yes
  8176. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8177. # Neither direct hardcoding nor static linking is supported with a
  8178. # broken collect2.
  8179. hardcode_direct=unsupported
  8180. fi
  8181. ;;
  8182. aix[4-9]*)
  8183. if test ia64 = "$host_cpu"; then
  8184. # On IA64, the linker does run time linking by default, so we don't
  8185. # have to do anything special.
  8186. aix_use_runtimelinking=no
  8187. exp_sym_flag='-Bexport'
  8188. no_entry_flag=
  8189. else
  8190. # If we're using GNU nm, then we don't want the "-C" option.
  8191. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8192. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8193. # weak defined symbols like other global defined symbols, whereas
  8194. # GNU nm marks them as "W".
  8195. # While the 'weak' keyword is ignored in the Export File, we need
  8196. # it in the Import File for the 'aix-soname' feature, so we have
  8197. # to replace the "-B" option with "-P" for AIX nm.
  8198. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8199. 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'
  8200. else
  8201. 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'
  8202. fi
  8203. aix_use_runtimelinking=no
  8204. # Test if we are trying to use run time linking or normal
  8205. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8206. # have runtime linking enabled, and use it for executables.
  8207. # For shared libraries, we enable/disable runtime linking
  8208. # depending on the kind of the shared library created -
  8209. # when "with_aix_soname,aix_use_runtimelinking" is:
  8210. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8211. # "aix,yes" lib.so shared, rtl:yes, for executables
  8212. # lib.a static archive
  8213. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8214. # lib.a(lib.so.V) shared, rtl:no, for executables
  8215. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8216. # lib.a(lib.so.V) shared, rtl:no
  8217. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8218. # lib.a static archive
  8219. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8220. for ld_flag in $LDFLAGS; do
  8221. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8222. aix_use_runtimelinking=yes
  8223. break
  8224. fi
  8225. done
  8226. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8227. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8228. # so we don't have lib.a shared libs to link our executables.
  8229. # We have to force runtime linking in this case.
  8230. aix_use_runtimelinking=yes
  8231. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8232. fi
  8233. ;;
  8234. esac
  8235. exp_sym_flag='-bexport'
  8236. no_entry_flag='-bnoentry'
  8237. fi
  8238. # When large executables or shared objects are built, AIX ld can
  8239. # have problems creating the table of contents. If linking a library
  8240. # or program results in "error TOC overflow" add -mminimal-toc to
  8241. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8242. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8243. archive_cmds=''
  8244. hardcode_direct=yes
  8245. hardcode_direct_absolute=yes
  8246. hardcode_libdir_separator=':'
  8247. link_all_deplibs=yes
  8248. file_list_spec='$wl-f,'
  8249. case $with_aix_soname,$aix_use_runtimelinking in
  8250. aix,*) ;; # traditional, no import file
  8251. svr4,* | *,yes) # use import file
  8252. # The Import File defines what to hardcode.
  8253. hardcode_direct=no
  8254. hardcode_direct_absolute=no
  8255. ;;
  8256. esac
  8257. if test yes = "$GCC"; then
  8258. case $host_os in aix4.[012]|aix4.[012].*)
  8259. # We only want to do this on AIX 4.2 and lower, the check
  8260. # below for broken collect2 doesn't work under 4.3+
  8261. collect2name=`$CC -print-prog-name=collect2`
  8262. if test -f "$collect2name" &&
  8263. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8264. then
  8265. # We have reworked collect2
  8266. :
  8267. else
  8268. # We have old collect2
  8269. hardcode_direct=unsupported
  8270. # It fails to find uninstalled libraries when the uninstalled
  8271. # path is not listed in the libpath. Setting hardcode_minus_L
  8272. # to unsupported forces relinking
  8273. hardcode_minus_L=yes
  8274. hardcode_libdir_flag_spec='-L$libdir'
  8275. hardcode_libdir_separator=
  8276. fi
  8277. ;;
  8278. esac
  8279. shared_flag='-shared'
  8280. if test yes = "$aix_use_runtimelinking"; then
  8281. shared_flag="$shared_flag "'$wl-G'
  8282. fi
  8283. # Need to ensure runtime linking is disabled for the traditional
  8284. # shared library, or the linker may eventually find shared libraries
  8285. # /with/ Import File - we do not want to mix them.
  8286. shared_flag_aix='-shared'
  8287. shared_flag_svr4='-shared $wl-G'
  8288. else
  8289. # not using gcc
  8290. if test ia64 = "$host_cpu"; then
  8291. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8292. # chokes on -Wl,-G. The following line is correct:
  8293. shared_flag='-G'
  8294. else
  8295. if test yes = "$aix_use_runtimelinking"; then
  8296. shared_flag='$wl-G'
  8297. else
  8298. shared_flag='$wl-bM:SRE'
  8299. fi
  8300. shared_flag_aix='$wl-bM:SRE'
  8301. shared_flag_svr4='$wl-G'
  8302. fi
  8303. fi
  8304. export_dynamic_flag_spec='$wl-bexpall'
  8305. # It seems that -bexpall does not export symbols beginning with
  8306. # underscore (_), so it is better to generate a list of symbols to export.
  8307. always_export_symbols=yes
  8308. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8309. # Warning - without using the other runtime loading flags (-brtl),
  8310. # -berok will link without error, but may produce a broken library.
  8311. allow_undefined_flag='-berok'
  8312. # Determine the default libpath from the value encoded in an
  8313. # empty executable.
  8314. if test set = "${lt_cv_aix_libpath+set}"; then
  8315. aix_libpath=$lt_cv_aix_libpath
  8316. else
  8317. if ${lt_cv_aix_libpath_+:} false; then :
  8318. $as_echo_n "(cached) " >&6
  8319. else
  8320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8321. /* end confdefs.h. */
  8322. int
  8323. main ()
  8324. {
  8325. ;
  8326. return 0;
  8327. }
  8328. _ACEOF
  8329. if ac_fn_c_try_link "$LINENO"; then :
  8330. lt_aix_libpath_sed='
  8331. /Import File Strings/,/^$/ {
  8332. /^0/ {
  8333. s/^0 *\([^ ]*\) *$/\1/
  8334. p
  8335. }
  8336. }'
  8337. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8338. # Check for a 64-bit object if we didn't find anything.
  8339. if test -z "$lt_cv_aix_libpath_"; then
  8340. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8341. fi
  8342. fi
  8343. rm -f core conftest.err conftest.$ac_objext \
  8344. conftest$ac_exeext conftest.$ac_ext
  8345. if test -z "$lt_cv_aix_libpath_"; then
  8346. lt_cv_aix_libpath_=/usr/lib:/lib
  8347. fi
  8348. fi
  8349. aix_libpath=$lt_cv_aix_libpath_
  8350. fi
  8351. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8352. 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
  8353. else
  8354. if test ia64 = "$host_cpu"; then
  8355. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8356. allow_undefined_flag="-z nodefs"
  8357. 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"
  8358. else
  8359. # Determine the default libpath from the value encoded in an
  8360. # empty executable.
  8361. if test set = "${lt_cv_aix_libpath+set}"; then
  8362. aix_libpath=$lt_cv_aix_libpath
  8363. else
  8364. if ${lt_cv_aix_libpath_+:} false; then :
  8365. $as_echo_n "(cached) " >&6
  8366. else
  8367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8368. /* end confdefs.h. */
  8369. int
  8370. main ()
  8371. {
  8372. ;
  8373. return 0;
  8374. }
  8375. _ACEOF
  8376. if ac_fn_c_try_link "$LINENO"; then :
  8377. lt_aix_libpath_sed='
  8378. /Import File Strings/,/^$/ {
  8379. /^0/ {
  8380. s/^0 *\([^ ]*\) *$/\1/
  8381. p
  8382. }
  8383. }'
  8384. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8385. # Check for a 64-bit object if we didn't find anything.
  8386. if test -z "$lt_cv_aix_libpath_"; then
  8387. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8388. fi
  8389. fi
  8390. rm -f core conftest.err conftest.$ac_objext \
  8391. conftest$ac_exeext conftest.$ac_ext
  8392. if test -z "$lt_cv_aix_libpath_"; then
  8393. lt_cv_aix_libpath_=/usr/lib:/lib
  8394. fi
  8395. fi
  8396. aix_libpath=$lt_cv_aix_libpath_
  8397. fi
  8398. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8399. # Warning - without using the other run time loading flags,
  8400. # -berok will link without error, but may produce a broken library.
  8401. no_undefined_flag=' $wl-bernotok'
  8402. allow_undefined_flag=' $wl-berok'
  8403. if test yes = "$with_gnu_ld"; then
  8404. # We only use this code for GNU lds that support --whole-archive.
  8405. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8406. else
  8407. # Exported symbols can be pulled into shared objects from archives
  8408. whole_archive_flag_spec='$convenience'
  8409. fi
  8410. archive_cmds_need_lc=yes
  8411. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8412. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8413. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8414. if test svr4 != "$with_aix_soname"; then
  8415. # This is similar to how AIX traditionally builds its shared libraries.
  8416. 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'
  8417. fi
  8418. if test aix != "$with_aix_soname"; then
  8419. 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'
  8420. else
  8421. # used by -dlpreopen to get the symbols
  8422. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8423. fi
  8424. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8425. fi
  8426. fi
  8427. ;;
  8428. amigaos*)
  8429. case $host_cpu in
  8430. powerpc)
  8431. # see comment about AmigaOS4 .so support
  8432. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8433. archive_expsym_cmds=''
  8434. ;;
  8435. m68k)
  8436. 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)'
  8437. hardcode_libdir_flag_spec='-L$libdir'
  8438. hardcode_minus_L=yes
  8439. ;;
  8440. esac
  8441. ;;
  8442. bsdi[45]*)
  8443. export_dynamic_flag_spec=-rdynamic
  8444. ;;
  8445. cygwin* | mingw* | pw32* | cegcc*)
  8446. # When not using gcc, we currently assume that we are using
  8447. # Microsoft Visual C++.
  8448. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8449. # no search path for DLLs.
  8450. case $cc_basename in
  8451. cl*)
  8452. # Native MSVC
  8453. hardcode_libdir_flag_spec=' '
  8454. allow_undefined_flag=unsupported
  8455. always_export_symbols=yes
  8456. file_list_spec='@'
  8457. # Tell ltmain to make .lib files, not .a files.
  8458. libext=lib
  8459. # Tell ltmain to make .dll files, not .so files.
  8460. shrext_cmds=.dll
  8461. # FIXME: Setting linknames here is a bad hack.
  8462. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8463. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8464. cp "$export_symbols" "$output_objdir/$soname.def";
  8465. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8466. else
  8467. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8468. fi~
  8469. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8470. linknames='
  8471. # The linker will not automatically build a static lib if we build a DLL.
  8472. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8473. enable_shared_with_static_runtimes=yes
  8474. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8476. # Don't use ranlib
  8477. old_postinstall_cmds='chmod 644 $oldlib'
  8478. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8479. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8480. case $lt_outputfile in
  8481. *.exe|*.EXE) ;;
  8482. *)
  8483. lt_outputfile=$lt_outputfile.exe
  8484. lt_tool_outputfile=$lt_tool_outputfile.exe
  8485. ;;
  8486. esac~
  8487. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8488. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8489. $RM "$lt_outputfile.manifest";
  8490. fi'
  8491. ;;
  8492. *)
  8493. # Assume MSVC wrapper
  8494. hardcode_libdir_flag_spec=' '
  8495. allow_undefined_flag=unsupported
  8496. # Tell ltmain to make .lib files, not .a files.
  8497. libext=lib
  8498. # Tell ltmain to make .dll files, not .so files.
  8499. shrext_cmds=.dll
  8500. # FIXME: Setting linknames here is a bad hack.
  8501. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8502. # The linker will automatically build a .lib file if we build a DLL.
  8503. old_archive_from_new_cmds='true'
  8504. # FIXME: Should let the user specify the lib program.
  8505. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8506. enable_shared_with_static_runtimes=yes
  8507. ;;
  8508. esac
  8509. ;;
  8510. darwin* | rhapsody*)
  8511. archive_cmds_need_lc=no
  8512. hardcode_direct=no
  8513. hardcode_automatic=yes
  8514. hardcode_shlibpath_var=unsupported
  8515. if test yes = "$lt_cv_ld_force_load"; then
  8516. 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\"`'
  8517. else
  8518. whole_archive_flag_spec=''
  8519. fi
  8520. link_all_deplibs=yes
  8521. allow_undefined_flag=$_lt_dar_allow_undefined
  8522. case $cc_basename in
  8523. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8524. *) _lt_dar_can_shared=$GCC ;;
  8525. esac
  8526. if test yes = "$_lt_dar_can_shared"; then
  8527. output_verbose_link_cmd=func_echo_all
  8528. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8529. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8530. 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"
  8531. 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"
  8532. else
  8533. ld_shlibs=no
  8534. fi
  8535. ;;
  8536. dgux*)
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_libdir_flag_spec='-L$libdir'
  8539. hardcode_shlibpath_var=no
  8540. ;;
  8541. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8542. # support. Future versions do this automatically, but an explicit c++rt0.o
  8543. # does not break anything, and helps significantly (at the cost of a little
  8544. # extra space).
  8545. freebsd2.2*)
  8546. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8547. hardcode_libdir_flag_spec='-R$libdir'
  8548. hardcode_direct=yes
  8549. hardcode_shlibpath_var=no
  8550. ;;
  8551. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8552. freebsd2.*)
  8553. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8554. hardcode_direct=yes
  8555. hardcode_minus_L=yes
  8556. hardcode_shlibpath_var=no
  8557. ;;
  8558. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8559. freebsd* | dragonfly* | midnightbsd*)
  8560. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8561. hardcode_libdir_flag_spec='-R$libdir'
  8562. hardcode_direct=yes
  8563. hardcode_shlibpath_var=no
  8564. ;;
  8565. hpux9*)
  8566. if test yes = "$GCC"; then
  8567. 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'
  8568. else
  8569. 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'
  8570. fi
  8571. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8572. hardcode_libdir_separator=:
  8573. hardcode_direct=yes
  8574. # hardcode_minus_L: Not really in the search PATH,
  8575. # but as the default location of the library.
  8576. hardcode_minus_L=yes
  8577. export_dynamic_flag_spec='$wl-E'
  8578. ;;
  8579. hpux10*)
  8580. if test yes,no = "$GCC,$with_gnu_ld"; then
  8581. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8582. else
  8583. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8584. fi
  8585. if test no = "$with_gnu_ld"; then
  8586. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8587. hardcode_libdir_separator=:
  8588. hardcode_direct=yes
  8589. hardcode_direct_absolute=yes
  8590. export_dynamic_flag_spec='$wl-E'
  8591. # hardcode_minus_L: Not really in the search PATH,
  8592. # but as the default location of the library.
  8593. hardcode_minus_L=yes
  8594. fi
  8595. ;;
  8596. hpux11*)
  8597. if test yes,no = "$GCC,$with_gnu_ld"; then
  8598. case $host_cpu in
  8599. hppa*64*)
  8600. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8601. ;;
  8602. ia64*)
  8603. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8604. ;;
  8605. *)
  8606. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8607. ;;
  8608. esac
  8609. else
  8610. case $host_cpu in
  8611. hppa*64*)
  8612. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8613. ;;
  8614. ia64*)
  8615. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8616. ;;
  8617. *)
  8618. # Older versions of the 11.00 compiler do not understand -b yet
  8619. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8621. $as_echo_n "checking if $CC understands -b... " >&6; }
  8622. if ${lt_cv_prog_compiler__b+:} false; then :
  8623. $as_echo_n "(cached) " >&6
  8624. else
  8625. lt_cv_prog_compiler__b=no
  8626. save_LDFLAGS=$LDFLAGS
  8627. LDFLAGS="$LDFLAGS -b"
  8628. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8629. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8630. # The linker can only warn and ignore the option if not recognized
  8631. # So say no if there are warnings
  8632. if test -s conftest.err; then
  8633. # Append any errors to the config.log.
  8634. cat conftest.err 1>&5
  8635. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8636. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8637. if diff conftest.exp conftest.er2 >/dev/null; then
  8638. lt_cv_prog_compiler__b=yes
  8639. fi
  8640. else
  8641. lt_cv_prog_compiler__b=yes
  8642. fi
  8643. fi
  8644. $RM -r conftest*
  8645. LDFLAGS=$save_LDFLAGS
  8646. fi
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8648. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8649. if test yes = "$lt_cv_prog_compiler__b"; then
  8650. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8651. else
  8652. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8653. fi
  8654. ;;
  8655. esac
  8656. fi
  8657. if test no = "$with_gnu_ld"; then
  8658. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8659. hardcode_libdir_separator=:
  8660. case $host_cpu in
  8661. hppa*64*|ia64*)
  8662. hardcode_direct=no
  8663. hardcode_shlibpath_var=no
  8664. ;;
  8665. *)
  8666. hardcode_direct=yes
  8667. hardcode_direct_absolute=yes
  8668. export_dynamic_flag_spec='$wl-E'
  8669. # hardcode_minus_L: Not really in the search PATH,
  8670. # but as the default location of the library.
  8671. hardcode_minus_L=yes
  8672. ;;
  8673. esac
  8674. fi
  8675. ;;
  8676. irix5* | irix6* | nonstopux*)
  8677. if test yes = "$GCC"; then
  8678. 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'
  8679. # Try to use the -exported_symbol ld option, if it does not
  8680. # work, assume that -exports_file does not work either and
  8681. # implicitly export all symbols.
  8682. # This should be the same for all languages, so no per-tag cache variable.
  8683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8684. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8685. if ${lt_cv_irix_exported_symbol+:} false; then :
  8686. $as_echo_n "(cached) " >&6
  8687. else
  8688. save_LDFLAGS=$LDFLAGS
  8689. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8691. /* end confdefs.h. */
  8692. int foo (void) { return 0; }
  8693. _ACEOF
  8694. if ac_fn_c_try_link "$LINENO"; then :
  8695. lt_cv_irix_exported_symbol=yes
  8696. else
  8697. lt_cv_irix_exported_symbol=no
  8698. fi
  8699. rm -f core conftest.err conftest.$ac_objext \
  8700. conftest$ac_exeext conftest.$ac_ext
  8701. LDFLAGS=$save_LDFLAGS
  8702. fi
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8704. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8705. if test yes = "$lt_cv_irix_exported_symbol"; then
  8706. 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'
  8707. fi
  8708. else
  8709. 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'
  8710. 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'
  8711. fi
  8712. archive_cmds_need_lc='no'
  8713. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8714. hardcode_libdir_separator=:
  8715. inherit_rpath=yes
  8716. link_all_deplibs=yes
  8717. ;;
  8718. linux*)
  8719. case $cc_basename in
  8720. tcc*)
  8721. # Fabrice Bellard et al's Tiny C Compiler
  8722. ld_shlibs=yes
  8723. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8724. ;;
  8725. esac
  8726. ;;
  8727. netbsd*)
  8728. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8729. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8730. else
  8731. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8732. fi
  8733. hardcode_libdir_flag_spec='-R$libdir'
  8734. hardcode_direct=yes
  8735. hardcode_shlibpath_var=no
  8736. ;;
  8737. newsos6)
  8738. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8739. hardcode_direct=yes
  8740. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8741. hardcode_libdir_separator=:
  8742. hardcode_shlibpath_var=no
  8743. ;;
  8744. *nto* | *qnx*)
  8745. ;;
  8746. openbsd* | bitrig*)
  8747. if test -f /usr/libexec/ld.so; then
  8748. hardcode_direct=yes
  8749. hardcode_shlibpath_var=no
  8750. hardcode_direct_absolute=yes
  8751. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8752. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8753. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8754. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8755. export_dynamic_flag_spec='$wl-E'
  8756. else
  8757. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8758. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8759. fi
  8760. else
  8761. ld_shlibs=no
  8762. fi
  8763. ;;
  8764. os2*)
  8765. hardcode_libdir_flag_spec='-L$libdir'
  8766. hardcode_minus_L=yes
  8767. allow_undefined_flag=unsupported
  8768. shrext_cmds=.dll
  8769. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8770. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8771. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8772. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8773. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8774. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8775. emximp -o $lib $output_objdir/$libname.def'
  8776. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8777. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8778. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8779. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8780. prefix_cmds="$SED"~
  8781. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8782. prefix_cmds="$prefix_cmds -e 1d";
  8783. fi~
  8784. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8785. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8786. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8787. emximp -o $lib $output_objdir/$libname.def'
  8788. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8789. enable_shared_with_static_runtimes=yes
  8790. file_list_spec='@'
  8791. ;;
  8792. osf3*)
  8793. if test yes = "$GCC"; then
  8794. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8795. 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'
  8796. else
  8797. allow_undefined_flag=' -expect_unresolved \*'
  8798. 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'
  8799. fi
  8800. archive_cmds_need_lc='no'
  8801. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8802. hardcode_libdir_separator=:
  8803. ;;
  8804. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8805. if test yes = "$GCC"; then
  8806. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8807. 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'
  8808. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8809. else
  8810. allow_undefined_flag=' -expect_unresolved \*'
  8811. 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'
  8812. 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~
  8813. $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'
  8814. # Both c and cxx compiler support -rpath directly
  8815. hardcode_libdir_flag_spec='-rpath $libdir'
  8816. fi
  8817. archive_cmds_need_lc='no'
  8818. hardcode_libdir_separator=:
  8819. ;;
  8820. solaris*)
  8821. no_undefined_flag=' -z defs'
  8822. if test yes = "$GCC"; then
  8823. wlarc='$wl'
  8824. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8825. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8826. $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'
  8827. else
  8828. case `$CC -V 2>&1` in
  8829. *"Compilers 5.0"*)
  8830. wlarc=''
  8831. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8832. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8833. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8834. ;;
  8835. *)
  8836. wlarc='$wl'
  8837. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8838. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8839. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8840. ;;
  8841. esac
  8842. fi
  8843. hardcode_libdir_flag_spec='-R$libdir'
  8844. hardcode_shlibpath_var=no
  8845. case $host_os in
  8846. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8847. *)
  8848. # The compiler driver will combine and reorder linker options,
  8849. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8850. # but is careful enough not to reorder.
  8851. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8852. if test yes = "$GCC"; then
  8853. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8854. else
  8855. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8856. fi
  8857. ;;
  8858. esac
  8859. link_all_deplibs=yes
  8860. ;;
  8861. sunos4*)
  8862. if test sequent = "$host_vendor"; then
  8863. # Use $CC to link under sequent, because it throws in some extra .o
  8864. # files that make .init and .fini sections work.
  8865. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8866. else
  8867. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8868. fi
  8869. hardcode_libdir_flag_spec='-L$libdir'
  8870. hardcode_direct=yes
  8871. hardcode_minus_L=yes
  8872. hardcode_shlibpath_var=no
  8873. ;;
  8874. sysv4)
  8875. case $host_vendor in
  8876. sni)
  8877. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8878. hardcode_direct=yes # is this really true???
  8879. ;;
  8880. siemens)
  8881. ## LD is ld it makes a PLAMLIB
  8882. ## CC just makes a GrossModule.
  8883. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8884. reload_cmds='$CC -r -o $output$reload_objs'
  8885. hardcode_direct=no
  8886. ;;
  8887. motorola)
  8888. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8889. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8890. ;;
  8891. esac
  8892. runpath_var='LD_RUN_PATH'
  8893. hardcode_shlibpath_var=no
  8894. ;;
  8895. sysv4.3*)
  8896. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8897. hardcode_shlibpath_var=no
  8898. export_dynamic_flag_spec='-Bexport'
  8899. ;;
  8900. sysv4*MP*)
  8901. if test -d /usr/nec; then
  8902. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8903. hardcode_shlibpath_var=no
  8904. runpath_var=LD_RUN_PATH
  8905. hardcode_runpath_var=yes
  8906. ld_shlibs=yes
  8907. fi
  8908. ;;
  8909. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8910. no_undefined_flag='$wl-z,text'
  8911. archive_cmds_need_lc=no
  8912. hardcode_shlibpath_var=no
  8913. runpath_var='LD_RUN_PATH'
  8914. if test yes = "$GCC"; then
  8915. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8916. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8917. else
  8918. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8920. fi
  8921. ;;
  8922. sysv5* | sco3.2v5* | sco5v6*)
  8923. # Note: We CANNOT use -z defs as we might desire, because we do not
  8924. # link with -lc, and that would cause any symbols used from libc to
  8925. # always be unresolved, which means just about no library would
  8926. # ever link correctly. If we're not using GNU ld we use -z text
  8927. # though, which does catch some bad symbols but isn't as heavy-handed
  8928. # as -z defs.
  8929. no_undefined_flag='$wl-z,text'
  8930. allow_undefined_flag='$wl-z,nodefs'
  8931. archive_cmds_need_lc=no
  8932. hardcode_shlibpath_var=no
  8933. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8934. hardcode_libdir_separator=':'
  8935. link_all_deplibs=yes
  8936. export_dynamic_flag_spec='$wl-Bexport'
  8937. runpath_var='LD_RUN_PATH'
  8938. if test yes = "$GCC"; then
  8939. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8941. else
  8942. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8944. fi
  8945. ;;
  8946. uts4*)
  8947. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8948. hardcode_libdir_flag_spec='-L$libdir'
  8949. hardcode_shlibpath_var=no
  8950. ;;
  8951. *)
  8952. ld_shlibs=no
  8953. ;;
  8954. esac
  8955. if test sni = "$host_vendor"; then
  8956. case $host in
  8957. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8958. export_dynamic_flag_spec='$wl-Blargedynsym'
  8959. ;;
  8960. esac
  8961. fi
  8962. fi
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8964. $as_echo "$ld_shlibs" >&6; }
  8965. test no = "$ld_shlibs" && can_build_shared=no
  8966. with_gnu_ld=$with_gnu_ld
  8967. #
  8968. # Do we need to explicitly link libc?
  8969. #
  8970. case "x$archive_cmds_need_lc" in
  8971. x|xyes)
  8972. # Assume -lc should be added
  8973. archive_cmds_need_lc=yes
  8974. if test yes,yes = "$GCC,$enable_shared"; then
  8975. case $archive_cmds in
  8976. *'~'*)
  8977. # FIXME: we may have to deal with multi-command sequences.
  8978. ;;
  8979. '$CC '*)
  8980. # Test whether the compiler implicitly links with -lc since on some
  8981. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8982. # to ld, don't add -lc before -lgcc.
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8984. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8985. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8986. $as_echo_n "(cached) " >&6
  8987. else
  8988. $RM conftest*
  8989. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8990. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8991. (eval $ac_compile) 2>&5
  8992. ac_status=$?
  8993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8994. test $ac_status = 0; } 2>conftest.err; then
  8995. soname=conftest
  8996. lib=conftest
  8997. libobjs=conftest.$ac_objext
  8998. deplibs=
  8999. wl=$lt_prog_compiler_wl
  9000. pic_flag=$lt_prog_compiler_pic
  9001. compiler_flags=-v
  9002. linker_flags=-v
  9003. verstring=
  9004. output_objdir=.
  9005. libname=conftest
  9006. lt_save_allow_undefined_flag=$allow_undefined_flag
  9007. allow_undefined_flag=
  9008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9009. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9010. ac_status=$?
  9011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9012. test $ac_status = 0; }
  9013. then
  9014. lt_cv_archive_cmds_need_lc=no
  9015. else
  9016. lt_cv_archive_cmds_need_lc=yes
  9017. fi
  9018. allow_undefined_flag=$lt_save_allow_undefined_flag
  9019. else
  9020. cat conftest.err 1>&5
  9021. fi
  9022. $RM conftest*
  9023. fi
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9025. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9026. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9027. ;;
  9028. esac
  9029. fi
  9030. ;;
  9031. esac
  9032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9033. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9034. if test yes = "$GCC"; then
  9035. case $host_os in
  9036. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9037. *) lt_awk_arg='/^libraries:/' ;;
  9038. esac
  9039. case $host_os in
  9040. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9041. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9042. esac
  9043. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9044. case $lt_search_path_spec in
  9045. *\;*)
  9046. # if the path contains ";" then we assume it to be the separator
  9047. # otherwise default to the standard path separator (i.e. ":") - it is
  9048. # assumed that no part of a normal pathname contains ";" but that should
  9049. # okay in the real world where ";" in dirpaths is itself problematic.
  9050. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9051. ;;
  9052. *)
  9053. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9054. ;;
  9055. esac
  9056. # Ok, now we have the path, separated by spaces, we can step through it
  9057. # and add multilib dir if necessary...
  9058. lt_tmp_lt_search_path_spec=
  9059. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9060. # ...but if some path component already ends with the multilib dir we assume
  9061. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9062. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9063. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9064. lt_multi_os_dir=
  9065. ;;
  9066. esac
  9067. for lt_sys_path in $lt_search_path_spec; do
  9068. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9069. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9070. elif test -n "$lt_multi_os_dir"; then
  9071. test -d "$lt_sys_path" && \
  9072. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9073. fi
  9074. done
  9075. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9076. BEGIN {RS = " "; FS = "/|\n";} {
  9077. lt_foo = "";
  9078. lt_count = 0;
  9079. for (lt_i = NF; lt_i > 0; lt_i--) {
  9080. if ($lt_i != "" && $lt_i != ".") {
  9081. if ($lt_i == "..") {
  9082. lt_count++;
  9083. } else {
  9084. if (lt_count == 0) {
  9085. lt_foo = "/" $lt_i lt_foo;
  9086. } else {
  9087. lt_count--;
  9088. }
  9089. }
  9090. }
  9091. }
  9092. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9093. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9094. }'`
  9095. # AWK program above erroneously prepends '/' to C:/dos/paths
  9096. # for these hosts.
  9097. case $host_os in
  9098. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9099. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9100. esac
  9101. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9102. else
  9103. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9104. fi
  9105. library_names_spec=
  9106. libname_spec='lib$name'
  9107. soname_spec=
  9108. shrext_cmds=.so
  9109. postinstall_cmds=
  9110. postuninstall_cmds=
  9111. finish_cmds=
  9112. finish_eval=
  9113. shlibpath_var=
  9114. shlibpath_overrides_runpath=unknown
  9115. version_type=none
  9116. dynamic_linker="$host_os ld.so"
  9117. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9118. need_lib_prefix=unknown
  9119. hardcode_into_libs=no
  9120. # when you set need_version to no, make sure it does not cause -set_version
  9121. # flags to be left without arguments
  9122. need_version=unknown
  9123. case $host_os in
  9124. aix3*)
  9125. version_type=linux # correct to gnu/linux during the next big refactor
  9126. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9127. shlibpath_var=LIBPATH
  9128. # AIX 3 has no versioning support, so we append a major version to the name.
  9129. soname_spec='$libname$release$shared_ext$major'
  9130. ;;
  9131. aix[4-9]*)
  9132. version_type=linux # correct to gnu/linux during the next big refactor
  9133. need_lib_prefix=no
  9134. need_version=no
  9135. hardcode_into_libs=yes
  9136. if test ia64 = "$host_cpu"; then
  9137. # AIX 5 supports IA64
  9138. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. else
  9141. # With GCC up to 2.95.x, collect2 would create an import file
  9142. # for dependence libraries. The import file would start with
  9143. # the line '#! .'. This would cause the generated library to
  9144. # depend on '.', always an invalid library. This was fixed in
  9145. # development snapshots of GCC prior to 3.0.
  9146. case $host_os in
  9147. aix4 | aix4.[01] | aix4.[01].*)
  9148. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9149. echo ' yes '
  9150. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9151. :
  9152. else
  9153. can_build_shared=no
  9154. fi
  9155. ;;
  9156. esac
  9157. # Using Import Files as archive members, it is possible to support
  9158. # filename-based versioning of shared library archives on AIX. While
  9159. # this would work for both with and without runtime linking, it will
  9160. # prevent static linking of such archives. So we do filename-based
  9161. # shared library versioning with .so extension only, which is used
  9162. # when both runtime linking and shared linking is enabled.
  9163. # Unfortunately, runtime linking may impact performance, so we do
  9164. # not want this to be the default eventually. Also, we use the
  9165. # versioned .so libs for executables only if there is the -brtl
  9166. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9167. # To allow for filename-based versioning support, we need to create
  9168. # libNAME.so.V as an archive file, containing:
  9169. # *) an Import File, referring to the versioned filename of the
  9170. # archive as well as the shared archive member, telling the
  9171. # bitwidth (32 or 64) of that shared object, and providing the
  9172. # list of exported symbols of that shared object, eventually
  9173. # decorated with the 'weak' keyword
  9174. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9175. # it being seen by the linker.
  9176. # At run time we better use the real file rather than another symlink,
  9177. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9178. case $with_aix_soname,$aix_use_runtimelinking in
  9179. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9180. # soname into executable. Probably we can add versioning support to
  9181. # collect2, so additional links can be useful in future.
  9182. aix,yes) # traditional libtool
  9183. dynamic_linker='AIX unversionable lib.so'
  9184. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9185. # instead of lib<name>.a to let people know that these are not
  9186. # typical AIX shared libraries.
  9187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9188. ;;
  9189. aix,no) # traditional AIX only
  9190. dynamic_linker='AIX lib.a(lib.so.V)'
  9191. # We preserve .a as extension for shared libraries through AIX4.2
  9192. # and later when we are not doing run time linking.
  9193. library_names_spec='$libname$release.a $libname.a'
  9194. soname_spec='$libname$release$shared_ext$major'
  9195. ;;
  9196. svr4,*) # full svr4 only
  9197. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9198. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9199. # We do not specify a path in Import Files, so LIBPATH fires.
  9200. shlibpath_overrides_runpath=yes
  9201. ;;
  9202. *,yes) # both, prefer svr4
  9203. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9204. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9205. # unpreferred sharedlib libNAME.a needs extra handling
  9206. 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"'
  9207. 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"'
  9208. # We do not specify a path in Import Files, so LIBPATH fires.
  9209. shlibpath_overrides_runpath=yes
  9210. ;;
  9211. *,no) # both, prefer aix
  9212. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9213. library_names_spec='$libname$release.a $libname.a'
  9214. soname_spec='$libname$release$shared_ext$major'
  9215. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9216. 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)'
  9217. 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"'
  9218. ;;
  9219. esac
  9220. shlibpath_var=LIBPATH
  9221. fi
  9222. ;;
  9223. amigaos*)
  9224. case $host_cpu in
  9225. powerpc)
  9226. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9227. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9228. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9229. ;;
  9230. m68k)
  9231. library_names_spec='$libname.ixlibrary $libname.a'
  9232. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9233. 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'
  9234. ;;
  9235. esac
  9236. ;;
  9237. beos*)
  9238. library_names_spec='$libname$shared_ext'
  9239. dynamic_linker="$host_os ld.so"
  9240. shlibpath_var=LIBRARY_PATH
  9241. ;;
  9242. bsdi[45]*)
  9243. version_type=linux # correct to gnu/linux during the next big refactor
  9244. need_version=no
  9245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9246. soname_spec='$libname$release$shared_ext$major'
  9247. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9248. shlibpath_var=LD_LIBRARY_PATH
  9249. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9250. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9251. # the default ld.so.conf also contains /usr/contrib/lib and
  9252. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9253. # libtool to hard-code these into programs
  9254. ;;
  9255. cygwin* | mingw* | pw32* | cegcc*)
  9256. version_type=windows
  9257. shrext_cmds=.dll
  9258. need_version=no
  9259. need_lib_prefix=no
  9260. case $GCC,$cc_basename in
  9261. yes,*)
  9262. # gcc
  9263. library_names_spec='$libname.dll.a'
  9264. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9265. postinstall_cmds='base_file=`basename \$file`~
  9266. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9267. dldir=$destdir/`dirname \$dlpath`~
  9268. test -d \$dldir || mkdir -p \$dldir~
  9269. $install_prog $dir/$dlname \$dldir/$dlname~
  9270. chmod a+x \$dldir/$dlname~
  9271. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9272. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9273. fi'
  9274. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9275. dlpath=$dir/\$dldll~
  9276. $RM \$dlpath'
  9277. shlibpath_overrides_runpath=yes
  9278. case $host_os in
  9279. cygwin*)
  9280. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9281. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9282. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9283. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9284. ;;
  9285. mingw* | cegcc*)
  9286. # MinGW DLLs use traditional 'lib' prefix
  9287. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9288. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9289. ;;
  9290. pw32*)
  9291. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9292. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9293. ;;
  9294. esac
  9295. dynamic_linker='Win32 ld.exe'
  9296. ;;
  9297. *,cl*)
  9298. # Native MSVC
  9299. libname_spec='$name'
  9300. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9301. library_names_spec='$libname.dll.lib'
  9302. case $build_os in
  9303. mingw*)
  9304. sys_lib_search_path_spec=
  9305. lt_save_ifs=$IFS
  9306. IFS=';'
  9307. for lt_path in $LIB
  9308. do
  9309. IFS=$lt_save_ifs
  9310. # Let DOS variable expansion print the short 8.3 style file name.
  9311. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9312. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9313. done
  9314. IFS=$lt_save_ifs
  9315. # Convert to MSYS style.
  9316. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9317. ;;
  9318. cygwin*)
  9319. # Convert to unix form, then to dos form, then back to unix form
  9320. # but this time dos style (no spaces!) so that the unix form looks
  9321. # like /cygdrive/c/PROGRA~1:/cygdr...
  9322. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9323. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9324. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9325. ;;
  9326. *)
  9327. sys_lib_search_path_spec=$LIB
  9328. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9329. # It is most probably a Windows format PATH.
  9330. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9331. else
  9332. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9333. fi
  9334. # FIXME: find the short name or the path components, as spaces are
  9335. # common. (e.g. "Program Files" -> "PROGRA~1")
  9336. ;;
  9337. esac
  9338. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9339. postinstall_cmds='base_file=`basename \$file`~
  9340. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9341. dldir=$destdir/`dirname \$dlpath`~
  9342. test -d \$dldir || mkdir -p \$dldir~
  9343. $install_prog $dir/$dlname \$dldir/$dlname'
  9344. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9345. dlpath=$dir/\$dldll~
  9346. $RM \$dlpath'
  9347. shlibpath_overrides_runpath=yes
  9348. dynamic_linker='Win32 link.exe'
  9349. ;;
  9350. *)
  9351. # Assume MSVC wrapper
  9352. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9353. dynamic_linker='Win32 ld.exe'
  9354. ;;
  9355. esac
  9356. # FIXME: first we should search . and the directory the executable is in
  9357. shlibpath_var=PATH
  9358. ;;
  9359. darwin* | rhapsody*)
  9360. dynamic_linker="$host_os dyld"
  9361. version_type=darwin
  9362. need_lib_prefix=no
  9363. need_version=no
  9364. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9365. soname_spec='$libname$release$major$shared_ext'
  9366. shlibpath_overrides_runpath=yes
  9367. shlibpath_var=DYLD_LIBRARY_PATH
  9368. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9369. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9370. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9371. ;;
  9372. dgux*)
  9373. version_type=linux # correct to gnu/linux during the next big refactor
  9374. need_lib_prefix=no
  9375. need_version=no
  9376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9377. soname_spec='$libname$release$shared_ext$major'
  9378. shlibpath_var=LD_LIBRARY_PATH
  9379. ;;
  9380. freebsd* | dragonfly* | midnightbsd*)
  9381. # DragonFly does not have aout. When/if they implement a new
  9382. # versioning mechanism, adjust this.
  9383. if test -x /usr/bin/objformat; then
  9384. objformat=`/usr/bin/objformat`
  9385. else
  9386. case $host_os in
  9387. freebsd[23].*) objformat=aout ;;
  9388. *) objformat=elf ;;
  9389. esac
  9390. fi
  9391. version_type=freebsd-$objformat
  9392. case $version_type in
  9393. freebsd-elf*)
  9394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9395. soname_spec='$libname$release$shared_ext$major'
  9396. need_version=no
  9397. need_lib_prefix=no
  9398. ;;
  9399. freebsd-*)
  9400. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9401. need_version=yes
  9402. ;;
  9403. esac
  9404. shlibpath_var=LD_LIBRARY_PATH
  9405. case $host_os in
  9406. freebsd2.*)
  9407. shlibpath_overrides_runpath=yes
  9408. ;;
  9409. freebsd3.[01]* | freebsdelf3.[01]*)
  9410. shlibpath_overrides_runpath=yes
  9411. hardcode_into_libs=yes
  9412. ;;
  9413. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9414. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9415. shlibpath_overrides_runpath=no
  9416. hardcode_into_libs=yes
  9417. ;;
  9418. *) # from 4.6 on, and DragonFly
  9419. shlibpath_overrides_runpath=yes
  9420. hardcode_into_libs=yes
  9421. ;;
  9422. esac
  9423. ;;
  9424. haiku*)
  9425. version_type=linux # correct to gnu/linux during the next big refactor
  9426. need_lib_prefix=no
  9427. need_version=no
  9428. dynamic_linker="$host_os runtime_loader"
  9429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9430. soname_spec='$libname$release$shared_ext$major'
  9431. shlibpath_var=LIBRARY_PATH
  9432. shlibpath_overrides_runpath=no
  9433. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9434. hardcode_into_libs=yes
  9435. ;;
  9436. hpux9* | hpux10* | hpux11*)
  9437. # Give a soname corresponding to the major version so that dld.sl refuses to
  9438. # link against other versions.
  9439. version_type=sunos
  9440. need_lib_prefix=no
  9441. need_version=no
  9442. case $host_cpu in
  9443. ia64*)
  9444. shrext_cmds='.so'
  9445. hardcode_into_libs=yes
  9446. dynamic_linker="$host_os dld.so"
  9447. shlibpath_var=LD_LIBRARY_PATH
  9448. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9450. soname_spec='$libname$release$shared_ext$major'
  9451. if test 32 = "$HPUX_IA64_MODE"; then
  9452. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9453. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9454. else
  9455. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9456. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9457. fi
  9458. ;;
  9459. hppa*64*)
  9460. shrext_cmds='.sl'
  9461. hardcode_into_libs=yes
  9462. dynamic_linker="$host_os dld.sl"
  9463. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9464. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9465. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9466. soname_spec='$libname$release$shared_ext$major'
  9467. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9468. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9469. ;;
  9470. *)
  9471. shrext_cmds='.sl'
  9472. dynamic_linker="$host_os dld.sl"
  9473. shlibpath_var=SHLIB_PATH
  9474. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9476. soname_spec='$libname$release$shared_ext$major'
  9477. ;;
  9478. esac
  9479. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9480. postinstall_cmds='chmod 555 $lib'
  9481. # or fails outright, so override atomically:
  9482. install_override_mode=555
  9483. ;;
  9484. interix[3-9]*)
  9485. version_type=linux # correct to gnu/linux during the next big refactor
  9486. need_lib_prefix=no
  9487. need_version=no
  9488. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9489. soname_spec='$libname$release$shared_ext$major'
  9490. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9491. shlibpath_var=LD_LIBRARY_PATH
  9492. shlibpath_overrides_runpath=no
  9493. hardcode_into_libs=yes
  9494. ;;
  9495. irix5* | irix6* | nonstopux*)
  9496. case $host_os in
  9497. nonstopux*) version_type=nonstopux ;;
  9498. *)
  9499. if test yes = "$lt_cv_prog_gnu_ld"; then
  9500. version_type=linux # correct to gnu/linux during the next big refactor
  9501. else
  9502. version_type=irix
  9503. fi ;;
  9504. esac
  9505. need_lib_prefix=no
  9506. need_version=no
  9507. soname_spec='$libname$release$shared_ext$major'
  9508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9509. case $host_os in
  9510. irix5* | nonstopux*)
  9511. libsuff= shlibsuff=
  9512. ;;
  9513. *)
  9514. case $LD in # libtool.m4 will add one of these switches to LD
  9515. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9516. libsuff= shlibsuff= libmagic=32-bit;;
  9517. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9518. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9519. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9520. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9521. *) libsuff= shlibsuff= libmagic=never-match;;
  9522. esac
  9523. ;;
  9524. esac
  9525. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9526. shlibpath_overrides_runpath=no
  9527. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9528. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9529. hardcode_into_libs=yes
  9530. ;;
  9531. # No shared lib support for Linux oldld, aout, or coff.
  9532. linux*oldld* | linux*aout* | linux*coff*)
  9533. dynamic_linker=no
  9534. ;;
  9535. linux*android*)
  9536. version_type=none # Android doesn't support versioned libraries.
  9537. need_lib_prefix=no
  9538. need_version=no
  9539. library_names_spec='$libname$release$shared_ext'
  9540. soname_spec='$libname$release$shared_ext'
  9541. finish_cmds=
  9542. shlibpath_var=LD_LIBRARY_PATH
  9543. shlibpath_overrides_runpath=yes
  9544. # This implies no fast_install, which is unacceptable.
  9545. # Some rework will be needed to allow for fast_install
  9546. # before this can be enabled.
  9547. hardcode_into_libs=yes
  9548. dynamic_linker='Android linker'
  9549. # Don't embed -rpath directories since the linker doesn't support them.
  9550. hardcode_libdir_flag_spec='-L$libdir'
  9551. ;;
  9552. # This must be glibc/ELF.
  9553. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9554. version_type=linux # correct to gnu/linux during the next big refactor
  9555. need_lib_prefix=no
  9556. need_version=no
  9557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9558. soname_spec='$libname$release$shared_ext$major'
  9559. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9560. shlibpath_var=LD_LIBRARY_PATH
  9561. shlibpath_overrides_runpath=no
  9562. # Some binutils ld are patched to set DT_RUNPATH
  9563. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9564. $as_echo_n "(cached) " >&6
  9565. else
  9566. lt_cv_shlibpath_overrides_runpath=no
  9567. save_LDFLAGS=$LDFLAGS
  9568. save_libdir=$libdir
  9569. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9570. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9572. /* end confdefs.h. */
  9573. int
  9574. main ()
  9575. {
  9576. ;
  9577. return 0;
  9578. }
  9579. _ACEOF
  9580. if ac_fn_c_try_link "$LINENO"; then :
  9581. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9582. lt_cv_shlibpath_overrides_runpath=yes
  9583. fi
  9584. fi
  9585. rm -f core conftest.err conftest.$ac_objext \
  9586. conftest$ac_exeext conftest.$ac_ext
  9587. LDFLAGS=$save_LDFLAGS
  9588. libdir=$save_libdir
  9589. fi
  9590. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9591. # This implies no fast_install, which is unacceptable.
  9592. # Some rework will be needed to allow for fast_install
  9593. # before this can be enabled.
  9594. hardcode_into_libs=yes
  9595. # Add ABI-specific directories to the system library path.
  9596. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9597. # Ideally, we could use ldconfig to report *all* directores which are
  9598. # searched for libraries, however this is still not possible. Aside from not
  9599. # being certain /sbin/ldconfig is available, command
  9600. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9601. # even though it is searched at run-time. Try to do the best guess by
  9602. # appending ld.so.conf contents (and includes) to the search path.
  9603. if test -f /etc/ld.so.conf; then
  9604. 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' ' '`
  9605. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9606. fi
  9607. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9608. # powerpc, because MkLinux only supported shared libraries with the
  9609. # GNU dynamic linker. Since this was broken with cross compilers,
  9610. # most powerpc-linux boxes support dynamic linking these days and
  9611. # people can always --disable-shared, the test was removed, and we
  9612. # assume the GNU/Linux dynamic linker is in use.
  9613. dynamic_linker='GNU/Linux ld.so'
  9614. ;;
  9615. netbsd*)
  9616. version_type=sunos
  9617. need_lib_prefix=no
  9618. need_version=no
  9619. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9620. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9621. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9622. dynamic_linker='NetBSD (a.out) ld.so'
  9623. else
  9624. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9625. soname_spec='$libname$release$shared_ext$major'
  9626. dynamic_linker='NetBSD ld.elf_so'
  9627. fi
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. shlibpath_overrides_runpath=yes
  9630. hardcode_into_libs=yes
  9631. ;;
  9632. newsos6)
  9633. version_type=linux # correct to gnu/linux during the next big refactor
  9634. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. shlibpath_overrides_runpath=yes
  9637. ;;
  9638. *nto* | *qnx*)
  9639. version_type=qnx
  9640. need_lib_prefix=no
  9641. need_version=no
  9642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9643. soname_spec='$libname$release$shared_ext$major'
  9644. shlibpath_var=LD_LIBRARY_PATH
  9645. shlibpath_overrides_runpath=no
  9646. hardcode_into_libs=yes
  9647. dynamic_linker='ldqnx.so'
  9648. ;;
  9649. openbsd* | bitrig*)
  9650. version_type=sunos
  9651. sys_lib_dlsearch_path_spec=/usr/lib
  9652. need_lib_prefix=no
  9653. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9654. need_version=no
  9655. else
  9656. need_version=yes
  9657. fi
  9658. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9659. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9660. shlibpath_var=LD_LIBRARY_PATH
  9661. shlibpath_overrides_runpath=yes
  9662. ;;
  9663. os2*)
  9664. libname_spec='$name'
  9665. shrext_cmds=.dll
  9666. need_lib_prefix=no
  9667. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9668. # SDL customization: removed versioning support.
  9669. # version_type=windows
  9670. # need_version=no
  9671. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9672. # v=$($ECHO $release$versuffix | tr -d .-);
  9673. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9674. # $ECHO $n$v`$shared_ext'
  9675. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9676. library_names_spec='${libname}_dll.$libext'
  9677. dynamic_linker='OS/2 ld.exe'
  9678. shlibpath_var=BEGINLIBPATH
  9679. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9680. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9681. postinstall_cmds='base_file=`basename \$file`~
  9682. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9683. dldir=$destdir/`dirname \$dlpath`~
  9684. test -d \$dldir || mkdir -p \$dldir~
  9685. $install_prog $dir/$dlname \$dldir/$dlname~
  9686. chmod a+x \$dldir/$dlname~
  9687. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9688. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9689. fi'
  9690. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9691. dlpath=$dir/\$dldll~
  9692. $RM \$dlpath'
  9693. ;;
  9694. osf3* | osf4* | osf5*)
  9695. version_type=osf
  9696. need_lib_prefix=no
  9697. need_version=no
  9698. soname_spec='$libname$release$shared_ext$major'
  9699. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9700. shlibpath_var=LD_LIBRARY_PATH
  9701. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9702. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9703. ;;
  9704. rdos*)
  9705. dynamic_linker=no
  9706. ;;
  9707. solaris*)
  9708. version_type=linux # correct to gnu/linux during the next big refactor
  9709. need_lib_prefix=no
  9710. need_version=no
  9711. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9712. soname_spec='$libname$release$shared_ext$major'
  9713. shlibpath_var=LD_LIBRARY_PATH
  9714. shlibpath_overrides_runpath=yes
  9715. hardcode_into_libs=yes
  9716. # ldd complains unless libraries are executable
  9717. postinstall_cmds='chmod +x $lib'
  9718. ;;
  9719. sunos4*)
  9720. version_type=sunos
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9722. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. shlibpath_overrides_runpath=yes
  9725. if test yes = "$with_gnu_ld"; then
  9726. need_lib_prefix=no
  9727. fi
  9728. need_version=yes
  9729. ;;
  9730. sysv4 | sysv4.3*)
  9731. version_type=linux # correct to gnu/linux during the next big refactor
  9732. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9733. soname_spec='$libname$release$shared_ext$major'
  9734. shlibpath_var=LD_LIBRARY_PATH
  9735. case $host_vendor in
  9736. sni)
  9737. shlibpath_overrides_runpath=no
  9738. need_lib_prefix=no
  9739. runpath_var=LD_RUN_PATH
  9740. ;;
  9741. siemens)
  9742. need_lib_prefix=no
  9743. ;;
  9744. motorola)
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. shlibpath_overrides_runpath=no
  9748. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9749. ;;
  9750. esac
  9751. ;;
  9752. sysv4*MP*)
  9753. if test -d /usr/nec; then
  9754. version_type=linux # correct to gnu/linux during the next big refactor
  9755. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9756. soname_spec='$libname$shared_ext.$major'
  9757. shlibpath_var=LD_LIBRARY_PATH
  9758. fi
  9759. ;;
  9760. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9761. version_type=sco
  9762. need_lib_prefix=no
  9763. need_version=no
  9764. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9765. soname_spec='$libname$release$shared_ext$major'
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. shlibpath_overrides_runpath=yes
  9768. hardcode_into_libs=yes
  9769. if test yes = "$with_gnu_ld"; then
  9770. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9771. else
  9772. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9773. case $host_os in
  9774. sco3.2v5*)
  9775. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9776. ;;
  9777. esac
  9778. fi
  9779. sys_lib_dlsearch_path_spec='/usr/lib'
  9780. ;;
  9781. tpf*)
  9782. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9783. version_type=linux # correct to gnu/linux during the next big refactor
  9784. need_lib_prefix=no
  9785. need_version=no
  9786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9787. shlibpath_var=LD_LIBRARY_PATH
  9788. shlibpath_overrides_runpath=no
  9789. hardcode_into_libs=yes
  9790. ;;
  9791. uts4*)
  9792. version_type=linux # correct to gnu/linux during the next big refactor
  9793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9794. soname_spec='$libname$release$shared_ext$major'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. ;;
  9797. *)
  9798. dynamic_linker=no
  9799. ;;
  9800. esac
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9802. $as_echo "$dynamic_linker" >&6; }
  9803. test no = "$dynamic_linker" && can_build_shared=no
  9804. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9805. if test yes = "$GCC"; then
  9806. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9807. fi
  9808. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9809. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9810. fi
  9811. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9812. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9813. fi
  9814. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9815. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9816. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9817. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9818. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9819. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9821. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9822. hardcode_action=
  9823. if test -n "$hardcode_libdir_flag_spec" ||
  9824. test -n "$runpath_var" ||
  9825. test yes = "$hardcode_automatic"; then
  9826. # We can hardcode non-existent directories.
  9827. if test no != "$hardcode_direct" &&
  9828. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9829. # have to relink, otherwise we might link with an installed library
  9830. # when we should be linking with a yet-to-be-installed one
  9831. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9832. test no != "$hardcode_minus_L"; then
  9833. # Linking always hardcodes the temporary library directory.
  9834. hardcode_action=relink
  9835. else
  9836. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9837. hardcode_action=immediate
  9838. fi
  9839. else
  9840. # We cannot hardcode anything, or else we can only hardcode existing
  9841. # directories.
  9842. hardcode_action=unsupported
  9843. fi
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9845. $as_echo "$hardcode_action" >&6; }
  9846. if test relink = "$hardcode_action" ||
  9847. test yes = "$inherit_rpath"; then
  9848. # Fast installation is not supported
  9849. enable_fast_install=no
  9850. elif test yes = "$shlibpath_overrides_runpath" ||
  9851. test no = "$enable_shared"; then
  9852. # Fast installation is not necessary
  9853. enable_fast_install=needless
  9854. fi
  9855. if test yes != "$enable_dlopen"; then
  9856. enable_dlopen=unknown
  9857. enable_dlopen_self=unknown
  9858. enable_dlopen_self_static=unknown
  9859. else
  9860. lt_cv_dlopen=no
  9861. lt_cv_dlopen_libs=
  9862. case $host_os in
  9863. beos*)
  9864. lt_cv_dlopen=load_add_on
  9865. lt_cv_dlopen_libs=
  9866. lt_cv_dlopen_self=yes
  9867. ;;
  9868. mingw* | pw32* | cegcc*)
  9869. lt_cv_dlopen=LoadLibrary
  9870. lt_cv_dlopen_libs=
  9871. ;;
  9872. cygwin*)
  9873. lt_cv_dlopen=dlopen
  9874. lt_cv_dlopen_libs=
  9875. ;;
  9876. darwin*)
  9877. # if libdl is installed we need to link against it
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9879. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9880. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9881. $as_echo_n "(cached) " >&6
  9882. else
  9883. ac_check_lib_save_LIBS=$LIBS
  9884. LIBS="-ldl $LIBS"
  9885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9886. /* end confdefs.h. */
  9887. /* Override any GCC internal prototype to avoid an error.
  9888. Use char because int might match the return type of a GCC
  9889. builtin and then its argument prototype would still apply. */
  9890. #ifdef __cplusplus
  9891. extern "C"
  9892. #endif
  9893. char dlopen ();
  9894. int
  9895. main ()
  9896. {
  9897. return dlopen ();
  9898. ;
  9899. return 0;
  9900. }
  9901. _ACEOF
  9902. if ac_fn_c_try_link "$LINENO"; then :
  9903. ac_cv_lib_dl_dlopen=yes
  9904. else
  9905. ac_cv_lib_dl_dlopen=no
  9906. fi
  9907. rm -f core conftest.err conftest.$ac_objext \
  9908. conftest$ac_exeext conftest.$ac_ext
  9909. LIBS=$ac_check_lib_save_LIBS
  9910. fi
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9912. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9913. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9914. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9915. else
  9916. lt_cv_dlopen=dyld
  9917. lt_cv_dlopen_libs=
  9918. lt_cv_dlopen_self=yes
  9919. fi
  9920. ;;
  9921. tpf*)
  9922. # Don't try to run any link tests for TPF. We know it's impossible
  9923. # because TPF is a cross-compiler, and we know how we open DSOs.
  9924. lt_cv_dlopen=dlopen
  9925. lt_cv_dlopen_libs=
  9926. lt_cv_dlopen_self=no
  9927. ;;
  9928. *)
  9929. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9930. if test "x$ac_cv_func_shl_load" = xyes; then :
  9931. lt_cv_dlopen=shl_load
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9934. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9935. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. ac_check_lib_save_LIBS=$LIBS
  9939. LIBS="-ldld $LIBS"
  9940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9941. /* end confdefs.h. */
  9942. /* Override any GCC internal prototype to avoid an error.
  9943. Use char because int might match the return type of a GCC
  9944. builtin and then its argument prototype would still apply. */
  9945. #ifdef __cplusplus
  9946. extern "C"
  9947. #endif
  9948. char shl_load ();
  9949. int
  9950. main ()
  9951. {
  9952. return shl_load ();
  9953. ;
  9954. return 0;
  9955. }
  9956. _ACEOF
  9957. if ac_fn_c_try_link "$LINENO"; then :
  9958. ac_cv_lib_dld_shl_load=yes
  9959. else
  9960. ac_cv_lib_dld_shl_load=no
  9961. fi
  9962. rm -f core conftest.err conftest.$ac_objext \
  9963. conftest$ac_exeext conftest.$ac_ext
  9964. LIBS=$ac_check_lib_save_LIBS
  9965. fi
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9967. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9968. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9969. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9970. else
  9971. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9972. if test "x$ac_cv_func_dlopen" = xyes; then :
  9973. lt_cv_dlopen=dlopen
  9974. else
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9976. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9977. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. ac_check_lib_save_LIBS=$LIBS
  9981. LIBS="-ldl $LIBS"
  9982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9983. /* end confdefs.h. */
  9984. /* Override any GCC internal prototype to avoid an error.
  9985. Use char because int might match the return type of a GCC
  9986. builtin and then its argument prototype would still apply. */
  9987. #ifdef __cplusplus
  9988. extern "C"
  9989. #endif
  9990. char dlopen ();
  9991. int
  9992. main ()
  9993. {
  9994. return dlopen ();
  9995. ;
  9996. return 0;
  9997. }
  9998. _ACEOF
  9999. if ac_fn_c_try_link "$LINENO"; then :
  10000. ac_cv_lib_dl_dlopen=yes
  10001. else
  10002. ac_cv_lib_dl_dlopen=no
  10003. fi
  10004. rm -f core conftest.err conftest.$ac_objext \
  10005. conftest$ac_exeext conftest.$ac_ext
  10006. LIBS=$ac_check_lib_save_LIBS
  10007. fi
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10009. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10010. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10011. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10012. else
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10014. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10015. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10016. $as_echo_n "(cached) " >&6
  10017. else
  10018. ac_check_lib_save_LIBS=$LIBS
  10019. LIBS="-lsvld $LIBS"
  10020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10021. /* end confdefs.h. */
  10022. /* Override any GCC internal prototype to avoid an error.
  10023. Use char because int might match the return type of a GCC
  10024. builtin and then its argument prototype would still apply. */
  10025. #ifdef __cplusplus
  10026. extern "C"
  10027. #endif
  10028. char dlopen ();
  10029. int
  10030. main ()
  10031. {
  10032. return dlopen ();
  10033. ;
  10034. return 0;
  10035. }
  10036. _ACEOF
  10037. if ac_fn_c_try_link "$LINENO"; then :
  10038. ac_cv_lib_svld_dlopen=yes
  10039. else
  10040. ac_cv_lib_svld_dlopen=no
  10041. fi
  10042. rm -f core conftest.err conftest.$ac_objext \
  10043. conftest$ac_exeext conftest.$ac_ext
  10044. LIBS=$ac_check_lib_save_LIBS
  10045. fi
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10047. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10048. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10049. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10050. else
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10052. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10053. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10054. $as_echo_n "(cached) " >&6
  10055. else
  10056. ac_check_lib_save_LIBS=$LIBS
  10057. LIBS="-ldld $LIBS"
  10058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10059. /* end confdefs.h. */
  10060. /* Override any GCC internal prototype to avoid an error.
  10061. Use char because int might match the return type of a GCC
  10062. builtin and then its argument prototype would still apply. */
  10063. #ifdef __cplusplus
  10064. extern "C"
  10065. #endif
  10066. char dld_link ();
  10067. int
  10068. main ()
  10069. {
  10070. return dld_link ();
  10071. ;
  10072. return 0;
  10073. }
  10074. _ACEOF
  10075. if ac_fn_c_try_link "$LINENO"; then :
  10076. ac_cv_lib_dld_dld_link=yes
  10077. else
  10078. ac_cv_lib_dld_dld_link=no
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. LIBS=$ac_check_lib_save_LIBS
  10083. fi
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10085. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10086. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10087. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10088. fi
  10089. fi
  10090. fi
  10091. fi
  10092. fi
  10093. fi
  10094. ;;
  10095. esac
  10096. if test no = "$lt_cv_dlopen"; then
  10097. enable_dlopen=no
  10098. else
  10099. enable_dlopen=yes
  10100. fi
  10101. case $lt_cv_dlopen in
  10102. dlopen)
  10103. save_CPPFLAGS=$CPPFLAGS
  10104. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10105. save_LDFLAGS=$LDFLAGS
  10106. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10107. save_LIBS=$LIBS
  10108. LIBS="$lt_cv_dlopen_libs $LIBS"
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10110. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10111. if ${lt_cv_dlopen_self+:} false; then :
  10112. $as_echo_n "(cached) " >&6
  10113. else
  10114. if test yes = "$cross_compiling"; then :
  10115. lt_cv_dlopen_self=cross
  10116. else
  10117. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10118. lt_status=$lt_dlunknown
  10119. cat > conftest.$ac_ext <<_LT_EOF
  10120. #line $LINENO "configure"
  10121. #include "confdefs.h"
  10122. #if HAVE_DLFCN_H
  10123. #include <dlfcn.h>
  10124. #endif
  10125. #include <stdio.h>
  10126. #ifdef RTLD_GLOBAL
  10127. # define LT_DLGLOBAL RTLD_GLOBAL
  10128. #else
  10129. # ifdef DL_GLOBAL
  10130. # define LT_DLGLOBAL DL_GLOBAL
  10131. # else
  10132. # define LT_DLGLOBAL 0
  10133. # endif
  10134. #endif
  10135. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10136. find out it does not work in some platform. */
  10137. #ifndef LT_DLLAZY_OR_NOW
  10138. # ifdef RTLD_LAZY
  10139. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10140. # else
  10141. # ifdef DL_LAZY
  10142. # define LT_DLLAZY_OR_NOW DL_LAZY
  10143. # else
  10144. # ifdef RTLD_NOW
  10145. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10146. # else
  10147. # ifdef DL_NOW
  10148. # define LT_DLLAZY_OR_NOW DL_NOW
  10149. # else
  10150. # define LT_DLLAZY_OR_NOW 0
  10151. # endif
  10152. # endif
  10153. # endif
  10154. # endif
  10155. #endif
  10156. /* When -fvisibility=hidden is used, assume the code has been annotated
  10157. correspondingly for the symbols needed. */
  10158. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10159. int fnord () __attribute__((visibility("default")));
  10160. #endif
  10161. int fnord () { return 42; }
  10162. int main ()
  10163. {
  10164. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10165. int status = $lt_dlunknown;
  10166. if (self)
  10167. {
  10168. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10169. else
  10170. {
  10171. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10172. else puts (dlerror ());
  10173. }
  10174. /* dlclose (self); */
  10175. }
  10176. else
  10177. puts (dlerror ());
  10178. return status;
  10179. }
  10180. _LT_EOF
  10181. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10182. (eval $ac_link) 2>&5
  10183. ac_status=$?
  10184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10185. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10186. (./conftest; exit; ) >&5 2>/dev/null
  10187. lt_status=$?
  10188. case x$lt_status in
  10189. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10190. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10191. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10192. esac
  10193. else :
  10194. # compilation failed
  10195. lt_cv_dlopen_self=no
  10196. fi
  10197. fi
  10198. rm -fr conftest*
  10199. fi
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10201. $as_echo "$lt_cv_dlopen_self" >&6; }
  10202. if test yes = "$lt_cv_dlopen_self"; then
  10203. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10205. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10206. if ${lt_cv_dlopen_self_static+:} false; then :
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. if test yes = "$cross_compiling"; then :
  10210. lt_cv_dlopen_self_static=cross
  10211. else
  10212. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10213. lt_status=$lt_dlunknown
  10214. cat > conftest.$ac_ext <<_LT_EOF
  10215. #line $LINENO "configure"
  10216. #include "confdefs.h"
  10217. #if HAVE_DLFCN_H
  10218. #include <dlfcn.h>
  10219. #endif
  10220. #include <stdio.h>
  10221. #ifdef RTLD_GLOBAL
  10222. # define LT_DLGLOBAL RTLD_GLOBAL
  10223. #else
  10224. # ifdef DL_GLOBAL
  10225. # define LT_DLGLOBAL DL_GLOBAL
  10226. # else
  10227. # define LT_DLGLOBAL 0
  10228. # endif
  10229. #endif
  10230. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10231. find out it does not work in some platform. */
  10232. #ifndef LT_DLLAZY_OR_NOW
  10233. # ifdef RTLD_LAZY
  10234. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10235. # else
  10236. # ifdef DL_LAZY
  10237. # define LT_DLLAZY_OR_NOW DL_LAZY
  10238. # else
  10239. # ifdef RTLD_NOW
  10240. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10241. # else
  10242. # ifdef DL_NOW
  10243. # define LT_DLLAZY_OR_NOW DL_NOW
  10244. # else
  10245. # define LT_DLLAZY_OR_NOW 0
  10246. # endif
  10247. # endif
  10248. # endif
  10249. # endif
  10250. #endif
  10251. /* When -fvisibility=hidden is used, assume the code has been annotated
  10252. correspondingly for the symbols needed. */
  10253. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10254. int fnord () __attribute__((visibility("default")));
  10255. #endif
  10256. int fnord () { return 42; }
  10257. int main ()
  10258. {
  10259. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10260. int status = $lt_dlunknown;
  10261. if (self)
  10262. {
  10263. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10264. else
  10265. {
  10266. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10267. else puts (dlerror ());
  10268. }
  10269. /* dlclose (self); */
  10270. }
  10271. else
  10272. puts (dlerror ());
  10273. return status;
  10274. }
  10275. _LT_EOF
  10276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10277. (eval $ac_link) 2>&5
  10278. ac_status=$?
  10279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10280. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10281. (./conftest; exit; ) >&5 2>/dev/null
  10282. lt_status=$?
  10283. case x$lt_status in
  10284. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10285. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10286. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10287. esac
  10288. else :
  10289. # compilation failed
  10290. lt_cv_dlopen_self_static=no
  10291. fi
  10292. fi
  10293. rm -fr conftest*
  10294. fi
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10296. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10297. fi
  10298. CPPFLAGS=$save_CPPFLAGS
  10299. LDFLAGS=$save_LDFLAGS
  10300. LIBS=$save_LIBS
  10301. ;;
  10302. esac
  10303. case $lt_cv_dlopen_self in
  10304. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10305. *) enable_dlopen_self=unknown ;;
  10306. esac
  10307. case $lt_cv_dlopen_self_static in
  10308. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10309. *) enable_dlopen_self_static=unknown ;;
  10310. esac
  10311. fi
  10312. striplib=
  10313. old_striplib=
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10315. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10316. if test -z "$STRIP"; then
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10318. $as_echo "no" >&6; }
  10319. else
  10320. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10321. old_striplib="$STRIP --strip-debug"
  10322. striplib="$STRIP --strip-unneeded"
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10324. $as_echo "yes" >&6; }
  10325. else
  10326. case $host_os in
  10327. darwin*)
  10328. # FIXME - insert some real tests, host_os isn't really good enough
  10329. striplib="$STRIP -x"
  10330. old_striplib="$STRIP -S"
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10332. $as_echo "yes" >&6; }
  10333. ;;
  10334. freebsd*)
  10335. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10336. old_striplib="$STRIP --strip-debug"
  10337. striplib="$STRIP --strip-unneeded"
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10339. $as_echo "yes" >&6; }
  10340. else
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10342. $as_echo "no" >&6; }
  10343. fi
  10344. ;;
  10345. *)
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10347. $as_echo "no" >&6; }
  10348. ;;
  10349. esac
  10350. fi
  10351. fi
  10352. # Report what library types will actually be built
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10354. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10356. $as_echo "$can_build_shared" >&6; }
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10358. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10359. test no = "$can_build_shared" && enable_shared=no
  10360. # On AIX, shared libraries and static libraries use the same namespace, and
  10361. # are all built from PIC.
  10362. case $host_os in
  10363. aix3*)
  10364. test yes = "$enable_shared" && enable_static=no
  10365. if test -n "$RANLIB"; then
  10366. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10367. postinstall_cmds='$RANLIB $lib'
  10368. fi
  10369. ;;
  10370. aix[4-9]*)
  10371. if test ia64 != "$host_cpu"; then
  10372. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10373. yes,aix,yes) ;; # shared object as lib.so file only
  10374. yes,svr4,*) ;; # shared object as lib.so archive member only
  10375. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10376. esac
  10377. fi
  10378. ;;
  10379. esac
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10381. $as_echo "$enable_shared" >&6; }
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10383. $as_echo_n "checking whether to build static libraries... " >&6; }
  10384. # Make sure either enable_shared or enable_static is yes.
  10385. test yes = "$enable_shared" || enable_static=yes
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10387. $as_echo "$enable_static" >&6; }
  10388. fi
  10389. ac_ext=c
  10390. ac_cpp='$CPP $CPPFLAGS'
  10391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10394. CC=$lt_save_CC
  10395. ac_config_commands="$ac_config_commands libtool"
  10396. # Only expand once:
  10397. if test -n "$ac_tool_prefix"; then
  10398. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10399. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10401. $as_echo_n "checking for $ac_word... " >&6; }
  10402. if ${ac_cv_prog_RC+:} false; then :
  10403. $as_echo_n "(cached) " >&6
  10404. else
  10405. if test -n "$RC"; then
  10406. ac_cv_prog_RC="$RC" # Let the user override the test.
  10407. else
  10408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10409. for as_dir in $PATH
  10410. do
  10411. IFS=$as_save_IFS
  10412. test -z "$as_dir" && as_dir=.
  10413. for ac_exec_ext in '' $ac_executable_extensions; do
  10414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10415. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10417. break 2
  10418. fi
  10419. done
  10420. done
  10421. IFS=$as_save_IFS
  10422. fi
  10423. fi
  10424. RC=$ac_cv_prog_RC
  10425. if test -n "$RC"; then
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10427. $as_echo "$RC" >&6; }
  10428. else
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10430. $as_echo "no" >&6; }
  10431. fi
  10432. fi
  10433. if test -z "$ac_cv_prog_RC"; then
  10434. ac_ct_RC=$RC
  10435. # Extract the first word of "windres", so it can be a program name with args.
  10436. set dummy windres; ac_word=$2
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10438. $as_echo_n "checking for $ac_word... " >&6; }
  10439. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. if test -n "$ac_ct_RC"; then
  10443. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10444. else
  10445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10446. for as_dir in $PATH
  10447. do
  10448. IFS=$as_save_IFS
  10449. test -z "$as_dir" && as_dir=.
  10450. for ac_exec_ext in '' $ac_executable_extensions; do
  10451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10452. ac_cv_prog_ac_ct_RC="windres"
  10453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10454. break 2
  10455. fi
  10456. done
  10457. done
  10458. IFS=$as_save_IFS
  10459. fi
  10460. fi
  10461. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10462. if test -n "$ac_ct_RC"; then
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10464. $as_echo "$ac_ct_RC" >&6; }
  10465. else
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10467. $as_echo "no" >&6; }
  10468. fi
  10469. if test "x$ac_ct_RC" = x; then
  10470. RC=""
  10471. else
  10472. case $cross_compiling:$ac_tool_warned in
  10473. yes:)
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10476. ac_tool_warned=yes ;;
  10477. esac
  10478. RC=$ac_ct_RC
  10479. fi
  10480. else
  10481. RC="$ac_cv_prog_RC"
  10482. fi
  10483. # Source file extension for RC test sources.
  10484. ac_ext=rc
  10485. # Object file extension for compiled RC test sources.
  10486. objext=o
  10487. objext_RC=$objext
  10488. # Code to be used in simple compile tests
  10489. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10490. # Code to be used in simple link tests
  10491. lt_simple_link_test_code=$lt_simple_compile_test_code
  10492. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10493. # If no C compiler was specified, use CC.
  10494. LTCC=${LTCC-"$CC"}
  10495. # If no C compiler flags were specified, use CFLAGS.
  10496. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10497. # Allow CC to be a program name with arguments.
  10498. compiler=$CC
  10499. # save warnings/boilerplate of simple test code
  10500. ac_outfile=conftest.$ac_objext
  10501. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10502. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10503. _lt_compiler_boilerplate=`cat conftest.err`
  10504. $RM conftest*
  10505. ac_outfile=conftest.$ac_objext
  10506. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10507. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10508. _lt_linker_boilerplate=`cat conftest.err`
  10509. $RM -r conftest*
  10510. # Allow CC to be a program name with arguments.
  10511. lt_save_CC=$CC
  10512. lt_save_CFLAGS=$CFLAGS
  10513. lt_save_GCC=$GCC
  10514. GCC=
  10515. CC=${RC-"windres"}
  10516. CFLAGS=
  10517. compiler=$CC
  10518. compiler_RC=$CC
  10519. func_cc_basename $compiler
  10520. cc_basename=$func_cc_basename_result
  10521. lt_cv_prog_compiler_c_o_RC=yes
  10522. if test -n "$compiler"; then
  10523. :
  10524. fi
  10525. GCC=$lt_save_GCC
  10526. ac_ext=c
  10527. ac_cpp='$CPP $CPPFLAGS'
  10528. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10529. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10530. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10531. CC=$lt_save_CC
  10532. CFLAGS=$lt_save_CFLAGS
  10533. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10534. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10535. LT_REVISION=$SDL_INTERFACE_AGE
  10536. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10537. ac_ext=c
  10538. ac_cpp='$CPP $CPPFLAGS'
  10539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10542. if test -n "$ac_tool_prefix"; then
  10543. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10544. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10546. $as_echo_n "checking for $ac_word... " >&6; }
  10547. if ${ac_cv_prog_CC+:} false; then :
  10548. $as_echo_n "(cached) " >&6
  10549. else
  10550. if test -n "$CC"; then
  10551. ac_cv_prog_CC="$CC" # Let the user override the test.
  10552. else
  10553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10554. for as_dir in $PATH
  10555. do
  10556. IFS=$as_save_IFS
  10557. test -z "$as_dir" && as_dir=.
  10558. for ac_exec_ext in '' $ac_executable_extensions; do
  10559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10560. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10562. break 2
  10563. fi
  10564. done
  10565. done
  10566. IFS=$as_save_IFS
  10567. fi
  10568. fi
  10569. CC=$ac_cv_prog_CC
  10570. if test -n "$CC"; then
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10572. $as_echo "$CC" >&6; }
  10573. else
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10575. $as_echo "no" >&6; }
  10576. fi
  10577. fi
  10578. if test -z "$ac_cv_prog_CC"; then
  10579. ac_ct_CC=$CC
  10580. # Extract the first word of "gcc", so it can be a program name with args.
  10581. set dummy gcc; ac_word=$2
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10583. $as_echo_n "checking for $ac_word... " >&6; }
  10584. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10585. $as_echo_n "(cached) " >&6
  10586. else
  10587. if test -n "$ac_ct_CC"; then
  10588. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10589. else
  10590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10591. for as_dir in $PATH
  10592. do
  10593. IFS=$as_save_IFS
  10594. test -z "$as_dir" && as_dir=.
  10595. for ac_exec_ext in '' $ac_executable_extensions; do
  10596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10597. ac_cv_prog_ac_ct_CC="gcc"
  10598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10599. break 2
  10600. fi
  10601. done
  10602. done
  10603. IFS=$as_save_IFS
  10604. fi
  10605. fi
  10606. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10607. if test -n "$ac_ct_CC"; then
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10609. $as_echo "$ac_ct_CC" >&6; }
  10610. else
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10612. $as_echo "no" >&6; }
  10613. fi
  10614. if test "x$ac_ct_CC" = x; then
  10615. CC=""
  10616. else
  10617. case $cross_compiling:$ac_tool_warned in
  10618. yes:)
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10621. ac_tool_warned=yes ;;
  10622. esac
  10623. CC=$ac_ct_CC
  10624. fi
  10625. else
  10626. CC="$ac_cv_prog_CC"
  10627. fi
  10628. if test -z "$CC"; then
  10629. if test -n "$ac_tool_prefix"; then
  10630. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10631. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10633. $as_echo_n "checking for $ac_word... " >&6; }
  10634. if ${ac_cv_prog_CC+:} false; then :
  10635. $as_echo_n "(cached) " >&6
  10636. else
  10637. if test -n "$CC"; then
  10638. ac_cv_prog_CC="$CC" # Let the user override the test.
  10639. else
  10640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10641. for as_dir in $PATH
  10642. do
  10643. IFS=$as_save_IFS
  10644. test -z "$as_dir" && as_dir=.
  10645. for ac_exec_ext in '' $ac_executable_extensions; do
  10646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10647. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10649. break 2
  10650. fi
  10651. done
  10652. done
  10653. IFS=$as_save_IFS
  10654. fi
  10655. fi
  10656. CC=$ac_cv_prog_CC
  10657. if test -n "$CC"; then
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10659. $as_echo "$CC" >&6; }
  10660. else
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10662. $as_echo "no" >&6; }
  10663. fi
  10664. fi
  10665. fi
  10666. if test -z "$CC"; then
  10667. # Extract the first word of "cc", so it can be a program name with args.
  10668. set dummy cc; ac_word=$2
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10670. $as_echo_n "checking for $ac_word... " >&6; }
  10671. if ${ac_cv_prog_CC+:} false; then :
  10672. $as_echo_n "(cached) " >&6
  10673. else
  10674. if test -n "$CC"; then
  10675. ac_cv_prog_CC="$CC" # Let the user override the test.
  10676. else
  10677. ac_prog_rejected=no
  10678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10679. for as_dir in $PATH
  10680. do
  10681. IFS=$as_save_IFS
  10682. test -z "$as_dir" && as_dir=.
  10683. for ac_exec_ext in '' $ac_executable_extensions; do
  10684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10685. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10686. ac_prog_rejected=yes
  10687. continue
  10688. fi
  10689. ac_cv_prog_CC="cc"
  10690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10691. break 2
  10692. fi
  10693. done
  10694. done
  10695. IFS=$as_save_IFS
  10696. if test $ac_prog_rejected = yes; then
  10697. # We found a bogon in the path, so make sure we never use it.
  10698. set dummy $ac_cv_prog_CC
  10699. shift
  10700. if test $# != 0; then
  10701. # We chose a different compiler from the bogus one.
  10702. # However, it has the same basename, so the bogon will be chosen
  10703. # first if we set CC to just the basename; use the full file name.
  10704. shift
  10705. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10706. fi
  10707. fi
  10708. fi
  10709. fi
  10710. CC=$ac_cv_prog_CC
  10711. if test -n "$CC"; then
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10713. $as_echo "$CC" >&6; }
  10714. else
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10716. $as_echo "no" >&6; }
  10717. fi
  10718. fi
  10719. if test -z "$CC"; then
  10720. if test -n "$ac_tool_prefix"; then
  10721. for ac_prog in cl.exe
  10722. do
  10723. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10724. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10726. $as_echo_n "checking for $ac_word... " >&6; }
  10727. if ${ac_cv_prog_CC+:} false; then :
  10728. $as_echo_n "(cached) " >&6
  10729. else
  10730. if test -n "$CC"; then
  10731. ac_cv_prog_CC="$CC" # Let the user override the test.
  10732. else
  10733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10734. for as_dir in $PATH
  10735. do
  10736. IFS=$as_save_IFS
  10737. test -z "$as_dir" && as_dir=.
  10738. for ac_exec_ext in '' $ac_executable_extensions; do
  10739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10740. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10742. break 2
  10743. fi
  10744. done
  10745. done
  10746. IFS=$as_save_IFS
  10747. fi
  10748. fi
  10749. CC=$ac_cv_prog_CC
  10750. if test -n "$CC"; then
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10752. $as_echo "$CC" >&6; }
  10753. else
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10755. $as_echo "no" >&6; }
  10756. fi
  10757. test -n "$CC" && break
  10758. done
  10759. fi
  10760. if test -z "$CC"; then
  10761. ac_ct_CC=$CC
  10762. for ac_prog in cl.exe
  10763. do
  10764. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10765. set dummy $ac_prog; ac_word=$2
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10767. $as_echo_n "checking for $ac_word... " >&6; }
  10768. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10769. $as_echo_n "(cached) " >&6
  10770. else
  10771. if test -n "$ac_ct_CC"; then
  10772. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10773. else
  10774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10775. for as_dir in $PATH
  10776. do
  10777. IFS=$as_save_IFS
  10778. test -z "$as_dir" && as_dir=.
  10779. for ac_exec_ext in '' $ac_executable_extensions; do
  10780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10781. ac_cv_prog_ac_ct_CC="$ac_prog"
  10782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10783. break 2
  10784. fi
  10785. done
  10786. done
  10787. IFS=$as_save_IFS
  10788. fi
  10789. fi
  10790. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10791. if test -n "$ac_ct_CC"; then
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10793. $as_echo "$ac_ct_CC" >&6; }
  10794. else
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10796. $as_echo "no" >&6; }
  10797. fi
  10798. test -n "$ac_ct_CC" && break
  10799. done
  10800. if test "x$ac_ct_CC" = x; then
  10801. CC=""
  10802. else
  10803. case $cross_compiling:$ac_tool_warned in
  10804. yes:)
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10807. ac_tool_warned=yes ;;
  10808. esac
  10809. CC=$ac_ct_CC
  10810. fi
  10811. fi
  10812. fi
  10813. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10814. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10815. as_fn_error $? "no acceptable C compiler found in \$PATH
  10816. See \`config.log' for more details" "$LINENO" 5; }
  10817. # Provide some information about the compiler.
  10818. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10819. set X $ac_compile
  10820. ac_compiler=$2
  10821. for ac_option in --version -v -V -qversion; do
  10822. { { ac_try="$ac_compiler $ac_option >&5"
  10823. case "(($ac_try" in
  10824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10825. *) ac_try_echo=$ac_try;;
  10826. esac
  10827. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10828. $as_echo "$ac_try_echo"; } >&5
  10829. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10830. ac_status=$?
  10831. if test -s conftest.err; then
  10832. sed '10a\
  10833. ... rest of stderr output deleted ...
  10834. 10q' conftest.err >conftest.er1
  10835. cat conftest.er1 >&5
  10836. fi
  10837. rm -f conftest.er1 conftest.err
  10838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10839. test $ac_status = 0; }
  10840. done
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10842. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10843. if ${ac_cv_c_compiler_gnu+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10847. /* end confdefs.h. */
  10848. int
  10849. main ()
  10850. {
  10851. #ifndef __GNUC__
  10852. choke me
  10853. #endif
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_compile "$LINENO"; then :
  10859. ac_compiler_gnu=yes
  10860. else
  10861. ac_compiler_gnu=no
  10862. fi
  10863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10864. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10865. fi
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10867. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10868. if test $ac_compiler_gnu = yes; then
  10869. GCC=yes
  10870. else
  10871. GCC=
  10872. fi
  10873. ac_test_CFLAGS=${CFLAGS+set}
  10874. ac_save_CFLAGS=$CFLAGS
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10876. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10877. if ${ac_cv_prog_cc_g+:} false; then :
  10878. $as_echo_n "(cached) " >&6
  10879. else
  10880. ac_save_c_werror_flag=$ac_c_werror_flag
  10881. ac_c_werror_flag=yes
  10882. ac_cv_prog_cc_g=no
  10883. CFLAGS="-g"
  10884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10885. /* end confdefs.h. */
  10886. int
  10887. main ()
  10888. {
  10889. ;
  10890. return 0;
  10891. }
  10892. _ACEOF
  10893. if ac_fn_c_try_compile "$LINENO"; then :
  10894. ac_cv_prog_cc_g=yes
  10895. else
  10896. CFLAGS=""
  10897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10898. /* end confdefs.h. */
  10899. int
  10900. main ()
  10901. {
  10902. ;
  10903. return 0;
  10904. }
  10905. _ACEOF
  10906. if ac_fn_c_try_compile "$LINENO"; then :
  10907. else
  10908. ac_c_werror_flag=$ac_save_c_werror_flag
  10909. CFLAGS="-g"
  10910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10911. /* end confdefs.h. */
  10912. int
  10913. main ()
  10914. {
  10915. ;
  10916. return 0;
  10917. }
  10918. _ACEOF
  10919. if ac_fn_c_try_compile "$LINENO"; then :
  10920. ac_cv_prog_cc_g=yes
  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. fi
  10926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10927. ac_c_werror_flag=$ac_save_c_werror_flag
  10928. fi
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10930. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10931. if test "$ac_test_CFLAGS" = set; then
  10932. CFLAGS=$ac_save_CFLAGS
  10933. elif test $ac_cv_prog_cc_g = yes; then
  10934. if test "$GCC" = yes; then
  10935. CFLAGS="-g -O2"
  10936. else
  10937. CFLAGS="-g"
  10938. fi
  10939. else
  10940. if test "$GCC" = yes; then
  10941. CFLAGS="-O2"
  10942. else
  10943. CFLAGS=
  10944. fi
  10945. fi
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10947. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10948. if ${ac_cv_prog_cc_c89+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. ac_cv_prog_cc_c89=no
  10952. ac_save_CC=$CC
  10953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10954. /* end confdefs.h. */
  10955. #include <stdarg.h>
  10956. #include <stdio.h>
  10957. struct stat;
  10958. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10959. struct buf { int x; };
  10960. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10961. static char *e (p, i)
  10962. char **p;
  10963. int i;
  10964. {
  10965. return p[i];
  10966. }
  10967. static char *f (char * (*g) (char **, int), char **p, ...)
  10968. {
  10969. char *s;
  10970. va_list v;
  10971. va_start (v,p);
  10972. s = g (p, va_arg (v,int));
  10973. va_end (v);
  10974. return s;
  10975. }
  10976. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10977. function prototypes and stuff, but not '\xHH' hex character constants.
  10978. These don't provoke an error unfortunately, instead are silently treated
  10979. as 'x'. The following induces an error, until -std is added to get
  10980. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10981. array size at least. It's necessary to write '\x00'==0 to get something
  10982. that's true only with -std. */
  10983. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10984. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10985. inside strings and character constants. */
  10986. #define FOO(x) 'x'
  10987. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10988. int test (int i, double x);
  10989. struct s1 {int (*f) (int a);};
  10990. struct s2 {int (*f) (double a);};
  10991. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10992. int argc;
  10993. char **argv;
  10994. int
  10995. main ()
  10996. {
  10997. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10998. ;
  10999. return 0;
  11000. }
  11001. _ACEOF
  11002. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11003. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11004. do
  11005. CC="$ac_save_CC $ac_arg"
  11006. if ac_fn_c_try_compile "$LINENO"; then :
  11007. ac_cv_prog_cc_c89=$ac_arg
  11008. fi
  11009. rm -f core conftest.err conftest.$ac_objext
  11010. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11011. done
  11012. rm -f conftest.$ac_ext
  11013. CC=$ac_save_CC
  11014. fi
  11015. # AC_CACHE_VAL
  11016. case "x$ac_cv_prog_cc_c89" in
  11017. x)
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11019. $as_echo "none needed" >&6; } ;;
  11020. xno)
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11022. $as_echo "unsupported" >&6; } ;;
  11023. *)
  11024. CC="$CC $ac_cv_prog_cc_c89"
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11026. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11027. esac
  11028. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11029. fi
  11030. ac_ext=c
  11031. ac_cpp='$CPP $CPPFLAGS'
  11032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11035. ac_ext=cpp
  11036. ac_cpp='$CXXCPP $CPPFLAGS'
  11037. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11038. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11039. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11040. if test -z "$CXX"; then
  11041. if test -n "$CCC"; then
  11042. CXX=$CCC
  11043. else
  11044. if test -n "$ac_tool_prefix"; then
  11045. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11046. do
  11047. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11048. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11050. $as_echo_n "checking for $ac_word... " >&6; }
  11051. if ${ac_cv_prog_CXX+:} false; then :
  11052. $as_echo_n "(cached) " >&6
  11053. else
  11054. if test -n "$CXX"; then
  11055. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11056. else
  11057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11058. for as_dir in $PATH
  11059. do
  11060. IFS=$as_save_IFS
  11061. test -z "$as_dir" && as_dir=.
  11062. for ac_exec_ext in '' $ac_executable_extensions; do
  11063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11064. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11066. break 2
  11067. fi
  11068. done
  11069. done
  11070. IFS=$as_save_IFS
  11071. fi
  11072. fi
  11073. CXX=$ac_cv_prog_CXX
  11074. if test -n "$CXX"; then
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11076. $as_echo "$CXX" >&6; }
  11077. else
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11079. $as_echo "no" >&6; }
  11080. fi
  11081. test -n "$CXX" && break
  11082. done
  11083. fi
  11084. if test -z "$CXX"; then
  11085. ac_ct_CXX=$CXX
  11086. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11087. do
  11088. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11089. set dummy $ac_prog; ac_word=$2
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11091. $as_echo_n "checking for $ac_word... " >&6; }
  11092. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11093. $as_echo_n "(cached) " >&6
  11094. else
  11095. if test -n "$ac_ct_CXX"; then
  11096. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11097. else
  11098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11099. for as_dir in $PATH
  11100. do
  11101. IFS=$as_save_IFS
  11102. test -z "$as_dir" && as_dir=.
  11103. for ac_exec_ext in '' $ac_executable_extensions; do
  11104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11105. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11107. break 2
  11108. fi
  11109. done
  11110. done
  11111. IFS=$as_save_IFS
  11112. fi
  11113. fi
  11114. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11115. if test -n "$ac_ct_CXX"; then
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11117. $as_echo "$ac_ct_CXX" >&6; }
  11118. else
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11120. $as_echo "no" >&6; }
  11121. fi
  11122. test -n "$ac_ct_CXX" && break
  11123. done
  11124. if test "x$ac_ct_CXX" = x; then
  11125. CXX="g++"
  11126. else
  11127. case $cross_compiling:$ac_tool_warned in
  11128. yes:)
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11130. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11131. ac_tool_warned=yes ;;
  11132. esac
  11133. CXX=$ac_ct_CXX
  11134. fi
  11135. fi
  11136. fi
  11137. fi
  11138. # Provide some information about the compiler.
  11139. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11140. set X $ac_compile
  11141. ac_compiler=$2
  11142. for ac_option in --version -v -V -qversion; do
  11143. { { ac_try="$ac_compiler $ac_option >&5"
  11144. case "(($ac_try" in
  11145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11146. *) ac_try_echo=$ac_try;;
  11147. esac
  11148. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11149. $as_echo "$ac_try_echo"; } >&5
  11150. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11151. ac_status=$?
  11152. if test -s conftest.err; then
  11153. sed '10a\
  11154. ... rest of stderr output deleted ...
  11155. 10q' conftest.err >conftest.er1
  11156. cat conftest.er1 >&5
  11157. fi
  11158. rm -f conftest.er1 conftest.err
  11159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11160. test $ac_status = 0; }
  11161. done
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11163. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11164. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11165. $as_echo_n "(cached) " >&6
  11166. else
  11167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11168. /* end confdefs.h. */
  11169. int
  11170. main ()
  11171. {
  11172. #ifndef __GNUC__
  11173. choke me
  11174. #endif
  11175. ;
  11176. return 0;
  11177. }
  11178. _ACEOF
  11179. if ac_fn_cxx_try_compile "$LINENO"; then :
  11180. ac_compiler_gnu=yes
  11181. else
  11182. ac_compiler_gnu=no
  11183. fi
  11184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11185. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11186. fi
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11188. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11189. if test $ac_compiler_gnu = yes; then
  11190. GXX=yes
  11191. else
  11192. GXX=
  11193. fi
  11194. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11195. ac_save_CXXFLAGS=$CXXFLAGS
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11197. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11198. if ${ac_cv_prog_cxx_g+:} false; then :
  11199. $as_echo_n "(cached) " >&6
  11200. else
  11201. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11202. ac_cxx_werror_flag=yes
  11203. ac_cv_prog_cxx_g=no
  11204. CXXFLAGS="-g"
  11205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11206. /* end confdefs.h. */
  11207. int
  11208. main ()
  11209. {
  11210. ;
  11211. return 0;
  11212. }
  11213. _ACEOF
  11214. if ac_fn_cxx_try_compile "$LINENO"; then :
  11215. ac_cv_prog_cxx_g=yes
  11216. else
  11217. CXXFLAGS=""
  11218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11219. /* end confdefs.h. */
  11220. int
  11221. main ()
  11222. {
  11223. ;
  11224. return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_cxx_try_compile "$LINENO"; then :
  11228. else
  11229. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11230. CXXFLAGS="-g"
  11231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11232. /* end confdefs.h. */
  11233. int
  11234. main ()
  11235. {
  11236. ;
  11237. return 0;
  11238. }
  11239. _ACEOF
  11240. if ac_fn_cxx_try_compile "$LINENO"; then :
  11241. ac_cv_prog_cxx_g=yes
  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. fi
  11247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11248. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11249. fi
  11250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11251. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11252. if test "$ac_test_CXXFLAGS" = set; then
  11253. CXXFLAGS=$ac_save_CXXFLAGS
  11254. elif test $ac_cv_prog_cxx_g = yes; then
  11255. if test "$GXX" = yes; then
  11256. CXXFLAGS="-g -O2"
  11257. else
  11258. CXXFLAGS="-g"
  11259. fi
  11260. else
  11261. if test "$GXX" = yes; then
  11262. CXXFLAGS="-O2"
  11263. else
  11264. CXXFLAGS=
  11265. fi
  11266. fi
  11267. ac_ext=c
  11268. ac_cpp='$CPP $CPPFLAGS'
  11269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11272. func_stripname_cnf ()
  11273. {
  11274. case $2 in
  11275. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11276. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11277. esac
  11278. } # func_stripname_cnf
  11279. if test -n "$CXX" && ( test no != "$CXX" &&
  11280. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11281. (test g++ != "$CXX"))); then
  11282. ac_ext=cpp
  11283. ac_cpp='$CXXCPP $CPPFLAGS'
  11284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11288. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11289. if test -z "$CXXCPP"; then
  11290. if ${ac_cv_prog_CXXCPP+:} false; then :
  11291. $as_echo_n "(cached) " >&6
  11292. else
  11293. # Double quotes because CXXCPP needs to be expanded
  11294. for CXXCPP in "$CXX -E" "/lib/cpp"
  11295. do
  11296. ac_preproc_ok=false
  11297. for ac_cxx_preproc_warn_flag in '' yes
  11298. do
  11299. # Use a header file that comes with gcc, so configuring glibc
  11300. # with a fresh cross-compiler works.
  11301. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11302. # <limits.h> exists even on freestanding compilers.
  11303. # On the NeXT, cc -E runs the code through the compiler's parser,
  11304. # not just through cpp. "Syntax error" is here to catch this case.
  11305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11306. /* end confdefs.h. */
  11307. #ifdef __STDC__
  11308. # include <limits.h>
  11309. #else
  11310. # include <assert.h>
  11311. #endif
  11312. Syntax error
  11313. _ACEOF
  11314. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11315. else
  11316. # Broken: fails on valid input.
  11317. continue
  11318. fi
  11319. rm -f conftest.err conftest.i conftest.$ac_ext
  11320. # OK, works on sane cases. Now check whether nonexistent headers
  11321. # can be detected and how.
  11322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11323. /* end confdefs.h. */
  11324. #include <ac_nonexistent.h>
  11325. _ACEOF
  11326. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11327. # Broken: success on invalid input.
  11328. continue
  11329. else
  11330. # Passes both tests.
  11331. ac_preproc_ok=:
  11332. break
  11333. fi
  11334. rm -f conftest.err conftest.i conftest.$ac_ext
  11335. done
  11336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11337. rm -f conftest.i conftest.err conftest.$ac_ext
  11338. if $ac_preproc_ok; then :
  11339. break
  11340. fi
  11341. done
  11342. ac_cv_prog_CXXCPP=$CXXCPP
  11343. fi
  11344. CXXCPP=$ac_cv_prog_CXXCPP
  11345. else
  11346. ac_cv_prog_CXXCPP=$CXXCPP
  11347. fi
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11349. $as_echo "$CXXCPP" >&6; }
  11350. ac_preproc_ok=false
  11351. for ac_cxx_preproc_warn_flag in '' yes
  11352. do
  11353. # Use a header file that comes with gcc, so configuring glibc
  11354. # with a fresh cross-compiler works.
  11355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11356. # <limits.h> exists even on freestanding compilers.
  11357. # On the NeXT, cc -E runs the code through the compiler's parser,
  11358. # not just through cpp. "Syntax error" is here to catch this case.
  11359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11360. /* end confdefs.h. */
  11361. #ifdef __STDC__
  11362. # include <limits.h>
  11363. #else
  11364. # include <assert.h>
  11365. #endif
  11366. Syntax error
  11367. _ACEOF
  11368. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11369. else
  11370. # Broken: fails on valid input.
  11371. continue
  11372. fi
  11373. rm -f conftest.err conftest.i conftest.$ac_ext
  11374. # OK, works on sane cases. Now check whether nonexistent headers
  11375. # can be detected and how.
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. #include <ac_nonexistent.h>
  11379. _ACEOF
  11380. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11381. # Broken: success on invalid input.
  11382. continue
  11383. else
  11384. # Passes both tests.
  11385. ac_preproc_ok=:
  11386. break
  11387. fi
  11388. rm -f conftest.err conftest.i conftest.$ac_ext
  11389. done
  11390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11391. rm -f conftest.i conftest.err conftest.$ac_ext
  11392. if $ac_preproc_ok; then :
  11393. else
  11394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11396. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11397. See \`config.log' for more details" "$LINENO" 5; }
  11398. fi
  11399. ac_ext=c
  11400. ac_cpp='$CPP $CPPFLAGS'
  11401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11404. else
  11405. _lt_caught_CXX_error=yes
  11406. fi
  11407. ac_ext=cpp
  11408. ac_cpp='$CXXCPP $CPPFLAGS'
  11409. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11410. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11411. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11412. archive_cmds_need_lc_CXX=no
  11413. allow_undefined_flag_CXX=
  11414. always_export_symbols_CXX=no
  11415. archive_expsym_cmds_CXX=
  11416. compiler_needs_object_CXX=no
  11417. export_dynamic_flag_spec_CXX=
  11418. hardcode_direct_CXX=no
  11419. hardcode_direct_absolute_CXX=no
  11420. hardcode_libdir_flag_spec_CXX=
  11421. hardcode_libdir_separator_CXX=
  11422. hardcode_minus_L_CXX=no
  11423. hardcode_shlibpath_var_CXX=unsupported
  11424. hardcode_automatic_CXX=no
  11425. inherit_rpath_CXX=no
  11426. module_cmds_CXX=
  11427. module_expsym_cmds_CXX=
  11428. link_all_deplibs_CXX=unknown
  11429. old_archive_cmds_CXX=$old_archive_cmds
  11430. reload_flag_CXX=$reload_flag
  11431. reload_cmds_CXX=$reload_cmds
  11432. no_undefined_flag_CXX=
  11433. whole_archive_flag_spec_CXX=
  11434. enable_shared_with_static_runtimes_CXX=no
  11435. # Source file extension for C++ test sources.
  11436. ac_ext=cpp
  11437. # Object file extension for compiled C++ test sources.
  11438. objext=o
  11439. objext_CXX=$objext
  11440. # No sense in running all these tests if we already determined that
  11441. # the CXX compiler isn't working. Some variables (like enable_shared)
  11442. # are currently assumed to apply to all compilers on this platform,
  11443. # and will be corrupted by setting them based on a non-working compiler.
  11444. if test yes != "$_lt_caught_CXX_error"; then
  11445. # Code to be used in simple compile tests
  11446. lt_simple_compile_test_code="int some_variable = 0;"
  11447. # Code to be used in simple link tests
  11448. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11449. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11450. # If no C compiler was specified, use CC.
  11451. LTCC=${LTCC-"$CC"}
  11452. # If no C compiler flags were specified, use CFLAGS.
  11453. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11454. # Allow CC to be a program name with arguments.
  11455. compiler=$CC
  11456. # save warnings/boilerplate of simple test code
  11457. ac_outfile=conftest.$ac_objext
  11458. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11459. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11460. _lt_compiler_boilerplate=`cat conftest.err`
  11461. $RM conftest*
  11462. ac_outfile=conftest.$ac_objext
  11463. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11464. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11465. _lt_linker_boilerplate=`cat conftest.err`
  11466. $RM -r conftest*
  11467. # Allow CC to be a program name with arguments.
  11468. lt_save_CC=$CC
  11469. lt_save_CFLAGS=$CFLAGS
  11470. lt_save_LD=$LD
  11471. lt_save_GCC=$GCC
  11472. GCC=$GXX
  11473. lt_save_with_gnu_ld=$with_gnu_ld
  11474. lt_save_path_LD=$lt_cv_path_LD
  11475. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11476. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11477. else
  11478. $as_unset lt_cv_prog_gnu_ld
  11479. fi
  11480. if test -n "${lt_cv_path_LDCXX+set}"; then
  11481. lt_cv_path_LD=$lt_cv_path_LDCXX
  11482. else
  11483. $as_unset lt_cv_path_LD
  11484. fi
  11485. test -z "${LDCXX+set}" || LD=$LDCXX
  11486. CC=${CXX-"c++"}
  11487. CFLAGS=$CXXFLAGS
  11488. compiler=$CC
  11489. compiler_CXX=$CC
  11490. func_cc_basename $compiler
  11491. cc_basename=$func_cc_basename_result
  11492. if test -n "$compiler"; then
  11493. # We don't want -fno-exception when compiling C++ code, so set the
  11494. # no_builtin_flag separately
  11495. if test yes = "$GXX"; then
  11496. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11497. else
  11498. lt_prog_compiler_no_builtin_flag_CXX=
  11499. fi
  11500. if test yes = "$GXX"; then
  11501. # Set up default GNU C++ configuration
  11502. # Check whether --with-gnu-ld was given.
  11503. if test "${with_gnu_ld+set}" = set; then :
  11504. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11505. else
  11506. with_gnu_ld=no
  11507. fi
  11508. ac_prog=ld
  11509. if test yes = "$GCC"; then
  11510. # Check if gcc -print-prog-name=ld gives a path.
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11512. $as_echo_n "checking for ld used by $CC... " >&6; }
  11513. case $host in
  11514. *-*-mingw*)
  11515. # gcc leaves a trailing carriage return, which upsets mingw
  11516. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11517. *)
  11518. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11519. esac
  11520. case $ac_prog in
  11521. # Accept absolute paths.
  11522. [\\/]* | ?:[\\/]*)
  11523. re_direlt='/[^/][^/]*/\.\./'
  11524. # Canonicalize the pathname of ld
  11525. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11526. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11527. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11528. done
  11529. test -z "$LD" && LD=$ac_prog
  11530. ;;
  11531. "")
  11532. # If it fails, then pretend we aren't using GCC.
  11533. ac_prog=ld
  11534. ;;
  11535. *)
  11536. # If it is relative, then search for the first ld in PATH.
  11537. with_gnu_ld=unknown
  11538. ;;
  11539. esac
  11540. elif test yes = "$with_gnu_ld"; then
  11541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11542. $as_echo_n "checking for GNU ld... " >&6; }
  11543. else
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11545. $as_echo_n "checking for non-GNU ld... " >&6; }
  11546. fi
  11547. if ${lt_cv_path_LD+:} false; then :
  11548. $as_echo_n "(cached) " >&6
  11549. else
  11550. if test -z "$LD"; then
  11551. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11552. for ac_dir in $PATH; do
  11553. IFS=$lt_save_ifs
  11554. test -z "$ac_dir" && ac_dir=.
  11555. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11556. lt_cv_path_LD=$ac_dir/$ac_prog
  11557. # Check to see if the program is GNU ld. I'd rather use --version,
  11558. # but apparently some variants of GNU ld only accept -v.
  11559. # Break only if it was the GNU/non-GNU ld that we prefer.
  11560. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11561. *GNU* | *'with BFD'*)
  11562. test no != "$with_gnu_ld" && break
  11563. ;;
  11564. *)
  11565. test yes != "$with_gnu_ld" && break
  11566. ;;
  11567. esac
  11568. fi
  11569. done
  11570. IFS=$lt_save_ifs
  11571. else
  11572. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11573. fi
  11574. fi
  11575. LD=$lt_cv_path_LD
  11576. if test -n "$LD"; then
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11578. $as_echo "$LD" >&6; }
  11579. else
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11581. $as_echo "no" >&6; }
  11582. fi
  11583. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11585. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11586. if ${lt_cv_prog_gnu_ld+:} false; then :
  11587. $as_echo_n "(cached) " >&6
  11588. else
  11589. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11590. case `$LD -v 2>&1 </dev/null` in
  11591. *GNU* | *'with BFD'*)
  11592. lt_cv_prog_gnu_ld=yes
  11593. ;;
  11594. *)
  11595. lt_cv_prog_gnu_ld=no
  11596. ;;
  11597. esac
  11598. fi
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11600. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11601. with_gnu_ld=$lt_cv_prog_gnu_ld
  11602. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11603. # archiving commands below assume that GNU ld is being used.
  11604. if test yes = "$with_gnu_ld"; then
  11605. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11606. 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'
  11607. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11608. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11609. # If archive_cmds runs LD, not CC, wlarc should be empty
  11610. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11611. # investigate it a little bit more. (MM)
  11612. wlarc='$wl'
  11613. # ancient GNU ld didn't support --whole-archive et. al.
  11614. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11615. $GREP 'no-whole-archive' > /dev/null; then
  11616. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11617. else
  11618. whole_archive_flag_spec_CXX=
  11619. fi
  11620. else
  11621. with_gnu_ld=no
  11622. wlarc=
  11623. # A generic and very simple default shared library creation
  11624. # command for GNU C++ for the case where it uses the native
  11625. # linker, instead of GNU ld. If possible, this setting should
  11626. # overridden to take advantage of the native linker features on
  11627. # the platform it is being used on.
  11628. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11629. fi
  11630. # Commands to make compiler produce verbose output that lists
  11631. # what "hidden" libraries, object files and flags are used when
  11632. # linking a shared library.
  11633. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11634. else
  11635. GXX=no
  11636. with_gnu_ld=no
  11637. wlarc=
  11638. fi
  11639. # PORTME: fill in a description of your system's C++ link characteristics
  11640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11641. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11642. ld_shlibs_CXX=yes
  11643. case $host_os in
  11644. aix3*)
  11645. # FIXME: insert proper C++ library support
  11646. ld_shlibs_CXX=no
  11647. ;;
  11648. aix[4-9]*)
  11649. if test ia64 = "$host_cpu"; then
  11650. # On IA64, the linker does run time linking by default, so we don't
  11651. # have to do anything special.
  11652. aix_use_runtimelinking=no
  11653. exp_sym_flag='-Bexport'
  11654. no_entry_flag=
  11655. else
  11656. aix_use_runtimelinking=no
  11657. # Test if we are trying to use run time linking or normal
  11658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11659. # have runtime linking enabled, and use it for executables.
  11660. # For shared libraries, we enable/disable runtime linking
  11661. # depending on the kind of the shared library created -
  11662. # when "with_aix_soname,aix_use_runtimelinking" is:
  11663. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11664. # "aix,yes" lib.so shared, rtl:yes, for executables
  11665. # lib.a static archive
  11666. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11667. # lib.a(lib.so.V) shared, rtl:no, for executables
  11668. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11669. # lib.a(lib.so.V) shared, rtl:no
  11670. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11671. # lib.a static archive
  11672. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11673. for ld_flag in $LDFLAGS; do
  11674. case $ld_flag in
  11675. *-brtl*)
  11676. aix_use_runtimelinking=yes
  11677. break
  11678. ;;
  11679. esac
  11680. done
  11681. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11682. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11683. # so we don't have lib.a shared libs to link our executables.
  11684. # We have to force runtime linking in this case.
  11685. aix_use_runtimelinking=yes
  11686. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11687. fi
  11688. ;;
  11689. esac
  11690. exp_sym_flag='-bexport'
  11691. no_entry_flag='-bnoentry'
  11692. fi
  11693. # When large executables or shared objects are built, AIX ld can
  11694. # have problems creating the table of contents. If linking a library
  11695. # or program results in "error TOC overflow" add -mminimal-toc to
  11696. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11697. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11698. archive_cmds_CXX=''
  11699. hardcode_direct_CXX=yes
  11700. hardcode_direct_absolute_CXX=yes
  11701. hardcode_libdir_separator_CXX=':'
  11702. link_all_deplibs_CXX=yes
  11703. file_list_spec_CXX='$wl-f,'
  11704. case $with_aix_soname,$aix_use_runtimelinking in
  11705. aix,*) ;; # no import file
  11706. svr4,* | *,yes) # use import file
  11707. # The Import File defines what to hardcode.
  11708. hardcode_direct_CXX=no
  11709. hardcode_direct_absolute_CXX=no
  11710. ;;
  11711. esac
  11712. if test yes = "$GXX"; then
  11713. case $host_os in aix4.[012]|aix4.[012].*)
  11714. # We only want to do this on AIX 4.2 and lower, the check
  11715. # below for broken collect2 doesn't work under 4.3+
  11716. collect2name=`$CC -print-prog-name=collect2`
  11717. if test -f "$collect2name" &&
  11718. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11719. then
  11720. # We have reworked collect2
  11721. :
  11722. else
  11723. # We have old collect2
  11724. hardcode_direct_CXX=unsupported
  11725. # It fails to find uninstalled libraries when the uninstalled
  11726. # path is not listed in the libpath. Setting hardcode_minus_L
  11727. # to unsupported forces relinking
  11728. hardcode_minus_L_CXX=yes
  11729. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11730. hardcode_libdir_separator_CXX=
  11731. fi
  11732. esac
  11733. shared_flag='-shared'
  11734. if test yes = "$aix_use_runtimelinking"; then
  11735. shared_flag=$shared_flag' $wl-G'
  11736. fi
  11737. # Need to ensure runtime linking is disabled for the traditional
  11738. # shared library, or the linker may eventually find shared libraries
  11739. # /with/ Import File - we do not want to mix them.
  11740. shared_flag_aix='-shared'
  11741. shared_flag_svr4='-shared $wl-G'
  11742. else
  11743. # not using gcc
  11744. if test ia64 = "$host_cpu"; then
  11745. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11746. # chokes on -Wl,-G. The following line is correct:
  11747. shared_flag='-G'
  11748. else
  11749. if test yes = "$aix_use_runtimelinking"; then
  11750. shared_flag='$wl-G'
  11751. else
  11752. shared_flag='$wl-bM:SRE'
  11753. fi
  11754. shared_flag_aix='$wl-bM:SRE'
  11755. shared_flag_svr4='$wl-G'
  11756. fi
  11757. fi
  11758. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11759. # It seems that -bexpall does not export symbols beginning with
  11760. # underscore (_), so it is better to generate a list of symbols to
  11761. # export.
  11762. always_export_symbols_CXX=yes
  11763. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11764. # Warning - without using the other runtime loading flags (-brtl),
  11765. # -berok will link without error, but may produce a broken library.
  11766. # The "-G" linker flag allows undefined symbols.
  11767. no_undefined_flag_CXX='-bernotok'
  11768. # Determine the default libpath from the value encoded in an empty
  11769. # executable.
  11770. if test set = "${lt_cv_aix_libpath+set}"; then
  11771. aix_libpath=$lt_cv_aix_libpath
  11772. else
  11773. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11774. $as_echo_n "(cached) " >&6
  11775. else
  11776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11777. /* end confdefs.h. */
  11778. int
  11779. main ()
  11780. {
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. if ac_fn_cxx_try_link "$LINENO"; then :
  11786. lt_aix_libpath_sed='
  11787. /Import File Strings/,/^$/ {
  11788. /^0/ {
  11789. s/^0 *\([^ ]*\) *$/\1/
  11790. p
  11791. }
  11792. }'
  11793. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11794. # Check for a 64-bit object if we didn't find anything.
  11795. if test -z "$lt_cv_aix_libpath__CXX"; then
  11796. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11797. fi
  11798. fi
  11799. rm -f core conftest.err conftest.$ac_objext \
  11800. conftest$ac_exeext conftest.$ac_ext
  11801. if test -z "$lt_cv_aix_libpath__CXX"; then
  11802. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11803. fi
  11804. fi
  11805. aix_libpath=$lt_cv_aix_libpath__CXX
  11806. fi
  11807. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11808. 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
  11809. else
  11810. if test ia64 = "$host_cpu"; then
  11811. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11812. allow_undefined_flag_CXX="-z nodefs"
  11813. 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"
  11814. else
  11815. # Determine the default libpath from the value encoded in an
  11816. # empty executable.
  11817. if test set = "${lt_cv_aix_libpath+set}"; then
  11818. aix_libpath=$lt_cv_aix_libpath
  11819. else
  11820. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11821. $as_echo_n "(cached) " >&6
  11822. else
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. int
  11826. main ()
  11827. {
  11828. ;
  11829. return 0;
  11830. }
  11831. _ACEOF
  11832. if ac_fn_cxx_try_link "$LINENO"; then :
  11833. lt_aix_libpath_sed='
  11834. /Import File Strings/,/^$/ {
  11835. /^0/ {
  11836. s/^0 *\([^ ]*\) *$/\1/
  11837. p
  11838. }
  11839. }'
  11840. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11841. # Check for a 64-bit object if we didn't find anything.
  11842. if test -z "$lt_cv_aix_libpath__CXX"; then
  11843. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11844. fi
  11845. fi
  11846. rm -f core conftest.err conftest.$ac_objext \
  11847. conftest$ac_exeext conftest.$ac_ext
  11848. if test -z "$lt_cv_aix_libpath__CXX"; then
  11849. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11850. fi
  11851. fi
  11852. aix_libpath=$lt_cv_aix_libpath__CXX
  11853. fi
  11854. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11855. # Warning - without using the other run time loading flags,
  11856. # -berok will link without error, but may produce a broken library.
  11857. no_undefined_flag_CXX=' $wl-bernotok'
  11858. allow_undefined_flag_CXX=' $wl-berok'
  11859. if test yes = "$with_gnu_ld"; then
  11860. # We only use this code for GNU lds that support --whole-archive.
  11861. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11862. else
  11863. # Exported symbols can be pulled into shared objects from archives
  11864. whole_archive_flag_spec_CXX='$convenience'
  11865. fi
  11866. archive_cmds_need_lc_CXX=yes
  11867. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11868. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11869. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11870. if test svr4 != "$with_aix_soname"; then
  11871. # This is similar to how AIX traditionally builds its shared
  11872. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11873. 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'
  11874. fi
  11875. if test aix != "$with_aix_soname"; then
  11876. 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'
  11877. else
  11878. # used by -dlpreopen to get the symbols
  11879. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11880. fi
  11881. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11882. fi
  11883. fi
  11884. ;;
  11885. beos*)
  11886. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11887. allow_undefined_flag_CXX=unsupported
  11888. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11889. # support --undefined. This deserves some investigation. FIXME
  11890. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11891. else
  11892. ld_shlibs_CXX=no
  11893. fi
  11894. ;;
  11895. chorus*)
  11896. case $cc_basename in
  11897. *)
  11898. # FIXME: insert proper C++ library support
  11899. ld_shlibs_CXX=no
  11900. ;;
  11901. esac
  11902. ;;
  11903. cygwin* | mingw* | pw32* | cegcc*)
  11904. case $GXX,$cc_basename in
  11905. ,cl* | no,cl*)
  11906. # Native MSVC
  11907. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11908. # no search path for DLLs.
  11909. hardcode_libdir_flag_spec_CXX=' '
  11910. allow_undefined_flag_CXX=unsupported
  11911. always_export_symbols_CXX=yes
  11912. file_list_spec_CXX='@'
  11913. # Tell ltmain to make .lib files, not .a files.
  11914. libext=lib
  11915. # Tell ltmain to make .dll files, not .so files.
  11916. shrext_cmds=.dll
  11917. # FIXME: Setting linknames here is a bad hack.
  11918. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11919. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11920. cp "$export_symbols" "$output_objdir/$soname.def";
  11921. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11922. else
  11923. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11924. fi~
  11925. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11926. linknames='
  11927. # The linker will not automatically build a static lib if we build a DLL.
  11928. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11929. enable_shared_with_static_runtimes_CXX=yes
  11930. # Don't use ranlib
  11931. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11932. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11933. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11934. case $lt_outputfile in
  11935. *.exe|*.EXE) ;;
  11936. *)
  11937. lt_outputfile=$lt_outputfile.exe
  11938. lt_tool_outputfile=$lt_tool_outputfile.exe
  11939. ;;
  11940. esac~
  11941. func_to_tool_file "$lt_outputfile"~
  11942. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11943. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11944. $RM "$lt_outputfile.manifest";
  11945. fi'
  11946. ;;
  11947. *)
  11948. # g++
  11949. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11950. # as there is no search path for DLLs.
  11951. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11952. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11953. allow_undefined_flag_CXX=unsupported
  11954. always_export_symbols_CXX=no
  11955. enable_shared_with_static_runtimes_CXX=yes
  11956. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11957. 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'
  11958. # If the export-symbols file already is a .def file, use it as
  11959. # is; otherwise, prepend EXPORTS...
  11960. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11961. cp $export_symbols $output_objdir/$soname.def;
  11962. else
  11963. echo EXPORTS > $output_objdir/$soname.def;
  11964. cat $export_symbols >> $output_objdir/$soname.def;
  11965. fi~
  11966. $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'
  11967. else
  11968. ld_shlibs_CXX=no
  11969. fi
  11970. ;;
  11971. esac
  11972. ;;
  11973. darwin* | rhapsody*)
  11974. archive_cmds_need_lc_CXX=no
  11975. hardcode_direct_CXX=no
  11976. hardcode_automatic_CXX=yes
  11977. hardcode_shlibpath_var_CXX=unsupported
  11978. if test yes = "$lt_cv_ld_force_load"; then
  11979. 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\"`'
  11980. else
  11981. whole_archive_flag_spec_CXX=''
  11982. fi
  11983. link_all_deplibs_CXX=yes
  11984. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11985. case $cc_basename in
  11986. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11987. *) _lt_dar_can_shared=$GCC ;;
  11988. esac
  11989. if test yes = "$_lt_dar_can_shared"; then
  11990. output_verbose_link_cmd=func_echo_all
  11991. 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"
  11992. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11993. 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"
  11994. 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"
  11995. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11996. 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"
  11997. 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"
  11998. fi
  11999. else
  12000. ld_shlibs_CXX=no
  12001. fi
  12002. ;;
  12003. os2*)
  12004. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12005. hardcode_minus_L_CXX=yes
  12006. allow_undefined_flag_CXX=unsupported
  12007. shrext_cmds=.dll
  12008. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12009. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12010. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12011. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12012. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12013. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12014. emximp -o $lib $output_objdir/$libname.def'
  12015. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12016. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12017. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12018. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12019. prefix_cmds="$SED"~
  12020. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12021. prefix_cmds="$prefix_cmds -e 1d";
  12022. fi~
  12023. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12024. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12025. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12026. emximp -o $lib $output_objdir/$libname.def'
  12027. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12028. enable_shared_with_static_runtimes_CXX=yes
  12029. file_list_spec_CXX='@'
  12030. ;;
  12031. dgux*)
  12032. case $cc_basename in
  12033. ec++*)
  12034. # FIXME: insert proper C++ library support
  12035. ld_shlibs_CXX=no
  12036. ;;
  12037. ghcx*)
  12038. # Green Hills C++ Compiler
  12039. # FIXME: insert proper C++ library support
  12040. ld_shlibs_CXX=no
  12041. ;;
  12042. *)
  12043. # FIXME: insert proper C++ library support
  12044. ld_shlibs_CXX=no
  12045. ;;
  12046. esac
  12047. ;;
  12048. freebsd2.*)
  12049. # C++ shared libraries reported to be fairly broken before
  12050. # switch to ELF
  12051. ld_shlibs_CXX=no
  12052. ;;
  12053. freebsd-elf*)
  12054. archive_cmds_need_lc_CXX=no
  12055. ;;
  12056. freebsd* | dragonfly* | midnightbsd*)
  12057. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12058. # conventions
  12059. ld_shlibs_CXX=yes
  12060. ;;
  12061. haiku*)
  12062. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12063. link_all_deplibs_CXX=yes
  12064. ;;
  12065. hpux9*)
  12066. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12067. hardcode_libdir_separator_CXX=:
  12068. export_dynamic_flag_spec_CXX='$wl-E'
  12069. hardcode_direct_CXX=yes
  12070. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12071. # but as the default
  12072. # location of the library.
  12073. case $cc_basename in
  12074. CC*)
  12075. # FIXME: insert proper C++ library support
  12076. ld_shlibs_CXX=no
  12077. ;;
  12078. aCC*)
  12079. 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'
  12080. # Commands to make compiler produce verbose output that lists
  12081. # what "hidden" libraries, object files and flags are used when
  12082. # linking a shared library.
  12083. #
  12084. # There doesn't appear to be a way to prevent this compiler from
  12085. # explicitly linking system object files so we need to strip them
  12086. # from the output so that they don't get included in the library
  12087. # dependencies.
  12088. 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"'
  12089. ;;
  12090. *)
  12091. if test yes = "$GXX"; then
  12092. 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'
  12093. else
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. fi
  12097. ;;
  12098. esac
  12099. ;;
  12100. hpux10*|hpux11*)
  12101. if test no = "$with_gnu_ld"; then
  12102. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12103. hardcode_libdir_separator_CXX=:
  12104. case $host_cpu in
  12105. hppa*64*|ia64*)
  12106. ;;
  12107. *)
  12108. export_dynamic_flag_spec_CXX='$wl-E'
  12109. ;;
  12110. esac
  12111. fi
  12112. case $host_cpu in
  12113. hppa*64*|ia64*)
  12114. hardcode_direct_CXX=no
  12115. hardcode_shlibpath_var_CXX=no
  12116. ;;
  12117. *)
  12118. hardcode_direct_CXX=yes
  12119. hardcode_direct_absolute_CXX=yes
  12120. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12121. # but as the default
  12122. # location of the library.
  12123. ;;
  12124. esac
  12125. case $cc_basename in
  12126. CC*)
  12127. # FIXME: insert proper C++ library support
  12128. ld_shlibs_CXX=no
  12129. ;;
  12130. aCC*)
  12131. case $host_cpu in
  12132. hppa*64*)
  12133. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12134. ;;
  12135. ia64*)
  12136. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12137. ;;
  12138. *)
  12139. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12140. ;;
  12141. esac
  12142. # Commands to make compiler produce verbose output that lists
  12143. # what "hidden" libraries, object files and flags are used when
  12144. # linking a shared library.
  12145. #
  12146. # There doesn't appear to be a way to prevent this compiler from
  12147. # explicitly linking system object files so we need to strip them
  12148. # from the output so that they don't get included in the library
  12149. # dependencies.
  12150. 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"'
  12151. ;;
  12152. *)
  12153. if test yes = "$GXX"; then
  12154. if test no = "$with_gnu_ld"; then
  12155. case $host_cpu in
  12156. hppa*64*)
  12157. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12158. ;;
  12159. ia64*)
  12160. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12161. ;;
  12162. *)
  12163. 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'
  12164. ;;
  12165. esac
  12166. fi
  12167. else
  12168. # FIXME: insert proper C++ library support
  12169. ld_shlibs_CXX=no
  12170. fi
  12171. ;;
  12172. esac
  12173. ;;
  12174. interix[3-9]*)
  12175. hardcode_direct_CXX=no
  12176. hardcode_shlibpath_var_CXX=no
  12177. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12178. export_dynamic_flag_spec_CXX='$wl-E'
  12179. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12180. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12181. # default) and relocated if they conflict, which is a slow very memory
  12182. # consuming and fragmenting process. To avoid this, we pick a random,
  12183. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12184. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12185. 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'
  12186. 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'
  12187. ;;
  12188. irix5* | irix6*)
  12189. case $cc_basename in
  12190. CC*)
  12191. # SGI C++
  12192. 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'
  12193. # Archives containing C++ object files must be created using
  12194. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12195. # necessary to make sure instantiated templates are included
  12196. # in the archive.
  12197. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12198. ;;
  12199. *)
  12200. if test yes = "$GXX"; then
  12201. if test no = "$with_gnu_ld"; then
  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"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12203. else
  12204. 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'
  12205. fi
  12206. fi
  12207. link_all_deplibs_CXX=yes
  12208. ;;
  12209. esac
  12210. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12211. hardcode_libdir_separator_CXX=:
  12212. inherit_rpath_CXX=yes
  12213. ;;
  12214. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12215. case $cc_basename in
  12216. KCC*)
  12217. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12218. # KCC will only create a shared library if the output file
  12219. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12220. # to its proper name (with version) after linking.
  12221. 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'
  12222. 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'
  12223. # Commands to make compiler produce verbose output that lists
  12224. # what "hidden" libraries, object files and flags are used when
  12225. # linking a shared library.
  12226. #
  12227. # There doesn't appear to be a way to prevent this compiler from
  12228. # explicitly linking system object files so we need to strip them
  12229. # from the output so that they don't get included in the library
  12230. # dependencies.
  12231. 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"'
  12232. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12233. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12234. # Archives containing C++ object files must be created using
  12235. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12236. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12237. ;;
  12238. icpc* | ecpc* )
  12239. # Intel C++
  12240. with_gnu_ld=yes
  12241. # version 8.0 and above of icpc choke on multiply defined symbols
  12242. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12243. # earlier do not add the objects themselves.
  12244. case `$CC -V 2>&1` in
  12245. *"Version 7."*)
  12246. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12247. 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'
  12248. ;;
  12249. *) # Version 8.0 or newer
  12250. tmp_idyn=
  12251. case $host_cpu in
  12252. ia64*) tmp_idyn=' -i_dynamic';;
  12253. esac
  12254. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12255. 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'
  12256. ;;
  12257. esac
  12258. archive_cmds_need_lc_CXX=no
  12259. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12260. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12261. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12262. ;;
  12263. pgCC* | pgcpp*)
  12264. # Portland Group C++ compiler
  12265. case `$CC -V` in
  12266. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12267. prelink_cmds_CXX='tpldir=Template.dir~
  12268. rm -rf $tpldir~
  12269. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12270. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12271. old_archive_cmds_CXX='tpldir=Template.dir~
  12272. rm -rf $tpldir~
  12273. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12274. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12275. $RANLIB $oldlib'
  12276. archive_cmds_CXX='tpldir=Template.dir~
  12277. rm -rf $tpldir~
  12278. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12279. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12280. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12283. $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'
  12284. ;;
  12285. *) # Version 6 and above use weak symbols
  12286. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12287. 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'
  12288. ;;
  12289. esac
  12290. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12291. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12292. 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'
  12293. ;;
  12294. cxx*)
  12295. # Compaq C++
  12296. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12297. 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'
  12298. runpath_var=LD_RUN_PATH
  12299. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12300. hardcode_libdir_separator_CXX=:
  12301. # Commands to make compiler produce verbose output that lists
  12302. # what "hidden" libraries, object files and flags are used when
  12303. # linking a shared library.
  12304. #
  12305. # There doesn't appear to be a way to prevent this compiler from
  12306. # explicitly linking system object files so we need to strip them
  12307. # from the output so that they don't get included in the library
  12308. # dependencies.
  12309. 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'
  12310. ;;
  12311. xl* | mpixl* | bgxl*)
  12312. # IBM XL 8.0 on PPC, with GNU ld
  12313. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12314. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12315. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12316. if test yes = "$supports_anon_versioning"; then
  12317. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12318. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12319. echo "local: *; };" >> $output_objdir/$libname.ver~
  12320. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12321. fi
  12322. ;;
  12323. *)
  12324. case `$CC -V 2>&1 | sed 5q` in
  12325. *Sun\ C*)
  12326. # Sun C++ 5.9
  12327. no_undefined_flag_CXX=' -zdefs'
  12328. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12329. 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'
  12330. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12331. 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'
  12332. compiler_needs_object_CXX=yes
  12333. # Not sure whether something based on
  12334. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12335. # would be better.
  12336. output_verbose_link_cmd='func_echo_all'
  12337. # Archives containing C++ object files must be created using
  12338. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12339. # necessary to make sure instantiated templates are included
  12340. # in the archive.
  12341. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12342. ;;
  12343. esac
  12344. ;;
  12345. esac
  12346. ;;
  12347. lynxos*)
  12348. # FIXME: insert proper C++ library support
  12349. ld_shlibs_CXX=no
  12350. ;;
  12351. m88k*)
  12352. # FIXME: insert proper C++ library support
  12353. ld_shlibs_CXX=no
  12354. ;;
  12355. mvs*)
  12356. case $cc_basename in
  12357. cxx*)
  12358. # FIXME: insert proper C++ library support
  12359. ld_shlibs_CXX=no
  12360. ;;
  12361. *)
  12362. # FIXME: insert proper C++ library support
  12363. ld_shlibs_CXX=no
  12364. ;;
  12365. esac
  12366. ;;
  12367. netbsd*)
  12368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12369. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12370. wlarc=
  12371. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12372. hardcode_direct_CXX=yes
  12373. hardcode_shlibpath_var_CXX=no
  12374. fi
  12375. # Workaround some broken pre-1.5 toolchains
  12376. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12377. ;;
  12378. *nto* | *qnx*)
  12379. ld_shlibs_CXX=yes
  12380. ;;
  12381. openbsd* | bitrig*)
  12382. if test -f /usr/libexec/ld.so; then
  12383. hardcode_direct_CXX=yes
  12384. hardcode_shlibpath_var_CXX=no
  12385. hardcode_direct_absolute_CXX=yes
  12386. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12387. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12388. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12389. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12390. export_dynamic_flag_spec_CXX='$wl-E'
  12391. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12392. fi
  12393. output_verbose_link_cmd=func_echo_all
  12394. else
  12395. ld_shlibs_CXX=no
  12396. fi
  12397. ;;
  12398. osf3* | osf4* | osf5*)
  12399. case $cc_basename in
  12400. KCC*)
  12401. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12402. # KCC will only create a shared library if the output file
  12403. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12404. # to its proper name (with version) after linking.
  12405. 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'
  12406. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12407. hardcode_libdir_separator_CXX=:
  12408. # Archives containing C++ object files must be created using
  12409. # the KAI C++ compiler.
  12410. case $host in
  12411. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12412. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12413. esac
  12414. ;;
  12415. RCC*)
  12416. # Rational C++ 2.4.1
  12417. # FIXME: insert proper C++ library support
  12418. ld_shlibs_CXX=no
  12419. ;;
  12420. cxx*)
  12421. case $host in
  12422. osf3*)
  12423. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12424. 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'
  12425. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12426. ;;
  12427. *)
  12428. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12429. 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'
  12430. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12431. echo "-hidden">> $lib.exp~
  12432. $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~
  12433. $RM $lib.exp'
  12434. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12435. ;;
  12436. esac
  12437. hardcode_libdir_separator_CXX=:
  12438. # Commands to make compiler produce verbose output that lists
  12439. # what "hidden" libraries, object files and flags are used when
  12440. # linking a shared library.
  12441. #
  12442. # There doesn't appear to be a way to prevent this compiler from
  12443. # explicitly linking system object files so we need to strip them
  12444. # from the output so that they don't get included in the library
  12445. # dependencies.
  12446. 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"'
  12447. ;;
  12448. *)
  12449. if test yes,no = "$GXX,$with_gnu_ld"; then
  12450. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12451. case $host in
  12452. osf3*)
  12453. 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'
  12454. ;;
  12455. *)
  12456. 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'
  12457. ;;
  12458. esac
  12459. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12460. hardcode_libdir_separator_CXX=:
  12461. # Commands to make compiler produce verbose output that lists
  12462. # what "hidden" libraries, object files and flags are used when
  12463. # linking a shared library.
  12464. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12465. else
  12466. # FIXME: insert proper C++ library support
  12467. ld_shlibs_CXX=no
  12468. fi
  12469. ;;
  12470. esac
  12471. ;;
  12472. psos*)
  12473. # FIXME: insert proper C++ library support
  12474. ld_shlibs_CXX=no
  12475. ;;
  12476. sunos4*)
  12477. case $cc_basename in
  12478. CC*)
  12479. # Sun C++ 4.x
  12480. # FIXME: insert proper C++ library support
  12481. ld_shlibs_CXX=no
  12482. ;;
  12483. lcc*)
  12484. # Lucid
  12485. # FIXME: insert proper C++ library support
  12486. ld_shlibs_CXX=no
  12487. ;;
  12488. *)
  12489. # FIXME: insert proper C++ library support
  12490. ld_shlibs_CXX=no
  12491. ;;
  12492. esac
  12493. ;;
  12494. solaris*)
  12495. case $cc_basename in
  12496. CC* | sunCC*)
  12497. # Sun C++ 4.2, 5.x and Centerline C++
  12498. archive_cmds_need_lc_CXX=yes
  12499. no_undefined_flag_CXX=' -zdefs'
  12500. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12501. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12502. $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'
  12503. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12504. hardcode_shlibpath_var_CXX=no
  12505. case $host_os in
  12506. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12507. *)
  12508. # The compiler driver will combine and reorder linker options,
  12509. # but understands '-z linker_flag'.
  12510. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12511. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12512. ;;
  12513. esac
  12514. link_all_deplibs_CXX=yes
  12515. output_verbose_link_cmd='func_echo_all'
  12516. # Archives containing C++ object files must be created using
  12517. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12518. # necessary to make sure instantiated templates are included
  12519. # in the archive.
  12520. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12521. ;;
  12522. gcx*)
  12523. # Green Hills C++ Compiler
  12524. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12525. # The C++ compiler must be used to create the archive.
  12526. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12527. ;;
  12528. *)
  12529. # GNU C++ compiler with Solaris linker
  12530. if test yes,no = "$GXX,$with_gnu_ld"; then
  12531. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12532. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12533. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12534. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12535. $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'
  12536. # Commands to make compiler produce verbose output that lists
  12537. # what "hidden" libraries, object files and flags are used when
  12538. # linking a shared library.
  12539. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12540. else
  12541. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12542. # platform.
  12543. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12544. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12545. $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'
  12546. # Commands to make compiler produce verbose output that lists
  12547. # what "hidden" libraries, object files and flags are used when
  12548. # linking a shared library.
  12549. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12550. fi
  12551. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12552. case $host_os in
  12553. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12554. *)
  12555. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12556. ;;
  12557. esac
  12558. fi
  12559. ;;
  12560. esac
  12561. ;;
  12562. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12563. no_undefined_flag_CXX='$wl-z,text'
  12564. archive_cmds_need_lc_CXX=no
  12565. hardcode_shlibpath_var_CXX=no
  12566. runpath_var='LD_RUN_PATH'
  12567. case $cc_basename in
  12568. CC*)
  12569. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12570. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12571. ;;
  12572. *)
  12573. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12574. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12575. ;;
  12576. esac
  12577. ;;
  12578. sysv5* | sco3.2v5* | sco5v6*)
  12579. # Note: We CANNOT use -z defs as we might desire, because we do not
  12580. # link with -lc, and that would cause any symbols used from libc to
  12581. # always be unresolved, which means just about no library would
  12582. # ever link correctly. If we're not using GNU ld we use -z text
  12583. # though, which does catch some bad symbols but isn't as heavy-handed
  12584. # as -z defs.
  12585. no_undefined_flag_CXX='$wl-z,text'
  12586. allow_undefined_flag_CXX='$wl-z,nodefs'
  12587. archive_cmds_need_lc_CXX=no
  12588. hardcode_shlibpath_var_CXX=no
  12589. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12590. hardcode_libdir_separator_CXX=':'
  12591. link_all_deplibs_CXX=yes
  12592. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12593. runpath_var='LD_RUN_PATH'
  12594. case $cc_basename in
  12595. CC*)
  12596. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12597. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12598. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12599. '"$old_archive_cmds_CXX"
  12600. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12601. '"$reload_cmds_CXX"
  12602. ;;
  12603. *)
  12604. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12605. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12606. ;;
  12607. esac
  12608. ;;
  12609. tandem*)
  12610. case $cc_basename in
  12611. NCC*)
  12612. # NonStop-UX NCC 3.20
  12613. # FIXME: insert proper C++ library support
  12614. ld_shlibs_CXX=no
  12615. ;;
  12616. *)
  12617. # FIXME: insert proper C++ library support
  12618. ld_shlibs_CXX=no
  12619. ;;
  12620. esac
  12621. ;;
  12622. vxworks*)
  12623. # FIXME: insert proper C++ library support
  12624. ld_shlibs_CXX=no
  12625. ;;
  12626. *)
  12627. # FIXME: insert proper C++ library support
  12628. ld_shlibs_CXX=no
  12629. ;;
  12630. esac
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12632. $as_echo "$ld_shlibs_CXX" >&6; }
  12633. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12634. GCC_CXX=$GXX
  12635. LD_CXX=$LD
  12636. ## CAVEAT EMPTOR:
  12637. ## There is no encapsulation within the following macros, do not change
  12638. ## the running order or otherwise move them around unless you know exactly
  12639. ## what you are doing...
  12640. # Dependencies to place before and after the object being linked:
  12641. predep_objects_CXX=
  12642. postdep_objects_CXX=
  12643. predeps_CXX=
  12644. postdeps_CXX=
  12645. compiler_lib_search_path_CXX=
  12646. cat > conftest.$ac_ext <<_LT_EOF
  12647. class Foo
  12648. {
  12649. public:
  12650. Foo (void) { a = 0; }
  12651. private:
  12652. int a;
  12653. };
  12654. _LT_EOF
  12655. _lt_libdeps_save_CFLAGS=$CFLAGS
  12656. case "$CC $CFLAGS " in #(
  12657. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12658. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12659. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12660. esac
  12661. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12662. (eval $ac_compile) 2>&5
  12663. ac_status=$?
  12664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12665. test $ac_status = 0; }; then
  12666. # Parse the compiler output and extract the necessary
  12667. # objects, libraries and library flags.
  12668. # Sentinel used to keep track of whether or not we are before
  12669. # the conftest object file.
  12670. pre_test_object_deps_done=no
  12671. for p in `eval "$output_verbose_link_cmd"`; do
  12672. case $prev$p in
  12673. -L* | -R* | -l*)
  12674. # Some compilers place space between "-{L,R}" and the path.
  12675. # Remove the space.
  12676. if test x-L = "x$p" ||
  12677. test x-R = "x$p" ||
  12678. test x-l = "x$p"; then
  12679. prev=$p
  12680. continue
  12681. fi
  12682. # Expand the sysroot to ease extracting the directories later.
  12683. if test -z "$prev"; then
  12684. case $p in
  12685. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12686. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12687. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12688. esac
  12689. fi
  12690. case $p in
  12691. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12692. esac
  12693. if test no = "$pre_test_object_deps_done"; then
  12694. case $prev in
  12695. -L | -R)
  12696. # Internal compiler library paths should come after those
  12697. # provided the user. The postdeps already come after the
  12698. # user supplied libs so there is no need to process them.
  12699. if test -z "$compiler_lib_search_path_CXX"; then
  12700. compiler_lib_search_path_CXX=$prev$p
  12701. else
  12702. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12703. fi
  12704. ;;
  12705. # The "-l" case would never come before the object being
  12706. # linked, so don't bother handling this case.
  12707. esac
  12708. else
  12709. if test -z "$postdeps_CXX"; then
  12710. postdeps_CXX=$prev$p
  12711. else
  12712. postdeps_CXX="${postdeps_CXX} $prev$p"
  12713. fi
  12714. fi
  12715. prev=
  12716. ;;
  12717. *.lto.$objext) ;; # Ignore GCC LTO objects
  12718. *.$objext)
  12719. # This assumes that the test object file only shows up
  12720. # once in the compiler output.
  12721. if test "$p" = "conftest.$objext"; then
  12722. pre_test_object_deps_done=yes
  12723. continue
  12724. fi
  12725. if test no = "$pre_test_object_deps_done"; then
  12726. if test -z "$predep_objects_CXX"; then
  12727. predep_objects_CXX=$p
  12728. else
  12729. predep_objects_CXX="$predep_objects_CXX $p"
  12730. fi
  12731. else
  12732. if test -z "$postdep_objects_CXX"; then
  12733. postdep_objects_CXX=$p
  12734. else
  12735. postdep_objects_CXX="$postdep_objects_CXX $p"
  12736. fi
  12737. fi
  12738. ;;
  12739. *) ;; # Ignore the rest.
  12740. esac
  12741. done
  12742. # Clean up.
  12743. rm -f a.out a.exe
  12744. else
  12745. echo "libtool.m4: error: problem compiling CXX test program"
  12746. fi
  12747. $RM -f confest.$objext
  12748. CFLAGS=$_lt_libdeps_save_CFLAGS
  12749. # PORTME: override above test on systems where it is broken
  12750. case $host_os in
  12751. interix[3-9]*)
  12752. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12753. # hack all around it, let's just trust "g++" to DTRT.
  12754. predep_objects_CXX=
  12755. postdep_objects_CXX=
  12756. postdeps_CXX=
  12757. ;;
  12758. esac
  12759. case " $postdeps_CXX " in
  12760. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12761. esac
  12762. compiler_lib_search_dirs_CXX=
  12763. if test -n "${compiler_lib_search_path_CXX}"; then
  12764. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12765. fi
  12766. lt_prog_compiler_wl_CXX=
  12767. lt_prog_compiler_pic_CXX=
  12768. lt_prog_compiler_static_CXX=
  12769. # C++ specific cases for pic, static, wl, etc.
  12770. if test yes = "$GXX"; then
  12771. lt_prog_compiler_wl_CXX='-Wl,'
  12772. lt_prog_compiler_static_CXX='-static'
  12773. case $host_os in
  12774. aix*)
  12775. # All AIX code is PIC.
  12776. if test ia64 = "$host_cpu"; then
  12777. # AIX 5 now supports IA64 processor
  12778. lt_prog_compiler_static_CXX='-Bstatic'
  12779. fi
  12780. lt_prog_compiler_pic_CXX='-fPIC'
  12781. ;;
  12782. amigaos*)
  12783. case $host_cpu in
  12784. powerpc)
  12785. # see comment about AmigaOS4 .so support
  12786. lt_prog_compiler_pic_CXX='-fPIC'
  12787. ;;
  12788. m68k)
  12789. # FIXME: we need at least 68020 code to build shared libraries, but
  12790. # adding the '-m68020' flag to GCC prevents building anything better,
  12791. # like '-m68040'.
  12792. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12793. ;;
  12794. esac
  12795. ;;
  12796. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12797. # PIC is the default for these OSes.
  12798. ;;
  12799. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12800. # This hack is so that the source file can tell whether it is being
  12801. # built for inclusion in a dll (and should export symbols for example).
  12802. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12803. # (--disable-auto-import) libraries
  12804. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12805. case $host_os in
  12806. os2*)
  12807. lt_prog_compiler_static_CXX='$wl-static'
  12808. ;;
  12809. esac
  12810. ;;
  12811. darwin* | rhapsody*)
  12812. # PIC is the default on this platform
  12813. # Common symbols not allowed in MH_DYLIB files
  12814. lt_prog_compiler_pic_CXX='-fno-common'
  12815. ;;
  12816. *djgpp*)
  12817. # DJGPP does not support shared libraries at all
  12818. lt_prog_compiler_pic_CXX=
  12819. ;;
  12820. haiku*)
  12821. # PIC is the default for Haiku.
  12822. # The "-static" flag exists, but is broken.
  12823. lt_prog_compiler_static_CXX=
  12824. ;;
  12825. interix[3-9]*)
  12826. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12827. # Instead, we relocate shared libraries at runtime.
  12828. ;;
  12829. sysv4*MP*)
  12830. if test -d /usr/nec; then
  12831. lt_prog_compiler_pic_CXX=-Kconform_pic
  12832. fi
  12833. ;;
  12834. hpux*)
  12835. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12836. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12837. # sets the default TLS model and affects inlining.
  12838. case $host_cpu in
  12839. hppa*64*)
  12840. ;;
  12841. *)
  12842. lt_prog_compiler_pic_CXX='-fPIC'
  12843. ;;
  12844. esac
  12845. ;;
  12846. *qnx* | *nto*)
  12847. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12848. # it will coredump.
  12849. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12850. ;;
  12851. *)
  12852. lt_prog_compiler_pic_CXX='-fPIC'
  12853. ;;
  12854. esac
  12855. else
  12856. case $host_os in
  12857. aix[4-9]*)
  12858. # All AIX code is PIC.
  12859. if test ia64 = "$host_cpu"; then
  12860. # AIX 5 now supports IA64 processor
  12861. lt_prog_compiler_static_CXX='-Bstatic'
  12862. else
  12863. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12864. fi
  12865. ;;
  12866. chorus*)
  12867. case $cc_basename in
  12868. cxch68*)
  12869. # Green Hills C++ Compiler
  12870. # _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"
  12871. ;;
  12872. esac
  12873. ;;
  12874. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12875. # This hack is so that the source file can tell whether it is being
  12876. # built for inclusion in a dll (and should export symbols for example).
  12877. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12878. ;;
  12879. dgux*)
  12880. case $cc_basename in
  12881. ec++*)
  12882. lt_prog_compiler_pic_CXX='-KPIC'
  12883. ;;
  12884. ghcx*)
  12885. # Green Hills C++ Compiler
  12886. lt_prog_compiler_pic_CXX='-pic'
  12887. ;;
  12888. *)
  12889. ;;
  12890. esac
  12891. ;;
  12892. freebsd* | dragonfly* | midnightbsd*)
  12893. # FreeBSD uses GNU C++
  12894. ;;
  12895. hpux9* | hpux10* | hpux11*)
  12896. case $cc_basename in
  12897. CC*)
  12898. lt_prog_compiler_wl_CXX='-Wl,'
  12899. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12900. if test ia64 != "$host_cpu"; then
  12901. lt_prog_compiler_pic_CXX='+Z'
  12902. fi
  12903. ;;
  12904. aCC*)
  12905. lt_prog_compiler_wl_CXX='-Wl,'
  12906. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12907. case $host_cpu in
  12908. hppa*64*|ia64*)
  12909. # +Z the default
  12910. ;;
  12911. *)
  12912. lt_prog_compiler_pic_CXX='+Z'
  12913. ;;
  12914. esac
  12915. ;;
  12916. *)
  12917. ;;
  12918. esac
  12919. ;;
  12920. interix*)
  12921. # This is c89, which is MS Visual C++ (no shared libs)
  12922. # Anyone wants to do a port?
  12923. ;;
  12924. irix5* | irix6* | nonstopux*)
  12925. case $cc_basename in
  12926. CC*)
  12927. lt_prog_compiler_wl_CXX='-Wl,'
  12928. lt_prog_compiler_static_CXX='-non_shared'
  12929. # CC pic flag -KPIC is the default.
  12930. ;;
  12931. *)
  12932. ;;
  12933. esac
  12934. ;;
  12935. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12936. case $cc_basename in
  12937. KCC*)
  12938. # KAI C++ Compiler
  12939. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12940. lt_prog_compiler_pic_CXX='-fPIC'
  12941. ;;
  12942. ecpc* )
  12943. # old Intel C++ for x86_64, which still supported -KPIC.
  12944. lt_prog_compiler_wl_CXX='-Wl,'
  12945. lt_prog_compiler_pic_CXX='-KPIC'
  12946. lt_prog_compiler_static_CXX='-static'
  12947. ;;
  12948. icpc* )
  12949. # Intel C++, used to be incompatible with GCC.
  12950. # ICC 10 doesn't accept -KPIC any more.
  12951. lt_prog_compiler_wl_CXX='-Wl,'
  12952. lt_prog_compiler_pic_CXX='-fPIC'
  12953. lt_prog_compiler_static_CXX='-static'
  12954. ;;
  12955. pgCC* | pgcpp*)
  12956. # Portland Group C++ compiler
  12957. lt_prog_compiler_wl_CXX='-Wl,'
  12958. lt_prog_compiler_pic_CXX='-fpic'
  12959. lt_prog_compiler_static_CXX='-Bstatic'
  12960. ;;
  12961. cxx*)
  12962. # Compaq C++
  12963. # Make sure the PIC flag is empty. It appears that all Alpha
  12964. # Linux and Compaq Tru64 Unix objects are PIC.
  12965. lt_prog_compiler_pic_CXX=
  12966. lt_prog_compiler_static_CXX='-non_shared'
  12967. ;;
  12968. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12969. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12970. lt_prog_compiler_wl_CXX='-Wl,'
  12971. lt_prog_compiler_pic_CXX='-qpic'
  12972. lt_prog_compiler_static_CXX='-qstaticlink'
  12973. ;;
  12974. *)
  12975. case `$CC -V 2>&1 | sed 5q` in
  12976. *Sun\ C*)
  12977. # Sun C++ 5.9
  12978. lt_prog_compiler_pic_CXX='-KPIC'
  12979. lt_prog_compiler_static_CXX='-Bstatic'
  12980. lt_prog_compiler_wl_CXX='-Qoption ld '
  12981. ;;
  12982. esac
  12983. ;;
  12984. esac
  12985. ;;
  12986. lynxos*)
  12987. ;;
  12988. m88k*)
  12989. ;;
  12990. mvs*)
  12991. case $cc_basename in
  12992. cxx*)
  12993. lt_prog_compiler_pic_CXX='-W c,exportall'
  12994. ;;
  12995. *)
  12996. ;;
  12997. esac
  12998. ;;
  12999. netbsd*)
  13000. ;;
  13001. *qnx* | *nto*)
  13002. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13003. # it will coredump.
  13004. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13005. ;;
  13006. osf3* | osf4* | osf5*)
  13007. case $cc_basename in
  13008. KCC*)
  13009. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13010. ;;
  13011. RCC*)
  13012. # Rational C++ 2.4.1
  13013. lt_prog_compiler_pic_CXX='-pic'
  13014. ;;
  13015. cxx*)
  13016. # Digital/Compaq C++
  13017. lt_prog_compiler_wl_CXX='-Wl,'
  13018. # Make sure the PIC flag is empty. It appears that all Alpha
  13019. # Linux and Compaq Tru64 Unix objects are PIC.
  13020. lt_prog_compiler_pic_CXX=
  13021. lt_prog_compiler_static_CXX='-non_shared'
  13022. ;;
  13023. *)
  13024. ;;
  13025. esac
  13026. ;;
  13027. psos*)
  13028. ;;
  13029. solaris*)
  13030. case $cc_basename in
  13031. CC* | sunCC*)
  13032. # Sun C++ 4.2, 5.x and Centerline C++
  13033. lt_prog_compiler_pic_CXX='-KPIC'
  13034. lt_prog_compiler_static_CXX='-Bstatic'
  13035. lt_prog_compiler_wl_CXX='-Qoption ld '
  13036. ;;
  13037. gcx*)
  13038. # Green Hills C++ Compiler
  13039. lt_prog_compiler_pic_CXX='-PIC'
  13040. ;;
  13041. *)
  13042. ;;
  13043. esac
  13044. ;;
  13045. sunos4*)
  13046. case $cc_basename in
  13047. CC*)
  13048. # Sun C++ 4.x
  13049. lt_prog_compiler_pic_CXX='-pic'
  13050. lt_prog_compiler_static_CXX='-Bstatic'
  13051. ;;
  13052. lcc*)
  13053. # Lucid
  13054. lt_prog_compiler_pic_CXX='-pic'
  13055. ;;
  13056. *)
  13057. ;;
  13058. esac
  13059. ;;
  13060. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13061. case $cc_basename in
  13062. CC*)
  13063. lt_prog_compiler_wl_CXX='-Wl,'
  13064. lt_prog_compiler_pic_CXX='-KPIC'
  13065. lt_prog_compiler_static_CXX='-Bstatic'
  13066. ;;
  13067. esac
  13068. ;;
  13069. tandem*)
  13070. case $cc_basename in
  13071. NCC*)
  13072. # NonStop-UX NCC 3.20
  13073. lt_prog_compiler_pic_CXX='-KPIC'
  13074. ;;
  13075. *)
  13076. ;;
  13077. esac
  13078. ;;
  13079. vxworks*)
  13080. ;;
  13081. *)
  13082. lt_prog_compiler_can_build_shared_CXX=no
  13083. ;;
  13084. esac
  13085. fi
  13086. case $host_os in
  13087. # For platforms that do not support PIC, -DPIC is meaningless:
  13088. *djgpp*)
  13089. lt_prog_compiler_pic_CXX=
  13090. ;;
  13091. *)
  13092. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13093. ;;
  13094. esac
  13095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13096. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13097. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13098. $as_echo_n "(cached) " >&6
  13099. else
  13100. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13101. fi
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13103. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13104. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13105. #
  13106. # Check to make sure the PIC flag actually works.
  13107. #
  13108. if test -n "$lt_prog_compiler_pic_CXX"; then
  13109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13110. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13111. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13112. $as_echo_n "(cached) " >&6
  13113. else
  13114. lt_cv_prog_compiler_pic_works_CXX=no
  13115. ac_outfile=conftest.$ac_objext
  13116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13117. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13118. # Insert the option either (1) after the last *FLAGS variable, or
  13119. # (2) before a word containing "conftest.", or (3) at the end.
  13120. # Note that $ac_compile itself does not contain backslashes and begins
  13121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13122. # The option is referenced via a variable to avoid confusing sed.
  13123. lt_compile=`echo "$ac_compile" | $SED \
  13124. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13125. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13126. -e 's:$: $lt_compiler_flag:'`
  13127. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13128. (eval "$lt_compile" 2>conftest.err)
  13129. ac_status=$?
  13130. cat conftest.err >&5
  13131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13132. if (exit $ac_status) && test -s "$ac_outfile"; then
  13133. # The compiler can only warn and ignore the option if not recognized
  13134. # So say no if there are warnings other than the usual output.
  13135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13136. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13137. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13138. lt_cv_prog_compiler_pic_works_CXX=yes
  13139. fi
  13140. fi
  13141. $RM conftest*
  13142. fi
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13144. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13145. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13146. case $lt_prog_compiler_pic_CXX in
  13147. "" | " "*) ;;
  13148. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13149. esac
  13150. else
  13151. lt_prog_compiler_pic_CXX=
  13152. lt_prog_compiler_can_build_shared_CXX=no
  13153. fi
  13154. fi
  13155. #
  13156. # Check to make sure the static flag actually works.
  13157. #
  13158. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13160. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13161. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13162. $as_echo_n "(cached) " >&6
  13163. else
  13164. lt_cv_prog_compiler_static_works_CXX=no
  13165. save_LDFLAGS=$LDFLAGS
  13166. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13167. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13168. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13169. # The linker can only warn and ignore the option if not recognized
  13170. # So say no if there are warnings
  13171. if test -s conftest.err; then
  13172. # Append any errors to the config.log.
  13173. cat conftest.err 1>&5
  13174. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13176. if diff conftest.exp conftest.er2 >/dev/null; then
  13177. lt_cv_prog_compiler_static_works_CXX=yes
  13178. fi
  13179. else
  13180. lt_cv_prog_compiler_static_works_CXX=yes
  13181. fi
  13182. fi
  13183. $RM -r conftest*
  13184. LDFLAGS=$save_LDFLAGS
  13185. fi
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13187. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13188. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13189. :
  13190. else
  13191. lt_prog_compiler_static_CXX=
  13192. fi
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13194. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13195. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13196. $as_echo_n "(cached) " >&6
  13197. else
  13198. lt_cv_prog_compiler_c_o_CXX=no
  13199. $RM -r conftest 2>/dev/null
  13200. mkdir conftest
  13201. cd conftest
  13202. mkdir out
  13203. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13204. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13205. # Insert the option either (1) after the last *FLAGS variable, or
  13206. # (2) before a word containing "conftest.", or (3) at the end.
  13207. # Note that $ac_compile itself does not contain backslashes and begins
  13208. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13209. lt_compile=`echo "$ac_compile" | $SED \
  13210. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13211. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13212. -e 's:$: $lt_compiler_flag:'`
  13213. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13214. (eval "$lt_compile" 2>out/conftest.err)
  13215. ac_status=$?
  13216. cat out/conftest.err >&5
  13217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13218. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13219. then
  13220. # The compiler can only warn and ignore the option if not recognized
  13221. # So say no if there are warnings
  13222. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13223. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13224. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13225. lt_cv_prog_compiler_c_o_CXX=yes
  13226. fi
  13227. fi
  13228. chmod u+w . 2>&5
  13229. $RM conftest*
  13230. # SGI C++ compiler will create directory out/ii_files/ for
  13231. # template instantiation
  13232. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13233. $RM out/* && rmdir out
  13234. cd ..
  13235. $RM -r conftest
  13236. $RM conftest*
  13237. fi
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13239. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13241. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13242. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13243. $as_echo_n "(cached) " >&6
  13244. else
  13245. lt_cv_prog_compiler_c_o_CXX=no
  13246. $RM -r conftest 2>/dev/null
  13247. mkdir conftest
  13248. cd conftest
  13249. mkdir out
  13250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13251. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13252. # Insert the option either (1) after the last *FLAGS variable, or
  13253. # (2) before a word containing "conftest.", or (3) at the end.
  13254. # Note that $ac_compile itself does not contain backslashes and begins
  13255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13256. lt_compile=`echo "$ac_compile" | $SED \
  13257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13259. -e 's:$: $lt_compiler_flag:'`
  13260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13261. (eval "$lt_compile" 2>out/conftest.err)
  13262. ac_status=$?
  13263. cat out/conftest.err >&5
  13264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13265. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13266. then
  13267. # The compiler can only warn and ignore the option if not recognized
  13268. # So say no if there are warnings
  13269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13270. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13271. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13272. lt_cv_prog_compiler_c_o_CXX=yes
  13273. fi
  13274. fi
  13275. chmod u+w . 2>&5
  13276. $RM conftest*
  13277. # SGI C++ compiler will create directory out/ii_files/ for
  13278. # template instantiation
  13279. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13280. $RM out/* && rmdir out
  13281. cd ..
  13282. $RM -r conftest
  13283. $RM conftest*
  13284. fi
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13286. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13287. hard_links=nottested
  13288. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13289. # do not overwrite the value of need_locks provided by the user
  13290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13291. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13292. hard_links=yes
  13293. $RM conftest*
  13294. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13295. touch conftest.a
  13296. ln conftest.a conftest.b 2>&5 || hard_links=no
  13297. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13299. $as_echo "$hard_links" >&6; }
  13300. if test no = "$hard_links"; then
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13302. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13303. need_locks=warn
  13304. fi
  13305. else
  13306. need_locks=no
  13307. fi
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13309. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13310. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13311. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13312. case $host_os in
  13313. aix[4-9]*)
  13314. # If we're using GNU nm, then we don't want the "-C" option.
  13315. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13316. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13317. # weak defined symbols like other global defined symbols, whereas
  13318. # GNU nm marks them as "W".
  13319. # While the 'weak' keyword is ignored in the Export File, we need
  13320. # it in the Import File for the 'aix-soname' feature, so we have
  13321. # to replace the "-B" option with "-P" for AIX nm.
  13322. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13323. 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'
  13324. else
  13325. 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'
  13326. fi
  13327. ;;
  13328. pw32*)
  13329. export_symbols_cmds_CXX=$ltdll_cmds
  13330. ;;
  13331. cygwin* | mingw* | cegcc*)
  13332. case $cc_basename in
  13333. cl*)
  13334. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13335. ;;
  13336. *)
  13337. 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'
  13338. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13339. ;;
  13340. esac
  13341. ;;
  13342. *)
  13343. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13344. ;;
  13345. esac
  13346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13347. $as_echo "$ld_shlibs_CXX" >&6; }
  13348. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13349. with_gnu_ld_CXX=$with_gnu_ld
  13350. #
  13351. # Do we need to explicitly link libc?
  13352. #
  13353. case "x$archive_cmds_need_lc_CXX" in
  13354. x|xyes)
  13355. # Assume -lc should be added
  13356. archive_cmds_need_lc_CXX=yes
  13357. if test yes,yes = "$GCC,$enable_shared"; then
  13358. case $archive_cmds_CXX in
  13359. *'~'*)
  13360. # FIXME: we may have to deal with multi-command sequences.
  13361. ;;
  13362. '$CC '*)
  13363. # Test whether the compiler implicitly links with -lc since on some
  13364. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13365. # to ld, don't add -lc before -lgcc.
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13367. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13368. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13369. $as_echo_n "(cached) " >&6
  13370. else
  13371. $RM conftest*
  13372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13374. (eval $ac_compile) 2>&5
  13375. ac_status=$?
  13376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13377. test $ac_status = 0; } 2>conftest.err; then
  13378. soname=conftest
  13379. lib=conftest
  13380. libobjs=conftest.$ac_objext
  13381. deplibs=
  13382. wl=$lt_prog_compiler_wl_CXX
  13383. pic_flag=$lt_prog_compiler_pic_CXX
  13384. compiler_flags=-v
  13385. linker_flags=-v
  13386. verstring=
  13387. output_objdir=.
  13388. libname=conftest
  13389. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13390. allow_undefined_flag_CXX=
  13391. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13392. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13393. ac_status=$?
  13394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13395. test $ac_status = 0; }
  13396. then
  13397. lt_cv_archive_cmds_need_lc_CXX=no
  13398. else
  13399. lt_cv_archive_cmds_need_lc_CXX=yes
  13400. fi
  13401. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13402. else
  13403. cat conftest.err 1>&5
  13404. fi
  13405. $RM conftest*
  13406. fi
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13408. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13409. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13410. ;;
  13411. esac
  13412. fi
  13413. ;;
  13414. esac
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13416. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13417. library_names_spec=
  13418. libname_spec='lib$name'
  13419. soname_spec=
  13420. shrext_cmds=.so
  13421. postinstall_cmds=
  13422. postuninstall_cmds=
  13423. finish_cmds=
  13424. finish_eval=
  13425. shlibpath_var=
  13426. shlibpath_overrides_runpath=unknown
  13427. version_type=none
  13428. dynamic_linker="$host_os ld.so"
  13429. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13430. need_lib_prefix=unknown
  13431. hardcode_into_libs=no
  13432. # when you set need_version to no, make sure it does not cause -set_version
  13433. # flags to be left without arguments
  13434. need_version=unknown
  13435. case $host_os in
  13436. aix3*)
  13437. version_type=linux # correct to gnu/linux during the next big refactor
  13438. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13439. shlibpath_var=LIBPATH
  13440. # AIX 3 has no versioning support, so we append a major version to the name.
  13441. soname_spec='$libname$release$shared_ext$major'
  13442. ;;
  13443. aix[4-9]*)
  13444. version_type=linux # correct to gnu/linux during the next big refactor
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. hardcode_into_libs=yes
  13448. if test ia64 = "$host_cpu"; then
  13449. # AIX 5 supports IA64
  13450. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13451. shlibpath_var=LD_LIBRARY_PATH
  13452. else
  13453. # With GCC up to 2.95.x, collect2 would create an import file
  13454. # for dependence libraries. The import file would start with
  13455. # the line '#! .'. This would cause the generated library to
  13456. # depend on '.', always an invalid library. This was fixed in
  13457. # development snapshots of GCC prior to 3.0.
  13458. case $host_os in
  13459. aix4 | aix4.[01] | aix4.[01].*)
  13460. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13461. echo ' yes '
  13462. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13463. :
  13464. else
  13465. can_build_shared=no
  13466. fi
  13467. ;;
  13468. esac
  13469. # Using Import Files as archive members, it is possible to support
  13470. # filename-based versioning of shared library archives on AIX. While
  13471. # this would work for both with and without runtime linking, it will
  13472. # prevent static linking of such archives. So we do filename-based
  13473. # shared library versioning with .so extension only, which is used
  13474. # when both runtime linking and shared linking is enabled.
  13475. # Unfortunately, runtime linking may impact performance, so we do
  13476. # not want this to be the default eventually. Also, we use the
  13477. # versioned .so libs for executables only if there is the -brtl
  13478. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13479. # To allow for filename-based versioning support, we need to create
  13480. # libNAME.so.V as an archive file, containing:
  13481. # *) an Import File, referring to the versioned filename of the
  13482. # archive as well as the shared archive member, telling the
  13483. # bitwidth (32 or 64) of that shared object, and providing the
  13484. # list of exported symbols of that shared object, eventually
  13485. # decorated with the 'weak' keyword
  13486. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13487. # it being seen by the linker.
  13488. # At run time we better use the real file rather than another symlink,
  13489. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13490. case $with_aix_soname,$aix_use_runtimelinking in
  13491. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13492. # soname into executable. Probably we can add versioning support to
  13493. # collect2, so additional links can be useful in future.
  13494. aix,yes) # traditional libtool
  13495. dynamic_linker='AIX unversionable lib.so'
  13496. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13497. # instead of lib<name>.a to let people know that these are not
  13498. # typical AIX shared libraries.
  13499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13500. ;;
  13501. aix,no) # traditional AIX only
  13502. dynamic_linker='AIX lib.a(lib.so.V)'
  13503. # We preserve .a as extension for shared libraries through AIX4.2
  13504. # and later when we are not doing run time linking.
  13505. library_names_spec='$libname$release.a $libname.a'
  13506. soname_spec='$libname$release$shared_ext$major'
  13507. ;;
  13508. svr4,*) # full svr4 only
  13509. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13510. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13511. # We do not specify a path in Import Files, so LIBPATH fires.
  13512. shlibpath_overrides_runpath=yes
  13513. ;;
  13514. *,yes) # both, prefer svr4
  13515. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13516. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13517. # unpreferred sharedlib libNAME.a needs extra handling
  13518. 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"'
  13519. 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"'
  13520. # We do not specify a path in Import Files, so LIBPATH fires.
  13521. shlibpath_overrides_runpath=yes
  13522. ;;
  13523. *,no) # both, prefer aix
  13524. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13525. library_names_spec='$libname$release.a $libname.a'
  13526. soname_spec='$libname$release$shared_ext$major'
  13527. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13528. 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)'
  13529. 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"'
  13530. ;;
  13531. esac
  13532. shlibpath_var=LIBPATH
  13533. fi
  13534. ;;
  13535. amigaos*)
  13536. case $host_cpu in
  13537. powerpc)
  13538. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13539. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13540. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13541. ;;
  13542. m68k)
  13543. library_names_spec='$libname.ixlibrary $libname.a'
  13544. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13545. 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'
  13546. ;;
  13547. esac
  13548. ;;
  13549. beos*)
  13550. library_names_spec='$libname$shared_ext'
  13551. dynamic_linker="$host_os ld.so"
  13552. shlibpath_var=LIBRARY_PATH
  13553. ;;
  13554. bsdi[45]*)
  13555. version_type=linux # correct to gnu/linux during the next big refactor
  13556. need_version=no
  13557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13558. soname_spec='$libname$release$shared_ext$major'
  13559. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13560. shlibpath_var=LD_LIBRARY_PATH
  13561. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13562. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13563. # the default ld.so.conf also contains /usr/contrib/lib and
  13564. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13565. # libtool to hard-code these into programs
  13566. ;;
  13567. cygwin* | mingw* | pw32* | cegcc*)
  13568. version_type=windows
  13569. shrext_cmds=.dll
  13570. need_version=no
  13571. need_lib_prefix=no
  13572. case $GCC,$cc_basename in
  13573. yes,*)
  13574. # gcc
  13575. library_names_spec='$libname.dll.a'
  13576. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13577. postinstall_cmds='base_file=`basename \$file`~
  13578. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13579. dldir=$destdir/`dirname \$dlpath`~
  13580. test -d \$dldir || mkdir -p \$dldir~
  13581. $install_prog $dir/$dlname \$dldir/$dlname~
  13582. chmod a+x \$dldir/$dlname~
  13583. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13584. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13585. fi'
  13586. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13587. dlpath=$dir/\$dldll~
  13588. $RM \$dlpath'
  13589. shlibpath_overrides_runpath=yes
  13590. case $host_os in
  13591. cygwin*)
  13592. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13593. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13594. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13595. ;;
  13596. mingw* | cegcc*)
  13597. # MinGW DLLs use traditional 'lib' prefix
  13598. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13599. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13600. ;;
  13601. pw32*)
  13602. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13603. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13604. ;;
  13605. esac
  13606. dynamic_linker='Win32 ld.exe'
  13607. ;;
  13608. *,cl*)
  13609. # Native MSVC
  13610. libname_spec='$name'
  13611. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13612. library_names_spec='$libname.dll.lib'
  13613. case $build_os in
  13614. mingw*)
  13615. sys_lib_search_path_spec=
  13616. lt_save_ifs=$IFS
  13617. IFS=';'
  13618. for lt_path in $LIB
  13619. do
  13620. IFS=$lt_save_ifs
  13621. # Let DOS variable expansion print the short 8.3 style file name.
  13622. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13623. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13624. done
  13625. IFS=$lt_save_ifs
  13626. # Convert to MSYS style.
  13627. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13628. ;;
  13629. cygwin*)
  13630. # Convert to unix form, then to dos form, then back to unix form
  13631. # but this time dos style (no spaces!) so that the unix form looks
  13632. # like /cygdrive/c/PROGRA~1:/cygdr...
  13633. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13634. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13635. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13636. ;;
  13637. *)
  13638. sys_lib_search_path_spec=$LIB
  13639. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13640. # It is most probably a Windows format PATH.
  13641. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13642. else
  13643. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13644. fi
  13645. # FIXME: find the short name or the path components, as spaces are
  13646. # common. (e.g. "Program Files" -> "PROGRA~1")
  13647. ;;
  13648. esac
  13649. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13650. postinstall_cmds='base_file=`basename \$file`~
  13651. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13652. dldir=$destdir/`dirname \$dlpath`~
  13653. test -d \$dldir || mkdir -p \$dldir~
  13654. $install_prog $dir/$dlname \$dldir/$dlname'
  13655. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13656. dlpath=$dir/\$dldll~
  13657. $RM \$dlpath'
  13658. shlibpath_overrides_runpath=yes
  13659. dynamic_linker='Win32 link.exe'
  13660. ;;
  13661. *)
  13662. # Assume MSVC wrapper
  13663. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13664. dynamic_linker='Win32 ld.exe'
  13665. ;;
  13666. esac
  13667. # FIXME: first we should search . and the directory the executable is in
  13668. shlibpath_var=PATH
  13669. ;;
  13670. darwin* | rhapsody*)
  13671. dynamic_linker="$host_os dyld"
  13672. version_type=darwin
  13673. need_lib_prefix=no
  13674. need_version=no
  13675. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13676. soname_spec='$libname$release$major$shared_ext'
  13677. shlibpath_overrides_runpath=yes
  13678. shlibpath_var=DYLD_LIBRARY_PATH
  13679. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13680. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13681. ;;
  13682. dgux*)
  13683. version_type=linux # correct to gnu/linux during the next big refactor
  13684. need_lib_prefix=no
  13685. need_version=no
  13686. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13687. soname_spec='$libname$release$shared_ext$major'
  13688. shlibpath_var=LD_LIBRARY_PATH
  13689. ;;
  13690. freebsd* | dragonfly* | midnightbsd*)
  13691. # DragonFly does not have aout. When/if they implement a new
  13692. # versioning mechanism, adjust this.
  13693. if test -x /usr/bin/objformat; then
  13694. objformat=`/usr/bin/objformat`
  13695. else
  13696. case $host_os in
  13697. freebsd[23].*) objformat=aout ;;
  13698. *) objformat=elf ;;
  13699. esac
  13700. fi
  13701. version_type=freebsd-$objformat
  13702. case $version_type in
  13703. freebsd-elf*)
  13704. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13705. soname_spec='$libname$release$shared_ext$major'
  13706. need_version=no
  13707. need_lib_prefix=no
  13708. ;;
  13709. freebsd-*)
  13710. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13711. need_version=yes
  13712. ;;
  13713. esac
  13714. shlibpath_var=LD_LIBRARY_PATH
  13715. case $host_os in
  13716. freebsd2.*)
  13717. shlibpath_overrides_runpath=yes
  13718. ;;
  13719. freebsd3.[01]* | freebsdelf3.[01]*)
  13720. shlibpath_overrides_runpath=yes
  13721. hardcode_into_libs=yes
  13722. ;;
  13723. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13724. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13725. shlibpath_overrides_runpath=no
  13726. hardcode_into_libs=yes
  13727. ;;
  13728. *) # from 4.6 on, and DragonFly
  13729. shlibpath_overrides_runpath=yes
  13730. hardcode_into_libs=yes
  13731. ;;
  13732. esac
  13733. ;;
  13734. haiku*)
  13735. version_type=linux # correct to gnu/linux during the next big refactor
  13736. need_lib_prefix=no
  13737. need_version=no
  13738. dynamic_linker="$host_os runtime_loader"
  13739. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13740. soname_spec='$libname$release$shared_ext$major'
  13741. shlibpath_var=LIBRARY_PATH
  13742. shlibpath_overrides_runpath=no
  13743. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13744. hardcode_into_libs=yes
  13745. ;;
  13746. hpux9* | hpux10* | hpux11*)
  13747. # Give a soname corresponding to the major version so that dld.sl refuses to
  13748. # link against other versions.
  13749. version_type=sunos
  13750. need_lib_prefix=no
  13751. need_version=no
  13752. case $host_cpu in
  13753. ia64*)
  13754. shrext_cmds='.so'
  13755. hardcode_into_libs=yes
  13756. dynamic_linker="$host_os dld.so"
  13757. shlibpath_var=LD_LIBRARY_PATH
  13758. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13760. soname_spec='$libname$release$shared_ext$major'
  13761. if test 32 = "$HPUX_IA64_MODE"; then
  13762. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13763. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13764. else
  13765. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13766. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13767. fi
  13768. ;;
  13769. hppa*64*)
  13770. shrext_cmds='.sl'
  13771. hardcode_into_libs=yes
  13772. dynamic_linker="$host_os dld.sl"
  13773. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13774. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13775. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13776. soname_spec='$libname$release$shared_ext$major'
  13777. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13778. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13779. ;;
  13780. *)
  13781. shrext_cmds='.sl'
  13782. dynamic_linker="$host_os dld.sl"
  13783. shlibpath_var=SHLIB_PATH
  13784. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13786. soname_spec='$libname$release$shared_ext$major'
  13787. ;;
  13788. esac
  13789. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13790. postinstall_cmds='chmod 555 $lib'
  13791. # or fails outright, so override atomically:
  13792. install_override_mode=555
  13793. ;;
  13794. interix[3-9]*)
  13795. version_type=linux # correct to gnu/linux during the next big refactor
  13796. need_lib_prefix=no
  13797. need_version=no
  13798. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13799. soname_spec='$libname$release$shared_ext$major'
  13800. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13801. shlibpath_var=LD_LIBRARY_PATH
  13802. shlibpath_overrides_runpath=no
  13803. hardcode_into_libs=yes
  13804. ;;
  13805. irix5* | irix6* | nonstopux*)
  13806. case $host_os in
  13807. nonstopux*) version_type=nonstopux ;;
  13808. *)
  13809. if test yes = "$lt_cv_prog_gnu_ld"; then
  13810. version_type=linux # correct to gnu/linux during the next big refactor
  13811. else
  13812. version_type=irix
  13813. fi ;;
  13814. esac
  13815. need_lib_prefix=no
  13816. need_version=no
  13817. soname_spec='$libname$release$shared_ext$major'
  13818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13819. case $host_os in
  13820. irix5* | nonstopux*)
  13821. libsuff= shlibsuff=
  13822. ;;
  13823. *)
  13824. case $LD in # libtool.m4 will add one of these switches to LD
  13825. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13826. libsuff= shlibsuff= libmagic=32-bit;;
  13827. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13828. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13829. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13830. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13831. *) libsuff= shlibsuff= libmagic=never-match;;
  13832. esac
  13833. ;;
  13834. esac
  13835. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13836. shlibpath_overrides_runpath=no
  13837. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13838. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13839. hardcode_into_libs=yes
  13840. ;;
  13841. # No shared lib support for Linux oldld, aout, or coff.
  13842. linux*oldld* | linux*aout* | linux*coff*)
  13843. dynamic_linker=no
  13844. ;;
  13845. linux*android*)
  13846. version_type=none # Android doesn't support versioned libraries.
  13847. need_lib_prefix=no
  13848. need_version=no
  13849. library_names_spec='$libname$release$shared_ext'
  13850. soname_spec='$libname$release$shared_ext'
  13851. finish_cmds=
  13852. shlibpath_var=LD_LIBRARY_PATH
  13853. shlibpath_overrides_runpath=yes
  13854. # This implies no fast_install, which is unacceptable.
  13855. # Some rework will be needed to allow for fast_install
  13856. # before this can be enabled.
  13857. hardcode_into_libs=yes
  13858. dynamic_linker='Android linker'
  13859. # Don't embed -rpath directories since the linker doesn't support them.
  13860. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13861. ;;
  13862. # This must be glibc/ELF.
  13863. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13864. version_type=linux # correct to gnu/linux during the next big refactor
  13865. need_lib_prefix=no
  13866. need_version=no
  13867. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13868. soname_spec='$libname$release$shared_ext$major'
  13869. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13870. shlibpath_var=LD_LIBRARY_PATH
  13871. shlibpath_overrides_runpath=no
  13872. # Some binutils ld are patched to set DT_RUNPATH
  13873. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13874. $as_echo_n "(cached) " >&6
  13875. else
  13876. lt_cv_shlibpath_overrides_runpath=no
  13877. save_LDFLAGS=$LDFLAGS
  13878. save_libdir=$libdir
  13879. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13880. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13882. /* end confdefs.h. */
  13883. int
  13884. main ()
  13885. {
  13886. ;
  13887. return 0;
  13888. }
  13889. _ACEOF
  13890. if ac_fn_cxx_try_link "$LINENO"; then :
  13891. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13892. lt_cv_shlibpath_overrides_runpath=yes
  13893. fi
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext \
  13896. conftest$ac_exeext conftest.$ac_ext
  13897. LDFLAGS=$save_LDFLAGS
  13898. libdir=$save_libdir
  13899. fi
  13900. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13901. # This implies no fast_install, which is unacceptable.
  13902. # Some rework will be needed to allow for fast_install
  13903. # before this can be enabled.
  13904. hardcode_into_libs=yes
  13905. # Add ABI-specific directories to the system library path.
  13906. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13907. # Ideally, we could use ldconfig to report *all* directores which are
  13908. # searched for libraries, however this is still not possible. Aside from not
  13909. # being certain /sbin/ldconfig is available, command
  13910. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13911. # even though it is searched at run-time. Try to do the best guess by
  13912. # appending ld.so.conf contents (and includes) to the search path.
  13913. if test -f /etc/ld.so.conf; then
  13914. 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' ' '`
  13915. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13916. fi
  13917. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13918. # powerpc, because MkLinux only supported shared libraries with the
  13919. # GNU dynamic linker. Since this was broken with cross compilers,
  13920. # most powerpc-linux boxes support dynamic linking these days and
  13921. # people can always --disable-shared, the test was removed, and we
  13922. # assume the GNU/Linux dynamic linker is in use.
  13923. dynamic_linker='GNU/Linux ld.so'
  13924. ;;
  13925. netbsd*)
  13926. version_type=sunos
  13927. need_lib_prefix=no
  13928. need_version=no
  13929. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13930. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13931. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13932. dynamic_linker='NetBSD (a.out) ld.so'
  13933. else
  13934. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13935. soname_spec='$libname$release$shared_ext$major'
  13936. dynamic_linker='NetBSD ld.elf_so'
  13937. fi
  13938. shlibpath_var=LD_LIBRARY_PATH
  13939. shlibpath_overrides_runpath=yes
  13940. hardcode_into_libs=yes
  13941. ;;
  13942. newsos6)
  13943. version_type=linux # correct to gnu/linux during the next big refactor
  13944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13945. shlibpath_var=LD_LIBRARY_PATH
  13946. shlibpath_overrides_runpath=yes
  13947. ;;
  13948. *nto* | *qnx*)
  13949. version_type=qnx
  13950. need_lib_prefix=no
  13951. need_version=no
  13952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13953. soname_spec='$libname$release$shared_ext$major'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. shlibpath_overrides_runpath=no
  13956. hardcode_into_libs=yes
  13957. dynamic_linker='ldqnx.so'
  13958. ;;
  13959. openbsd* | bitrig*)
  13960. version_type=sunos
  13961. sys_lib_dlsearch_path_spec=/usr/lib
  13962. need_lib_prefix=no
  13963. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13964. need_version=no
  13965. else
  13966. need_version=yes
  13967. fi
  13968. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13970. shlibpath_var=LD_LIBRARY_PATH
  13971. shlibpath_overrides_runpath=yes
  13972. ;;
  13973. os2*)
  13974. libname_spec='$name'
  13975. shrext_cmds=.dll
  13976. need_lib_prefix=no
  13977. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13978. # SDL customization: removed versioning support.
  13979. # version_type=windows
  13980. # need_version=no
  13981. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13982. # v=$($ECHO $release$versuffix | tr -d .-);
  13983. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13984. # $ECHO $n$v`$shared_ext'
  13985. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13986. library_names_spec='${libname}_dll.$libext'
  13987. dynamic_linker='OS/2 ld.exe'
  13988. shlibpath_var=BEGINLIBPATH
  13989. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13990. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13991. postinstall_cmds='base_file=`basename \$file`~
  13992. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13993. dldir=$destdir/`dirname \$dlpath`~
  13994. test -d \$dldir || mkdir -p \$dldir~
  13995. $install_prog $dir/$dlname \$dldir/$dlname~
  13996. chmod a+x \$dldir/$dlname~
  13997. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13998. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13999. fi'
  14000. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14001. dlpath=$dir/\$dldll~
  14002. $RM \$dlpath'
  14003. ;;
  14004. osf3* | osf4* | osf5*)
  14005. version_type=osf
  14006. need_lib_prefix=no
  14007. need_version=no
  14008. soname_spec='$libname$release$shared_ext$major'
  14009. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14010. shlibpath_var=LD_LIBRARY_PATH
  14011. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14012. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14013. ;;
  14014. rdos*)
  14015. dynamic_linker=no
  14016. ;;
  14017. solaris*)
  14018. version_type=linux # correct to gnu/linux during the next big refactor
  14019. need_lib_prefix=no
  14020. need_version=no
  14021. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14022. soname_spec='$libname$release$shared_ext$major'
  14023. shlibpath_var=LD_LIBRARY_PATH
  14024. shlibpath_overrides_runpath=yes
  14025. hardcode_into_libs=yes
  14026. # ldd complains unless libraries are executable
  14027. postinstall_cmds='chmod +x $lib'
  14028. ;;
  14029. sunos4*)
  14030. version_type=sunos
  14031. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14032. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14033. shlibpath_var=LD_LIBRARY_PATH
  14034. shlibpath_overrides_runpath=yes
  14035. if test yes = "$with_gnu_ld"; then
  14036. need_lib_prefix=no
  14037. fi
  14038. need_version=yes
  14039. ;;
  14040. sysv4 | sysv4.3*)
  14041. version_type=linux # correct to gnu/linux during the next big refactor
  14042. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14043. soname_spec='$libname$release$shared_ext$major'
  14044. shlibpath_var=LD_LIBRARY_PATH
  14045. case $host_vendor in
  14046. sni)
  14047. shlibpath_overrides_runpath=no
  14048. need_lib_prefix=no
  14049. runpath_var=LD_RUN_PATH
  14050. ;;
  14051. siemens)
  14052. need_lib_prefix=no
  14053. ;;
  14054. motorola)
  14055. need_lib_prefix=no
  14056. need_version=no
  14057. shlibpath_overrides_runpath=no
  14058. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14059. ;;
  14060. esac
  14061. ;;
  14062. sysv4*MP*)
  14063. if test -d /usr/nec; then
  14064. version_type=linux # correct to gnu/linux during the next big refactor
  14065. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14066. soname_spec='$libname$shared_ext.$major'
  14067. shlibpath_var=LD_LIBRARY_PATH
  14068. fi
  14069. ;;
  14070. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14071. version_type=sco
  14072. need_lib_prefix=no
  14073. need_version=no
  14074. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14075. soname_spec='$libname$release$shared_ext$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. shlibpath_overrides_runpath=yes
  14078. hardcode_into_libs=yes
  14079. if test yes = "$with_gnu_ld"; then
  14080. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14081. else
  14082. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14083. case $host_os in
  14084. sco3.2v5*)
  14085. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14086. ;;
  14087. esac
  14088. fi
  14089. sys_lib_dlsearch_path_spec='/usr/lib'
  14090. ;;
  14091. tpf*)
  14092. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14093. version_type=linux # correct to gnu/linux during the next big refactor
  14094. need_lib_prefix=no
  14095. need_version=no
  14096. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14097. shlibpath_var=LD_LIBRARY_PATH
  14098. shlibpath_overrides_runpath=no
  14099. hardcode_into_libs=yes
  14100. ;;
  14101. uts4*)
  14102. version_type=linux # correct to gnu/linux during the next big refactor
  14103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14104. soname_spec='$libname$release$shared_ext$major'
  14105. shlibpath_var=LD_LIBRARY_PATH
  14106. ;;
  14107. *)
  14108. dynamic_linker=no
  14109. ;;
  14110. esac
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14112. $as_echo "$dynamic_linker" >&6; }
  14113. test no = "$dynamic_linker" && can_build_shared=no
  14114. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14115. if test yes = "$GCC"; then
  14116. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14117. fi
  14118. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14119. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14120. fi
  14121. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14122. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14123. fi
  14124. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14125. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14126. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14127. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14128. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14129. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14131. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14132. hardcode_action_CXX=
  14133. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14134. test -n "$runpath_var_CXX" ||
  14135. test yes = "$hardcode_automatic_CXX"; then
  14136. # We can hardcode non-existent directories.
  14137. if test no != "$hardcode_direct_CXX" &&
  14138. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14139. # have to relink, otherwise we might link with an installed library
  14140. # when we should be linking with a yet-to-be-installed one
  14141. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14142. test no != "$hardcode_minus_L_CXX"; then
  14143. # Linking always hardcodes the temporary library directory.
  14144. hardcode_action_CXX=relink
  14145. else
  14146. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14147. hardcode_action_CXX=immediate
  14148. fi
  14149. else
  14150. # We cannot hardcode anything, or else we can only hardcode existing
  14151. # directories.
  14152. hardcode_action_CXX=unsupported
  14153. fi
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14155. $as_echo "$hardcode_action_CXX" >&6; }
  14156. if test relink = "$hardcode_action_CXX" ||
  14157. test yes = "$inherit_rpath_CXX"; then
  14158. # Fast installation is not supported
  14159. enable_fast_install=no
  14160. elif test yes = "$shlibpath_overrides_runpath" ||
  14161. test no = "$enable_shared"; then
  14162. # Fast installation is not necessary
  14163. enable_fast_install=needless
  14164. fi
  14165. fi # test -n "$compiler"
  14166. CC=$lt_save_CC
  14167. CFLAGS=$lt_save_CFLAGS
  14168. LDCXX=$LD
  14169. LD=$lt_save_LD
  14170. GCC=$lt_save_GCC
  14171. with_gnu_ld=$lt_save_with_gnu_ld
  14172. lt_cv_path_LDCXX=$lt_cv_path_LD
  14173. lt_cv_path_LD=$lt_save_path_LD
  14174. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14175. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14176. fi # test yes != "$_lt_caught_CXX_error"
  14177. ac_ext=c
  14178. ac_cpp='$CPP $CPPFLAGS'
  14179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14182. # Find a good install program. We prefer a C program (faster),
  14183. # so one script is as good as another. But avoid the broken or
  14184. # incompatible versions:
  14185. # SysV /etc/install, /usr/sbin/install
  14186. # SunOS /usr/etc/install
  14187. # IRIX /sbin/install
  14188. # AIX /bin/install
  14189. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14190. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14191. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14192. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14193. # OS/2's system install, which has a completely different semantic
  14194. # ./install, which can be erroneously created by make from ./install.sh.
  14195. # Reject install programs that cannot install multiple files.
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14197. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14198. if test -z "$INSTALL"; then
  14199. if ${ac_cv_path_install+:} false; then :
  14200. $as_echo_n "(cached) " >&6
  14201. else
  14202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14203. for as_dir in $PATH
  14204. do
  14205. IFS=$as_save_IFS
  14206. test -z "$as_dir" && as_dir=.
  14207. # Account for people who put trailing slashes in PATH elements.
  14208. case $as_dir/ in #((
  14209. ./ | .// | /[cC]/* | \
  14210. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14211. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14212. /usr/ucb/* ) ;;
  14213. *)
  14214. # OSF1 and SCO ODT 3.0 have their own names for install.
  14215. # Don't use installbsd from OSF since it installs stuff as root
  14216. # by default.
  14217. for ac_prog in ginstall scoinst install; do
  14218. for ac_exec_ext in '' $ac_executable_extensions; do
  14219. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14220. if test $ac_prog = install &&
  14221. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14222. # AIX install. It has an incompatible calling convention.
  14223. :
  14224. elif test $ac_prog = install &&
  14225. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14226. # program-specific install script used by HP pwplus--don't use.
  14227. :
  14228. else
  14229. rm -rf conftest.one conftest.two conftest.dir
  14230. echo one > conftest.one
  14231. echo two > conftest.two
  14232. mkdir conftest.dir
  14233. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14234. test -s conftest.one && test -s conftest.two &&
  14235. test -s conftest.dir/conftest.one &&
  14236. test -s conftest.dir/conftest.two
  14237. then
  14238. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14239. break 3
  14240. fi
  14241. fi
  14242. fi
  14243. done
  14244. done
  14245. ;;
  14246. esac
  14247. done
  14248. IFS=$as_save_IFS
  14249. rm -rf conftest.one conftest.two conftest.dir
  14250. fi
  14251. if test "${ac_cv_path_install+set}" = set; then
  14252. INSTALL=$ac_cv_path_install
  14253. else
  14254. # As a last resort, use the slow shell script. Don't cache a
  14255. # value for INSTALL within a source directory, because that will
  14256. # break other packages using the cache if that directory is
  14257. # removed, or if the value is a relative name.
  14258. INSTALL=$ac_install_sh
  14259. fi
  14260. fi
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14262. $as_echo "$INSTALL" >&6; }
  14263. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14264. # It thinks the first close brace ends the variable substitution.
  14265. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14266. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14267. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14269. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14270. set x ${MAKE-make}
  14271. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14272. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. cat >conftest.make <<\_ACEOF
  14276. SHELL = /bin/sh
  14277. all:
  14278. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14279. _ACEOF
  14280. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14281. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14282. *@@@%%%=?*=@@@%%%*)
  14283. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14284. *)
  14285. eval ac_cv_prog_make_${ac_make}_set=no;;
  14286. esac
  14287. rm -f conftest.make
  14288. fi
  14289. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14291. $as_echo "yes" >&6; }
  14292. SET_MAKE=
  14293. else
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14295. $as_echo "no" >&6; }
  14296. SET_MAKE="MAKE=${MAKE-make}"
  14297. fi
  14298. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14299. if test -n "$ac_tool_prefix"; then
  14300. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14301. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14303. $as_echo_n "checking for $ac_word... " >&6; }
  14304. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14305. $as_echo_n "(cached) " >&6
  14306. else
  14307. case $PKG_CONFIG in
  14308. [\\/]* | ?:[\\/]*)
  14309. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14310. ;;
  14311. *)
  14312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14313. for as_dir in $PATH
  14314. do
  14315. IFS=$as_save_IFS
  14316. test -z "$as_dir" && as_dir=.
  14317. for ac_exec_ext in '' $ac_executable_extensions; do
  14318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14319. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14321. break 2
  14322. fi
  14323. done
  14324. done
  14325. IFS=$as_save_IFS
  14326. ;;
  14327. esac
  14328. fi
  14329. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14330. if test -n "$PKG_CONFIG"; then
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14332. $as_echo "$PKG_CONFIG" >&6; }
  14333. else
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14335. $as_echo "no" >&6; }
  14336. fi
  14337. fi
  14338. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14339. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14340. # Extract the first word of "pkg-config", so it can be a program name with args.
  14341. set dummy pkg-config; ac_word=$2
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14343. $as_echo_n "checking for $ac_word... " >&6; }
  14344. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14345. $as_echo_n "(cached) " >&6
  14346. else
  14347. case $ac_pt_PKG_CONFIG in
  14348. [\\/]* | ?:[\\/]*)
  14349. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14350. ;;
  14351. *)
  14352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14353. for as_dir in $PATH
  14354. do
  14355. IFS=$as_save_IFS
  14356. test -z "$as_dir" && as_dir=.
  14357. for ac_exec_ext in '' $ac_executable_extensions; do
  14358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14359. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14361. break 2
  14362. fi
  14363. done
  14364. done
  14365. IFS=$as_save_IFS
  14366. ;;
  14367. esac
  14368. fi
  14369. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14370. if test -n "$ac_pt_PKG_CONFIG"; then
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14372. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14373. else
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14375. $as_echo "no" >&6; }
  14376. fi
  14377. if test "x$ac_pt_PKG_CONFIG" = x; then
  14378. PKG_CONFIG=""
  14379. else
  14380. case $cross_compiling:$ac_tool_warned in
  14381. yes:)
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14383. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14384. ac_tool_warned=yes ;;
  14385. esac
  14386. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14387. fi
  14388. else
  14389. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14390. fi
  14391. fi
  14392. if test -n "$PKG_CONFIG"; then
  14393. _pkg_min_version=0.9.0
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14395. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14396. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14398. $as_echo "yes" >&6; }
  14399. else
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14401. $as_echo "no" >&6; }
  14402. PKG_CONFIG=""
  14403. fi
  14404. fi
  14405. case "$host" in
  14406. *-*-mingw*)
  14407. # Except on msys, where make can't handle full pathnames (bug 1972)
  14408. ;;
  14409. *)
  14410. srcdir=`cd $srcdir && pwd`
  14411. ;;
  14412. esac
  14413. INCLUDE="-I$srcdir/include"
  14414. case "$host" in
  14415. *-*-nto-qnx*)
  14416. ;;
  14417. *)
  14418. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14419. ;;
  14420. esac
  14421. case "$host" in
  14422. *-*-haiku*)
  14423. LINKER='$(CXX)'
  14424. LIBTOOLLINKERTAG='CXX'
  14425. ;;
  14426. *)
  14427. LINKER='$(CC)'
  14428. LIBTOOLLINKERTAG='CC'
  14429. ;;
  14430. esac
  14431. if test x$srcdir != x.; then
  14432. INCLUDE="-Iinclude $INCLUDE"
  14433. elif test -d .git; then
  14434. as_fn_error $? "
  14435. *** When building from a git clone you should configure and build in a
  14436. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14437. " "$LINENO" 5
  14438. fi
  14439. BASE_CFLAGS=""
  14440. BASE_LDFLAGS=""
  14441. case "$host" in
  14442. *-*-cygwin*)
  14443. # We build SDL on cygwin without the UNIX emulation layer
  14444. save_CFLAGS="$CFLAGS"
  14445. have_no_cygwin=no
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14447. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14448. CFLAGS="$save_CFLAGS -mno-cygwin"
  14449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14450. /* end confdefs.h. */
  14451. int
  14452. main ()
  14453. {
  14454. ;
  14455. return 0;
  14456. }
  14457. _ACEOF
  14458. if ac_fn_c_try_compile "$LINENO"; then :
  14459. have_no_cygwin=yes
  14460. fi
  14461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14463. $as_echo "$have_no_cygwin" >&6; }
  14464. CFLAGS="$save_CFLAGS"
  14465. if test x$have_no_cygwin = xyes; then
  14466. BASE_CFLAGS="-mno-cygwin"
  14467. BASE_LDFLAGS="-mno-cygwin"
  14468. fi
  14469. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14470. ;;
  14471. esac
  14472. # Uncomment the following line if you want to force SDL and applications
  14473. # built with it to be compiled for a particular architecture.
  14474. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14475. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14476. # The default optimization for SDL is -O3 (Bug #31)
  14477. if test "x$orig_CFLAGS" = x; then
  14478. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14479. fi
  14480. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14481. BUILD_LDFLAGS="$LDFLAGS"
  14482. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14483. ## These are common directories to find software packages
  14484. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14485. # if test -d $path/include; then
  14486. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14487. # fi
  14488. # if test -d $path/lib; then
  14489. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14490. # fi
  14491. #done
  14492. SDL_CFLAGS="$BASE_CFLAGS"
  14493. SDL_LIBS="-lSDL2"
  14494. if test "x$BASE_LDFLAGS" != x; then
  14495. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14496. fi
  14497. if test "x$EXTRA_CFLAGS" != x; then
  14498. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14499. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14500. fi
  14501. if test "x$EXTRA_LDFLAGS" != x; then
  14502. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14503. fi
  14504. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14505. find_lib()
  14506. {
  14507. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14508. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14509. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14510. if test "$cross_compiling" = yes; then
  14511. host_lib_path=""
  14512. else
  14513. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14514. fi
  14515. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14516. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14517. if test x$lib != x; then
  14518. echo $lib
  14519. return
  14520. fi
  14521. done
  14522. # Try again, this time allowing more than one version digit after the .so
  14523. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14524. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14525. if test x$lib != x; then
  14526. echo $lib
  14527. return
  14528. fi
  14529. done
  14530. }
  14531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14532. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14533. if ${ac_cv_c_const+:} false; then :
  14534. $as_echo_n "(cached) " >&6
  14535. else
  14536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14537. /* end confdefs.h. */
  14538. int
  14539. main ()
  14540. {
  14541. #ifndef __cplusplus
  14542. /* Ultrix mips cc rejects this sort of thing. */
  14543. typedef int charset[2];
  14544. const charset cs = { 0, 0 };
  14545. /* SunOS 4.1.1 cc rejects this. */
  14546. char const *const *pcpcc;
  14547. char **ppc;
  14548. /* NEC SVR4.0.2 mips cc rejects this. */
  14549. struct point {int x, y;};
  14550. static struct point const zero = {0,0};
  14551. /* AIX XL C 1.02.0.0 rejects this.
  14552. It does not let you subtract one const X* pointer from another in
  14553. an arm of an if-expression whose if-part is not a constant
  14554. expression */
  14555. const char *g = "string";
  14556. pcpcc = &g + (g ? g-g : 0);
  14557. /* HPUX 7.0 cc rejects these. */
  14558. ++pcpcc;
  14559. ppc = (char**) pcpcc;
  14560. pcpcc = (char const *const *) ppc;
  14561. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14562. char tx;
  14563. char *t = &tx;
  14564. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14565. *t++ = 0;
  14566. if (s) return 0;
  14567. }
  14568. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14569. int x[] = {25, 17};
  14570. const int *foo = &x[0];
  14571. ++foo;
  14572. }
  14573. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14574. typedef const int *iptr;
  14575. iptr p = 0;
  14576. ++p;
  14577. }
  14578. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14579. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14580. struct s { int j; const int *ap[3]; } bx;
  14581. struct s *b = &bx; b->j = 5;
  14582. }
  14583. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14584. const int foo = 10;
  14585. if (!foo) return 0;
  14586. }
  14587. return !cs[0] && !zero.x;
  14588. #endif
  14589. ;
  14590. return 0;
  14591. }
  14592. _ACEOF
  14593. if ac_fn_c_try_compile "$LINENO"; then :
  14594. ac_cv_c_const=yes
  14595. else
  14596. ac_cv_c_const=no
  14597. fi
  14598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14599. fi
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14601. $as_echo "$ac_cv_c_const" >&6; }
  14602. if test $ac_cv_c_const = no; then
  14603. $as_echo "#define const /**/" >>confdefs.h
  14604. fi
  14605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14606. $as_echo_n "checking for inline... " >&6; }
  14607. if ${ac_cv_c_inline+:} false; then :
  14608. $as_echo_n "(cached) " >&6
  14609. else
  14610. ac_cv_c_inline=no
  14611. for ac_kw in inline __inline__ __inline; do
  14612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14613. /* end confdefs.h. */
  14614. #ifndef __cplusplus
  14615. typedef int foo_t;
  14616. static $ac_kw foo_t static_foo () {return 0; }
  14617. $ac_kw foo_t foo () {return 0; }
  14618. #endif
  14619. _ACEOF
  14620. if ac_fn_c_try_compile "$LINENO"; then :
  14621. ac_cv_c_inline=$ac_kw
  14622. fi
  14623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14624. test "$ac_cv_c_inline" != no && break
  14625. done
  14626. fi
  14627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14628. $as_echo "$ac_cv_c_inline" >&6; }
  14629. case $ac_cv_c_inline in
  14630. inline | yes) ;;
  14631. *)
  14632. case $ac_cv_c_inline in
  14633. no) ac_val=;;
  14634. *) ac_val=$ac_cv_c_inline;;
  14635. esac
  14636. cat >>confdefs.h <<_ACEOF
  14637. #ifndef __cplusplus
  14638. #define inline $ac_val
  14639. #endif
  14640. _ACEOF
  14641. ;;
  14642. esac
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14644. $as_echo_n "checking for working volatile... " >&6; }
  14645. if ${ac_cv_c_volatile+:} false; then :
  14646. $as_echo_n "(cached) " >&6
  14647. else
  14648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14649. /* end confdefs.h. */
  14650. int
  14651. main ()
  14652. {
  14653. volatile int x;
  14654. int * volatile y = (int *) 0;
  14655. return !x && !y;
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. if ac_fn_c_try_compile "$LINENO"; then :
  14661. ac_cv_c_volatile=yes
  14662. else
  14663. ac_cv_c_volatile=no
  14664. fi
  14665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14666. fi
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14668. $as_echo "$ac_cv_c_volatile" >&6; }
  14669. if test $ac_cv_c_volatile = no; then
  14670. $as_echo "#define volatile /**/" >>confdefs.h
  14671. fi
  14672. # Check whether --enable-assertions was given.
  14673. if test "${enable_assertions+set}" = set; then :
  14674. enableval=$enable_assertions;
  14675. else
  14676. enable_assertions=auto
  14677. fi
  14678. case "$enable_assertions" in
  14679. auto) # Use optimization settings to determine assertion level
  14680. ;;
  14681. disabled)
  14682. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14683. ;;
  14684. release)
  14685. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14686. ;;
  14687. enabled)
  14688. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14689. ;;
  14690. paranoid)
  14691. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14692. ;;
  14693. *)
  14694. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14695. ;;
  14696. esac
  14697. # Check whether --enable-dependency-tracking was given.
  14698. if test "${enable_dependency_tracking+set}" = set; then :
  14699. enableval=$enable_dependency_tracking;
  14700. else
  14701. enable_dependency_tracking=yes
  14702. fi
  14703. if test x$enable_dependency_tracking = xyes; then
  14704. have_gcc_mmd_mt=no
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14706. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14708. /* end confdefs.h. */
  14709. #if !defined(__GNUC__) || __GNUC__ < 3
  14710. #error Dependency tracking requires GCC 3.0 or newer
  14711. #endif
  14712. int
  14713. main ()
  14714. {
  14715. ;
  14716. return 0;
  14717. }
  14718. _ACEOF
  14719. if ac_fn_c_try_compile "$LINENO"; then :
  14720. have_gcc_mmd_mt=yes
  14721. fi
  14722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14724. $as_echo "$have_gcc_mmd_mt" >&6; }
  14725. if test x$have_gcc_mmd_mt = xyes; then
  14726. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14727. fi
  14728. fi
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14730. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14731. have_no_undefined=no
  14732. case "$host" in
  14733. *-*-openbsd*)
  14734. ;;
  14735. *)
  14736. save_LDFLAGS="$LDFLAGS"
  14737. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14739. /* end confdefs.h. */
  14740. int
  14741. main ()
  14742. {
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. if ac_fn_c_try_link "$LINENO"; then :
  14748. have_no_undefined=yes
  14749. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14750. fi
  14751. rm -f core conftest.err conftest.$ac_objext \
  14752. conftest$ac_exeext conftest.$ac_ext
  14753. LDFLAGS="$save_LDFLAGS"
  14754. ;;
  14755. esac
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14757. $as_echo "$have_no_undefined" >&6; }
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14759. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14760. have_dynamicbase=no
  14761. case "$host" in
  14762. *)
  14763. save_LDFLAGS="$LDFLAGS"
  14764. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14766. /* end confdefs.h. */
  14767. int
  14768. main ()
  14769. {
  14770. ;
  14771. return 0;
  14772. }
  14773. _ACEOF
  14774. if ac_fn_c_try_link "$LINENO"; then :
  14775. have_dynamicbase=yes
  14776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14777. fi
  14778. rm -f core conftest.err conftest.$ac_objext \
  14779. conftest$ac_exeext conftest.$ac_ext
  14780. LDFLAGS="$save_LDFLAGS"
  14781. ;;
  14782. esac
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14784. $as_echo "$have_dynamicbase" >&6; }
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14786. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14787. have_nxcompat=no
  14788. case "$host" in
  14789. *)
  14790. save_LDFLAGS="$LDFLAGS"
  14791. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. int
  14795. main ()
  14796. {
  14797. ;
  14798. return 0;
  14799. }
  14800. _ACEOF
  14801. if ac_fn_c_try_link "$LINENO"; then :
  14802. have_nxcompat=yes
  14803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14804. fi
  14805. rm -f core conftest.err conftest.$ac_objext \
  14806. conftest$ac_exeext conftest.$ac_ext
  14807. LDFLAGS="$save_LDFLAGS"
  14808. ;;
  14809. esac
  14810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14811. $as_echo "$have_nxcompat" >&6; }
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14813. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14814. have_high_entropy_va=no
  14815. case "$host" in
  14816. *)
  14817. save_LDFLAGS="$LDFLAGS"
  14818. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14820. /* end confdefs.h. */
  14821. int
  14822. main ()
  14823. {
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. if ac_fn_c_try_link "$LINENO"; then :
  14829. have_high_entropy_va=yes
  14830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14831. fi
  14832. rm -f core conftest.err conftest.$ac_objext \
  14833. conftest$ac_exeext conftest.$ac_ext
  14834. LDFLAGS="$save_LDFLAGS"
  14835. ;;
  14836. esac
  14837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14838. $as_echo "$have_high_entropy_va" >&6; }
  14839. # Check whether --enable-libc was given.
  14840. if test "${enable_libc+set}" = set; then :
  14841. enableval=$enable_libc;
  14842. else
  14843. enable_libc=yes
  14844. fi
  14845. if test x$enable_libc = xyes; then
  14846. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14848. $as_echo_n "checking for ANSI C header files... " >&6; }
  14849. if ${ac_cv_header_stdc+:} false; then :
  14850. $as_echo_n "(cached) " >&6
  14851. else
  14852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14853. /* end confdefs.h. */
  14854. #include <stdlib.h>
  14855. #include <stdarg.h>
  14856. #include <string.h>
  14857. #include <float.h>
  14858. int
  14859. main ()
  14860. {
  14861. ;
  14862. return 0;
  14863. }
  14864. _ACEOF
  14865. if ac_fn_c_try_compile "$LINENO"; then :
  14866. ac_cv_header_stdc=yes
  14867. else
  14868. ac_cv_header_stdc=no
  14869. fi
  14870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14871. if test $ac_cv_header_stdc = yes; then
  14872. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. #include <string.h>
  14876. _ACEOF
  14877. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14878. $EGREP "memchr" >/dev/null 2>&1; then :
  14879. else
  14880. ac_cv_header_stdc=no
  14881. fi
  14882. rm -f conftest*
  14883. fi
  14884. if test $ac_cv_header_stdc = yes; then
  14885. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14887. /* end confdefs.h. */
  14888. #include <stdlib.h>
  14889. _ACEOF
  14890. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14891. $EGREP "free" >/dev/null 2>&1; then :
  14892. else
  14893. ac_cv_header_stdc=no
  14894. fi
  14895. rm -f conftest*
  14896. fi
  14897. if test $ac_cv_header_stdc = yes; then
  14898. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14899. if test "$cross_compiling" = yes; then :
  14900. :
  14901. else
  14902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14903. /* end confdefs.h. */
  14904. #include <ctype.h>
  14905. #include <stdlib.h>
  14906. #if ((' ' & 0x0FF) == 0x020)
  14907. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14908. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14909. #else
  14910. # define ISLOWER(c) \
  14911. (('a' <= (c) && (c) <= 'i') \
  14912. || ('j' <= (c) && (c) <= 'r') \
  14913. || ('s' <= (c) && (c) <= 'z'))
  14914. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14915. #endif
  14916. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14917. int
  14918. main ()
  14919. {
  14920. int i;
  14921. for (i = 0; i < 256; i++)
  14922. if (XOR (islower (i), ISLOWER (i))
  14923. || toupper (i) != TOUPPER (i))
  14924. return 2;
  14925. return 0;
  14926. }
  14927. _ACEOF
  14928. if ac_fn_c_try_run "$LINENO"; then :
  14929. else
  14930. ac_cv_header_stdc=no
  14931. fi
  14932. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14933. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14934. fi
  14935. fi
  14936. fi
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14938. $as_echo "$ac_cv_header_stdc" >&6; }
  14939. if test $ac_cv_header_stdc = yes; then
  14940. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14941. fi
  14942. 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
  14943. do :
  14944. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14945. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14946. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14947. cat >>confdefs.h <<_ACEOF
  14948. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14949. _ACEOF
  14950. fi
  14951. done
  14952. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14953. if test "x$ac_cv_type_size_t" = xyes; then :
  14954. else
  14955. cat >>confdefs.h <<_ACEOF
  14956. #define size_t unsigned int
  14957. _ACEOF
  14958. fi
  14959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14960. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14961. if ${ac_cv_define_M_PI+:} false; then :
  14962. $as_echo_n "(cached) " >&6
  14963. else
  14964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14965. /* end confdefs.h. */
  14966. #include <math.h>
  14967. #ifdef M_PI
  14968. YES_IS_DEFINED
  14969. #endif
  14970. _ACEOF
  14971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14972. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14973. ac_cv_define_M_PI=yes
  14974. else
  14975. ac_cv_define_M_PI=no
  14976. fi
  14977. rm -f conftest*
  14978. fi
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14980. $as_echo "$ac_cv_define_M_PI" >&6; }
  14981. if test "$ac_cv_define_M_PI" = "yes" ; then
  14982. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14983. fi
  14984. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14985. # for constant arguments. Useless!
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14987. $as_echo_n "checking for working alloca.h... " >&6; }
  14988. if ${ac_cv_working_alloca_h+:} false; then :
  14989. $as_echo_n "(cached) " >&6
  14990. else
  14991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14992. /* end confdefs.h. */
  14993. #include <alloca.h>
  14994. int
  14995. main ()
  14996. {
  14997. char *p = (char *) alloca (2 * sizeof (int));
  14998. if (p) return 0;
  14999. ;
  15000. return 0;
  15001. }
  15002. _ACEOF
  15003. if ac_fn_c_try_link "$LINENO"; then :
  15004. ac_cv_working_alloca_h=yes
  15005. else
  15006. ac_cv_working_alloca_h=no
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext \
  15009. conftest$ac_exeext conftest.$ac_ext
  15010. fi
  15011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15012. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15013. if test $ac_cv_working_alloca_h = yes; then
  15014. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15015. fi
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15017. $as_echo_n "checking for alloca... " >&6; }
  15018. if ${ac_cv_func_alloca_works+:} false; then :
  15019. $as_echo_n "(cached) " >&6
  15020. else
  15021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15022. /* end confdefs.h. */
  15023. #ifdef __GNUC__
  15024. # define alloca __builtin_alloca
  15025. #else
  15026. # ifdef _MSC_VER
  15027. # include <malloc.h>
  15028. # define alloca _alloca
  15029. # else
  15030. # ifdef HAVE_ALLOCA_H
  15031. # include <alloca.h>
  15032. # else
  15033. # ifdef _AIX
  15034. #pragma alloca
  15035. # else
  15036. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15037. void *alloca (size_t);
  15038. # endif
  15039. # endif
  15040. # endif
  15041. # endif
  15042. #endif
  15043. int
  15044. main ()
  15045. {
  15046. char *p = (char *) alloca (1);
  15047. if (p) return 0;
  15048. ;
  15049. return 0;
  15050. }
  15051. _ACEOF
  15052. if ac_fn_c_try_link "$LINENO"; then :
  15053. ac_cv_func_alloca_works=yes
  15054. else
  15055. ac_cv_func_alloca_works=no
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext \
  15058. conftest$ac_exeext conftest.$ac_ext
  15059. fi
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15061. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15062. if test $ac_cv_func_alloca_works = yes; then
  15063. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15064. else
  15065. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15066. # that cause trouble. Some versions do not even contain alloca or
  15067. # contain a buggy version. If you still want to use their alloca,
  15068. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15069. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15070. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15072. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15073. if ${ac_cv_os_cray+:} false; then :
  15074. $as_echo_n "(cached) " >&6
  15075. else
  15076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15077. /* end confdefs.h. */
  15078. #if defined CRAY && ! defined CRAY2
  15079. webecray
  15080. #else
  15081. wenotbecray
  15082. #endif
  15083. _ACEOF
  15084. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15085. $EGREP "webecray" >/dev/null 2>&1; then :
  15086. ac_cv_os_cray=yes
  15087. else
  15088. ac_cv_os_cray=no
  15089. fi
  15090. rm -f conftest*
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15093. $as_echo "$ac_cv_os_cray" >&6; }
  15094. if test $ac_cv_os_cray = yes; then
  15095. for ac_func in _getb67 GETB67 getb67; do
  15096. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15097. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15098. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15099. cat >>confdefs.h <<_ACEOF
  15100. #define CRAY_STACKSEG_END $ac_func
  15101. _ACEOF
  15102. break
  15103. fi
  15104. done
  15105. fi
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15107. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15108. if ${ac_cv_c_stack_direction+:} false; then :
  15109. $as_echo_n "(cached) " >&6
  15110. else
  15111. if test "$cross_compiling" = yes; then :
  15112. ac_cv_c_stack_direction=0
  15113. else
  15114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15115. /* end confdefs.h. */
  15116. $ac_includes_default
  15117. int
  15118. find_stack_direction (int *addr, int depth)
  15119. {
  15120. int dir, dummy = 0;
  15121. if (! addr)
  15122. addr = &dummy;
  15123. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15124. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15125. return dir + dummy;
  15126. }
  15127. int
  15128. main (int argc, char **argv)
  15129. {
  15130. return find_stack_direction (0, argc + !argv + 20) < 0;
  15131. }
  15132. _ACEOF
  15133. if ac_fn_c_try_run "$LINENO"; then :
  15134. ac_cv_c_stack_direction=1
  15135. else
  15136. ac_cv_c_stack_direction=-1
  15137. fi
  15138. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15139. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15140. fi
  15141. fi
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15143. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15144. cat >>confdefs.h <<_ACEOF
  15145. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15146. _ACEOF
  15147. fi
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15149. $as_echo_n "checking for working memcmp... " >&6; }
  15150. if ${ac_cv_func_memcmp_working+:} false; then :
  15151. $as_echo_n "(cached) " >&6
  15152. else
  15153. if test "$cross_compiling" = yes; then :
  15154. ac_cv_func_memcmp_working=no
  15155. else
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. $ac_includes_default
  15159. int
  15160. main ()
  15161. {
  15162. /* Some versions of memcmp are not 8-bit clean. */
  15163. char c0 = '\100', c1 = '\200', c2 = '\201';
  15164. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15165. return 1;
  15166. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15167. or more and with at least one buffer not starting on a 4-byte boundary.
  15168. William Lewis provided this test program. */
  15169. {
  15170. char foo[21];
  15171. char bar[21];
  15172. int i;
  15173. for (i = 0; i < 4; i++)
  15174. {
  15175. char *a = foo + i;
  15176. char *b = bar + i;
  15177. strcpy (a, "--------01111111");
  15178. strcpy (b, "--------10000000");
  15179. if (memcmp (a, b, 16) >= 0)
  15180. return 1;
  15181. }
  15182. return 0;
  15183. }
  15184. ;
  15185. return 0;
  15186. }
  15187. _ACEOF
  15188. if ac_fn_c_try_run "$LINENO"; then :
  15189. ac_cv_func_memcmp_working=yes
  15190. else
  15191. ac_cv_func_memcmp_working=no
  15192. fi
  15193. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15194. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15195. fi
  15196. fi
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15198. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15199. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15200. *" memcmp.$ac_objext "* ) ;;
  15201. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15202. ;;
  15203. esac
  15204. if test x$ac_cv_func_memcmp_working = xyes; then
  15205. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15206. fi
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15208. $as_echo_n "checking for working strtod... " >&6; }
  15209. if ${ac_cv_func_strtod+:} false; then :
  15210. $as_echo_n "(cached) " >&6
  15211. else
  15212. if test "$cross_compiling" = yes; then :
  15213. ac_cv_func_strtod=no
  15214. else
  15215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15216. /* end confdefs.h. */
  15217. $ac_includes_default
  15218. #ifndef strtod
  15219. double strtod ();
  15220. #endif
  15221. int
  15222. main()
  15223. {
  15224. {
  15225. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15226. char *string = " +69";
  15227. char *term;
  15228. double value;
  15229. value = strtod (string, &term);
  15230. if (value != 69 || term != (string + 4))
  15231. return 1;
  15232. }
  15233. {
  15234. /* Under Solaris 2.4, strtod returns the wrong value for the
  15235. terminating character under some conditions. */
  15236. char *string = "NaN";
  15237. char *term;
  15238. strtod (string, &term);
  15239. if (term != string && *(term - 1) == 0)
  15240. return 1;
  15241. }
  15242. return 0;
  15243. }
  15244. _ACEOF
  15245. if ac_fn_c_try_run "$LINENO"; then :
  15246. ac_cv_func_strtod=yes
  15247. else
  15248. ac_cv_func_strtod=no
  15249. fi
  15250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15251. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15252. fi
  15253. fi
  15254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15255. $as_echo "$ac_cv_func_strtod" >&6; }
  15256. if test $ac_cv_func_strtod = no; then
  15257. case " $LIBOBJS " in
  15258. *" strtod.$ac_objext "* ) ;;
  15259. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15260. ;;
  15261. esac
  15262. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15263. if test "x$ac_cv_func_pow" = xyes; then :
  15264. fi
  15265. if test $ac_cv_func_pow = no; then
  15266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15267. $as_echo_n "checking for pow in -lm... " >&6; }
  15268. if ${ac_cv_lib_m_pow+:} false; then :
  15269. $as_echo_n "(cached) " >&6
  15270. else
  15271. ac_check_lib_save_LIBS=$LIBS
  15272. LIBS="-lm $LIBS"
  15273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15274. /* end confdefs.h. */
  15275. /* Override any GCC internal prototype to avoid an error.
  15276. Use char because int might match the return type of a GCC
  15277. builtin and then its argument prototype would still apply. */
  15278. #ifdef __cplusplus
  15279. extern "C"
  15280. #endif
  15281. char pow ();
  15282. int
  15283. main ()
  15284. {
  15285. return pow ();
  15286. ;
  15287. return 0;
  15288. }
  15289. _ACEOF
  15290. if ac_fn_c_try_link "$LINENO"; then :
  15291. ac_cv_lib_m_pow=yes
  15292. else
  15293. ac_cv_lib_m_pow=no
  15294. fi
  15295. rm -f core conftest.err conftest.$ac_objext \
  15296. conftest$ac_exeext conftest.$ac_ext
  15297. LIBS=$ac_check_lib_save_LIBS
  15298. fi
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15300. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15301. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15302. POW_LIB=-lm
  15303. else
  15304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15305. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15306. fi
  15307. fi
  15308. fi
  15309. if test x$ac_cv_func_strtod = xyes; then
  15310. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15311. fi
  15312. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15313. if test "x$ac_cv_func_mprotect" = xyes; then :
  15314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15315. /* end confdefs.h. */
  15316. #include <sys/types.h>
  15317. #include <sys/mman.h>
  15318. int
  15319. main ()
  15320. {
  15321. ;
  15322. return 0;
  15323. }
  15324. _ACEOF
  15325. if ac_fn_c_try_compile "$LINENO"; then :
  15326. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15327. fi
  15328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15329. fi
  15330. 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
  15331. do :
  15332. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15333. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15334. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15335. cat >>confdefs.h <<_ACEOF
  15336. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15337. _ACEOF
  15338. fi
  15339. done
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15341. $as_echo_n "checking for pow in -lm... " >&6; }
  15342. if ${ac_cv_lib_m_pow+:} false; then :
  15343. $as_echo_n "(cached) " >&6
  15344. else
  15345. ac_check_lib_save_LIBS=$LIBS
  15346. LIBS="-lm $LIBS"
  15347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15348. /* end confdefs.h. */
  15349. /* Override any GCC internal prototype to avoid an error.
  15350. Use char because int might match the return type of a GCC
  15351. builtin and then its argument prototype would still apply. */
  15352. #ifdef __cplusplus
  15353. extern "C"
  15354. #endif
  15355. char pow ();
  15356. int
  15357. main ()
  15358. {
  15359. return pow ();
  15360. ;
  15361. return 0;
  15362. }
  15363. _ACEOF
  15364. if ac_fn_c_try_link "$LINENO"; then :
  15365. ac_cv_lib_m_pow=yes
  15366. else
  15367. ac_cv_lib_m_pow=no
  15368. fi
  15369. rm -f core conftest.err conftest.$ac_objext \
  15370. conftest$ac_exeext conftest.$ac_ext
  15371. LIBS=$ac_check_lib_save_LIBS
  15372. fi
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15374. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15375. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15376. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15377. fi
  15378. 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
  15379. do :
  15380. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15381. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15382. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15383. cat >>confdefs.h <<_ACEOF
  15384. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15385. _ACEOF
  15386. fi
  15387. done
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15389. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15390. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15391. $as_echo_n "(cached) " >&6
  15392. else
  15393. ac_check_lib_save_LIBS=$LIBS
  15394. LIBS="-liconv $LIBS"
  15395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15396. /* end confdefs.h. */
  15397. /* Override any GCC internal prototype to avoid an error.
  15398. Use char because int might match the return type of a GCC
  15399. builtin and then its argument prototype would still apply. */
  15400. #ifdef __cplusplus
  15401. extern "C"
  15402. #endif
  15403. char iconv_open ();
  15404. int
  15405. main ()
  15406. {
  15407. return iconv_open ();
  15408. ;
  15409. return 0;
  15410. }
  15411. _ACEOF
  15412. if ac_fn_c_try_link "$LINENO"; then :
  15413. ac_cv_lib_iconv_iconv_open=yes
  15414. else
  15415. ac_cv_lib_iconv_iconv_open=no
  15416. fi
  15417. rm -f core conftest.err conftest.$ac_objext \
  15418. conftest$ac_exeext conftest.$ac_ext
  15419. LIBS=$ac_check_lib_save_LIBS
  15420. fi
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15422. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15423. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15424. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15425. fi
  15426. for ac_func in iconv
  15427. do :
  15428. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15429. if test "x$ac_cv_func_iconv" = xyes; then :
  15430. cat >>confdefs.h <<_ACEOF
  15431. #define HAVE_ICONV 1
  15432. _ACEOF
  15433. fi
  15434. done
  15435. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15436. "
  15437. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15438. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15439. fi
  15440. for ac_header in libunwind.h
  15441. do :
  15442. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15443. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15444. cat >>confdefs.h <<_ACEOF
  15445. #define HAVE_LIBUNWIND_H 1
  15446. _ACEOF
  15447. fi
  15448. done
  15449. fi
  15450. # Check whether --enable-gcc-atomics was given.
  15451. if test "${enable_gcc_atomics+set}" = set; then :
  15452. enableval=$enable_gcc_atomics;
  15453. else
  15454. enable_gcc_atomics=yes
  15455. fi
  15456. if test x$enable_gcc_atomics = xyes; then
  15457. have_gcc_atomics=no
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15459. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15461. /* end confdefs.h. */
  15462. int
  15463. main ()
  15464. {
  15465. int a;
  15466. void *x, *y, *z;
  15467. __sync_lock_test_and_set(&a, 4);
  15468. __sync_lock_test_and_set(&x, y);
  15469. __sync_fetch_and_add(&a, 1);
  15470. __sync_bool_compare_and_swap(&a, 5, 10);
  15471. __sync_bool_compare_and_swap(&x, y, z);
  15472. ;
  15473. return 0;
  15474. }
  15475. _ACEOF
  15476. if ac_fn_c_try_link "$LINENO"; then :
  15477. have_gcc_atomics=yes
  15478. fi
  15479. rm -f core conftest.err conftest.$ac_objext \
  15480. conftest$ac_exeext conftest.$ac_ext
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15482. $as_echo "$have_gcc_atomics" >&6; }
  15483. if test x$have_gcc_atomics = xyes; then
  15484. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15485. else
  15486. # See if we have the minimum operation needed for GCC atomics
  15487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15488. /* end confdefs.h. */
  15489. int
  15490. main ()
  15491. {
  15492. int a;
  15493. __sync_lock_test_and_set(&a, 1);
  15494. __sync_lock_release(&a);
  15495. ;
  15496. return 0;
  15497. }
  15498. _ACEOF
  15499. if ac_fn_c_try_link "$LINENO"; then :
  15500. have_gcc_sync_lock_test_and_set=yes
  15501. fi
  15502. rm -f core conftest.err conftest.$ac_objext \
  15503. conftest$ac_exeext conftest.$ac_ext
  15504. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15505. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15506. fi
  15507. fi
  15508. fi
  15509. # Standard C sources
  15510. SOURCES="$SOURCES $srcdir/src/*.c"
  15511. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15512. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15513. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15514. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15523. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15525. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15527. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15533. # Check whether --enable-atomic was given.
  15534. if test "${enable_atomic+set}" = set; then :
  15535. enableval=$enable_atomic;
  15536. else
  15537. enable_atomic=yes
  15538. fi
  15539. if test x$enable_atomic != xyes; then
  15540. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15541. else
  15542. SUMMARY_modules="${SUMMARY_modules} atomic"
  15543. fi
  15544. # Check whether --enable-audio was given.
  15545. if test "${enable_audio+set}" = set; then :
  15546. enableval=$enable_audio;
  15547. else
  15548. enable_audio=yes
  15549. fi
  15550. if test x$enable_audio != xyes; then
  15551. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15552. else
  15553. SUMMARY_modules="${SUMMARY_modules} audio"
  15554. fi
  15555. # Check whether --enable-video was given.
  15556. if test "${enable_video+set}" = set; then :
  15557. enableval=$enable_video;
  15558. else
  15559. enable_video=yes
  15560. fi
  15561. if test x$enable_video != xyes; then
  15562. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15563. else
  15564. SUMMARY_modules="${SUMMARY_modules} video"
  15565. fi
  15566. # Check whether --enable-render was given.
  15567. if test "${enable_render+set}" = set; then :
  15568. enableval=$enable_render;
  15569. else
  15570. enable_render=yes
  15571. fi
  15572. if test x$enable_render != xyes; then
  15573. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15574. else
  15575. SUMMARY_modules="${SUMMARY_modules} render"
  15576. fi
  15577. # Check whether --enable-events was given.
  15578. if test "${enable_events+set}" = set; then :
  15579. enableval=$enable_events;
  15580. else
  15581. enable_events=yes
  15582. fi
  15583. if test x$enable_events != xyes; then
  15584. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15585. else
  15586. SUMMARY_modules="${SUMMARY_modules} events"
  15587. fi
  15588. # Check whether --enable-joystick was given.
  15589. if test "${enable_joystick+set}" = set; then :
  15590. enableval=$enable_joystick;
  15591. else
  15592. enable_joystick=yes
  15593. fi
  15594. if test x$enable_joystick != xyes; then
  15595. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15596. else
  15597. SUMMARY_modules="${SUMMARY_modules} joystick"
  15598. fi
  15599. # Check whether --enable-haptic was given.
  15600. if test "${enable_haptic+set}" = set; then :
  15601. enableval=$enable_haptic;
  15602. else
  15603. enable_haptic=yes
  15604. fi
  15605. if test x$enable_haptic != xyes; then
  15606. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15607. else
  15608. SUMMARY_modules="${SUMMARY_modules} haptic"
  15609. fi
  15610. # Check whether --enable-hidapi was given.
  15611. if test "${enable_hidapi+set}" = set; then :
  15612. enableval=$enable_hidapi;
  15613. else
  15614. enable_hidapi=yes
  15615. fi
  15616. if test x$enable_hidapi != xyes; then
  15617. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15618. else
  15619. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15620. fi
  15621. # Check whether --enable-sensor was given.
  15622. if test "${enable_sensor+set}" = set; then :
  15623. enableval=$enable_sensor;
  15624. else
  15625. enable_sensor=yes
  15626. fi
  15627. if test x$enable_sensor != xyes; then
  15628. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15629. else
  15630. SUMMARY_modules="${SUMMARY_modules} sensor"
  15631. fi
  15632. # Check whether --enable-power was given.
  15633. if test "${enable_power+set}" = set; then :
  15634. enableval=$enable_power;
  15635. else
  15636. enable_power=yes
  15637. fi
  15638. if test x$enable_power != xyes; then
  15639. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15640. else
  15641. SUMMARY_modules="${SUMMARY_modules} power"
  15642. fi
  15643. # Check whether --enable-filesystem was given.
  15644. if test "${enable_filesystem+set}" = set; then :
  15645. enableval=$enable_filesystem;
  15646. else
  15647. enable_filesystem=yes
  15648. fi
  15649. if test x$enable_filesystem != xyes; then
  15650. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15651. else
  15652. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15653. fi
  15654. # Check whether --enable-misc was given.
  15655. if test "${enable_misc+set}" = set; then :
  15656. enableval=$enable_misc;
  15657. else
  15658. enable_misc=yes
  15659. fi
  15660. if test x$enable_misc != xyes; then
  15661. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15662. else
  15663. SUMMARY_modules="${SUMMARY_modules} misc"
  15664. fi
  15665. # Check whether --enable-threads was given.
  15666. if test "${enable_threads+set}" = set; then :
  15667. enableval=$enable_threads;
  15668. else
  15669. enable_threads=yes
  15670. fi
  15671. if test x$enable_threads != xyes; then
  15672. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15673. else
  15674. SUMMARY_modules="${SUMMARY_modules} threads"
  15675. fi
  15676. # Check whether --enable-timers was given.
  15677. if test "${enable_timers+set}" = set; then :
  15678. enableval=$enable_timers;
  15679. else
  15680. enable_timers=yes
  15681. fi
  15682. if test x$enable_timers != xyes; then
  15683. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15684. else
  15685. SUMMARY_modules="${SUMMARY_modules} timers"
  15686. fi
  15687. # Check whether --enable-file was given.
  15688. if test "${enable_file+set}" = set; then :
  15689. enableval=$enable_file;
  15690. else
  15691. enable_file=yes
  15692. fi
  15693. if test x$enable_file != xyes; then
  15694. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15695. else
  15696. SUMMARY_modules="${SUMMARY_modules} file"
  15697. fi
  15698. # Check whether --enable-loadso was given.
  15699. if test "${enable_loadso+set}" = set; then :
  15700. enableval=$enable_loadso;
  15701. else
  15702. enable_loadso=yes
  15703. fi
  15704. if test x$enable_loadso != xyes; then
  15705. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15706. else
  15707. SUMMARY_modules="${SUMMARY_modules} loadso"
  15708. fi
  15709. # Check whether --enable-cpuinfo was given.
  15710. if test "${enable_cpuinfo+set}" = set; then :
  15711. enableval=$enable_cpuinfo;
  15712. else
  15713. enable_cpuinfo=yes
  15714. fi
  15715. if test x$enable_cpuinfo != xyes; then
  15716. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15717. else
  15718. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15719. fi
  15720. # Check whether --enable-assembly was given.
  15721. if test "${enable_assembly+set}" = set; then :
  15722. enableval=$enable_assembly;
  15723. else
  15724. enable_assembly=yes
  15725. fi
  15726. if test x$enable_assembly = xyes; then
  15727. SUMMARY_modules="${SUMMARY_modules} assembly"
  15728. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15729. # Make sure that we don't generate floating point code that would
  15730. # cause illegal instruction exceptions on older processors
  15731. case "$host" in
  15732. *-*-darwin*)
  15733. # Don't need to worry about Apple hardware, it's all SSE capable
  15734. default_ssemath=yes
  15735. ;;
  15736. *64-*-*)
  15737. # x86 64-bit architectures all have SSE instructions
  15738. default_ssemath=yes
  15739. ;;
  15740. *)
  15741. default_ssemath=no
  15742. ;;
  15743. esac
  15744. # Check whether --enable-ssemath was given.
  15745. if test "${enable_ssemath+set}" = set; then :
  15746. enableval=$enable_ssemath;
  15747. else
  15748. enable_ssemath=$default_ssemath
  15749. fi
  15750. if test x$enable_ssemath = xno; then
  15751. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15752. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15753. fi
  15754. fi
  15755. # Check whether --enable-mmx was given.
  15756. if test "${enable_mmx+set}" = set; then :
  15757. enableval=$enable_mmx;
  15758. else
  15759. enable_mmx=yes
  15760. fi
  15761. if test x$enable_mmx = xyes; then
  15762. save_CFLAGS="$CFLAGS"
  15763. have_gcc_mmx=no
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15765. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15766. mmx_CFLAGS="-mmmx"
  15767. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15769. /* end confdefs.h. */
  15770. #ifdef __MINGW32__
  15771. #include <_mingw.h>
  15772. #ifdef __MINGW64_VERSION_MAJOR
  15773. #include <intrin.h>
  15774. #else
  15775. #include <mmintrin.h>
  15776. #endif
  15777. #else
  15778. #include <mmintrin.h>
  15779. #endif
  15780. #ifndef __MMX__
  15781. #error Assembler CPP flag not enabled
  15782. #endif
  15783. int
  15784. main ()
  15785. {
  15786. ;
  15787. return 0;
  15788. }
  15789. _ACEOF
  15790. if ac_fn_c_try_compile "$LINENO"; then :
  15791. have_gcc_mmx=yes
  15792. fi
  15793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15795. $as_echo "$have_gcc_mmx" >&6; }
  15796. CFLAGS="$save_CFLAGS"
  15797. if test x$have_gcc_mmx = xyes; then
  15798. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15799. SUMMARY_math="${SUMMARY_math} mmx"
  15800. fi
  15801. fi
  15802. # Check whether --enable-3dnow was given.
  15803. if test "${enable_3dnow+set}" = set; then :
  15804. enableval=$enable_3dnow;
  15805. else
  15806. enable_3dnow=yes
  15807. fi
  15808. if test x$enable_3dnow = xyes; then
  15809. save_CFLAGS="$CFLAGS"
  15810. have_gcc_3dnow=no
  15811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15812. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15813. amd3dnow_CFLAGS="-m3dnow"
  15814. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15816. /* end confdefs.h. */
  15817. #include <mm3dnow.h>
  15818. #ifndef __3dNOW__
  15819. #error Assembler CPP flag not enabled
  15820. #endif
  15821. int
  15822. main ()
  15823. {
  15824. void *p = 0;
  15825. _m_prefetch(p);
  15826. ;
  15827. return 0;
  15828. }
  15829. _ACEOF
  15830. if ac_fn_c_try_link "$LINENO"; then :
  15831. have_gcc_3dnow=yes
  15832. fi
  15833. rm -f core conftest.err conftest.$ac_objext \
  15834. conftest$ac_exeext conftest.$ac_ext
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15836. $as_echo "$have_gcc_3dnow" >&6; }
  15837. CFLAGS="$save_CFLAGS"
  15838. if test x$have_gcc_3dnow = xyes; then
  15839. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15840. SUMMARY_math="${SUMMARY_math} 3dnow"
  15841. fi
  15842. fi
  15843. # Check whether --enable-sse was given.
  15844. if test "${enable_sse+set}" = set; then :
  15845. enableval=$enable_sse;
  15846. else
  15847. enable_sse=yes
  15848. fi
  15849. if test x$enable_sse = xyes; then
  15850. save_CFLAGS="$CFLAGS"
  15851. have_gcc_sse=no
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15853. $as_echo_n "checking for GCC -msse option... " >&6; }
  15854. sse_CFLAGS="-msse"
  15855. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15857. /* end confdefs.h. */
  15858. #ifdef __MINGW32__
  15859. #include <_mingw.h>
  15860. #ifdef __MINGW64_VERSION_MAJOR
  15861. #include <intrin.h>
  15862. #else
  15863. #include <xmmintrin.h>
  15864. #endif
  15865. #else
  15866. #include <xmmintrin.h>
  15867. #endif
  15868. #ifndef __SSE__
  15869. #error Assembler CPP flag not enabled
  15870. #endif
  15871. int
  15872. main ()
  15873. {
  15874. ;
  15875. return 0;
  15876. }
  15877. _ACEOF
  15878. if ac_fn_c_try_compile "$LINENO"; then :
  15879. have_gcc_sse=yes
  15880. fi
  15881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15883. $as_echo "$have_gcc_sse" >&6; }
  15884. CFLAGS="$save_CFLAGS"
  15885. if test x$have_gcc_sse = xyes; then
  15886. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15887. SUMMARY_math="${SUMMARY_math} sse"
  15888. fi
  15889. fi
  15890. # Check whether --enable-sse2 was given.
  15891. if test "${enable_sse2+set}" = set; then :
  15892. enableval=$enable_sse2;
  15893. else
  15894. enable_sse2=$default_ssemath
  15895. fi
  15896. if test x$enable_sse2 = xyes; then
  15897. save_CFLAGS="$CFLAGS"
  15898. have_gcc_sse2=no
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15900. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15901. sse2_CFLAGS="-msse2"
  15902. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15904. /* end confdefs.h. */
  15905. #ifdef __MINGW32__
  15906. #include <_mingw.h>
  15907. #ifdef __MINGW64_VERSION_MAJOR
  15908. #include <intrin.h>
  15909. #else
  15910. #include <emmintrin.h>
  15911. #endif
  15912. #else
  15913. #include <emmintrin.h>
  15914. #endif
  15915. #ifndef __SSE2__
  15916. #error Assembler CPP flag not enabled
  15917. #endif
  15918. int
  15919. main ()
  15920. {
  15921. ;
  15922. return 0;
  15923. }
  15924. _ACEOF
  15925. if ac_fn_c_try_compile "$LINENO"; then :
  15926. have_gcc_sse2=yes
  15927. fi
  15928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15930. $as_echo "$have_gcc_sse2" >&6; }
  15931. CFLAGS="$save_CFLAGS"
  15932. if test x$have_gcc_sse2 = xyes; then
  15933. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15934. SUMMARY_math="${SUMMARY_math} sse2"
  15935. fi
  15936. fi
  15937. # Check whether --enable-sse3 was given.
  15938. if test "${enable_sse3+set}" = set; then :
  15939. enableval=$enable_sse3;
  15940. else
  15941. enable_sse3=$default_ssemath
  15942. fi
  15943. if test x$enable_sse3 = xyes; then
  15944. save_CFLAGS="$CFLAGS"
  15945. have_gcc_sse3=no
  15946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15947. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15948. sse3_CFLAGS="-msse3"
  15949. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15951. /* end confdefs.h. */
  15952. #ifdef __MINGW32__
  15953. #include <_mingw.h>
  15954. #ifdef __MINGW64_VERSION_MAJOR
  15955. #include <intrin.h>
  15956. #else
  15957. #include <pmmintrin.h>
  15958. #endif
  15959. #else
  15960. #include <pmmintrin.h>
  15961. #endif
  15962. #ifndef __SSE2__
  15963. #error Assembler CPP flag not enabled
  15964. #endif
  15965. int
  15966. main ()
  15967. {
  15968. ;
  15969. return 0;
  15970. }
  15971. _ACEOF
  15972. if ac_fn_c_try_compile "$LINENO"; then :
  15973. have_gcc_sse3=yes
  15974. fi
  15975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15977. $as_echo "$have_gcc_sse3" >&6; }
  15978. CFLAGS="$save_CFLAGS"
  15979. if test x$have_gcc_sse3 = xyes; then
  15980. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15981. SUMMARY_math="${SUMMARY_math} sse3"
  15982. fi
  15983. fi
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15985. $as_echo_n "checking for immintrin.h... " >&6; }
  15986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15987. /* end confdefs.h. */
  15988. #include <immintrin.h>
  15989. int
  15990. main ()
  15991. {
  15992. ;
  15993. return 0;
  15994. }
  15995. _ACEOF
  15996. if ac_fn_c_try_compile "$LINENO"; then :
  15997. have_immintrin_h_hdr=yes
  15998. else
  15999. have_immintrin_h_hdr=no
  16000. fi
  16001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16003. $as_echo "$have_immintrin_h_hdr" >&6; }
  16004. if test x$have_immintrin_h_hdr = xyes; then
  16005. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16006. fi
  16007. # Check whether --enable-altivec was given.
  16008. if test "${enable_altivec+set}" = set; then :
  16009. enableval=$enable_altivec;
  16010. else
  16011. enable_altivec=yes
  16012. fi
  16013. if test x$enable_altivec = xyes; then
  16014. save_CFLAGS="$CFLAGS"
  16015. have_gcc_altivec=no
  16016. have_altivec_h_hdr=no
  16017. altivec_CFLAGS="-maltivec"
  16018. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16020. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16022. /* end confdefs.h. */
  16023. #include <altivec.h>
  16024. vector unsigned int vzero() {
  16025. return vec_splat_u32(0);
  16026. }
  16027. int
  16028. main ()
  16029. {
  16030. ;
  16031. return 0;
  16032. }
  16033. _ACEOF
  16034. if ac_fn_c_try_compile "$LINENO"; then :
  16035. have_gcc_altivec=yes
  16036. have_altivec_h_hdr=yes
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16040. $as_echo "$have_gcc_altivec" >&6; }
  16041. if test x$have_gcc_altivec = xno; then
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16043. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. vector unsigned int vzero() {
  16047. return vec_splat_u32(0);
  16048. }
  16049. int
  16050. main ()
  16051. {
  16052. ;
  16053. return 0;
  16054. }
  16055. _ACEOF
  16056. if ac_fn_c_try_compile "$LINENO"; then :
  16057. have_gcc_altivec=yes
  16058. fi
  16059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16061. $as_echo "$have_gcc_altivec" >&6; }
  16062. fi
  16063. if test x$have_gcc_altivec = xno; then
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16065. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16066. altivec_CFLAGS="-faltivec"
  16067. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. #include <altivec.h>
  16071. vector unsigned int vzero() {
  16072. return vec_splat_u32(0);
  16073. }
  16074. int
  16075. main ()
  16076. {
  16077. ;
  16078. return 0;
  16079. }
  16080. _ACEOF
  16081. if ac_fn_c_try_compile "$LINENO"; then :
  16082. have_gcc_altivec=yes
  16083. have_altivec_h_hdr=yes
  16084. fi
  16085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16087. $as_echo "$have_gcc_altivec" >&6; }
  16088. fi
  16089. if test x$have_gcc_altivec = xno; then
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16091. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16093. /* end confdefs.h. */
  16094. vector unsigned int vzero() {
  16095. return vec_splat_u32(0);
  16096. }
  16097. int
  16098. main ()
  16099. {
  16100. ;
  16101. return 0;
  16102. }
  16103. _ACEOF
  16104. if ac_fn_c_try_compile "$LINENO"; then :
  16105. have_gcc_altivec=yes
  16106. fi
  16107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16109. $as_echo "$have_gcc_altivec" >&6; }
  16110. fi
  16111. CFLAGS="$save_CFLAGS"
  16112. if test x$have_gcc_altivec = xyes; then
  16113. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16114. if test x$have_altivec_h_hdr = xyes; then
  16115. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16116. fi
  16117. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16118. SUMMARY_math="${SUMMARY_math} altivec"
  16119. fi
  16120. fi
  16121. fi
  16122. CheckOSS()
  16123. {
  16124. # Check whether --enable-oss was given.
  16125. if test "${enable_oss+set}" = set; then :
  16126. enableval=$enable_oss;
  16127. else
  16128. enable_oss=maybe
  16129. fi
  16130. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16131. # use sndio instead. So on there, we default to disabled. You can force
  16132. # it on if you really want, though.
  16133. if test x$enable_oss = xmaybe; then
  16134. enable_oss=yes
  16135. case "$host" in
  16136. *-*-openbsd*)
  16137. enable_oss=no;;
  16138. esac
  16139. fi
  16140. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16142. $as_echo_n "checking for OSS audio support... " >&6; }
  16143. have_oss=no
  16144. if test x$have_oss != xyes; then
  16145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. /* end confdefs.h. */
  16147. #include <sys/soundcard.h>
  16148. int
  16149. main ()
  16150. {
  16151. int arg = SNDCTL_DSP_SETFRAGMENT;
  16152. ;
  16153. return 0;
  16154. }
  16155. _ACEOF
  16156. if ac_fn_c_try_compile "$LINENO"; then :
  16157. have_oss=yes
  16158. fi
  16159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16160. fi
  16161. if test x$have_oss != xyes; then
  16162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16163. /* end confdefs.h. */
  16164. #include <soundcard.h>
  16165. int
  16166. main ()
  16167. {
  16168. int arg = SNDCTL_DSP_SETFRAGMENT;
  16169. ;
  16170. return 0;
  16171. }
  16172. _ACEOF
  16173. if ac_fn_c_try_compile "$LINENO"; then :
  16174. have_oss=yes
  16175. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16178. fi
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16180. $as_echo "$have_oss" >&6; }
  16181. if test x$have_oss = xyes; then
  16182. SUMMARY_audio="${SUMMARY_audio} oss"
  16183. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16184. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16185. have_audio=yes
  16186. # We may need to link with ossaudio emulation library
  16187. case "$host" in
  16188. *-*-openbsd*|*-*-netbsd*)
  16189. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16190. esac
  16191. fi
  16192. fi
  16193. }
  16194. CheckALSA()
  16195. {
  16196. # Check whether --enable-alsa was given.
  16197. if test "${enable_alsa+set}" = set; then :
  16198. enableval=$enable_alsa;
  16199. else
  16200. enable_alsa=yes
  16201. fi
  16202. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16203. alsa_save_CFLAGS="$CFLAGS"
  16204. alsa_save_LDFLAGS="$LDFLAGS"
  16205. alsa_save_LIBS="$LIBS"
  16206. alsa_found=yes
  16207. # Check whether --with-alsa-prefix was given.
  16208. if test "${with_alsa_prefix+set}" = set; then :
  16209. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16210. else
  16211. alsa_prefix=""
  16212. fi
  16213. # Check whether --with-alsa-inc-prefix was given.
  16214. if test "${with_alsa_inc_prefix+set}" = set; then :
  16215. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16216. else
  16217. alsa_inc_prefix=""
  16218. fi
  16219. # Check whether --enable-alsatest was given.
  16220. if test "${enable_alsatest+set}" = set; then :
  16221. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16222. else
  16223. enable_alsatest=yes
  16224. fi
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16226. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16227. if test "$alsa_inc_prefix" != "" ; then
  16228. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16229. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16230. fi
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16232. $as_echo "$ALSA_CFLAGS" >&6; }
  16233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16234. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16235. if test "$alsa_prefix" != "" ; then
  16236. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16237. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16238. fi
  16239. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16240. LIBS=`echo $LIBS | sed 's/-lm//'`
  16241. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16242. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16243. LIBS=`echo $LIBS | sed 's/ //'`
  16244. LIBS="$ALSA_LIBS $LIBS"
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16246. $as_echo "$ALSA_LIBS" >&6; }
  16247. min_alsa_version=1.0.11
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16249. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16250. no_alsa=""
  16251. alsa_min_major_version=`echo $min_alsa_version | \
  16252. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16253. alsa_min_minor_version=`echo $min_alsa_version | \
  16254. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16255. alsa_min_micro_version=`echo $min_alsa_version | \
  16256. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16257. ac_ext=c
  16258. ac_cpp='$CPP $CPPFLAGS'
  16259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16263. /* end confdefs.h. */
  16264. #include <alsa/asoundlib.h>
  16265. int
  16266. main ()
  16267. {
  16268. /* ensure backward compatibility */
  16269. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16270. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16271. #endif
  16272. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16273. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16274. #endif
  16275. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16276. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16277. #endif
  16278. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16279. exit(0);
  16280. # else
  16281. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16282. # error not present
  16283. # endif
  16284. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16285. exit(0);
  16286. # else
  16287. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16288. # error not present
  16289. # endif
  16290. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16291. # error not present
  16292. # endif
  16293. # endif
  16294. # endif
  16295. exit(0);
  16296. ;
  16297. return 0;
  16298. }
  16299. _ACEOF
  16300. if ac_fn_c_try_compile "$LINENO"; then :
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16302. $as_echo "found." >&6; }
  16303. else
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16305. $as_echo "not present." >&6; }
  16306. alsa_found=no
  16307. fi
  16308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16309. ac_ext=c
  16310. ac_cpp='$CPP $CPPFLAGS'
  16311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16314. if test "x$enable_alsatest" = "xyes"; then
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16316. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16317. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16318. $as_echo_n "(cached) " >&6
  16319. else
  16320. ac_check_lib_save_LIBS=$LIBS
  16321. LIBS="-lasound $LIBS"
  16322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16323. /* end confdefs.h. */
  16324. /* Override any GCC internal prototype to avoid an error.
  16325. Use char because int might match the return type of a GCC
  16326. builtin and then its argument prototype would still apply. */
  16327. #ifdef __cplusplus
  16328. extern "C"
  16329. #endif
  16330. char snd_ctl_open ();
  16331. int
  16332. main ()
  16333. {
  16334. return snd_ctl_open ();
  16335. ;
  16336. return 0;
  16337. }
  16338. _ACEOF
  16339. if ac_fn_c_try_link "$LINENO"; then :
  16340. ac_cv_lib_asound_snd_ctl_open=yes
  16341. else
  16342. ac_cv_lib_asound_snd_ctl_open=no
  16343. fi
  16344. rm -f core conftest.err conftest.$ac_objext \
  16345. conftest$ac_exeext conftest.$ac_ext
  16346. LIBS=$ac_check_lib_save_LIBS
  16347. fi
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16349. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16350. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16351. cat >>confdefs.h <<_ACEOF
  16352. #define HAVE_LIBASOUND 1
  16353. _ACEOF
  16354. LIBS="-lasound $LIBS"
  16355. else
  16356. alsa_found=no
  16357. fi
  16358. fi
  16359. if test "x$alsa_found" = "xyes" ; then
  16360. have_alsa=yes
  16361. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16362. LIBS=`echo $LIBS | sed 's/ //'`
  16363. LIBS="-lasound $LIBS"
  16364. fi
  16365. if test "x$alsa_found" = "xno" ; then
  16366. have_alsa=no
  16367. CFLAGS="$alsa_save_CFLAGS"
  16368. LDFLAGS="$alsa_save_LDFLAGS"
  16369. LIBS="$alsa_save_LIBS"
  16370. ALSA_CFLAGS=""
  16371. ALSA_LIBS=""
  16372. fi
  16373. # Restore all flags from before the ALSA detection runs
  16374. CFLAGS="$alsa_save_CFLAGS"
  16375. LDFLAGS="$alsa_save_LDFLAGS"
  16376. LIBS="$alsa_save_LIBS"
  16377. if test x$have_alsa = xyes; then
  16378. # Check whether --enable-alsa-shared was given.
  16379. if test "${enable_alsa_shared+set}" = set; then :
  16380. enableval=$enable_alsa_shared;
  16381. else
  16382. enable_alsa_shared=yes
  16383. fi
  16384. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16385. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16386. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16387. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16388. if test x$have_loadso != xyes && \
  16389. test x$enable_alsa_shared = xyes; then
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16391. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16392. fi
  16393. if test x$have_loadso = xyes && \
  16394. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16395. echo "-- dynamic libasound -> $alsa_lib"
  16396. cat >>confdefs.h <<_ACEOF
  16397. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16398. _ACEOF
  16399. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16400. else
  16401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16402. SUMMARY_audio="${SUMMARY_audio} alsa"
  16403. fi
  16404. have_audio=yes
  16405. fi
  16406. fi
  16407. }
  16408. CheckJACK()
  16409. {
  16410. # Check whether --enable-jack was given.
  16411. if test "${enable_jack+set}" = set; then :
  16412. enableval=$enable_jack;
  16413. else
  16414. enable_jack=yes
  16415. fi
  16416. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16417. pkg_failed=no
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16419. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16420. if test -n "$JACK_CFLAGS"; then
  16421. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16422. elif test -n "$PKG_CONFIG"; then
  16423. if test -n "$PKG_CONFIG" && \
  16424. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16425. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16426. ac_status=$?
  16427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16428. test $ac_status = 0; }; then
  16429. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16430. test "x$?" != "x0" && pkg_failed=yes
  16431. else
  16432. pkg_failed=yes
  16433. fi
  16434. else
  16435. pkg_failed=untried
  16436. fi
  16437. if test -n "$JACK_LIBS"; then
  16438. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16439. elif test -n "$PKG_CONFIG"; then
  16440. if test -n "$PKG_CONFIG" && \
  16441. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16442. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16443. ac_status=$?
  16444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16445. test $ac_status = 0; }; then
  16446. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16447. test "x$?" != "x0" && pkg_failed=yes
  16448. else
  16449. pkg_failed=yes
  16450. fi
  16451. else
  16452. pkg_failed=untried
  16453. fi
  16454. if test $pkg_failed = yes; then
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16456. $as_echo "no" >&6; }
  16457. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16458. _pkg_short_errors_supported=yes
  16459. else
  16460. _pkg_short_errors_supported=no
  16461. fi
  16462. if test $_pkg_short_errors_supported = yes; then
  16463. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16464. else
  16465. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16466. fi
  16467. # Put the nasty error message in config.log where it belongs
  16468. echo "$JACK_PKG_ERRORS" >&5
  16469. audio_jack=no
  16470. elif test $pkg_failed = untried; then
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16472. $as_echo "no" >&6; }
  16473. audio_jack=no
  16474. else
  16475. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16476. JACK_LIBS=$pkg_cv_JACK_LIBS
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16478. $as_echo "yes" >&6; }
  16479. audio_jack=yes
  16480. fi
  16481. if test x$audio_jack = xyes; then
  16482. # Check whether --enable-jack-shared was given.
  16483. if test "${enable_jack_shared+set}" = set; then :
  16484. enableval=$enable_jack_shared;
  16485. else
  16486. enable_jack_shared=yes
  16487. fi
  16488. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16489. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16490. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16491. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16492. if test x$have_loadso != xyes && \
  16493. test x$enable_jack_shared = xyes; then
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16495. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16496. fi
  16497. if test x$have_loadso = xyes && \
  16498. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16499. echo "-- dynamic libjack -> $jack_lib"
  16500. cat >>confdefs.h <<_ACEOF
  16501. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16502. _ACEOF
  16503. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16504. case "$host" in
  16505. # On Solaris, jack must be linked deferred explicitly
  16506. # to prevent undefined symbol failures.
  16507. *-*-solaris*)
  16508. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16510. esac
  16511. else
  16512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16513. SUMMARY_audio="${SUMMARY_audio} jack"
  16514. fi
  16515. have_audio=yes
  16516. fi
  16517. fi
  16518. }
  16519. CheckESD()
  16520. {
  16521. # Check whether --enable-esd was given.
  16522. if test "${enable_esd+set}" = set; then :
  16523. enableval=$enable_esd;
  16524. else
  16525. enable_esd=yes
  16526. fi
  16527. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16528. # Check whether --with-esd-prefix was given.
  16529. if test "${with_esd_prefix+set}" = set; then :
  16530. withval=$with_esd_prefix; esd_prefix="$withval"
  16531. else
  16532. esd_prefix=""
  16533. fi
  16534. # Check whether --with-esd-exec-prefix was given.
  16535. if test "${with_esd_exec_prefix+set}" = set; then :
  16536. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16537. else
  16538. esd_exec_prefix=""
  16539. fi
  16540. # Check whether --enable-esdtest was given.
  16541. if test "${enable_esdtest+set}" = set; then :
  16542. enableval=$enable_esdtest;
  16543. else
  16544. enable_esdtest=yes
  16545. fi
  16546. if test x$esd_exec_prefix != x ; then
  16547. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16548. if test x${ESD_CONFIG+set} != xset ; then
  16549. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16550. fi
  16551. fi
  16552. if test x$esd_prefix != x ; then
  16553. esd_args="$esd_args --prefix=$esd_prefix"
  16554. if test x${ESD_CONFIG+set} != xset ; then
  16555. ESD_CONFIG=$esd_prefix/bin/esd-config
  16556. fi
  16557. fi
  16558. # Extract the first word of "esd-config", so it can be a program name with args.
  16559. set dummy esd-config; ac_word=$2
  16560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16561. $as_echo_n "checking for $ac_word... " >&6; }
  16562. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16563. $as_echo_n "(cached) " >&6
  16564. else
  16565. case $ESD_CONFIG in
  16566. [\\/]* | ?:[\\/]*)
  16567. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16568. ;;
  16569. *)
  16570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16571. for as_dir in $PATH
  16572. do
  16573. IFS=$as_save_IFS
  16574. test -z "$as_dir" && as_dir=.
  16575. for ac_exec_ext in '' $ac_executable_extensions; do
  16576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16577. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16579. break 2
  16580. fi
  16581. done
  16582. done
  16583. IFS=$as_save_IFS
  16584. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16585. ;;
  16586. esac
  16587. fi
  16588. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16589. if test -n "$ESD_CONFIG"; then
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16591. $as_echo "$ESD_CONFIG" >&6; }
  16592. else
  16593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16594. $as_echo "no" >&6; }
  16595. fi
  16596. min_esd_version=0.2.8
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16598. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16599. no_esd=""
  16600. if test "$ESD_CONFIG" = "no" ; then
  16601. no_esd=yes
  16602. else
  16603. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16604. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16605. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16606. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16607. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16608. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16609. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16610. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16611. if test "x$enable_esdtest" = "xyes" ; then
  16612. ac_ext=c
  16613. ac_cpp='$CPP $CPPFLAGS'
  16614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16617. ac_save_CFLAGS="$CFLAGS"
  16618. ac_save_LIBS="$LIBS"
  16619. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16620. LIBS="$LIBS $ESD_LIBS"
  16621. rm -f conf.esdtest
  16622. if test "$cross_compiling" = yes; then :
  16623. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16624. else
  16625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16626. /* end confdefs.h. */
  16627. #include <stdio.h>
  16628. #include <stdlib.h>
  16629. #include <esd.h>
  16630. int main (void)
  16631. {
  16632. int major, minor, micro;
  16633. FILE *fp = fopen("conf.esdtest", "w");
  16634. if (fp) fclose(fp);
  16635. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16636. printf("%s, bad version string\n", "$min_esd_version");
  16637. exit(1);
  16638. }
  16639. if (($esd_major_version > major) ||
  16640. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16641. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16642. {
  16643. return 0;
  16644. }
  16645. else
  16646. {
  16647. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16648. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16649. printf("*** best to upgrade to the required version.\n");
  16650. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16651. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16652. printf("*** config.cache before re-running configure\n");
  16653. return 1;
  16654. }
  16655. }
  16656. _ACEOF
  16657. if ac_fn_c_try_run "$LINENO"; then :
  16658. else
  16659. no_esd=yes
  16660. fi
  16661. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16662. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16663. fi
  16664. CFLAGS="$ac_save_CFLAGS"
  16665. LIBS="$ac_save_LIBS"
  16666. ac_ext=c
  16667. ac_cpp='$CPP $CPPFLAGS'
  16668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16671. fi
  16672. fi
  16673. if test "x$no_esd" = x ; then
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16675. $as_echo "yes" >&6; }
  16676. have_esd=yes
  16677. else
  16678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16679. $as_echo "no" >&6; }
  16680. if test "$ESD_CONFIG" = "no" ; then
  16681. echo "*** The esd-config script installed by ESD could not be found"
  16682. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16683. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16684. echo "*** full path to esd-config."
  16685. else
  16686. if test -f conf.esdtest ; then
  16687. :
  16688. else
  16689. echo "*** Could not run ESD test program, checking why..."
  16690. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16691. LIBS="$LIBS $ESD_LIBS"
  16692. ac_ext=c
  16693. ac_cpp='$CPP $CPPFLAGS'
  16694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16698. /* end confdefs.h. */
  16699. #include <stdio.h>
  16700. #include <esd.h>
  16701. int
  16702. main ()
  16703. {
  16704. return 0;
  16705. ;
  16706. return 0;
  16707. }
  16708. _ACEOF
  16709. if ac_fn_c_try_link "$LINENO"; then :
  16710. echo "*** The test program compiled, but did not run. This usually means"
  16711. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16712. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16713. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16714. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16715. echo "*** is required on your system"
  16716. echo "***"
  16717. echo "*** If you have an old version installed, it is best to remove it, although"
  16718. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16719. else
  16720. echo "*** The test program failed to compile or link. See the file config.log for the"
  16721. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16722. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16723. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16724. fi
  16725. rm -f core conftest.err conftest.$ac_objext \
  16726. conftest$ac_exeext conftest.$ac_ext
  16727. CFLAGS="$ac_save_CFLAGS"
  16728. LIBS="$ac_save_LIBS"
  16729. ac_ext=c
  16730. ac_cpp='$CPP $CPPFLAGS'
  16731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16734. fi
  16735. fi
  16736. ESD_CFLAGS=""
  16737. ESD_LIBS=""
  16738. have_esd=no
  16739. fi
  16740. rm -f conf.esdtest
  16741. if test x$have_esd = xyes; then
  16742. # Check whether --enable-esd-shared was given.
  16743. if test "${enable_esd_shared+set}" = set; then :
  16744. enableval=$enable_esd_shared;
  16745. else
  16746. enable_esd_shared=yes
  16747. fi
  16748. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16749. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16750. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16751. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16752. if test x$have_loadso != xyes && \
  16753. test x$enable_esd_shared = xyes; then
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16755. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16756. fi
  16757. if test x$have_loadso = xyes && \
  16758. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16759. echo "-- dynamic libesd -> $esd_lib"
  16760. cat >>confdefs.h <<_ACEOF
  16761. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16762. _ACEOF
  16763. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16764. else
  16765. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16766. SUMMARY_audio="${SUMMARY_audio} esd"
  16767. fi
  16768. have_audio=yes
  16769. fi
  16770. fi
  16771. }
  16772. CheckPipewire()
  16773. {
  16774. # Check whether --enable-pipewire was given.
  16775. if test "${enable_pipewire+set}" = set; then :
  16776. enableval=$enable_pipewire;
  16777. else
  16778. enable_pipewire=yes
  16779. fi
  16780. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16781. pkg_failed=no
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16783. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16784. if test -n "$PIPEWIRE_CFLAGS"; then
  16785. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16786. elif test -n "$PKG_CONFIG"; then
  16787. if test -n "$PKG_CONFIG" && \
  16788. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16789. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16790. ac_status=$?
  16791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16792. test $ac_status = 0; }; then
  16793. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16794. test "x$?" != "x0" && pkg_failed=yes
  16795. else
  16796. pkg_failed=yes
  16797. fi
  16798. else
  16799. pkg_failed=untried
  16800. fi
  16801. if test -n "$PIPEWIRE_LIBS"; then
  16802. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16803. elif test -n "$PKG_CONFIG"; then
  16804. if test -n "$PKG_CONFIG" && \
  16805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16806. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16807. ac_status=$?
  16808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16809. test $ac_status = 0; }; then
  16810. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16811. test "x$?" != "x0" && pkg_failed=yes
  16812. else
  16813. pkg_failed=yes
  16814. fi
  16815. else
  16816. pkg_failed=untried
  16817. fi
  16818. if test $pkg_failed = yes; then
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16820. $as_echo "no" >&6; }
  16821. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16822. _pkg_short_errors_supported=yes
  16823. else
  16824. _pkg_short_errors_supported=no
  16825. fi
  16826. if test $_pkg_short_errors_supported = yes; then
  16827. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16828. else
  16829. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16830. fi
  16831. # Put the nasty error message in config.log where it belongs
  16832. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16833. audio_pipewire=no
  16834. elif test $pkg_failed = untried; then
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16836. $as_echo "no" >&6; }
  16837. audio_pipewire=no
  16838. else
  16839. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16840. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16842. $as_echo "yes" >&6; }
  16843. audio_pipewire=yes
  16844. fi
  16845. if test x$audio_pipewire = xyes; then
  16846. # Check whether --enable-pipewire-shared was given.
  16847. if test "${enable_pipewire_shared+set}" = set; then :
  16848. enableval=$enable_pipewire_shared;
  16849. else
  16850. enable_pipewire_shared=yes
  16851. fi
  16852. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16853. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16854. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16855. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16856. if test x$have_loadso != xyes && \
  16857. test x$enable_pipewire_shared = xyes; then
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16859. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16860. fi
  16861. if test x$have_loadso = xyes && \
  16862. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16863. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16864. cat >>confdefs.h <<_ACEOF
  16865. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16866. _ACEOF
  16867. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16868. else
  16869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16870. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16871. fi
  16872. have_audio=yes
  16873. fi
  16874. fi
  16875. }
  16876. CheckPulseAudio()
  16877. {
  16878. # Check whether --enable-pulseaudio was given.
  16879. if test "${enable_pulseaudio+set}" = set; then :
  16880. enableval=$enable_pulseaudio;
  16881. else
  16882. enable_pulseaudio=yes
  16883. fi
  16884. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16885. pkg_failed=no
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16887. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16888. if test -n "$PULSEAUDIO_CFLAGS"; then
  16889. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16890. elif test -n "$PKG_CONFIG"; then
  16891. if test -n "$PKG_CONFIG" && \
  16892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16893. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16894. ac_status=$?
  16895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16896. test $ac_status = 0; }; then
  16897. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16898. test "x$?" != "x0" && pkg_failed=yes
  16899. else
  16900. pkg_failed=yes
  16901. fi
  16902. else
  16903. pkg_failed=untried
  16904. fi
  16905. if test -n "$PULSEAUDIO_LIBS"; then
  16906. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16907. elif test -n "$PKG_CONFIG"; then
  16908. if test -n "$PKG_CONFIG" && \
  16909. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16910. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16911. ac_status=$?
  16912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16913. test $ac_status = 0; }; then
  16914. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16915. test "x$?" != "x0" && pkg_failed=yes
  16916. else
  16917. pkg_failed=yes
  16918. fi
  16919. else
  16920. pkg_failed=untried
  16921. fi
  16922. if test $pkg_failed = yes; then
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16924. $as_echo "no" >&6; }
  16925. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16926. _pkg_short_errors_supported=yes
  16927. else
  16928. _pkg_short_errors_supported=no
  16929. fi
  16930. if test $_pkg_short_errors_supported = yes; then
  16931. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16932. else
  16933. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16934. fi
  16935. # Put the nasty error message in config.log where it belongs
  16936. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16937. audio_pulseaudio=no
  16938. elif test $pkg_failed = untried; then
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16940. $as_echo "no" >&6; }
  16941. audio_pulseaudio=no
  16942. else
  16943. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16944. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16946. $as_echo "yes" >&6; }
  16947. audio_pulseaudio=yes
  16948. fi
  16949. if test x$audio_pulseaudio = xyes; then
  16950. # Check whether --enable-pulseaudio-shared was given.
  16951. if test "${enable_pulseaudio_shared+set}" = set; then :
  16952. enableval=$enable_pulseaudio_shared;
  16953. else
  16954. enable_pulseaudio_shared=yes
  16955. fi
  16956. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16957. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16958. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16959. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16960. if test x$have_loadso != xyes && \
  16961. test x$enable_pulseaudio_shared = xyes; then
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16963. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16964. fi
  16965. if test x$have_loadso = xyes && \
  16966. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16967. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16968. cat >>confdefs.h <<_ACEOF
  16969. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16970. _ACEOF
  16971. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16972. case "$host" in
  16973. # On Solaris, pulseaudio must be linked deferred explicitly
  16974. # to prevent undefined symbol failures.
  16975. *-*-solaris*)
  16976. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16978. esac
  16979. else
  16980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16981. SUMMARY_audio="${SUMMARY_audio} pulse"
  16982. fi
  16983. have_audio=yes
  16984. fi
  16985. fi
  16986. }
  16987. CheckARTSC()
  16988. {
  16989. # Check whether --enable-arts was given.
  16990. if test "${enable_arts+set}" = set; then :
  16991. enableval=$enable_arts;
  16992. else
  16993. enable_arts=yes
  16994. fi
  16995. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16996. # Extract the first word of "artsc-config", so it can be a program name with args.
  16997. set dummy artsc-config; ac_word=$2
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16999. $as_echo_n "checking for $ac_word... " >&6; }
  17000. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17001. $as_echo_n "(cached) " >&6
  17002. else
  17003. case $ARTSCONFIG in
  17004. [\\/]* | ?:[\\/]*)
  17005. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17006. ;;
  17007. *)
  17008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17009. for as_dir in $PATH
  17010. do
  17011. IFS=$as_save_IFS
  17012. test -z "$as_dir" && as_dir=.
  17013. for ac_exec_ext in '' $ac_executable_extensions; do
  17014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17015. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17017. break 2
  17018. fi
  17019. done
  17020. done
  17021. IFS=$as_save_IFS
  17022. ;;
  17023. esac
  17024. fi
  17025. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17026. if test -n "$ARTSCONFIG"; then
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17028. $as_echo "$ARTSCONFIG" >&6; }
  17029. else
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17031. $as_echo "no" >&6; }
  17032. fi
  17033. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17034. : # arts isn't installed
  17035. else
  17036. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17037. ARTS_LIBS=`$ARTSCONFIG --libs`
  17038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17039. $as_echo_n "checking for aRts development environment... " >&6; }
  17040. audio_arts=no
  17041. save_CFLAGS="$CFLAGS"
  17042. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. #include <artsc.h>
  17046. int
  17047. main ()
  17048. {
  17049. arts_stream_t stream;
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_compile "$LINENO"; then :
  17055. audio_arts=yes
  17056. fi
  17057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17058. CFLAGS="$save_CFLAGS"
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17060. $as_echo "$audio_arts" >&6; }
  17061. if test x$audio_arts = xyes; then
  17062. # Check whether --enable-arts-shared was given.
  17063. if test "${enable_arts_shared+set}" = set; then :
  17064. enableval=$enable_arts_shared;
  17065. else
  17066. enable_arts_shared=yes
  17067. fi
  17068. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17069. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17070. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17071. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17072. if test x$have_loadso != xyes && \
  17073. test x$enable_arts_shared = xyes; then
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17075. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17076. fi
  17077. if test x$have_loadso = xyes && \
  17078. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17079. echo "-- dynamic libartsc -> $arts_lib"
  17080. cat >>confdefs.h <<_ACEOF
  17081. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17082. _ACEOF
  17083. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17084. else
  17085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17086. SUMMARY_audio="${SUMMARY_audio} arts"
  17087. fi
  17088. have_audio=yes
  17089. fi
  17090. fi
  17091. fi
  17092. }
  17093. CheckNAS()
  17094. {
  17095. # Check whether --enable-nas was given.
  17096. if test "${enable_nas+set}" = set; then :
  17097. enableval=$enable_nas;
  17098. else
  17099. enable_nas=yes
  17100. fi
  17101. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17102. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17103. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17104. have_nas_hdr=yes
  17105. fi
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17107. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17108. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17109. $as_echo_n "(cached) " >&6
  17110. else
  17111. ac_check_lib_save_LIBS=$LIBS
  17112. LIBS="-laudio $LIBS"
  17113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17114. /* end confdefs.h. */
  17115. /* Override any GCC internal prototype to avoid an error.
  17116. Use char because int might match the return type of a GCC
  17117. builtin and then its argument prototype would still apply. */
  17118. #ifdef __cplusplus
  17119. extern "C"
  17120. #endif
  17121. char AuOpenServer ();
  17122. int
  17123. main ()
  17124. {
  17125. return AuOpenServer ();
  17126. ;
  17127. return 0;
  17128. }
  17129. _ACEOF
  17130. if ac_fn_c_try_link "$LINENO"; then :
  17131. ac_cv_lib_audio_AuOpenServer=yes
  17132. else
  17133. ac_cv_lib_audio_AuOpenServer=no
  17134. fi
  17135. rm -f core conftest.err conftest.$ac_objext \
  17136. conftest$ac_exeext conftest.$ac_ext
  17137. LIBS=$ac_check_lib_save_LIBS
  17138. fi
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17140. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17141. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17142. have_nas_lib=yes
  17143. fi
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17145. $as_echo_n "checking for NAS audio support... " >&6; }
  17146. have_nas=no
  17147. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17148. have_nas=yes
  17149. NAS_LIBS="-laudio"
  17150. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17151. have_nas=yes
  17152. NAS_CFLAGS="-I/usr/X11R6/include/"
  17153. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17154. fi
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17156. $as_echo "$have_nas" >&6; }
  17157. if test x$have_nas = xyes; then
  17158. # Check whether --enable-nas-shared was given.
  17159. if test "${enable_nas_shared+set}" = set; then :
  17160. enableval=$enable_nas_shared;
  17161. else
  17162. enable_nas_shared=yes
  17163. fi
  17164. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17165. if test x$have_loadso != xyes && \
  17166. test x$enable_nas_shared = xyes; then
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17168. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17169. fi
  17170. if test x$have_loadso = xyes && \
  17171. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17172. echo "-- dynamic libaudio -> $nas_lib"
  17173. cat >>confdefs.h <<_ACEOF
  17174. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17175. _ACEOF
  17176. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17177. else
  17178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17179. SUMMARY_audio="${SUMMARY_audio} nas"
  17180. fi
  17181. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17182. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17183. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17184. have_audio=yes
  17185. fi
  17186. fi
  17187. }
  17188. CheckSNDIO()
  17189. {
  17190. # Check whether --enable-sndio was given.
  17191. if test "${enable_sndio+set}" = set; then :
  17192. enableval=$enable_sndio;
  17193. else
  17194. enable_sndio=yes
  17195. fi
  17196. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17197. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17198. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17199. have_sndio_hdr=yes
  17200. fi
  17201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17202. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17203. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17204. $as_echo_n "(cached) " >&6
  17205. else
  17206. ac_check_lib_save_LIBS=$LIBS
  17207. LIBS="-lsndio $LIBS"
  17208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17209. /* end confdefs.h. */
  17210. /* Override any GCC internal prototype to avoid an error.
  17211. Use char because int might match the return type of a GCC
  17212. builtin and then its argument prototype would still apply. */
  17213. #ifdef __cplusplus
  17214. extern "C"
  17215. #endif
  17216. char sio_open ();
  17217. int
  17218. main ()
  17219. {
  17220. return sio_open ();
  17221. ;
  17222. return 0;
  17223. }
  17224. _ACEOF
  17225. if ac_fn_c_try_link "$LINENO"; then :
  17226. ac_cv_lib_sndio_sio_open=yes
  17227. else
  17228. ac_cv_lib_sndio_sio_open=no
  17229. fi
  17230. rm -f core conftest.err conftest.$ac_objext \
  17231. conftest$ac_exeext conftest.$ac_ext
  17232. LIBS=$ac_check_lib_save_LIBS
  17233. fi
  17234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17235. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17236. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17237. have_sndio_lib=yes
  17238. fi
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17240. $as_echo_n "checking for sndio audio support... " >&6; }
  17241. have_sndio=no
  17242. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17243. have_sndio=yes
  17244. SNDIO_LIBS="-lsndio"
  17245. fi
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17247. $as_echo "$have_sndio" >&6; }
  17248. if test x$have_sndio = xyes; then
  17249. # Check whether --enable-sndio-shared was given.
  17250. if test "${enable_sndio_shared+set}" = set; then :
  17251. enableval=$enable_sndio_shared;
  17252. else
  17253. enable_sndio_shared=yes
  17254. fi
  17255. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17256. if test x$have_loadso != xyes && \
  17257. test x$enable_sndio_shared = xyes; then
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17259. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17260. fi
  17261. if test x$have_loadso = xyes && \
  17262. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17263. echo "-- dynamic libsndio -> $sndio_lib"
  17264. cat >>confdefs.h <<_ACEOF
  17265. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17266. _ACEOF
  17267. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17268. else
  17269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17270. SUMMARY_audio="${SUMMARY_audio} sndio"
  17271. fi
  17272. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17273. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17274. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17275. have_audio=yes
  17276. fi
  17277. fi
  17278. }
  17279. CheckFusionSound()
  17280. {
  17281. # Check whether --enable-fusionsound was given.
  17282. if test "${enable_fusionsound+set}" = set; then :
  17283. enableval=$enable_fusionsound;
  17284. else
  17285. enable_fusionsound=no
  17286. fi
  17287. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17288. pkg_failed=no
  17289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17290. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17291. if test -n "$FUSIONSOUND_CFLAGS"; then
  17292. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17293. elif test -n "$PKG_CONFIG"; then
  17294. if test -n "$PKG_CONFIG" && \
  17295. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17296. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17297. ac_status=$?
  17298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17299. test $ac_status = 0; }; then
  17300. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17301. test "x$?" != "x0" && pkg_failed=yes
  17302. else
  17303. pkg_failed=yes
  17304. fi
  17305. else
  17306. pkg_failed=untried
  17307. fi
  17308. if test -n "$FUSIONSOUND_LIBS"; then
  17309. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17310. elif test -n "$PKG_CONFIG"; then
  17311. if test -n "$PKG_CONFIG" && \
  17312. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17313. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17314. ac_status=$?
  17315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17316. test $ac_status = 0; }; then
  17317. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17318. test "x$?" != "x0" && pkg_failed=yes
  17319. else
  17320. pkg_failed=yes
  17321. fi
  17322. else
  17323. pkg_failed=untried
  17324. fi
  17325. if test $pkg_failed = yes; then
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17327. $as_echo "no" >&6; }
  17328. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17329. _pkg_short_errors_supported=yes
  17330. else
  17331. _pkg_short_errors_supported=no
  17332. fi
  17333. if test $_pkg_short_errors_supported = yes; then
  17334. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17335. else
  17336. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17337. fi
  17338. # Put the nasty error message in config.log where it belongs
  17339. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17340. fusionsound=no
  17341. elif test $pkg_failed = untried; then
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17343. $as_echo "no" >&6; }
  17344. fusionsound=no
  17345. else
  17346. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17347. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17349. $as_echo "yes" >&6; }
  17350. fusionsound=yes
  17351. fi
  17352. if test x$fusionsound = xyes; then
  17353. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17354. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17355. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17356. # Check whether --enable-fusionsound-shared was given.
  17357. if test "${enable_fusionsound_shared+set}" = set; then :
  17358. enableval=$enable_fusionsound_shared;
  17359. else
  17360. enable_fusionsound_shared=yes
  17361. fi
  17362. fusionsound_shared=no
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17364. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17365. if test x$have_loadso != xyes && \
  17366. test x$enable_fusionsound_shared = xyes; then
  17367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17368. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17369. fi
  17370. if test x$have_loadso = xyes && \
  17371. test x$enable_fusionsound_shared = xyes; then
  17372. cat >>confdefs.h <<_ACEOF
  17373. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17374. _ACEOF
  17375. fusionsound_shared=yes
  17376. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17377. else
  17378. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17379. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17380. fi
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17382. $as_echo "$fusionsound_shared" >&6; }
  17383. have_audio=yes
  17384. fi
  17385. fi
  17386. }
  17387. CheckDiskAudio()
  17388. {
  17389. # Check whether --enable-diskaudio was given.
  17390. if test "${enable_diskaudio+set}" = set; then :
  17391. enableval=$enable_diskaudio;
  17392. else
  17393. enable_diskaudio=yes
  17394. fi
  17395. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17396. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17397. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17398. SUMMARY_audio="${SUMMARY_audio} disk"
  17399. fi
  17400. }
  17401. CheckDummyAudio()
  17402. {
  17403. # Check whether --enable-dummyaudio was given.
  17404. if test "${enable_dummyaudio+set}" = set; then :
  17405. enableval=$enable_dummyaudio;
  17406. else
  17407. enable_dummyaudio=yes
  17408. fi
  17409. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17410. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17411. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17412. SUMMARY_audio="${SUMMARY_audio} dummy"
  17413. fi
  17414. }
  17415. CheckLibSampleRate()
  17416. {
  17417. # Check whether --enable-libsamplerate was given.
  17418. if test "${enable_libsamplerate+set}" = set; then :
  17419. enableval=$enable_libsamplerate;
  17420. else
  17421. enable_libsamplerate=yes
  17422. fi
  17423. if test x$enable_libsamplerate = xyes; then
  17424. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17425. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17426. have_samplerate_h_hdr=yes
  17427. else
  17428. have_samplerate_h_hdr=no
  17429. fi
  17430. if test x$have_samplerate_h_hdr = xyes; then
  17431. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17432. # Check whether --enable-libsamplerate-shared was given.
  17433. if test "${enable_libsamplerate_shared+set}" = set; then :
  17434. enableval=$enable_libsamplerate_shared;
  17435. else
  17436. enable_libsamplerate_shared=yes
  17437. fi
  17438. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17439. if test x$have_loadso != xyes && \
  17440. test x$enable_libsamplerate_shared = xyes; then
  17441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17442. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17443. fi
  17444. if test x$have_loadso = xyes && \
  17445. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17446. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17447. cat >>confdefs.h <<_ACEOF
  17448. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17449. _ACEOF
  17450. else
  17451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17452. fi
  17453. fi
  17454. fi
  17455. }
  17456. CheckARM()
  17457. {
  17458. # Check whether --enable-arm-simd was given.
  17459. if test "${enable_arm_simd+set}" = set; then :
  17460. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17461. else
  17462. enable_arm_simd=no
  17463. fi
  17464. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17465. save_CFLAGS="$CFLAGS"
  17466. have_arm_simd=no
  17467. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17469. $as_echo_n "checking for ARM SIMD... " >&6; }
  17470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17471. /* end confdefs.h. */
  17472. .text
  17473. .arch armv6
  17474. .object_arch armv4
  17475. .arm
  17476. .altmacro
  17477. #ifndef __ARM_EABI__
  17478. #error EABI is required (to be sure that calling conventions are compatible)
  17479. #endif
  17480. pld [r0]
  17481. uqadd8 r0, r0, r0
  17482. _ACEOF
  17483. if ac_fn_c_try_compile "$LINENO"; then :
  17484. have_arm_simd=yes
  17485. fi
  17486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17488. $as_echo "$have_arm_simd" >&6; }
  17489. CFLAGS="$save_CFLAGS"
  17490. if test x$have_arm_simd = xyes; then
  17491. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17492. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17493. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17494. fi
  17495. fi
  17496. }
  17497. CheckNEON()
  17498. {
  17499. # Check whether --enable-arm-neon was given.
  17500. if test "${enable_arm_neon+set}" = set; then :
  17501. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17502. else
  17503. enable_arm_neon=no
  17504. fi
  17505. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17506. save_CFLAGS="$CFLAGS"
  17507. have_arm_neon=no
  17508. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17510. $as_echo_n "checking for ARM NEON... " >&6; }
  17511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17512. /* end confdefs.h. */
  17513. .text
  17514. .fpu neon
  17515. .arch armv7a
  17516. .object_arch armv4
  17517. .eabi_attribute 10, 0
  17518. .arm
  17519. .altmacro
  17520. #ifndef __ARM_EABI__
  17521. #error EABI is required (to be sure that calling conventions are compatible)
  17522. #endif
  17523. pld [r0]
  17524. vmovn.u16 d0, q0
  17525. _ACEOF
  17526. if ac_fn_c_try_compile "$LINENO"; then :
  17527. have_arm_neon=yes
  17528. fi
  17529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17531. $as_echo "$have_arm_neon" >&6; }
  17532. CFLAGS="$save_CFLAGS"
  17533. if test x$have_arm_neon = xyes; then
  17534. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17535. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17536. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17537. fi
  17538. fi
  17539. }
  17540. CheckVisibilityHidden()
  17541. {
  17542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17543. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17544. have_gcc_fvisibility=no
  17545. visibility_CFLAGS="-fvisibility=hidden"
  17546. save_CFLAGS="$CFLAGS"
  17547. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17549. /* end confdefs.h. */
  17550. #if !defined(__GNUC__) || __GNUC__ < 4
  17551. #error SDL only uses visibility attributes in GCC 4 or newer
  17552. #endif
  17553. int
  17554. main ()
  17555. {
  17556. ;
  17557. return 0;
  17558. }
  17559. _ACEOF
  17560. if ac_fn_c_try_compile "$LINENO"; then :
  17561. have_gcc_fvisibility=yes
  17562. fi
  17563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17565. $as_echo "$have_gcc_fvisibility" >&6; }
  17566. CFLAGS="$save_CFLAGS"
  17567. if test x$have_gcc_fvisibility = xyes; then
  17568. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17569. fi
  17570. }
  17571. CheckNoStrictAliasing()
  17572. {
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17574. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17575. have_gcc_no_strict_aliasing=no
  17576. save_CFLAGS="$CFLAGS"
  17577. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17579. /* end confdefs.h. */
  17580. int x = 0;
  17581. int
  17582. main ()
  17583. {
  17584. ;
  17585. return 0;
  17586. }
  17587. _ACEOF
  17588. if ac_fn_c_try_compile "$LINENO"; then :
  17589. have_gcc_no_strict_aliasing=yes
  17590. fi
  17591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17593. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17594. CFLAGS="$save_CFLAGS"
  17595. if test x$have_gcc_no_strict_aliasing = xyes; then
  17596. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17597. fi
  17598. }
  17599. CheckStackBoundary()
  17600. {
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17602. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17603. have_gcc_preferred_stack_boundary=no
  17604. save_CFLAGS="$CFLAGS"
  17605. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17607. /* end confdefs.h. */
  17608. int x = 0;
  17609. int
  17610. main ()
  17611. {
  17612. ;
  17613. return 0;
  17614. }
  17615. _ACEOF
  17616. if ac_fn_c_try_compile "$LINENO"; then :
  17617. have_gcc_preferred_stack_boundary=yes
  17618. fi
  17619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17621. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17622. CFLAGS="$save_CFLAGS"
  17623. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17624. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17625. fi
  17626. }
  17627. CheckDeclarationAfterStatement()
  17628. {
  17629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17630. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17631. have_gcc_declaration_after_statement=no
  17632. save_CFLAGS="$CFLAGS"
  17633. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17635. /* end confdefs.h. */
  17636. int x = 0;
  17637. int
  17638. main ()
  17639. {
  17640. ;
  17641. return 0;
  17642. }
  17643. _ACEOF
  17644. if ac_fn_c_try_compile "$LINENO"; then :
  17645. have_gcc_declaration_after_statement=yes
  17646. fi
  17647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17649. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17650. CFLAGS="$save_CFLAGS"
  17651. if test x$have_gcc_declaration_after_statement = xyes; then
  17652. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17653. fi
  17654. }
  17655. CheckWarnAll()
  17656. {
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17658. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17659. have_gcc_Wall=no
  17660. save_CFLAGS="$CFLAGS"
  17661. CFLAGS="$save_CFLAGS -Wall"
  17662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17663. /* end confdefs.h. */
  17664. int x = 0;
  17665. int
  17666. main ()
  17667. {
  17668. ;
  17669. return 0;
  17670. }
  17671. _ACEOF
  17672. if ac_fn_c_try_compile "$LINENO"; then :
  17673. have_gcc_Wall=yes
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17677. $as_echo "$have_gcc_Wall" >&6; }
  17678. CFLAGS="$save_CFLAGS"
  17679. if test x$have_gcc_Wall = xyes; then
  17680. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17682. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17683. need_gcc_Wno_multichar=no
  17684. case "$host" in
  17685. *-*-haiku*)
  17686. need_gcc_Wno_multichar=yes
  17687. ;;
  17688. esac
  17689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17690. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17691. if test x$need_gcc_Wno_multichar = xyes; then
  17692. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17693. fi
  17694. fi
  17695. }
  17696. CheckWayland()
  17697. {
  17698. # Check whether --enable-video-wayland was given.
  17699. if test "${enable_video_wayland+set}" = set; then :
  17700. enableval=$enable_video_wayland;
  17701. else
  17702. enable_video_wayland=yes
  17703. fi
  17704. # Check whether --enable-video-wayland-qt-touch was given.
  17705. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17706. enableval=$enable_video_wayland_qt_touch;
  17707. else
  17708. enable_video_wayland_qt_touch=yes
  17709. fi
  17710. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17712. $as_echo_n "checking for Wayland support... " >&6; }
  17713. video_wayland=no
  17714. if test x$video_opengl_egl = xyes && \
  17715. test x$video_opengles_v2 = xyes; then
  17716. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17717. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17718. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17719. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17720. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17721. WAYLAND_SCANNER_CODE_MODE=private-code
  17722. else
  17723. WAYLAND_SCANNER_CODE_MODE=code
  17724. fi
  17725. video_wayland=yes
  17726. fi
  17727. fi
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17729. $as_echo "$video_wayland" >&6; }
  17730. if test x$video_wayland = xyes; then
  17731. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17732. if test x$enable_video_wayland_qt_touch = xyes; then
  17733. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17734. fi
  17735. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17736. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17737. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17738. # Check whether --enable-wayland-shared was given.
  17739. if test "${enable_wayland_shared+set}" = set; then :
  17740. enableval=$enable_wayland_shared;
  17741. else
  17742. enable_wayland_shared=maybe
  17743. fi
  17744. case "$host" in
  17745. *)
  17746. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17747. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17748. if test x$wayland_egl_lib = x; then
  17749. # This works in Ubuntu 13.10, maybe others
  17750. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17751. fi
  17752. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17753. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17754. ;;
  17755. esac
  17756. if test x$enable_wayland_shared = xmaybe; then
  17757. enable_wayland_shared=yes
  17758. fi
  17759. if test x$have_loadso != xyes && \
  17760. test x$enable_wayland_shared = xyes; then
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17762. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17763. enable_wayland_shared=no
  17764. fi
  17765. if test x$have_loadso = xyes && \
  17766. test x$enable_wayland_shared = xyes && \
  17767. test x$wayland_client_lib != x && \
  17768. test x$wayland_egl_lib != x && \
  17769. test x$wayland_cursor_lib != x && \
  17770. test x$xkbcommon_lib != x; then
  17771. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17772. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17773. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17774. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17775. cat >>confdefs.h <<_ACEOF
  17776. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17777. _ACEOF
  17778. cat >>confdefs.h <<_ACEOF
  17779. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17780. _ACEOF
  17781. cat >>confdefs.h <<_ACEOF
  17782. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17783. _ACEOF
  17784. cat >>confdefs.h <<_ACEOF
  17785. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17786. _ACEOF
  17787. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17788. else
  17789. enable_wayland_shared=no
  17790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17791. SUMMARY_video="${SUMMARY_video} wayland"
  17792. fi
  17793. have_video=yes
  17794. # Check whether --enable-libdecor was given.
  17795. if test "${enable_libdecor+set}" = set; then :
  17796. enableval=$enable_libdecor;
  17797. else
  17798. enable_libdecor=yes
  17799. fi
  17800. if test x$enable_libdecor = xyes; then
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17802. $as_echo_n "checking for libdecor support... " >&6; }
  17803. if $PKG_CONFIG --exists libdecor-0; then :
  17804. video_libdecor=yes
  17805. else
  17806. video_libdecor=no
  17807. fi
  17808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17809. $as_echo "$video_libdecor" >&6; }
  17810. if test x$video_libdecor = xyes; then
  17811. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17812. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17813. # Check whether --enable-libdecor-shared was given.
  17814. if test "${enable_libdecor_shared+set}" = set; then :
  17815. enableval=$enable_libdecor_shared;
  17816. else
  17817. enable_libdecor_shared=yes
  17818. fi
  17819. if test x$enable_wayland_shared != xyes; then
  17820. enable_libdecor_shared=no
  17821. fi
  17822. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17823. if test x$have_loadso != xyes && \
  17824. test x$enable_libdecor_shared = xyes; then
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17826. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17827. fi
  17828. if test x$have_loadso = xyes && \
  17829. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17830. echo "-- dynamic libdecor -> $decor_lib"
  17831. cat >>confdefs.h <<_ACEOF
  17832. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17833. _ACEOF
  17834. else
  17835. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17836. fi
  17837. fi
  17838. fi
  17839. fi
  17840. fi
  17841. }
  17842. CheckNativeClient()
  17843. {
  17844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17845. /* end confdefs.h. */
  17846. #if !defined(__native_client__)
  17847. #error "NO NACL"
  17848. #endif
  17849. int
  17850. main ()
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. if ac_fn_c_try_compile "$LINENO"; then :
  17857. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17858. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17859. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17860. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17861. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17862. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17863. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17864. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17865. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17866. SUMMARY_audio="${SUMMARY_audio} nacl"
  17867. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17868. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17869. fi
  17870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17871. }
  17872. CheckRPI()
  17873. {
  17874. # Check whether --enable-video-rpi was given.
  17875. if test "${enable_video_rpi+set}" = set; then :
  17876. enableval=$enable_video_rpi;
  17877. else
  17878. enable_video_rpi=yes
  17879. fi
  17880. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17881. pkg_failed=no
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17883. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17884. if test -n "$RPI_CFLAGS"; then
  17885. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17886. elif test -n "$PKG_CONFIG"; then
  17887. if test -n "$PKG_CONFIG" && \
  17888. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17889. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17890. ac_status=$?
  17891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17892. test $ac_status = 0; }; then
  17893. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17894. test "x$?" != "x0" && pkg_failed=yes
  17895. else
  17896. pkg_failed=yes
  17897. fi
  17898. else
  17899. pkg_failed=untried
  17900. fi
  17901. if test -n "$RPI_LIBS"; then
  17902. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17903. elif test -n "$PKG_CONFIG"; then
  17904. if test -n "$PKG_CONFIG" && \
  17905. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17906. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17907. ac_status=$?
  17908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17909. test $ac_status = 0; }; then
  17910. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17911. test "x$?" != "x0" && pkg_failed=yes
  17912. else
  17913. pkg_failed=yes
  17914. fi
  17915. else
  17916. pkg_failed=untried
  17917. fi
  17918. if test $pkg_failed = yes; then
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17920. $as_echo "no" >&6; }
  17921. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17922. _pkg_short_errors_supported=yes
  17923. else
  17924. _pkg_short_errors_supported=no
  17925. fi
  17926. if test $_pkg_short_errors_supported = yes; then
  17927. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17928. else
  17929. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17930. fi
  17931. # Put the nasty error message in config.log where it belongs
  17932. echo "$RPI_PKG_ERRORS" >&5
  17933. video_rpi=no
  17934. elif test $pkg_failed = untried; then
  17935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17936. $as_echo "no" >&6; }
  17937. video_rpi=no
  17938. else
  17939. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17940. RPI_LIBS=$pkg_cv_RPI_LIBS
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17942. $as_echo "yes" >&6; }
  17943. video_rpi=yes
  17944. fi
  17945. if test x$video_rpi = xno; then
  17946. if test x$ARCH = xnetbsd; then
  17947. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17948. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17949. else
  17950. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17951. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17952. fi
  17953. fi
  17954. # Save the original compiler flags and libraries
  17955. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17956. # Add the Raspberry Pi compiler flags and libraries
  17957. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17959. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17960. have_video_rpi=no
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. #include <bcm_host.h>
  17964. #include <EGL/eglplatform.h>
  17965. int
  17966. main ()
  17967. {
  17968. EGL_DISPMANX_WINDOW_T window;
  17969. bcm_host_init();
  17970. ;
  17971. return 0;
  17972. }
  17973. _ACEOF
  17974. if ac_fn_c_try_link "$LINENO"; then :
  17975. have_video_rpi=yes
  17976. fi
  17977. rm -f core conftest.err conftest.$ac_objext \
  17978. conftest$ac_exeext conftest.$ac_ext
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17980. $as_echo "$have_video_rpi" >&6; }
  17981. # Restore the compiler flags and libraries
  17982. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17983. if test x$have_video_rpi = xyes; then
  17984. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17985. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17986. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17988. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17989. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17990. SUMMARY_video="${SUMMARY_video} rpi"
  17991. fi
  17992. fi
  17993. }
  17994. CheckX11()
  17995. {
  17996. # Check whether --enable-video-x11 was given.
  17997. if test "${enable_video_x11+set}" = set; then :
  17998. enableval=$enable_video_x11;
  17999. else
  18000. enable_video_x11=yes
  18001. fi
  18002. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18003. case "$host" in
  18004. *-*-darwin*)
  18005. # This isn't necessary for X11, but fixes GLX detection
  18006. if test "x$x_includes" = xNONE && \
  18007. test "x$x_libraries" = xNONE && \
  18008. test -d /opt/X11/include && \
  18009. test -d /opt/X11/lib; then
  18010. x_includes="/opt/X11/include"
  18011. x_libraries="/opt/X11/lib"
  18012. fi
  18013. ;;
  18014. esac
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18016. $as_echo_n "checking for X... " >&6; }
  18017. # Check whether --with-x was given.
  18018. if test "${with_x+set}" = set; then :
  18019. withval=$with_x;
  18020. fi
  18021. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18022. if test "x$with_x" = xno; then
  18023. # The user explicitly disabled X.
  18024. have_x=disabled
  18025. else
  18026. case $x_includes,$x_libraries in #(
  18027. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18028. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18029. $as_echo_n "(cached) " >&6
  18030. else
  18031. # One or both of the vars are not set, and there is no cached value.
  18032. ac_x_includes=no
  18033. ac_x_libraries=no
  18034. # Do we need to do anything special at all?
  18035. ac_save_LIBS=$LIBS
  18036. LIBS="-lX11 $LIBS"
  18037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18038. /* end confdefs.h. */
  18039. #include <X11/Xlib.h>
  18040. int
  18041. main ()
  18042. {
  18043. XrmInitialize ()
  18044. ;
  18045. return 0;
  18046. }
  18047. _ACEOF
  18048. if ac_fn_c_try_link "$LINENO"; then :
  18049. # We can compile and link X programs with no special options.
  18050. ac_x_includes=
  18051. ac_x_libraries=
  18052. fi
  18053. rm -f core conftest.err conftest.$ac_objext \
  18054. conftest$ac_exeext conftest.$ac_ext
  18055. LIBS="$ac_save_LIBS"
  18056. # If that didn't work, only try xmkmf and filesystem searches
  18057. # for native compilation.
  18058. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18059. rm -f -r conftest.dir
  18060. if mkdir conftest.dir; then
  18061. cd conftest.dir
  18062. cat >Imakefile <<'_ACEOF'
  18063. incroot:
  18064. @echo incroot='${INCROOT}'
  18065. usrlibdir:
  18066. @echo usrlibdir='${USRLIBDIR}'
  18067. libdir:
  18068. @echo libdir='${LIBDIR}'
  18069. _ACEOF
  18070. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18071. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18072. for ac_var in incroot usrlibdir libdir; do
  18073. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18074. done
  18075. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18076. for ac_extension in a so sl dylib la dll; do
  18077. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18078. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18079. ac_im_usrlibdir=$ac_im_libdir; break
  18080. fi
  18081. done
  18082. # Screen out bogus values from the imake configuration. They are
  18083. # bogus both because they are the default anyway, and because
  18084. # using them would break gcc on systems where it needs fixed includes.
  18085. case $ac_im_incroot in
  18086. /usr/include) ac_x_includes= ;;
  18087. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18088. esac
  18089. case $ac_im_usrlibdir in
  18090. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18091. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18092. esac
  18093. fi
  18094. cd ..
  18095. rm -f -r conftest.dir
  18096. fi
  18097. # Standard set of common directories for X headers.
  18098. # Check X11 before X11Rn because it is often a symlink to the current release.
  18099. ac_x_header_dirs='
  18100. /usr/X11/include
  18101. /usr/X11R7/include
  18102. /usr/X11R6/include
  18103. /usr/X11R5/include
  18104. /usr/X11R4/include
  18105. /usr/include/X11
  18106. /usr/include/X11R7
  18107. /usr/include/X11R6
  18108. /usr/include/X11R5
  18109. /usr/include/X11R4
  18110. /usr/local/X11/include
  18111. /usr/local/X11R7/include
  18112. /usr/local/X11R6/include
  18113. /usr/local/X11R5/include
  18114. /usr/local/X11R4/include
  18115. /usr/local/include/X11
  18116. /usr/local/include/X11R7
  18117. /usr/local/include/X11R6
  18118. /usr/local/include/X11R5
  18119. /usr/local/include/X11R4
  18120. /opt/X11/include
  18121. /usr/X386/include
  18122. /usr/x386/include
  18123. /usr/XFree86/include/X11
  18124. /usr/include
  18125. /usr/local/include
  18126. /usr/unsupported/include
  18127. /usr/athena/include
  18128. /usr/local/x11r5/include
  18129. /usr/lpp/Xamples/include
  18130. /usr/openwin/include
  18131. /usr/openwin/share/include'
  18132. if test "$ac_x_includes" = no; then
  18133. # Guess where to find include files, by looking for Xlib.h.
  18134. # First, try using that file with no special directory specified.
  18135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18136. /* end confdefs.h. */
  18137. #include <X11/Xlib.h>
  18138. _ACEOF
  18139. if ac_fn_c_try_cpp "$LINENO"; then :
  18140. # We can compile using X headers with no special include directory.
  18141. ac_x_includes=
  18142. else
  18143. for ac_dir in $ac_x_header_dirs; do
  18144. if test -r "$ac_dir/X11/Xlib.h"; then
  18145. ac_x_includes=$ac_dir
  18146. break
  18147. fi
  18148. done
  18149. fi
  18150. rm -f conftest.err conftest.i conftest.$ac_ext
  18151. fi # $ac_x_includes = no
  18152. if test "$ac_x_libraries" = no; then
  18153. # Check for the libraries.
  18154. # See if we find them without any special options.
  18155. # Don't add to $LIBS permanently.
  18156. ac_save_LIBS=$LIBS
  18157. LIBS="-lX11 $LIBS"
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #include <X11/Xlib.h>
  18161. int
  18162. main ()
  18163. {
  18164. XrmInitialize ()
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_link "$LINENO"; then :
  18170. LIBS=$ac_save_LIBS
  18171. # We can link X programs with no special library path.
  18172. ac_x_libraries=
  18173. else
  18174. LIBS=$ac_save_LIBS
  18175. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18176. do
  18177. # Don't even attempt the hair of trying to link an X program!
  18178. for ac_extension in a so sl dylib la dll; do
  18179. if test -r "$ac_dir/libX11.$ac_extension"; then
  18180. ac_x_libraries=$ac_dir
  18181. break 2
  18182. fi
  18183. done
  18184. done
  18185. fi
  18186. rm -f core conftest.err conftest.$ac_objext \
  18187. conftest$ac_exeext conftest.$ac_ext
  18188. fi # $ac_x_libraries = no
  18189. fi
  18190. # Record the results.
  18191. case $ac_x_includes,$ac_x_libraries in #(
  18192. no,* | *,no | *\'*) :
  18193. # Didn't find X, or a directory has "'" in its name.
  18194. ac_cv_have_x="have_x=no" ;; #(
  18195. *) :
  18196. # Record where we found X for the cache.
  18197. ac_cv_have_x="have_x=yes\
  18198. ac_x_includes='$ac_x_includes'\
  18199. ac_x_libraries='$ac_x_libraries'" ;;
  18200. esac
  18201. fi
  18202. ;; #(
  18203. *) have_x=yes;;
  18204. esac
  18205. eval "$ac_cv_have_x"
  18206. fi # $with_x != no
  18207. if test "$have_x" != yes; then
  18208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18209. $as_echo "$have_x" >&6; }
  18210. no_x=yes
  18211. else
  18212. # If each of the values was on the command line, it overrides each guess.
  18213. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18214. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18215. # Update the cache value to reflect the command line values.
  18216. ac_cv_have_x="have_x=yes\
  18217. ac_x_includes='$x_includes'\
  18218. ac_x_libraries='$x_libraries'"
  18219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18220. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18221. fi
  18222. if test "$no_x" = yes; then
  18223. # Not all programs may use this symbol, but it does not hurt to define it.
  18224. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18225. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18226. else
  18227. if test -n "$x_includes"; then
  18228. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18229. fi
  18230. # It would also be nice to do this for all -L options, not just this one.
  18231. if test -n "$x_libraries"; then
  18232. X_LIBS="$X_LIBS -L$x_libraries"
  18233. # For Solaris; some versions of Sun CC require a space after -R and
  18234. # others require no space. Words are not sufficient . . . .
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18236. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18237. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18238. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18239. ac_c_werror_flag=yes
  18240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18241. /* end confdefs.h. */
  18242. int
  18243. main ()
  18244. {
  18245. ;
  18246. return 0;
  18247. }
  18248. _ACEOF
  18249. if ac_fn_c_try_link "$LINENO"; then :
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18251. $as_echo "no" >&6; }
  18252. X_LIBS="$X_LIBS -R$x_libraries"
  18253. else
  18254. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18256. /* end confdefs.h. */
  18257. int
  18258. main ()
  18259. {
  18260. ;
  18261. return 0;
  18262. }
  18263. _ACEOF
  18264. if ac_fn_c_try_link "$LINENO"; then :
  18265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18266. $as_echo "yes" >&6; }
  18267. X_LIBS="$X_LIBS -R $x_libraries"
  18268. else
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18270. $as_echo "neither works" >&6; }
  18271. fi
  18272. rm -f core conftest.err conftest.$ac_objext \
  18273. conftest$ac_exeext conftest.$ac_ext
  18274. fi
  18275. rm -f core conftest.err conftest.$ac_objext \
  18276. conftest$ac_exeext conftest.$ac_ext
  18277. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18278. LIBS=$ac_xsave_LIBS
  18279. fi
  18280. # Check for system-dependent libraries X programs must link with.
  18281. # Do this before checking for the system-independent R6 libraries
  18282. # (-lICE), since we may need -lsocket or whatever for X linking.
  18283. if test "$ISC" = yes; then
  18284. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18285. else
  18286. # Martyn Johnson says this is needed for Ultrix, if the X
  18287. # libraries were built with DECnet support. And Karl Berry says
  18288. # the Alpha needs dnet_stub (dnet does not exist).
  18289. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18291. /* end confdefs.h. */
  18292. /* Override any GCC internal prototype to avoid an error.
  18293. Use char because int might match the return type of a GCC
  18294. builtin and then its argument prototype would still apply. */
  18295. #ifdef __cplusplus
  18296. extern "C"
  18297. #endif
  18298. char XOpenDisplay ();
  18299. int
  18300. main ()
  18301. {
  18302. return XOpenDisplay ();
  18303. ;
  18304. return 0;
  18305. }
  18306. _ACEOF
  18307. if ac_fn_c_try_link "$LINENO"; then :
  18308. else
  18309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18310. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18311. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18312. $as_echo_n "(cached) " >&6
  18313. else
  18314. ac_check_lib_save_LIBS=$LIBS
  18315. LIBS="-ldnet $LIBS"
  18316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18317. /* end confdefs.h. */
  18318. /* Override any GCC internal prototype to avoid an error.
  18319. Use char because int might match the return type of a GCC
  18320. builtin and then its argument prototype would still apply. */
  18321. #ifdef __cplusplus
  18322. extern "C"
  18323. #endif
  18324. char dnet_ntoa ();
  18325. int
  18326. main ()
  18327. {
  18328. return dnet_ntoa ();
  18329. ;
  18330. return 0;
  18331. }
  18332. _ACEOF
  18333. if ac_fn_c_try_link "$LINENO"; then :
  18334. ac_cv_lib_dnet_dnet_ntoa=yes
  18335. else
  18336. ac_cv_lib_dnet_dnet_ntoa=no
  18337. fi
  18338. rm -f core conftest.err conftest.$ac_objext \
  18339. conftest$ac_exeext conftest.$ac_ext
  18340. LIBS=$ac_check_lib_save_LIBS
  18341. fi
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18343. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18344. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18345. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18346. fi
  18347. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18349. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18350. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18351. $as_echo_n "(cached) " >&6
  18352. else
  18353. ac_check_lib_save_LIBS=$LIBS
  18354. LIBS="-ldnet_stub $LIBS"
  18355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18356. /* end confdefs.h. */
  18357. /* Override any GCC internal prototype to avoid an error.
  18358. Use char because int might match the return type of a GCC
  18359. builtin and then its argument prototype would still apply. */
  18360. #ifdef __cplusplus
  18361. extern "C"
  18362. #endif
  18363. char dnet_ntoa ();
  18364. int
  18365. main ()
  18366. {
  18367. return dnet_ntoa ();
  18368. ;
  18369. return 0;
  18370. }
  18371. _ACEOF
  18372. if ac_fn_c_try_link "$LINENO"; then :
  18373. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18374. else
  18375. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext \
  18378. conftest$ac_exeext conftest.$ac_ext
  18379. LIBS=$ac_check_lib_save_LIBS
  18380. fi
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18382. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18383. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18384. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18385. fi
  18386. fi
  18387. fi
  18388. rm -f core conftest.err conftest.$ac_objext \
  18389. conftest$ac_exeext conftest.$ac_ext
  18390. LIBS="$ac_xsave_LIBS"
  18391. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18392. # to get the SysV transport functions.
  18393. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18394. # needs -lnsl.
  18395. # The nsl library prevents programs from opening the X display
  18396. # on Irix 5.2, according to T.E. Dickey.
  18397. # The functions gethostbyname, getservbyname, and inet_addr are
  18398. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18399. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18400. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18401. fi
  18402. if test $ac_cv_func_gethostbyname = no; then
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18404. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18405. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18406. $as_echo_n "(cached) " >&6
  18407. else
  18408. ac_check_lib_save_LIBS=$LIBS
  18409. LIBS="-lnsl $LIBS"
  18410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18411. /* end confdefs.h. */
  18412. /* Override any GCC internal prototype to avoid an error.
  18413. Use char because int might match the return type of a GCC
  18414. builtin and then its argument prototype would still apply. */
  18415. #ifdef __cplusplus
  18416. extern "C"
  18417. #endif
  18418. char gethostbyname ();
  18419. int
  18420. main ()
  18421. {
  18422. return gethostbyname ();
  18423. ;
  18424. return 0;
  18425. }
  18426. _ACEOF
  18427. if ac_fn_c_try_link "$LINENO"; then :
  18428. ac_cv_lib_nsl_gethostbyname=yes
  18429. else
  18430. ac_cv_lib_nsl_gethostbyname=no
  18431. fi
  18432. rm -f core conftest.err conftest.$ac_objext \
  18433. conftest$ac_exeext conftest.$ac_ext
  18434. LIBS=$ac_check_lib_save_LIBS
  18435. fi
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18437. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18438. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18439. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18440. fi
  18441. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18443. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18444. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18445. $as_echo_n "(cached) " >&6
  18446. else
  18447. ac_check_lib_save_LIBS=$LIBS
  18448. LIBS="-lbsd $LIBS"
  18449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18450. /* end confdefs.h. */
  18451. /* Override any GCC internal prototype to avoid an error.
  18452. Use char because int might match the return type of a GCC
  18453. builtin and then its argument prototype would still apply. */
  18454. #ifdef __cplusplus
  18455. extern "C"
  18456. #endif
  18457. char gethostbyname ();
  18458. int
  18459. main ()
  18460. {
  18461. return gethostbyname ();
  18462. ;
  18463. return 0;
  18464. }
  18465. _ACEOF
  18466. if ac_fn_c_try_link "$LINENO"; then :
  18467. ac_cv_lib_bsd_gethostbyname=yes
  18468. else
  18469. ac_cv_lib_bsd_gethostbyname=no
  18470. fi
  18471. rm -f core conftest.err conftest.$ac_objext \
  18472. conftest$ac_exeext conftest.$ac_ext
  18473. LIBS=$ac_check_lib_save_LIBS
  18474. fi
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18476. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18477. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18478. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18479. fi
  18480. fi
  18481. fi
  18482. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18483. # socket/setsockopt and other routines are undefined under SCO ODT
  18484. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18485. # on later versions), says Simon Leinen: it contains gethostby*
  18486. # variants that don't use the name server (or something). -lsocket
  18487. # must be given before -lnsl if both are needed. We assume that
  18488. # if connect needs -lnsl, so does gethostbyname.
  18489. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18490. if test "x$ac_cv_func_connect" = xyes; then :
  18491. fi
  18492. if test $ac_cv_func_connect = no; then
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18494. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18495. if ${ac_cv_lib_socket_connect+:} false; then :
  18496. $as_echo_n "(cached) " >&6
  18497. else
  18498. ac_check_lib_save_LIBS=$LIBS
  18499. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18501. /* end confdefs.h. */
  18502. /* Override any GCC internal prototype to avoid an error.
  18503. Use char because int might match the return type of a GCC
  18504. builtin and then its argument prototype would still apply. */
  18505. #ifdef __cplusplus
  18506. extern "C"
  18507. #endif
  18508. char connect ();
  18509. int
  18510. main ()
  18511. {
  18512. return connect ();
  18513. ;
  18514. return 0;
  18515. }
  18516. _ACEOF
  18517. if ac_fn_c_try_link "$LINENO"; then :
  18518. ac_cv_lib_socket_connect=yes
  18519. else
  18520. ac_cv_lib_socket_connect=no
  18521. fi
  18522. rm -f core conftest.err conftest.$ac_objext \
  18523. conftest$ac_exeext conftest.$ac_ext
  18524. LIBS=$ac_check_lib_save_LIBS
  18525. fi
  18526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18527. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18528. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18529. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18530. fi
  18531. fi
  18532. # Guillermo Gomez says -lposix is necessary on A/UX.
  18533. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18534. if test "x$ac_cv_func_remove" = xyes; then :
  18535. fi
  18536. if test $ac_cv_func_remove = no; then
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18538. $as_echo_n "checking for remove in -lposix... " >&6; }
  18539. if ${ac_cv_lib_posix_remove+:} false; then :
  18540. $as_echo_n "(cached) " >&6
  18541. else
  18542. ac_check_lib_save_LIBS=$LIBS
  18543. LIBS="-lposix $LIBS"
  18544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18545. /* end confdefs.h. */
  18546. /* Override any GCC internal prototype to avoid an error.
  18547. Use char because int might match the return type of a GCC
  18548. builtin and then its argument prototype would still apply. */
  18549. #ifdef __cplusplus
  18550. extern "C"
  18551. #endif
  18552. char remove ();
  18553. int
  18554. main ()
  18555. {
  18556. return remove ();
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_link "$LINENO"; then :
  18562. ac_cv_lib_posix_remove=yes
  18563. else
  18564. ac_cv_lib_posix_remove=no
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext \
  18567. conftest$ac_exeext conftest.$ac_ext
  18568. LIBS=$ac_check_lib_save_LIBS
  18569. fi
  18570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18571. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18572. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18573. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18574. fi
  18575. fi
  18576. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18577. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18578. if test "x$ac_cv_func_shmat" = xyes; then :
  18579. fi
  18580. if test $ac_cv_func_shmat = no; then
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18582. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18583. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18584. $as_echo_n "(cached) " >&6
  18585. else
  18586. ac_check_lib_save_LIBS=$LIBS
  18587. LIBS="-lipc $LIBS"
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. /* Override any GCC internal prototype to avoid an error.
  18591. Use char because int might match the return type of a GCC
  18592. builtin and then its argument prototype would still apply. */
  18593. #ifdef __cplusplus
  18594. extern "C"
  18595. #endif
  18596. char shmat ();
  18597. int
  18598. main ()
  18599. {
  18600. return shmat ();
  18601. ;
  18602. return 0;
  18603. }
  18604. _ACEOF
  18605. if ac_fn_c_try_link "$LINENO"; then :
  18606. ac_cv_lib_ipc_shmat=yes
  18607. else
  18608. ac_cv_lib_ipc_shmat=no
  18609. fi
  18610. rm -f core conftest.err conftest.$ac_objext \
  18611. conftest$ac_exeext conftest.$ac_ext
  18612. LIBS=$ac_check_lib_save_LIBS
  18613. fi
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18615. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18616. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18617. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18618. fi
  18619. fi
  18620. fi
  18621. # Check for libraries that X11R6 Xt/Xaw programs need.
  18622. ac_save_LDFLAGS=$LDFLAGS
  18623. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18624. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18625. # check for ICE first), but we must link in the order -lSM -lICE or
  18626. # we get undefined symbols. So assume we have SM if we have ICE.
  18627. # These have to be linked with before -lX11, unlike the other
  18628. # libraries we check for below, so use a different variable.
  18629. # John Interrante, Karl Berry
  18630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18631. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18632. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18633. $as_echo_n "(cached) " >&6
  18634. else
  18635. ac_check_lib_save_LIBS=$LIBS
  18636. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18638. /* end confdefs.h. */
  18639. /* Override any GCC internal prototype to avoid an error.
  18640. Use char because int might match the return type of a GCC
  18641. builtin and then its argument prototype would still apply. */
  18642. #ifdef __cplusplus
  18643. extern "C"
  18644. #endif
  18645. char IceConnectionNumber ();
  18646. int
  18647. main ()
  18648. {
  18649. return IceConnectionNumber ();
  18650. ;
  18651. return 0;
  18652. }
  18653. _ACEOF
  18654. if ac_fn_c_try_link "$LINENO"; then :
  18655. ac_cv_lib_ICE_IceConnectionNumber=yes
  18656. else
  18657. ac_cv_lib_ICE_IceConnectionNumber=no
  18658. fi
  18659. rm -f core conftest.err conftest.$ac_objext \
  18660. conftest$ac_exeext conftest.$ac_ext
  18661. LIBS=$ac_check_lib_save_LIBS
  18662. fi
  18663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18664. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18665. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18666. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18667. fi
  18668. LDFLAGS=$ac_save_LDFLAGS
  18669. fi
  18670. if test x$have_x = xyes; then
  18671. # Check whether --enable-x11-shared was given.
  18672. if test "${enable_x11_shared+set}" = set; then :
  18673. enableval=$enable_x11_shared;
  18674. else
  18675. enable_x11_shared=maybe
  18676. fi
  18677. case "$host" in
  18678. *-*-darwin*)
  18679. # Apple now puts this in /opt/X11
  18680. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18681. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18682. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18683. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18684. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18685. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18686. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18687. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18688. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18689. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18690. ;;
  18691. *-*-openbsd*)
  18692. x11_lib='libX11.so'
  18693. x11ext_lib='libXext.so'
  18694. xcursor_lib='libXcursor.so'
  18695. xinerama_lib='libXinerama.so'
  18696. xinput_lib='libXi.so'
  18697. xfixes_lib='libXfixes.so'
  18698. xrandr_lib='libXrandr.so'
  18699. xrender_lib='libXrender.so'
  18700. xss_lib='libXss.so'
  18701. xvidmode_lib='libXxf86vm.so'
  18702. ;;
  18703. *)
  18704. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18705. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18706. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18707. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18708. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18709. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18710. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18711. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18712. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18713. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18714. ;;
  18715. esac
  18716. if test x$ac_cv_func_shmat != xyes; then
  18717. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18718. fi
  18719. CFLAGS="$CFLAGS $X_CFLAGS"
  18720. LDFLAGS="$LDFLAGS $X_LIBS"
  18721. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18722. #include <X11/Xproto.h>
  18723. "
  18724. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18725. have_xext_h_hdr=yes
  18726. else
  18727. have_xext_h_hdr=no
  18728. fi
  18729. if test x$have_xext_h_hdr != xyes; then
  18730. as_fn_error $? "
  18731. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18732. " "$LINENO" 5
  18733. fi
  18734. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18735. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18736. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18737. # Needed so SDL applications can include SDL_syswm.h
  18738. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18739. if test x$enable_x11_shared = xmaybe; then
  18740. enable_x11_shared=yes
  18741. fi
  18742. if test x$have_loadso != xyes && \
  18743. test x$enable_x11_shared = xyes; then
  18744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18745. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18746. enable_x11_shared=no
  18747. fi
  18748. if test x$have_loadso = xyes && \
  18749. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18750. echo "-- dynamic libX11 -> $x11_lib"
  18751. echo "-- dynamic libX11ext -> $x11ext_lib"
  18752. cat >>confdefs.h <<_ACEOF
  18753. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18754. _ACEOF
  18755. cat >>confdefs.h <<_ACEOF
  18756. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18757. _ACEOF
  18758. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18759. else
  18760. enable_x11_shared=no
  18761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18762. SUMMARY_video="${SUMMARY_video} x11"
  18763. fi
  18764. have_video=yes
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18766. $as_echo_n "checking for XGenericEvent... " >&6; }
  18767. have_XGenericEvent=no
  18768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18769. /* end confdefs.h. */
  18770. #include <X11/Xlib.h>
  18771. int
  18772. main ()
  18773. {
  18774. Display *display;
  18775. XEvent event;
  18776. XGenericEventCookie *cookie = &event.xcookie;
  18777. XNextEvent(display, &event);
  18778. XGetEventData(display, cookie);
  18779. XFreeEventData(display, cookie);
  18780. ;
  18781. return 0;
  18782. }
  18783. _ACEOF
  18784. if ac_fn_c_try_compile "$LINENO"; then :
  18785. have_XGenericEvent=yes
  18786. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18787. fi
  18788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18790. $as_echo "$have_XGenericEvent" >&6; }
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18792. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18793. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18794. $as_echo_n "(cached) " >&6
  18795. else
  18796. ac_check_lib_save_LIBS=$LIBS
  18797. LIBS="-lX11 $LIBS"
  18798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18799. /* end confdefs.h. */
  18800. /* Override any GCC internal prototype to avoid an error.
  18801. Use char because int might match the return type of a GCC
  18802. builtin and then its argument prototype would still apply. */
  18803. #ifdef __cplusplus
  18804. extern "C"
  18805. #endif
  18806. char XkbKeycodeToKeysym ();
  18807. int
  18808. main ()
  18809. {
  18810. return XkbKeycodeToKeysym ();
  18811. ;
  18812. return 0;
  18813. }
  18814. _ACEOF
  18815. if ac_fn_c_try_link "$LINENO"; then :
  18816. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18817. else
  18818. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18819. fi
  18820. rm -f core conftest.err conftest.$ac_objext \
  18821. conftest$ac_exeext conftest.$ac_ext
  18822. LIBS=$ac_check_lib_save_LIBS
  18823. fi
  18824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18825. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18826. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18827. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18828. fi
  18829. # Check whether --enable-video-x11-xcursor was given.
  18830. if test "${enable_video_x11_xcursor+set}" = set; then :
  18831. enableval=$enable_video_x11_xcursor;
  18832. else
  18833. enable_video_x11_xcursor=yes
  18834. fi
  18835. if test x$enable_video_x11_xcursor = xyes; then
  18836. definitely_enable_video_x11_xcursor=no
  18837. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18838. "
  18839. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18840. have_xcursor_h_hdr=yes
  18841. else
  18842. have_xcursor_h_hdr=no
  18843. fi
  18844. if test x$have_xcursor_h_hdr = xyes; then
  18845. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18846. echo "-- dynamic libXcursor -> $xcursor_lib"
  18847. cat >>confdefs.h <<_ACEOF
  18848. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18849. _ACEOF
  18850. definitely_enable_video_x11_xcursor=yes
  18851. else
  18852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18853. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18854. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18855. $as_echo_n "(cached) " >&6
  18856. else
  18857. ac_check_lib_save_LIBS=$LIBS
  18858. LIBS="-lXcursor $LIBS"
  18859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18860. /* end confdefs.h. */
  18861. /* Override any GCC internal prototype to avoid an error.
  18862. Use char because int might match the return type of a GCC
  18863. builtin and then its argument prototype would still apply. */
  18864. #ifdef __cplusplus
  18865. extern "C"
  18866. #endif
  18867. char XcursorImageCreate ();
  18868. int
  18869. main ()
  18870. {
  18871. return XcursorImageCreate ();
  18872. ;
  18873. return 0;
  18874. }
  18875. _ACEOF
  18876. if ac_fn_c_try_link "$LINENO"; then :
  18877. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18878. else
  18879. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18880. fi
  18881. rm -f core conftest.err conftest.$ac_objext \
  18882. conftest$ac_exeext conftest.$ac_ext
  18883. LIBS=$ac_check_lib_save_LIBS
  18884. fi
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18886. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18887. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18888. have_xcursor_lib=yes
  18889. fi
  18890. if test x$have_xcursor_lib = xyes ; then
  18891. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18892. definitely_enable_video_x11_xcursor=yes
  18893. fi
  18894. fi
  18895. fi
  18896. fi
  18897. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18898. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18899. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18900. fi
  18901. # Check whether --enable-video-x11-xdbe was given.
  18902. if test "${enable_video_x11_xdbe+set}" = set; then :
  18903. enableval=$enable_video_x11_xdbe;
  18904. else
  18905. enable_video_x11_xdbe=yes
  18906. fi
  18907. if test x$enable_video_x11_xdbe = xyes; then
  18908. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18909. "
  18910. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18911. have_dbe_h_hdr=yes
  18912. else
  18913. have_dbe_h_hdr=no
  18914. fi
  18915. if test x$have_dbe_h_hdr = xyes; then
  18916. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18917. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18918. fi
  18919. fi
  18920. # Check whether --enable-video-x11-xinerama was given.
  18921. if test "${enable_video_x11_xinerama+set}" = set; then :
  18922. enableval=$enable_video_x11_xinerama;
  18923. else
  18924. enable_video_x11_xinerama=yes
  18925. fi
  18926. if test x$enable_video_x11_xinerama = xyes; then
  18927. definitely_enable_video_x11_xinerama=no
  18928. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18929. "
  18930. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18931. have_xinerama_h_hdr=yes
  18932. else
  18933. have_xinerama_h_hdr=no
  18934. fi
  18935. if test x$have_xinerama_h_hdr = xyes; then
  18936. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18937. echo "-- dynamic libXinerama -> $xinerama_lib"
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18940. _ACEOF
  18941. definitely_enable_video_x11_xinerama=yes
  18942. else
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18944. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18945. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18946. $as_echo_n "(cached) " >&6
  18947. else
  18948. ac_check_lib_save_LIBS=$LIBS
  18949. LIBS="-lXinerama $LIBS"
  18950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18951. /* end confdefs.h. */
  18952. /* Override any GCC internal prototype to avoid an error.
  18953. Use char because int might match the return type of a GCC
  18954. builtin and then its argument prototype would still apply. */
  18955. #ifdef __cplusplus
  18956. extern "C"
  18957. #endif
  18958. char XineramaQueryExtension ();
  18959. int
  18960. main ()
  18961. {
  18962. return XineramaQueryExtension ();
  18963. ;
  18964. return 0;
  18965. }
  18966. _ACEOF
  18967. if ac_fn_c_try_link "$LINENO"; then :
  18968. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18969. else
  18970. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18971. fi
  18972. rm -f core conftest.err conftest.$ac_objext \
  18973. conftest$ac_exeext conftest.$ac_ext
  18974. LIBS=$ac_check_lib_save_LIBS
  18975. fi
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18977. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18978. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18979. have_xinerama_lib=yes
  18980. fi
  18981. if test x$have_xinerama_lib = xyes ; then
  18982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18983. definitely_enable_video_x11_xinerama=yes
  18984. fi
  18985. fi
  18986. fi
  18987. fi
  18988. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18989. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18990. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18991. fi
  18992. # Check whether --enable-video-x11-xinput was given.
  18993. if test "${enable_video_x11_xinput+set}" = set; then :
  18994. enableval=$enable_video_x11_xinput;
  18995. else
  18996. enable_video_x11_xinput=yes
  18997. fi
  18998. if test x$enable_video_x11_xinput = xyes; then
  18999. definitely_enable_video_x11_xinput=no
  19000. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19001. "
  19002. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19003. have_xinput_h_hdr=yes
  19004. else
  19005. have_xinput_h_hdr=no
  19006. fi
  19007. if test x$have_xinput_h_hdr = xyes; then
  19008. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19009. echo "-- dynamic libXi -> $xinput_lib"
  19010. cat >>confdefs.h <<_ACEOF
  19011. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19012. _ACEOF
  19013. definitely_enable_video_x11_xinput=yes
  19014. else
  19015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19016. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19017. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19018. $as_echo_n "(cached) " >&6
  19019. else
  19020. ac_check_lib_save_LIBS=$LIBS
  19021. LIBS="-lXi $LIBS"
  19022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19023. /* end confdefs.h. */
  19024. /* Override any GCC internal prototype to avoid an error.
  19025. Use char because int might match the return type of a GCC
  19026. builtin and then its argument prototype would still apply. */
  19027. #ifdef __cplusplus
  19028. extern "C"
  19029. #endif
  19030. char XOpenDevice ();
  19031. int
  19032. main ()
  19033. {
  19034. return XOpenDevice ();
  19035. ;
  19036. return 0;
  19037. }
  19038. _ACEOF
  19039. if ac_fn_c_try_link "$LINENO"; then :
  19040. ac_cv_lib_Xi_XOpenDevice=yes
  19041. else
  19042. ac_cv_lib_Xi_XOpenDevice=no
  19043. fi
  19044. rm -f core conftest.err conftest.$ac_objext \
  19045. conftest$ac_exeext conftest.$ac_ext
  19046. LIBS=$ac_check_lib_save_LIBS
  19047. fi
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19049. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19050. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19051. have_xinput_lib=yes
  19052. fi
  19053. if test x$have_xinput_lib = xyes ; then
  19054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19055. definitely_enable_video_x11_xinput=yes
  19056. fi
  19057. fi
  19058. fi
  19059. fi
  19060. if test x$definitely_enable_video_x11_xinput = xyes; then
  19061. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19062. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19064. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19065. have_xinput2_multitouch=no
  19066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19067. /* end confdefs.h. */
  19068. #include <X11/Xlib.h>
  19069. #include <X11/Xproto.h>
  19070. #include <X11/extensions/XInput2.h>
  19071. int
  19072. main ()
  19073. {
  19074. int event_type = XI_TouchBegin;
  19075. XITouchClassInfo *t;
  19076. ;
  19077. return 0;
  19078. }
  19079. _ACEOF
  19080. if ac_fn_c_try_compile "$LINENO"; then :
  19081. have_xinput2_multitouch=yes
  19082. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19083. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19084. fi
  19085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19087. $as_echo "$have_xinput2_multitouch" >&6; }
  19088. fi
  19089. # Check whether --enable-video-x11-xfixes was given.
  19090. if test "${enable_video_x11_xfixes+set}" = set; then :
  19091. enableval=$enable_video_x11_xfixes;
  19092. else
  19093. enable_video_x11_xfixes=yes
  19094. fi
  19095. if test x$enable_video_x11_xfixes = xyes; then
  19096. definitely_enable_video_x11_xfixes=no
  19097. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19099. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19101. /* end confdefs.h. */
  19102. #include <X11/Xlib.h>
  19103. #include <X11/Xproto.h>
  19104. #include <X11/extensions/XInput2.h>
  19105. #include <X11/extensions/Xfixes.h>
  19106. int
  19107. main ()
  19108. {
  19109. BarrierEventID b;
  19110. ;
  19111. return 0;
  19112. }
  19113. _ACEOF
  19114. if ac_fn_c_try_compile "$LINENO"; then :
  19115. have_xfixes_h_hdr=yes
  19116. else
  19117. have_xfixes_h_hdr=no
  19118. fi
  19119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19121. $as_echo "$have_xfixes_h_hdr" >&6; }
  19122. if test x$have_xfixes_h_hdr = xyes; then
  19123. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19124. echo "-- dynamic libXfixes -> $xfixes_lib"
  19125. cat >>confdefs.h <<_ACEOF
  19126. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19127. _ACEOF
  19128. definitely_enable_video_x11_xfixes=yes
  19129. else
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19131. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19132. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19133. $as_echo_n "(cached) " >&6
  19134. else
  19135. ac_check_lib_save_LIBS=$LIBS
  19136. LIBS="-lXfixes $LIBS"
  19137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19138. /* end confdefs.h. */
  19139. /* Override any GCC internal prototype to avoid an error.
  19140. Use char because int might match the return type of a GCC
  19141. builtin and then its argument prototype would still apply. */
  19142. #ifdef __cplusplus
  19143. extern "C"
  19144. #endif
  19145. char XFixesCreatePointerBarrier ();
  19146. int
  19147. main ()
  19148. {
  19149. return XFixesCreatePointerBarrier ();
  19150. ;
  19151. return 0;
  19152. }
  19153. _ACEOF
  19154. if ac_fn_c_try_link "$LINENO"; then :
  19155. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19156. else
  19157. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19158. fi
  19159. rm -f core conftest.err conftest.$ac_objext \
  19160. conftest$ac_exeext conftest.$ac_ext
  19161. LIBS=$ac_check_lib_save_LIBS
  19162. fi
  19163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19164. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19165. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19166. have_xfixes_lib=yes
  19167. fi
  19168. if test x$have_xfixes_lib = xyes ; then
  19169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19170. definitely_enable_video_x11_xfixes=yes
  19171. fi
  19172. fi
  19173. fi
  19174. fi
  19175. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19176. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19177. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19178. fi
  19179. # Check whether --enable-video-x11-xrandr was given.
  19180. if test "${enable_video_x11_xrandr+set}" = set; then :
  19181. enableval=$enable_video_x11_xrandr;
  19182. else
  19183. enable_video_x11_xrandr=yes
  19184. fi
  19185. if test x$enable_video_x11_xrandr = xyes; then
  19186. definitely_enable_video_x11_xrandr=no
  19187. have_xrandr_h_hdr=no
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. #include <X11/Xlib.h>
  19191. #include <X11/extensions/Xrandr.h>
  19192. int
  19193. main ()
  19194. {
  19195. XRRScreenResources *res = NULL;
  19196. ;
  19197. return 0;
  19198. }
  19199. _ACEOF
  19200. if ac_fn_c_try_compile "$LINENO"; then :
  19201. have_xrandr_h_hdr=yes
  19202. fi
  19203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19204. if test x$have_xrandr_h_hdr = xyes; then
  19205. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19206. echo "-- dynamic libXrandr -> $xrandr_lib"
  19207. cat >>confdefs.h <<_ACEOF
  19208. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19209. _ACEOF
  19210. definitely_enable_video_x11_xrandr=yes
  19211. else
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19213. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19214. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19215. $as_echo_n "(cached) " >&6
  19216. else
  19217. ac_check_lib_save_LIBS=$LIBS
  19218. LIBS="-lXrandr $LIBS"
  19219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19220. /* end confdefs.h. */
  19221. /* Override any GCC internal prototype to avoid an error.
  19222. Use char because int might match the return type of a GCC
  19223. builtin and then its argument prototype would still apply. */
  19224. #ifdef __cplusplus
  19225. extern "C"
  19226. #endif
  19227. char XRRQueryExtension ();
  19228. int
  19229. main ()
  19230. {
  19231. return XRRQueryExtension ();
  19232. ;
  19233. return 0;
  19234. }
  19235. _ACEOF
  19236. if ac_fn_c_try_link "$LINENO"; then :
  19237. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19238. else
  19239. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19240. fi
  19241. rm -f core conftest.err conftest.$ac_objext \
  19242. conftest$ac_exeext conftest.$ac_ext
  19243. LIBS=$ac_check_lib_save_LIBS
  19244. fi
  19245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19246. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19247. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19248. have_xrandr_lib=yes
  19249. fi
  19250. if test x$have_xrandr_lib = xyes ; then
  19251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19252. definitely_enable_video_x11_xrandr=yes
  19253. fi
  19254. fi
  19255. fi
  19256. fi
  19257. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19258. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19259. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19260. fi
  19261. # Check whether --enable-video-x11-scrnsaver was given.
  19262. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19263. enableval=$enable_video_x11_scrnsaver;
  19264. else
  19265. enable_video_x11_scrnsaver=yes
  19266. fi
  19267. if test x$enable_video_x11_scrnsaver = xyes; then
  19268. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19269. "
  19270. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19271. have_scrnsaver_h_hdr=yes
  19272. else
  19273. have_scrnsaver_h_hdr=no
  19274. fi
  19275. if test x$have_scrnsaver_h_hdr = xyes; then
  19276. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19277. echo "-- dynamic libXss -> $xss_lib"
  19278. cat >>confdefs.h <<_ACEOF
  19279. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19280. _ACEOF
  19281. definitely_enable_video_x11_scrnsaver=yes
  19282. else
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19284. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19285. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19286. $as_echo_n "(cached) " >&6
  19287. else
  19288. ac_check_lib_save_LIBS=$LIBS
  19289. LIBS="-lXss $LIBS"
  19290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19291. /* end confdefs.h. */
  19292. /* Override any GCC internal prototype to avoid an error.
  19293. Use char because int might match the return type of a GCC
  19294. builtin and then its argument prototype would still apply. */
  19295. #ifdef __cplusplus
  19296. extern "C"
  19297. #endif
  19298. char XScreenSaverSuspend ();
  19299. int
  19300. main ()
  19301. {
  19302. return XScreenSaverSuspend ();
  19303. ;
  19304. return 0;
  19305. }
  19306. _ACEOF
  19307. if ac_fn_c_try_link "$LINENO"; then :
  19308. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19309. else
  19310. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19311. fi
  19312. rm -f core conftest.err conftest.$ac_objext \
  19313. conftest$ac_exeext conftest.$ac_ext
  19314. LIBS=$ac_check_lib_save_LIBS
  19315. fi
  19316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19317. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19318. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19319. have_xss_lib=yes
  19320. fi
  19321. if test x$have_xss_lib = xyes ; then
  19322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19323. definitely_enable_video_x11_scrnsaver=yes
  19324. fi
  19325. fi
  19326. fi
  19327. fi
  19328. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19329. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19330. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19331. fi
  19332. # Check whether --enable-video-x11-xshape was given.
  19333. if test "${enable_video_x11_xshape+set}" = set; then :
  19334. enableval=$enable_video_x11_xshape;
  19335. else
  19336. enable_video_x11_xshape=yes
  19337. fi
  19338. if test x$enable_video_x11_xshape = xyes; then
  19339. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19340. "
  19341. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19342. have_shape_h_hdr=yes
  19343. else
  19344. have_shape_h_hdr=no
  19345. fi
  19346. if test x$have_shape_h_hdr = xyes; then
  19347. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19348. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19349. fi
  19350. fi
  19351. # Check whether --enable-video-x11-vm was given.
  19352. if test "${enable_video_x11_vm+set}" = set; then :
  19353. enableval=$enable_video_x11_vm;
  19354. else
  19355. enable_video_x11_vm=yes
  19356. fi
  19357. if test x$enable_video_x11_vm = xyes; then
  19358. definitely_enable_video_x11_vm=no
  19359. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19360. "
  19361. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19362. have_vm_h_hdr=yes
  19363. else
  19364. have_vm_h_hdr=no
  19365. fi
  19366. if test x$have_vm_h_hdr = xyes; then
  19367. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19368. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19369. cat >>confdefs.h <<_ACEOF
  19370. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19371. _ACEOF
  19372. definitely_enable_video_x11_vm=yes
  19373. else
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19375. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19376. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19377. $as_echo_n "(cached) " >&6
  19378. else
  19379. ac_check_lib_save_LIBS=$LIBS
  19380. LIBS="-lXxf86vm $LIBS"
  19381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19382. /* end confdefs.h. */
  19383. /* Override any GCC internal prototype to avoid an error.
  19384. Use char because int might match the return type of a GCC
  19385. builtin and then its argument prototype would still apply. */
  19386. #ifdef __cplusplus
  19387. extern "C"
  19388. #endif
  19389. char XF86VidModeQueryVersion ();
  19390. int
  19391. main ()
  19392. {
  19393. return XF86VidModeQueryVersion ();
  19394. ;
  19395. return 0;
  19396. }
  19397. _ACEOF
  19398. if ac_fn_c_try_link "$LINENO"; then :
  19399. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19400. else
  19401. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19402. fi
  19403. rm -f core conftest.err conftest.$ac_objext \
  19404. conftest$ac_exeext conftest.$ac_ext
  19405. LIBS=$ac_check_lib_save_LIBS
  19406. fi
  19407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19408. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19409. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19410. have_vm_lib=yes
  19411. fi
  19412. if test x$have_vm_lib = xyes ; then
  19413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19414. definitely_enable_video_x11_vm=yes
  19415. fi
  19416. fi
  19417. fi
  19418. fi
  19419. if test x$definitely_enable_video_x11_vm = xyes; then
  19420. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19421. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19422. fi
  19423. fi
  19424. fi
  19425. if test x$have_x != xyes; then
  19426. # Prevent Mesa from including X11 headers
  19427. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19428. fi
  19429. }
  19430. CheckVivanteVideo()
  19431. {
  19432. # Check whether --enable-video-vivante was given.
  19433. if test "${enable_video_vivante+set}" = set; then :
  19434. enableval=$enable_video_vivante;
  19435. else
  19436. enable_video_vivante=yes
  19437. fi
  19438. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19440. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19441. have_vivante_vdk=no
  19442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19443. /* end confdefs.h. */
  19444. #define LINUX
  19445. #define EGL_API_FB
  19446. #include <gc_vdk.h>
  19447. int
  19448. main ()
  19449. {
  19450. ;
  19451. return 0;
  19452. }
  19453. _ACEOF
  19454. if ac_fn_c_try_compile "$LINENO"; then :
  19455. have_vivante_vdk=yes
  19456. fi
  19457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19459. $as_echo "$have_vivante_vdk" >&6; }
  19460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19461. $as_echo_n "checking for Vivante FB API... " >&6; }
  19462. have_vivante_egl=no
  19463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19464. /* end confdefs.h. */
  19465. #define LINUX
  19466. #define EGL_API_FB
  19467. #include <EGL/eglvivante.h>
  19468. int
  19469. main ()
  19470. {
  19471. ;
  19472. return 0;
  19473. }
  19474. _ACEOF
  19475. if ac_fn_c_try_compile "$LINENO"; then :
  19476. have_vivante_egl=yes
  19477. fi
  19478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19480. $as_echo "$have_vivante_egl" >&6; }
  19481. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19482. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19483. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19484. if test x$have_vivante_vdk = xyes; then
  19485. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19486. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19487. fi
  19488. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19489. SUMMARY_video="${SUMMARY_video} vivante"
  19490. have_video=yes
  19491. fi
  19492. fi
  19493. }
  19494. CheckHaikuVideo()
  19495. {
  19496. if test x$enable_video = xyes; then
  19497. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19498. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19499. have_video=yes
  19500. SUMMARY_video="${SUMMARY_video} haiku"
  19501. fi
  19502. }
  19503. CheckCOCOA()
  19504. {
  19505. # Check whether --enable-video-cocoa was given.
  19506. if test "${enable_video_cocoa+set}" = set; then :
  19507. enableval=$enable_video_cocoa;
  19508. else
  19509. enable_video_cocoa=yes
  19510. fi
  19511. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19512. save_CFLAGS="$CFLAGS"
  19513. CFLAGS="$CFLAGS -x objective-c"
  19514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19515. $as_echo_n "checking for Cocoa framework... " >&6; }
  19516. have_cocoa=no
  19517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19518. /* end confdefs.h. */
  19519. #import <Cocoa/Cocoa.h>
  19520. int
  19521. main ()
  19522. {
  19523. ;
  19524. return 0;
  19525. }
  19526. _ACEOF
  19527. if ac_fn_c_try_compile "$LINENO"; then :
  19528. have_cocoa=yes
  19529. fi
  19530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19532. $as_echo "$have_cocoa" >&6; }
  19533. CFLAGS="$save_CFLAGS"
  19534. if test x$have_cocoa = xyes; then
  19535. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19536. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19537. SUMMARY_video="${SUMMARY_video} cocoa"
  19538. have_video=yes
  19539. fi
  19540. fi
  19541. }
  19542. CheckMETAL()
  19543. {
  19544. # Check whether --enable-video-metal was given.
  19545. if test "${enable_video_metal+set}" = set; then :
  19546. enableval=$enable_video_metal;
  19547. else
  19548. enable_video_metal=yes
  19549. fi
  19550. # Check whether --enable-render-metal was given.
  19551. if test "${enable_render_metal+set}" = set; then :
  19552. enableval=$enable_render_metal;
  19553. else
  19554. enable_render_metal=yes
  19555. fi
  19556. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19557. save_CFLAGS="$CFLAGS"
  19558. CFLAGS="$CFLAGS -x objective-c"
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19560. $as_echo_n "checking for Metal framework... " >&6; }
  19561. have_metal=no
  19562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19563. /* end confdefs.h. */
  19564. #import <Cocoa/Cocoa.h>
  19565. #import <Metal/Metal.h>
  19566. #import <QuartzCore/CAMetalLayer.h>
  19567. #if TARGET_CPU_X86
  19568. #error Metal doesn't work on this configuration
  19569. #endif
  19570. int
  19571. main ()
  19572. {
  19573. ;
  19574. return 0;
  19575. }
  19576. _ACEOF
  19577. if ac_fn_c_try_compile "$LINENO"; then :
  19578. have_metal=yes
  19579. fi
  19580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19581. CFLAGS="$save_CFLAGS"
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19583. $as_echo "$have_metal" >&6; }
  19584. if test x$have_metal = xyes; then
  19585. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19586. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19587. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19588. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19589. fi
  19590. SUMMARY_video="${SUMMARY_video} metal"
  19591. else
  19592. enable_video_metal=no
  19593. enable_render_metal=no
  19594. fi
  19595. fi
  19596. }
  19597. CheckDirectFB()
  19598. {
  19599. # Check whether --enable-video-directfb was given.
  19600. if test "${enable_video_directfb+set}" = set; then :
  19601. enableval=$enable_video_directfb;
  19602. else
  19603. enable_video_directfb=no
  19604. fi
  19605. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19606. pkg_failed=no
  19607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19608. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19609. if test -n "$DIRECTFB_CFLAGS"; then
  19610. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19611. elif test -n "$PKG_CONFIG"; then
  19612. if test -n "$PKG_CONFIG" && \
  19613. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19614. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19615. ac_status=$?
  19616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19617. test $ac_status = 0; }; then
  19618. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19619. test "x$?" != "x0" && pkg_failed=yes
  19620. else
  19621. pkg_failed=yes
  19622. fi
  19623. else
  19624. pkg_failed=untried
  19625. fi
  19626. if test -n "$DIRECTFB_LIBS"; then
  19627. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19628. elif test -n "$PKG_CONFIG"; then
  19629. if test -n "$PKG_CONFIG" && \
  19630. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19631. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19632. ac_status=$?
  19633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19634. test $ac_status = 0; }; then
  19635. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19636. test "x$?" != "x0" && pkg_failed=yes
  19637. else
  19638. pkg_failed=yes
  19639. fi
  19640. else
  19641. pkg_failed=untried
  19642. fi
  19643. if test $pkg_failed = yes; then
  19644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19645. $as_echo "no" >&6; }
  19646. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19647. _pkg_short_errors_supported=yes
  19648. else
  19649. _pkg_short_errors_supported=no
  19650. fi
  19651. if test $_pkg_short_errors_supported = yes; then
  19652. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19653. else
  19654. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19655. fi
  19656. # Put the nasty error message in config.log where it belongs
  19657. echo "$DIRECTFB_PKG_ERRORS" >&5
  19658. video_directfb=no
  19659. elif test $pkg_failed = untried; then
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19661. $as_echo "no" >&6; }
  19662. video_directfb=no
  19663. else
  19664. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19665. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19667. $as_echo "yes" >&6; }
  19668. video_directfb=yes
  19669. fi
  19670. if test x$video_directfb = xyes; then
  19671. # SuSE 11.1 installs directfb-config without directfb-devel
  19672. save_CPPFLAGS="$CPPFLAGS"
  19673. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19674. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19675. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19676. have_directfb_hdr=yes
  19677. else
  19678. have_directfb_hdr=no
  19679. fi
  19680. CPPFLAGS="$save_CPPFLAGS"
  19681. video_directfb=$have_directfb_hdr
  19682. fi
  19683. if test x$video_directfb = xyes; then
  19684. # Check whether --enable-directfb-shared was given.
  19685. if test "${enable_directfb_shared+set}" = set; then :
  19686. enableval=$enable_directfb_shared;
  19687. else
  19688. enable_directfb_shared=yes
  19689. fi
  19690. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19691. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19692. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19693. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19694. directfb_shared=no
  19695. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19696. if test x$have_loadso != xyes && \
  19697. test x$enable_directfb_shared = xyes; then
  19698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19699. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19700. fi
  19701. if test x$have_loadso = xyes && \
  19702. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19703. directfb_shared=yes
  19704. echo "-- dynamic libdirectfb -> $directfb_lib"
  19705. cat >>confdefs.h <<_ACEOF
  19706. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19707. _ACEOF
  19708. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19709. else
  19710. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19711. SUMMARY_video="${SUMMARY_video} directfb"
  19712. fi
  19713. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19714. have_video=yes
  19715. fi
  19716. fi
  19717. }
  19718. CheckKMSDRM()
  19719. {
  19720. # Check whether --enable-video-kmsdrm was given.
  19721. if test "${enable_video_kmsdrm+set}" = set; then :
  19722. enableval=$enable_video_kmsdrm;
  19723. else
  19724. enable_video_kmsdrm=yes
  19725. fi
  19726. if test x$enable_video = xyes && \
  19727. test x$enable_video_kmsdrm = xyes && \
  19728. test x$video_opengl_egl = xyes; then
  19729. video_kmsdrm=no
  19730. pkg_failed=no
  19731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19732. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19733. if test -n "$LIBDRM_CFLAGS"; then
  19734. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19735. elif test -n "$PKG_CONFIG"; then
  19736. if test -n "$PKG_CONFIG" && \
  19737. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19738. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19739. ac_status=$?
  19740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19741. test $ac_status = 0; }; then
  19742. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19743. test "x$?" != "x0" && pkg_failed=yes
  19744. else
  19745. pkg_failed=yes
  19746. fi
  19747. else
  19748. pkg_failed=untried
  19749. fi
  19750. if test -n "$LIBDRM_LIBS"; then
  19751. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19752. elif test -n "$PKG_CONFIG"; then
  19753. if test -n "$PKG_CONFIG" && \
  19754. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19755. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19756. ac_status=$?
  19757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19758. test $ac_status = 0; }; then
  19759. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19760. test "x$?" != "x0" && pkg_failed=yes
  19761. else
  19762. pkg_failed=yes
  19763. fi
  19764. else
  19765. pkg_failed=untried
  19766. fi
  19767. if test $pkg_failed = yes; then
  19768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19769. $as_echo "no" >&6; }
  19770. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19771. _pkg_short_errors_supported=yes
  19772. else
  19773. _pkg_short_errors_supported=no
  19774. fi
  19775. if test $_pkg_short_errors_supported = yes; then
  19776. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19777. else
  19778. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19779. fi
  19780. # Put the nasty error message in config.log where it belongs
  19781. echo "$LIBDRM_PKG_ERRORS" >&5
  19782. libdrm_avail=no
  19783. elif test $pkg_failed = untried; then
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19785. $as_echo "no" >&6; }
  19786. libdrm_avail=no
  19787. else
  19788. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19789. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19791. $as_echo "yes" >&6; }
  19792. libdrm_avail=yes
  19793. fi
  19794. pkg_failed=no
  19795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19796. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19797. if test -n "$LIBGBM_CFLAGS"; then
  19798. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19799. elif test -n "$PKG_CONFIG"; then
  19800. if test -n "$PKG_CONFIG" && \
  19801. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19802. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19803. ac_status=$?
  19804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19805. test $ac_status = 0; }; then
  19806. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19807. test "x$?" != "x0" && pkg_failed=yes
  19808. else
  19809. pkg_failed=yes
  19810. fi
  19811. else
  19812. pkg_failed=untried
  19813. fi
  19814. if test -n "$LIBGBM_LIBS"; then
  19815. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19816. elif test -n "$PKG_CONFIG"; then
  19817. if test -n "$PKG_CONFIG" && \
  19818. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19819. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19820. ac_status=$?
  19821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19822. test $ac_status = 0; }; then
  19823. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19824. test "x$?" != "x0" && pkg_failed=yes
  19825. else
  19826. pkg_failed=yes
  19827. fi
  19828. else
  19829. pkg_failed=untried
  19830. fi
  19831. if test $pkg_failed = yes; then
  19832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19833. $as_echo "no" >&6; }
  19834. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19835. _pkg_short_errors_supported=yes
  19836. else
  19837. _pkg_short_errors_supported=no
  19838. fi
  19839. if test $_pkg_short_errors_supported = yes; then
  19840. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19841. else
  19842. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19843. fi
  19844. # Put the nasty error message in config.log where it belongs
  19845. echo "$LIBGBM_PKG_ERRORS" >&5
  19846. libgbm_avail=no
  19847. elif test $pkg_failed = untried; then
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19849. $as_echo "no" >&6; }
  19850. libgbm_avail=no
  19851. else
  19852. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19853. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19855. $as_echo "yes" >&6; }
  19856. libgbm_avail=yes
  19857. fi
  19858. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19859. video_kmsdrm=yes
  19860. fi
  19861. if test x$video_kmsdrm = xyes; then
  19862. # Check whether --enable-kmsdrm-shared was given.
  19863. if test "${enable_kmsdrm_shared+set}" = set; then :
  19864. enableval=$enable_kmsdrm_shared;
  19865. else
  19866. enable_kmsdrm_shared=yes
  19867. fi
  19868. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19869. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19870. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19872. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19873. kmsdrm_shared=no
  19874. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19875. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19876. if test x$have_loadso != xyes && \
  19877. test x$enable_kmsdrm_shared = xyes; then
  19878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19879. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19880. fi
  19881. if test x$have_loadso = xyes && \
  19882. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19883. kmsdrm_shared=yes
  19884. cat >>confdefs.h <<_ACEOF
  19885. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19886. _ACEOF
  19887. cat >>confdefs.h <<_ACEOF
  19888. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19889. _ACEOF
  19890. cat >>confdefs.h <<_ACEOF
  19891. #define HAVE_KMSDRM_SHARED "TRUE"
  19892. _ACEOF
  19893. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19894. else
  19895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19896. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19897. fi
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19899. $as_echo "$kmsdrm_shared" >&6; }
  19900. if test x$kmsdrm_shared = xyes; then
  19901. echo "-- dynamic libdrm -> $drm_lib"
  19902. echo "-- dynamic libgbm -> $gbm_lib"
  19903. fi
  19904. have_video=yes
  19905. fi
  19906. fi
  19907. }
  19908. CheckDummyVideo()
  19909. {
  19910. # Check whether --enable-video-dummy was given.
  19911. if test "${enable_video_dummy+set}" = set; then :
  19912. enableval=$enable_video_dummy;
  19913. else
  19914. enable_video_dummy=yes
  19915. fi
  19916. if test x$enable_video_dummy = xyes; then
  19917. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19918. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19919. have_video=yes
  19920. SUMMARY_video="${SUMMARY_video} dummy"
  19921. fi
  19922. }
  19923. CheckOffscreenVideo()
  19924. {
  19925. # Check whether --enable-video-offscreen was given.
  19926. if test "${enable_video_offscreen+set}" = set; then :
  19927. enableval=$enable_video_offscreen;
  19928. else
  19929. enable_video_offscreen=no
  19930. fi
  19931. if test x$enable_video_offscreen = xyes; then
  19932. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19933. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19934. have_video=yes
  19935. SUMMARY_video="${SUMMARY_video} offscreen"
  19936. fi
  19937. }
  19938. CheckQNXVideo()
  19939. {
  19940. if test x$enable_video = xyes; then
  19941. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19942. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19943. have_video=yes
  19944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19945. SUMMARY_video="${SUMMARY_video} qnx"
  19946. fi
  19947. }
  19948. CheckQNXAudio()
  19949. {
  19950. if test x$enable_audio = xyes; then
  19951. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19952. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19953. have_audio=yes
  19954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19955. SUMMARY_audio="${SUMMARY_audio} qsa"
  19956. fi
  19957. }
  19958. # Check whether --enable-video-opengl was given.
  19959. if test "${enable_video_opengl+set}" = set; then :
  19960. enableval=$enable_video_opengl;
  19961. else
  19962. enable_video_opengl=yes
  19963. fi
  19964. CheckGLX()
  19965. {
  19966. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19968. $as_echo_n "checking for GLX support... " >&6; }
  19969. video_opengl_glx=no
  19970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19971. /* end confdefs.h. */
  19972. #include <GL/glx.h>
  19973. int
  19974. main ()
  19975. {
  19976. ;
  19977. return 0;
  19978. }
  19979. _ACEOF
  19980. if ac_fn_c_try_compile "$LINENO"; then :
  19981. video_opengl_glx=yes
  19982. fi
  19983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19985. $as_echo "$video_opengl_glx" >&6; }
  19986. if test x$video_opengl_glx = xyes; then
  19987. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19988. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19989. fi
  19990. fi
  19991. }
  19992. # Check whether --enable-video-opengles was given.
  19993. if test "${enable_video_opengles+set}" = set; then :
  19994. enableval=$enable_video_opengles;
  19995. else
  19996. enable_video_opengles=yes
  19997. fi
  19998. # Check whether --enable-video-opengles1 was given.
  19999. if test "${enable_video_opengles1+set}" = set; then :
  20000. enableval=$enable_video_opengles1;
  20001. else
  20002. enable_video_opengles1=yes
  20003. fi
  20004. # Check whether --enable-video-opengles2 was given.
  20005. if test "${enable_video_opengles2+set}" = set; then :
  20006. enableval=$enable_video_opengles2;
  20007. else
  20008. enable_video_opengles2=yes
  20009. fi
  20010. CheckEGL()
  20011. {
  20012. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20014. $as_echo_n "checking for EGL support... " >&6; }
  20015. video_opengl_egl=no
  20016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20017. /* end confdefs.h. */
  20018. #define LINUX
  20019. #define EGL_API_FB
  20020. #define MESA_EGL_NO_X11_HEADERS
  20021. #define EGL_NO_X11
  20022. #include <EGL/egl.h>
  20023. #include <EGL/eglext.h>
  20024. int
  20025. main ()
  20026. {
  20027. ;
  20028. return 0;
  20029. }
  20030. _ACEOF
  20031. if ac_fn_c_try_compile "$LINENO"; then :
  20032. video_opengl_egl=yes
  20033. fi
  20034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20036. $as_echo "$video_opengl_egl" >&6; }
  20037. if test x$video_opengl_egl = xyes; then
  20038. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20039. fi
  20040. fi
  20041. }
  20042. CheckOpenGL()
  20043. {
  20044. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20046. $as_echo_n "checking for OpenGL headers... " >&6; }
  20047. video_opengl=no
  20048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20049. /* end confdefs.h. */
  20050. #include <GL/gl.h>
  20051. #include <GL/glext.h>
  20052. int
  20053. main ()
  20054. {
  20055. ;
  20056. return 0;
  20057. }
  20058. _ACEOF
  20059. if ac_fn_c_try_compile "$LINENO"; then :
  20060. video_opengl=yes
  20061. fi
  20062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20064. $as_echo "$video_opengl" >&6; }
  20065. if test x$video_opengl = xyes; then
  20066. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20067. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20068. SUMMARY_video="${SUMMARY_video} opengl"
  20069. fi
  20070. fi
  20071. }
  20072. CheckOpenGLES()
  20073. {
  20074. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20075. if test x$enable_video_opengles1 = xyes; then
  20076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20077. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20078. video_opengles_v1=no
  20079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20080. /* end confdefs.h. */
  20081. #include <GLES/gl.h>
  20082. #include <GLES/glext.h>
  20083. int
  20084. main ()
  20085. {
  20086. ;
  20087. return 0;
  20088. }
  20089. _ACEOF
  20090. if ac_fn_c_try_compile "$LINENO"; then :
  20091. video_opengles_v1=yes
  20092. fi
  20093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20095. $as_echo "$video_opengles_v1" >&6; }
  20096. if test x$video_opengles_v1 = xyes; then
  20097. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20098. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20099. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20100. fi
  20101. fi
  20102. if test x$enable_video_opengles2 = xyes; then
  20103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20104. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20105. video_opengles_v2=no
  20106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20107. /* end confdefs.h. */
  20108. #include <GLES2/gl2.h>
  20109. #include <GLES2/gl2ext.h>
  20110. int
  20111. main ()
  20112. {
  20113. ;
  20114. return 0;
  20115. }
  20116. _ACEOF
  20117. if ac_fn_c_try_compile "$LINENO"; then :
  20118. video_opengles_v2=yes
  20119. fi
  20120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20122. $as_echo "$video_opengles_v2" >&6; }
  20123. if test x$video_opengles_v2 = xyes; then
  20124. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20125. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20126. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20127. fi
  20128. fi
  20129. fi
  20130. }
  20131. CheckWINDOWSGL()
  20132. {
  20133. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20134. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20135. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20136. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20137. SUMMARY_video="${SUMMARY_video} opengl"
  20138. fi
  20139. }
  20140. CheckWINDOWSGLES()
  20141. {
  20142. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20144. $as_echo_n "checking for EGL support... " >&6; }
  20145. video_opengl_egl=no
  20146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20147. /* end confdefs.h. */
  20148. #include <EGL/egl.h>
  20149. int
  20150. main ()
  20151. {
  20152. ;
  20153. return 0;
  20154. }
  20155. _ACEOF
  20156. if ac_fn_c_try_compile "$LINENO"; then :
  20157. video_opengl_egl=yes
  20158. fi
  20159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20161. $as_echo "$video_opengl_egl" >&6; }
  20162. if test x$video_opengl_egl = xyes; then
  20163. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20164. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20165. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20166. fi
  20167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20168. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20169. video_opengles_v2=no
  20170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20171. /* end confdefs.h. */
  20172. #include <GLES2/gl2.h>
  20173. #include <GLES2/gl2ext.h>
  20174. int
  20175. main ()
  20176. {
  20177. ;
  20178. return 0;
  20179. }
  20180. _ACEOF
  20181. if ac_fn_c_try_compile "$LINENO"; then :
  20182. video_opengles_v2=yes
  20183. fi
  20184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20186. $as_echo "$video_opengles_v2" >&6; }
  20187. if test x$video_opengles_v2 = xyes; then
  20188. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20189. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20190. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20191. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20192. fi
  20193. fi
  20194. }
  20195. CheckHaikuGL()
  20196. {
  20197. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20198. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20199. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20200. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20202. SUMMARY_video="${SUMMARY_video} opengl"
  20203. fi
  20204. }
  20205. CheckMacGL()
  20206. {
  20207. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20208. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20209. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20210. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20211. SUMMARY_video="${SUMMARY_video} opengl"
  20212. fi
  20213. }
  20214. CheckMacGLES()
  20215. {
  20216. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20217. video_opengl_egl=yes
  20218. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20219. video_opengles_v2=yes
  20220. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20221. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20222. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20223. fi
  20224. }
  20225. CheckEmscriptenGLES()
  20226. {
  20227. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20229. $as_echo_n "checking for EGL support... " >&6; }
  20230. video_opengl_egl=no
  20231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20232. /* end confdefs.h. */
  20233. #include <EGL/egl.h>
  20234. int
  20235. main ()
  20236. {
  20237. ;
  20238. return 0;
  20239. }
  20240. _ACEOF
  20241. if ac_fn_c_try_compile "$LINENO"; then :
  20242. video_opengl_egl=yes
  20243. fi
  20244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20246. $as_echo "$video_opengl_egl" >&6; }
  20247. if test x$video_opengl_egl = xyes; then
  20248. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20249. fi
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20251. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20252. video_opengles_v2=no
  20253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20254. /* end confdefs.h. */
  20255. #include <GLES2/gl2.h>
  20256. #include <GLES2/gl2ext.h>
  20257. int
  20258. main ()
  20259. {
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_compile "$LINENO"; then :
  20265. video_opengles_v2=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20269. $as_echo "$video_opengles_v2" >&6; }
  20270. if test x$video_opengles_v2 = xyes; then
  20271. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20272. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20273. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20274. fi
  20275. fi
  20276. }
  20277. # Check whether --enable-video-vulkan was given.
  20278. if test "${enable_video_vulkan+set}" = set; then :
  20279. enableval=$enable_video_vulkan;
  20280. else
  20281. enable_video_vulkan=yes
  20282. fi
  20283. CheckVulkan()
  20284. {
  20285. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20286. case "$host" in
  20287. *-*-android*)
  20288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20289. /* end confdefs.h. */
  20290. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20291. #error Vulkan doesn't work on this configuration
  20292. #endif
  20293. int
  20294. main ()
  20295. {
  20296. ;
  20297. return 0;
  20298. }
  20299. _ACEOF
  20300. if ac_fn_c_try_compile "$LINENO"; then :
  20301. else
  20302. enable_video_vulkan=no
  20303. fi
  20304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20305. ;;
  20306. *-*-darwin*)
  20307. save_CFLAGS="$CFLAGS"
  20308. CFLAGS="$CFLAGS -x objective-c"
  20309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20310. /* end confdefs.h. */
  20311. #include <Cocoa/Cocoa.h>
  20312. #include <Metal/Metal.h>
  20313. #include <QuartzCore/CAMetalLayer.h>
  20314. #if TARGET_CPU_X86
  20315. #error Vulkan doesn't work on this configuration
  20316. #endif
  20317. int
  20318. main ()
  20319. {
  20320. ;
  20321. return 0;
  20322. }
  20323. _ACEOF
  20324. if ac_fn_c_try_compile "$LINENO"; then :
  20325. else
  20326. enable_video_vulkan=no
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20329. CFLAGS="$save_CFLAGS"
  20330. ;;
  20331. *)
  20332. ;;
  20333. esac
  20334. if test x$enable_video_vulkan = xno; then
  20335. # For reasons I am totally unable to see, I get an undefined macro error if
  20336. # I put this in the AC_TRY_COMPILE.
  20337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20338. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20339. fi
  20340. fi
  20341. if test x$have_loadso != xyes; then
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20343. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20344. enable_video_vulkan=no
  20345. fi
  20346. if test x$enable_video_vulkan = xyes; then
  20347. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20348. SUMMARY_video="${SUMMARY_video} vulkan"
  20349. fi
  20350. }
  20351. CheckInputEvents()
  20352. {
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20354. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20355. use_input_events=no
  20356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20357. /* end confdefs.h. */
  20358. #include <linux/input.h>
  20359. int
  20360. main ()
  20361. {
  20362. #ifndef EVIOCGNAME
  20363. #error EVIOCGNAME() ioctl not available
  20364. #endif
  20365. ;
  20366. return 0;
  20367. }
  20368. _ACEOF
  20369. if ac_fn_c_try_compile "$LINENO"; then :
  20370. use_input_events=yes
  20371. fi
  20372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20374. $as_echo "$use_input_events" >&6; }
  20375. if test x$use_input_events = xyes; then
  20376. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20377. SUMMARY_input="${SUMMARY_input} linuxev"
  20378. fi
  20379. }
  20380. CheckInputKD()
  20381. {
  20382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20383. $as_echo_n "checking for Linux kd.h... " >&6; }
  20384. use_input_kd=no
  20385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20386. /* end confdefs.h. */
  20387. #include <linux/kd.h>
  20388. #include <linux/keyboard.h>
  20389. int
  20390. main ()
  20391. {
  20392. struct kbentry kbe;
  20393. kbe.kb_table = KG_CTRL;
  20394. ioctl(0, KDGKBENT, &kbe);
  20395. ;
  20396. return 0;
  20397. }
  20398. _ACEOF
  20399. if ac_fn_c_try_compile "$LINENO"; then :
  20400. use_input_kd=yes
  20401. fi
  20402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20404. $as_echo "$use_input_kd" >&6; }
  20405. if test x$use_input_kd = xyes; then
  20406. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20407. SUMMARY_input="${SUMMARY_input} linuxkd"
  20408. fi
  20409. }
  20410. CheckInputKBIO()
  20411. {
  20412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20413. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20414. use_input_kbio=no
  20415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20416. /* end confdefs.h. */
  20417. #include <sys/kbio.h>
  20418. #include <sys/ioctl.h>
  20419. int
  20420. main ()
  20421. {
  20422. accentmap_t accTable;
  20423. ioctl(0, KDENABIO, 1);
  20424. ;
  20425. return 0;
  20426. }
  20427. _ACEOF
  20428. if ac_fn_c_try_compile "$LINENO"; then :
  20429. use_input_kbio=yes
  20430. fi
  20431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20433. $as_echo "$use_input_kbio" >&6; }
  20434. if test x$use_input_kbio = xyes; then
  20435. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20436. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20437. fi
  20438. }
  20439. CheckInputWSCONS()
  20440. {
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20442. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20443. use_input_wscons=no
  20444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20445. /* end confdefs.h. */
  20446. #include <sys/time.h>
  20447. #include <dev/wscons/wsconsio.h>
  20448. #include <dev/wscons/wsksymdef.h>
  20449. #include <dev/wscons/wsksymvar.h>
  20450. #include <sys/ioctl.h>
  20451. int
  20452. main ()
  20453. {
  20454. struct wskbd_map_data data;
  20455. ioctl(0, WSKBDIO_GETMAP, &data);
  20456. ;
  20457. return 0;
  20458. }
  20459. _ACEOF
  20460. if ac_fn_c_try_compile "$LINENO"; then :
  20461. use_input_wscons=yes
  20462. fi
  20463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20465. $as_echo "$use_input_wscons" >&6; }
  20466. if test x$use_input_wscons = xyes; then
  20467. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20468. SUMMARY_input="${SUMMARY_input} wscons"
  20469. fi
  20470. }
  20471. CheckLibUDev()
  20472. {
  20473. # Check whether --enable-libudev was given.
  20474. if test "${enable_libudev+set}" = set; then :
  20475. enableval=$enable_libudev;
  20476. else
  20477. enable_libudev=yes
  20478. fi
  20479. if test x$enable_libudev = xyes; then
  20480. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20481. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20482. have_libudev_h_hdr=yes
  20483. else
  20484. have_libudev_h_hdr=no
  20485. fi
  20486. if test x$have_libudev_h_hdr = xyes; then
  20487. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20488. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20489. if test x$udev_lib != x; then
  20490. echo "-- dynamic udev -> $udev_lib"
  20491. cat >>confdefs.h <<_ACEOF
  20492. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20493. _ACEOF
  20494. fi
  20495. fi
  20496. fi
  20497. }
  20498. CheckDBus()
  20499. {
  20500. # Check whether --enable-dbus was given.
  20501. if test "${enable_dbus+set}" = set; then :
  20502. enableval=$enable_dbus;
  20503. else
  20504. enable_dbus=yes
  20505. fi
  20506. if test x$enable_dbus = xyes; then
  20507. pkg_failed=no
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20509. $as_echo_n "checking for dbus-1... " >&6; }
  20510. if test -n "$DBUS_CFLAGS"; then
  20511. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20512. elif test -n "$PKG_CONFIG"; then
  20513. if test -n "$PKG_CONFIG" && \
  20514. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20515. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20516. ac_status=$?
  20517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20518. test $ac_status = 0; }; then
  20519. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20520. test "x$?" != "x0" && pkg_failed=yes
  20521. else
  20522. pkg_failed=yes
  20523. fi
  20524. else
  20525. pkg_failed=untried
  20526. fi
  20527. if test -n "$DBUS_LIBS"; then
  20528. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20529. elif test -n "$PKG_CONFIG"; then
  20530. if test -n "$PKG_CONFIG" && \
  20531. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20532. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20533. ac_status=$?
  20534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20535. test $ac_status = 0; }; then
  20536. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20537. test "x$?" != "x0" && pkg_failed=yes
  20538. else
  20539. pkg_failed=yes
  20540. fi
  20541. else
  20542. pkg_failed=untried
  20543. fi
  20544. if test $pkg_failed = yes; then
  20545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20546. $as_echo "no" >&6; }
  20547. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20548. _pkg_short_errors_supported=yes
  20549. else
  20550. _pkg_short_errors_supported=no
  20551. fi
  20552. if test $_pkg_short_errors_supported = yes; then
  20553. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20554. else
  20555. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20556. fi
  20557. # Put the nasty error message in config.log where it belongs
  20558. echo "$DBUS_PKG_ERRORS" >&5
  20559. have_dbus=no
  20560. elif test $pkg_failed = untried; then
  20561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20562. $as_echo "no" >&6; }
  20563. have_dbus=no
  20564. else
  20565. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20566. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20568. $as_echo "yes" >&6; }
  20569. have_dbus=yes
  20570. fi
  20571. save_CPPFLAGS="$CPPFLAGS"
  20572. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20573. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20574. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20575. have_dbus_dbus_h_hdr=yes
  20576. else
  20577. have_dbus_dbus_h_hdr=no
  20578. fi
  20579. CPPFLAGS="$save_CPPFLAGS"
  20580. if test x$have_dbus_dbus_h_hdr = xyes; then
  20581. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20582. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20583. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20584. fi
  20585. fi
  20586. }
  20587. CheckIME()
  20588. {
  20589. # Check whether --enable-ime was given.
  20590. if test "${enable_ime+set}" = set; then :
  20591. enableval=$enable_ime;
  20592. else
  20593. enable_ime=yes
  20594. fi
  20595. if test x$enable_ime = xyes; then
  20596. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20597. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20598. fi
  20599. }
  20600. CheckInotify()
  20601. {
  20602. save_LIBS="$LIBS"
  20603. case "$host" in
  20604. *-*-freebsd*) LIBS="$LIBS -linotify"
  20605. ;;
  20606. esac
  20607. for ac_header in sys/inotify.h
  20608. do :
  20609. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20610. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20611. cat >>confdefs.h <<_ACEOF
  20612. #define HAVE_SYS_INOTIFY_H 1
  20613. _ACEOF
  20614. have_inotify_inotify_h_hdr=yes
  20615. fi
  20616. done
  20617. for ac_func in inotify_init
  20618. do :
  20619. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20620. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20621. cat >>confdefs.h <<_ACEOF
  20622. #define HAVE_INOTIFY_INIT 1
  20623. _ACEOF
  20624. have_inotify=yes
  20625. fi
  20626. done
  20627. for ac_func in inotify_init1
  20628. do :
  20629. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20630. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20631. cat >>confdefs.h <<_ACEOF
  20632. #define HAVE_INOTIFY_INIT1 1
  20633. _ACEOF
  20634. fi
  20635. done
  20636. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20637. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20638. case "$host" in
  20639. *-*-freebsd*)
  20640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20641. ;;
  20642. esac
  20643. fi
  20644. LIBS="$save_LIBS"
  20645. }
  20646. CheckIBus()
  20647. {
  20648. # Check whether --enable-ibus was given.
  20649. if test "${enable_ibus+set}" = set; then :
  20650. enableval=$enable_ibus;
  20651. else
  20652. enable_ibus=yes
  20653. fi
  20654. if test x$enable_ibus = xyes; then
  20655. pkg_failed=no
  20656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20657. $as_echo_n "checking for ibus-1.0... " >&6; }
  20658. if test -n "$IBUS_CFLAGS"; then
  20659. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20660. elif test -n "$PKG_CONFIG"; then
  20661. if test -n "$PKG_CONFIG" && \
  20662. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20663. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20664. ac_status=$?
  20665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20666. test $ac_status = 0; }; then
  20667. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20668. test "x$?" != "x0" && pkg_failed=yes
  20669. else
  20670. pkg_failed=yes
  20671. fi
  20672. else
  20673. pkg_failed=untried
  20674. fi
  20675. if test -n "$IBUS_LIBS"; then
  20676. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20677. elif test -n "$PKG_CONFIG"; then
  20678. if test -n "$PKG_CONFIG" && \
  20679. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20680. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20681. ac_status=$?
  20682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20683. test $ac_status = 0; }; then
  20684. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20685. test "x$?" != "x0" && pkg_failed=yes
  20686. else
  20687. pkg_failed=yes
  20688. fi
  20689. else
  20690. pkg_failed=untried
  20691. fi
  20692. if test $pkg_failed = yes; then
  20693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20694. $as_echo "no" >&6; }
  20695. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20696. _pkg_short_errors_supported=yes
  20697. else
  20698. _pkg_short_errors_supported=no
  20699. fi
  20700. if test $_pkg_short_errors_supported = yes; then
  20701. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20702. else
  20703. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20704. fi
  20705. # Put the nasty error message in config.log where it belongs
  20706. echo "$IBUS_PKG_ERRORS" >&5
  20707. have_ibus=no
  20708. elif test $pkg_failed = untried; then
  20709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20710. $as_echo "no" >&6; }
  20711. have_ibus=no
  20712. else
  20713. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20714. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20716. $as_echo "yes" >&6; }
  20717. have_ibus=yes
  20718. fi
  20719. save_CPPFLAGS="$CPPFLAGS"
  20720. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20721. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20722. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20723. have_ibus_ibus_h_hdr=yes
  20724. else
  20725. have_ibus_ibus_h_hdr=no
  20726. fi
  20727. CPPFLAGS="$save_CPPFLAGS"
  20728. if test x$have_ibus_ibus_h_hdr = xyes; then
  20729. if test x$enable_ime != xyes; then
  20730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20731. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20732. have_ibus_ibus_h_hdr=no
  20733. elif test x$enable_dbus != xyes; then
  20734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20735. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20736. have_ibus_ibus_h_hdr=no
  20737. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20739. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20740. have_ibus_ibus_h_hdr=no
  20741. else
  20742. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20743. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20744. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20745. fi
  20746. fi
  20747. fi
  20748. }
  20749. CheckFcitx()
  20750. {
  20751. # Check whether --enable-fcitx was given.
  20752. if test "${enable_fcitx+set}" = set; then :
  20753. enableval=$enable_fcitx;
  20754. else
  20755. enable_fcitx=yes
  20756. fi
  20757. if test x$enable_fcitx = xyes; then
  20758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20759. $as_echo_n "checking for fcitx support... " >&6; }
  20760. have_fcitx=no
  20761. if test x$enable_ime != xyes; then
  20762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20763. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20764. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20766. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20767. else
  20768. have_fcitx=yes
  20769. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20770. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20771. fi
  20772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20773. $as_echo "$have_fcitx" >&6; }
  20774. fi
  20775. }
  20776. CheckJoystickMFI()
  20777. {
  20778. # Check whether --enable-joystick-mfi was given.
  20779. if test "${enable_joystick_mfi+set}" = set; then :
  20780. enableval=$enable_joystick_mfi;
  20781. else
  20782. enable_joystick_mfi=yes
  20783. fi
  20784. if test x$enable_joystick_mfi = xyes; then
  20785. save_CFLAGS="$CFLAGS"
  20786. save_LDFLAGS="$LDFLAGS"
  20787. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20788. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20790. $as_echo_n "checking for GameController framework... " >&6; }
  20791. enable_joystick_mfi=no
  20792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20793. /* end confdefs.h. */
  20794. #include <AvailabilityMacros.h>
  20795. #include <TargetConditionals.h>
  20796. #import <GameController/GameController.h>
  20797. int
  20798. main ()
  20799. {
  20800. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20801. #error GameController framework doesn't work on this configuration
  20802. #endif
  20803. #if TARGET_CPU_X86
  20804. #error GameController framework doesn't work on this configuration
  20805. #endif
  20806. ;
  20807. return 0;
  20808. }
  20809. _ACEOF
  20810. if ac_fn_c_try_link "$LINENO"; then :
  20811. enable_joystick_mfi=yes
  20812. fi
  20813. rm -f core conftest.err conftest.$ac_objext \
  20814. conftest$ac_exeext conftest.$ac_ext
  20815. CFLAGS="$save_CFLAGS"
  20816. LDFLAGS="$save_LDFLAGS"
  20817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20818. $as_echo "$enable_joystick_mfi" >&6; }
  20819. if test x$enable_joystick_mfi = xyes; then
  20820. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20821. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20822. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20823. fi
  20824. fi
  20825. }
  20826. CheckPTHREAD()
  20827. {
  20828. case "$host" in
  20829. *-*-emscripten*)
  20830. enable_pthreads_default=no
  20831. ;;
  20832. *)
  20833. enable_pthreads_default=yes
  20834. ;;
  20835. esac
  20836. # Check whether --enable-pthreads was given.
  20837. if test "${enable_pthreads+set}" = set; then :
  20838. enableval=$enable_pthreads;
  20839. else
  20840. enable_pthreads=maybe
  20841. fi
  20842. # Check whether --enable-pthread-sem was given.
  20843. if test "${enable_pthread_sem+set}" = set; then :
  20844. enableval=$enable_pthread_sem;
  20845. else
  20846. enable_pthread_sem=maybe
  20847. fi
  20848. if test x$enable_pthreads = xmaybe; then
  20849. enable_pthreads=$enable_pthreads_default
  20850. fi
  20851. if test x$enable_pthread_sem = xmaybe; then
  20852. enable_pthread_sem=$enable_pthreads
  20853. fi
  20854. case "$host" in
  20855. *-*-android*)
  20856. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20857. pthread_lib=""
  20858. ;;
  20859. *-*-linux*|*-*-uclinux*)
  20860. pthread_cflags="-D_REENTRANT"
  20861. pthread_lib="-lpthread"
  20862. ;;
  20863. *-*-bsdi*)
  20864. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20865. pthread_lib=""
  20866. ;;
  20867. *-*-darwin*)
  20868. pthread_cflags="-D_THREAD_SAFE"
  20869. # causes Carbon.p complaints?
  20870. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20871. ;;
  20872. *-*-freebsd*|*-*-dragonfly*)
  20873. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20874. pthread_lib="-pthread"
  20875. ;;
  20876. *-*-netbsd*)
  20877. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20878. pthread_lib="-lpthread"
  20879. ;;
  20880. *-*-openbsd*)
  20881. pthread_cflags="-D_REENTRANT"
  20882. pthread_lib="-pthread"
  20883. ;;
  20884. *-*-solaris2.9)
  20885. # From Solaris 9+, posix4's preferred name is rt.
  20886. pthread_cflags="-D_REENTRANT"
  20887. pthread_lib="-lpthread -lrt"
  20888. ;;
  20889. *-*-solaris2.10)
  20890. # Solaris 10+ merged pthread into libc.
  20891. pthread_cflags="-D_REENTRANT"
  20892. pthread_lib="-lrt"
  20893. ;;
  20894. *-*-solaris*)
  20895. # Solaris 11+ merged rt into libc.
  20896. pthread_cflags="-D_REENTRANT"
  20897. pthread_lib=""
  20898. ;;
  20899. *-*-sysv5*)
  20900. pthread_cflags="-D_REENTRANT -Kthread"
  20901. pthread_lib=""
  20902. ;;
  20903. *-*-aix*)
  20904. pthread_cflags="-D_REENTRANT -mthreads"
  20905. pthread_lib="-lpthread"
  20906. ;;
  20907. *-*-hpux11*)
  20908. pthread_cflags="-D_REENTRANT"
  20909. pthread_lib="-L/usr/lib -lpthread"
  20910. ;;
  20911. *-*-haiku*)
  20912. pthread_cflags="-D_REENTRANT"
  20913. pthread_lib=""
  20914. ;;
  20915. *-*-nto*)
  20916. pthread_cflags="-D_REENTRANT"
  20917. pthread_lib=""
  20918. ;;
  20919. *-*-emscripten*)
  20920. pthread_cflags="-D_REENTRANT -pthread"
  20921. pthread_lib="-pthread"
  20922. ;;
  20923. *)
  20924. pthread_cflags="-D_REENTRANT"
  20925. pthread_lib="-lpthread"
  20926. ;;
  20927. esac
  20928. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20929. # Save the original compiler flags and libraries
  20930. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20931. # Add the pthread compiler flags and libraries
  20932. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20933. # Check to see if we have pthread support on this system
  20934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20935. $as_echo_n "checking for pthreads... " >&6; }
  20936. use_pthreads=no
  20937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20938. /* end confdefs.h. */
  20939. #include <pthread.h>
  20940. int
  20941. main ()
  20942. {
  20943. pthread_attr_t type;
  20944. pthread_attr_init(&type);
  20945. ;
  20946. return 0;
  20947. }
  20948. _ACEOF
  20949. if ac_fn_c_try_link "$LINENO"; then :
  20950. use_pthreads=yes
  20951. fi
  20952. rm -f core conftest.err conftest.$ac_objext \
  20953. conftest$ac_exeext conftest.$ac_ext
  20954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20955. $as_echo "$use_pthreads" >&6; }
  20956. # Restore the compiler flags and libraries
  20957. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20958. # Do futher testing if we have pthread support...
  20959. if test x$use_pthreads = xyes; then
  20960. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20961. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20963. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20964. # Save the original compiler flags and libraries
  20965. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20966. # Add the pthread compiler flags and libraries
  20967. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20968. # Check to see if recursive mutexes are available
  20969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20970. $as_echo_n "checking for recursive mutexes... " >&6; }
  20971. has_recursive_mutexes=no
  20972. if test x$has_recursive_mutexes = xno; then
  20973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20974. /* end confdefs.h. */
  20975. #define _GNU_SOURCE 1
  20976. #include <pthread.h>
  20977. int
  20978. main ()
  20979. {
  20980. pthread_mutexattr_t attr;
  20981. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20982. ;
  20983. return 0;
  20984. }
  20985. _ACEOF
  20986. if ac_fn_c_try_link "$LINENO"; then :
  20987. has_recursive_mutexes=yes
  20988. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20989. fi
  20990. rm -f core conftest.err conftest.$ac_objext \
  20991. conftest$ac_exeext conftest.$ac_ext
  20992. fi
  20993. if test x$has_recursive_mutexes = xno; then
  20994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20995. /* end confdefs.h. */
  20996. #define _GNU_SOURCE 1
  20997. #include <pthread.h>
  20998. int
  20999. main ()
  21000. {
  21001. pthread_mutexattr_t attr;
  21002. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. if ac_fn_c_try_link "$LINENO"; then :
  21008. has_recursive_mutexes=yes
  21009. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21010. fi
  21011. rm -f core conftest.err conftest.$ac_objext \
  21012. conftest$ac_exeext conftest.$ac_ext
  21013. fi
  21014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21015. $as_echo "$has_recursive_mutexes" >&6; }
  21016. # Check to see if pthread semaphore support is missing
  21017. if test x$enable_pthread_sem = xyes; then
  21018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21019. $as_echo_n "checking for pthread semaphores... " >&6; }
  21020. have_pthread_sem=no
  21021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21022. /* end confdefs.h. */
  21023. #include <pthread.h>
  21024. #include <semaphore.h>
  21025. int
  21026. main ()
  21027. {
  21028. ;
  21029. return 0;
  21030. }
  21031. _ACEOF
  21032. if ac_fn_c_try_compile "$LINENO"; then :
  21033. have_pthread_sem=yes
  21034. fi
  21035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21037. $as_echo "$have_pthread_sem" >&6; }
  21038. fi
  21039. if test x$have_pthread_sem = xyes; then
  21040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21041. $as_echo_n "checking for sem_timedwait... " >&6; }
  21042. have_sem_timedwait=no
  21043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21044. /* end confdefs.h. */
  21045. #include <pthread.h>
  21046. #include <semaphore.h>
  21047. int
  21048. main ()
  21049. {
  21050. sem_timedwait(NULL, NULL);
  21051. ;
  21052. return 0;
  21053. }
  21054. _ACEOF
  21055. if ac_fn_c_try_link "$LINENO"; then :
  21056. have_sem_timedwait=yes
  21057. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21058. fi
  21059. rm -f core conftest.err conftest.$ac_objext \
  21060. conftest$ac_exeext conftest.$ac_ext
  21061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21062. $as_echo "$have_sem_timedwait" >&6; }
  21063. fi
  21064. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21065. "
  21066. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21067. have_pthread_np_h=yes
  21068. else
  21069. have_pthread_np_h=no
  21070. fi
  21071. if test x$have_pthread_np_h = xyes; then
  21072. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21073. fi
  21074. # Check to see if pthread naming is available
  21075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21076. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21078. /* end confdefs.h. */
  21079. /* Override any GCC internal prototype to avoid an error.
  21080. Use char because int might match the return type of a GCC
  21081. builtin and then its argument prototype would still apply. */
  21082. #ifdef __cplusplus
  21083. extern "C"
  21084. #endif
  21085. char pthread_setname_np ();
  21086. int
  21087. main ()
  21088. {
  21089. return pthread_setname_np ();
  21090. ;
  21091. return 0;
  21092. }
  21093. _ACEOF
  21094. if ac_fn_c_try_link "$LINENO"; then :
  21095. has_pthread_setname_np=yes
  21096. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21097. else
  21098. has_pthread_setname_np=no
  21099. fi
  21100. rm -f core conftest.err conftest.$ac_objext \
  21101. conftest$ac_exeext conftest.$ac_ext
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21103. $as_echo "$has_pthread_setname_np" >&6; }
  21104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21105. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21107. /* end confdefs.h. */
  21108. /* Override any GCC internal prototype to avoid an error.
  21109. Use char because int might match the return type of a GCC
  21110. builtin and then its argument prototype would still apply. */
  21111. #ifdef __cplusplus
  21112. extern "C"
  21113. #endif
  21114. char pthread_set_name_np ();
  21115. int
  21116. main ()
  21117. {
  21118. return pthread_set_name_np ();
  21119. ;
  21120. return 0;
  21121. }
  21122. _ACEOF
  21123. if ac_fn_c_try_link "$LINENO"; then :
  21124. has_pthread_set_name_np=yes
  21125. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21126. else
  21127. has_pthread_set_name_np=no
  21128. fi
  21129. rm -f core conftest.err conftest.$ac_objext \
  21130. conftest$ac_exeext conftest.$ac_ext
  21131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21132. $as_echo "$has_pthread_set_name_np" >&6; }
  21133. # Restore the compiler flags and libraries
  21134. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21135. # Basic thread creation functions
  21136. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21137. # Semaphores
  21138. # We can fake these with mutexes and condition variables if necessary
  21139. if test x$have_pthread_sem = xyes; then
  21140. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21141. else
  21142. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21143. fi
  21144. # Mutexes
  21145. # We can fake these with semaphores if necessary
  21146. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21147. # Condition variables
  21148. # We can fake these with semaphores and mutexes if necessary
  21149. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21150. # Thread local storage
  21151. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21152. have_threads=yes
  21153. fi
  21154. fi
  21155. }
  21156. CheckWINDOWS()
  21157. {
  21158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21159. $as_echo_n "checking Windows compiler... " >&6; }
  21160. have_win32_gcc=no
  21161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21162. /* end confdefs.h. */
  21163. #include <windows.h>
  21164. int
  21165. main ()
  21166. {
  21167. ;
  21168. return 0;
  21169. }
  21170. _ACEOF
  21171. if ac_fn_c_try_compile "$LINENO"; then :
  21172. have_win32_gcc=yes
  21173. fi
  21174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21176. $as_echo "$have_win32_gcc" >&6; }
  21177. if test x$have_win32_gcc != xyes; then
  21178. as_fn_error $? "
  21179. *** Your compiler ($CC) does not produce Windows executables!
  21180. " "$LINENO" 5
  21181. fi
  21182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21183. $as_echo_n "checking Windows CE... " >&6; }
  21184. have_wince=no
  21185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21186. /* end confdefs.h. */
  21187. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21188. #error This is not Windows CE
  21189. #endif
  21190. int
  21191. main ()
  21192. {
  21193. ;
  21194. return 0;
  21195. }
  21196. _ACEOF
  21197. if ac_fn_c_try_compile "$LINENO"; then :
  21198. have_wince=yes
  21199. as_fn_error $? "
  21200. *** Sorry, Windows CE is no longer supported.
  21201. " "$LINENO" 5
  21202. fi
  21203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21205. $as_echo "$have_wince" >&6; }
  21206. # This fixes Windows stack alignment with newer GCC
  21207. CheckStackBoundary
  21208. }
  21209. CheckOS2()
  21210. {
  21211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21212. $as_echo_n "checking OS/2 compiler... " >&6; }
  21213. have_os2_gcc=no
  21214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21215. /* end confdefs.h. */
  21216. #include <os2.h>
  21217. int
  21218. main ()
  21219. {
  21220. ;
  21221. return 0;
  21222. }
  21223. _ACEOF
  21224. if ac_fn_c_try_compile "$LINENO"; then :
  21225. have_os2_gcc=yes
  21226. fi
  21227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21229. $as_echo "$have_os2_gcc" >&6; }
  21230. if test x$have_os2_gcc != xyes; then
  21231. as_fn_error $? "
  21232. *** Your compiler ($CC) does not produce OS/2 executables!
  21233. " "$LINENO" 5
  21234. fi
  21235. }
  21236. CheckDIRECTX()
  21237. {
  21238. # Check whether --enable-directx was given.
  21239. if test "${enable_directx+set}" = set; then :
  21240. enableval=$enable_directx;
  21241. else
  21242. enable_directx=yes
  21243. fi
  21244. if test x$enable_directx = xyes; then
  21245. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21246. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21247. have_d3d=yes
  21248. fi
  21249. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21250. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21251. have_d3d11=yes
  21252. fi
  21253. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21254. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21255. have_ddraw=yes
  21256. fi
  21257. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21258. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21259. have_dsound=yes
  21260. fi
  21261. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21262. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21263. have_dinput=yes
  21264. fi
  21265. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21266. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21267. have_dxgi=yes
  21268. fi
  21269. if test x$have_ddraw = xyes; then
  21270. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21271. fi
  21272. if test x$have_dinput = xyes; then
  21273. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21274. fi
  21275. if test x$have_dsound = xyes; then
  21276. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21277. fi
  21278. if test x$have_dxgi = xyes; then
  21279. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21280. fi
  21281. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21282. # FIXME: ...so force it off for now.
  21283. case "$host" in
  21284. *-*-cygwin*)
  21285. have_dinput=false
  21286. ;;
  21287. esac
  21288. fi
  21289. # Check whether --enable-xinput was given.
  21290. if test "${enable_xinput+set}" = set; then :
  21291. enableval=$enable_xinput;
  21292. else
  21293. enable_xinput=yes
  21294. fi
  21295. if test x$enable_xinput = xyes; then
  21296. have_xinput_gamepadex=no
  21297. have_xinput_stateex=no
  21298. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21299. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21300. have_xinput=yes
  21301. fi
  21302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21303. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21305. /* end confdefs.h. */
  21306. #include <windows.h>
  21307. #include <xinput.h>
  21308. XINPUT_GAMEPAD_EX x1;
  21309. int
  21310. main ()
  21311. {
  21312. ;
  21313. return 0;
  21314. }
  21315. _ACEOF
  21316. if ac_fn_c_try_compile "$LINENO"; then :
  21317. have_xinput_gamepadex=yes
  21318. fi
  21319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21321. $as_echo "$have_xinput_gamepadex" >&6; }
  21322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21323. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21325. /* end confdefs.h. */
  21326. #include <windows.h>
  21327. #include <xinput.h>
  21328. XINPUT_STATE_EX s1;
  21329. int
  21330. main ()
  21331. {
  21332. ;
  21333. return 0;
  21334. }
  21335. _ACEOF
  21336. if ac_fn_c_try_compile "$LINENO"; then :
  21337. have_xinput_stateex=yes
  21338. fi
  21339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21341. $as_echo "$have_xinput_stateex" >&6; }
  21342. if test x$have_xinput = xyes; then
  21343. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21344. fi
  21345. if test x$have_xinput_gamepadex = xyes; then
  21346. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21347. fi
  21348. if test x$have_xinput_stateex = xyes; then
  21349. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21350. fi
  21351. fi
  21352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21353. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21355. /* end confdefs.h. */
  21356. #define COBJMACROS
  21357. #include <windows.gaming.input.h>
  21358. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21359. int
  21360. main ()
  21361. {
  21362. ;
  21363. return 0;
  21364. }
  21365. _ACEOF
  21366. if ac_fn_c_try_compile "$LINENO"; then :
  21367. have_wgi=yes
  21368. else
  21369. have_wgi=no
  21370. fi
  21371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21373. $as_echo "$have_wgi" >&6; }
  21374. if test x$have_wgi = xyes; then
  21375. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21376. fi
  21377. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21378. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21379. have_wasapi=yes
  21380. fi
  21381. if test x$have_wasapi = xyes; then
  21382. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21383. fi
  21384. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21385. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21386. else
  21387. have_wasapi=no
  21388. fi
  21389. if test x$have_wasapi = xyes; then
  21390. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21391. fi
  21392. # Check whether --enable-wasapi was given.
  21393. if test "${enable_wasapi+set}" = set; then :
  21394. enableval=$enable_wasapi;
  21395. else
  21396. enable_wasapi=yes
  21397. fi
  21398. }
  21399. CheckDLOPEN()
  21400. {
  21401. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21402. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21403. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21404. have_dlfcn_h=yes
  21405. else
  21406. have_dlfcn_h=no
  21407. fi
  21408. have_dlopen=no
  21409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21410. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21411. if ${ac_cv_lib_c_dlopen+:} false; then :
  21412. $as_echo_n "(cached) " >&6
  21413. else
  21414. ac_check_lib_save_LIBS=$LIBS
  21415. LIBS="-lc $LIBS"
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. /* Override any GCC internal prototype to avoid an error.
  21419. Use char because int might match the return type of a GCC
  21420. builtin and then its argument prototype would still apply. */
  21421. #ifdef __cplusplus
  21422. extern "C"
  21423. #endif
  21424. char dlopen ();
  21425. int
  21426. main ()
  21427. {
  21428. return dlopen ();
  21429. ;
  21430. return 0;
  21431. }
  21432. _ACEOF
  21433. if ac_fn_c_try_link "$LINENO"; then :
  21434. ac_cv_lib_c_dlopen=yes
  21435. else
  21436. ac_cv_lib_c_dlopen=no
  21437. fi
  21438. rm -f core conftest.err conftest.$ac_objext \
  21439. conftest$ac_exeext conftest.$ac_ext
  21440. LIBS=$ac_check_lib_save_LIBS
  21441. fi
  21442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21443. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21444. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21445. have_dlopen=yes
  21446. else
  21447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21448. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21449. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21450. $as_echo_n "(cached) " >&6
  21451. else
  21452. ac_check_lib_save_LIBS=$LIBS
  21453. LIBS="-ldl $LIBS"
  21454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21455. /* end confdefs.h. */
  21456. /* Override any GCC internal prototype to avoid an error.
  21457. Use char because int might match the return type of a GCC
  21458. builtin and then its argument prototype would still apply. */
  21459. #ifdef __cplusplus
  21460. extern "C"
  21461. #endif
  21462. char dlopen ();
  21463. int
  21464. main ()
  21465. {
  21466. return dlopen ();
  21467. ;
  21468. return 0;
  21469. }
  21470. _ACEOF
  21471. if ac_fn_c_try_link "$LINENO"; then :
  21472. ac_cv_lib_dl_dlopen=yes
  21473. else
  21474. ac_cv_lib_dl_dlopen=no
  21475. fi
  21476. rm -f core conftest.err conftest.$ac_objext \
  21477. conftest$ac_exeext conftest.$ac_ext
  21478. LIBS=$ac_check_lib_save_LIBS
  21479. fi
  21480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21481. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21482. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21483. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21484. fi
  21485. fi
  21486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21487. $as_echo_n "checking for dlopen... " >&6; }
  21488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21489. $as_echo "$have_dlopen" >&6; }
  21490. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21491. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21492. if test x$enable_loadso = xyes; then
  21493. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21494. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21495. have_loadso=yes
  21496. fi
  21497. fi
  21498. }
  21499. CheckO_CLOEXEC()
  21500. {
  21501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21502. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21504. /* end confdefs.h. */
  21505. #include <fcntl.h>
  21506. int flag = O_CLOEXEC;
  21507. int
  21508. main ()
  21509. {
  21510. ;
  21511. return 0;
  21512. }
  21513. _ACEOF
  21514. if ac_fn_c_try_compile "$LINENO"; then :
  21515. have_o_cloexec=yes
  21516. else
  21517. have_o_cloexec=no
  21518. fi
  21519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21521. $as_echo "$have_o_cloexec" >&6; }
  21522. if test $have_o_cloexec = yes; then
  21523. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21524. fi
  21525. }
  21526. CheckUSBHID()
  21527. {
  21528. case "$host" in
  21529. *-*-*bsd*|*-*-dragonfly*)
  21530. if test x$enable_joystick = xyes; then
  21531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21532. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21533. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21534. $as_echo_n "(cached) " >&6
  21535. else
  21536. ac_check_lib_save_LIBS=$LIBS
  21537. LIBS="-lusbhid $LIBS"
  21538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21539. /* end confdefs.h. */
  21540. /* Override any GCC internal prototype to avoid an error.
  21541. Use char because int might match the return type of a GCC
  21542. builtin and then its argument prototype would still apply. */
  21543. #ifdef __cplusplus
  21544. extern "C"
  21545. #endif
  21546. char hid_init ();
  21547. int
  21548. main ()
  21549. {
  21550. return hid_init ();
  21551. ;
  21552. return 0;
  21553. }
  21554. _ACEOF
  21555. if ac_fn_c_try_link "$LINENO"; then :
  21556. ac_cv_lib_usbhid_hid_init=yes
  21557. else
  21558. ac_cv_lib_usbhid_hid_init=no
  21559. fi
  21560. rm -f core conftest.err conftest.$ac_objext \
  21561. conftest$ac_exeext conftest.$ac_ext
  21562. LIBS=$ac_check_lib_save_LIBS
  21563. fi
  21564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21565. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21566. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21567. have_libusbhid=yes
  21568. fi
  21569. if test x$have_libusbhid = xyes; then
  21570. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21571. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21572. USB_CFLAGS="-DHAVE_USBHID_H"
  21573. fi
  21574. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21575. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21576. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21577. fi
  21578. USB_LIBS="$USB_LIBS -lusbhid"
  21579. else
  21580. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21581. if test "x$ac_cv_header_usb_h" = xyes; then :
  21582. USB_CFLAGS="-DHAVE_USB_H"
  21583. fi
  21584. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21585. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21586. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21587. fi
  21588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21589. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21590. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21591. $as_echo_n "(cached) " >&6
  21592. else
  21593. ac_check_lib_save_LIBS=$LIBS
  21594. LIBS="-lusb $LIBS"
  21595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21596. /* end confdefs.h. */
  21597. /* Override any GCC internal prototype to avoid an error.
  21598. Use char because int might match the return type of a GCC
  21599. builtin and then its argument prototype would still apply. */
  21600. #ifdef __cplusplus
  21601. extern "C"
  21602. #endif
  21603. char hid_init ();
  21604. int
  21605. main ()
  21606. {
  21607. return hid_init ();
  21608. ;
  21609. return 0;
  21610. }
  21611. _ACEOF
  21612. if ac_fn_c_try_link "$LINENO"; then :
  21613. ac_cv_lib_usb_hid_init=yes
  21614. else
  21615. ac_cv_lib_usb_hid_init=no
  21616. fi
  21617. rm -f core conftest.err conftest.$ac_objext \
  21618. conftest$ac_exeext conftest.$ac_ext
  21619. LIBS=$ac_check_lib_save_LIBS
  21620. fi
  21621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21622. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21623. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21624. USB_LIBS="$USB_LIBS -lusb"
  21625. fi
  21626. fi
  21627. save_CFLAGS="$CFLAGS"
  21628. CFLAGS="$CFLAGS $USB_CFLAGS"
  21629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21630. $as_echo_n "checking for usbhid... " >&6; }
  21631. have_usbhid=no
  21632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21633. /* end confdefs.h. */
  21634. #include <sys/types.h>
  21635. #if defined(HAVE_USB_H)
  21636. #include <usb.h>
  21637. #endif
  21638. #ifdef __DragonFly__
  21639. # include <bus/u4b/usb.h>
  21640. # include <bus/u4b/usbhid.h>
  21641. #else
  21642. # include <dev/usb/usb.h>
  21643. # include <dev/usb/usbhid.h>
  21644. #endif
  21645. #if defined(HAVE_USBHID_H)
  21646. #include <usbhid.h>
  21647. #elif defined(HAVE_LIBUSB_H)
  21648. #include <libusb.h>
  21649. #elif defined(HAVE_LIBUSBHID_H)
  21650. #include <libusbhid.h>
  21651. #endif
  21652. int
  21653. main ()
  21654. {
  21655. struct report_desc *repdesc;
  21656. struct usb_ctl_report *repbuf;
  21657. hid_kind_t hidkind;
  21658. ;
  21659. return 0;
  21660. }
  21661. _ACEOF
  21662. if ac_fn_c_try_compile "$LINENO"; then :
  21663. have_usbhid=yes
  21664. fi
  21665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21667. $as_echo "$have_usbhid" >&6; }
  21668. if test x$have_usbhid = xyes; then
  21669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21670. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21671. have_usbhid_ucr_data=no
  21672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21673. /* end confdefs.h. */
  21674. #include <sys/types.h>
  21675. #if defined(HAVE_USB_H)
  21676. #include <usb.h>
  21677. #endif
  21678. #ifdef __DragonFly__
  21679. # include <bus/u4b/usb.h>
  21680. # include <bus/u4b/usbhid.h>
  21681. #else
  21682. # include <dev/usb/usb.h>
  21683. # include <dev/usb/usbhid.h>
  21684. #endif
  21685. #if defined(HAVE_USBHID_H)
  21686. #include <usbhid.h>
  21687. #elif defined(HAVE_LIBUSB_H)
  21688. #include <libusb.h>
  21689. #elif defined(HAVE_LIBUSBHID_H)
  21690. #include <libusbhid.h>
  21691. #endif
  21692. int
  21693. main ()
  21694. {
  21695. struct usb_ctl_report buf;
  21696. if (buf.ucr_data) { }
  21697. ;
  21698. return 0;
  21699. }
  21700. _ACEOF
  21701. if ac_fn_c_try_compile "$LINENO"; then :
  21702. have_usbhid_ucr_data=yes
  21703. fi
  21704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21705. if test x$have_usbhid_ucr_data = xyes; then
  21706. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21707. fi
  21708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21709. $as_echo "$have_usbhid_ucr_data" >&6; }
  21710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21711. $as_echo_n "checking for new usbhid API... " >&6; }
  21712. have_usbhid_new=no
  21713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21714. /* end confdefs.h. */
  21715. #include <sys/types.h>
  21716. #if defined(HAVE_USB_H)
  21717. #include <usb.h>
  21718. #endif
  21719. #ifdef __DragonFly__
  21720. #include <bus/u4b/usb.h>
  21721. #include <bus/u4b/usbhid.h>
  21722. #else
  21723. #include <dev/usb/usb.h>
  21724. #include <dev/usb/usbhid.h>
  21725. #endif
  21726. #if defined(HAVE_USBHID_H)
  21727. #include <usbhid.h>
  21728. #elif defined(HAVE_LIBUSB_H)
  21729. #include <libusb.h>
  21730. #elif defined(HAVE_LIBUSBHID_H)
  21731. #include <libusbhid.h>
  21732. #endif
  21733. int
  21734. main ()
  21735. {
  21736. report_desc_t d;
  21737. hid_start_parse(d, 1, 1);
  21738. ;
  21739. return 0;
  21740. }
  21741. _ACEOF
  21742. if ac_fn_c_try_compile "$LINENO"; then :
  21743. have_usbhid_new=yes
  21744. fi
  21745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21746. if test x$have_usbhid_new = xyes; then
  21747. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21748. fi
  21749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21750. $as_echo "$have_usbhid_new" >&6; }
  21751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21752. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21753. have_machine_joystick=no
  21754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21755. /* end confdefs.h. */
  21756. #include <machine/joystick.h>
  21757. int
  21758. main ()
  21759. {
  21760. struct joystick t;
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. if ac_fn_c_try_compile "$LINENO"; then :
  21766. have_machine_joystick=yes
  21767. fi
  21768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21769. if test x$have_machine_joystick = xyes; then
  21770. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21771. fi
  21772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21773. $as_echo "$have_machine_joystick" >&6; }
  21774. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21775. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21776. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21778. have_joystick=yes
  21779. fi
  21780. CFLAGS="$save_CFLAGS"
  21781. fi
  21782. ;;
  21783. esac
  21784. }
  21785. CheckHIDAPI()
  21786. {
  21787. # Check whether --enable-hidapi-joystick was given.
  21788. if test "${enable_hidapi_joystick+set}" = set; then :
  21789. enableval=$enable_hidapi_joystick;
  21790. else
  21791. enable_hidapi_joystick=yes
  21792. fi
  21793. # Check whether --enable-hidapi-libusb was given.
  21794. if test "${enable_hidapi_libusb+set}" = set; then :
  21795. enableval=$enable_hidapi_libusb;
  21796. else
  21797. enable_hidapi_libusb=maybe
  21798. fi
  21799. if test x$enable_hidapi = xyes; then
  21800. case "$host" in
  21801. # libusb does not support iOS
  21802. *-ios-* )
  21803. enable_hidapi_libusb=no
  21804. ;;
  21805. # On the other hand, *BSD specifically uses libusb only
  21806. *-*-*bsd* )
  21807. enable_hidapi_libusb=yes
  21808. require_hidapi_libusb=yes
  21809. ;;
  21810. *-*-os2* )
  21811. enable_hidapi_libusb=yes
  21812. ;;
  21813. esac
  21814. hidapi_support=yes
  21815. if test x$enable_hidapi_libusb = xyes; then
  21816. pkg_failed=no
  21817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21818. $as_echo_n "checking for libusb-1.0... " >&6; }
  21819. if test -n "$LIBUSB_CFLAGS"; then
  21820. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21821. elif test -n "$PKG_CONFIG"; then
  21822. if test -n "$PKG_CONFIG" && \
  21823. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21824. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21825. ac_status=$?
  21826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21827. test $ac_status = 0; }; then
  21828. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21829. test "x$?" != "x0" && pkg_failed=yes
  21830. else
  21831. pkg_failed=yes
  21832. fi
  21833. else
  21834. pkg_failed=untried
  21835. fi
  21836. if test -n "$LIBUSB_LIBS"; then
  21837. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21838. elif test -n "$PKG_CONFIG"; then
  21839. if test -n "$PKG_CONFIG" && \
  21840. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21841. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21842. ac_status=$?
  21843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21844. test $ac_status = 0; }; then
  21845. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21846. test "x$?" != "x0" && pkg_failed=yes
  21847. else
  21848. pkg_failed=yes
  21849. fi
  21850. else
  21851. pkg_failed=untried
  21852. fi
  21853. if test $pkg_failed = yes; then
  21854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21855. $as_echo "no" >&6; }
  21856. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21857. _pkg_short_errors_supported=yes
  21858. else
  21859. _pkg_short_errors_supported=no
  21860. fi
  21861. if test $_pkg_short_errors_supported = yes; then
  21862. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21863. else
  21864. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21865. fi
  21866. # Put the nasty error message in config.log where it belongs
  21867. echo "$LIBUSB_PKG_ERRORS" >&5
  21868. have_libusb=no
  21869. elif test $pkg_failed = untried; then
  21870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21871. $as_echo "no" >&6; }
  21872. have_libusb=no
  21873. else
  21874. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21875. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21877. $as_echo "yes" >&6; }
  21878. have_libusb=yes
  21879. fi
  21880. save_CPPFLAGS="$CPPFLAGS"
  21881. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21882. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21883. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21884. have_libusb_h=yes
  21885. else
  21886. have_libusb_h=no
  21887. fi
  21888. CPPFLAGS="$save_CPPFLAGS"
  21889. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21890. hidapi_support=no
  21891. fi
  21892. fi
  21893. if test x$hidapi_support = xyes; then
  21894. if test x$have_libusb_h = xyes; then
  21895. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21896. if test x$require_hidapi_libusb = xyes; then
  21897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21898. else
  21899. if test x$have_loadso != xyes; then
  21900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21901. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21902. fi
  21903. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21904. libusb_lib=""
  21905. case "$host" in
  21906. *-*-darwin* )
  21907. libusb_lib="libusb-1.0.0.dylib"
  21908. ;;
  21909. *-*-cygwin* | *-*-mingw* )
  21910. libusb_lib="libusb-1.0.dll"
  21911. ;;
  21912. *-*-os2* )
  21913. libusb_lib="usb100.dll"
  21914. ;;
  21915. esac
  21916. if test x$libusb_lib = x; then
  21917. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21918. fi
  21919. cat >>confdefs.h <<_ACEOF
  21920. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21921. _ACEOF
  21922. fi
  21923. fi
  21924. fi
  21925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21926. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21928. $as_echo "$hidapi_support" >&6; }
  21929. fi
  21930. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21931. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21932. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21933. fi
  21934. }
  21935. CheckClockGettime()
  21936. {
  21937. # Check whether --enable-clock_gettime was given.
  21938. if test "${enable_clock_gettime+set}" = set; then :
  21939. enableval=$enable_clock_gettime;
  21940. else
  21941. enable_clock_gettime=yes
  21942. fi
  21943. if test x$enable_clock_gettime = xyes; then
  21944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21945. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21946. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21947. $as_echo_n "(cached) " >&6
  21948. else
  21949. ac_check_lib_save_LIBS=$LIBS
  21950. LIBS="-lrt $LIBS"
  21951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21952. /* end confdefs.h. */
  21953. /* Override any GCC internal prototype to avoid an error.
  21954. Use char because int might match the return type of a GCC
  21955. builtin and then its argument prototype would still apply. */
  21956. #ifdef __cplusplus
  21957. extern "C"
  21958. #endif
  21959. char clock_gettime ();
  21960. int
  21961. main ()
  21962. {
  21963. return clock_gettime ();
  21964. ;
  21965. return 0;
  21966. }
  21967. _ACEOF
  21968. if ac_fn_c_try_link "$LINENO"; then :
  21969. ac_cv_lib_rt_clock_gettime=yes
  21970. else
  21971. ac_cv_lib_rt_clock_gettime=no
  21972. fi
  21973. rm -f core conftest.err conftest.$ac_objext \
  21974. conftest$ac_exeext conftest.$ac_ext
  21975. LIBS=$ac_check_lib_save_LIBS
  21976. fi
  21977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21978. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21979. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21980. have_clock_gettime=yes
  21981. fi
  21982. if test x$have_clock_gettime = xyes; then
  21983. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21985. else
  21986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21987. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21988. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21989. $as_echo_n "(cached) " >&6
  21990. else
  21991. ac_check_lib_save_LIBS=$LIBS
  21992. LIBS="-lc $LIBS"
  21993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21994. /* end confdefs.h. */
  21995. /* Override any GCC internal prototype to avoid an error.
  21996. Use char because int might match the return type of a GCC
  21997. builtin and then its argument prototype would still apply. */
  21998. #ifdef __cplusplus
  21999. extern "C"
  22000. #endif
  22001. char clock_gettime ();
  22002. int
  22003. main ()
  22004. {
  22005. return clock_gettime ();
  22006. ;
  22007. return 0;
  22008. }
  22009. _ACEOF
  22010. if ac_fn_c_try_link "$LINENO"; then :
  22011. ac_cv_lib_c_clock_gettime=yes
  22012. else
  22013. ac_cv_lib_c_clock_gettime=no
  22014. fi
  22015. rm -f core conftest.err conftest.$ac_objext \
  22016. conftest$ac_exeext conftest.$ac_ext
  22017. LIBS=$ac_check_lib_save_LIBS
  22018. fi
  22019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22020. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22021. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22022. have_clock_gettime=yes
  22023. fi
  22024. if test x$have_clock_gettime = xyes; then
  22025. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22027. fi
  22028. fi
  22029. fi
  22030. }
  22031. CheckLinuxVersion()
  22032. {
  22033. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22034. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22035. have_linux_version_h=yes
  22036. fi
  22037. if test x$have_linux_version_h = xyes; then
  22038. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22039. fi
  22040. }
  22041. CheckRPATH()
  22042. {
  22043. # Check whether --enable-rpath was given.
  22044. if test "${enable_rpath+set}" = set; then :
  22045. enableval=$enable_rpath;
  22046. else
  22047. enable_rpath=yes
  22048. fi
  22049. }
  22050. CheckEventSignals()
  22051. {
  22052. # Check whether --enable-backgrounding-signal was given.
  22053. if test "${enable_backgrounding_signal+set}" = set; then :
  22054. enableval=$enable_backgrounding_signal;
  22055. else
  22056. enable_backgrounding_signal=no
  22057. fi
  22058. if test x$enable_backgrounding_signal != xno; then
  22059. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22060. fi
  22061. # Check whether --enable-foregrounding-signal was given.
  22062. if test "${enable_foregrounding_signal+set}" = set; then :
  22063. enableval=$enable_foregrounding_signal;
  22064. else
  22065. enable_foregrounding_signal=no
  22066. fi
  22067. if test x$enable_foregrounding_signal != xno; then
  22068. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22069. fi
  22070. }
  22071. CheckVirtualJoystick()
  22072. {
  22073. # Check whether --enable-joystick-virtual was given.
  22074. if test "${enable_joystick_virtual+set}" = set; then :
  22075. enableval=$enable_joystick_virtual;
  22076. else
  22077. enable_joystick_virtual=yes
  22078. fi
  22079. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22080. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22081. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22082. have_joystick_virtual=yes
  22083. fi
  22084. }
  22085. CheckWarnAll
  22086. CheckNoStrictAliasing
  22087. CheckEventSignals
  22088. have_locale=no
  22089. case "$host" in
  22090. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22091. case "$host" in
  22092. *-*-android*)
  22093. # Android
  22094. ARCH=android
  22095. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22096. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22097. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22098. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22100. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22101. if test x$enable_video = xyes; then
  22102. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22103. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22104. SUMMARY_video="${SUMMARY_video} android"
  22105. fi
  22106. ;;
  22107. *-*-linux*) ARCH=linux ;;
  22108. *-*-uclinux*) ARCH=linux ;;
  22109. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22110. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22111. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22112. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22113. *-*-bsdi*) ARCH=bsdi ;;
  22114. *-*-freebsd*) ARCH=freebsd ;;
  22115. *-*-dragonfly*) ARCH=freebsd ;;
  22116. *-*-netbsd*) ARCH=netbsd ;;
  22117. *-*-openbsd*) ARCH=openbsd ;;
  22118. *-*-sysv5*) ARCH=sysv5 ;;
  22119. *-*-solaris*) ARCH=solaris ;;
  22120. *-*-hpux*) ARCH=hpux ;;
  22121. *-*-aix*) ARCH=aix ;;
  22122. *-*-minix*) ARCH=minix ;;
  22123. *-*-nto*) ARCH=nto
  22124. CheckQNXVideo
  22125. ;;
  22126. esac
  22127. CheckVisibilityHidden
  22128. CheckDeclarationAfterStatement
  22129. CheckDummyVideo
  22130. CheckOffscreenVideo
  22131. CheckDiskAudio
  22132. CheckDummyAudio
  22133. CheckDLOPEN
  22134. CheckARM
  22135. CheckNEON
  22136. CheckO_CLOEXEC
  22137. CheckOSS
  22138. CheckALSA
  22139. CheckPipewire
  22140. CheckPulseAudio
  22141. CheckJACK
  22142. CheckARTSC
  22143. CheckESD
  22144. CheckNAS
  22145. CheckSNDIO
  22146. CheckFusionSound
  22147. CheckLibSampleRate
  22148. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22149. CheckRPI
  22150. CheckX11
  22151. CheckDirectFB
  22152. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22153. CheckEGL
  22154. CheckKMSDRM
  22155. CheckGLX
  22156. CheckOpenGL
  22157. CheckOpenGLES
  22158. CheckVulkan
  22159. CheckWayland
  22160. CheckInputEvents
  22161. CheckLibUDev
  22162. CheckDBus
  22163. CheckIME
  22164. CheckInotify
  22165. CheckIBus
  22166. CheckFcitx
  22167. case $ARCH in
  22168. linux)
  22169. CheckInputKD
  22170. ;;
  22171. freebsd)
  22172. CheckInputKBIO
  22173. ;;
  22174. openbsd|netbsd)
  22175. CheckInputWSCONS
  22176. ;;
  22177. esac
  22178. CheckUSBHID
  22179. CheckHIDAPI
  22180. CheckPTHREAD
  22181. CheckClockGettime
  22182. CheckLinuxVersion
  22183. CheckRPATH
  22184. CheckVivanteVideo
  22185. # Set up files for the misc library
  22186. if test x$enable_misc = xyes; then
  22187. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22188. have_misc=yes
  22189. fi
  22190. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22191. have_locale=yes
  22192. # Set up files for the audio library
  22193. if test x$enable_audio = xyes; then
  22194. case $ARCH in
  22195. sysv5|solaris|hpux)
  22196. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22197. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22198. SUMMARY_audio="${SUMMARY_audio} sun"
  22199. have_audio=yes
  22200. ;;
  22201. netbsd) # Don't use this on OpenBSD, it's busted.
  22202. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22203. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22204. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22205. have_audio=yes
  22206. ;;
  22207. aix)
  22208. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22209. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22210. SUMMARY_audio="${SUMMARY_audio} paudio"
  22211. have_audio=yes
  22212. ;;
  22213. android)
  22214. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22215. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22216. SUMMARY_audio="${SUMMARY_audio} android"
  22217. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22218. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22219. SUMMARY_audio="${SUMMARY_audio} openslES"
  22220. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22221. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22222. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22223. have_audio=yes
  22224. ;;
  22225. nto)
  22226. CheckQNXAudio
  22227. ;;
  22228. esac
  22229. fi
  22230. # Set up files for the joystick library
  22231. if test x$enable_joystick = xyes; then
  22232. case $ARCH in
  22233. linux)
  22234. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22235. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22236. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22237. have_joystick=yes
  22238. ;;
  22239. freebsd)
  22240. if test x$use_input_events = xyes; then
  22241. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22242. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22243. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22244. have_joystick=yes
  22245. fi
  22246. ;;
  22247. android)
  22248. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22249. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22250. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22251. have_joystick=yes
  22252. ;;
  22253. esac
  22254. fi
  22255. # Set up files for the haptic library
  22256. if test x$enable_haptic = xyes; then
  22257. case $ARCH in
  22258. linux|freebsd)
  22259. if test x$use_input_events = xyes; then
  22260. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22261. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22262. have_haptic=yes
  22263. fi
  22264. ;;
  22265. android)
  22266. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22267. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22268. have_haptic=yes
  22269. ;;
  22270. esac
  22271. fi
  22272. # Set up files for the sensor library
  22273. if test x$enable_sensor = xyes; then
  22274. case $ARCH in
  22275. android)
  22276. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22277. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22278. have_sensor=yes
  22279. ;;
  22280. esac
  22281. fi
  22282. # Set up files for the power library
  22283. if test x$enable_power = xyes; then
  22284. case $ARCH in
  22285. linux)
  22286. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22287. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22288. have_power=yes
  22289. ;;
  22290. android)
  22291. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22292. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22293. have_power=yes
  22294. ;;
  22295. esac
  22296. fi
  22297. # Set up files for the filesystem library
  22298. if test x$enable_filesystem = xyes; then
  22299. case $ARCH in
  22300. android)
  22301. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22302. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22303. have_filesystem=yes
  22304. ;;
  22305. *)
  22306. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22307. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22308. have_filesystem=yes
  22309. ;;
  22310. esac
  22311. fi
  22312. # Set up files for the timer library
  22313. if test x$enable_timers = xyes; then
  22314. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22315. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22316. have_timers=yes
  22317. fi
  22318. # Set up files for udev hotplugging support
  22319. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22320. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22321. fi
  22322. # Set up files for evdev input
  22323. if test x$use_input_events = xyes; then
  22324. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22325. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22326. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22327. fi
  22328. # Set up files for wscons input
  22329. if test x$use_input_wscons = xyes; then
  22330. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22331. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22332. fi
  22333. # Set up other core UNIX files
  22334. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22335. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22336. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22337. ;;
  22338. *-*-cygwin* | *-*-mingw*)
  22339. ARCH=win32
  22340. if test "$build" != "$host"; then # cross-compiling
  22341. # Default cross-compile location
  22342. ac_default_prefix=/usr/local/cross-tools/$host
  22343. else
  22344. # Look for the location of the tools and install there
  22345. if test "$BUILD_PREFIX" != ""; then
  22346. ac_default_prefix=$BUILD_PREFIX
  22347. fi
  22348. fi
  22349. if test x$enable_loadso = xyes; then
  22350. have_loadso=yes
  22351. fi
  22352. CheckDeclarationAfterStatement
  22353. CheckDummyVideo
  22354. CheckOffscreenVideo
  22355. CheckDiskAudio
  22356. CheckDummyAudio
  22357. CheckWINDOWS
  22358. CheckWINDOWSGL
  22359. CheckWINDOWSGLES
  22360. CheckVulkan
  22361. CheckDIRECTX
  22362. CheckHIDAPI
  22363. # Set up the core platform files
  22364. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22365. # Set up files for the misc library
  22366. if test x$enable_misc = xyes; then
  22367. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22368. have_misc=yes
  22369. fi
  22370. # Use the Windows locale APIs.
  22371. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22372. have_locale=yes
  22373. # Set up files for the video library
  22374. if test x$enable_video = xyes; then
  22375. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22376. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22377. have_video=yes
  22378. # Check whether --enable-render-d3d was given.
  22379. if test "${enable_render_d3d+set}" = set; then :
  22380. enableval=$enable_render_d3d;
  22381. else
  22382. enable_render_d3d=yes
  22383. fi
  22384. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22385. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22386. SUMMARY_video="${SUMMARY_video} d3d9"
  22387. fi
  22388. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22389. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22390. SUMMARY_video="${SUMMARY_video} d3d11"
  22391. fi
  22392. fi
  22393. # Set up files for the audio library
  22394. if test x$enable_audio = xyes; then
  22395. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22396. SUMMARY_audio="${SUMMARY_audio} winmm"
  22397. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22398. if test x$have_dsound = xyes; then
  22399. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22400. SUMMARY_audio="${SUMMARY_audio} directsound"
  22401. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22402. fi
  22403. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22404. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22405. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22406. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22407. fi
  22408. have_audio=yes
  22409. fi
  22410. # Set up files for the joystick library
  22411. if test x$enable_joystick = xyes; then
  22412. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22413. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22414. if test x$have_xinput = xyes; then
  22415. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22416. fi
  22417. if test x$have_wgi = xyes; then
  22418. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22419. fi
  22420. if test x$have_dinput = xyes; then
  22421. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22422. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22423. fi
  22424. fi
  22425. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22426. have_joystick=yes
  22427. fi
  22428. if test x$enable_haptic = xyes; then
  22429. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22430. if test x$have_xinput = xyes; then
  22431. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22432. fi
  22433. if test x$have_dinput = xyes; then
  22434. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22435. fi
  22436. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22437. have_haptic=yes
  22438. fi
  22439. fi
  22440. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22441. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  22442. have_tpcshrd_h=yes
  22443. fi
  22444. if test x$have_tpcshrd_h = xyes; then
  22445. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22446. fi
  22447. # Set up files for the sensor library
  22448. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22449. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22450. have_winsensors=yes
  22451. else
  22452. have_winsensors=no
  22453. fi
  22454. if test x$have_winsensors = xyes; then
  22455. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22456. fi
  22457. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22458. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22459. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22460. have_sensor=yes
  22461. fi
  22462. # Set up files for the power library
  22463. if test x$enable_power = xyes; then
  22464. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22465. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22466. have_power=yes
  22467. fi
  22468. # Set up files for the filesystem library
  22469. if test x$enable_filesystem = xyes; then
  22470. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22471. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22472. have_filesystem=yes
  22473. fi
  22474. # Set up files for the thread library
  22475. if test x$enable_threads = xyes; then
  22476. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22477. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22478. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22479. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22480. have_threads=yes
  22481. fi
  22482. # Set up files for the timer library
  22483. if test x$enable_timers = xyes; then
  22484. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22485. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22486. have_timers=yes
  22487. fi
  22488. # Set up files for the shared object loading library
  22489. if test x$enable_loadso = xyes; then
  22490. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22491. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22492. fi
  22493. # Set up the system libraries we need
  22494. if test -f /lib/w32api/libuuid.a; then
  22495. LIBUUID=/lib/w32api/libuuid.a
  22496. else
  22497. LIBUUID=-luuid
  22498. fi
  22499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22500. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22501. # The Windows platform requires special setup
  22502. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22503. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22504. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22505. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22506. # Check to see if this is a mingw or cygwin build
  22507. have_mingw32=
  22508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22509. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22510. if ${ac_cv_lib_mingw32_main+:} false; then :
  22511. $as_echo_n "(cached) " >&6
  22512. else
  22513. ac_check_lib_save_LIBS=$LIBS
  22514. LIBS="-lmingw32 $LIBS"
  22515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22516. /* end confdefs.h. */
  22517. int
  22518. main ()
  22519. {
  22520. return main ();
  22521. ;
  22522. return 0;
  22523. }
  22524. _ACEOF
  22525. if ac_fn_c_try_link "$LINENO"; then :
  22526. ac_cv_lib_mingw32_main=yes
  22527. else
  22528. ac_cv_lib_mingw32_main=no
  22529. fi
  22530. rm -f core conftest.err conftest.$ac_objext \
  22531. conftest$ac_exeext conftest.$ac_ext
  22532. LIBS=$ac_check_lib_save_LIBS
  22533. fi
  22534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22535. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22536. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22537. have_mingw32=yes
  22538. fi
  22539. if test x$have_mingw32 = xyes; then
  22540. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22541. else
  22542. SDL_LIBS="-lcygwin $SDL_LIBS"
  22543. fi
  22544. ;;
  22545. *-*-beos*)
  22546. as_fn_error $? "
  22547. *** BeOS support has been removed as of SDL 2.0.2.
  22548. " "$LINENO" 5
  22549. ;;
  22550. *-*-haiku*)
  22551. ARCH=haiku
  22552. ac_default_prefix=/boot/system
  22553. CheckDummyVideo
  22554. CheckOffscreenVideo
  22555. CheckDiskAudio
  22556. CheckDummyAudio
  22557. CheckDLOPEN
  22558. CheckO_CLOEXEC
  22559. CheckHaikuVideo
  22560. CheckHaikuGL
  22561. CheckPTHREAD
  22562. # Set up files for the audio library
  22563. if test x$enable_audio = xyes; then
  22564. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22565. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22566. SUMMARY_audio="${SUMMARY_audio} haiku"
  22567. have_audio=yes
  22568. fi
  22569. # Set up files for the joystick library
  22570. if test x$enable_joystick = xyes; then
  22571. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22572. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22573. have_joystick=yes
  22574. fi
  22575. # Set up files for the timer library
  22576. if test x$enable_timers = xyes; then
  22577. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22578. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22579. have_timers=yes
  22580. fi
  22581. # Set up files for the system power library
  22582. if test x$enable_power = xyes; then
  22583. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22584. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22585. have_power=yes
  22586. fi
  22587. # Set up files for the system filesystem library
  22588. if test x$enable_filesystem = xyes; then
  22589. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22590. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22591. have_filesystem=yes
  22592. fi
  22593. # Set up files for the misc library
  22594. if test x$enable_misc = xyes; then
  22595. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22596. have_misc=yes
  22597. fi
  22598. # Set up files for the locale library
  22599. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22600. have_locale=yes
  22601. # The Haiku platform requires special setup.
  22602. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22604. ;;
  22605. *-ios-*)
  22606. ARCH=ios
  22607. CheckVisibilityHidden
  22608. CheckDeclarationAfterStatement
  22609. CheckDummyVideo
  22610. CheckOffscreenVideo
  22611. CheckDiskAudio
  22612. CheckDummyAudio
  22613. CheckDLOPEN
  22614. CheckO_CLOEXEC
  22615. CheckMETAL
  22616. CheckVulkan
  22617. CheckPTHREAD
  22618. # Set up files for the misc library
  22619. if test x$enable_misc = xyes; then
  22620. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22621. have_misc=yes
  22622. fi
  22623. # Set up files for the locale library
  22624. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22625. have_locale=yes
  22626. # Set up files for the audio library
  22627. if test x$enable_audio = xyes; then
  22628. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22629. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22630. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22631. have_audio=yes
  22632. fi
  22633. # Set up files for the joystick library
  22634. if test x$enable_joystick = xyes; then
  22635. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22636. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22637. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22638. have_joystick=yes
  22639. else
  22640. # Need this code for accelerometer as joystick support
  22641. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22642. fi
  22643. # Set up files for the haptic library
  22644. #if test x$enable_haptic = xyes; then
  22645. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22646. # have_haptic=yes
  22647. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22648. #fi
  22649. # Set up files for the sensor library
  22650. if test x$enable_sensor = xyes; then
  22651. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22652. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22653. have_sensor=yes
  22654. fi
  22655. # Set up files for the power library
  22656. if test x$enable_power = xyes; then
  22657. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22658. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22659. have_power=yes
  22660. fi
  22661. # Set up files for the filesystem library
  22662. if test x$enable_filesystem = xyes; then
  22663. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22664. have_filesystem=yes
  22665. fi
  22666. # Set up additional files for the file library
  22667. if test x$enable_file = xyes; then
  22668. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22669. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22670. fi
  22671. # Set up files for the timer library
  22672. if test x$enable_timers = xyes; then
  22673. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22674. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22675. have_timers=yes
  22676. fi
  22677. # Set up other core UNIX files
  22678. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22679. # The iOS platform requires special setup.
  22680. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22681. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22682. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22683. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22684. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22685. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22695. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22697. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22698. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22699. fi
  22700. ;;
  22701. *-*-darwin* )
  22702. # This could be either full "Mac OS X", or plain "Darwin" which is
  22703. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22704. # Next line is broken, and a few files below require Mac OS X (full)
  22705. ARCH=macosx
  22706. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22707. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22708. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22709. CheckVisibilityHidden
  22710. CheckDeclarationAfterStatement
  22711. CheckDummyVideo
  22712. CheckOffscreenVideo
  22713. CheckDiskAudio
  22714. CheckDummyAudio
  22715. CheckDLOPEN
  22716. CheckO_CLOEXEC
  22717. CheckCOCOA
  22718. CheckMETAL
  22719. CheckX11
  22720. CheckMacGL
  22721. CheckMacGLES
  22722. CheckGLX
  22723. CheckOpenGL
  22724. CheckVulkan
  22725. CheckPTHREAD
  22726. CheckHIDAPI
  22727. # Set up files for the misc library
  22728. if test x$enable_misc = xyes; then
  22729. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22730. have_misc=yes
  22731. fi
  22732. # Set up files for the locale library
  22733. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22734. have_locale=yes
  22735. # Set up files for the audio library
  22736. if test x$enable_audio = xyes; then
  22737. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22738. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22740. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22741. have_audio=yes
  22742. fi
  22743. # Set up files for the joystick library
  22744. if test x$enable_joystick = xyes; then
  22745. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22746. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22747. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22748. CheckJoystickMFI
  22749. have_joystick=yes
  22750. fi
  22751. # Set up files for the haptic library
  22752. if test x$enable_haptic = xyes; then
  22753. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22754. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22756. have_haptic=yes
  22757. fi
  22758. # Set up files for the power library
  22759. if test x$enable_power = xyes; then
  22760. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22761. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22762. have_power=yes
  22763. fi
  22764. # Set up files for the filesystem library
  22765. if test x$enable_filesystem = xyes; then
  22766. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22767. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22768. have_filesystem=yes
  22769. fi
  22770. # Set up files for the timer library
  22771. if test x$enable_timers = xyes; then
  22772. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22773. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22774. have_timers=yes
  22775. fi
  22776. # Set up additional files for the file library
  22777. if test x$enable_file = xyes; then
  22778. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22779. fi
  22780. # Set up other core UNIX files
  22781. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22782. # The Mac OS X platform requires special setup.
  22783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22788. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22789. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22790. fi
  22791. ;;
  22792. *-nacl|*-pnacl)
  22793. ARCH=nacl
  22794. CheckNativeClient
  22795. CheckDummyAudio
  22796. CheckDummyVideo
  22797. CheckOffscreenVideo
  22798. CheckInputEvents
  22799. CheckPTHREAD
  22800. CheckO_CLOEXEC
  22801. # Set up files for the timer library
  22802. if test x$enable_timers = xyes; then
  22803. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22804. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22805. have_timers=yes
  22806. fi
  22807. if test x$enable_filesystem = xyes; then
  22808. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22809. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22810. have_filesystem=yes
  22811. fi
  22812. ;;
  22813. *-*-emscripten* )
  22814. if test x$enable_video = xyes; then
  22815. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22816. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22817. have_video=yes
  22818. SUMMARY_video="${SUMMARY_video} emscripten"
  22819. fi
  22820. if test x$enable_audio = xyes; then
  22821. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22822. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22823. have_audio=yes
  22824. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22825. fi
  22826. CheckVisibilityHidden
  22827. CheckDeclarationAfterStatement
  22828. CheckDummyVideo
  22829. CheckOffscreenVideo
  22830. CheckDiskAudio
  22831. CheckDummyAudio
  22832. CheckPTHREAD
  22833. CheckDLOPEN
  22834. CheckClockGettime
  22835. CheckEmscriptenGLES
  22836. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22837. have_misc=yes
  22838. # Set up files for the power library
  22839. if test x$enable_power = xyes; then
  22840. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22841. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22842. have_power=yes
  22843. fi
  22844. # Set up files for the power library
  22845. if test x$enable_joystick = xyes; then
  22846. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22847. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22848. have_joystick=yes
  22849. fi
  22850. # Set up files for the filesystem library
  22851. if test x$enable_filesystem = xyes; then
  22852. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22853. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22854. have_filesystem=yes
  22855. fi
  22856. # Set up files for the timer library
  22857. if test x$enable_timers = xyes; then
  22858. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22860. have_timers=yes
  22861. fi
  22862. # Set up files for the locale library
  22863. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22864. have_locale=yes
  22865. ;;
  22866. *-*-riscos*)
  22867. ARCH=riscos
  22868. CheckVisibilityHidden
  22869. CheckDeclarationAfterStatement
  22870. CheckDummyVideo
  22871. CheckOffscreenVideo
  22872. CheckDiskAudio
  22873. CheckDummyAudio
  22874. CheckDLOPEN
  22875. CheckO_CLOEXEC
  22876. CheckOSS
  22877. CheckPTHREAD
  22878. CheckClockGettime
  22879. # Set up files for the misc library
  22880. if test x$enable_misc = xyes; then
  22881. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22882. have_misc=yes
  22883. fi
  22884. # Set up files for the video library
  22885. if test x$enable_video = xyes; then
  22886. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22887. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22888. have_video=yes
  22889. SUMMARY_video="${SUMMARY_video} riscos"
  22890. fi
  22891. # Set up files for the filesystem library
  22892. if test x$enable_filesystem = xyes; then
  22893. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22894. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22895. have_filesystem=yes
  22896. fi
  22897. # Set up files for the timer library
  22898. if test x$enable_timers = xyes; then
  22899. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22900. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22901. have_timers=yes
  22902. fi
  22903. ;;
  22904. *-*-os2*)
  22905. ARCH=os2
  22906. if test "$build" != "$host"; then # cross-compiling
  22907. # Default cross-compile location
  22908. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22909. else
  22910. # Look for the location of the tools and install there
  22911. if test "$BUILD_PREFIX" != ""; then
  22912. ac_default_prefix=$BUILD_PREFIX
  22913. fi
  22914. fi
  22915. enable_static=no # disable static builds
  22916. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22917. CheckOS2
  22918. CheckDeclarationAfterStatement
  22919. CheckDummyVideo
  22920. CheckDiskAudio
  22921. CheckDummyAudio
  22922. CheckHIDAPI
  22923. # Set up the core platform files
  22924. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22925. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22926. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22927. fi
  22928. # Use the Unix locale APIs.
  22929. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22930. have_locale=yes
  22931. # Set up files for the video library
  22932. if test x$enable_video = xyes; then
  22933. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22934. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22935. have_video=yes
  22936. SUMMARY_video="${SUMMARY_video} os/2"
  22937. fi
  22938. # Set up files for the audio library
  22939. if test x$enable_audio = xyes; then
  22940. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22941. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22942. have_audio=yes
  22943. SUMMARY_audio="${SUMMARY_audio} os/2"
  22944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22945. fi
  22946. # Set up files for the thread library
  22947. if test x$enable_threads = xyes; then
  22948. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22949. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22950. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22951. have_threads=yes
  22952. fi
  22953. # Set up files for the timer library
  22954. if test x$enable_timers = xyes; then
  22955. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22956. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22957. have_timers=yes
  22958. fi
  22959. # Set up files for the shared object loading library
  22960. if test x$enable_loadso = xyes; then
  22961. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22962. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22963. have_loadso=yes
  22964. fi
  22965. # Set up files for the filesystem library
  22966. if test x$enable_filesystem = xyes; then
  22967. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22968. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22969. have_filesystem=yes
  22970. fi
  22971. # Set up files for the joystick library
  22972. if test x$enable_joystick = xyes; then
  22973. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22974. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22975. have_joystick=yes
  22976. fi
  22977. ;;
  22978. *)
  22979. as_fn_error $? "
  22980. *** Unsupported host: Please add to configure.ac
  22981. " "$LINENO" 5
  22982. ;;
  22983. esac
  22984. CheckVirtualJoystick
  22985. # Check whether to install sdl2-config
  22986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22987. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22988. # Check whether --enable-sdl2-config was given.
  22989. if test "${enable_sdl2_config+set}" = set; then :
  22990. enableval=$enable_sdl2_config; case "${enableval}" in
  22991. yes) enable_sdl2_config="TRUE" ;;
  22992. no) enable_sdl2_config="FALSE" ;;
  22993. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22994. esac
  22995. else
  22996. enable_sdl2_config="TRUE"
  22997. fi
  22998. if test "$enable_sdl2_config" = "TRUE"; then
  22999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23000. $as_echo "yes" >&6; }
  23001. else
  23002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23003. $as_echo "no" >&6; }
  23004. fi
  23005. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23006. # Verify that we have all the platform specific files we need
  23007. if test x$have_misc != xyes; then
  23008. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23009. fi
  23010. if test x$have_locale != xyes; then
  23011. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23012. fi
  23013. if test x$have_joystick != xyes; then
  23014. if test x$enable_joystick = xyes; then
  23015. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23016. fi
  23017. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23018. fi
  23019. if test x$have_haptic != xyes; then
  23020. if test x$enable_haptic = xyes; then
  23021. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23022. fi
  23023. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23024. fi
  23025. if test x$have_sensor != xyes; then
  23026. if test x$enable_sensor = xyes; then
  23027. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23028. fi
  23029. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23030. fi
  23031. if test x$have_threads != xyes; then
  23032. if test x$enable_threads = xyes; then
  23033. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23034. fi
  23035. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23036. fi
  23037. if test x$have_timers != xyes; then
  23038. if test x$enable_timers = xyes; then
  23039. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  23040. fi
  23041. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23042. fi
  23043. if test x$have_filesystem != xyes; then
  23044. if test x$enable_filesystem = xyes; then
  23045. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  23046. fi
  23047. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23048. fi
  23049. if test x$have_loadso != xyes; then
  23050. if test x$enable_loadso = xyes; then
  23051. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  23052. fi
  23053. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23054. fi
  23055. if test x$SDLMAIN_SOURCES = x; then
  23056. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23057. fi
  23058. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23059. if test x$video_wayland = xyes; then
  23060. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23061. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23062. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23063. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23064. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23065. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23066. echo ;\
  23067. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23068. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23069. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23070. echo ;\
  23071. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23072. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23073. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23074. echo ;\
  23075. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23076. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23077. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23078. done ;\
  23079. echo ;\
  23080. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23081. fi
  23082. OBJECTS=`echo $SOURCES`
  23083. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23084. for EXT in asm cc m c S; do
  23085. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23086. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23087. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23088. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23089. done
  23090. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23091. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23092. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23093. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23094. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23095. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23096. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23097. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23098. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23099. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23100. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23101. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23102. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23103. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23104. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23105. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23106. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23107. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23108. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23109. # Set runtime shared library paths as needed
  23110. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23111. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23112. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23114. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23115. have_enable_new_dtags=no
  23116. save_LDFLAGS="$LDFLAGS"
  23117. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23119. /* end confdefs.h. */
  23120. int
  23121. main ()
  23122. {
  23123. ;
  23124. return 0;
  23125. }
  23126. _ACEOF
  23127. if ac_fn_c_try_link "$LINENO"; then :
  23128. have_enable_new_dtags=yes
  23129. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23130. fi
  23131. rm -f core conftest.err conftest.$ac_objext \
  23132. conftest$ac_exeext conftest.$ac_ext
  23133. LDFLAGS="$save_LDFLAGS"
  23134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23135. $as_echo "$have_enable_new_dtags" >&6; }
  23136. fi
  23137. if test $ARCH = solaris; then
  23138. SDL_RLD_FLAGS="-R\${libdir}"
  23139. fi
  23140. else
  23141. SDL_RLD_FLAGS=""
  23142. fi
  23143. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23144. if test x$enable_shared = xyes; then
  23145. PKGCONFIG_LIBS_PRIV="
  23146. Libs.private:"
  23147. ENABLE_SHARED_TRUE=
  23148. ENABLE_SHARED_FALSE="#"
  23149. else
  23150. PKGCONFIG_LIBS_PRIV=
  23151. ENABLE_SHARED_TRUE="#"
  23152. ENABLE_SHARED_FALSE=
  23153. fi
  23154. if test x$enable_static = xyes; then
  23155. ENABLE_STATIC_TRUE=
  23156. ENABLE_STATIC_FALSE="#"
  23157. else
  23158. ENABLE_STATIC_TRUE="#"
  23159. ENABLE_STATIC_FALSE=
  23160. fi
  23161. cat >Makefile.rules <<__EOF__
  23162. # Build rules for objects
  23163. -include \$(OBJECTS:.lo=.d)
  23164. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23165. $srcdir/src/SDL.c: update-revision
  23166. $DEPENDS
  23167. $VERSION_DEPENDS
  23168. $SDLMAIN_DEPENDS
  23169. $SDLTEST_DEPENDS
  23170. $WAYLAND_PROTOCOLS_DEPENDS
  23171. __EOF__
  23172. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23173. ac_config_commands="$ac_config_commands sdl2_config"
  23174. SUMMARY="SDL2 Configure Summary:\n"
  23175. if test x$enable_shared = xyes; then
  23176. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23177. fi
  23178. if test x$enable_static = xyes; then
  23179. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23180. fi
  23181. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23182. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23183. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23184. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23185. if test x$have_x = xyes; then
  23186. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23187. fi
  23188. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23189. if test x$have_joystick_virtual = xyes; then
  23190. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23191. else
  23192. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23193. fi
  23194. if test x$have_samplerate_h_hdr = xyes; then
  23195. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23196. else
  23197. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23198. fi
  23199. if test x$have_libudev_h_hdr = xyes; then
  23200. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23201. else
  23202. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23203. fi
  23204. if test x$have_dbus_dbus_h_hdr = xyes; then
  23205. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23206. else
  23207. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23208. fi
  23209. if test x$enable_ime = xyes; then
  23210. SUMMARY="${SUMMARY}Using ime : YES\n"
  23211. else
  23212. SUMMARY="${SUMMARY}Using ime : NO\n"
  23213. fi
  23214. if test x$have_ibus_ibus_h_hdr = xyes; then
  23215. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23216. else
  23217. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23218. fi
  23219. if test x$have_fcitx = xyes; then
  23220. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23221. else
  23222. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23223. fi
  23224. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23225. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23226. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23227. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23228. SUMMARY="${SUMMARY}configure script with:\n"
  23229. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23230. fi
  23231. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23232. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23233. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23234. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23235. SUMMARY="${SUMMARY}configure script with:\n"
  23236. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23237. fi
  23238. ac_config_commands="$ac_config_commands summary"
  23239. cat >confcache <<\_ACEOF
  23240. # This file is a shell script that caches the results of configure
  23241. # tests run on this system so they can be shared between configure
  23242. # scripts and configure runs, see configure's option --config-cache.
  23243. # It is not useful on other systems. If it contains results you don't
  23244. # want to keep, you may remove or edit it.
  23245. #
  23246. # config.status only pays attention to the cache file if you give it
  23247. # the --recheck option to rerun configure.
  23248. #
  23249. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23250. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23251. # following values.
  23252. _ACEOF
  23253. # The following way of writing the cache mishandles newlines in values,
  23254. # but we know of no workaround that is simple, portable, and efficient.
  23255. # So, we kill variables containing newlines.
  23256. # Ultrix sh set writes to stderr and can't be redirected directly,
  23257. # and sets the high bit in the cache file unless we assign to the vars.
  23258. (
  23259. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23260. eval ac_val=\$$ac_var
  23261. case $ac_val in #(
  23262. *${as_nl}*)
  23263. case $ac_var in #(
  23264. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23265. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23266. esac
  23267. case $ac_var in #(
  23268. _ | IFS | as_nl) ;; #(
  23269. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23270. *) { eval $ac_var=; unset $ac_var;} ;;
  23271. esac ;;
  23272. esac
  23273. done
  23274. (set) 2>&1 |
  23275. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23276. *${as_nl}ac_space=\ *)
  23277. # `set' does not quote correctly, so add quotes: double-quote
  23278. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23279. sed -n \
  23280. "s/'/'\\\\''/g;
  23281. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23282. ;; #(
  23283. *)
  23284. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23285. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23286. ;;
  23287. esac |
  23288. sort
  23289. ) |
  23290. sed '
  23291. /^ac_cv_env_/b end
  23292. t clear
  23293. :clear
  23294. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23295. t end
  23296. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23297. :end' >>confcache
  23298. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23299. if test -w "$cache_file"; then
  23300. if test "x$cache_file" != "x/dev/null"; then
  23301. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23302. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23303. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23304. cat confcache >"$cache_file"
  23305. else
  23306. case $cache_file in #(
  23307. */* | ?:*)
  23308. mv -f confcache "$cache_file"$$ &&
  23309. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23310. *)
  23311. mv -f confcache "$cache_file" ;;
  23312. esac
  23313. fi
  23314. fi
  23315. else
  23316. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23317. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23318. fi
  23319. fi
  23320. rm -f confcache
  23321. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23322. # Let make expand exec_prefix.
  23323. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23324. DEFS=-DHAVE_CONFIG_H
  23325. ac_libobjs=
  23326. ac_ltlibobjs=
  23327. U=
  23328. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23329. # 1. Remove the extension, and $U if already installed.
  23330. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23331. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23332. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23333. # will be set to the directory where LIBOBJS objects are built.
  23334. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23335. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23336. done
  23337. LIBOBJS=$ac_libobjs
  23338. LTLIBOBJS=$ac_ltlibobjs
  23339. : "${CONFIG_STATUS=./config.status}"
  23340. ac_write_fail=0
  23341. ac_clean_files_save=$ac_clean_files
  23342. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23343. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23344. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23345. as_write_fail=0
  23346. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23347. #! $SHELL
  23348. # Generated by $as_me.
  23349. # Run this file to recreate the current configuration.
  23350. # Compiler output produced by configure, useful for debugging
  23351. # configure, is in config.log if it exists.
  23352. debug=false
  23353. ac_cs_recheck=false
  23354. ac_cs_silent=false
  23355. SHELL=\${CONFIG_SHELL-$SHELL}
  23356. export SHELL
  23357. _ASEOF
  23358. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23359. ## -------------------- ##
  23360. ## M4sh Initialization. ##
  23361. ## -------------------- ##
  23362. # Be more Bourne compatible
  23363. DUALCASE=1; export DUALCASE # for MKS sh
  23364. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23365. emulate sh
  23366. NULLCMD=:
  23367. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23368. # is contrary to our usage. Disable this feature.
  23369. alias -g '${1+"$@"}'='"$@"'
  23370. setopt NO_GLOB_SUBST
  23371. else
  23372. case `(set -o) 2>/dev/null` in #(
  23373. *posix*) :
  23374. set -o posix ;; #(
  23375. *) :
  23376. ;;
  23377. esac
  23378. fi
  23379. as_nl='
  23380. '
  23381. export as_nl
  23382. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23383. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23384. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23385. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23386. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23387. # but without wasting forks for bash or zsh.
  23388. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23389. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23390. as_echo='print -r --'
  23391. as_echo_n='print -rn --'
  23392. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23393. as_echo='printf %s\n'
  23394. as_echo_n='printf %s'
  23395. else
  23396. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23397. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23398. as_echo_n='/usr/ucb/echo -n'
  23399. else
  23400. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23401. as_echo_n_body='eval
  23402. arg=$1;
  23403. case $arg in #(
  23404. *"$as_nl"*)
  23405. expr "X$arg" : "X\\(.*\\)$as_nl";
  23406. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23407. esac;
  23408. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23409. '
  23410. export as_echo_n_body
  23411. as_echo_n='sh -c $as_echo_n_body as_echo'
  23412. fi
  23413. export as_echo_body
  23414. as_echo='sh -c $as_echo_body as_echo'
  23415. fi
  23416. # The user is always right.
  23417. if test "${PATH_SEPARATOR+set}" != set; then
  23418. PATH_SEPARATOR=:
  23419. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23420. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23421. PATH_SEPARATOR=';'
  23422. }
  23423. fi
  23424. # IFS
  23425. # We need space, tab and new line, in precisely that order. Quoting is
  23426. # there to prevent editors from complaining about space-tab.
  23427. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23428. # splitting by setting IFS to empty value.)
  23429. IFS=" "" $as_nl"
  23430. # Find who we are. Look in the path if we contain no directory separator.
  23431. as_myself=
  23432. case $0 in #((
  23433. *[\\/]* ) as_myself=$0 ;;
  23434. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23435. for as_dir in $PATH
  23436. do
  23437. IFS=$as_save_IFS
  23438. test -z "$as_dir" && as_dir=.
  23439. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23440. done
  23441. IFS=$as_save_IFS
  23442. ;;
  23443. esac
  23444. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23445. # in which case we are not to be found in the path.
  23446. if test "x$as_myself" = x; then
  23447. as_myself=$0
  23448. fi
  23449. if test ! -f "$as_myself"; then
  23450. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23451. exit 1
  23452. fi
  23453. # Unset variables that we do not need and which cause bugs (e.g. in
  23454. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23455. # suppresses any "Segmentation fault" message there. '((' could
  23456. # trigger a bug in pdksh 5.2.14.
  23457. for as_var in BASH_ENV ENV MAIL MAILPATH
  23458. do eval test x\${$as_var+set} = xset \
  23459. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23460. done
  23461. PS1='$ '
  23462. PS2='> '
  23463. PS4='+ '
  23464. # NLS nuisances.
  23465. LC_ALL=C
  23466. export LC_ALL
  23467. LANGUAGE=C
  23468. export LANGUAGE
  23469. # CDPATH.
  23470. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23471. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23472. # ----------------------------------------
  23473. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23474. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23475. # script with STATUS, using 1 if that was 0.
  23476. as_fn_error ()
  23477. {
  23478. as_status=$1; test $as_status -eq 0 && as_status=1
  23479. if test "$4"; then
  23480. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23481. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23482. fi
  23483. $as_echo "$as_me: error: $2" >&2
  23484. as_fn_exit $as_status
  23485. } # as_fn_error
  23486. # as_fn_set_status STATUS
  23487. # -----------------------
  23488. # Set $? to STATUS, without forking.
  23489. as_fn_set_status ()
  23490. {
  23491. return $1
  23492. } # as_fn_set_status
  23493. # as_fn_exit STATUS
  23494. # -----------------
  23495. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23496. as_fn_exit ()
  23497. {
  23498. set +e
  23499. as_fn_set_status $1
  23500. exit $1
  23501. } # as_fn_exit
  23502. # as_fn_unset VAR
  23503. # ---------------
  23504. # Portably unset VAR.
  23505. as_fn_unset ()
  23506. {
  23507. { eval $1=; unset $1;}
  23508. }
  23509. as_unset=as_fn_unset
  23510. # as_fn_append VAR VALUE
  23511. # ----------------------
  23512. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23513. # advantage of any shell optimizations that allow amortized linear growth over
  23514. # repeated appends, instead of the typical quadratic growth present in naive
  23515. # implementations.
  23516. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23517. eval 'as_fn_append ()
  23518. {
  23519. eval $1+=\$2
  23520. }'
  23521. else
  23522. as_fn_append ()
  23523. {
  23524. eval $1=\$$1\$2
  23525. }
  23526. fi # as_fn_append
  23527. # as_fn_arith ARG...
  23528. # ------------------
  23529. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23530. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23531. # must be portable across $(()) and expr.
  23532. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23533. eval 'as_fn_arith ()
  23534. {
  23535. as_val=$(( $* ))
  23536. }'
  23537. else
  23538. as_fn_arith ()
  23539. {
  23540. as_val=`expr "$@" || test $? -eq 1`
  23541. }
  23542. fi # as_fn_arith
  23543. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23544. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23545. as_expr=expr
  23546. else
  23547. as_expr=false
  23548. fi
  23549. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23550. as_basename=basename
  23551. else
  23552. as_basename=false
  23553. fi
  23554. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23555. as_dirname=dirname
  23556. else
  23557. as_dirname=false
  23558. fi
  23559. as_me=`$as_basename -- "$0" ||
  23560. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23561. X"$0" : 'X\(//\)$' \| \
  23562. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23563. $as_echo X/"$0" |
  23564. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23565. s//\1/
  23566. q
  23567. }
  23568. /^X\/\(\/\/\)$/{
  23569. s//\1/
  23570. q
  23571. }
  23572. /^X\/\(\/\).*/{
  23573. s//\1/
  23574. q
  23575. }
  23576. s/.*/./; q'`
  23577. # Avoid depending upon Character Ranges.
  23578. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23579. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23580. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23581. as_cr_digits='0123456789'
  23582. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23583. ECHO_C= ECHO_N= ECHO_T=
  23584. case `echo -n x` in #(((((
  23585. -n*)
  23586. case `echo 'xy\c'` in
  23587. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23588. xy) ECHO_C='\c';;
  23589. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23590. ECHO_T=' ';;
  23591. esac;;
  23592. *)
  23593. ECHO_N='-n';;
  23594. esac
  23595. rm -f conf$$ conf$$.exe conf$$.file
  23596. if test -d conf$$.dir; then
  23597. rm -f conf$$.dir/conf$$.file
  23598. else
  23599. rm -f conf$$.dir
  23600. mkdir conf$$.dir 2>/dev/null
  23601. fi
  23602. if (echo >conf$$.file) 2>/dev/null; then
  23603. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23604. as_ln_s='ln -s'
  23605. # ... but there are two gotchas:
  23606. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23607. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23608. # In both cases, we have to default to `cp -pR'.
  23609. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23610. as_ln_s='cp -pR'
  23611. elif ln conf$$.file conf$$ 2>/dev/null; then
  23612. as_ln_s=ln
  23613. else
  23614. as_ln_s='cp -pR'
  23615. fi
  23616. else
  23617. as_ln_s='cp -pR'
  23618. fi
  23619. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23620. rmdir conf$$.dir 2>/dev/null
  23621. # as_fn_mkdir_p
  23622. # -------------
  23623. # Create "$as_dir" as a directory, including parents if necessary.
  23624. as_fn_mkdir_p ()
  23625. {
  23626. case $as_dir in #(
  23627. -*) as_dir=./$as_dir;;
  23628. esac
  23629. test -d "$as_dir" || eval $as_mkdir_p || {
  23630. as_dirs=
  23631. while :; do
  23632. case $as_dir in #(
  23633. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23634. *) as_qdir=$as_dir;;
  23635. esac
  23636. as_dirs="'$as_qdir' $as_dirs"
  23637. as_dir=`$as_dirname -- "$as_dir" ||
  23638. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23639. X"$as_dir" : 'X\(//\)[^/]' \| \
  23640. X"$as_dir" : 'X\(//\)$' \| \
  23641. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23642. $as_echo X"$as_dir" |
  23643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23644. s//\1/
  23645. q
  23646. }
  23647. /^X\(\/\/\)[^/].*/{
  23648. s//\1/
  23649. q
  23650. }
  23651. /^X\(\/\/\)$/{
  23652. s//\1/
  23653. q
  23654. }
  23655. /^X\(\/\).*/{
  23656. s//\1/
  23657. q
  23658. }
  23659. s/.*/./; q'`
  23660. test -d "$as_dir" && break
  23661. done
  23662. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23663. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23664. } # as_fn_mkdir_p
  23665. if mkdir -p . 2>/dev/null; then
  23666. as_mkdir_p='mkdir -p "$as_dir"'
  23667. else
  23668. test -d ./-p && rmdir ./-p
  23669. as_mkdir_p=false
  23670. fi
  23671. # as_fn_executable_p FILE
  23672. # -----------------------
  23673. # Test if FILE is an executable regular file.
  23674. as_fn_executable_p ()
  23675. {
  23676. test -f "$1" && test -x "$1"
  23677. } # as_fn_executable_p
  23678. as_test_x='test -x'
  23679. as_executable_p=as_fn_executable_p
  23680. # Sed expression to map a string onto a valid CPP name.
  23681. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23682. # Sed expression to map a string onto a valid variable name.
  23683. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23684. exec 6>&1
  23685. ## ----------------------------------- ##
  23686. ## Main body of $CONFIG_STATUS script. ##
  23687. ## ----------------------------------- ##
  23688. _ASEOF
  23689. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23691. # Save the log message, to keep $0 and so on meaningful, and to
  23692. # report actual input values of CONFIG_FILES etc. instead of their
  23693. # values after options handling.
  23694. ac_log="
  23695. This file was extended by $as_me, which was
  23696. generated by GNU Autoconf 2.69. Invocation command line was
  23697. CONFIG_FILES = $CONFIG_FILES
  23698. CONFIG_HEADERS = $CONFIG_HEADERS
  23699. CONFIG_LINKS = $CONFIG_LINKS
  23700. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23701. $ $0 $@
  23702. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23703. "
  23704. _ACEOF
  23705. case $ac_config_files in *"
  23706. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23707. esac
  23708. case $ac_config_headers in *"
  23709. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23710. esac
  23711. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23712. # Files that config.status was made for.
  23713. config_files="$ac_config_files"
  23714. config_headers="$ac_config_headers"
  23715. config_commands="$ac_config_commands"
  23716. _ACEOF
  23717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23718. ac_cs_usage="\
  23719. \`$as_me' instantiates files and other configuration actions
  23720. from templates according to the current configuration. Unless the files
  23721. and actions are specified as TAGs, all are instantiated by default.
  23722. Usage: $0 [OPTION]... [TAG]...
  23723. -h, --help print this help, then exit
  23724. -V, --version print version number and configuration settings, then exit
  23725. --config print configuration, then exit
  23726. -q, --quiet, --silent
  23727. do not print progress messages
  23728. -d, --debug don't remove temporary files
  23729. --recheck update $as_me by reconfiguring in the same conditions
  23730. --file=FILE[:TEMPLATE]
  23731. instantiate the configuration file FILE
  23732. --header=FILE[:TEMPLATE]
  23733. instantiate the configuration header FILE
  23734. Configuration files:
  23735. $config_files
  23736. Configuration headers:
  23737. $config_headers
  23738. Configuration commands:
  23739. $config_commands
  23740. Report bugs to the package provider."
  23741. _ACEOF
  23742. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23743. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23744. ac_cs_version="\\
  23745. config.status
  23746. configured by $0, generated by GNU Autoconf 2.69,
  23747. with options \\"\$ac_cs_config\\"
  23748. Copyright (C) 2012 Free Software Foundation, Inc.
  23749. This config.status script is free software; the Free Software Foundation
  23750. gives unlimited permission to copy, distribute and modify it."
  23751. ac_pwd='$ac_pwd'
  23752. srcdir='$srcdir'
  23753. INSTALL='$INSTALL'
  23754. AWK='$AWK'
  23755. test -n "\$AWK" || AWK=awk
  23756. _ACEOF
  23757. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23758. # The default lists apply if the user does not specify any file.
  23759. ac_need_defaults=:
  23760. while test $# != 0
  23761. do
  23762. case $1 in
  23763. --*=?*)
  23764. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23765. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23766. ac_shift=:
  23767. ;;
  23768. --*=)
  23769. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23770. ac_optarg=
  23771. ac_shift=:
  23772. ;;
  23773. *)
  23774. ac_option=$1
  23775. ac_optarg=$2
  23776. ac_shift=shift
  23777. ;;
  23778. esac
  23779. case $ac_option in
  23780. # Handling of the options.
  23781. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23782. ac_cs_recheck=: ;;
  23783. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23784. $as_echo "$ac_cs_version"; exit ;;
  23785. --config | --confi | --conf | --con | --co | --c )
  23786. $as_echo "$ac_cs_config"; exit ;;
  23787. --debug | --debu | --deb | --de | --d | -d )
  23788. debug=: ;;
  23789. --file | --fil | --fi | --f )
  23790. $ac_shift
  23791. case $ac_optarg in
  23792. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23793. '') as_fn_error $? "missing file argument" ;;
  23794. esac
  23795. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23796. ac_need_defaults=false;;
  23797. --header | --heade | --head | --hea )
  23798. $ac_shift
  23799. case $ac_optarg in
  23800. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23801. esac
  23802. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23803. ac_need_defaults=false;;
  23804. --he | --h)
  23805. # Conflict between --help and --header
  23806. as_fn_error $? "ambiguous option: \`$1'
  23807. Try \`$0 --help' for more information.";;
  23808. --help | --hel | -h )
  23809. $as_echo "$ac_cs_usage"; exit ;;
  23810. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23811. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23812. ac_cs_silent=: ;;
  23813. # This is an error.
  23814. -*) as_fn_error $? "unrecognized option: \`$1'
  23815. Try \`$0 --help' for more information." ;;
  23816. *) as_fn_append ac_config_targets " $1"
  23817. ac_need_defaults=false ;;
  23818. esac
  23819. shift
  23820. done
  23821. ac_configure_extra_args=
  23822. if $ac_cs_silent; then
  23823. exec 6>/dev/null
  23824. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23825. fi
  23826. _ACEOF
  23827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23828. if \$ac_cs_recheck; then
  23829. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23830. shift
  23831. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23832. CONFIG_SHELL='$SHELL'
  23833. export CONFIG_SHELL
  23834. exec "\$@"
  23835. fi
  23836. _ACEOF
  23837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23838. exec 5>>config.log
  23839. {
  23840. echo
  23841. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23842. ## Running $as_me. ##
  23843. _ASBOX
  23844. $as_echo "$ac_log"
  23845. } >&5
  23846. _ACEOF
  23847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23848. #
  23849. # INIT-COMMANDS
  23850. #
  23851. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23852. # if CDPATH is set.
  23853. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23854. sed_quote_subst='$sed_quote_subst'
  23855. double_quote_subst='$double_quote_subst'
  23856. delay_variable_subst='$delay_variable_subst'
  23857. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23858. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23859. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23860. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23861. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23862. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23863. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23864. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23865. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23866. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23867. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23868. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23869. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23870. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23871. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23872. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23873. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23874. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23875. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23876. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23877. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23878. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23879. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23880. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23881. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23882. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23883. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23884. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23885. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23886. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23887. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23888. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23889. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23890. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23891. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23892. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23893. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23894. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23895. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23896. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23897. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23898. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23899. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23900. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23901. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23902. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23903. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23904. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23905. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23906. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23907. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23908. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23909. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23910. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23911. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23912. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23913. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23914. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23915. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23916. 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"`'
  23917. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23918. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23919. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23920. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23921. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23922. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23923. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23924. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23925. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23926. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23927. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23928. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23929. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23930. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23931. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23932. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23933. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23934. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23935. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23936. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23937. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23938. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23939. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23940. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23941. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23942. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23943. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23944. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23945. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23946. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23947. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23948. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23949. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23950. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23951. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23952. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23953. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23954. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23955. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23956. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23957. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23958. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23959. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23960. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23961. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23962. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23963. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23964. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23965. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23966. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23967. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23968. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23969. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23970. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23971. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23972. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23973. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23974. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23975. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23976. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23977. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23978. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23979. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23980. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23981. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23982. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23983. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23984. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23985. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  23986. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  23987. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23988. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23989. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23990. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23991. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23992. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23993. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23994. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23995. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23996. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23997. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23998. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23999. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24000. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24001. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24002. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24003. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24004. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24005. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24006. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24007. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24008. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24009. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24010. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24011. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24012. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24013. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24014. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24015. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24016. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24017. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24018. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24019. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24020. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24021. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24022. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24023. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24024. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24025. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24026. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24027. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24028. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24029. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24030. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24031. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24032. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24033. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24034. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24035. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24036. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24037. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24038. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24039. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24040. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24041. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24042. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24043. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24044. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24045. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24046. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24047. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24048. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24049. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24050. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24051. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24052. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24053. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24054. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24055. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24056. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24057. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24058. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24059. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24060. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24061. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24062. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24063. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24064. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24065. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24066. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24067. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24068. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24069. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24070. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24071. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24072. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24073. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24074. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24075. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24076. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24077. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24078. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24079. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24080. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24081. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24082. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24083. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24084. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24085. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24086. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24087. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24088. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24089. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24090. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24091. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24092. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24093. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24094. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24095. LTCC='$LTCC'
  24096. LTCFLAGS='$LTCFLAGS'
  24097. compiler='$compiler_DEFAULT'
  24098. # A function that is used when there is no print builtin or printf.
  24099. func_fallback_echo ()
  24100. {
  24101. eval 'cat <<_LTECHO_EOF
  24102. \$1
  24103. _LTECHO_EOF'
  24104. }
  24105. # Quote evaled strings.
  24106. for var in AS \
  24107. DLLTOOL \
  24108. OBJDUMP \
  24109. SHELL \
  24110. ECHO \
  24111. PATH_SEPARATOR \
  24112. SED \
  24113. GREP \
  24114. EGREP \
  24115. FGREP \
  24116. LD \
  24117. NM \
  24118. LN_S \
  24119. lt_SP2NL \
  24120. lt_NL2SP \
  24121. reload_flag \
  24122. deplibs_check_method \
  24123. file_magic_cmd \
  24124. file_magic_glob \
  24125. want_nocaseglob \
  24126. sharedlib_from_linklib_cmd \
  24127. AR \
  24128. AR_FLAGS \
  24129. archiver_list_spec \
  24130. STRIP \
  24131. RANLIB \
  24132. CC \
  24133. CFLAGS \
  24134. compiler \
  24135. lt_cv_sys_global_symbol_pipe \
  24136. lt_cv_sys_global_symbol_to_cdecl \
  24137. lt_cv_sys_global_symbol_to_import \
  24138. lt_cv_sys_global_symbol_to_c_name_address \
  24139. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24140. lt_cv_nm_interface \
  24141. nm_file_list_spec \
  24142. lt_cv_truncate_bin \
  24143. lt_prog_compiler_no_builtin_flag \
  24144. lt_prog_compiler_pic \
  24145. lt_prog_compiler_wl \
  24146. lt_prog_compiler_static \
  24147. lt_cv_prog_compiler_c_o \
  24148. need_locks \
  24149. MANIFEST_TOOL \
  24150. DSYMUTIL \
  24151. NMEDIT \
  24152. LIPO \
  24153. OTOOL \
  24154. OTOOL64 \
  24155. shrext_cmds \
  24156. export_dynamic_flag_spec \
  24157. whole_archive_flag_spec \
  24158. compiler_needs_object \
  24159. with_gnu_ld \
  24160. allow_undefined_flag \
  24161. no_undefined_flag \
  24162. hardcode_libdir_flag_spec \
  24163. hardcode_libdir_separator \
  24164. exclude_expsyms \
  24165. include_expsyms \
  24166. file_list_spec \
  24167. variables_saved_for_relink \
  24168. libname_spec \
  24169. library_names_spec \
  24170. soname_spec \
  24171. install_override_mode \
  24172. finish_eval \
  24173. old_striplib \
  24174. striplib \
  24175. compiler_lib_search_dirs \
  24176. predep_objects \
  24177. postdep_objects \
  24178. predeps \
  24179. postdeps \
  24180. compiler_lib_search_path \
  24181. LD_RC \
  24182. LD_CXX \
  24183. reload_flag_RC \
  24184. reload_flag_CXX \
  24185. compiler_RC \
  24186. compiler_CXX \
  24187. lt_prog_compiler_no_builtin_flag_RC \
  24188. lt_prog_compiler_no_builtin_flag_CXX \
  24189. lt_prog_compiler_pic_RC \
  24190. lt_prog_compiler_pic_CXX \
  24191. lt_prog_compiler_wl_RC \
  24192. lt_prog_compiler_wl_CXX \
  24193. lt_prog_compiler_static_RC \
  24194. lt_prog_compiler_static_CXX \
  24195. lt_cv_prog_compiler_c_o_RC \
  24196. lt_cv_prog_compiler_c_o_CXX \
  24197. export_dynamic_flag_spec_RC \
  24198. export_dynamic_flag_spec_CXX \
  24199. whole_archive_flag_spec_RC \
  24200. whole_archive_flag_spec_CXX \
  24201. compiler_needs_object_RC \
  24202. compiler_needs_object_CXX \
  24203. with_gnu_ld_RC \
  24204. with_gnu_ld_CXX \
  24205. allow_undefined_flag_RC \
  24206. allow_undefined_flag_CXX \
  24207. no_undefined_flag_RC \
  24208. no_undefined_flag_CXX \
  24209. hardcode_libdir_flag_spec_RC \
  24210. hardcode_libdir_flag_spec_CXX \
  24211. hardcode_libdir_separator_RC \
  24212. hardcode_libdir_separator_CXX \
  24213. exclude_expsyms_RC \
  24214. exclude_expsyms_CXX \
  24215. include_expsyms_RC \
  24216. include_expsyms_CXX \
  24217. file_list_spec_RC \
  24218. file_list_spec_CXX \
  24219. compiler_lib_search_dirs_RC \
  24220. compiler_lib_search_dirs_CXX \
  24221. predep_objects_RC \
  24222. predep_objects_CXX \
  24223. postdep_objects_RC \
  24224. postdep_objects_CXX \
  24225. predeps_RC \
  24226. predeps_CXX \
  24227. postdeps_RC \
  24228. postdeps_CXX \
  24229. compiler_lib_search_path_RC \
  24230. compiler_lib_search_path_CXX; do
  24231. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24232. *[\\\\\\\`\\"\\\$]*)
  24233. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24234. ;;
  24235. *)
  24236. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24237. ;;
  24238. esac
  24239. done
  24240. # Double-quote double-evaled strings.
  24241. for var in reload_cmds \
  24242. old_postinstall_cmds \
  24243. old_postuninstall_cmds \
  24244. old_archive_cmds \
  24245. extract_expsyms_cmds \
  24246. old_archive_from_new_cmds \
  24247. old_archive_from_expsyms_cmds \
  24248. archive_cmds \
  24249. archive_expsym_cmds \
  24250. module_cmds \
  24251. module_expsym_cmds \
  24252. export_symbols_cmds \
  24253. prelink_cmds \
  24254. postlink_cmds \
  24255. postinstall_cmds \
  24256. postuninstall_cmds \
  24257. finish_cmds \
  24258. sys_lib_search_path_spec \
  24259. configure_time_dlsearch_path \
  24260. configure_time_lt_sys_library_path \
  24261. reload_cmds_RC \
  24262. reload_cmds_CXX \
  24263. old_archive_cmds_RC \
  24264. old_archive_cmds_CXX \
  24265. old_archive_from_new_cmds_RC \
  24266. old_archive_from_new_cmds_CXX \
  24267. old_archive_from_expsyms_cmds_RC \
  24268. old_archive_from_expsyms_cmds_CXX \
  24269. archive_cmds_RC \
  24270. archive_cmds_CXX \
  24271. archive_expsym_cmds_RC \
  24272. archive_expsym_cmds_CXX \
  24273. module_cmds_RC \
  24274. module_cmds_CXX \
  24275. module_expsym_cmds_RC \
  24276. module_expsym_cmds_CXX \
  24277. export_symbols_cmds_RC \
  24278. export_symbols_cmds_CXX \
  24279. prelink_cmds_RC \
  24280. prelink_cmds_CXX \
  24281. postlink_cmds_RC \
  24282. postlink_cmds_CXX; do
  24283. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24284. *[\\\\\\\`\\"\\\$]*)
  24285. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24286. ;;
  24287. *)
  24288. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24289. ;;
  24290. esac
  24291. done
  24292. ac_aux_dir='$ac_aux_dir'
  24293. # See if we are running on zsh, and set the options that allow our
  24294. # commands through without removal of \ escapes INIT.
  24295. if test -n "\${ZSH_VERSION+set}"; then
  24296. setopt NO_GLOB_SUBST
  24297. fi
  24298. PACKAGE='$PACKAGE'
  24299. VERSION='$VERSION'
  24300. RM='$RM'
  24301. ofile='$ofile'
  24302. SUMMARY="$SUMMARY"
  24303. _ACEOF
  24304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24305. # Handling of arguments.
  24306. for ac_config_target in $ac_config_targets
  24307. do
  24308. case $ac_config_target in
  24309. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24310. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24311. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24312. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24313. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24314. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24315. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24316. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24317. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24318. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24319. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24320. esac
  24321. done
  24322. # If the user did not use the arguments to specify the items to instantiate,
  24323. # then the envvar interface is used. Set only those that are not.
  24324. # We use the long form for the default assignment because of an extremely
  24325. # bizarre bug on SunOS 4.1.3.
  24326. if $ac_need_defaults; then
  24327. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24328. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24329. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24330. fi
  24331. # Have a temporary directory for convenience. Make it in the build tree
  24332. # simply because there is no reason against having it here, and in addition,
  24333. # creating and moving files from /tmp can sometimes cause problems.
  24334. # Hook for its removal unless debugging.
  24335. # Note that there is a small window in which the directory will not be cleaned:
  24336. # after its creation but before its name has been assigned to `$tmp'.
  24337. $debug ||
  24338. {
  24339. tmp= ac_tmp=
  24340. trap 'exit_status=$?
  24341. : "${ac_tmp:=$tmp}"
  24342. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24343. ' 0
  24344. trap 'as_fn_exit 1' 1 2 13 15
  24345. }
  24346. # Create a (secure) tmp directory for tmp files.
  24347. {
  24348. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24349. test -d "$tmp"
  24350. } ||
  24351. {
  24352. tmp=./conf$$-$RANDOM
  24353. (umask 077 && mkdir "$tmp")
  24354. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24355. ac_tmp=$tmp
  24356. # Set up the scripts for CONFIG_FILES section.
  24357. # No need to generate them if there are no CONFIG_FILES.
  24358. # This happens for instance with `./config.status config.h'.
  24359. if test -n "$CONFIG_FILES"; then
  24360. ac_cr=`echo X | tr X '\015'`
  24361. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24362. # But we know of no other shell where ac_cr would be empty at this
  24363. # point, so we can use a bashism as a fallback.
  24364. if test "x$ac_cr" = x; then
  24365. eval ac_cr=\$\'\\r\'
  24366. fi
  24367. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24368. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24369. ac_cs_awk_cr='\\r'
  24370. else
  24371. ac_cs_awk_cr=$ac_cr
  24372. fi
  24373. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24374. _ACEOF
  24375. {
  24376. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24377. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24378. echo "_ACEOF"
  24379. } >conf$$subs.sh ||
  24380. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24381. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24382. ac_delim='%!_!# '
  24383. for ac_last_try in false false false false false :; do
  24384. . ./conf$$subs.sh ||
  24385. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24386. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24387. if test $ac_delim_n = $ac_delim_num; then
  24388. break
  24389. elif $ac_last_try; then
  24390. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24391. else
  24392. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24393. fi
  24394. done
  24395. rm -f conf$$subs.sh
  24396. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24397. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24398. _ACEOF
  24399. sed -n '
  24400. h
  24401. s/^/S["/; s/!.*/"]=/
  24402. p
  24403. g
  24404. s/^[^!]*!//
  24405. :repl
  24406. t repl
  24407. s/'"$ac_delim"'$//
  24408. t delim
  24409. :nl
  24410. h
  24411. s/\(.\{148\}\)..*/\1/
  24412. t more1
  24413. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24414. p
  24415. n
  24416. b repl
  24417. :more1
  24418. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24419. p
  24420. g
  24421. s/.\{148\}//
  24422. t nl
  24423. :delim
  24424. h
  24425. s/\(.\{148\}\)..*/\1/
  24426. t more2
  24427. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24428. p
  24429. b
  24430. :more2
  24431. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24432. p
  24433. g
  24434. s/.\{148\}//
  24435. t delim
  24436. ' <conf$$subs.awk | sed '
  24437. /^[^""]/{
  24438. N
  24439. s/\n//
  24440. }
  24441. ' >>$CONFIG_STATUS || ac_write_fail=1
  24442. rm -f conf$$subs.awk
  24443. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24444. _ACAWK
  24445. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24446. for (key in S) S_is_set[key] = 1
  24447. FS = ""
  24448. }
  24449. {
  24450. line = $ 0
  24451. nfields = split(line, field, "@")
  24452. substed = 0
  24453. len = length(field[1])
  24454. for (i = 2; i < nfields; i++) {
  24455. key = field[i]
  24456. keylen = length(key)
  24457. if (S_is_set[key]) {
  24458. value = S[key]
  24459. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24460. len += length(value) + length(field[++i])
  24461. substed = 1
  24462. } else
  24463. len += 1 + keylen
  24464. }
  24465. print line
  24466. }
  24467. _ACAWK
  24468. _ACEOF
  24469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24470. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24471. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24472. else
  24473. cat
  24474. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24475. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24476. _ACEOF
  24477. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24478. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24479. # trailing colons and then remove the whole line if VPATH becomes empty
  24480. # (actually we leave an empty line to preserve line numbers).
  24481. if test "x$srcdir" = x.; then
  24482. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24483. h
  24484. s///
  24485. s/^/:/
  24486. s/[ ]*$/:/
  24487. s/:\$(srcdir):/:/g
  24488. s/:\${srcdir}:/:/g
  24489. s/:@srcdir@:/:/g
  24490. s/^:*//
  24491. s/:*$//
  24492. x
  24493. s/\(=[ ]*\).*/\1/
  24494. G
  24495. s/\n//
  24496. s/^[^=]*=[ ]*$//
  24497. }'
  24498. fi
  24499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24500. fi # test -n "$CONFIG_FILES"
  24501. # Set up the scripts for CONFIG_HEADERS section.
  24502. # No need to generate them if there are no CONFIG_HEADERS.
  24503. # This happens for instance with `./config.status Makefile'.
  24504. if test -n "$CONFIG_HEADERS"; then
  24505. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24506. BEGIN {
  24507. _ACEOF
  24508. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24509. # here-document in config.status, that substitutes the proper values into
  24510. # config.h.in to produce config.h.
  24511. # Create a delimiter string that does not exist in confdefs.h, to ease
  24512. # handling of long lines.
  24513. ac_delim='%!_!# '
  24514. for ac_last_try in false false :; do
  24515. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24516. if test -z "$ac_tt"; then
  24517. break
  24518. elif $ac_last_try; then
  24519. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24520. else
  24521. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24522. fi
  24523. done
  24524. # For the awk script, D is an array of macro values keyed by name,
  24525. # likewise P contains macro parameters if any. Preserve backslash
  24526. # newline sequences.
  24527. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24528. sed -n '
  24529. s/.\{148\}/&'"$ac_delim"'/g
  24530. t rset
  24531. :rset
  24532. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24533. t def
  24534. d
  24535. :def
  24536. s/\\$//
  24537. t bsnl
  24538. s/["\\]/\\&/g
  24539. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24540. D["\1"]=" \3"/p
  24541. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24542. d
  24543. :bsnl
  24544. s/["\\]/\\&/g
  24545. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24546. D["\1"]=" \3\\\\\\n"\\/p
  24547. t cont
  24548. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24549. t cont
  24550. d
  24551. :cont
  24552. n
  24553. s/.\{148\}/&'"$ac_delim"'/g
  24554. t clear
  24555. :clear
  24556. s/\\$//
  24557. t bsnlc
  24558. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24559. d
  24560. :bsnlc
  24561. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24562. b cont
  24563. ' <confdefs.h | sed '
  24564. s/'"$ac_delim"'/"\\\
  24565. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24567. for (key in D) D_is_set[key] = 1
  24568. FS = ""
  24569. }
  24570. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24571. line = \$ 0
  24572. split(line, arg, " ")
  24573. if (arg[1] == "#") {
  24574. defundef = arg[2]
  24575. mac1 = arg[3]
  24576. } else {
  24577. defundef = substr(arg[1], 2)
  24578. mac1 = arg[2]
  24579. }
  24580. split(mac1, mac2, "(") #)
  24581. macro = mac2[1]
  24582. prefix = substr(line, 1, index(line, defundef) - 1)
  24583. if (D_is_set[macro]) {
  24584. # Preserve the white space surrounding the "#".
  24585. print prefix "define", macro P[macro] D[macro]
  24586. next
  24587. } else {
  24588. # Replace #undef with comments. This is necessary, for example,
  24589. # in the case of _POSIX_SOURCE, which is predefined and required
  24590. # on some systems where configure will not decide to define it.
  24591. if (defundef == "undef") {
  24592. print "/*", prefix defundef, macro, "*/"
  24593. next
  24594. }
  24595. }
  24596. }
  24597. { print }
  24598. _ACAWK
  24599. _ACEOF
  24600. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24601. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24602. fi # test -n "$CONFIG_HEADERS"
  24603. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24604. shift
  24605. for ac_tag
  24606. do
  24607. case $ac_tag in
  24608. :[FHLC]) ac_mode=$ac_tag; continue;;
  24609. esac
  24610. case $ac_mode$ac_tag in
  24611. :[FHL]*:*);;
  24612. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24613. :[FH]-) ac_tag=-:-;;
  24614. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24615. esac
  24616. ac_save_IFS=$IFS
  24617. IFS=:
  24618. set x $ac_tag
  24619. IFS=$ac_save_IFS
  24620. shift
  24621. ac_file=$1
  24622. shift
  24623. case $ac_mode in
  24624. :L) ac_source=$1;;
  24625. :[FH])
  24626. ac_file_inputs=
  24627. for ac_f
  24628. do
  24629. case $ac_f in
  24630. -) ac_f="$ac_tmp/stdin";;
  24631. *) # Look for the file first in the build tree, then in the source tree
  24632. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24633. # because $ac_f cannot contain `:'.
  24634. test -f "$ac_f" ||
  24635. case $ac_f in
  24636. [\\/$]*) false;;
  24637. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24638. esac ||
  24639. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24640. esac
  24641. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24642. as_fn_append ac_file_inputs " '$ac_f'"
  24643. done
  24644. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24645. # use $as_me), people would be surprised to read:
  24646. # /* config.h. Generated by config.status. */
  24647. configure_input='Generated from '`
  24648. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24649. `' by configure.'
  24650. if test x"$ac_file" != x-; then
  24651. configure_input="$ac_file. $configure_input"
  24652. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24653. $as_echo "$as_me: creating $ac_file" >&6;}
  24654. fi
  24655. # Neutralize special characters interpreted by sed in replacement strings.
  24656. case $configure_input in #(
  24657. *\&* | *\|* | *\\* )
  24658. ac_sed_conf_input=`$as_echo "$configure_input" |
  24659. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24660. *) ac_sed_conf_input=$configure_input;;
  24661. esac
  24662. case $ac_tag in
  24663. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24664. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24665. esac
  24666. ;;
  24667. esac
  24668. ac_dir=`$as_dirname -- "$ac_file" ||
  24669. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24670. X"$ac_file" : 'X\(//\)[^/]' \| \
  24671. X"$ac_file" : 'X\(//\)$' \| \
  24672. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24673. $as_echo X"$ac_file" |
  24674. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24675. s//\1/
  24676. q
  24677. }
  24678. /^X\(\/\/\)[^/].*/{
  24679. s//\1/
  24680. q
  24681. }
  24682. /^X\(\/\/\)$/{
  24683. s//\1/
  24684. q
  24685. }
  24686. /^X\(\/\).*/{
  24687. s//\1/
  24688. q
  24689. }
  24690. s/.*/./; q'`
  24691. as_dir="$ac_dir"; as_fn_mkdir_p
  24692. ac_builddir=.
  24693. case "$ac_dir" in
  24694. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24695. *)
  24696. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24697. # A ".." for each directory in $ac_dir_suffix.
  24698. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24699. case $ac_top_builddir_sub in
  24700. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24701. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24702. esac ;;
  24703. esac
  24704. ac_abs_top_builddir=$ac_pwd
  24705. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24706. # for backward compatibility:
  24707. ac_top_builddir=$ac_top_build_prefix
  24708. case $srcdir in
  24709. .) # We are building in place.
  24710. ac_srcdir=.
  24711. ac_top_srcdir=$ac_top_builddir_sub
  24712. ac_abs_top_srcdir=$ac_pwd ;;
  24713. [\\/]* | ?:[\\/]* ) # Absolute name.
  24714. ac_srcdir=$srcdir$ac_dir_suffix;
  24715. ac_top_srcdir=$srcdir
  24716. ac_abs_top_srcdir=$srcdir ;;
  24717. *) # Relative name.
  24718. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24719. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24720. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24721. esac
  24722. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24723. case $ac_mode in
  24724. :F)
  24725. #
  24726. # CONFIG_FILE
  24727. #
  24728. case $INSTALL in
  24729. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24730. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24731. esac
  24732. _ACEOF
  24733. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24734. # If the template does not know about datarootdir, expand it.
  24735. # FIXME: This hack should be removed a few years after 2.60.
  24736. ac_datarootdir_hack=; ac_datarootdir_seen=
  24737. ac_sed_dataroot='
  24738. /datarootdir/ {
  24739. p
  24740. q
  24741. }
  24742. /@datadir@/p
  24743. /@docdir@/p
  24744. /@infodir@/p
  24745. /@localedir@/p
  24746. /@mandir@/p'
  24747. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24748. *datarootdir*) ac_datarootdir_seen=yes;;
  24749. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24751. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24752. _ACEOF
  24753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24754. ac_datarootdir_hack='
  24755. s&@datadir@&$datadir&g
  24756. s&@docdir@&$docdir&g
  24757. s&@infodir@&$infodir&g
  24758. s&@localedir@&$localedir&g
  24759. s&@mandir@&$mandir&g
  24760. s&\\\${datarootdir}&$datarootdir&g' ;;
  24761. esac
  24762. _ACEOF
  24763. # Neutralize VPATH when `$srcdir' = `.'.
  24764. # Shell code in configure.ac might set extrasub.
  24765. # FIXME: do we really want to maintain this feature?
  24766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24767. ac_sed_extra="$ac_vpsub
  24768. $extrasub
  24769. _ACEOF
  24770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24771. :t
  24772. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24773. s|@configure_input@|$ac_sed_conf_input|;t t
  24774. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24775. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24776. s&@srcdir@&$ac_srcdir&;t t
  24777. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24778. s&@top_srcdir@&$ac_top_srcdir&;t t
  24779. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24780. s&@builddir@&$ac_builddir&;t t
  24781. s&@abs_builddir@&$ac_abs_builddir&;t t
  24782. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24783. s&@INSTALL@&$ac_INSTALL&;t t
  24784. $ac_datarootdir_hack
  24785. "
  24786. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24787. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24788. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24789. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24790. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24791. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24793. which seems to be undefined. Please make sure it is defined" >&5
  24794. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24795. which seems to be undefined. Please make sure it is defined" >&2;}
  24796. rm -f "$ac_tmp/stdin"
  24797. case $ac_file in
  24798. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24799. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24800. esac \
  24801. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24802. ;;
  24803. :H)
  24804. #
  24805. # CONFIG_HEADER
  24806. #
  24807. if test x"$ac_file" != x-; then
  24808. {
  24809. $as_echo "/* $configure_input */" \
  24810. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24811. } >"$ac_tmp/config.h" \
  24812. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24813. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24814. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24815. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24816. else
  24817. rm -f "$ac_file"
  24818. mv "$ac_tmp/config.h" "$ac_file" \
  24819. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24820. fi
  24821. else
  24822. $as_echo "/* $configure_input */" \
  24823. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24824. || as_fn_error $? "could not create -" "$LINENO" 5
  24825. fi
  24826. ;;
  24827. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24828. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24829. ;;
  24830. esac
  24831. case $ac_file$ac_mode in
  24832. "libtool":C)
  24833. # See if we are running on zsh, and set the options that allow our
  24834. # commands through without removal of \ escapes.
  24835. if test -n "${ZSH_VERSION+set}"; then
  24836. setopt NO_GLOB_SUBST
  24837. fi
  24838. cfgfile=${ofile}T
  24839. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24840. $RM "$cfgfile"
  24841. cat <<_LT_EOF >> "$cfgfile"
  24842. #! $SHELL
  24843. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24844. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24845. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24846. # Provide generalized library-building support services.
  24847. # Written by Gordon Matzigkeit, 1996
  24848. # Copyright (C) 2014 Free Software Foundation, Inc.
  24849. # This is free software; see the source for copying conditions. There is NO
  24850. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24851. # GNU Libtool is free software; you can redistribute it and/or modify
  24852. # it under the terms of the GNU General Public License as published by
  24853. # the Free Software Foundation; either version 2 of of the License, or
  24854. # (at your option) any later version.
  24855. #
  24856. # As a special exception to the GNU General Public License, if you
  24857. # distribute this file as part of a program or library that is built
  24858. # using GNU Libtool, you may include this file under the same
  24859. # distribution terms that you use for the rest of that program.
  24860. #
  24861. # GNU Libtool is distributed in the hope that it will be useful, but
  24862. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24863. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24864. # GNU General Public License for more details.
  24865. #
  24866. # You should have received a copy of the GNU General Public License
  24867. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24868. # The names of the tagged configurations supported by this script.
  24869. available_tags='RC CXX '
  24870. # Configured defaults for sys_lib_dlsearch_path munging.
  24871. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24872. # ### BEGIN LIBTOOL CONFIG
  24873. # Which release of libtool.m4 was used?
  24874. macro_version=$macro_version
  24875. macro_revision=$macro_revision
  24876. # Assembler program.
  24877. AS=$lt_AS
  24878. # DLL creation program.
  24879. DLLTOOL=$lt_DLLTOOL
  24880. # Object dumper program.
  24881. OBJDUMP=$lt_OBJDUMP
  24882. # Whether or not to build shared libraries.
  24883. build_libtool_libs=$enable_shared
  24884. # Whether or not to build static libraries.
  24885. build_old_libs=$enable_static
  24886. # What type of objects to build.
  24887. pic_mode=$pic_mode
  24888. # Whether or not to optimize for fast installation.
  24889. fast_install=$enable_fast_install
  24890. # Shared archive member basename,for filename based shared library versioning on AIX.
  24891. shared_archive_member_spec=$shared_archive_member_spec
  24892. # Shell to use when invoking shell scripts.
  24893. SHELL=$lt_SHELL
  24894. # An echo program that protects backslashes.
  24895. ECHO=$lt_ECHO
  24896. # The PATH separator for the build system.
  24897. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24898. # The host system.
  24899. host_alias=$host_alias
  24900. host=$host
  24901. host_os=$host_os
  24902. # The build system.
  24903. build_alias=$build_alias
  24904. build=$build
  24905. build_os=$build_os
  24906. # A sed program that does not truncate output.
  24907. SED=$lt_SED
  24908. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24909. Xsed="\$SED -e 1s/^X//"
  24910. # A grep program that handles long lines.
  24911. GREP=$lt_GREP
  24912. # An ERE matcher.
  24913. EGREP=$lt_EGREP
  24914. # A literal string matcher.
  24915. FGREP=$lt_FGREP
  24916. # A BSD- or MS-compatible name lister.
  24917. NM=$lt_NM
  24918. # Whether we need soft or hard links.
  24919. LN_S=$lt_LN_S
  24920. # What is the maximum length of a command?
  24921. max_cmd_len=$max_cmd_len
  24922. # Object file suffix (normally "o").
  24923. objext=$ac_objext
  24924. # Executable file suffix (normally "").
  24925. exeext=$exeext
  24926. # whether the shell understands "unset".
  24927. lt_unset=$lt_unset
  24928. # turn spaces into newlines.
  24929. SP2NL=$lt_lt_SP2NL
  24930. # turn newlines into spaces.
  24931. NL2SP=$lt_lt_NL2SP
  24932. # convert \$build file names to \$host format.
  24933. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24934. # convert \$build files to toolchain format.
  24935. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24936. # Method to check whether dependent libraries are shared objects.
  24937. deplibs_check_method=$lt_deplibs_check_method
  24938. # Command to use when deplibs_check_method = "file_magic".
  24939. file_magic_cmd=$lt_file_magic_cmd
  24940. # How to find potential files when deplibs_check_method = "file_magic".
  24941. file_magic_glob=$lt_file_magic_glob
  24942. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24943. want_nocaseglob=$lt_want_nocaseglob
  24944. # Command to associate shared and link libraries.
  24945. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24946. # The archiver.
  24947. AR=$lt_AR
  24948. # Flags to create an archive.
  24949. AR_FLAGS=$lt_AR_FLAGS
  24950. # How to feed a file listing to the archiver.
  24951. archiver_list_spec=$lt_archiver_list_spec
  24952. # A symbol stripping program.
  24953. STRIP=$lt_STRIP
  24954. # Commands used to install an old-style archive.
  24955. RANLIB=$lt_RANLIB
  24956. old_postinstall_cmds=$lt_old_postinstall_cmds
  24957. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24958. # Whether to use a lock for old archive extraction.
  24959. lock_old_archive_extraction=$lock_old_archive_extraction
  24960. # A C compiler.
  24961. LTCC=$lt_CC
  24962. # LTCC compiler flags.
  24963. LTCFLAGS=$lt_CFLAGS
  24964. # Take the output of nm and produce a listing of raw symbols and C names.
  24965. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24966. # Transform the output of nm in a proper C declaration.
  24967. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24968. # Transform the output of nm into a list of symbols to manually relocate.
  24969. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24970. # Transform the output of nm in a C name address pair.
  24971. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24972. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24973. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24974. # The name lister interface.
  24975. nm_interface=$lt_lt_cv_nm_interface
  24976. # Specify filename containing input files for \$NM.
  24977. nm_file_list_spec=$lt_nm_file_list_spec
  24978. # The root where to search for dependent libraries,and where our libraries should be installed.
  24979. lt_sysroot=$lt_sysroot
  24980. # Command to truncate a binary pipe.
  24981. lt_truncate_bin=$lt_lt_cv_truncate_bin
  24982. # The name of the directory that contains temporary libtool files.
  24983. objdir=$objdir
  24984. # Used to examine libraries when file_magic_cmd begins with "file".
  24985. MAGIC_CMD=$MAGIC_CMD
  24986. # Must we lock files when doing compilation?
  24987. need_locks=$lt_need_locks
  24988. # Manifest tool.
  24989. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24990. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24991. DSYMUTIL=$lt_DSYMUTIL
  24992. # Tool to change global to local symbols on Mac OS X.
  24993. NMEDIT=$lt_NMEDIT
  24994. # Tool to manipulate fat objects and archives on Mac OS X.
  24995. LIPO=$lt_LIPO
  24996. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24997. OTOOL=$lt_OTOOL
  24998. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24999. OTOOL64=$lt_OTOOL64
  25000. # Old archive suffix (normally "a").
  25001. libext=$libext
  25002. # Shared library suffix (normally ".so").
  25003. shrext_cmds=$lt_shrext_cmds
  25004. # The commands to extract the exported symbol list from a shared archive.
  25005. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25006. # Variables whose values should be saved in libtool wrapper scripts and
  25007. # restored at link time.
  25008. variables_saved_for_relink=$lt_variables_saved_for_relink
  25009. # Do we need the "lib" prefix for modules?
  25010. need_lib_prefix=$need_lib_prefix
  25011. # Do we need a version for libraries?
  25012. need_version=$need_version
  25013. # Library versioning type.
  25014. version_type=$version_type
  25015. # Shared library runtime path variable.
  25016. runpath_var=$runpath_var
  25017. # Shared library path variable.
  25018. shlibpath_var=$shlibpath_var
  25019. # Is shlibpath searched before the hard-coded library search path?
  25020. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25021. # Format of library name prefix.
  25022. libname_spec=$lt_libname_spec
  25023. # List of archive names. First name is the real one, the rest are links.
  25024. # The last name is the one that the linker finds with -lNAME
  25025. library_names_spec=$lt_library_names_spec
  25026. # The coded name of the library, if different from the real name.
  25027. soname_spec=$lt_soname_spec
  25028. # Permission mode override for installation of shared libraries.
  25029. install_override_mode=$lt_install_override_mode
  25030. # Command to use after installation of a shared archive.
  25031. postinstall_cmds=$lt_postinstall_cmds
  25032. # Command to use after uninstallation of a shared archive.
  25033. postuninstall_cmds=$lt_postuninstall_cmds
  25034. # Commands used to finish a libtool library installation in a directory.
  25035. finish_cmds=$lt_finish_cmds
  25036. # As "finish_cmds", except a single script fragment to be evaled but
  25037. # not shown.
  25038. finish_eval=$lt_finish_eval
  25039. # Whether we should hardcode library paths into libraries.
  25040. hardcode_into_libs=$hardcode_into_libs
  25041. # Compile-time system search path for libraries.
  25042. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25043. # Detected run-time system search path for libraries.
  25044. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25045. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25046. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25047. # Whether dlopen is supported.
  25048. dlopen_support=$enable_dlopen
  25049. # Whether dlopen of programs is supported.
  25050. dlopen_self=$enable_dlopen_self
  25051. # Whether dlopen of statically linked programs is supported.
  25052. dlopen_self_static=$enable_dlopen_self_static
  25053. # Commands to strip libraries.
  25054. old_striplib=$lt_old_striplib
  25055. striplib=$lt_striplib
  25056. # The linker used to build libraries.
  25057. LD=$lt_LD
  25058. # How to create reloadable object files.
  25059. reload_flag=$lt_reload_flag
  25060. reload_cmds=$lt_reload_cmds
  25061. # Commands used to build an old-style archive.
  25062. old_archive_cmds=$lt_old_archive_cmds
  25063. # A language specific compiler.
  25064. CC=$lt_compiler
  25065. # Is the compiler the GNU compiler?
  25066. with_gcc=$GCC
  25067. # Compiler flag to turn off builtin functions.
  25068. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25069. # Additional compiler flags for building library objects.
  25070. pic_flag=$lt_lt_prog_compiler_pic
  25071. # How to pass a linker flag through the compiler.
  25072. wl=$lt_lt_prog_compiler_wl
  25073. # Compiler flag to prevent dynamic linking.
  25074. link_static_flag=$lt_lt_prog_compiler_static
  25075. # Does compiler simultaneously support -c and -o options?
  25076. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25077. # Whether or not to add -lc for building shared libraries.
  25078. build_libtool_need_lc=$archive_cmds_need_lc
  25079. # Whether or not to disallow shared libs when runtime libs are static.
  25080. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25081. # Compiler flag to allow reflexive dlopens.
  25082. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25083. # Compiler flag to generate shared objects directly from archives.
  25084. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25085. # Whether the compiler copes with passing no objects directly.
  25086. compiler_needs_object=$lt_compiler_needs_object
  25087. # Create an old-style archive from a shared archive.
  25088. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25089. # Create a temporary old-style archive to link instead of a shared archive.
  25090. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25091. # Commands used to build a shared archive.
  25092. archive_cmds=$lt_archive_cmds
  25093. archive_expsym_cmds=$lt_archive_expsym_cmds
  25094. # Commands used to build a loadable module if different from building
  25095. # a shared archive.
  25096. module_cmds=$lt_module_cmds
  25097. module_expsym_cmds=$lt_module_expsym_cmds
  25098. # Whether we are building with GNU ld or not.
  25099. with_gnu_ld=$lt_with_gnu_ld
  25100. # Flag that allows shared libraries with undefined symbols to be built.
  25101. allow_undefined_flag=$lt_allow_undefined_flag
  25102. # Flag that enforces no undefined symbols.
  25103. no_undefined_flag=$lt_no_undefined_flag
  25104. # Flag to hardcode \$libdir into a binary during linking.
  25105. # This must work even if \$libdir does not exist
  25106. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25107. # Whether we need a single "-rpath" flag with a separated argument.
  25108. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25109. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25110. # DIR into the resulting binary.
  25111. hardcode_direct=$hardcode_direct
  25112. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25113. # DIR into the resulting binary and the resulting library dependency is
  25114. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25115. # library is relocated.
  25116. hardcode_direct_absolute=$hardcode_direct_absolute
  25117. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25118. # into the resulting binary.
  25119. hardcode_minus_L=$hardcode_minus_L
  25120. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25121. # into the resulting binary.
  25122. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25123. # Set to "yes" if building a shared library automatically hardcodes DIR
  25124. # into the library and all subsequent libraries and executables linked
  25125. # against it.
  25126. hardcode_automatic=$hardcode_automatic
  25127. # Set to yes if linker adds runtime paths of dependent libraries
  25128. # to runtime path list.
  25129. inherit_rpath=$inherit_rpath
  25130. # Whether libtool must link a program against all its dependency libraries.
  25131. link_all_deplibs=$link_all_deplibs
  25132. # Set to "yes" if exported symbols are required.
  25133. always_export_symbols=$always_export_symbols
  25134. # The commands to list exported symbols.
  25135. export_symbols_cmds=$lt_export_symbols_cmds
  25136. # Symbols that should not be listed in the preloaded symbols.
  25137. exclude_expsyms=$lt_exclude_expsyms
  25138. # Symbols that must always be exported.
  25139. include_expsyms=$lt_include_expsyms
  25140. # Commands necessary for linking programs (against libraries) with templates.
  25141. prelink_cmds=$lt_prelink_cmds
  25142. # Commands necessary for finishing linking programs.
  25143. postlink_cmds=$lt_postlink_cmds
  25144. # Specify filename containing input files.
  25145. file_list_spec=$lt_file_list_spec
  25146. # How to hardcode a shared library path into an executable.
  25147. hardcode_action=$hardcode_action
  25148. # The directories searched by this compiler when creating a shared library.
  25149. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25150. # Dependencies to place before and after the objects being linked to
  25151. # create a shared library.
  25152. predep_objects=$lt_predep_objects
  25153. postdep_objects=$lt_postdep_objects
  25154. predeps=$lt_predeps
  25155. postdeps=$lt_postdeps
  25156. # The library search path used internally by the compiler when linking
  25157. # a shared library.
  25158. compiler_lib_search_path=$lt_compiler_lib_search_path
  25159. # ### END LIBTOOL CONFIG
  25160. _LT_EOF
  25161. cat <<'_LT_EOF' >> "$cfgfile"
  25162. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25163. # func_munge_path_list VARIABLE PATH
  25164. # -----------------------------------
  25165. # VARIABLE is name of variable containing _space_ separated list of
  25166. # directories to be munged by the contents of PATH, which is string
  25167. # having a format:
  25168. # "DIR[:DIR]:"
  25169. # string "DIR[ DIR]" will be prepended to VARIABLE
  25170. # ":DIR[:DIR]"
  25171. # string "DIR[ DIR]" will be appended to VARIABLE
  25172. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25173. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25174. # "DIRA[ DIRA]" will be appended to VARIABLE
  25175. # "DIR[:DIR]"
  25176. # VARIABLE will be replaced by "DIR[ DIR]"
  25177. func_munge_path_list ()
  25178. {
  25179. case x$2 in
  25180. x)
  25181. ;;
  25182. *:)
  25183. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25184. ;;
  25185. x:*)
  25186. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25187. ;;
  25188. *::*)
  25189. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25190. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25191. ;;
  25192. *)
  25193. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25194. ;;
  25195. esac
  25196. }
  25197. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25198. func_cc_basename ()
  25199. {
  25200. for cc_temp in $*""; do
  25201. case $cc_temp in
  25202. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25203. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25204. \-*) ;;
  25205. *) break;;
  25206. esac
  25207. done
  25208. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25209. }
  25210. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25211. _LT_EOF
  25212. case $host_os in
  25213. aix3*)
  25214. cat <<\_LT_EOF >> "$cfgfile"
  25215. # AIX sometimes has problems with the GCC collect2 program. For some
  25216. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25217. # vanish in a puff of smoke.
  25218. if test set != "${COLLECT_NAMES+set}"; then
  25219. COLLECT_NAMES=
  25220. export COLLECT_NAMES
  25221. fi
  25222. _LT_EOF
  25223. ;;
  25224. esac
  25225. ltmain=$ac_aux_dir/ltmain.sh
  25226. # We use sed instead of cat because bash on DJGPP gets confused if
  25227. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25228. # text mode, it properly converts lines to CR/LF. This bash problem
  25229. # is reportedly fixed, but why not run on old versions too?
  25230. sed '$q' "$ltmain" >> "$cfgfile" \
  25231. || (rm -f "$cfgfile"; exit 1)
  25232. mv -f "$cfgfile" "$ofile" ||
  25233. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25234. chmod +x "$ofile"
  25235. cat <<_LT_EOF >> "$ofile"
  25236. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25237. # The linker used to build libraries.
  25238. LD=$lt_LD_RC
  25239. # How to create reloadable object files.
  25240. reload_flag=$lt_reload_flag_RC
  25241. reload_cmds=$lt_reload_cmds_RC
  25242. # Commands used to build an old-style archive.
  25243. old_archive_cmds=$lt_old_archive_cmds_RC
  25244. # A language specific compiler.
  25245. CC=$lt_compiler_RC
  25246. # Is the compiler the GNU compiler?
  25247. with_gcc=$GCC_RC
  25248. # Compiler flag to turn off builtin functions.
  25249. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25250. # Additional compiler flags for building library objects.
  25251. pic_flag=$lt_lt_prog_compiler_pic_RC
  25252. # How to pass a linker flag through the compiler.
  25253. wl=$lt_lt_prog_compiler_wl_RC
  25254. # Compiler flag to prevent dynamic linking.
  25255. link_static_flag=$lt_lt_prog_compiler_static_RC
  25256. # Does compiler simultaneously support -c and -o options?
  25257. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25258. # Whether or not to add -lc for building shared libraries.
  25259. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25260. # Whether or not to disallow shared libs when runtime libs are static.
  25261. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25262. # Compiler flag to allow reflexive dlopens.
  25263. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25264. # Compiler flag to generate shared objects directly from archives.
  25265. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25266. # Whether the compiler copes with passing no objects directly.
  25267. compiler_needs_object=$lt_compiler_needs_object_RC
  25268. # Create an old-style archive from a shared archive.
  25269. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25270. # Create a temporary old-style archive to link instead of a shared archive.
  25271. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25272. # Commands used to build a shared archive.
  25273. archive_cmds=$lt_archive_cmds_RC
  25274. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25275. # Commands used to build a loadable module if different from building
  25276. # a shared archive.
  25277. module_cmds=$lt_module_cmds_RC
  25278. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25279. # Whether we are building with GNU ld or not.
  25280. with_gnu_ld=$lt_with_gnu_ld_RC
  25281. # Flag that allows shared libraries with undefined symbols to be built.
  25282. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25283. # Flag that enforces no undefined symbols.
  25284. no_undefined_flag=$lt_no_undefined_flag_RC
  25285. # Flag to hardcode \$libdir into a binary during linking.
  25286. # This must work even if \$libdir does not exist
  25287. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25288. # Whether we need a single "-rpath" flag with a separated argument.
  25289. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25290. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25291. # DIR into the resulting binary.
  25292. hardcode_direct=$hardcode_direct_RC
  25293. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25294. # DIR into the resulting binary and the resulting library dependency is
  25295. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25296. # library is relocated.
  25297. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25298. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25299. # into the resulting binary.
  25300. hardcode_minus_L=$hardcode_minus_L_RC
  25301. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25302. # into the resulting binary.
  25303. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25304. # Set to "yes" if building a shared library automatically hardcodes DIR
  25305. # into the library and all subsequent libraries and executables linked
  25306. # against it.
  25307. hardcode_automatic=$hardcode_automatic_RC
  25308. # Set to yes if linker adds runtime paths of dependent libraries
  25309. # to runtime path list.
  25310. inherit_rpath=$inherit_rpath_RC
  25311. # Whether libtool must link a program against all its dependency libraries.
  25312. link_all_deplibs=$link_all_deplibs_RC
  25313. # Set to "yes" if exported symbols are required.
  25314. always_export_symbols=$always_export_symbols_RC
  25315. # The commands to list exported symbols.
  25316. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25317. # Symbols that should not be listed in the preloaded symbols.
  25318. exclude_expsyms=$lt_exclude_expsyms_RC
  25319. # Symbols that must always be exported.
  25320. include_expsyms=$lt_include_expsyms_RC
  25321. # Commands necessary for linking programs (against libraries) with templates.
  25322. prelink_cmds=$lt_prelink_cmds_RC
  25323. # Commands necessary for finishing linking programs.
  25324. postlink_cmds=$lt_postlink_cmds_RC
  25325. # Specify filename containing input files.
  25326. file_list_spec=$lt_file_list_spec_RC
  25327. # How to hardcode a shared library path into an executable.
  25328. hardcode_action=$hardcode_action_RC
  25329. # The directories searched by this compiler when creating a shared library.
  25330. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25331. # Dependencies to place before and after the objects being linked to
  25332. # create a shared library.
  25333. predep_objects=$lt_predep_objects_RC
  25334. postdep_objects=$lt_postdep_objects_RC
  25335. predeps=$lt_predeps_RC
  25336. postdeps=$lt_postdeps_RC
  25337. # The library search path used internally by the compiler when linking
  25338. # a shared library.
  25339. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25340. # ### END LIBTOOL TAG CONFIG: RC
  25341. _LT_EOF
  25342. cat <<_LT_EOF >> "$ofile"
  25343. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25344. # The linker used to build libraries.
  25345. LD=$lt_LD_CXX
  25346. # How to create reloadable object files.
  25347. reload_flag=$lt_reload_flag_CXX
  25348. reload_cmds=$lt_reload_cmds_CXX
  25349. # Commands used to build an old-style archive.
  25350. old_archive_cmds=$lt_old_archive_cmds_CXX
  25351. # A language specific compiler.
  25352. CC=$lt_compiler_CXX
  25353. # Is the compiler the GNU compiler?
  25354. with_gcc=$GCC_CXX
  25355. # Compiler flag to turn off builtin functions.
  25356. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25357. # Additional compiler flags for building library objects.
  25358. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25359. # How to pass a linker flag through the compiler.
  25360. wl=$lt_lt_prog_compiler_wl_CXX
  25361. # Compiler flag to prevent dynamic linking.
  25362. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25363. # Does compiler simultaneously support -c and -o options?
  25364. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25365. # Whether or not to add -lc for building shared libraries.
  25366. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25367. # Whether or not to disallow shared libs when runtime libs are static.
  25368. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25369. # Compiler flag to allow reflexive dlopens.
  25370. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25371. # Compiler flag to generate shared objects directly from archives.
  25372. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25373. # Whether the compiler copes with passing no objects directly.
  25374. compiler_needs_object=$lt_compiler_needs_object_CXX
  25375. # Create an old-style archive from a shared archive.
  25376. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25377. # Create a temporary old-style archive to link instead of a shared archive.
  25378. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25379. # Commands used to build a shared archive.
  25380. archive_cmds=$lt_archive_cmds_CXX
  25381. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25382. # Commands used to build a loadable module if different from building
  25383. # a shared archive.
  25384. module_cmds=$lt_module_cmds_CXX
  25385. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25386. # Whether we are building with GNU ld or not.
  25387. with_gnu_ld=$lt_with_gnu_ld_CXX
  25388. # Flag that allows shared libraries with undefined symbols to be built.
  25389. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25390. # Flag that enforces no undefined symbols.
  25391. no_undefined_flag=$lt_no_undefined_flag_CXX
  25392. # Flag to hardcode \$libdir into a binary during linking.
  25393. # This must work even if \$libdir does not exist
  25394. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25395. # Whether we need a single "-rpath" flag with a separated argument.
  25396. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25397. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25398. # DIR into the resulting binary.
  25399. hardcode_direct=$hardcode_direct_CXX
  25400. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25401. # DIR into the resulting binary and the resulting library dependency is
  25402. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25403. # library is relocated.
  25404. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25405. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25406. # into the resulting binary.
  25407. hardcode_minus_L=$hardcode_minus_L_CXX
  25408. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25409. # into the resulting binary.
  25410. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25411. # Set to "yes" if building a shared library automatically hardcodes DIR
  25412. # into the library and all subsequent libraries and executables linked
  25413. # against it.
  25414. hardcode_automatic=$hardcode_automatic_CXX
  25415. # Set to yes if linker adds runtime paths of dependent libraries
  25416. # to runtime path list.
  25417. inherit_rpath=$inherit_rpath_CXX
  25418. # Whether libtool must link a program against all its dependency libraries.
  25419. link_all_deplibs=$link_all_deplibs_CXX
  25420. # Set to "yes" if exported symbols are required.
  25421. always_export_symbols=$always_export_symbols_CXX
  25422. # The commands to list exported symbols.
  25423. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25424. # Symbols that should not be listed in the preloaded symbols.
  25425. exclude_expsyms=$lt_exclude_expsyms_CXX
  25426. # Symbols that must always be exported.
  25427. include_expsyms=$lt_include_expsyms_CXX
  25428. # Commands necessary for linking programs (against libraries) with templates.
  25429. prelink_cmds=$lt_prelink_cmds_CXX
  25430. # Commands necessary for finishing linking programs.
  25431. postlink_cmds=$lt_postlink_cmds_CXX
  25432. # Specify filename containing input files.
  25433. file_list_spec=$lt_file_list_spec_CXX
  25434. # How to hardcode a shared library path into an executable.
  25435. hardcode_action=$hardcode_action_CXX
  25436. # The directories searched by this compiler when creating a shared library.
  25437. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25438. # Dependencies to place before and after the objects being linked to
  25439. # create a shared library.
  25440. predep_objects=$lt_predep_objects_CXX
  25441. postdep_objects=$lt_postdep_objects_CXX
  25442. predeps=$lt_predeps_CXX
  25443. postdeps=$lt_postdeps_CXX
  25444. # The library search path used internally by the compiler when linking
  25445. # a shared library.
  25446. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25447. # ### END LIBTOOL TAG CONFIG: CXX
  25448. _LT_EOF
  25449. ;;
  25450. "sdl2_config":C) chmod a+x sdl2-config ;;
  25451. "summary":C) printf "$SUMMARY" ;;
  25452. esac
  25453. done # for ac_tag
  25454. as_fn_exit 0
  25455. _ACEOF
  25456. ac_clean_files=$ac_clean_files_save
  25457. test $ac_write_fail = 0 ||
  25458. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25459. # configure is writing to config.log, and then calls config.status.
  25460. # config.status does its own redirection, appending to config.log.
  25461. # Unfortunately, on DOS this fails, as config.log is still kept open
  25462. # by configure, so config.status won't be able to write to it; its
  25463. # output is simply discarded. So we exec the FD to /dev/null,
  25464. # effectively closing config.log, so it can be properly (re)opened and
  25465. # appended to by config.status. When coming back to configure, we
  25466. # need to make the FD available again.
  25467. if test "$no_create" != yes; then
  25468. ac_cs_success=:
  25469. ac_config_status_args=
  25470. test "$silent" = yes &&
  25471. ac_config_status_args="$ac_config_status_args --quiet"
  25472. exec 5>/dev/null
  25473. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25474. exec 5>>config.log
  25475. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25476. # would make configure fail if this is the last instruction.
  25477. $ac_cs_success || as_fn_exit 1
  25478. fi
  25479. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25481. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25482. fi