configure 887 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865
  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_locale
  775. enable_loadso
  776. enable_cpuinfo
  777. enable_assembly
  778. enable_ssemath
  779. enable_mmx
  780. enable_3dnow
  781. enable_sse
  782. enable_sse2
  783. enable_sse3
  784. enable_altivec
  785. enable_oss
  786. enable_alsa
  787. with_alsa_prefix
  788. with_alsa_inc_prefix
  789. enable_alsatest
  790. enable_alsa_shared
  791. enable_jack
  792. enable_jack_shared
  793. enable_esd
  794. with_esd_prefix
  795. with_esd_exec_prefix
  796. enable_esdtest
  797. enable_esd_shared
  798. enable_pipewire
  799. enable_pipewire_shared
  800. enable_pulseaudio
  801. enable_pulseaudio_shared
  802. enable_arts
  803. enable_arts_shared
  804. enable_nas
  805. enable_nas_shared
  806. enable_sndio
  807. enable_sndio_shared
  808. enable_fusionsound
  809. enable_fusionsound_shared
  810. enable_diskaudio
  811. enable_dummyaudio
  812. enable_libsamplerate
  813. enable_libsamplerate_shared
  814. enable_arm_simd
  815. enable_arm_neon
  816. enable_video_wayland
  817. enable_video_wayland_qt_touch
  818. enable_wayland_shared
  819. enable_libdecor
  820. enable_libdecor_shared
  821. enable_video_rpi
  822. enable_video_x11
  823. with_x
  824. enable_x11_shared
  825. enable_video_x11_xcursor
  826. enable_video_x11_xdbe
  827. enable_video_x11_xinerama
  828. enable_video_x11_xinput
  829. enable_video_x11_xfixes
  830. enable_video_x11_xrandr
  831. enable_video_x11_scrnsaver
  832. enable_video_x11_xshape
  833. enable_video_x11_vm
  834. enable_video_vivante
  835. enable_video_cocoa
  836. enable_video_metal
  837. enable_render_metal
  838. enable_video_directfb
  839. enable_directfb_shared
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl2_config
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CPP
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. JACK_CFLAGS
  888. JACK_LIBS
  889. PIPEWIRE_CFLAGS
  890. PIPEWIRE_LIBS
  891. PULSEAUDIO_CFLAGS
  892. PULSEAUDIO_LIBS
  893. FUSIONSOUND_CFLAGS
  894. FUSIONSOUND_LIBS
  895. RPI_CFLAGS
  896. RPI_LIBS
  897. XMKMF
  898. DIRECTFB_CFLAGS
  899. DIRECTFB_LIBS
  900. LIBDRM_CFLAGS
  901. LIBDRM_LIBS
  902. LIBGBM_CFLAGS
  903. LIBGBM_LIBS
  904. DBUS_CFLAGS
  905. DBUS_LIBS
  906. IBUS_CFLAGS
  907. IBUS_LIBS
  908. LIBUSB_CFLAGS
  909. LIBUSB_LIBS'
  910. # Initialize some variables set by options.
  911. ac_init_help=
  912. ac_init_version=false
  913. ac_unrecognized_opts=
  914. ac_unrecognized_sep=
  915. # The variables have the same names as the options, with
  916. # dashes changed to underlines.
  917. cache_file=/dev/null
  918. exec_prefix=NONE
  919. no_create=
  920. no_recursion=
  921. prefix=NONE
  922. program_prefix=NONE
  923. program_suffix=NONE
  924. program_transform_name=s,x,x,
  925. silent=
  926. site=
  927. srcdir=
  928. verbose=
  929. x_includes=NONE
  930. x_libraries=NONE
  931. # Installation directory options.
  932. # These are left unexpanded so users can "make install exec_prefix=/foo"
  933. # and all the variables that are supposed to be based on exec_prefix
  934. # by default will actually change.
  935. # Use braces instead of parens because sh, perl, etc. also accept them.
  936. # (The list follows the same order as the GNU Coding Standards.)
  937. bindir='${exec_prefix}/bin'
  938. sbindir='${exec_prefix}/sbin'
  939. libexecdir='${exec_prefix}/libexec'
  940. datarootdir='${prefix}/share'
  941. datadir='${datarootdir}'
  942. sysconfdir='${prefix}/etc'
  943. sharedstatedir='${prefix}/com'
  944. localstatedir='${prefix}/var'
  945. includedir='${prefix}/include'
  946. oldincludedir='/usr/include'
  947. docdir='${datarootdir}/doc/${PACKAGE}'
  948. infodir='${datarootdir}/info'
  949. htmldir='${docdir}'
  950. dvidir='${docdir}'
  951. pdfdir='${docdir}'
  952. psdir='${docdir}'
  953. libdir='${exec_prefix}/lib'
  954. localedir='${datarootdir}/locale'
  955. mandir='${datarootdir}/man'
  956. ac_prev=
  957. ac_dashdash=
  958. for ac_option
  959. do
  960. # If the previous option needs an argument, assign it.
  961. if test -n "$ac_prev"; then
  962. eval $ac_prev=\$ac_option
  963. ac_prev=
  964. continue
  965. fi
  966. case $ac_option in
  967. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  968. *=) ac_optarg= ;;
  969. *) ac_optarg=yes ;;
  970. esac
  971. # Accept the important Cygnus configure options, so we can diagnose typos.
  972. case $ac_dashdash$ac_option in
  973. --)
  974. ac_dashdash=yes ;;
  975. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  976. ac_prev=bindir ;;
  977. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  978. bindir=$ac_optarg ;;
  979. -build | --build | --buil | --bui | --bu)
  980. ac_prev=build_alias ;;
  981. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  982. build_alias=$ac_optarg ;;
  983. -cache-file | --cache-file | --cache-fil | --cache-fi \
  984. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  985. ac_prev=cache_file ;;
  986. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  987. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  988. cache_file=$ac_optarg ;;
  989. --config-cache | -C)
  990. cache_file=config.cache ;;
  991. -datadir | --datadir | --datadi | --datad)
  992. ac_prev=datadir ;;
  993. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  994. datadir=$ac_optarg ;;
  995. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  996. | --dataroo | --dataro | --datar)
  997. ac_prev=datarootdir ;;
  998. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  999. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1000. datarootdir=$ac_optarg ;;
  1001. -disable-* | --disable-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid feature name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "enable_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval enable_$ac_useropt=no ;;
  1016. -docdir | --docdir | --docdi | --doc | --do)
  1017. ac_prev=docdir ;;
  1018. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1019. docdir=$ac_optarg ;;
  1020. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1021. ac_prev=dvidir ;;
  1022. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1023. dvidir=$ac_optarg ;;
  1024. -enable-* | --enable-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid feature name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "enable_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval enable_$ac_useropt=\$ac_optarg ;;
  1039. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1040. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1041. | --exec | --exe | --ex)
  1042. ac_prev=exec_prefix ;;
  1043. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1044. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1045. | --exec=* | --exe=* | --ex=*)
  1046. exec_prefix=$ac_optarg ;;
  1047. -gas | --gas | --ga | --g)
  1048. # Obsolete; use --with-gas.
  1049. with_gas=yes ;;
  1050. -help | --help | --hel | --he | -h)
  1051. ac_init_help=long ;;
  1052. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1053. ac_init_help=recursive ;;
  1054. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1055. ac_init_help=short ;;
  1056. -host | --host | --hos | --ho)
  1057. ac_prev=host_alias ;;
  1058. -host=* | --host=* | --hos=* | --ho=*)
  1059. host_alias=$ac_optarg ;;
  1060. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1061. ac_prev=htmldir ;;
  1062. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1063. | --ht=*)
  1064. htmldir=$ac_optarg ;;
  1065. -includedir | --includedir | --includedi | --included | --include \
  1066. | --includ | --inclu | --incl | --inc)
  1067. ac_prev=includedir ;;
  1068. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1069. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1070. includedir=$ac_optarg ;;
  1071. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1072. ac_prev=infodir ;;
  1073. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1074. infodir=$ac_optarg ;;
  1075. -libdir | --libdir | --libdi | --libd)
  1076. ac_prev=libdir ;;
  1077. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1078. libdir=$ac_optarg ;;
  1079. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1080. | --libexe | --libex | --libe)
  1081. ac_prev=libexecdir ;;
  1082. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1083. | --libexe=* | --libex=* | --libe=*)
  1084. libexecdir=$ac_optarg ;;
  1085. -localedir | --localedir | --localedi | --localed | --locale)
  1086. ac_prev=localedir ;;
  1087. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1088. localedir=$ac_optarg ;;
  1089. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1090. | --localstate | --localstat | --localsta | --localst | --locals)
  1091. ac_prev=localstatedir ;;
  1092. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1093. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1094. localstatedir=$ac_optarg ;;
  1095. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1096. ac_prev=mandir ;;
  1097. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1098. mandir=$ac_optarg ;;
  1099. -nfp | --nfp | --nf)
  1100. # Obsolete; use --without-fp.
  1101. with_fp=no ;;
  1102. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1103. | --no-cr | --no-c | -n)
  1104. no_create=yes ;;
  1105. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1106. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1107. no_recursion=yes ;;
  1108. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1109. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1110. | --oldin | --oldi | --old | --ol | --o)
  1111. ac_prev=oldincludedir ;;
  1112. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1113. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1114. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1115. oldincludedir=$ac_optarg ;;
  1116. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1117. ac_prev=prefix ;;
  1118. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1119. prefix=$ac_optarg ;;
  1120. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1121. | --program-pre | --program-pr | --program-p)
  1122. ac_prev=program_prefix ;;
  1123. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1124. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1125. program_prefix=$ac_optarg ;;
  1126. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1127. | --program-suf | --program-su | --program-s)
  1128. ac_prev=program_suffix ;;
  1129. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1130. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1131. program_suffix=$ac_optarg ;;
  1132. -program-transform-name | --program-transform-name \
  1133. | --program-transform-nam | --program-transform-na \
  1134. | --program-transform-n | --program-transform- \
  1135. | --program-transform | --program-transfor \
  1136. | --program-transfo | --program-transf \
  1137. | --program-trans | --program-tran \
  1138. | --progr-tra | --program-tr | --program-t)
  1139. ac_prev=program_transform_name ;;
  1140. -program-transform-name=* | --program-transform-name=* \
  1141. | --program-transform-nam=* | --program-transform-na=* \
  1142. | --program-transform-n=* | --program-transform-=* \
  1143. | --program-transform=* | --program-transfor=* \
  1144. | --program-transfo=* | --program-transf=* \
  1145. | --program-trans=* | --program-tran=* \
  1146. | --progr-tra=* | --program-tr=* | --program-t=*)
  1147. program_transform_name=$ac_optarg ;;
  1148. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1149. ac_prev=pdfdir ;;
  1150. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1151. pdfdir=$ac_optarg ;;
  1152. -psdir | --psdir | --psdi | --psd | --ps)
  1153. ac_prev=psdir ;;
  1154. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1155. psdir=$ac_optarg ;;
  1156. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1157. | -silent | --silent | --silen | --sile | --sil)
  1158. silent=yes ;;
  1159. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1160. ac_prev=sbindir ;;
  1161. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1162. | --sbi=* | --sb=*)
  1163. sbindir=$ac_optarg ;;
  1164. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166. | --sharedst | --shareds | --shared | --share | --shar \
  1167. | --sha | --sh)
  1168. ac_prev=sharedstatedir ;;
  1169. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172. | --sha=* | --sh=*)
  1173. sharedstatedir=$ac_optarg ;;
  1174. -site | --site | --sit)
  1175. ac_prev=site ;;
  1176. -site=* | --site=* | --sit=*)
  1177. site=$ac_optarg ;;
  1178. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1179. ac_prev=srcdir ;;
  1180. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1181. srcdir=$ac_optarg ;;
  1182. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1183. | --syscon | --sysco | --sysc | --sys | --sy)
  1184. ac_prev=sysconfdir ;;
  1185. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1186. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1187. sysconfdir=$ac_optarg ;;
  1188. -target | --target | --targe | --targ | --tar | --ta | --t)
  1189. ac_prev=target_alias ;;
  1190. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1191. target_alias=$ac_optarg ;;
  1192. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1193. verbose=yes ;;
  1194. -version | --version | --versio | --versi | --vers | -V)
  1195. ac_init_version=: ;;
  1196. -with-* | --with-*)
  1197. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1198. # Reject names that are not valid shell variable names.
  1199. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1200. as_fn_error $? "invalid package name: $ac_useropt"
  1201. ac_useropt_orig=$ac_useropt
  1202. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1203. case $ac_user_opts in
  1204. *"
  1205. "with_$ac_useropt"
  1206. "*) ;;
  1207. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1208. ac_unrecognized_sep=', ';;
  1209. esac
  1210. eval with_$ac_useropt=\$ac_optarg ;;
  1211. -without-* | --without-*)
  1212. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1213. # Reject names that are not valid shell variable names.
  1214. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1215. as_fn_error $? "invalid package name: $ac_useropt"
  1216. ac_useropt_orig=$ac_useropt
  1217. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1218. case $ac_user_opts in
  1219. *"
  1220. "with_$ac_useropt"
  1221. "*) ;;
  1222. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1223. ac_unrecognized_sep=', ';;
  1224. esac
  1225. eval with_$ac_useropt=no ;;
  1226. --x)
  1227. # Obsolete; use --with-x.
  1228. with_x=yes ;;
  1229. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1230. | --x-incl | --x-inc | --x-in | --x-i)
  1231. ac_prev=x_includes ;;
  1232. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1233. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1234. x_includes=$ac_optarg ;;
  1235. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1236. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1237. ac_prev=x_libraries ;;
  1238. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1239. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1240. x_libraries=$ac_optarg ;;
  1241. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1242. Try \`$0 --help' for more information"
  1243. ;;
  1244. *=*)
  1245. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1246. # Reject names that are not valid shell variable names.
  1247. case $ac_envvar in #(
  1248. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1249. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1250. esac
  1251. eval $ac_envvar=\$ac_optarg
  1252. export $ac_envvar ;;
  1253. *)
  1254. # FIXME: should be removed in autoconf 3.0.
  1255. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1256. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1257. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1258. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1259. ;;
  1260. esac
  1261. done
  1262. if test -n "$ac_prev"; then
  1263. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1264. as_fn_error $? "missing argument to $ac_option"
  1265. fi
  1266. if test -n "$ac_unrecognized_opts"; then
  1267. case $enable_option_checking in
  1268. no) ;;
  1269. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1270. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1271. esac
  1272. fi
  1273. # Check all directory arguments for consistency.
  1274. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1275. datadir sysconfdir sharedstatedir localstatedir includedir \
  1276. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1277. libdir localedir mandir
  1278. do
  1279. eval ac_val=\$$ac_var
  1280. # Remove trailing slashes.
  1281. case $ac_val in
  1282. */ )
  1283. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1284. eval $ac_var=\$ac_val;;
  1285. esac
  1286. # Be sure to have absolute directory names.
  1287. case $ac_val in
  1288. [\\/$]* | ?:[\\/]* ) continue;;
  1289. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1290. esac
  1291. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1292. done
  1293. # There might be people who depend on the old broken behavior: `$host'
  1294. # used to hold the argument of --host etc.
  1295. # FIXME: To remove some day.
  1296. build=$build_alias
  1297. host=$host_alias
  1298. target=$target_alias
  1299. # FIXME: To remove some day.
  1300. if test "x$host_alias" != x; then
  1301. if test "x$build_alias" = x; then
  1302. cross_compiling=maybe
  1303. elif test "x$build_alias" != "x$host_alias"; then
  1304. cross_compiling=yes
  1305. fi
  1306. fi
  1307. ac_tool_prefix=
  1308. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1309. test "$silent" = yes && exec 6>/dev/null
  1310. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1311. ac_ls_di=`ls -di .` &&
  1312. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1313. as_fn_error $? "working directory cannot be determined"
  1314. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1315. as_fn_error $? "pwd does not report name of working directory"
  1316. # Find the source files, if location was not specified.
  1317. if test -z "$srcdir"; then
  1318. ac_srcdir_defaulted=yes
  1319. # Try the directory containing this script, then the parent directory.
  1320. ac_confdir=`$as_dirname -- "$as_myself" ||
  1321. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1322. X"$as_myself" : 'X\(//\)[^/]' \| \
  1323. X"$as_myself" : 'X\(//\)$' \| \
  1324. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1325. $as_echo X"$as_myself" |
  1326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\/\)[^/].*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\).*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. s/.*/./; q'`
  1343. srcdir=$ac_confdir
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. srcdir=..
  1346. fi
  1347. else
  1348. ac_srcdir_defaulted=no
  1349. fi
  1350. if test ! -r "$srcdir/$ac_unique_file"; then
  1351. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1352. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1353. fi
  1354. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1355. ac_abs_confdir=`(
  1356. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1357. pwd)`
  1358. # When building in place, set srcdir=.
  1359. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1360. srcdir=.
  1361. fi
  1362. # Remove unnecessary trailing slashes from srcdir.
  1363. # Double slashes in file names in object file debugging info
  1364. # mess up M-x gdb in Emacs.
  1365. case $srcdir in
  1366. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1367. esac
  1368. for ac_var in $ac_precious_vars; do
  1369. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_env_${ac_var}_value=\$${ac_var}
  1371. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1373. done
  1374. #
  1375. # Report the --help message.
  1376. #
  1377. if test "$ac_init_help" = "long"; then
  1378. # Omit some internal or obsolete options to make the list less imposing.
  1379. # This message is too long to be a string in the A/UX 3.1 sh.
  1380. cat <<_ACEOF
  1381. \`configure' configures this package to adapt to many kinds of systems.
  1382. Usage: $0 [OPTION]... [VAR=VALUE]...
  1383. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1384. VAR=VALUE. See below for descriptions of some of the useful variables.
  1385. Defaults for the options are specified in brackets.
  1386. Configuration:
  1387. -h, --help display this help and exit
  1388. --help=short display options specific to this package
  1389. --help=recursive display the short help of all the included packages
  1390. -V, --version display version information and exit
  1391. -q, --quiet, --silent do not print \`checking ...' messages
  1392. --cache-file=FILE cache test results in FILE [disabled]
  1393. -C, --config-cache alias for \`--cache-file=config.cache'
  1394. -n, --no-create do not create output files
  1395. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1396. Installation directories:
  1397. --prefix=PREFIX install architecture-independent files in PREFIX
  1398. [$ac_default_prefix]
  1399. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1400. [PREFIX]
  1401. By default, \`make install' will install all the files in
  1402. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1403. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404. for instance \`--prefix=\$HOME'.
  1405. For better control, use the options below.
  1406. Fine tuning of the installation directories:
  1407. --bindir=DIR user executables [EPREFIX/bin]
  1408. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1409. --libexecdir=DIR program executables [EPREFIX/libexec]
  1410. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1411. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1412. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. X features:
  1429. --x-includes=DIR X include files are in DIR
  1430. --x-libraries=DIR X library files are in DIR
  1431. System types:
  1432. --build=BUILD configure for building on BUILD [guessed]
  1433. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1434. _ACEOF
  1435. fi
  1436. if test -n "$ac_init_help"; then
  1437. cat <<\_ACEOF
  1438. Optional Features:
  1439. --disable-option-checking ignore unrecognized --enable/--with options
  1440. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1441. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1442. --enable-shared[=PKGS] build shared libraries [default=yes]
  1443. --enable-static[=PKGS] build static libraries [default=yes]
  1444. --enable-fast-install[=PKGS]
  1445. optimize for fast installation [default=yes]
  1446. --disable-libtool-lock avoid locking (might break parallel builds)
  1447. --enable-assertions Enable internal sanity checks
  1448. (auto/disabled/release/enabled/paranoid)
  1449. [default=auto]
  1450. --enable-dependency-tracking
  1451. Use gcc -MMD -MT dependency tracking [default=yes]
  1452. --enable-libc Use the system C library [default=yes]
  1453. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1454. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1455. --enable-audio Enable the audio subsystem [default=yes]
  1456. --enable-video Enable the video subsystem [default=yes]
  1457. --enable-render Enable the render subsystem [default=yes]
  1458. --enable-events Enable the events subsystem [default=yes]
  1459. --enable-joystick Enable the joystick subsystem [default=yes]
  1460. --enable-haptic Enable the haptic (force feedback) subsystem
  1461. [default=yes]
  1462. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1463. --enable-sensor Enable the sensor subsystem [default=yes]
  1464. --enable-power Enable the power subsystem [default=yes]
  1465. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1466. --enable-threads Enable the threading subsystem [default=yes]
  1467. --enable-timers Enable the timer subsystem [default=yes]
  1468. --enable-file Enable the file subsystem [default=yes]
  1469. --enable-misc Enable the misc subsystem [default=yes]
  1470. --enable-locale Enable the locale subsystem [default=yes]
  1471. --enable-loadso Enable the shared object loading subsystem
  1472. [default=yes]
  1473. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1474. --enable-assembly Enable assembly routines [default=yes]
  1475. --enable-ssemath Allow GCC to use SSE floating point math
  1476. [default=maybe]
  1477. --enable-mmx use MMX assembly routines [default=yes]
  1478. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1479. --enable-sse use SSE assembly routines [default=yes]
  1480. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1481. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1482. --enable-altivec use Altivec assembly routines [default=yes]
  1483. --enable-oss support the OSS audio API [default=maybe]
  1484. --enable-alsa support the ALSA audio API [default=yes]
  1485. --disable-alsatest Do not try to compile and run a test Alsa program
  1486. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1487. --enable-jack use JACK audio [default=yes]
  1488. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1489. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1490. --disable-esdtest Do not try to compile and run a test ESD program
  1491. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1492. --enable-pipewire use Pipewire audio [default=yes]
  1493. --enable-pipewire-shared
  1494. dynamically load Pipewire support [default=yes]
  1495. --enable-pulseaudio use PulseAudio [default=yes]
  1496. --enable-pulseaudio-shared
  1497. dynamically load PulseAudio support [default=yes]
  1498. --enable-arts support the Analog Real Time Synthesizer
  1499. [default=yes]
  1500. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1501. --enable-nas support the NAS audio API [default=yes]
  1502. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1503. --enable-sndio support the sndio audio API [default=yes]
  1504. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1505. --enable-fusionsound use FusionSound audio driver [default=no]
  1506. --enable-fusionsound-shared
  1507. dynamically load fusionsound audio support
  1508. [default=yes]
  1509. --enable-diskaudio support the disk writer audio driver [default=yes]
  1510. --enable-dummyaudio support the dummy audio driver [default=yes]
  1511. --enable-libsamplerate use libsamplerate for audio rate conversion
  1512. [default=yes]
  1513. --enable-libsamplerate-shared
  1514. dynamically load libsamplerate [default=yes]
  1515. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1516. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1517. --enable-video-wayland use Wayland video driver [default=yes]
  1518. --enable-video-wayland-qt-touch
  1519. QtWayland server support for Wayland video driver
  1520. [default=yes]
  1521. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1522. --enable-libdecor use libdecor for Wayland client-side decorations
  1523. [default=yes]
  1524. --enable-libdecor-shared
  1525. dynamically load libdecor [default=yes]
  1526. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1527. --enable-video-x11 use X11 video driver [default=yes]
  1528. --enable-x11-shared dynamically load X11 support [default=maybe]
  1529. --enable-video-x11-xcursor
  1530. enable X11 Xcursor support [default=yes]
  1531. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1532. --enable-video-x11-xinerama
  1533. enable X11 Xinerama support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1547. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1548. --enable-video-cocoa use Cocoa video driver [default=yes]
  1549. --enable-video-metal include Metal support [default=yes]
  1550. --enable-render-metal enable the Metal render driver [default=yes]
  1551. --enable-video-directfb use DirectFB video driver [default=no]
  1552. --enable-directfb-shared
  1553. dynamically load directfb support [default=yes]
  1554. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1555. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1556. --enable-video-dummy use dummy video driver [default=yes]
  1557. --enable-video-offscreen
  1558. use offscreen video driver [default=no]
  1559. --enable-video-opengl include OpenGL support [default=yes]
  1560. --enable-video-opengles include OpenGL ES support [default=yes]
  1561. --enable-video-opengles1
  1562. include OpenGL ES 1.1 support [default=yes]
  1563. --enable-video-opengles2
  1564. include OpenGL ES 2.0 support [default=yes]
  1565. --enable-video-vulkan include Vulkan support [default=yes]
  1566. --enable-libudev enable libudev support [default=yes]
  1567. --enable-dbus enable D-Bus support [default=yes]
  1568. --enable-ime enable IME support [default=yes]
  1569. --enable-ibus enable IBus support [default=yes]
  1570. --enable-fcitx enable fcitx support [default=yes]
  1571. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1572. --enable-pthreads use POSIX threads for multi-threading
  1573. [default=maybe]
  1574. --enable-pthread-sem use pthread semaphores [default=maybe]
  1575. --enable-directx use DirectX for Windows audio/video [default=yes]
  1576. --enable-xinput use Xinput for Windows [default=yes]
  1577. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1578. --enable-hidapi-joystick
  1579. use HIDAPI for low level joystick drivers
  1580. [default=yes]
  1581. --enable-hidapi-libusb use libusb for low level joystick drivers
  1582. [default=maybe]
  1583. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1584. UNIX [default=yes]
  1585. --enable-rpath use an rpath when linking SDL [default=yes]
  1586. --enable-backgrounding-signal
  1587. number to use for magic backgrounding signal or 'no'
  1588. [default=no]
  1589. --enable-foregrounding-signal
  1590. number to use for magic foregrounding signal or 'no'
  1591. [default=no]
  1592. --enable-joystick-virtual
  1593. enable virtual joystick APIs [default=yes]
  1594. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1595. --enable-sdl2-config Install sdl2-config [default=yes]
  1596. Optional Packages:
  1597. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1598. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1599. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1600. both]
  1601. --with-aix-soname=aix|svr4|both
  1602. shared library versioning (aka "SONAME") variant to
  1603. provide on AIX, [default=aix].
  1604. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1605. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1606. compiler's sysroot if not specified).
  1607. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1608. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1609. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1610. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1611. --with-x use the X Window System
  1612. Some influential environment variables:
  1613. CC C compiler command
  1614. CFLAGS C compiler flags
  1615. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1616. nonstandard directory <lib dir>
  1617. LIBS libraries to pass to the linker, e.g. -l<library>
  1618. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1619. you have headers in a nonstandard directory <include dir>
  1620. LT_SYS_LIBRARY_PATH
  1621. User-defined run-time library search path.
  1622. CPP C preprocessor
  1623. CXX C++ compiler command
  1624. CXXFLAGS C++ compiler flags
  1625. CXXCPP C++ preprocessor
  1626. PKG_CONFIG path to pkg-config utility
  1627. PKG_CONFIG_PATH
  1628. directories to add to pkg-config's search path
  1629. PKG_CONFIG_LIBDIR
  1630. path overriding pkg-config's built-in search path
  1631. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1632. JACK_LIBS linker flags for JACK, overriding pkg-config
  1633. PIPEWIRE_CFLAGS
  1634. C compiler flags for PIPEWIRE, overriding pkg-config
  1635. PIPEWIRE_LIBS
  1636. linker flags for PIPEWIRE, overriding pkg-config
  1637. PULSEAUDIO_CFLAGS
  1638. C compiler flags for PULSEAUDIO, overriding pkg-config
  1639. PULSEAUDIO_LIBS
  1640. linker flags for PULSEAUDIO, overriding pkg-config
  1641. FUSIONSOUND_CFLAGS
  1642. C compiler flags for FUSIONSOUND, overriding pkg-config
  1643. FUSIONSOUND_LIBS
  1644. linker flags for FUSIONSOUND, overriding pkg-config
  1645. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1646. RPI_LIBS linker flags for RPI, overriding pkg-config
  1647. XMKMF Path to xmkmf, Makefile generator for X Window System
  1648. DIRECTFB_CFLAGS
  1649. C compiler flags for DIRECTFB, overriding pkg-config
  1650. DIRECTFB_LIBS
  1651. linker flags for DIRECTFB, overriding pkg-config
  1652. LIBDRM_CFLAGS
  1653. C compiler flags for LIBDRM, overriding pkg-config
  1654. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1655. LIBGBM_CFLAGS
  1656. C compiler flags for LIBGBM, overriding pkg-config
  1657. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1658. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1659. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1660. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1661. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1662. LIBUSB_CFLAGS
  1663. C compiler flags for LIBUSB, overriding pkg-config
  1664. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1665. Use these variables to override the choices made by `configure' or to help
  1666. it to find libraries and programs with nonstandard names/locations.
  1667. Report bugs to the package provider.
  1668. _ACEOF
  1669. ac_status=$?
  1670. fi
  1671. if test "$ac_init_help" = "recursive"; then
  1672. # If there are subdirs, report their specific --help.
  1673. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1674. test -d "$ac_dir" ||
  1675. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1676. continue
  1677. ac_builddir=.
  1678. case "$ac_dir" in
  1679. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1680. *)
  1681. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1682. # A ".." for each directory in $ac_dir_suffix.
  1683. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1684. case $ac_top_builddir_sub in
  1685. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1686. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1687. esac ;;
  1688. esac
  1689. ac_abs_top_builddir=$ac_pwd
  1690. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1691. # for backward compatibility:
  1692. ac_top_builddir=$ac_top_build_prefix
  1693. case $srcdir in
  1694. .) # We are building in place.
  1695. ac_srcdir=.
  1696. ac_top_srcdir=$ac_top_builddir_sub
  1697. ac_abs_top_srcdir=$ac_pwd ;;
  1698. [\\/]* | ?:[\\/]* ) # Absolute name.
  1699. ac_srcdir=$srcdir$ac_dir_suffix;
  1700. ac_top_srcdir=$srcdir
  1701. ac_abs_top_srcdir=$srcdir ;;
  1702. *) # Relative name.
  1703. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1704. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1705. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1706. esac
  1707. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1708. cd "$ac_dir" || { ac_status=$?; continue; }
  1709. # Check for guested configure.
  1710. if test -f "$ac_srcdir/configure.gnu"; then
  1711. echo &&
  1712. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1713. elif test -f "$ac_srcdir/configure"; then
  1714. echo &&
  1715. $SHELL "$ac_srcdir/configure" --help=recursive
  1716. else
  1717. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1718. fi || ac_status=$?
  1719. cd "$ac_pwd" || { ac_status=$?; break; }
  1720. done
  1721. fi
  1722. test -n "$ac_init_help" && exit $ac_status
  1723. if $ac_init_version; then
  1724. cat <<\_ACEOF
  1725. configure
  1726. generated by GNU Autoconf 2.69
  1727. Copyright (C) 2012 Free Software Foundation, Inc.
  1728. This configure script is free software; the Free Software Foundation
  1729. gives unlimited permission to copy, distribute and modify it.
  1730. _ACEOF
  1731. exit
  1732. fi
  1733. ## ------------------------ ##
  1734. ## Autoconf initialization. ##
  1735. ## ------------------------ ##
  1736. # ac_fn_c_try_compile LINENO
  1737. # --------------------------
  1738. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext
  1743. if { { ac_try="$ac_compile"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_compile") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest.$ac_objext; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_c_try_compile
  1771. # ac_fn_c_try_link LINENO
  1772. # -----------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_c_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. test -x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_link
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_cpp LINENO
  1844. # ----------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } > conftest.i && {
  1865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_cpp
  1877. # ac_fn_c_try_run LINENO
  1878. # ----------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1880. # that executables *can* be run.
  1881. ac_fn_c_try_run ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>&5
  1892. ac_status=$?
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1895. { { case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_try") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; }; }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: program exited with status $ac_status" >&5
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=$ac_status
  1911. fi
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_c_try_run
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below.
  1934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1935. <limits.h> exists even on freestanding compilers. */
  1936. #ifdef __STDC__
  1937. # include <limits.h>
  1938. #else
  1939. # include <assert.h>
  1940. #endif
  1941. #undef $2
  1942. /* Override any GCC internal prototype to avoid an error.
  1943. Use char because int might match the return type of a GCC
  1944. builtin and then its argument prototype would still apply. */
  1945. #ifdef __cplusplus
  1946. extern "C"
  1947. #endif
  1948. char $2 ();
  1949. /* The GNU C library defines this for functions which it implements
  1950. to always fail with ENOSYS. Some functions are actually named
  1951. something starting with __ and the normal name is an alias. */
  1952. #if defined __stub_$2 || defined __stub___$2
  1953. choke me
  1954. #endif
  1955. int
  1956. main ()
  1957. {
  1958. return $2 ();
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_link "$LINENO"; then :
  1964. eval "$3=yes"
  1965. else
  1966. eval "$3=no"
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext \
  1969. conftest$ac_exeext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_check_func
  1976. # ac_fn_cxx_try_compile LINENO
  1977. # ----------------------------
  1978. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_compile ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. rm -f conftest.$ac_objext
  1983. if { { ac_try="$ac_compile"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. $as_echo "$ac_try_echo"; } >&5
  1990. (eval "$ac_compile") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } && {
  1999. test -z "$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. } && test -s conftest.$ac_objext; then :
  2002. ac_retval=0
  2003. else
  2004. $as_echo "$as_me: failed program was:" >&5
  2005. sed 's/^/| /' conftest.$ac_ext >&5
  2006. ac_retval=1
  2007. fi
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_cxx_try_compile
  2011. # ac_fn_cxx_try_cpp LINENO
  2012. # ------------------------
  2013. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2014. ac_fn_cxx_try_cpp ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } > conftest.i && {
  2033. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2034. test ! -s conftest.err
  2035. }; then :
  2036. ac_retval=0
  2037. else
  2038. $as_echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. ac_retval=1
  2041. fi
  2042. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2043. as_fn_set_status $ac_retval
  2044. } # ac_fn_cxx_try_cpp
  2045. # ac_fn_cxx_try_link LINENO
  2046. # -------------------------
  2047. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2048. ac_fn_cxx_try_link ()
  2049. {
  2050. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2051. rm -f conftest.$ac_objext conftest$ac_exeext
  2052. if { { ac_try="$ac_link"
  2053. case "(($ac_try" in
  2054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2055. *) ac_try_echo=$ac_try;;
  2056. esac
  2057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2058. $as_echo "$ac_try_echo"; } >&5
  2059. (eval "$ac_link") 2>conftest.err
  2060. ac_status=$?
  2061. if test -s conftest.err; then
  2062. grep -v '^ *+' conftest.err >conftest.er1
  2063. cat conftest.er1 >&5
  2064. mv -f conftest.er1 conftest.err
  2065. fi
  2066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2067. test $ac_status = 0; } && {
  2068. test -z "$ac_cxx_werror_flag" ||
  2069. test ! -s conftest.err
  2070. } && test -s conftest$ac_exeext && {
  2071. test "$cross_compiling" = yes ||
  2072. test -x conftest$ac_exeext
  2073. }; then :
  2074. ac_retval=0
  2075. else
  2076. $as_echo "$as_me: failed program was:" >&5
  2077. sed 's/^/| /' conftest.$ac_ext >&5
  2078. ac_retval=1
  2079. fi
  2080. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2081. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2082. # interfere with the next link command; also delete a directory that is
  2083. # left behind by Apple's compiler. We do this before executing the actions.
  2084. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2085. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2086. as_fn_set_status $ac_retval
  2087. } # ac_fn_cxx_try_link
  2088. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2089. # -------------------------------------------------------
  2090. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2091. # the include files in INCLUDES and setting the cache variable VAR
  2092. # accordingly.
  2093. ac_fn_c_check_header_mongrel ()
  2094. {
  2095. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2096. if eval \${$3+:} false; then :
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2098. $as_echo_n "checking for $2... " >&6; }
  2099. if eval \${$3+:} false; then :
  2100. $as_echo_n "(cached) " >&6
  2101. fi
  2102. eval ac_res=\$$3
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2104. $as_echo "$ac_res" >&6; }
  2105. else
  2106. # Is the header compilable?
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2108. $as_echo_n "checking $2 usability... " >&6; }
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $4
  2112. #include <$2>
  2113. _ACEOF
  2114. if ac_fn_c_try_compile "$LINENO"; then :
  2115. ac_header_compiler=yes
  2116. else
  2117. ac_header_compiler=no
  2118. fi
  2119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2121. $as_echo "$ac_header_compiler" >&6; }
  2122. # Is the header present?
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2124. $as_echo_n "checking $2 presence... " >&6; }
  2125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2126. /* end confdefs.h. */
  2127. #include <$2>
  2128. _ACEOF
  2129. if ac_fn_c_try_cpp "$LINENO"; then :
  2130. ac_header_preproc=yes
  2131. else
  2132. ac_header_preproc=no
  2133. fi
  2134. rm -f conftest.err conftest.i conftest.$ac_ext
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2136. $as_echo "$ac_header_preproc" >&6; }
  2137. # So? What about this header?
  2138. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2139. yes:no: )
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2141. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2143. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2144. ;;
  2145. no:yes:* )
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2147. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2149. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2151. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2153. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2155. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2156. ;;
  2157. esac
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2159. $as_echo_n "checking for $2... " >&6; }
  2160. if eval \${$3+:} false; then :
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. eval "$3=\$ac_header_compiler"
  2164. fi
  2165. eval ac_res=\$$3
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2167. $as_echo "$ac_res" >&6; }
  2168. fi
  2169. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2170. } # ac_fn_c_check_header_mongrel
  2171. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2172. # -------------------------------------------
  2173. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2174. # variable VAR accordingly.
  2175. ac_fn_c_check_type ()
  2176. {
  2177. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2179. $as_echo_n "checking for $2... " >&6; }
  2180. if eval \${$3+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. eval "$3=no"
  2184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2185. /* end confdefs.h. */
  2186. $4
  2187. int
  2188. main ()
  2189. {
  2190. if (sizeof ($2))
  2191. return 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_c_try_compile "$LINENO"; then :
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $4
  2200. int
  2201. main ()
  2202. {
  2203. if (sizeof (($2)))
  2204. return 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. else
  2211. eval "$3=yes"
  2212. fi
  2213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. eval ac_res=\$$3
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2219. $as_echo "$ac_res" >&6; }
  2220. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2221. } # ac_fn_c_check_type
  2222. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2223. # ----------------------------------------------------
  2224. # Tries to find if the field MEMBER exists in type AGGR, after including
  2225. # INCLUDES, setting cache variable VAR accordingly.
  2226. ac_fn_c_check_member ()
  2227. {
  2228. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2230. $as_echo_n "checking for $2.$3... " >&6; }
  2231. if eval \${$4+:} false; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2235. /* end confdefs.h. */
  2236. $5
  2237. int
  2238. main ()
  2239. {
  2240. static $2 ac_aggr;
  2241. if (ac_aggr.$3)
  2242. return 0;
  2243. ;
  2244. return 0;
  2245. }
  2246. _ACEOF
  2247. if ac_fn_c_try_compile "$LINENO"; then :
  2248. eval "$4=yes"
  2249. else
  2250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2251. /* end confdefs.h. */
  2252. $5
  2253. int
  2254. main ()
  2255. {
  2256. static $2 ac_aggr;
  2257. if (sizeof ac_aggr.$3)
  2258. return 0;
  2259. ;
  2260. return 0;
  2261. }
  2262. _ACEOF
  2263. if ac_fn_c_try_compile "$LINENO"; then :
  2264. eval "$4=yes"
  2265. else
  2266. eval "$4=no"
  2267. fi
  2268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. eval ac_res=\$$4
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2274. $as_echo "$ac_res" >&6; }
  2275. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2276. } # ac_fn_c_check_member
  2277. cat >config.log <<_ACEOF
  2278. This file contains any messages produced by compilers while
  2279. running configure, to aid debugging if configure makes a mistake.
  2280. It was created by $as_me, which was
  2281. generated by GNU Autoconf 2.69. Invocation command line was
  2282. $ $0 $@
  2283. _ACEOF
  2284. exec 5>>config.log
  2285. {
  2286. cat <<_ASUNAME
  2287. ## --------- ##
  2288. ## Platform. ##
  2289. ## --------- ##
  2290. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2291. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2292. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2293. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2294. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2295. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2296. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2297. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2298. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2299. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2300. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2301. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2302. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2303. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2304. _ASUNAME
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH
  2307. do
  2308. IFS=$as_save_IFS
  2309. test -z "$as_dir" && as_dir=.
  2310. $as_echo "PATH: $as_dir"
  2311. done
  2312. IFS=$as_save_IFS
  2313. } >&5
  2314. cat >&5 <<_ACEOF
  2315. ## ----------- ##
  2316. ## Core tests. ##
  2317. ## ----------- ##
  2318. _ACEOF
  2319. # Keep a trace of the command line.
  2320. # Strip out --no-create and --no-recursion so they do not pile up.
  2321. # Strip out --silent because we don't want to record it for future runs.
  2322. # Also quote any args containing shell meta-characters.
  2323. # Make two passes to allow for proper duplicate-argument suppression.
  2324. ac_configure_args=
  2325. ac_configure_args0=
  2326. ac_configure_args1=
  2327. ac_must_keep_next=false
  2328. for ac_pass in 1 2
  2329. do
  2330. for ac_arg
  2331. do
  2332. case $ac_arg in
  2333. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2334. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2335. | -silent | --silent | --silen | --sile | --sil)
  2336. continue ;;
  2337. *\'*)
  2338. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2339. esac
  2340. case $ac_pass in
  2341. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2342. 2)
  2343. as_fn_append ac_configure_args1 " '$ac_arg'"
  2344. if test $ac_must_keep_next = true; then
  2345. ac_must_keep_next=false # Got value, back to normal.
  2346. else
  2347. case $ac_arg in
  2348. *=* | --config-cache | -C | -disable-* | --disable-* \
  2349. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2350. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2351. | -with-* | --with-* | -without-* | --without-* | --x)
  2352. case "$ac_configure_args0 " in
  2353. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2354. esac
  2355. ;;
  2356. -* ) ac_must_keep_next=true ;;
  2357. esac
  2358. fi
  2359. as_fn_append ac_configure_args " '$ac_arg'"
  2360. ;;
  2361. esac
  2362. done
  2363. done
  2364. { ac_configure_args0=; unset ac_configure_args0;}
  2365. { ac_configure_args1=; unset ac_configure_args1;}
  2366. # When interrupted or exit'd, cleanup temporary files, and complete
  2367. # config.log. We remove comments because anyway the quotes in there
  2368. # would cause problems or look ugly.
  2369. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2370. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2371. trap 'exit_status=$?
  2372. # Save into config.log some information that might help in debugging.
  2373. {
  2374. echo
  2375. $as_echo "## ---------------- ##
  2376. ## Cache variables. ##
  2377. ## ---------------- ##"
  2378. echo
  2379. # The following way of writing the cache mishandles newlines in values,
  2380. (
  2381. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2382. eval ac_val=\$$ac_var
  2383. case $ac_val in #(
  2384. *${as_nl}*)
  2385. case $ac_var in #(
  2386. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2387. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2388. esac
  2389. case $ac_var in #(
  2390. _ | IFS | as_nl) ;; #(
  2391. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2392. *) { eval $ac_var=; unset $ac_var;} ;;
  2393. esac ;;
  2394. esac
  2395. done
  2396. (set) 2>&1 |
  2397. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2398. *${as_nl}ac_space=\ *)
  2399. sed -n \
  2400. "s/'\''/'\''\\\\'\'''\''/g;
  2401. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2402. ;; #(
  2403. *)
  2404. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2405. ;;
  2406. esac |
  2407. sort
  2408. )
  2409. echo
  2410. $as_echo "## ----------------- ##
  2411. ## Output variables. ##
  2412. ## ----------------- ##"
  2413. echo
  2414. for ac_var in $ac_subst_vars
  2415. do
  2416. eval ac_val=\$$ac_var
  2417. case $ac_val in
  2418. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2419. esac
  2420. $as_echo "$ac_var='\''$ac_val'\''"
  2421. done | sort
  2422. echo
  2423. if test -n "$ac_subst_files"; then
  2424. $as_echo "## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##"
  2427. echo
  2428. for ac_var in $ac_subst_files
  2429. do
  2430. eval ac_val=\$$ac_var
  2431. case $ac_val in
  2432. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2433. esac
  2434. $as_echo "$ac_var='\''$ac_val'\''"
  2435. done | sort
  2436. echo
  2437. fi
  2438. if test -s confdefs.h; then
  2439. $as_echo "## ----------- ##
  2440. ## confdefs.h. ##
  2441. ## ----------- ##"
  2442. echo
  2443. cat confdefs.h
  2444. echo
  2445. fi
  2446. test "$ac_signal" != 0 &&
  2447. $as_echo "$as_me: caught signal $ac_signal"
  2448. $as_echo "$as_me: exit $exit_status"
  2449. } >&5
  2450. rm -f core *.core core.conftest.* &&
  2451. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2452. exit $exit_status
  2453. ' 0
  2454. for ac_signal in 1 2 13 15; do
  2455. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2456. done
  2457. ac_signal=0
  2458. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2459. rm -f -r conftest* confdefs.h
  2460. $as_echo "/* confdefs.h */" > confdefs.h
  2461. # Predefined preprocessor variables.
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_NAME "$PACKAGE_NAME"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_STRING "$PACKAGE_STRING"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_URL "$PACKAGE_URL"
  2479. _ACEOF
  2480. # Let the site file select an alternate cache file if it wants to.
  2481. # Prefer an explicitly selected file to automatically selected ones.
  2482. ac_site_file1=NONE
  2483. ac_site_file2=NONE
  2484. if test -n "$CONFIG_SITE"; then
  2485. # We do not want a PATH search for config.site.
  2486. case $CONFIG_SITE in #((
  2487. -*) ac_site_file1=./$CONFIG_SITE;;
  2488. */*) ac_site_file1=$CONFIG_SITE;;
  2489. *) ac_site_file1=./$CONFIG_SITE;;
  2490. esac
  2491. elif test "x$prefix" != xNONE; then
  2492. ac_site_file1=$prefix/share/config.site
  2493. ac_site_file2=$prefix/etc/config.site
  2494. else
  2495. ac_site_file1=$ac_default_prefix/share/config.site
  2496. ac_site_file2=$ac_default_prefix/etc/config.site
  2497. fi
  2498. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2499. do
  2500. test "x$ac_site_file" = xNONE && continue
  2501. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2503. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2504. sed 's/^/| /' "$ac_site_file" >&5
  2505. . "$ac_site_file" \
  2506. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2507. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2508. as_fn_error $? "failed to load site script $ac_site_file
  2509. See \`config.log' for more details" "$LINENO" 5; }
  2510. fi
  2511. done
  2512. if test -r "$cache_file"; then
  2513. # Some versions of bash will fail to source /dev/null (special files
  2514. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2515. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2517. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2518. case $cache_file in
  2519. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2520. *) . "./$cache_file";;
  2521. esac
  2522. fi
  2523. else
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2525. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2526. >$cache_file
  2527. fi
  2528. # Check that the precious variables saved in the cache have kept the same
  2529. # value.
  2530. ac_cache_corrupted=false
  2531. for ac_var in $ac_precious_vars; do
  2532. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2533. eval ac_new_set=\$ac_env_${ac_var}_set
  2534. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2535. eval ac_new_val=\$ac_env_${ac_var}_value
  2536. case $ac_old_set,$ac_new_set in
  2537. set,)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,set)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,);;
  2546. *)
  2547. if test "x$ac_old_val" != "x$ac_new_val"; then
  2548. # differences in whitespace do not lead to failure.
  2549. ac_old_val_w=`echo x $ac_old_val`
  2550. ac_new_val_w=`echo x $ac_new_val`
  2551. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2554. ac_cache_corrupted=:
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2557. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2558. eval $ac_var=\$ac_old_val
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2561. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2563. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2564. fi;;
  2565. esac
  2566. # Pass precious variables to config.status.
  2567. if test "$ac_new_set" = set; then
  2568. case $ac_new_val in
  2569. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2570. *) ac_arg=$ac_var=$ac_new_val ;;
  2571. esac
  2572. case " $ac_configure_args " in
  2573. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2574. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2575. esac
  2576. fi
  2577. done
  2578. if $ac_cache_corrupted; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2582. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2583. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2584. fi
  2585. ## -------------------- ##
  2586. ## Main body of script. ##
  2587. ## -------------------- ##
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2594. ac_aux_dir=
  2595. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2596. if test -f "$ac_dir/install-sh"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/install-sh -c"
  2599. break
  2600. elif test -f "$ac_dir/install.sh"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/install.sh -c"
  2603. break
  2604. elif test -f "$ac_dir/shtool"; then
  2605. ac_aux_dir=$ac_dir
  2606. ac_install_sh="$ac_aux_dir/shtool install -c"
  2607. break
  2608. fi
  2609. done
  2610. if test -z "$ac_aux_dir"; then
  2611. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2612. fi
  2613. # These three variables are undocumented and unsupported,
  2614. # and are intended to be withdrawn in a future Autoconf release.
  2615. # They can cause serious problems if a builder's source tree is in a directory
  2616. # whose full name contains unusual characters.
  2617. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2618. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2619. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2620. orig_CFLAGS="$CFLAGS"
  2621. #
  2622. # Making releases:
  2623. # Edit include/SDL_version.h and change the version, then:
  2624. # SDL_MICRO_VERSION += 1;
  2625. # SDL_INTERFACE_AGE += 1;
  2626. # SDL_BINARY_AGE += 1;
  2627. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2628. # if backwards compatibility has been broken,
  2629. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2630. #
  2631. SDL_MAJOR_VERSION=2
  2632. SDL_MINOR_VERSION=0
  2633. SDL_MICRO_VERSION=21
  2634. SDL_INTERFACE_AGE=3
  2635. SDL_BINARY_AGE=21
  2636. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2637. # libtool versioning
  2638. case `pwd` in
  2639. *\ * | *\ *)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2641. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2642. esac
  2643. macro_version='2.4.6'
  2644. macro_revision='2.4.6'
  2645. ltmain=$ac_aux_dir/ltmain.sh
  2646. # Make sure we can run config.sub.
  2647. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2648. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2650. $as_echo_n "checking build system type... " >&6; }
  2651. if ${ac_cv_build+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. ac_build_alias=$build_alias
  2655. test "x$ac_build_alias" = x &&
  2656. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2657. test "x$ac_build_alias" = x &&
  2658. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2659. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2660. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2663. $as_echo "$ac_cv_build" >&6; }
  2664. case $ac_cv_build in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2667. esac
  2668. build=$ac_cv_build
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_build
  2671. shift
  2672. build_cpu=$1
  2673. build_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. build_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2681. $as_echo_n "checking host system type... " >&6; }
  2682. if ${ac_cv_host+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test "x$host_alias" = x; then
  2686. ac_cv_host=$ac_cv_build
  2687. else
  2688. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2693. $as_echo "$ac_cv_host" >&6; }
  2694. case $ac_cv_host in
  2695. *-*-*) ;;
  2696. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2697. esac
  2698. host=$ac_cv_host
  2699. ac_save_IFS=$IFS; IFS='-'
  2700. set x $ac_cv_host
  2701. shift
  2702. host_cpu=$1
  2703. host_vendor=$2
  2704. shift; shift
  2705. # Remember, the first character of IFS is used to create $*,
  2706. # except with old shells:
  2707. host_os=$*
  2708. IFS=$ac_save_IFS
  2709. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2710. # Backslashify metacharacters that are still active within
  2711. # double-quoted strings.
  2712. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2713. # Same as above, but do not quote variable references.
  2714. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2715. # Sed substitution to delay expansion of an escaped shell variable in a
  2716. # double_quote_subst'ed string.
  2717. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2718. # Sed substitution to delay expansion of an escaped single quote.
  2719. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2720. # Sed substitution to avoid accidental globbing in evaled expressions
  2721. no_glob_subst='s/\*/\\\*/g'
  2722. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2723. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2726. $as_echo_n "checking how to print strings... " >&6; }
  2727. # Test print first, because it will be a builtin if present.
  2728. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2729. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2730. ECHO='print -r --'
  2731. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='printf %s\n'
  2733. else
  2734. # Use this function as a fallback that always works.
  2735. func_fallback_echo ()
  2736. {
  2737. eval 'cat <<_LTECHO_EOF
  2738. $1
  2739. _LTECHO_EOF'
  2740. }
  2741. ECHO='func_fallback_echo'
  2742. fi
  2743. # func_echo_all arg...
  2744. # Invoke $ECHO with all args, space-separated.
  2745. func_echo_all ()
  2746. {
  2747. $ECHO ""
  2748. }
  2749. case $ECHO in
  2750. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2751. $as_echo "printf" >&6; } ;;
  2752. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2753. $as_echo "print -r" >&6; } ;;
  2754. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2755. $as_echo "cat" >&6; } ;;
  2756. esac
  2757. ac_ext=c
  2758. ac_cpp='$CPP $CPPFLAGS'
  2759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2762. if test -n "$ac_tool_prefix"; then
  2763. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2764. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_CC+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$CC"; then
  2771. ac_cv_prog_CC="$CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$ac_cv_prog_CC"; then
  2799. ac_ct_CC=$CC
  2800. # Extract the first word of "gcc", so it can be a program name with args.
  2801. set dummy gcc; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$ac_ct_CC"; then
  2808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_ac_ct_CC="gcc"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2827. if test -n "$ac_ct_CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2829. $as_echo "$ac_ct_CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. if test "x$ac_ct_CC" = x; then
  2835. CC=""
  2836. else
  2837. case $cross_compiling:$ac_tool_warned in
  2838. yes:)
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2841. ac_tool_warned=yes ;;
  2842. esac
  2843. CC=$ac_ct_CC
  2844. fi
  2845. else
  2846. CC="$ac_cv_prog_CC"
  2847. fi
  2848. if test -z "$CC"; then
  2849. if test -n "$ac_tool_prefix"; then
  2850. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2851. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if ${ac_cv_prog_CC+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. fi
  2875. fi
  2876. CC=$ac_cv_prog_CC
  2877. if test -n "$CC"; then
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2879. $as_echo "$CC" >&6; }
  2880. else
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. fi
  2884. fi
  2885. fi
  2886. if test -z "$CC"; then
  2887. # Extract the first word of "cc", so it can be a program name with args.
  2888. set dummy cc; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if ${ac_cv_prog_CC+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$CC"; then
  2895. ac_cv_prog_CC="$CC" # Let the user override the test.
  2896. else
  2897. ac_prog_rejected=no
  2898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2899. for as_dir in $PATH
  2900. do
  2901. IFS=$as_save_IFS
  2902. test -z "$as_dir" && as_dir=.
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2905. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2906. ac_prog_rejected=yes
  2907. continue
  2908. fi
  2909. ac_cv_prog_CC="cc"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. if test $ac_prog_rejected = yes; then
  2917. # We found a bogon in the path, so make sure we never use it.
  2918. set dummy $ac_cv_prog_CC
  2919. shift
  2920. if test $# != 0; then
  2921. # We chose a different compiler from the bogus one.
  2922. # However, it has the same basename, so the bogon will be chosen
  2923. # first if we set CC to just the basename; use the full file name.
  2924. shift
  2925. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2926. fi
  2927. fi
  2928. fi
  2929. fi
  2930. CC=$ac_cv_prog_CC
  2931. if test -n "$CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2933. $as_echo "$CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. fi
  2939. if test -z "$CC"; then
  2940. if test -n "$ac_tool_prefix"; then
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$CC"; then
  2951. ac_cv_prog_CC="$CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. CC=$ac_cv_prog_CC
  2970. if test -n "$CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2972. $as_echo "$CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$CC" && break
  2978. done
  2979. fi
  2980. if test -z "$CC"; then
  2981. ac_ct_CC=$CC
  2982. for ac_prog in cl.exe
  2983. do
  2984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2985. set dummy $ac_prog; ac_word=$2
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2987. $as_echo_n "checking for $ac_word... " >&6; }
  2988. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. if test -n "$ac_ct_CC"; then
  2992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2993. else
  2994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2995. for as_dir in $PATH
  2996. do
  2997. IFS=$as_save_IFS
  2998. test -z "$as_dir" && as_dir=.
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3001. ac_cv_prog_ac_ct_CC="$ac_prog"
  3002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3003. break 2
  3004. fi
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. fi
  3010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3011. if test -n "$ac_ct_CC"; then
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3013. $as_echo "$ac_ct_CC" >&6; }
  3014. else
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017. fi
  3018. test -n "$ac_ct_CC" && break
  3019. done
  3020. if test "x$ac_ct_CC" = x; then
  3021. CC=""
  3022. else
  3023. case $cross_compiling:$ac_tool_warned in
  3024. yes:)
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3027. ac_tool_warned=yes ;;
  3028. esac
  3029. CC=$ac_ct_CC
  3030. fi
  3031. fi
  3032. fi
  3033. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "no acceptable C compiler found in \$PATH
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. # Provide some information about the compiler.
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3039. set X $ac_compile
  3040. ac_compiler=$2
  3041. for ac_option in --version -v -V -qversion; do
  3042. { { ac_try="$ac_compiler $ac_option >&5"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3050. ac_status=$?
  3051. if test -s conftest.err; then
  3052. sed '10a\
  3053. ... rest of stderr output deleted ...
  3054. 10q' conftest.err >conftest.er1
  3055. cat conftest.er1 >&5
  3056. fi
  3057. rm -f conftest.er1 conftest.err
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }
  3060. done
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files_save=$ac_clean_files
  3071. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3072. # Try to create an executable without -o first, disregard a.out.
  3073. # It will help us diagnose broken compilers, and finding out an intuition
  3074. # of exeext.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3076. $as_echo_n "checking whether the C compiler works... " >&6; }
  3077. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3078. # The possible output files:
  3079. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3080. ac_rmfiles=
  3081. for ac_file in $ac_files
  3082. do
  3083. case $ac_file in
  3084. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3085. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3086. esac
  3087. done
  3088. rm -f $ac_rmfiles
  3089. if { { ac_try="$ac_link_default"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_link_default") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3101. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3102. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3103. # so that the user can short-circuit this test for compilers unknown to
  3104. # Autoconf.
  3105. for ac_file in $ac_files ''
  3106. do
  3107. test -f "$ac_file" || continue
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3110. ;;
  3111. [ab].out )
  3112. # We found the default executable, but exeext='' is most
  3113. # certainly right.
  3114. break;;
  3115. *.* )
  3116. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3117. then :; else
  3118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3119. fi
  3120. # We set ac_cv_exeext here because the later test for it is not
  3121. # safe: cross compilers may not add the suffix if given an `-o'
  3122. # argument, so we may need to know it at that point already.
  3123. # Even if this section looks crufty: it has the advantage of
  3124. # actually working.
  3125. break;;
  3126. * )
  3127. break;;
  3128. esac
  3129. done
  3130. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3131. else
  3132. ac_file=''
  3133. fi
  3134. if test -z "$ac_file"; then :
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3136. $as_echo "no" >&6; }
  3137. $as_echo "$as_me: failed program was:" >&5
  3138. sed 's/^/| /' conftest.$ac_ext >&5
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error 77 "C compiler cannot create executables
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. else
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3145. $as_echo "yes" >&6; }
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3148. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3150. $as_echo "$ac_file" >&6; }
  3151. ac_exeext=$ac_cv_exeext
  3152. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3153. ac_clean_files=$ac_clean_files_save
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3155. $as_echo_n "checking for suffix of executables... " >&6; }
  3156. if { { ac_try="$ac_link"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_link") 2>&5
  3164. ac_status=$?
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3166. test $ac_status = 0; }; then :
  3167. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3168. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3169. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3170. # `rm'.
  3171. for ac_file in conftest.exe conftest conftest.*; do
  3172. test -f "$ac_file" || continue
  3173. case $ac_file in
  3174. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3175. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3176. break;;
  3177. * ) break;;
  3178. esac
  3179. done
  3180. else
  3181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3183. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3184. See \`config.log' for more details" "$LINENO" 5; }
  3185. fi
  3186. rm -f conftest conftest$ac_cv_exeext
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3188. $as_echo "$ac_cv_exeext" >&6; }
  3189. rm -f conftest.$ac_ext
  3190. EXEEXT=$ac_cv_exeext
  3191. ac_exeext=$EXEEXT
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdio.h>
  3195. int
  3196. main ()
  3197. {
  3198. FILE *f = fopen ("conftest.out", "w");
  3199. return ferror (f) || fclose (f) != 0;
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. ac_clean_files="$ac_clean_files conftest.out"
  3205. # Check that the compiler produces executables we can run. If not, either
  3206. # the compiler is broken, or we cross compile.
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3208. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3209. if test "$cross_compiling" != yes; then
  3210. { { ac_try="$ac_link"
  3211. case "(($ac_try" in
  3212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3213. *) ac_try_echo=$ac_try;;
  3214. esac
  3215. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3216. $as_echo "$ac_try_echo"; } >&5
  3217. (eval "$ac_link") 2>&5
  3218. ac_status=$?
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3220. test $ac_status = 0; }
  3221. if { ac_try='./conftest$ac_cv_exeext'
  3222. { { case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo"; } >&5
  3228. (eval "$ac_try") 2>&5
  3229. ac_status=$?
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3231. test $ac_status = 0; }; }; then
  3232. cross_compiling=no
  3233. else
  3234. if test "$cross_compiling" = maybe; then
  3235. cross_compiling=yes
  3236. else
  3237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3239. as_fn_error $? "cannot run C compiled programs.
  3240. If you meant to cross compile, use \`--host'.
  3241. See \`config.log' for more details" "$LINENO" 5; }
  3242. fi
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3246. $as_echo "$cross_compiling" >&6; }
  3247. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3248. ac_clean_files=$ac_clean_files_save
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3250. $as_echo_n "checking for suffix of object files... " >&6; }
  3251. if ${ac_cv_objext+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. int
  3257. main ()
  3258. {
  3259. ;
  3260. return 0;
  3261. }
  3262. _ACEOF
  3263. rm -f conftest.o conftest.obj
  3264. if { { ac_try="$ac_compile"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_compile") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; then :
  3275. for ac_file in conftest.o conftest.obj conftest.*; do
  3276. test -f "$ac_file" || continue;
  3277. case $ac_file in
  3278. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3279. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3280. break;;
  3281. esac
  3282. done
  3283. else
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3289. See \`config.log' for more details" "$LINENO" 5; }
  3290. fi
  3291. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3294. $as_echo "$ac_cv_objext" >&6; }
  3295. OBJEXT=$ac_cv_objext
  3296. ac_objext=$OBJEXT
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3298. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3299. if ${ac_cv_c_compiler_gnu+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. #ifndef __GNUC__
  3308. choke me
  3309. #endif
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_compiler_gnu=yes
  3316. else
  3317. ac_compiler_gnu=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3323. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3324. if test $ac_compiler_gnu = yes; then
  3325. GCC=yes
  3326. else
  3327. GCC=
  3328. fi
  3329. ac_test_CFLAGS=${CFLAGS+set}
  3330. ac_save_CFLAGS=$CFLAGS
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3332. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3333. if ${ac_cv_prog_cc_g+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_save_c_werror_flag=$ac_c_werror_flag
  3337. ac_c_werror_flag=yes
  3338. ac_cv_prog_cc_g=no
  3339. CFLAGS="-g"
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. ac_cv_prog_cc_g=yes
  3351. else
  3352. CFLAGS=""
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. if ac_fn_c_try_compile "$LINENO"; then :
  3363. else
  3364. ac_c_werror_flag=$ac_save_c_werror_flag
  3365. CFLAGS="-g"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. int
  3369. main ()
  3370. {
  3371. ;
  3372. return 0;
  3373. }
  3374. _ACEOF
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_g=yes
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. ac_c_werror_flag=$ac_save_c_werror_flag
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3386. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3387. if test "$ac_test_CFLAGS" = set; then
  3388. CFLAGS=$ac_save_CFLAGS
  3389. elif test $ac_cv_prog_cc_g = yes; then
  3390. if test "$GCC" = yes; then
  3391. CFLAGS="-g -O2"
  3392. else
  3393. CFLAGS="-g"
  3394. fi
  3395. else
  3396. if test "$GCC" = yes; then
  3397. CFLAGS="-O2"
  3398. else
  3399. CFLAGS=
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3403. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3404. if ${ac_cv_prog_cc_c89+:} false; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. ac_cv_prog_cc_c89=no
  3408. ac_save_CC=$CC
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. #include <stdarg.h>
  3412. #include <stdio.h>
  3413. struct stat;
  3414. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3415. struct buf { int x; };
  3416. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3417. static char *e (p, i)
  3418. char **p;
  3419. int i;
  3420. {
  3421. return p[i];
  3422. }
  3423. static char *f (char * (*g) (char **, int), char **p, ...)
  3424. {
  3425. char *s;
  3426. va_list v;
  3427. va_start (v,p);
  3428. s = g (p, va_arg (v,int));
  3429. va_end (v);
  3430. return s;
  3431. }
  3432. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3433. function prototypes and stuff, but not '\xHH' hex character constants.
  3434. These don't provoke an error unfortunately, instead are silently treated
  3435. as 'x'. The following induces an error, until -std is added to get
  3436. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3437. array size at least. It's necessary to write '\x00'==0 to get something
  3438. that's true only with -std. */
  3439. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3440. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3441. inside strings and character constants. */
  3442. #define FOO(x) 'x'
  3443. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3444. int test (int i, double x);
  3445. struct s1 {int (*f) (int a);};
  3446. struct s2 {int (*f) (double a);};
  3447. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3448. int argc;
  3449. char **argv;
  3450. int
  3451. main ()
  3452. {
  3453. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3459. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3460. do
  3461. CC="$ac_save_CC $ac_arg"
  3462. if ac_fn_c_try_compile "$LINENO"; then :
  3463. ac_cv_prog_cc_c89=$ac_arg
  3464. fi
  3465. rm -f core conftest.err conftest.$ac_objext
  3466. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3467. done
  3468. rm -f conftest.$ac_ext
  3469. CC=$ac_save_CC
  3470. fi
  3471. # AC_CACHE_VAL
  3472. case "x$ac_cv_prog_cc_c89" in
  3473. x)
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3475. $as_echo "none needed" >&6; } ;;
  3476. xno)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3478. $as_echo "unsupported" >&6; } ;;
  3479. *)
  3480. CC="$CC $ac_cv_prog_cc_c89"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3482. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3483. esac
  3484. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3485. fi
  3486. ac_ext=c
  3487. ac_cpp='$CPP $CPPFLAGS'
  3488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3492. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3493. if ${ac_cv_path_SED+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3497. for ac_i in 1 2 3 4 5 6 7; do
  3498. ac_script="$ac_script$as_nl$ac_script"
  3499. done
  3500. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3501. { ac_script=; unset ac_script;}
  3502. if test -z "$SED"; then
  3503. ac_path_SED_found=false
  3504. # Loop through the user's path and test for each of PROGNAME-LIST
  3505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3506. for as_dir in $PATH
  3507. do
  3508. IFS=$as_save_IFS
  3509. test -z "$as_dir" && as_dir=.
  3510. for ac_prog in sed gsed; do
  3511. for ac_exec_ext in '' $ac_executable_extensions; do
  3512. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3513. as_fn_executable_p "$ac_path_SED" || continue
  3514. # Check for GNU ac_path_SED and select it if it is found.
  3515. # Check for GNU $ac_path_SED
  3516. case `"$ac_path_SED" --version 2>&1` in
  3517. *GNU*)
  3518. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3519. *)
  3520. ac_count=0
  3521. $as_echo_n 0123456789 >"conftest.in"
  3522. while :
  3523. do
  3524. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3525. mv "conftest.tmp" "conftest.in"
  3526. cp "conftest.in" "conftest.nl"
  3527. $as_echo '' >> "conftest.nl"
  3528. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3529. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3530. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3531. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3532. # Best one so far, save it but keep looking for a better one
  3533. ac_cv_path_SED="$ac_path_SED"
  3534. ac_path_SED_max=$ac_count
  3535. fi
  3536. # 10*(2^10) chars as input seems more than enough
  3537. test $ac_count -gt 10 && break
  3538. done
  3539. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3540. esac
  3541. $ac_path_SED_found && break 3
  3542. done
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test -z "$ac_cv_path_SED"; then
  3547. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3548. fi
  3549. else
  3550. ac_cv_path_SED=$SED
  3551. fi
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3554. $as_echo "$ac_cv_path_SED" >&6; }
  3555. SED="$ac_cv_path_SED"
  3556. rm -f conftest.sed
  3557. test -z "$SED" && SED=sed
  3558. Xsed="$SED -e 1s/^X//"
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3560. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3561. if ${ac_cv_path_GREP+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -z "$GREP"; then
  3565. ac_path_GREP_found=false
  3566. # Loop through the user's path and test for each of PROGNAME-LIST
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_prog in grep ggrep; do
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3575. as_fn_executable_p "$ac_path_GREP" || continue
  3576. # Check for GNU ac_path_GREP and select it if it is found.
  3577. # Check for GNU $ac_path_GREP
  3578. case `"$ac_path_GREP" --version 2>&1` in
  3579. *GNU*)
  3580. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3581. *)
  3582. ac_count=0
  3583. $as_echo_n 0123456789 >"conftest.in"
  3584. while :
  3585. do
  3586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3587. mv "conftest.tmp" "conftest.in"
  3588. cp "conftest.in" "conftest.nl"
  3589. $as_echo 'GREP' >> "conftest.nl"
  3590. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3592. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3593. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3594. # Best one so far, save it but keep looking for a better one
  3595. ac_cv_path_GREP="$ac_path_GREP"
  3596. ac_path_GREP_max=$ac_count
  3597. fi
  3598. # 10*(2^10) chars as input seems more than enough
  3599. test $ac_count -gt 10 && break
  3600. done
  3601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3602. esac
  3603. $ac_path_GREP_found && break 3
  3604. done
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. if test -z "$ac_cv_path_GREP"; then
  3609. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3610. fi
  3611. else
  3612. ac_cv_path_GREP=$GREP
  3613. fi
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3616. $as_echo "$ac_cv_path_GREP" >&6; }
  3617. GREP="$ac_cv_path_GREP"
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3619. $as_echo_n "checking for egrep... " >&6; }
  3620. if ${ac_cv_path_EGREP+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3624. then ac_cv_path_EGREP="$GREP -E"
  3625. else
  3626. if test -z "$EGREP"; then
  3627. ac_path_EGREP_found=false
  3628. # Loop through the user's path and test for each of PROGNAME-LIST
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_prog in egrep; do
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3637. as_fn_executable_p "$ac_path_EGREP" || continue
  3638. # Check for GNU ac_path_EGREP and select it if it is found.
  3639. # Check for GNU $ac_path_EGREP
  3640. case `"$ac_path_EGREP" --version 2>&1` in
  3641. *GNU*)
  3642. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3643. *)
  3644. ac_count=0
  3645. $as_echo_n 0123456789 >"conftest.in"
  3646. while :
  3647. do
  3648. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3649. mv "conftest.tmp" "conftest.in"
  3650. cp "conftest.in" "conftest.nl"
  3651. $as_echo 'EGREP' >> "conftest.nl"
  3652. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3653. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3654. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3655. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3656. # Best one so far, save it but keep looking for a better one
  3657. ac_cv_path_EGREP="$ac_path_EGREP"
  3658. ac_path_EGREP_max=$ac_count
  3659. fi
  3660. # 10*(2^10) chars as input seems more than enough
  3661. test $ac_count -gt 10 && break
  3662. done
  3663. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3664. esac
  3665. $ac_path_EGREP_found && break 3
  3666. done
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. if test -z "$ac_cv_path_EGREP"; then
  3671. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3672. fi
  3673. else
  3674. ac_cv_path_EGREP=$EGREP
  3675. fi
  3676. fi
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3679. $as_echo "$ac_cv_path_EGREP" >&6; }
  3680. EGREP="$ac_cv_path_EGREP"
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3682. $as_echo_n "checking for fgrep... " >&6; }
  3683. if ${ac_cv_path_FGREP+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3687. then ac_cv_path_FGREP="$GREP -F"
  3688. else
  3689. if test -z "$FGREP"; then
  3690. ac_path_FGREP_found=false
  3691. # Loop through the user's path and test for each of PROGNAME-LIST
  3692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3693. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3694. do
  3695. IFS=$as_save_IFS
  3696. test -z "$as_dir" && as_dir=.
  3697. for ac_prog in fgrep; do
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3700. as_fn_executable_p "$ac_path_FGREP" || continue
  3701. # Check for GNU ac_path_FGREP and select it if it is found.
  3702. # Check for GNU $ac_path_FGREP
  3703. case `"$ac_path_FGREP" --version 2>&1` in
  3704. *GNU*)
  3705. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3706. *)
  3707. ac_count=0
  3708. $as_echo_n 0123456789 >"conftest.in"
  3709. while :
  3710. do
  3711. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3712. mv "conftest.tmp" "conftest.in"
  3713. cp "conftest.in" "conftest.nl"
  3714. $as_echo 'FGREP' >> "conftest.nl"
  3715. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3716. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3717. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3718. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3719. # Best one so far, save it but keep looking for a better one
  3720. ac_cv_path_FGREP="$ac_path_FGREP"
  3721. ac_path_FGREP_max=$ac_count
  3722. fi
  3723. # 10*(2^10) chars as input seems more than enough
  3724. test $ac_count -gt 10 && break
  3725. done
  3726. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3727. esac
  3728. $ac_path_FGREP_found && break 3
  3729. done
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. if test -z "$ac_cv_path_FGREP"; then
  3734. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3735. fi
  3736. else
  3737. ac_cv_path_FGREP=$FGREP
  3738. fi
  3739. fi
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3742. $as_echo "$ac_cv_path_FGREP" >&6; }
  3743. FGREP="$ac_cv_path_FGREP"
  3744. test -z "$GREP" && GREP=grep
  3745. # Check whether --with-gnu-ld was given.
  3746. if test "${with_gnu_ld+set}" = set; then :
  3747. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3748. else
  3749. with_gnu_ld=no
  3750. fi
  3751. ac_prog=ld
  3752. if test yes = "$GCC"; then
  3753. # Check if gcc -print-prog-name=ld gives a path.
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3755. $as_echo_n "checking for ld used by $CC... " >&6; }
  3756. case $host in
  3757. *-*-mingw*)
  3758. # gcc leaves a trailing carriage return, which upsets mingw
  3759. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3760. *)
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3762. esac
  3763. case $ac_prog in
  3764. # Accept absolute paths.
  3765. [\\/]* | ?:[\\/]*)
  3766. re_direlt='/[^/][^/]*/\.\./'
  3767. # Canonicalize the pathname of ld
  3768. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3769. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3770. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3771. done
  3772. test -z "$LD" && LD=$ac_prog
  3773. ;;
  3774. "")
  3775. # If it fails, then pretend we aren't using GCC.
  3776. ac_prog=ld
  3777. ;;
  3778. *)
  3779. # If it is relative, then search for the first ld in PATH.
  3780. with_gnu_ld=unknown
  3781. ;;
  3782. esac
  3783. elif test yes = "$with_gnu_ld"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3785. $as_echo_n "checking for GNU ld... " >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3788. $as_echo_n "checking for non-GNU ld... " >&6; }
  3789. fi
  3790. if ${lt_cv_path_LD+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$LD"; then
  3794. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3795. for ac_dir in $PATH; do
  3796. IFS=$lt_save_ifs
  3797. test -z "$ac_dir" && ac_dir=.
  3798. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3799. lt_cv_path_LD=$ac_dir/$ac_prog
  3800. # Check to see if the program is GNU ld. I'd rather use --version,
  3801. # but apparently some variants of GNU ld only accept -v.
  3802. # Break only if it was the GNU/non-GNU ld that we prefer.
  3803. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. test no != "$with_gnu_ld" && break
  3806. ;;
  3807. *)
  3808. test yes != "$with_gnu_ld" && break
  3809. ;;
  3810. esac
  3811. fi
  3812. done
  3813. IFS=$lt_save_ifs
  3814. else
  3815. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3816. fi
  3817. fi
  3818. LD=$lt_cv_path_LD
  3819. if test -n "$LD"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3821. $as_echo "$LD" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3828. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3829. if ${lt_cv_prog_gnu_ld+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3833. case `$LD -v 2>&1 </dev/null` in
  3834. *GNU* | *'with BFD'*)
  3835. lt_cv_prog_gnu_ld=yes
  3836. ;;
  3837. *)
  3838. lt_cv_prog_gnu_ld=no
  3839. ;;
  3840. esac
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3843. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3844. with_gnu_ld=$lt_cv_prog_gnu_ld
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3846. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3847. if ${lt_cv_path_NM+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -n "$NM"; then
  3851. # Let the user override the test.
  3852. lt_cv_path_NM=$NM
  3853. else
  3854. lt_nm_to_check=${ac_tool_prefix}nm
  3855. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3856. lt_nm_to_check="$lt_nm_to_check nm"
  3857. fi
  3858. for lt_tmp_nm in $lt_nm_to_check; do
  3859. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3860. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3861. IFS=$lt_save_ifs
  3862. test -z "$ac_dir" && ac_dir=.
  3863. tmp_nm=$ac_dir/$lt_tmp_nm
  3864. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3865. # Check to see if the nm accepts a BSD-compat flag.
  3866. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3867. # nm: unknown option "B" ignored
  3868. # Tru64's nm complains that /dev/null is an invalid object file
  3869. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3870. case $build_os in
  3871. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3872. *) lt_bad_file=/dev/null ;;
  3873. esac
  3874. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3875. *$lt_bad_file* | *'Invalid file or object type'*)
  3876. lt_cv_path_NM="$tmp_nm -B"
  3877. break 2
  3878. ;;
  3879. *)
  3880. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3881. */dev/null*)
  3882. lt_cv_path_NM="$tmp_nm -p"
  3883. break 2
  3884. ;;
  3885. *)
  3886. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3887. continue # so that we can try to find one that supports BSD flags
  3888. ;;
  3889. esac
  3890. ;;
  3891. esac
  3892. fi
  3893. done
  3894. IFS=$lt_save_ifs
  3895. done
  3896. : ${lt_cv_path_NM=no}
  3897. fi
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3900. $as_echo "$lt_cv_path_NM" >&6; }
  3901. if test no != "$lt_cv_path_NM"; then
  3902. NM=$lt_cv_path_NM
  3903. else
  3904. # Didn't find any BSD compatible name lister, look for dumpbin.
  3905. if test -n "$DUMPBIN"; then :
  3906. # Let the user override the test.
  3907. else
  3908. if test -n "$ac_tool_prefix"; then
  3909. for ac_prog in dumpbin "link -dump"
  3910. do
  3911. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3912. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$DUMPBIN"; then
  3919. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3928. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. DUMPBIN=$ac_cv_prog_DUMPBIN
  3938. if test -n "$DUMPBIN"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3940. $as_echo "$DUMPBIN" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. test -n "$DUMPBIN" && break
  3946. done
  3947. fi
  3948. if test -z "$DUMPBIN"; then
  3949. ac_ct_DUMPBIN=$DUMPBIN
  3950. for ac_prog in dumpbin "link -dump"
  3951. do
  3952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3953. set dummy $ac_prog; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$ac_ct_DUMPBIN"; then
  3960. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3979. if test -n "$ac_ct_DUMPBIN"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3981. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3984. $as_echo "no" >&6; }
  3985. fi
  3986. test -n "$ac_ct_DUMPBIN" && break
  3987. done
  3988. if test "x$ac_ct_DUMPBIN" = x; then
  3989. DUMPBIN=":"
  3990. else
  3991. case $cross_compiling:$ac_tool_warned in
  3992. yes:)
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3995. ac_tool_warned=yes ;;
  3996. esac
  3997. DUMPBIN=$ac_ct_DUMPBIN
  3998. fi
  3999. fi
  4000. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4001. *COFF*)
  4002. DUMPBIN="$DUMPBIN -symbols -headers"
  4003. ;;
  4004. *)
  4005. DUMPBIN=:
  4006. ;;
  4007. esac
  4008. fi
  4009. if test : != "$DUMPBIN"; then
  4010. NM=$DUMPBIN
  4011. fi
  4012. fi
  4013. test -z "$NM" && NM=nm
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4015. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4016. if ${lt_cv_nm_interface+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. lt_cv_nm_interface="BSD nm"
  4020. echo "int some_variable = 0;" > conftest.$ac_ext
  4021. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4022. (eval "$ac_compile" 2>conftest.err)
  4023. cat conftest.err >&5
  4024. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4025. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4026. cat conftest.err >&5
  4027. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4028. cat conftest.out >&5
  4029. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4030. lt_cv_nm_interface="MS dumpbin"
  4031. fi
  4032. rm -f conftest*
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4035. $as_echo "$lt_cv_nm_interface" >&6; }
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4037. $as_echo_n "checking whether ln -s works... " >&6; }
  4038. LN_S=$as_ln_s
  4039. if test "$LN_S" = "ln -s"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4041. $as_echo "yes" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4044. $as_echo "no, using $LN_S" >&6; }
  4045. fi
  4046. # find the maximum length of command line arguments
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4048. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4049. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. i=0
  4053. teststring=ABCD
  4054. case $build_os in
  4055. msdosdjgpp*)
  4056. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4057. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4058. # during glob expansion). Even if it were fixed, the result of this
  4059. # check would be larger than it should be.
  4060. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4061. ;;
  4062. gnu*)
  4063. # Under GNU Hurd, this test is not required because there is
  4064. # no limit to the length of command line arguments.
  4065. # Libtool will interpret -1 as no limit whatsoever
  4066. lt_cv_sys_max_cmd_len=-1;
  4067. ;;
  4068. cygwin* | mingw* | cegcc*)
  4069. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4070. # about 5 minutes as the teststring grows exponentially.
  4071. # Worse, since 9x/ME are not pre-emptively multitasking,
  4072. # you end up with a "frozen" computer, even though with patience
  4073. # the test eventually succeeds (with a max line length of 256k).
  4074. # Instead, let's just punt: use the minimum linelength reported by
  4075. # all of the supported platforms: 8192 (on NT/2K/XP).
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. mint*)
  4079. # On MiNT this can take a long time and run out of memory.
  4080. lt_cv_sys_max_cmd_len=8192;
  4081. ;;
  4082. amigaos*)
  4083. # On AmigaOS with pdksh, this test takes hours, literally.
  4084. # So we just punt and use a minimum line length of 8192.
  4085. lt_cv_sys_max_cmd_len=8192;
  4086. ;;
  4087. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4088. # This has been around since 386BSD, at least. Likely further.
  4089. if test -x /sbin/sysctl; then
  4090. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4091. elif test -x /usr/sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4093. else
  4094. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4095. fi
  4096. # And add a safety zone
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4099. ;;
  4100. interix*)
  4101. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4102. lt_cv_sys_max_cmd_len=196608
  4103. ;;
  4104. os2*)
  4105. # The test takes a long time on OS/2.
  4106. lt_cv_sys_max_cmd_len=8192
  4107. ;;
  4108. osf*)
  4109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4111. # nice to cause kernel panics so lets avoid the loop below.
  4112. # First set a reasonable default.
  4113. lt_cv_sys_max_cmd_len=16384
  4114. #
  4115. if test -x /sbin/sysconfig; then
  4116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4118. esac
  4119. fi
  4120. ;;
  4121. sco3.2v5*)
  4122. lt_cv_sys_max_cmd_len=102400
  4123. ;;
  4124. sysv5* | sco5v6* | sysv4.2uw2*)
  4125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4126. if test -n "$kargmax"; then
  4127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4128. else
  4129. lt_cv_sys_max_cmd_len=32768
  4130. fi
  4131. ;;
  4132. *)
  4133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4134. if test -n "$lt_cv_sys_max_cmd_len" && \
  4135. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4138. else
  4139. # Make teststring a little bigger before we do anything with it.
  4140. # a 1K string should be a reasonable start.
  4141. for i in 1 2 3 4 5 6 7 8; do
  4142. teststring=$teststring$teststring
  4143. done
  4144. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4145. # If test is not a shell built-in, we'll probably end up computing a
  4146. # maximum length that is only half of the actual maximum length, but
  4147. # we can't tell.
  4148. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4149. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4150. test 17 != "$i" # 1/2 MB should be enough
  4151. do
  4152. i=`expr $i + 1`
  4153. teststring=$teststring$teststring
  4154. done
  4155. # Only check the string length outside the loop.
  4156. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4157. teststring=
  4158. # Add a significant safety factor because C++ compilers can tack on
  4159. # massive amounts of additional arguments before passing them to the
  4160. # linker. It appears as though 1/2 is a usable value.
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4162. fi
  4163. ;;
  4164. esac
  4165. fi
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4168. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4169. else
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4171. $as_echo "none" >&6; }
  4172. fi
  4173. max_cmd_len=$lt_cv_sys_max_cmd_len
  4174. : ${CP="cp -f"}
  4175. : ${MV="mv -f"}
  4176. : ${RM="rm -f"}
  4177. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4178. lt_unset=unset
  4179. else
  4180. lt_unset=false
  4181. fi
  4182. # test EBCDIC or ASCII
  4183. case `echo X|tr X '\101'` in
  4184. A) # ASCII based system
  4185. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4186. lt_SP2NL='tr \040 \012'
  4187. lt_NL2SP='tr \015\012 \040\040'
  4188. ;;
  4189. *) # EBCDIC based system
  4190. lt_SP2NL='tr \100 \n'
  4191. lt_NL2SP='tr \r\n \100\100'
  4192. ;;
  4193. esac
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4195. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4196. if ${lt_cv_to_host_file_cmd+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. case $host in
  4200. *-*-mingw* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4210. ;;
  4211. esac
  4212. ;;
  4213. *-*-cygwin* )
  4214. case $build in
  4215. *-*-mingw* ) # actually msys
  4216. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4217. ;;
  4218. *-*-cygwin* )
  4219. lt_cv_to_host_file_cmd=func_convert_file_noop
  4220. ;;
  4221. * ) # otherwise, assume *nix
  4222. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4223. ;;
  4224. esac
  4225. ;;
  4226. * ) # unhandled hosts (and "normal" native builds)
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. esac
  4230. fi
  4231. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4233. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4235. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4236. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. #assume ordinary cross tools, or native build.
  4240. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4241. case $host in
  4242. *-*-mingw* )
  4243. case $build in
  4244. *-*-mingw* ) # actually msys
  4245. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4246. ;;
  4247. esac
  4248. ;;
  4249. esac
  4250. fi
  4251. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4253. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4255. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4256. if ${lt_cv_ld_reload_flag+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. lt_cv_ld_reload_flag='-r'
  4260. fi
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4262. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4263. reload_flag=$lt_cv_ld_reload_flag
  4264. case $reload_flag in
  4265. "" | " "*) ;;
  4266. *) reload_flag=" $reload_flag" ;;
  4267. esac
  4268. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4269. case $host_os in
  4270. cygwin* | mingw* | pw32* | cegcc*)
  4271. if test yes != "$GCC"; then
  4272. reload_cmds=false
  4273. fi
  4274. ;;
  4275. darwin*)
  4276. if test yes = "$GCC"; then
  4277. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4278. else
  4279. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4280. fi
  4281. ;;
  4282. esac
  4283. if test -n "$ac_tool_prefix"; then
  4284. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4285. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$OBJDUMP"; then
  4292. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. OBJDUMP=$ac_cv_prog_OBJDUMP
  4311. if test -n "$OBJDUMP"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4313. $as_echo "$OBJDUMP" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$ac_cv_prog_OBJDUMP"; then
  4320. ac_ct_OBJDUMP=$OBJDUMP
  4321. # Extract the first word of "objdump", so it can be a program name with args.
  4322. set dummy objdump; ac_word=$2
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. $as_echo_n "checking for $ac_word... " >&6; }
  4325. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if test -n "$ac_ct_OBJDUMP"; then
  4329. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4330. else
  4331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4332. for as_dir in $PATH
  4333. do
  4334. IFS=$as_save_IFS
  4335. test -z "$as_dir" && as_dir=.
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4348. if test -n "$ac_ct_OBJDUMP"; then
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4350. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4351. else
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. $as_echo "no" >&6; }
  4354. fi
  4355. if test "x$ac_ct_OBJDUMP" = x; then
  4356. OBJDUMP="false"
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. OBJDUMP=$ac_ct_OBJDUMP
  4365. fi
  4366. else
  4367. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4368. fi
  4369. test -z "$OBJDUMP" && OBJDUMP=objdump
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4371. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4372. if ${lt_cv_deplibs_check_method+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4376. lt_cv_file_magic_test_file=
  4377. lt_cv_deplibs_check_method='unknown'
  4378. # Need to set the preceding variable on all platforms that support
  4379. # interlibrary dependencies.
  4380. # 'none' -- dependencies not supported.
  4381. # 'unknown' -- same as none, but documents that we really don't know.
  4382. # 'pass_all' -- all dependencies passed with no checks.
  4383. # 'test_compile' -- check by making test program.
  4384. # 'file_magic [[regex]]' -- check by looking for files in library path
  4385. # that responds to the $file_magic_cmd with a given extended regex.
  4386. # If you have 'file' or equivalent on your system and you're not sure
  4387. # whether 'pass_all' will *always* work, you probably want this one.
  4388. case $host_os in
  4389. aix[4-9]*)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. beos*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. bsdi[45]*)
  4396. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4397. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4398. lt_cv_file_magic_test_file=/shlib/libc.so
  4399. ;;
  4400. cygwin*)
  4401. # func_win32_libid is a shell function defined in ltmain.sh
  4402. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4403. lt_cv_file_magic_cmd='func_win32_libid'
  4404. lt_cv_deplibs_check_method=pass_all # SDL customization
  4405. ;;
  4406. mingw* | pw32*)
  4407. # Base MSYS/MinGW do not provide the 'file' command needed by
  4408. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4409. # unless we find 'file', for example because we are cross-compiling.
  4410. if ( file / ) >/dev/null 2>&1; then
  4411. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4412. lt_cv_file_magic_cmd='func_win32_libid'
  4413. else
  4414. # Keep this pattern in sync with the one in func_win32_libid.
  4415. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4416. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4417. fi
  4418. lt_cv_deplibs_check_method=pass_all # SDL customization
  4419. ;;
  4420. cegcc*)
  4421. # use the weaker test based on 'objdump'. See mingw*.
  4422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. ;;
  4425. darwin* | rhapsody*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. freebsd* | dragonfly* | midnightbsd*)
  4429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4430. case $host_cpu in
  4431. i*86 )
  4432. # Not sure whether the presence of OpenBSD here was a mistake.
  4433. # Let's accept both of them until this is cleared up.
  4434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4437. ;;
  4438. esac
  4439. else
  4440. lt_cv_deplibs_check_method=pass_all
  4441. fi
  4442. ;;
  4443. haiku*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. hpux10.20* | hpux11*)
  4447. lt_cv_file_magic_cmd=/usr/bin/file
  4448. case $host_cpu in
  4449. ia64*)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4451. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4452. ;;
  4453. hppa*64*)
  4454. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4455. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4456. ;;
  4457. *)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4459. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4460. ;;
  4461. esac
  4462. ;;
  4463. interix[3-9]*)
  4464. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4466. ;;
  4467. irix5* | irix6* | nonstopux*)
  4468. case $LD in
  4469. *-32|*"-32 ") libmagic=32-bit;;
  4470. *-n32|*"-n32 ") libmagic=N32;;
  4471. *-64|*"-64 ") libmagic=64-bit;;
  4472. *) libmagic=never-match;;
  4473. esac
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. # This must be glibc/ELF.
  4477. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. netbsd*)
  4481. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. newos6*)
  4488. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4489. lt_cv_file_magic_cmd=/usr/bin/file
  4490. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4491. ;;
  4492. *nto* | *qnx*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. openbsd* | bitrig*)
  4496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4498. else
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4500. fi
  4501. ;;
  4502. osf3* | osf4* | osf5*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. rdos*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. solaris*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv4 | sysv4.3*)
  4515. case $host_vendor in
  4516. motorola)
  4517. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4518. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4519. ;;
  4520. ncr)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. sequent)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4526. ;;
  4527. sni)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4530. lt_cv_file_magic_test_file=/lib/libc.so
  4531. ;;
  4532. siemens)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. pc)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. esac
  4539. ;;
  4540. tpf*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. os2*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. fi
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4550. file_magic_glob=
  4551. want_nocaseglob=no
  4552. if test "$build" = "$host"; then
  4553. case $host_os in
  4554. mingw* | pw32*)
  4555. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4556. want_nocaseglob=yes
  4557. else
  4558. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4559. fi
  4560. ;;
  4561. esac
  4562. fi
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$DLLTOOL"; then
  4575. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. DLLTOOL=$ac_cv_prog_DLLTOOL
  4594. if test -n "$DLLTOOL"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4596. $as_echo "$DLLTOOL" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_DLLTOOL"; then
  4603. ac_ct_DLLTOOL=$DLLTOOL
  4604. # Extract the first word of "dlltool", so it can be a program name with args.
  4605. set dummy dlltool; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_DLLTOOL"; then
  4612. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4631. if test -n "$ac_ct_DLLTOOL"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4633. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_DLLTOOL" = x; then
  4639. DLLTOOL="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. DLLTOOL=$ac_ct_DLLTOOL
  4648. fi
  4649. else
  4650. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4651. fi
  4652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4654. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4655. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. # two different shell functions defined in ltmain.sh;
  4662. # decide which one to use based on capabilities of $DLLTOOL
  4663. case `$DLLTOOL --help 2>&1` in
  4664. *--identify-strict*)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4666. ;;
  4667. *)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4669. ;;
  4670. esac
  4671. ;;
  4672. *)
  4673. # fallback: assume linklib IS sharedlib
  4674. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4675. ;;
  4676. esac
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4679. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4680. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4681. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4682. if test -n "$ac_tool_prefix"; then
  4683. for ac_prog in ar
  4684. do
  4685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_AR+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$AR"; then
  4693. ac_cv_prog_AR="$AR" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. AR=$ac_cv_prog_AR
  4712. if test -n "$AR"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4714. $as_echo "$AR" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. test -n "$AR" && break
  4720. done
  4721. fi
  4722. if test -z "$AR"; then
  4723. ac_ct_AR=$AR
  4724. for ac_prog in ar
  4725. do
  4726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4727. set dummy $ac_prog; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_AR"; then
  4734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_AR="$ac_prog"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4753. if test -n "$ac_ct_AR"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4755. $as_echo "$ac_ct_AR" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. test -n "$ac_ct_AR" && break
  4761. done
  4762. if test "x$ac_ct_AR" = x; then
  4763. AR="false"
  4764. else
  4765. case $cross_compiling:$ac_tool_warned in
  4766. yes:)
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4769. ac_tool_warned=yes ;;
  4770. esac
  4771. AR=$ac_ct_AR
  4772. fi
  4773. fi
  4774. : ${AR=ar}
  4775. : ${AR_FLAGS=cru}
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4777. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4778. if ${lt_cv_ar_at_file+:} false; then :
  4779. $as_echo_n "(cached) " >&6
  4780. else
  4781. lt_cv_ar_at_file=no
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. int
  4785. main ()
  4786. {
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. echo conftest.$ac_objext > conftest.lst
  4793. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4794. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4795. (eval $lt_ar_try) 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; }
  4799. if test 0 -eq "$ac_status"; then
  4800. # Ensure the archiver fails upon bogus file names.
  4801. rm -f conftest.$ac_objext libconftest.a
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -ne "$ac_status"; then
  4808. lt_cv_ar_at_file=@
  4809. fi
  4810. fi
  4811. rm -f conftest.* libconftest.a
  4812. fi
  4813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4816. $as_echo "$lt_cv_ar_at_file" >&6; }
  4817. if test no = "$lt_cv_ar_at_file"; then
  4818. archiver_list_spec=
  4819. else
  4820. archiver_list_spec=$lt_cv_ar_at_file
  4821. fi
  4822. if test -n "$ac_tool_prefix"; then
  4823. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4824. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_STRIP+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$STRIP"; then
  4831. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. STRIP=$ac_cv_prog_STRIP
  4850. if test -n "$STRIP"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4852. $as_echo "$STRIP" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_prog_STRIP"; then
  4859. ac_ct_STRIP=$STRIP
  4860. # Extract the first word of "strip", so it can be a program name with args.
  4861. set dummy strip; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. if test -n "$ac_ct_STRIP"; then
  4868. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_ac_ct_STRIP="strip"
  4878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4887. if test -n "$ac_ct_STRIP"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4889. $as_echo "$ac_ct_STRIP" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. if test "x$ac_ct_STRIP" = x; then
  4895. STRIP=":"
  4896. else
  4897. case $cross_compiling:$ac_tool_warned in
  4898. yes:)
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4901. ac_tool_warned=yes ;;
  4902. esac
  4903. STRIP=$ac_ct_STRIP
  4904. fi
  4905. else
  4906. STRIP="$ac_cv_prog_STRIP"
  4907. fi
  4908. test -z "$STRIP" && STRIP=:
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_RANLIB+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$RANLIB"; then
  4918. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. RANLIB=$ac_cv_prog_RANLIB
  4937. if test -n "$RANLIB"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4939. $as_echo "$RANLIB" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_RANLIB"; then
  4946. ac_ct_RANLIB=$RANLIB
  4947. # Extract the first word of "ranlib", so it can be a program name with args.
  4948. set dummy ranlib; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_RANLIB"; then
  4955. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4974. if test -n "$ac_ct_RANLIB"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4976. $as_echo "$ac_ct_RANLIB" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_RANLIB" = x; then
  4982. RANLIB=":"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. RANLIB=$ac_ct_RANLIB
  4991. fi
  4992. else
  4993. RANLIB="$ac_cv_prog_RANLIB"
  4994. fi
  4995. test -z "$RANLIB" && RANLIB=:
  4996. # Determine commands to create old-style static archives.
  4997. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4998. old_postinstall_cmds='chmod 644 $oldlib'
  4999. old_postuninstall_cmds=
  5000. if test -n "$RANLIB"; then
  5001. case $host_os in
  5002. bitrig* | openbsd*)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5004. ;;
  5005. *)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5007. ;;
  5008. esac
  5009. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5010. fi
  5011. case $host_os in
  5012. darwin*)
  5013. lock_old_archive_extraction=yes ;;
  5014. *)
  5015. lock_old_archive_extraction=no ;;
  5016. esac
  5017. for ac_prog in gawk mawk nawk awk
  5018. do
  5019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5020. set dummy $ac_prog; ac_word=$2
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5022. $as_echo_n "checking for $ac_word... " >&6; }
  5023. if ${ac_cv_prog_AWK+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -n "$AWK"; then
  5027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5028. else
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5036. ac_cv_prog_AWK="$ac_prog"
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5038. break 2
  5039. fi
  5040. done
  5041. done
  5042. IFS=$as_save_IFS
  5043. fi
  5044. fi
  5045. AWK=$ac_cv_prog_AWK
  5046. if test -n "$AWK"; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5048. $as_echo "$AWK" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. fi
  5053. test -n "$AWK" && break
  5054. done
  5055. # If no C compiler was specified, use CC.
  5056. LTCC=${LTCC-"$CC"}
  5057. # If no C compiler flags were specified, use CFLAGS.
  5058. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5059. # Allow CC to be a program name with arguments.
  5060. compiler=$CC
  5061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5063. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5064. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. # These are sane defaults that work on at least a few old systems.
  5068. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5069. # Character class describing NM global symbol codes.
  5070. symcode='[BCDEGRST]'
  5071. # Regexp to match symbols that can be accessed directly from C.
  5072. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5073. # Define system-specific variables.
  5074. case $host_os in
  5075. aix*)
  5076. symcode='[BCDT]'
  5077. ;;
  5078. cygwin* | mingw* | pw32* | cegcc*)
  5079. symcode='[ABCDGISTW]'
  5080. ;;
  5081. hpux*)
  5082. if test ia64 = "$host_cpu"; then
  5083. symcode='[ABCDEGRST]'
  5084. fi
  5085. ;;
  5086. irix* | nonstopux*)
  5087. symcode='[BCDEGRST]'
  5088. ;;
  5089. osf*)
  5090. symcode='[BCDEGQRST]'
  5091. ;;
  5092. solaris*)
  5093. symcode='[BCDRT]'
  5094. ;;
  5095. sco3.2v5*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv4.2uw2*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5102. symcode='[ABDT]'
  5103. ;;
  5104. sysv4)
  5105. symcode='[DFNSTU]'
  5106. ;;
  5107. esac
  5108. # If we're using GNU nm, then use its standard symbol codes.
  5109. case `$NM -V 2>&1` in
  5110. *GNU* | *'with BFD'*)
  5111. symcode='[ABCDGIRSTW]' ;;
  5112. esac
  5113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5114. # Gets list of data symbols to import.
  5115. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5116. # Adjust the below global symbol transforms to fixup imported variables.
  5117. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5118. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5119. lt_c_name_lib_hook="\
  5120. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5121. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5122. else
  5123. # Disable hooks by default.
  5124. lt_cv_sys_global_symbol_to_import=
  5125. lt_cdecl_hook=
  5126. lt_c_name_hook=
  5127. lt_c_name_lib_hook=
  5128. fi
  5129. # Transform an extracted symbol line into a proper C declaration.
  5130. # Some systems (esp. on ia64) link data and code symbols differently,
  5131. # so use this general approach.
  5132. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5133. $lt_cdecl_hook\
  5134. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5135. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5136. # Transform an extracted symbol line into symbol name and symbol address
  5137. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5138. $lt_c_name_hook\
  5139. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5140. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5141. # Transform an extracted symbol line into symbol name with lib prefix and
  5142. # symbol address.
  5143. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5144. $lt_c_name_lib_hook\
  5145. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5146. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5148. # Handle CRLF in mingw tool chain
  5149. opt_cr=
  5150. case $build_os in
  5151. mingw*)
  5152. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5153. ;;
  5154. esac
  5155. # Try without a prefix underscore, then with it.
  5156. for ac_symprfx in "" "_"; do
  5157. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5158. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5159. # Write the raw and C identifiers.
  5160. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5161. # Fake it for dumpbin and say T for any non-static function,
  5162. # D for any global variable and I for any imported variable.
  5163. # Also find C++ and __fastcall symbols from MSVC++,
  5164. # which start with @ or ?.
  5165. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5166. " {last_section=section; section=\$ 3};"\
  5167. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5168. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5169. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5170. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5171. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5172. " \$ 0!~/External *\|/{next};"\
  5173. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5174. " {if(hide[section]) next};"\
  5175. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5176. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5177. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5178. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5179. " ' prfx=^$ac_symprfx"
  5180. else
  5181. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5182. fi
  5183. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5184. # Check to see that the pipe works correctly.
  5185. pipe_works=no
  5186. rm -f conftest*
  5187. cat > conftest.$ac_ext <<_LT_EOF
  5188. #ifdef __cplusplus
  5189. extern "C" {
  5190. #endif
  5191. char nm_test_var;
  5192. void nm_test_func(void);
  5193. void nm_test_func(void){}
  5194. #ifdef __cplusplus
  5195. }
  5196. #endif
  5197. int main(){nm_test_var='a';nm_test_func();return(0);}
  5198. _LT_EOF
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. # Now try to grab the symbols.
  5205. nlist=conftest.nm
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5207. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; } && test -s "$nlist"; then
  5211. # Try sorting and uniquifying the output.
  5212. if sort "$nlist" | uniq > "$nlist"T; then
  5213. mv -f "$nlist"T "$nlist"
  5214. else
  5215. rm -f "$nlist"T
  5216. fi
  5217. # Make sure that we snagged all the symbols we need.
  5218. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5219. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5220. cat <<_LT_EOF > conftest.$ac_ext
  5221. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5222. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5223. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5224. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5225. # define LT_DLSYM_CONST
  5226. #elif defined __osf__
  5227. /* This system does not cope well with relocations in const data. */
  5228. # define LT_DLSYM_CONST
  5229. #else
  5230. # define LT_DLSYM_CONST const
  5231. #endif
  5232. #ifdef __cplusplus
  5233. extern "C" {
  5234. #endif
  5235. _LT_EOF
  5236. # Now generate the symbol file.
  5237. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5238. cat <<_LT_EOF >> conftest.$ac_ext
  5239. /* The mapping between symbol names and symbols. */
  5240. LT_DLSYM_CONST struct {
  5241. const char *name;
  5242. void *address;
  5243. }
  5244. lt__PROGRAM__LTX_preloaded_symbols[] =
  5245. {
  5246. { "@PROGRAM@", (void *) 0 },
  5247. _LT_EOF
  5248. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5249. cat <<\_LT_EOF >> conftest.$ac_ext
  5250. {0, (void *) 0}
  5251. };
  5252. /* This works around a problem in FreeBSD linker */
  5253. #ifdef FREEBSD_WORKAROUND
  5254. static const void *lt_preloaded_setup() {
  5255. return lt__PROGRAM__LTX_preloaded_symbols;
  5256. }
  5257. #endif
  5258. #ifdef __cplusplus
  5259. }
  5260. #endif
  5261. _LT_EOF
  5262. # Now try linking the two files.
  5263. mv conftest.$ac_objext conftstm.$ac_objext
  5264. lt_globsym_save_LIBS=$LIBS
  5265. lt_globsym_save_CFLAGS=$CFLAGS
  5266. LIBS=conftstm.$ac_objext
  5267. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5269. (eval $ac_link) 2>&5
  5270. ac_status=$?
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5272. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5273. pipe_works=yes
  5274. fi
  5275. LIBS=$lt_globsym_save_LIBS
  5276. CFLAGS=$lt_globsym_save_CFLAGS
  5277. else
  5278. echo "cannot find nm_test_func in $nlist" >&5
  5279. fi
  5280. else
  5281. echo "cannot find nm_test_var in $nlist" >&5
  5282. fi
  5283. else
  5284. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5285. fi
  5286. else
  5287. echo "$progname: failed program was:" >&5
  5288. cat conftest.$ac_ext >&5
  5289. fi
  5290. rm -rf conftest* conftst*
  5291. # Do not use the global_symbol_pipe unless it works.
  5292. if test yes = "$pipe_works"; then
  5293. break
  5294. else
  5295. lt_cv_sys_global_symbol_pipe=
  5296. fi
  5297. done
  5298. fi
  5299. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5300. lt_cv_sys_global_symbol_to_cdecl=
  5301. fi
  5302. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5304. $as_echo "failed" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5307. $as_echo "ok" >&6; }
  5308. fi
  5309. # Response file support.
  5310. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5311. nm_file_list_spec='@'
  5312. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5313. nm_file_list_spec='@'
  5314. fi
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5316. $as_echo_n "checking for sysroot... " >&6; }
  5317. # Check whether --with-sysroot was given.
  5318. if test "${with_sysroot+set}" = set; then :
  5319. withval=$with_sysroot;
  5320. else
  5321. with_sysroot=no
  5322. fi
  5323. lt_sysroot=
  5324. case $with_sysroot in #(
  5325. yes)
  5326. if test yes = "$GCC"; then
  5327. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5328. fi
  5329. ;; #(
  5330. /*)
  5331. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5332. ;; #(
  5333. no|'')
  5334. ;; #(
  5335. *)
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5337. $as_echo "$with_sysroot" >&6; }
  5338. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5339. ;;
  5340. esac
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5342. $as_echo "${lt_sysroot:-no}" >&6; }
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5344. $as_echo_n "checking for a working dd... " >&6; }
  5345. if ${ac_cv_path_lt_DD+:} false; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. printf 0123456789abcdef0123456789abcdef >conftest.i
  5349. cat conftest.i conftest.i >conftest2.i
  5350. : ${lt_DD:=$DD}
  5351. if test -z "$lt_DD"; then
  5352. ac_path_lt_DD_found=false
  5353. # Loop through the user's path and test for each of PROGNAME-LIST
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_prog in dd; do
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5362. as_fn_executable_p "$ac_path_lt_DD" || continue
  5363. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5364. cmp -s conftest.i conftest.out \
  5365. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5366. fi
  5367. $ac_path_lt_DD_found && break 3
  5368. done
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. if test -z "$ac_cv_path_lt_DD"; then
  5373. :
  5374. fi
  5375. else
  5376. ac_cv_path_lt_DD=$lt_DD
  5377. fi
  5378. rm -f conftest.i conftest2.i conftest.out
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5381. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5383. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5384. if ${lt_cv_truncate_bin+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. printf 0123456789abcdef0123456789abcdef >conftest.i
  5388. cat conftest.i conftest.i >conftest2.i
  5389. lt_cv_truncate_bin=
  5390. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5391. cmp -s conftest.i conftest.out \
  5392. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5393. fi
  5394. rm -f conftest.i conftest2.i conftest.out
  5395. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5396. fi
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5398. $as_echo "$lt_cv_truncate_bin" >&6; }
  5399. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5400. func_cc_basename ()
  5401. {
  5402. for cc_temp in $*""; do
  5403. case $cc_temp in
  5404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5406. \-*) ;;
  5407. *) break;;
  5408. esac
  5409. done
  5410. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5411. }
  5412. # Check whether --enable-libtool-lock was given.
  5413. if test "${enable_libtool_lock+set}" = set; then :
  5414. enableval=$enable_libtool_lock;
  5415. fi
  5416. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5417. # Some flags need to be propagated to the compiler or linker for good
  5418. # libtool support.
  5419. case $host in
  5420. ia64-*-hpux*)
  5421. # Find out what ABI is being produced by ac_compile, and set mode
  5422. # options accordingly.
  5423. echo 'int i;' > conftest.$ac_ext
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5425. (eval $ac_compile) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }; then
  5429. case `/usr/bin/file conftest.$ac_objext` in
  5430. *ELF-32*)
  5431. HPUX_IA64_MODE=32
  5432. ;;
  5433. *ELF-64*)
  5434. HPUX_IA64_MODE=64
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-irix6*)
  5441. # Find out what ABI is being produced by ac_compile, and set linker
  5442. # options accordingly.
  5443. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5445. (eval $ac_compile) 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. if test yes = "$lt_cv_prog_gnu_ld"; then
  5450. case `/usr/bin/file conftest.$ac_objext` in
  5451. *32-bit*)
  5452. LD="${LD-ld} -melf32bsmip"
  5453. ;;
  5454. *N32*)
  5455. LD="${LD-ld} -melf32bmipn32"
  5456. ;;
  5457. *64-bit*)
  5458. LD="${LD-ld} -melf64bmip"
  5459. ;;
  5460. esac
  5461. else
  5462. case `/usr/bin/file conftest.$ac_objext` in
  5463. *32-bit*)
  5464. LD="${LD-ld} -32"
  5465. ;;
  5466. *N32*)
  5467. LD="${LD-ld} -n32"
  5468. ;;
  5469. *64-bit*)
  5470. LD="${LD-ld} -64"
  5471. ;;
  5472. esac
  5473. fi
  5474. fi
  5475. rm -rf conftest*
  5476. ;;
  5477. mips64*-*linux*)
  5478. # Find out what ABI is being produced by ac_compile, and set linker
  5479. # options accordingly.
  5480. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5482. (eval $ac_compile) 2>&5
  5483. ac_status=$?
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5485. test $ac_status = 0; }; then
  5486. emul=elf
  5487. case `/usr/bin/file conftest.$ac_objext` in
  5488. *32-bit*)
  5489. emul="${emul}32"
  5490. ;;
  5491. *64-bit*)
  5492. emul="${emul}64"
  5493. ;;
  5494. esac
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *MSB*)
  5497. emul="${emul}btsmip"
  5498. ;;
  5499. *LSB*)
  5500. emul="${emul}ltsmip"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *N32*)
  5505. emul="${emul}n32"
  5506. ;;
  5507. esac
  5508. LD="${LD-ld} -m $emul"
  5509. fi
  5510. rm -rf conftest*
  5511. ;;
  5512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5514. # Find out what ABI is being produced by ac_compile, and set linker
  5515. # options accordingly. Note that the listed cases only cover the
  5516. # situations where additional linker options are needed (such as when
  5517. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5518. # vice versa); the common cases where no linker options are needed do
  5519. # not appear in the list.
  5520. echo 'int i;' > conftest.$ac_ext
  5521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5522. (eval $ac_compile) 2>&5
  5523. ac_status=$?
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5525. test $ac_status = 0; }; then
  5526. case `/usr/bin/file conftest.o` in
  5527. *32-bit*)
  5528. case $host in
  5529. x86_64-*kfreebsd*-gnu)
  5530. LD="${LD-ld} -m elf_i386_fbsd"
  5531. ;;
  5532. x86_64-*linux*)
  5533. case `/usr/bin/file conftest.o` in
  5534. *x86-64*)
  5535. LD="${LD-ld} -m elf32_x86_64"
  5536. ;;
  5537. *)
  5538. LD="${LD-ld} -m elf_i386"
  5539. ;;
  5540. esac
  5541. ;;
  5542. powerpc64le-*linux*)
  5543. LD="${LD-ld} -m elf32lppclinux"
  5544. ;;
  5545. powerpc64-*linux*)
  5546. LD="${LD-ld} -m elf32ppclinux"
  5547. ;;
  5548. s390x-*linux*)
  5549. LD="${LD-ld} -m elf_s390"
  5550. ;;
  5551. sparc64-*linux*)
  5552. LD="${LD-ld} -m elf32_sparc"
  5553. ;;
  5554. esac
  5555. ;;
  5556. *64-bit*)
  5557. case $host in
  5558. x86_64-*kfreebsd*-gnu)
  5559. LD="${LD-ld} -m elf_x86_64_fbsd"
  5560. ;;
  5561. x86_64-*linux*)
  5562. LD="${LD-ld} -m elf_x86_64"
  5563. ;;
  5564. powerpcle-*linux*|powerpc64le-*linux*)
  5565. LD="${LD-ld} -m elf64lppc"
  5566. ;;
  5567. powerpc-*linux*|powerpc64-*linux*)
  5568. LD="${LD-ld} -m elf64ppc"
  5569. ;;
  5570. s390*-*linux*|s390*-*tpf*)
  5571. LD="${LD-ld} -m elf64_s390"
  5572. ;;
  5573. sparc*-*linux*)
  5574. LD="${LD-ld} -m elf64_sparc"
  5575. ;;
  5576. esac
  5577. ;;
  5578. esac
  5579. fi
  5580. rm -rf conftest*
  5581. ;;
  5582. *-*-sco3.2v5*)
  5583. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5584. SAVE_CFLAGS=$CFLAGS
  5585. CFLAGS="$CFLAGS -belf"
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5587. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5588. if ${lt_cv_cc_needs_belf+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598. int
  5599. main ()
  5600. {
  5601. ;
  5602. return 0;
  5603. }
  5604. _ACEOF
  5605. if ac_fn_c_try_link "$LINENO"; then :
  5606. lt_cv_cc_needs_belf=yes
  5607. else
  5608. lt_cv_cc_needs_belf=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext \
  5611. conftest$ac_exeext conftest.$ac_ext
  5612. ac_ext=c
  5613. ac_cpp='$CPP $CPPFLAGS'
  5614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5617. fi
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5619. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5620. if test yes != "$lt_cv_cc_needs_belf"; then
  5621. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5622. CFLAGS=$SAVE_CFLAGS
  5623. fi
  5624. ;;
  5625. *-*solaris*)
  5626. # Find out what ABI is being produced by ac_compile, and set linker
  5627. # options accordingly.
  5628. echo 'int i;' > conftest.$ac_ext
  5629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5630. (eval $ac_compile) 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }; then
  5634. case `/usr/bin/file conftest.o` in
  5635. *64-bit*)
  5636. case $lt_cv_prog_gnu_ld in
  5637. yes*)
  5638. case $host in
  5639. i?86-*-solaris*|x86_64-*-solaris*)
  5640. LD="${LD-ld} -m elf_x86_64"
  5641. ;;
  5642. sparc*-*-solaris*)
  5643. LD="${LD-ld} -m elf64_sparc"
  5644. ;;
  5645. esac
  5646. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5647. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5648. LD=${LD-ld}_sol2
  5649. fi
  5650. ;;
  5651. *)
  5652. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5653. LD="${LD-ld} -64"
  5654. fi
  5655. ;;
  5656. esac
  5657. ;;
  5658. esac
  5659. fi
  5660. rm -rf conftest*
  5661. ;;
  5662. esac
  5663. need_locks=$enable_libtool_lock
  5664. if test -n "$ac_tool_prefix"; then
  5665. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5666. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5668. $as_echo_n "checking for $ac_word... " >&6; }
  5669. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. if test -n "$MANIFEST_TOOL"; then
  5673. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5674. else
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH
  5677. do
  5678. IFS=$as_save_IFS
  5679. test -z "$as_dir" && as_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5692. if test -n "$MANIFEST_TOOL"; then
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5694. $as_echo "$MANIFEST_TOOL" >&6; }
  5695. else
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. $as_echo "no" >&6; }
  5698. fi
  5699. fi
  5700. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5701. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5702. # Extract the first word of "mt", so it can be a program name with args.
  5703. set dummy mt; ac_word=$2
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5710. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5729. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5731. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5737. MANIFEST_TOOL=":"
  5738. else
  5739. case $cross_compiling:$ac_tool_warned in
  5740. yes:)
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5743. ac_tool_warned=yes ;;
  5744. esac
  5745. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5746. fi
  5747. else
  5748. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5749. fi
  5750. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5752. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5753. if ${lt_cv_path_mainfest_tool+:} false; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. lt_cv_path_mainfest_tool=no
  5757. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5758. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5759. cat conftest.err >&5
  5760. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5761. lt_cv_path_mainfest_tool=yes
  5762. fi
  5763. rm -f conftest*
  5764. fi
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5766. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5767. if test yes != "$lt_cv_path_mainfest_tool"; then
  5768. MANIFEST_TOOL=:
  5769. fi
  5770. case $host_os in
  5771. rhapsody* | darwin*)
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$DSYMUTIL"; then
  5781. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5800. if test -n "$DSYMUTIL"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5802. $as_echo "$DSYMUTIL" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5809. ac_ct_DSYMUTIL=$DSYMUTIL
  5810. # Extract the first word of "dsymutil", so it can be a program name with args.
  5811. set dummy dsymutil; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_DSYMUTIL"; then
  5818. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5837. if test -n "$ac_ct_DSYMUTIL"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5839. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_DSYMUTIL" = x; then
  5845. DSYMUTIL=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. DSYMUTIL=$ac_ct_DSYMUTIL
  5854. fi
  5855. else
  5856. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5857. fi
  5858. if test -n "$ac_tool_prefix"; then
  5859. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5860. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_NMEDIT+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$NMEDIT"; then
  5867. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. NMEDIT=$ac_cv_prog_NMEDIT
  5886. if test -n "$NMEDIT"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5888. $as_echo "$NMEDIT" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. fi
  5894. if test -z "$ac_cv_prog_NMEDIT"; then
  5895. ac_ct_NMEDIT=$NMEDIT
  5896. # Extract the first word of "nmedit", so it can be a program name with args.
  5897. set dummy nmedit; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$ac_ct_NMEDIT"; then
  5904. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5923. if test -n "$ac_ct_NMEDIT"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5925. $as_echo "$ac_ct_NMEDIT" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. if test "x$ac_ct_NMEDIT" = x; then
  5931. NMEDIT=":"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. NMEDIT=$ac_ct_NMEDIT
  5940. fi
  5941. else
  5942. NMEDIT="$ac_cv_prog_NMEDIT"
  5943. fi
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_LIPO+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$LIPO"; then
  5953. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. LIPO=$ac_cv_prog_LIPO
  5972. if test -n "$LIPO"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5974. $as_echo "$LIPO" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_LIPO"; then
  5981. ac_ct_LIPO=$LIPO
  5982. # Extract the first word of "lipo", so it can be a program name with args.
  5983. set dummy lipo; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_LIPO"; then
  5990. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_LIPO="lipo"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6009. if test -n "$ac_ct_LIPO"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6011. $as_echo "$ac_ct_LIPO" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_LIPO" = x; then
  6017. LIPO=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. LIPO=$ac_ct_LIPO
  6026. fi
  6027. else
  6028. LIPO="$ac_cv_prog_LIPO"
  6029. fi
  6030. if test -n "$ac_tool_prefix"; then
  6031. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6032. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if ${ac_cv_prog_OTOOL+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$OTOOL"; then
  6039. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6048. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. OTOOL=$ac_cv_prog_OTOOL
  6058. if test -n "$OTOOL"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6060. $as_echo "$OTOOL" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test -z "$ac_cv_prog_OTOOL"; then
  6067. ac_ct_OTOOL=$OTOOL
  6068. # Extract the first word of "otool", so it can be a program name with args.
  6069. set dummy otool; ac_word=$2
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6071. $as_echo_n "checking for $ac_word... " >&6; }
  6072. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. if test -n "$ac_ct_OTOOL"; then
  6076. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6085. ac_cv_prog_ac_ct_OTOOL="otool"
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6095. if test -n "$ac_ct_OTOOL"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6097. $as_echo "$ac_ct_OTOOL" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "x$ac_ct_OTOOL" = x; then
  6103. OTOOL=":"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. OTOOL=$ac_ct_OTOOL
  6112. fi
  6113. else
  6114. OTOOL="$ac_cv_prog_OTOOL"
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_OTOOL64+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$OTOOL64"; then
  6125. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. OTOOL64=$ac_cv_prog_OTOOL64
  6144. if test -n "$OTOOL64"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6146. $as_echo "$OTOOL64" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_OTOOL64"; then
  6153. ac_ct_OTOOL64=$OTOOL64
  6154. # Extract the first word of "otool64", so it can be a program name with args.
  6155. set dummy otool64; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_OTOOL64"; then
  6162. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6181. if test -n "$ac_ct_OTOOL64"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6183. $as_echo "$ac_ct_OTOOL64" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_OTOOL64" = x; then
  6189. OTOOL64=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. OTOOL64=$ac_ct_OTOOL64
  6198. fi
  6199. else
  6200. OTOOL64="$ac_cv_prog_OTOOL64"
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6203. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6204. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. lt_cv_apple_cc_single_mod=no
  6208. if test -z "$LT_MULTI_MODULE"; then
  6209. # By default we will add the -single_module flag. You can override
  6210. # by either setting the environment variable LT_MULTI_MODULE
  6211. # non-empty at configure time, or by adding -multi_module to the
  6212. # link flags.
  6213. rm -rf libconftest.dylib*
  6214. echo "int foo(void){return 1;}" > conftest.c
  6215. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6216. -dynamiclib -Wl,-single_module conftest.c" >&5
  6217. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6219. _lt_result=$?
  6220. # If there is a non-empty error log, and "single_module"
  6221. # appears in it, assume the flag caused a linker warning
  6222. if test -s conftest.err && $GREP single_module conftest.err; then
  6223. cat conftest.err >&5
  6224. # Otherwise, if the output was created with a 0 exit code from
  6225. # the compiler, it worked.
  6226. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6227. lt_cv_apple_cc_single_mod=yes
  6228. else
  6229. cat conftest.err >&5
  6230. fi
  6231. rm -rf libconftest.dylib*
  6232. rm -f conftest.*
  6233. fi
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6236. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6238. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6239. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. lt_cv_ld_exported_symbols_list=no
  6243. save_LDFLAGS=$LDFLAGS
  6244. echo "_main" > conftest.sym
  6245. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. int
  6249. main ()
  6250. {
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. if ac_fn_c_try_link "$LINENO"; then :
  6256. lt_cv_ld_exported_symbols_list=yes
  6257. else
  6258. lt_cv_ld_exported_symbols_list=no
  6259. fi
  6260. rm -f core conftest.err conftest.$ac_objext \
  6261. conftest$ac_exeext conftest.$ac_ext
  6262. LDFLAGS=$save_LDFLAGS
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6265. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6267. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6268. if ${lt_cv_ld_force_load+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. lt_cv_ld_force_load=no
  6272. cat > conftest.c << _LT_EOF
  6273. int forced_loaded() { return 2;}
  6274. _LT_EOF
  6275. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6276. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6277. echo "$AR cru libconftest.a conftest.o" >&5
  6278. $AR cru libconftest.a conftest.o 2>&5
  6279. echo "$RANLIB libconftest.a" >&5
  6280. $RANLIB libconftest.a 2>&5
  6281. cat > conftest.c << _LT_EOF
  6282. int main() { return 0;}
  6283. _LT_EOF
  6284. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6285. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6286. _lt_result=$?
  6287. if test -s conftest.err && $GREP force_load conftest.err; then
  6288. cat conftest.err >&5
  6289. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6290. lt_cv_ld_force_load=yes
  6291. else
  6292. cat conftest.err >&5
  6293. fi
  6294. rm -f conftest.err libconftest.a conftest conftest.c
  6295. rm -rf conftest.dSYM
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6298. $as_echo "$lt_cv_ld_force_load" >&6; }
  6299. case $host_os in
  6300. rhapsody* | darwin1.[012])
  6301. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6302. darwin1.*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. darwin*)
  6305. case ${MACOSX_DEPLOYMENT_TARGET},$host in
  6306. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6307. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6308. *)
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6310. esac
  6311. ;;
  6312. esac
  6313. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6314. _lt_dar_single_mod='$single_module'
  6315. fi
  6316. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6317. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6318. else
  6319. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6320. fi
  6321. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6322. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6323. else
  6324. _lt_dsymutil=
  6325. fi
  6326. ;;
  6327. esac
  6328. # func_munge_path_list VARIABLE PATH
  6329. # -----------------------------------
  6330. # VARIABLE is name of variable containing _space_ separated list of
  6331. # directories to be munged by the contents of PATH, which is string
  6332. # having a format:
  6333. # "DIR[:DIR]:"
  6334. # string "DIR[ DIR]" will be prepended to VARIABLE
  6335. # ":DIR[:DIR]"
  6336. # string "DIR[ DIR]" will be appended to VARIABLE
  6337. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6338. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6339. # "DIRA[ DIRA]" will be appended to VARIABLE
  6340. # "DIR[:DIR]"
  6341. # VARIABLE will be replaced by "DIR[ DIR]"
  6342. func_munge_path_list ()
  6343. {
  6344. case x$2 in
  6345. x)
  6346. ;;
  6347. *:)
  6348. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6349. ;;
  6350. x:*)
  6351. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6352. ;;
  6353. *::*)
  6354. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6355. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6356. ;;
  6357. *)
  6358. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6359. ;;
  6360. esac
  6361. }
  6362. ac_ext=c
  6363. ac_cpp='$CPP $CPPFLAGS'
  6364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6368. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6369. # On Suns, sometimes $CPP names a directory.
  6370. if test -n "$CPP" && test -d "$CPP"; then
  6371. CPP=
  6372. fi
  6373. if test -z "$CPP"; then
  6374. if ${ac_cv_prog_CPP+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. # Double quotes because CPP needs to be expanded
  6378. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6379. do
  6380. ac_preproc_ok=false
  6381. for ac_c_preproc_warn_flag in '' yes
  6382. do
  6383. # Use a header file that comes with gcc, so configuring glibc
  6384. # with a fresh cross-compiler works.
  6385. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6386. # <limits.h> exists even on freestanding compilers.
  6387. # On the NeXT, cc -E runs the code through the compiler's parser,
  6388. # not just through cpp. "Syntax error" is here to catch this case.
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. #ifdef __STDC__
  6392. # include <limits.h>
  6393. #else
  6394. # include <assert.h>
  6395. #endif
  6396. Syntax error
  6397. _ACEOF
  6398. if ac_fn_c_try_cpp "$LINENO"; then :
  6399. else
  6400. # Broken: fails on valid input.
  6401. continue
  6402. fi
  6403. rm -f conftest.err conftest.i conftest.$ac_ext
  6404. # OK, works on sane cases. Now check whether nonexistent headers
  6405. # can be detected and how.
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. #include <ac_nonexistent.h>
  6409. _ACEOF
  6410. if ac_fn_c_try_cpp "$LINENO"; then :
  6411. # Broken: success on invalid input.
  6412. continue
  6413. else
  6414. # Passes both tests.
  6415. ac_preproc_ok=:
  6416. break
  6417. fi
  6418. rm -f conftest.err conftest.i conftest.$ac_ext
  6419. done
  6420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6421. rm -f conftest.i conftest.err conftest.$ac_ext
  6422. if $ac_preproc_ok; then :
  6423. break
  6424. fi
  6425. done
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. CPP=$ac_cv_prog_CPP
  6429. else
  6430. ac_cv_prog_CPP=$CPP
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6433. $as_echo "$CPP" >&6; }
  6434. ac_preproc_ok=false
  6435. for ac_c_preproc_warn_flag in '' yes
  6436. do
  6437. # Use a header file that comes with gcc, so configuring glibc
  6438. # with a fresh cross-compiler works.
  6439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6440. # <limits.h> exists even on freestanding compilers.
  6441. # On the NeXT, cc -E runs the code through the compiler's parser,
  6442. # not just through cpp. "Syntax error" is here to catch this case.
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. #ifdef __STDC__
  6446. # include <limits.h>
  6447. #else
  6448. # include <assert.h>
  6449. #endif
  6450. Syntax error
  6451. _ACEOF
  6452. if ac_fn_c_try_cpp "$LINENO"; then :
  6453. else
  6454. # Broken: fails on valid input.
  6455. continue
  6456. fi
  6457. rm -f conftest.err conftest.i conftest.$ac_ext
  6458. # OK, works on sane cases. Now check whether nonexistent headers
  6459. # can be detected and how.
  6460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461. /* end confdefs.h. */
  6462. #include <ac_nonexistent.h>
  6463. _ACEOF
  6464. if ac_fn_c_try_cpp "$LINENO"; then :
  6465. # Broken: success on invalid input.
  6466. continue
  6467. else
  6468. # Passes both tests.
  6469. ac_preproc_ok=:
  6470. break
  6471. fi
  6472. rm -f conftest.err conftest.i conftest.$ac_ext
  6473. done
  6474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6475. rm -f conftest.i conftest.err conftest.$ac_ext
  6476. if $ac_preproc_ok; then :
  6477. else
  6478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6481. See \`config.log' for more details" "$LINENO" 5; }
  6482. fi
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6489. $as_echo_n "checking for ANSI C header files... " >&6; }
  6490. if ${ac_cv_header_stdc+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. #include <stdlib.h>
  6496. #include <stdarg.h>
  6497. #include <string.h>
  6498. #include <float.h>
  6499. int
  6500. main ()
  6501. {
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. if ac_fn_c_try_compile "$LINENO"; then :
  6507. ac_cv_header_stdc=yes
  6508. else
  6509. ac_cv_header_stdc=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512. if test $ac_cv_header_stdc = yes; then
  6513. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. #include <string.h>
  6517. _ACEOF
  6518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6519. $EGREP "memchr" >/dev/null 2>&1; then :
  6520. else
  6521. ac_cv_header_stdc=no
  6522. fi
  6523. rm -f conftest*
  6524. fi
  6525. if test $ac_cv_header_stdc = yes; then
  6526. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. #include <stdlib.h>
  6530. _ACEOF
  6531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6532. $EGREP "free" >/dev/null 2>&1; then :
  6533. else
  6534. ac_cv_header_stdc=no
  6535. fi
  6536. rm -f conftest*
  6537. fi
  6538. if test $ac_cv_header_stdc = yes; then
  6539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6540. if test "$cross_compiling" = yes; then :
  6541. :
  6542. else
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. #include <ctype.h>
  6546. #include <stdlib.h>
  6547. #if ((' ' & 0x0FF) == 0x020)
  6548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6550. #else
  6551. # define ISLOWER(c) \
  6552. (('a' <= (c) && (c) <= 'i') \
  6553. || ('j' <= (c) && (c) <= 'r') \
  6554. || ('s' <= (c) && (c) <= 'z'))
  6555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6556. #endif
  6557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6558. int
  6559. main ()
  6560. {
  6561. int i;
  6562. for (i = 0; i < 256; i++)
  6563. if (XOR (islower (i), ISLOWER (i))
  6564. || toupper (i) != TOUPPER (i))
  6565. return 2;
  6566. return 0;
  6567. }
  6568. _ACEOF
  6569. if ac_fn_c_try_run "$LINENO"; then :
  6570. else
  6571. ac_cv_header_stdc=no
  6572. fi
  6573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6575. fi
  6576. fi
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6579. $as_echo "$ac_cv_header_stdc" >&6; }
  6580. if test $ac_cv_header_stdc = yes; then
  6581. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6582. fi
  6583. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6584. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6585. inttypes.h stdint.h unistd.h
  6586. do :
  6587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6588. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6589. "
  6590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6591. cat >>confdefs.h <<_ACEOF
  6592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6593. _ACEOF
  6594. fi
  6595. done
  6596. for ac_header in dlfcn.h
  6597. do :
  6598. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6599. "
  6600. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6601. cat >>confdefs.h <<_ACEOF
  6602. #define HAVE_DLFCN_H 1
  6603. _ACEOF
  6604. fi
  6605. done
  6606. # Set options
  6607. enable_win32_dll=yes
  6608. case $host in
  6609. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6610. if test -n "$ac_tool_prefix"; then
  6611. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6612. set dummy ${ac_tool_prefix}as; ac_word=$2
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. $as_echo_n "checking for $ac_word... " >&6; }
  6615. if ${ac_cv_prog_AS+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. if test -n "$AS"; then
  6619. ac_cv_prog_AS="$AS" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. test -z "$as_dir" && as_dir=.
  6626. for ac_exec_ext in '' $ac_executable_extensions; do
  6627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6628. ac_cv_prog_AS="${ac_tool_prefix}as"
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6630. break 2
  6631. fi
  6632. done
  6633. done
  6634. IFS=$as_save_IFS
  6635. fi
  6636. fi
  6637. AS=$ac_cv_prog_AS
  6638. if test -n "$AS"; then
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6640. $as_echo "$AS" >&6; }
  6641. else
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6643. $as_echo "no" >&6; }
  6644. fi
  6645. fi
  6646. if test -z "$ac_cv_prog_AS"; then
  6647. ac_ct_AS=$AS
  6648. # Extract the first word of "as", so it can be a program name with args.
  6649. set dummy as; ac_word=$2
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6651. $as_echo_n "checking for $ac_word... " >&6; }
  6652. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. if test -n "$ac_ct_AS"; then
  6656. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6657. else
  6658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6659. for as_dir in $PATH
  6660. do
  6661. IFS=$as_save_IFS
  6662. test -z "$as_dir" && as_dir=.
  6663. for ac_exec_ext in '' $ac_executable_extensions; do
  6664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6665. ac_cv_prog_ac_ct_AS="as"
  6666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6667. break 2
  6668. fi
  6669. done
  6670. done
  6671. IFS=$as_save_IFS
  6672. fi
  6673. fi
  6674. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6675. if test -n "$ac_ct_AS"; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6677. $as_echo "$ac_ct_AS" >&6; }
  6678. else
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681. fi
  6682. if test "x$ac_ct_AS" = x; then
  6683. AS="false"
  6684. else
  6685. case $cross_compiling:$ac_tool_warned in
  6686. yes:)
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6689. ac_tool_warned=yes ;;
  6690. esac
  6691. AS=$ac_ct_AS
  6692. fi
  6693. else
  6694. AS="$ac_cv_prog_AS"
  6695. fi
  6696. if test -n "$ac_tool_prefix"; then
  6697. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6698. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. $as_echo_n "checking for $ac_word... " >&6; }
  6701. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. if test -n "$DLLTOOL"; then
  6705. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. DLLTOOL=$ac_cv_prog_DLLTOOL
  6724. if test -n "$DLLTOOL"; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6726. $as_echo "$DLLTOOL" >&6; }
  6727. else
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. $as_echo "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_DLLTOOL"; then
  6733. ac_ct_DLLTOOL=$DLLTOOL
  6734. # Extract the first word of "dlltool", so it can be a program name with args.
  6735. set dummy dlltool; ac_word=$2
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. $as_echo_n "checking for $ac_word... " >&6; }
  6738. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test -n "$ac_ct_DLLTOOL"; then
  6742. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6751. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. fi
  6759. fi
  6760. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6761. if test -n "$ac_ct_DLLTOOL"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6763. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. if test "x$ac_ct_DLLTOOL" = x; then
  6769. DLLTOOL="false"
  6770. else
  6771. case $cross_compiling:$ac_tool_warned in
  6772. yes:)
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6775. ac_tool_warned=yes ;;
  6776. esac
  6777. DLLTOOL=$ac_ct_DLLTOOL
  6778. fi
  6779. else
  6780. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6781. fi
  6782. if test -n "$ac_tool_prefix"; then
  6783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6786. $as_echo_n "checking for $ac_word... " >&6; }
  6787. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. if test -n "$OBJDUMP"; then
  6791. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6792. else
  6793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6794. for as_dir in $PATH
  6795. do
  6796. IFS=$as_save_IFS
  6797. test -z "$as_dir" && as_dir=.
  6798. for ac_exec_ext in '' $ac_executable_extensions; do
  6799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6800. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6802. break 2
  6803. fi
  6804. done
  6805. done
  6806. IFS=$as_save_IFS
  6807. fi
  6808. fi
  6809. OBJDUMP=$ac_cv_prog_OBJDUMP
  6810. if test -n "$OBJDUMP"; then
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6812. $as_echo "$OBJDUMP" >&6; }
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6815. $as_echo "no" >&6; }
  6816. fi
  6817. fi
  6818. if test -z "$ac_cv_prog_OBJDUMP"; then
  6819. ac_ct_OBJDUMP=$OBJDUMP
  6820. # Extract the first word of "objdump", so it can be a program name with args.
  6821. set dummy objdump; ac_word=$2
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6823. $as_echo_n "checking for $ac_word... " >&6; }
  6824. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. if test -n "$ac_ct_OBJDUMP"; then
  6828. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6829. else
  6830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6831. for as_dir in $PATH
  6832. do
  6833. IFS=$as_save_IFS
  6834. test -z "$as_dir" && as_dir=.
  6835. for ac_exec_ext in '' $ac_executable_extensions; do
  6836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6837. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6839. break 2
  6840. fi
  6841. done
  6842. done
  6843. IFS=$as_save_IFS
  6844. fi
  6845. fi
  6846. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6847. if test -n "$ac_ct_OBJDUMP"; then
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6849. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6850. else
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6852. $as_echo "no" >&6; }
  6853. fi
  6854. if test "x$ac_ct_OBJDUMP" = x; then
  6855. OBJDUMP="false"
  6856. else
  6857. case $cross_compiling:$ac_tool_warned in
  6858. yes:)
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6861. ac_tool_warned=yes ;;
  6862. esac
  6863. OBJDUMP=$ac_ct_OBJDUMP
  6864. fi
  6865. else
  6866. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6867. fi
  6868. ;;
  6869. esac
  6870. test -z "$AS" && AS=as
  6871. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6872. test -z "$OBJDUMP" && OBJDUMP=objdump
  6873. enable_dlopen=no
  6874. # Check whether --enable-shared was given.
  6875. if test "${enable_shared+set}" = set; then :
  6876. enableval=$enable_shared; p=${PACKAGE-default}
  6877. case $enableval in
  6878. yes) enable_shared=yes ;;
  6879. no) enable_shared=no ;;
  6880. *)
  6881. enable_shared=no
  6882. # Look at the argument we got. We use all the common list separators.
  6883. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6884. for pkg in $enableval; do
  6885. IFS=$lt_save_ifs
  6886. if test "X$pkg" = "X$p"; then
  6887. enable_shared=yes
  6888. fi
  6889. done
  6890. IFS=$lt_save_ifs
  6891. ;;
  6892. esac
  6893. else
  6894. enable_shared=yes
  6895. fi
  6896. # Check whether --enable-static was given.
  6897. if test "${enable_static+set}" = set; then :
  6898. enableval=$enable_static; p=${PACKAGE-default}
  6899. case $enableval in
  6900. yes) enable_static=yes ;;
  6901. no) enable_static=no ;;
  6902. *)
  6903. enable_static=no
  6904. # Look at the argument we got. We use all the common list separators.
  6905. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6906. for pkg in $enableval; do
  6907. IFS=$lt_save_ifs
  6908. if test "X$pkg" = "X$p"; then
  6909. enable_static=yes
  6910. fi
  6911. done
  6912. IFS=$lt_save_ifs
  6913. ;;
  6914. esac
  6915. else
  6916. enable_static=yes
  6917. fi
  6918. # Check whether --with-pic was given.
  6919. if test "${with_pic+set}" = set; then :
  6920. withval=$with_pic; lt_p=${PACKAGE-default}
  6921. case $withval in
  6922. yes|no) pic_mode=$withval ;;
  6923. *)
  6924. pic_mode=default
  6925. # Look at the argument we got. We use all the common list separators.
  6926. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6927. for lt_pkg in $withval; do
  6928. IFS=$lt_save_ifs
  6929. if test "X$lt_pkg" = "X$lt_p"; then
  6930. pic_mode=yes
  6931. fi
  6932. done
  6933. IFS=$lt_save_ifs
  6934. ;;
  6935. esac
  6936. else
  6937. pic_mode=default
  6938. fi
  6939. # Check whether --enable-fast-install was given.
  6940. if test "${enable_fast_install+set}" = set; then :
  6941. enableval=$enable_fast_install; p=${PACKAGE-default}
  6942. case $enableval in
  6943. yes) enable_fast_install=yes ;;
  6944. no) enable_fast_install=no ;;
  6945. *)
  6946. enable_fast_install=no
  6947. # Look at the argument we got. We use all the common list separators.
  6948. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6949. for pkg in $enableval; do
  6950. IFS=$lt_save_ifs
  6951. if test "X$pkg" = "X$p"; then
  6952. enable_fast_install=yes
  6953. fi
  6954. done
  6955. IFS=$lt_save_ifs
  6956. ;;
  6957. esac
  6958. else
  6959. enable_fast_install=yes
  6960. fi
  6961. shared_archive_member_spec=
  6962. case $host,$enable_shared in
  6963. power*-*-aix[5-9]*,yes)
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6965. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6966. # Check whether --with-aix-soname was given.
  6967. if test "${with_aix_soname+set}" = set; then :
  6968. withval=$with_aix_soname; case $withval in
  6969. aix|svr4|both)
  6970. ;;
  6971. *)
  6972. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6973. ;;
  6974. esac
  6975. lt_cv_with_aix_soname=$with_aix_soname
  6976. else
  6977. if ${lt_cv_with_aix_soname+:} false; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. lt_cv_with_aix_soname=aix
  6981. fi
  6982. with_aix_soname=$lt_cv_with_aix_soname
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6985. $as_echo "$with_aix_soname" >&6; }
  6986. if test aix != "$with_aix_soname"; then
  6987. # For the AIX way of multilib, we name the shared archive member
  6988. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6989. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6990. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6991. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6992. if test 64 = "${OBJECT_MODE-32}"; then
  6993. shared_archive_member_spec=shr_64
  6994. else
  6995. shared_archive_member_spec=shr
  6996. fi
  6997. fi
  6998. ;;
  6999. *)
  7000. with_aix_soname=aix
  7001. ;;
  7002. esac
  7003. # This can be used to rebuild libtool when needed
  7004. LIBTOOL_DEPS=$ltmain
  7005. # Always use our own libtool.
  7006. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7007. test -z "$LN_S" && LN_S="ln -s"
  7008. if test -n "${ZSH_VERSION+set}"; then
  7009. setopt NO_GLOB_SUBST
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7012. $as_echo_n "checking for objdir... " >&6; }
  7013. if ${lt_cv_objdir+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. rm -f .libs 2>/dev/null
  7017. mkdir .libs 2>/dev/null
  7018. if test -d .libs; then
  7019. lt_cv_objdir=.libs
  7020. else
  7021. # MS-DOS does not allow filenames that begin with a dot.
  7022. lt_cv_objdir=_libs
  7023. fi
  7024. rmdir .libs 2>/dev/null
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7027. $as_echo "$lt_cv_objdir" >&6; }
  7028. objdir=$lt_cv_objdir
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define LT_OBJDIR "$lt_cv_objdir/"
  7031. _ACEOF
  7032. case $host_os in
  7033. aix3*)
  7034. # AIX sometimes has problems with the GCC collect2 program. For some
  7035. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7036. # vanish in a puff of smoke.
  7037. if test set != "${COLLECT_NAMES+set}"; then
  7038. COLLECT_NAMES=
  7039. export COLLECT_NAMES
  7040. fi
  7041. ;;
  7042. esac
  7043. # Global variables:
  7044. ofile=libtool
  7045. can_build_shared=yes
  7046. # All known linkers require a '.a' archive for static linking (except MSVC,
  7047. # which needs '.lib').
  7048. libext=a
  7049. with_gnu_ld=$lt_cv_prog_gnu_ld
  7050. old_CC=$CC
  7051. old_CFLAGS=$CFLAGS
  7052. # Set sane defaults for various variables
  7053. test -z "$CC" && CC=cc
  7054. test -z "$LTCC" && LTCC=$CC
  7055. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7056. test -z "$LD" && LD=ld
  7057. test -z "$ac_objext" && ac_objext=o
  7058. func_cc_basename $compiler
  7059. cc_basename=$func_cc_basename_result
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD=$MAGIC_CMD
  7076. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS=$lt_save_ifs
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7082. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS=$lt_save_ifs
  7109. MAGIC_CMD=$lt_save_MAGIC_CMD
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD=$MAGIC_CMD
  7134. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS=$lt_save_ifs
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f "$ac_dir/file"; then
  7140. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS=$lt_save_ifs
  7167. MAGIC_CMD=$lt_save_MAGIC_CMD
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC=$CC
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test yes = "$GCC"; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. if test yes = "$GCC"; then
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_static='-static'
  7283. case $host_os in
  7284. aix*)
  7285. # All AIX code is PIC.
  7286. if test ia64 = "$host_cpu"; then
  7287. # AIX 5 now supports IA64 processor
  7288. lt_prog_compiler_static='-Bstatic'
  7289. fi
  7290. lt_prog_compiler_pic='-fPIC'
  7291. ;;
  7292. amigaos*)
  7293. case $host_cpu in
  7294. powerpc)
  7295. # see comment about AmigaOS4 .so support
  7296. lt_prog_compiler_pic='-fPIC'
  7297. ;;
  7298. m68k)
  7299. # FIXME: we need at least 68020 code to build shared libraries, but
  7300. # adding the '-m68020' flag to GCC prevents building anything better,
  7301. # like '-m68040'.
  7302. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7303. ;;
  7304. esac
  7305. ;;
  7306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7307. # PIC is the default for these OSes.
  7308. ;;
  7309. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7310. # This hack is so that the source file can tell whether it is being
  7311. # built for inclusion in a dll (and should export symbols for example).
  7312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7313. # (--disable-auto-import) libraries
  7314. lt_prog_compiler_pic='-DDLL_EXPORT'
  7315. case $host_os in
  7316. os2*)
  7317. lt_prog_compiler_static='$wl-static'
  7318. ;;
  7319. esac
  7320. ;;
  7321. darwin* | rhapsody*)
  7322. # PIC is the default on this platform
  7323. # Common symbols not allowed in MH_DYLIB files
  7324. lt_prog_compiler_pic='-fno-common'
  7325. ;;
  7326. haiku*)
  7327. # PIC is the default for Haiku.
  7328. # The "-static" flag exists, but is broken.
  7329. lt_prog_compiler_static=
  7330. ;;
  7331. hpux*)
  7332. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7333. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7334. # sets the default TLS model and affects inlining.
  7335. case $host_cpu in
  7336. hppa*64*)
  7337. # +Z the default
  7338. ;;
  7339. *)
  7340. lt_prog_compiler_pic='-fPIC'
  7341. ;;
  7342. esac
  7343. ;;
  7344. interix[3-9]*)
  7345. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7346. # Instead, we relocate shared libraries at runtime.
  7347. ;;
  7348. msdosdjgpp*)
  7349. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7350. # on systems that don't support them.
  7351. lt_prog_compiler_can_build_shared=no
  7352. enable_shared=no
  7353. ;;
  7354. *nto* | *qnx*)
  7355. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7356. # it will coredump.
  7357. lt_prog_compiler_pic='-fPIC -shared'
  7358. ;;
  7359. sysv4*MP*)
  7360. if test -d /usr/nec; then
  7361. lt_prog_compiler_pic=-Kconform_pic
  7362. fi
  7363. ;;
  7364. *)
  7365. lt_prog_compiler_pic='-fPIC'
  7366. ;;
  7367. esac
  7368. case $cc_basename in
  7369. nvcc*) # Cuda Compiler Driver 2.2
  7370. lt_prog_compiler_wl='-Xlinker '
  7371. if test -n "$lt_prog_compiler_pic"; then
  7372. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7373. fi
  7374. ;;
  7375. esac
  7376. else
  7377. # PORTME Check for flag to pass linker flags through the system compiler.
  7378. case $host_os in
  7379. aix*)
  7380. lt_prog_compiler_wl='-Wl,'
  7381. if test ia64 = "$host_cpu"; then
  7382. # AIX 5 now supports IA64 processor
  7383. lt_prog_compiler_static='-Bstatic'
  7384. else
  7385. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7386. fi
  7387. ;;
  7388. darwin* | rhapsody*)
  7389. # PIC is the default on this platform
  7390. # Common symbols not allowed in MH_DYLIB files
  7391. lt_prog_compiler_pic='-fno-common'
  7392. case $cc_basename in
  7393. nagfor*)
  7394. # NAG Fortran compiler
  7395. lt_prog_compiler_wl='-Wl,-Wl,,'
  7396. lt_prog_compiler_pic='-PIC'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. esac
  7400. ;;
  7401. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7402. # This hack is so that the source file can tell whether it is being
  7403. # built for inclusion in a dll (and should export symbols for example).
  7404. lt_prog_compiler_pic='-DDLL_EXPORT'
  7405. case $host_os in
  7406. os2*)
  7407. lt_prog_compiler_static='$wl-static'
  7408. ;;
  7409. esac
  7410. ;;
  7411. hpux9* | hpux10* | hpux11*)
  7412. lt_prog_compiler_wl='-Wl,'
  7413. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7414. # not for PA HP-UX.
  7415. case $host_cpu in
  7416. hppa*64*|ia64*)
  7417. # +Z the default
  7418. ;;
  7419. *)
  7420. lt_prog_compiler_pic='+Z'
  7421. ;;
  7422. esac
  7423. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7424. lt_prog_compiler_static='$wl-a ${wl}archive'
  7425. ;;
  7426. irix5* | irix6* | nonstopux*)
  7427. lt_prog_compiler_wl='-Wl,'
  7428. # PIC (with -KPIC) is the default.
  7429. lt_prog_compiler_static='-non_shared'
  7430. ;;
  7431. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7432. case $cc_basename in
  7433. # old Intel for x86_64, which still supported -KPIC.
  7434. ecc*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. lt_prog_compiler_pic='-KPIC'
  7437. lt_prog_compiler_static='-static'
  7438. ;;
  7439. # icc used to be incompatible with GCC.
  7440. # ICC 10 doesn't accept -KPIC any more.
  7441. icc* | ifort*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-fPIC'
  7444. lt_prog_compiler_static='-static'
  7445. ;;
  7446. # Lahey Fortran 8.1.
  7447. lf95*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. lt_prog_compiler_pic='--shared'
  7450. lt_prog_compiler_static='--static'
  7451. ;;
  7452. nagfor*)
  7453. # NAG Fortran compiler
  7454. lt_prog_compiler_wl='-Wl,-Wl,,'
  7455. lt_prog_compiler_pic='-PIC'
  7456. lt_prog_compiler_static='-Bstatic'
  7457. ;;
  7458. tcc*)
  7459. # Fabrice Bellard et al's Tiny C Compiler
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_pic='-fPIC'
  7462. lt_prog_compiler_static='-static'
  7463. ;;
  7464. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7465. # Portland Group compilers (*not* the Pentium gcc compiler,
  7466. # which looks to be a dead project)
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-fpic'
  7469. lt_prog_compiler_static='-Bstatic'
  7470. ;;
  7471. ccc*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # All Alpha code is PIC.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. xl* | bgxl* | bgf* | mpixl*)
  7477. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='-qpic'
  7480. lt_prog_compiler_static='-qstaticlink'
  7481. ;;
  7482. *)
  7483. case `$CC -V 2>&1 | sed 5q` in
  7484. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7485. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7486. lt_prog_compiler_pic='-KPIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. lt_prog_compiler_wl=''
  7489. ;;
  7490. *Sun\ F* | *Sun*Fortran*)
  7491. lt_prog_compiler_pic='-KPIC'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. lt_prog_compiler_wl='-Qoption ld '
  7494. ;;
  7495. *Sun\ C*)
  7496. # Sun C 5.9
  7497. lt_prog_compiler_pic='-KPIC'
  7498. lt_prog_compiler_static='-Bstatic'
  7499. lt_prog_compiler_wl='-Wl,'
  7500. ;;
  7501. *Intel*\ [CF]*Compiler*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. lt_prog_compiler_pic='-fPIC'
  7504. lt_prog_compiler_static='-static'
  7505. ;;
  7506. *Portland\ Group*)
  7507. lt_prog_compiler_wl='-Wl,'
  7508. lt_prog_compiler_pic='-fpic'
  7509. lt_prog_compiler_static='-Bstatic'
  7510. ;;
  7511. esac
  7512. ;;
  7513. esac
  7514. ;;
  7515. newsos6)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. *nto* | *qnx*)
  7520. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7521. # it will coredump.
  7522. lt_prog_compiler_pic='-fPIC -shared'
  7523. ;;
  7524. osf3* | osf4* | osf5*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. # All OSF/1 code is PIC.
  7527. lt_prog_compiler_static='-non_shared'
  7528. ;;
  7529. rdos*)
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. solaris*)
  7533. lt_prog_compiler_pic='-KPIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. case $cc_basename in
  7536. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7537. lt_prog_compiler_wl='-Qoption ld ';;
  7538. *)
  7539. lt_prog_compiler_wl='-Wl,';;
  7540. esac
  7541. ;;
  7542. sunos4*)
  7543. lt_prog_compiler_wl='-Qoption ld '
  7544. lt_prog_compiler_pic='-PIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. sysv4 | sysv4.2uw2* | sysv4.3*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec; then
  7554. lt_prog_compiler_pic='-Kconform_pic'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. unicos*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. uts4*)
  7568. lt_prog_compiler_pic='-pic'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. esac
  7575. fi
  7576. case $host_os in
  7577. # For platforms that do not support PIC, -DPIC is meaningless:
  7578. *djgpp*)
  7579. lt_prog_compiler_pic=
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7583. ;;
  7584. esac
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7587. if ${lt_cv_prog_compiler_pic+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7593. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7594. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7595. #
  7596. # Check to make sure the PIC flag actually works.
  7597. #
  7598. if test -n "$lt_prog_compiler_pic"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7601. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. lt_cv_prog_compiler_pic_works=no
  7605. ac_outfile=conftest.$ac_objext
  7606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7607. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7608. # Insert the option either (1) after the last *FLAGS variable, or
  7609. # (2) before a word containing "conftest.", or (3) at the end.
  7610. # Note that $ac_compile itself does not contain backslashes and begins
  7611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7612. # The option is referenced via a variable to avoid confusing sed.
  7613. lt_compile=`echo "$ac_compile" | $SED \
  7614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7616. -e 's:$: $lt_compiler_flag:'`
  7617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7618. (eval "$lt_compile" 2>conftest.err)
  7619. ac_status=$?
  7620. cat conftest.err >&5
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. if (exit $ac_status) && test -s "$ac_outfile"; then
  7623. # The compiler can only warn and ignore the option if not recognized
  7624. # So say no if there are warnings other than the usual output.
  7625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7628. lt_cv_prog_compiler_pic_works=yes
  7629. fi
  7630. fi
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7634. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7635. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7636. case $lt_prog_compiler_pic in
  7637. "" | " "*) ;;
  7638. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7639. esac
  7640. else
  7641. lt_prog_compiler_pic=
  7642. lt_prog_compiler_can_build_shared=no
  7643. fi
  7644. fi
  7645. #
  7646. # Check to make sure the static flag actually works.
  7647. #
  7648. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7651. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_prog_compiler_static_works=no
  7655. save_LDFLAGS=$LDFLAGS
  7656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7659. # The linker can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings
  7661. if test -s conftest.err; then
  7662. # Append any errors to the config.log.
  7663. cat conftest.err 1>&5
  7664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_static_works=yes
  7668. fi
  7669. else
  7670. lt_cv_prog_compiler_static_works=yes
  7671. fi
  7672. fi
  7673. $RM -r conftest*
  7674. LDFLAGS=$save_LDFLAGS
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7677. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7678. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7679. :
  7680. else
  7681. lt_prog_compiler_static=
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7685. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. lt_cv_prog_compiler_c_o=no
  7689. $RM -r conftest 2>/dev/null
  7690. mkdir conftest
  7691. cd conftest
  7692. mkdir out
  7693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7695. # Insert the option either (1) after the last *FLAGS variable, or
  7696. # (2) before a word containing "conftest.", or (3) at the end.
  7697. # Note that $ac_compile itself does not contain backslashes and begins
  7698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7699. lt_compile=`echo "$ac_compile" | $SED \
  7700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7702. -e 's:$: $lt_compiler_flag:'`
  7703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7704. (eval "$lt_compile" 2>out/conftest.err)
  7705. ac_status=$?
  7706. cat out/conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7709. then
  7710. # The compiler can only warn and ignore the option if not recognized
  7711. # So say no if there are warnings
  7712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_c_o=yes
  7716. fi
  7717. fi
  7718. chmod u+w . 2>&5
  7719. $RM conftest*
  7720. # SGI C++ compiler will create directory out/ii_files/ for
  7721. # template instantiation
  7722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7723. $RM out/* && rmdir out
  7724. cd ..
  7725. $RM -r conftest
  7726. $RM conftest*
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7729. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7732. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_prog_compiler_c_o=no
  7736. $RM -r conftest 2>/dev/null
  7737. mkdir conftest
  7738. cd conftest
  7739. mkdir out
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. lt_compile=`echo "$ac_compile" | $SED \
  7747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7749. -e 's:$: $lt_compiler_flag:'`
  7750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7751. (eval "$lt_compile" 2>out/conftest.err)
  7752. ac_status=$?
  7753. cat out/conftest.err >&5
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7756. then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_c_o=yes
  7763. fi
  7764. fi
  7765. chmod u+w . 2>&5
  7766. $RM conftest*
  7767. # SGI C++ compiler will create directory out/ii_files/ for
  7768. # template instantiation
  7769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7770. $RM out/* && rmdir out
  7771. cd ..
  7772. $RM -r conftest
  7773. $RM conftest*
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7776. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7777. hard_links=nottested
  7778. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7779. # do not overwrite the value of need_locks provided by the user
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7782. hard_links=yes
  7783. $RM conftest*
  7784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7785. touch conftest.a
  7786. ln conftest.a conftest.b 2>&5 || hard_links=no
  7787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7789. $as_echo "$hard_links" >&6; }
  7790. if test no = "$hard_links"; then
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7792. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7793. need_locks=warn
  7794. fi
  7795. else
  7796. need_locks=no
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7800. runpath_var=
  7801. allow_undefined_flag=
  7802. always_export_symbols=no
  7803. archive_cmds=
  7804. archive_expsym_cmds=
  7805. compiler_needs_object=no
  7806. enable_shared_with_static_runtimes=no
  7807. export_dynamic_flag_spec=
  7808. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7809. hardcode_automatic=no
  7810. hardcode_direct=no
  7811. hardcode_direct_absolute=no
  7812. hardcode_libdir_flag_spec=
  7813. hardcode_libdir_separator=
  7814. hardcode_minus_L=no
  7815. hardcode_shlibpath_var=unsupported
  7816. inherit_rpath=no
  7817. link_all_deplibs=unknown
  7818. module_cmds=
  7819. module_expsym_cmds=
  7820. old_archive_from_new_cmds=
  7821. old_archive_from_expsyms_cmds=
  7822. thread_safe_flag_spec=
  7823. whole_archive_flag_spec=
  7824. # include_expsyms should be a list of space-separated symbols to be *always*
  7825. # included in the symbol list
  7826. include_expsyms=
  7827. # exclude_expsyms can be an extended regexp of symbols to exclude
  7828. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7829. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7830. # as well as any symbol that contains 'd'.
  7831. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7832. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7833. # platforms (ab)use it in PIC code, but their linkers get confused if
  7834. # the symbol is explicitly referenced. Since portable code cannot
  7835. # rely on this symbol name, it's probably fine to never include it in
  7836. # preloaded symbol tables.
  7837. # Exclude shared library initialization/finalization symbols.
  7838. extract_expsyms_cmds=
  7839. case $host_os in
  7840. cygwin* | mingw* | pw32* | cegcc*)
  7841. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7842. # When not using gcc, we currently assume that we are using
  7843. # Microsoft Visual C++.
  7844. if test yes != "$GCC"; then
  7845. with_gnu_ld=no
  7846. fi
  7847. ;;
  7848. interix*)
  7849. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7850. with_gnu_ld=yes
  7851. ;;
  7852. openbsd* | bitrig*)
  7853. with_gnu_ld=no
  7854. ;;
  7855. esac
  7856. ld_shlibs=yes
  7857. # On some targets, GNU ld is compatible enough with the native linker
  7858. # that we're better off using the native interface for both.
  7859. lt_use_gnu_ld_interface=no
  7860. if test yes = "$with_gnu_ld"; then
  7861. case $host_os in
  7862. aix*)
  7863. # The AIX port of GNU ld has always aspired to compatibility
  7864. # with the native linker. However, as the warning in the GNU ld
  7865. # block says, versions before 2.19.5* couldn't really create working
  7866. # shared libraries, regardless of the interface used.
  7867. case `$LD -v 2>&1` in
  7868. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7869. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7870. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7871. *)
  7872. lt_use_gnu_ld_interface=yes
  7873. ;;
  7874. esac
  7875. ;;
  7876. *)
  7877. lt_use_gnu_ld_interface=yes
  7878. ;;
  7879. esac
  7880. fi
  7881. if test yes = "$lt_use_gnu_ld_interface"; then
  7882. # If archive_cmds runs LD, not CC, wlarc should be empty
  7883. wlarc='$wl'
  7884. # Set some defaults for GNU ld with shared library support. These
  7885. # are reset later if shared libraries are not supported. Putting them
  7886. # here allows them to be overridden if necessary.
  7887. runpath_var=LD_RUN_PATH
  7888. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7889. export_dynamic_flag_spec='$wl--export-dynamic'
  7890. # ancient GNU ld didn't support --whole-archive et. al.
  7891. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7892. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7893. else
  7894. whole_archive_flag_spec=
  7895. fi
  7896. supports_anon_versioning=no
  7897. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7898. *GNU\ gold*) supports_anon_versioning=yes ;;
  7899. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7900. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7901. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7902. *\ 2.11.*) ;; # other 2.11 versions
  7903. *) supports_anon_versioning=yes ;;
  7904. esac
  7905. # See if GNU ld supports shared libraries.
  7906. case $host_os in
  7907. aix[3-9]*)
  7908. # On AIX/PPC, the GNU linker is very broken
  7909. if test ia64 != "$host_cpu"; then
  7910. ld_shlibs=no
  7911. cat <<_LT_EOF 1>&2
  7912. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7913. *** to be unable to reliably create shared libraries on AIX.
  7914. *** Therefore, libtool is disabling shared libraries support. If you
  7915. *** really care for shared libraries, you may want to install binutils
  7916. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7917. *** You will then need to restart the configuration process.
  7918. _LT_EOF
  7919. fi
  7920. ;;
  7921. amigaos*)
  7922. case $host_cpu in
  7923. powerpc)
  7924. # see comment about AmigaOS4 .so support
  7925. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7926. archive_expsym_cmds=''
  7927. ;;
  7928. m68k)
  7929. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_minus_L=yes
  7932. ;;
  7933. esac
  7934. ;;
  7935. beos*)
  7936. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7937. allow_undefined_flag=unsupported
  7938. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7939. # support --undefined. This deserves some investigation. FIXME
  7940. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7941. else
  7942. ld_shlibs=no
  7943. fi
  7944. ;;
  7945. cygwin* | mingw* | pw32* | cegcc*)
  7946. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7947. # as there is no search path for DLLs.
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. export_dynamic_flag_spec='$wl--export-all-symbols'
  7950. allow_undefined_flag=unsupported
  7951. always_export_symbols=no
  7952. enable_shared_with_static_runtimes=yes
  7953. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7954. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7955. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7957. # If the export-symbols file already is a .def file, use it as
  7958. # is; otherwise, prepend EXPORTS...
  7959. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7960. cp $export_symbols $output_objdir/$soname.def;
  7961. else
  7962. echo EXPORTS > $output_objdir/$soname.def;
  7963. cat $export_symbols >> $output_objdir/$soname.def;
  7964. fi~
  7965. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7966. else
  7967. ld_shlibs=no
  7968. fi
  7969. ;;
  7970. haiku*)
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7972. link_all_deplibs=yes
  7973. ;;
  7974. os2*)
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. allow_undefined_flag=unsupported
  7978. shrext_cmds=.dll
  7979. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7980. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7981. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7982. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7983. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7984. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7985. emximp -o $lib $output_objdir/$libname.def'
  7986. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7987. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7988. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7989. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7990. prefix_cmds="$SED"~
  7991. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7992. prefix_cmds="$prefix_cmds -e 1d";
  7993. fi~
  7994. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7995. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7996. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7997. emximp -o $lib $output_objdir/$libname.def'
  7998. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7999. enable_shared_with_static_runtimes=yes
  8000. file_list_spec='@'
  8001. ;;
  8002. interix[3-9]*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8006. export_dynamic_flag_spec='$wl-E'
  8007. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8008. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8009. # default) and relocated if they conflict, which is a slow very memory
  8010. # consuming and fragmenting process. To avoid this, we pick a random,
  8011. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8012. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8013. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8014. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8015. ;;
  8016. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8017. tmp_diet=no
  8018. if test linux-dietlibc = "$host_os"; then
  8019. case $cc_basename in
  8020. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8021. esac
  8022. fi
  8023. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8024. && test no = "$tmp_diet"
  8025. then
  8026. tmp_addflag=' $pic_flag'
  8027. tmp_sharedflag='-shared'
  8028. case $cc_basename,$host_cpu in
  8029. pgcc*) # Portland Group C compiler
  8030. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8031. tmp_addflag=' $pic_flag'
  8032. ;;
  8033. pgf77* | pgf90* | pgf95* | pgfortran*)
  8034. # Portland Group f77 and f90 compilers
  8035. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8036. tmp_addflag=' $pic_flag -Mnomain' ;;
  8037. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8038. tmp_addflag=' -i_dynamic' ;;
  8039. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8040. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8041. ifc* | ifort*) # Intel Fortran compiler
  8042. tmp_addflag=' -nofor_main' ;;
  8043. lf95*) # Lahey Fortran 8.1
  8044. whole_archive_flag_spec=
  8045. tmp_sharedflag='--shared' ;;
  8046. nagfor*) # NAGFOR 5.3
  8047. tmp_sharedflag='-Wl,-shared' ;;
  8048. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8049. tmp_sharedflag='-qmkshrobj'
  8050. tmp_addflag= ;;
  8051. nvcc*) # Cuda Compiler Driver 2.2
  8052. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8053. compiler_needs_object=yes
  8054. ;;
  8055. esac
  8056. case `$CC -V 2>&1 | sed 5q` in
  8057. *Sun\ C*) # Sun C 5.9
  8058. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8059. compiler_needs_object=yes
  8060. tmp_sharedflag='-G' ;;
  8061. *Sun\ F*) # Sun Fortran 8.3
  8062. tmp_sharedflag='-G' ;;
  8063. esac
  8064. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8065. if test yes = "$supports_anon_versioning"; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. case $cc_basename in
  8072. tcc*)
  8073. export_dynamic_flag_spec='-rdynamic'
  8074. ;;
  8075. xlf* | bgf* | bgxlf* | mpixlf*)
  8076. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8077. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8078. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8079. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8080. if test yes = "$supports_anon_versioning"; then
  8081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8083. echo "local: *; };" >> $output_objdir/$libname.ver~
  8084. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. netbsd*)
  8093. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8094. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8095. wlarc=
  8096. else
  8097. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8098. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8099. fi
  8100. ;;
  8101. solaris*)
  8102. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8103. ld_shlibs=no
  8104. cat <<_LT_EOF 1>&2
  8105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8106. *** create shared libraries on Solaris systems. Therefore, libtool
  8107. *** is disabling shared libraries support. We urge you to upgrade GNU
  8108. *** binutils to release 2.9.1 or newer. Another option is to modify
  8109. *** your PATH or compiler configuration so that the native linker is
  8110. *** used, and then restart.
  8111. _LT_EOF
  8112. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8120. case `$LD -v 2>&1` in
  8121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8122. ld_shlibs=no
  8123. cat <<_LT_EOF 1>&2
  8124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8126. *** is disabling shared libraries support. We urge you to upgrade GNU
  8127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8128. *** your PATH or compiler configuration so that the native linker is
  8129. *** used, and then restart.
  8130. _LT_EOF
  8131. ;;
  8132. *)
  8133. # For security reasons, it is highly recommended that you always
  8134. # use absolute paths for naming shared libraries, and exclude the
  8135. # DT_RUNPATH tag from executables and libraries. But doing so
  8136. # requires that you compile everything twice, which is a pain.
  8137. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8138. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8141. else
  8142. ld_shlibs=no
  8143. fi
  8144. ;;
  8145. esac
  8146. ;;
  8147. sunos4*)
  8148. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8149. wlarc=
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8156. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8157. else
  8158. ld_shlibs=no
  8159. fi
  8160. ;;
  8161. esac
  8162. if test no = "$ld_shlibs"; then
  8163. runpath_var=
  8164. hardcode_libdir_flag_spec=
  8165. export_dynamic_flag_spec=
  8166. whole_archive_flag_spec=
  8167. fi
  8168. else
  8169. # PORTME fill in a description of your system's linker (not GNU ld)
  8170. case $host_os in
  8171. aix3*)
  8172. allow_undefined_flag=unsupported
  8173. always_export_symbols=yes
  8174. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8175. # Note: this linker hardcodes the directories in LIBPATH if there
  8176. # are no directories specified by -L.
  8177. hardcode_minus_L=yes
  8178. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8179. # Neither direct hardcoding nor static linking is supported with a
  8180. # broken collect2.
  8181. hardcode_direct=unsupported
  8182. fi
  8183. ;;
  8184. aix[4-9]*)
  8185. if test ia64 = "$host_cpu"; then
  8186. # On IA64, the linker does run time linking by default, so we don't
  8187. # have to do anything special.
  8188. aix_use_runtimelinking=no
  8189. exp_sym_flag='-Bexport'
  8190. no_entry_flag=
  8191. else
  8192. # If we're using GNU nm, then we don't want the "-C" option.
  8193. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8194. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8195. # weak defined symbols like other global defined symbols, whereas
  8196. # GNU nm marks them as "W".
  8197. # While the 'weak' keyword is ignored in the Export File, we need
  8198. # it in the Import File for the 'aix-soname' feature, so we have
  8199. # to replace the "-B" option with "-P" for AIX nm.
  8200. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8201. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8202. else
  8203. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8204. fi
  8205. aix_use_runtimelinking=no
  8206. # Test if we are trying to use run time linking or normal
  8207. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8208. # have runtime linking enabled, and use it for executables.
  8209. # For shared libraries, we enable/disable runtime linking
  8210. # depending on the kind of the shared library created -
  8211. # when "with_aix_soname,aix_use_runtimelinking" is:
  8212. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "aix,yes" lib.so shared, rtl:yes, for executables
  8214. # lib.a static archive
  8215. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8216. # lib.a(lib.so.V) shared, rtl:no, for executables
  8217. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8218. # lib.a(lib.so.V) shared, rtl:no
  8219. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a static archive
  8221. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8222. for ld_flag in $LDFLAGS; do
  8223. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8224. aix_use_runtimelinking=yes
  8225. break
  8226. fi
  8227. done
  8228. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8229. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8230. # so we don't have lib.a shared libs to link our executables.
  8231. # We have to force runtime linking in this case.
  8232. aix_use_runtimelinking=yes
  8233. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8234. fi
  8235. ;;
  8236. esac
  8237. exp_sym_flag='-bexport'
  8238. no_entry_flag='-bnoentry'
  8239. fi
  8240. # When large executables or shared objects are built, AIX ld can
  8241. # have problems creating the table of contents. If linking a library
  8242. # or program results in "error TOC overflow" add -mminimal-toc to
  8243. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8244. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8245. archive_cmds=''
  8246. hardcode_direct=yes
  8247. hardcode_direct_absolute=yes
  8248. hardcode_libdir_separator=':'
  8249. link_all_deplibs=yes
  8250. file_list_spec='$wl-f,'
  8251. case $with_aix_soname,$aix_use_runtimelinking in
  8252. aix,*) ;; # traditional, no import file
  8253. svr4,* | *,yes) # use import file
  8254. # The Import File defines what to hardcode.
  8255. hardcode_direct=no
  8256. hardcode_direct_absolute=no
  8257. ;;
  8258. esac
  8259. if test yes = "$GCC"; then
  8260. case $host_os in aix4.[012]|aix4.[012].*)
  8261. # We only want to do this on AIX 4.2 and lower, the check
  8262. # below for broken collect2 doesn't work under 4.3+
  8263. collect2name=`$CC -print-prog-name=collect2`
  8264. if test -f "$collect2name" &&
  8265. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8266. then
  8267. # We have reworked collect2
  8268. :
  8269. else
  8270. # We have old collect2
  8271. hardcode_direct=unsupported
  8272. # It fails to find uninstalled libraries when the uninstalled
  8273. # path is not listed in the libpath. Setting hardcode_minus_L
  8274. # to unsupported forces relinking
  8275. hardcode_minus_L=yes
  8276. hardcode_libdir_flag_spec='-L$libdir'
  8277. hardcode_libdir_separator=
  8278. fi
  8279. ;;
  8280. esac
  8281. shared_flag='-shared'
  8282. if test yes = "$aix_use_runtimelinking"; then
  8283. shared_flag="$shared_flag "'$wl-G'
  8284. fi
  8285. # Need to ensure runtime linking is disabled for the traditional
  8286. # shared library, or the linker may eventually find shared libraries
  8287. # /with/ Import File - we do not want to mix them.
  8288. shared_flag_aix='-shared'
  8289. shared_flag_svr4='-shared $wl-G'
  8290. else
  8291. # not using gcc
  8292. if test ia64 = "$host_cpu"; then
  8293. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8294. # chokes on -Wl,-G. The following line is correct:
  8295. shared_flag='-G'
  8296. else
  8297. if test yes = "$aix_use_runtimelinking"; then
  8298. shared_flag='$wl-G'
  8299. else
  8300. shared_flag='$wl-bM:SRE'
  8301. fi
  8302. shared_flag_aix='$wl-bM:SRE'
  8303. shared_flag_svr4='$wl-G'
  8304. fi
  8305. fi
  8306. export_dynamic_flag_spec='$wl-bexpall'
  8307. # It seems that -bexpall does not export symbols beginning with
  8308. # underscore (_), so it is better to generate a list of symbols to export.
  8309. always_export_symbols=yes
  8310. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8311. # Warning - without using the other runtime loading flags (-brtl),
  8312. # -berok will link without error, but may produce a broken library.
  8313. allow_undefined_flag='-berok'
  8314. # Determine the default libpath from the value encoded in an
  8315. # empty executable.
  8316. if test set = "${lt_cv_aix_libpath+set}"; then
  8317. aix_libpath=$lt_cv_aix_libpath
  8318. else
  8319. if ${lt_cv_aix_libpath_+:} false; then :
  8320. $as_echo_n "(cached) " >&6
  8321. else
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int
  8325. main ()
  8326. {
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. if ac_fn_c_try_link "$LINENO"; then :
  8332. lt_aix_libpath_sed='
  8333. /Import File Strings/,/^$/ {
  8334. /^0/ {
  8335. s/^0 *\([^ ]*\) *$/\1/
  8336. p
  8337. }
  8338. }'
  8339. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8340. # Check for a 64-bit object if we didn't find anything.
  8341. if test -z "$lt_cv_aix_libpath_"; then
  8342. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8343. fi
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext \
  8346. conftest$ac_exeext conftest.$ac_ext
  8347. if test -z "$lt_cv_aix_libpath_"; then
  8348. lt_cv_aix_libpath_=/usr/lib:/lib
  8349. fi
  8350. fi
  8351. aix_libpath=$lt_cv_aix_libpath_
  8352. fi
  8353. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8354. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8355. else
  8356. if test ia64 = "$host_cpu"; then
  8357. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8358. allow_undefined_flag="-z nodefs"
  8359. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  8360. else
  8361. # Determine the default libpath from the value encoded in an
  8362. # empty executable.
  8363. if test set = "${lt_cv_aix_libpath+set}"; then
  8364. aix_libpath=$lt_cv_aix_libpath
  8365. else
  8366. if ${lt_cv_aix_libpath_+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int
  8372. main ()
  8373. {
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. if ac_fn_c_try_link "$LINENO"; then :
  8379. lt_aix_libpath_sed='
  8380. /Import File Strings/,/^$/ {
  8381. /^0/ {
  8382. s/^0 *\([^ ]*\) *$/\1/
  8383. p
  8384. }
  8385. }'
  8386. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. # Check for a 64-bit object if we didn't find anything.
  8388. if test -z "$lt_cv_aix_libpath_"; then
  8389. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. fi
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. if test -z "$lt_cv_aix_libpath_"; then
  8395. lt_cv_aix_libpath_=/usr/lib:/lib
  8396. fi
  8397. fi
  8398. aix_libpath=$lt_cv_aix_libpath_
  8399. fi
  8400. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8401. # Warning - without using the other run time loading flags,
  8402. # -berok will link without error, but may produce a broken library.
  8403. no_undefined_flag=' $wl-bernotok'
  8404. allow_undefined_flag=' $wl-berok'
  8405. if test yes = "$with_gnu_ld"; then
  8406. # We only use this code for GNU lds that support --whole-archive.
  8407. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8408. else
  8409. # Exported symbols can be pulled into shared objects from archives
  8410. whole_archive_flag_spec='$convenience'
  8411. fi
  8412. archive_cmds_need_lc=yes
  8413. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8414. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8415. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8416. if test svr4 != "$with_aix_soname"; then
  8417. # This is similar to how AIX traditionally builds its shared libraries.
  8418. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8419. fi
  8420. if test aix != "$with_aix_soname"; then
  8421. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8422. else
  8423. # used by -dlpreopen to get the symbols
  8424. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8425. fi
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8427. fi
  8428. fi
  8429. ;;
  8430. amigaos*)
  8431. case $host_cpu in
  8432. powerpc)
  8433. # see comment about AmigaOS4 .so support
  8434. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8435. archive_expsym_cmds=''
  8436. ;;
  8437. m68k)
  8438. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8439. hardcode_libdir_flag_spec='-L$libdir'
  8440. hardcode_minus_L=yes
  8441. ;;
  8442. esac
  8443. ;;
  8444. bsdi[45]*)
  8445. export_dynamic_flag_spec=-rdynamic
  8446. ;;
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # When not using gcc, we currently assume that we are using
  8449. # Microsoft Visual C++.
  8450. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8451. # no search path for DLLs.
  8452. case $cc_basename in
  8453. cl*)
  8454. # Native MSVC
  8455. hardcode_libdir_flag_spec=' '
  8456. allow_undefined_flag=unsupported
  8457. always_export_symbols=yes
  8458. file_list_spec='@'
  8459. # Tell ltmain to make .lib files, not .a files.
  8460. libext=lib
  8461. # Tell ltmain to make .dll files, not .so files.
  8462. shrext_cmds=.dll
  8463. # FIXME: Setting linknames here is a bad hack.
  8464. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8465. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8466. cp "$export_symbols" "$output_objdir/$soname.def";
  8467. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8468. else
  8469. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8470. fi~
  8471. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8472. linknames='
  8473. # The linker will not automatically build a static lib if we build a DLL.
  8474. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8475. enable_shared_with_static_runtimes=yes
  8476. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8478. # Don't use ranlib
  8479. old_postinstall_cmds='chmod 644 $oldlib'
  8480. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8481. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8482. case $lt_outputfile in
  8483. *.exe|*.EXE) ;;
  8484. *)
  8485. lt_outputfile=$lt_outputfile.exe
  8486. lt_tool_outputfile=$lt_tool_outputfile.exe
  8487. ;;
  8488. esac~
  8489. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8490. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8491. $RM "$lt_outputfile.manifest";
  8492. fi'
  8493. ;;
  8494. *)
  8495. # Assume MSVC wrapper
  8496. hardcode_libdir_flag_spec=' '
  8497. allow_undefined_flag=unsupported
  8498. # Tell ltmain to make .lib files, not .a files.
  8499. libext=lib
  8500. # Tell ltmain to make .dll files, not .so files.
  8501. shrext_cmds=.dll
  8502. # FIXME: Setting linknames here is a bad hack.
  8503. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8504. # The linker will automatically build a .lib file if we build a DLL.
  8505. old_archive_from_new_cmds='true'
  8506. # FIXME: Should let the user specify the lib program.
  8507. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8508. enable_shared_with_static_runtimes=yes
  8509. ;;
  8510. esac
  8511. ;;
  8512. darwin* | rhapsody*)
  8513. archive_cmds_need_lc=no
  8514. hardcode_direct=no
  8515. hardcode_automatic=yes
  8516. hardcode_shlibpath_var=unsupported
  8517. if test yes = "$lt_cv_ld_force_load"; then
  8518. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8519. else
  8520. whole_archive_flag_spec=''
  8521. fi
  8522. link_all_deplibs=yes
  8523. allow_undefined_flag=$_lt_dar_allow_undefined
  8524. case $cc_basename in
  8525. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8526. *) _lt_dar_can_shared=$GCC ;;
  8527. esac
  8528. if test yes = "$_lt_dar_can_shared"; then
  8529. output_verbose_link_cmd=func_echo_all
  8530. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8531. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8532. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  8533. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  8534. else
  8535. ld_shlibs=no
  8536. fi
  8537. ;;
  8538. dgux*)
  8539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8544. # support. Future versions do this automatically, but an explicit c++rt0.o
  8545. # does not break anything, and helps significantly (at the cost of a little
  8546. # extra space).
  8547. freebsd2.2*)
  8548. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8549. hardcode_libdir_flag_spec='-R$libdir'
  8550. hardcode_direct=yes
  8551. hardcode_shlibpath_var=no
  8552. ;;
  8553. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8554. freebsd2.*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8556. hardcode_direct=yes
  8557. hardcode_minus_L=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8561. freebsd* | dragonfly* | midnightbsd*)
  8562. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8563. hardcode_libdir_flag_spec='-R$libdir'
  8564. hardcode_direct=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. hpux9*)
  8568. if test yes = "$GCC"; then
  8569. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8570. else
  8571. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8572. fi
  8573. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8574. hardcode_libdir_separator=:
  8575. hardcode_direct=yes
  8576. # hardcode_minus_L: Not really in the search PATH,
  8577. # but as the default location of the library.
  8578. hardcode_minus_L=yes
  8579. export_dynamic_flag_spec='$wl-E'
  8580. ;;
  8581. hpux10*)
  8582. if test yes,no = "$GCC,$with_gnu_ld"; then
  8583. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8584. else
  8585. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8586. fi
  8587. if test no = "$with_gnu_ld"; then
  8588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8589. hardcode_libdir_separator=:
  8590. hardcode_direct=yes
  8591. hardcode_direct_absolute=yes
  8592. export_dynamic_flag_spec='$wl-E'
  8593. # hardcode_minus_L: Not really in the search PATH,
  8594. # but as the default location of the library.
  8595. hardcode_minus_L=yes
  8596. fi
  8597. ;;
  8598. hpux11*)
  8599. if test yes,no = "$GCC,$with_gnu_ld"; then
  8600. case $host_cpu in
  8601. hppa*64*)
  8602. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8603. ;;
  8604. ia64*)
  8605. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. *)
  8608. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8609. ;;
  8610. esac
  8611. else
  8612. case $host_cpu in
  8613. hppa*64*)
  8614. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8615. ;;
  8616. ia64*)
  8617. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8618. ;;
  8619. *)
  8620. # Older versions of the 11.00 compiler do not understand -b yet
  8621. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8623. $as_echo_n "checking if $CC understands -b... " >&6; }
  8624. if ${lt_cv_prog_compiler__b+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. lt_cv_prog_compiler__b=no
  8628. save_LDFLAGS=$LDFLAGS
  8629. LDFLAGS="$LDFLAGS -b"
  8630. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8631. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8632. # The linker can only warn and ignore the option if not recognized
  8633. # So say no if there are warnings
  8634. if test -s conftest.err; then
  8635. # Append any errors to the config.log.
  8636. cat conftest.err 1>&5
  8637. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8639. if diff conftest.exp conftest.er2 >/dev/null; then
  8640. lt_cv_prog_compiler__b=yes
  8641. fi
  8642. else
  8643. lt_cv_prog_compiler__b=yes
  8644. fi
  8645. fi
  8646. $RM -r conftest*
  8647. LDFLAGS=$save_LDFLAGS
  8648. fi
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8650. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8651. if test yes = "$lt_cv_prog_compiler__b"; then
  8652. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8653. else
  8654. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8655. fi
  8656. ;;
  8657. esac
  8658. fi
  8659. if test no = "$with_gnu_ld"; then
  8660. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8661. hardcode_libdir_separator=:
  8662. case $host_cpu in
  8663. hppa*64*|ia64*)
  8664. hardcode_direct=no
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. *)
  8668. hardcode_direct=yes
  8669. hardcode_direct_absolute=yes
  8670. export_dynamic_flag_spec='$wl-E'
  8671. # hardcode_minus_L: Not really in the search PATH,
  8672. # but as the default location of the library.
  8673. hardcode_minus_L=yes
  8674. ;;
  8675. esac
  8676. fi
  8677. ;;
  8678. irix5* | irix6* | nonstopux*)
  8679. if test yes = "$GCC"; then
  8680. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8681. # Try to use the -exported_symbol ld option, if it does not
  8682. # work, assume that -exports_file does not work either and
  8683. # implicitly export all symbols.
  8684. # This should be the same for all languages, so no per-tag cache variable.
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8686. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8687. if ${lt_cv_irix_exported_symbol+:} false; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. save_LDFLAGS=$LDFLAGS
  8691. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8693. /* end confdefs.h. */
  8694. int foo (void) { return 0; }
  8695. _ACEOF
  8696. if ac_fn_c_try_link "$LINENO"; then :
  8697. lt_cv_irix_exported_symbol=yes
  8698. else
  8699. lt_cv_irix_exported_symbol=no
  8700. fi
  8701. rm -f core conftest.err conftest.$ac_objext \
  8702. conftest$ac_exeext conftest.$ac_ext
  8703. LDFLAGS=$save_LDFLAGS
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8706. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8707. if test yes = "$lt_cv_irix_exported_symbol"; then
  8708. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8709. fi
  8710. else
  8711. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8712. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  8713. fi
  8714. archive_cmds_need_lc='no'
  8715. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8716. hardcode_libdir_separator=:
  8717. inherit_rpath=yes
  8718. link_all_deplibs=yes
  8719. ;;
  8720. linux*)
  8721. case $cc_basename in
  8722. tcc*)
  8723. # Fabrice Bellard et al's Tiny C Compiler
  8724. ld_shlibs=yes
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. ;;
  8727. esac
  8728. ;;
  8729. netbsd*)
  8730. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8731. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8732. else
  8733. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8734. fi
  8735. hardcode_libdir_flag_spec='-R$libdir'
  8736. hardcode_direct=yes
  8737. hardcode_shlibpath_var=no
  8738. ;;
  8739. newsos6)
  8740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8741. hardcode_direct=yes
  8742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8743. hardcode_libdir_separator=:
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. *nto* | *qnx*)
  8747. ;;
  8748. openbsd* | bitrig*)
  8749. if test -f /usr/libexec/ld.so; then
  8750. hardcode_direct=yes
  8751. hardcode_shlibpath_var=no
  8752. hardcode_direct_absolute=yes
  8753. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8754. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8755. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. export_dynamic_flag_spec='$wl-E'
  8758. else
  8759. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8761. fi
  8762. else
  8763. ld_shlibs=no
  8764. fi
  8765. ;;
  8766. os2*)
  8767. hardcode_libdir_flag_spec='-L$libdir'
  8768. hardcode_minus_L=yes
  8769. allow_undefined_flag=unsupported
  8770. shrext_cmds=.dll
  8771. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8772. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8773. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8774. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8775. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8776. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8777. emximp -o $lib $output_objdir/$libname.def'
  8778. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8779. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8780. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8781. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8782. prefix_cmds="$SED"~
  8783. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8784. prefix_cmds="$prefix_cmds -e 1d";
  8785. fi~
  8786. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8787. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8788. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8789. emximp -o $lib $output_objdir/$libname.def'
  8790. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8791. enable_shared_with_static_runtimes=yes
  8792. file_list_spec='@'
  8793. ;;
  8794. osf3*)
  8795. if test yes = "$GCC"; then
  8796. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8797. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8798. else
  8799. allow_undefined_flag=' -expect_unresolved \*'
  8800. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8801. fi
  8802. archive_cmds_need_lc='no'
  8803. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8804. hardcode_libdir_separator=:
  8805. ;;
  8806. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8807. if test yes = "$GCC"; then
  8808. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8809. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. else
  8812. allow_undefined_flag=' -expect_unresolved \*'
  8813. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8814. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8815. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  8816. # Both c and cxx compiler support -rpath directly
  8817. hardcode_libdir_flag_spec='-rpath $libdir'
  8818. fi
  8819. archive_cmds_need_lc='no'
  8820. hardcode_libdir_separator=:
  8821. ;;
  8822. solaris*)
  8823. no_undefined_flag=' -z defs'
  8824. if test yes = "$GCC"; then
  8825. wlarc='$wl'
  8826. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8828. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8829. else
  8830. case `$CC -V 2>&1` in
  8831. *"Compilers 5.0"*)
  8832. wlarc=''
  8833. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8836. ;;
  8837. *)
  8838. wlarc='$wl'
  8839. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8841. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8842. ;;
  8843. esac
  8844. fi
  8845. hardcode_libdir_flag_spec='-R$libdir'
  8846. hardcode_shlibpath_var=no
  8847. case $host_os in
  8848. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8849. *)
  8850. # The compiler driver will combine and reorder linker options,
  8851. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8852. # but is careful enough not to reorder.
  8853. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8854. if test yes = "$GCC"; then
  8855. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8856. else
  8857. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8858. fi
  8859. ;;
  8860. esac
  8861. link_all_deplibs=yes
  8862. ;;
  8863. sunos4*)
  8864. if test sequent = "$host_vendor"; then
  8865. # Use $CC to link under sequent, because it throws in some extra .o
  8866. # files that make .init and .fini sections work.
  8867. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8868. else
  8869. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8870. fi
  8871. hardcode_libdir_flag_spec='-L$libdir'
  8872. hardcode_direct=yes
  8873. hardcode_minus_L=yes
  8874. hardcode_shlibpath_var=no
  8875. ;;
  8876. sysv4)
  8877. case $host_vendor in
  8878. sni)
  8879. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8880. hardcode_direct=yes # is this really true???
  8881. ;;
  8882. siemens)
  8883. ## LD is ld it makes a PLAMLIB
  8884. ## CC just makes a GrossModule.
  8885. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8886. reload_cmds='$CC -r -o $output$reload_objs'
  8887. hardcode_direct=no
  8888. ;;
  8889. motorola)
  8890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8891. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8892. ;;
  8893. esac
  8894. runpath_var='LD_RUN_PATH'
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. sysv4.3*)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_shlibpath_var=no
  8900. export_dynamic_flag_spec='-Bexport'
  8901. ;;
  8902. sysv4*MP*)
  8903. if test -d /usr/nec; then
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_shlibpath_var=no
  8906. runpath_var=LD_RUN_PATH
  8907. hardcode_runpath_var=yes
  8908. ld_shlibs=yes
  8909. fi
  8910. ;;
  8911. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8912. no_undefined_flag='$wl-z,text'
  8913. archive_cmds_need_lc=no
  8914. hardcode_shlibpath_var=no
  8915. runpath_var='LD_RUN_PATH'
  8916. if test yes = "$GCC"; then
  8917. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. else
  8920. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. fi
  8923. ;;
  8924. sysv5* | sco3.2v5* | sco5v6*)
  8925. # Note: We CANNOT use -z defs as we might desire, because we do not
  8926. # link with -lc, and that would cause any symbols used from libc to
  8927. # always be unresolved, which means just about no library would
  8928. # ever link correctly. If we're not using GNU ld we use -z text
  8929. # though, which does catch some bad symbols but isn't as heavy-handed
  8930. # as -z defs.
  8931. no_undefined_flag='$wl-z,text'
  8932. allow_undefined_flag='$wl-z,nodefs'
  8933. archive_cmds_need_lc=no
  8934. hardcode_shlibpath_var=no
  8935. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8936. hardcode_libdir_separator=':'
  8937. link_all_deplibs=yes
  8938. export_dynamic_flag_spec='$wl-Bexport'
  8939. runpath_var='LD_RUN_PATH'
  8940. if test yes = "$GCC"; then
  8941. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. else
  8944. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. fi
  8947. ;;
  8948. uts4*)
  8949. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8950. hardcode_libdir_flag_spec='-L$libdir'
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. ld_shlibs=no
  8955. ;;
  8956. esac
  8957. if test sni = "$host_vendor"; then
  8958. case $host in
  8959. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8960. export_dynamic_flag_spec='$wl-Blargedynsym'
  8961. ;;
  8962. esac
  8963. fi
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8966. $as_echo "$ld_shlibs" >&6; }
  8967. test no = "$ld_shlibs" && can_build_shared=no
  8968. with_gnu_ld=$with_gnu_ld
  8969. #
  8970. # Do we need to explicitly link libc?
  8971. #
  8972. case "x$archive_cmds_need_lc" in
  8973. x|xyes)
  8974. # Assume -lc should be added
  8975. archive_cmds_need_lc=yes
  8976. if test yes,yes = "$GCC,$enable_shared"; then
  8977. case $archive_cmds in
  8978. *'~'*)
  8979. # FIXME: we may have to deal with multi-command sequences.
  8980. ;;
  8981. '$CC '*)
  8982. # Test whether the compiler implicitly links with -lc since on some
  8983. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8984. # to ld, don't add -lc before -lgcc.
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8986. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8987. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8988. $as_echo_n "(cached) " >&6
  8989. else
  8990. $RM conftest*
  8991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8993. (eval $ac_compile) 2>&5
  8994. ac_status=$?
  8995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8996. test $ac_status = 0; } 2>conftest.err; then
  8997. soname=conftest
  8998. lib=conftest
  8999. libobjs=conftest.$ac_objext
  9000. deplibs=
  9001. wl=$lt_prog_compiler_wl
  9002. pic_flag=$lt_prog_compiler_pic
  9003. compiler_flags=-v
  9004. linker_flags=-v
  9005. verstring=
  9006. output_objdir=.
  9007. libname=conftest
  9008. lt_save_allow_undefined_flag=$allow_undefined_flag
  9009. allow_undefined_flag=
  9010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9011. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9012. ac_status=$?
  9013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9014. test $ac_status = 0; }
  9015. then
  9016. lt_cv_archive_cmds_need_lc=no
  9017. else
  9018. lt_cv_archive_cmds_need_lc=yes
  9019. fi
  9020. allow_undefined_flag=$lt_save_allow_undefined_flag
  9021. else
  9022. cat conftest.err 1>&5
  9023. fi
  9024. $RM conftest*
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9027. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9028. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9029. ;;
  9030. esac
  9031. fi
  9032. ;;
  9033. esac
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9035. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9036. if test yes = "$GCC"; then
  9037. case $host_os in
  9038. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9039. *) lt_awk_arg='/^libraries:/' ;;
  9040. esac
  9041. case $host_os in
  9042. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9043. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9044. esac
  9045. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9046. case $lt_search_path_spec in
  9047. *\;*)
  9048. # if the path contains ";" then we assume it to be the separator
  9049. # otherwise default to the standard path separator (i.e. ":") - it is
  9050. # assumed that no part of a normal pathname contains ";" but that should
  9051. # okay in the real world where ";" in dirpaths is itself problematic.
  9052. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9053. ;;
  9054. *)
  9055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9056. ;;
  9057. esac
  9058. # Ok, now we have the path, separated by spaces, we can step through it
  9059. # and add multilib dir if necessary...
  9060. lt_tmp_lt_search_path_spec=
  9061. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9062. # ...but if some path component already ends with the multilib dir we assume
  9063. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9064. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9065. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9066. lt_multi_os_dir=
  9067. ;;
  9068. esac
  9069. for lt_sys_path in $lt_search_path_spec; do
  9070. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9071. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9072. elif test -n "$lt_multi_os_dir"; then
  9073. test -d "$lt_sys_path" && \
  9074. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9075. fi
  9076. done
  9077. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9078. BEGIN {RS = " "; FS = "/|\n";} {
  9079. lt_foo = "";
  9080. lt_count = 0;
  9081. for (lt_i = NF; lt_i > 0; lt_i--) {
  9082. if ($lt_i != "" && $lt_i != ".") {
  9083. if ($lt_i == "..") {
  9084. lt_count++;
  9085. } else {
  9086. if (lt_count == 0) {
  9087. lt_foo = "/" $lt_i lt_foo;
  9088. } else {
  9089. lt_count--;
  9090. }
  9091. }
  9092. }
  9093. }
  9094. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9095. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9096. }'`
  9097. # AWK program above erroneously prepends '/' to C:/dos/paths
  9098. # for these hosts.
  9099. case $host_os in
  9100. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9101. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9102. esac
  9103. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9104. else
  9105. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9106. fi
  9107. library_names_spec=
  9108. libname_spec='lib$name'
  9109. soname_spec=
  9110. shrext_cmds=.so
  9111. postinstall_cmds=
  9112. postuninstall_cmds=
  9113. finish_cmds=
  9114. finish_eval=
  9115. shlibpath_var=
  9116. shlibpath_overrides_runpath=unknown
  9117. version_type=none
  9118. dynamic_linker="$host_os ld.so"
  9119. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9120. need_lib_prefix=unknown
  9121. hardcode_into_libs=no
  9122. # when you set need_version to no, make sure it does not cause -set_version
  9123. # flags to be left without arguments
  9124. need_version=unknown
  9125. case $host_os in
  9126. aix3*)
  9127. version_type=linux # correct to gnu/linux during the next big refactor
  9128. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9129. shlibpath_var=LIBPATH
  9130. # AIX 3 has no versioning support, so we append a major version to the name.
  9131. soname_spec='$libname$release$shared_ext$major'
  9132. ;;
  9133. aix[4-9]*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. hardcode_into_libs=yes
  9138. if test ia64 = "$host_cpu"; then
  9139. # AIX 5 supports IA64
  9140. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. else
  9143. # With GCC up to 2.95.x, collect2 would create an import file
  9144. # for dependence libraries. The import file would start with
  9145. # the line '#! .'. This would cause the generated library to
  9146. # depend on '.', always an invalid library. This was fixed in
  9147. # development snapshots of GCC prior to 3.0.
  9148. case $host_os in
  9149. aix4 | aix4.[01] | aix4.[01].*)
  9150. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9151. echo ' yes '
  9152. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9153. :
  9154. else
  9155. can_build_shared=no
  9156. fi
  9157. ;;
  9158. esac
  9159. # Using Import Files as archive members, it is possible to support
  9160. # filename-based versioning of shared library archives on AIX. While
  9161. # this would work for both with and without runtime linking, it will
  9162. # prevent static linking of such archives. So we do filename-based
  9163. # shared library versioning with .so extension only, which is used
  9164. # when both runtime linking and shared linking is enabled.
  9165. # Unfortunately, runtime linking may impact performance, so we do
  9166. # not want this to be the default eventually. Also, we use the
  9167. # versioned .so libs for executables only if there is the -brtl
  9168. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9169. # To allow for filename-based versioning support, we need to create
  9170. # libNAME.so.V as an archive file, containing:
  9171. # *) an Import File, referring to the versioned filename of the
  9172. # archive as well as the shared archive member, telling the
  9173. # bitwidth (32 or 64) of that shared object, and providing the
  9174. # list of exported symbols of that shared object, eventually
  9175. # decorated with the 'weak' keyword
  9176. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9177. # it being seen by the linker.
  9178. # At run time we better use the real file rather than another symlink,
  9179. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9180. case $with_aix_soname,$aix_use_runtimelinking in
  9181. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9182. # soname into executable. Probably we can add versioning support to
  9183. # collect2, so additional links can be useful in future.
  9184. aix,yes) # traditional libtool
  9185. dynamic_linker='AIX unversionable lib.so'
  9186. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9187. # instead of lib<name>.a to let people know that these are not
  9188. # typical AIX shared libraries.
  9189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9190. ;;
  9191. aix,no) # traditional AIX only
  9192. dynamic_linker='AIX lib.a(lib.so.V)'
  9193. # We preserve .a as extension for shared libraries through AIX4.2
  9194. # and later when we are not doing run time linking.
  9195. library_names_spec='$libname$release.a $libname.a'
  9196. soname_spec='$libname$release$shared_ext$major'
  9197. ;;
  9198. svr4,*) # full svr4 only
  9199. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9200. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9201. # We do not specify a path in Import Files, so LIBPATH fires.
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *,yes) # both, prefer svr4
  9205. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9206. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9207. # unpreferred sharedlib libNAME.a needs extra handling
  9208. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9209. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9210. # We do not specify a path in Import Files, so LIBPATH fires.
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *,no) # both, prefer aix
  9214. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9215. library_names_spec='$libname$release.a $libname.a'
  9216. soname_spec='$libname$release$shared_ext$major'
  9217. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9218. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9219. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9220. ;;
  9221. esac
  9222. shlibpath_var=LIBPATH
  9223. fi
  9224. ;;
  9225. amigaos*)
  9226. case $host_cpu in
  9227. powerpc)
  9228. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9229. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9231. ;;
  9232. m68k)
  9233. library_names_spec='$libname.ixlibrary $libname.a'
  9234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9235. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9236. ;;
  9237. esac
  9238. ;;
  9239. beos*)
  9240. library_names_spec='$libname$shared_ext'
  9241. dynamic_linker="$host_os ld.so"
  9242. shlibpath_var=LIBRARY_PATH
  9243. ;;
  9244. bsdi[45]*)
  9245. version_type=linux # correct to gnu/linux during the next big refactor
  9246. need_version=no
  9247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9248. soname_spec='$libname$release$shared_ext$major'
  9249. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9252. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9253. # the default ld.so.conf also contains /usr/contrib/lib and
  9254. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9255. # libtool to hard-code these into programs
  9256. ;;
  9257. cygwin* | mingw* | pw32* | cegcc*)
  9258. version_type=windows
  9259. shrext_cmds=.dll
  9260. need_version=no
  9261. need_lib_prefix=no
  9262. case $GCC,$cc_basename in
  9263. yes,*)
  9264. # gcc
  9265. library_names_spec='$libname.dll.a'
  9266. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9267. postinstall_cmds='base_file=`basename \$file`~
  9268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9269. dldir=$destdir/`dirname \$dlpath`~
  9270. test -d \$dldir || mkdir -p \$dldir~
  9271. $install_prog $dir/$dlname \$dldir/$dlname~
  9272. chmod a+x \$dldir/$dlname~
  9273. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9274. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9275. fi'
  9276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9277. dlpath=$dir/\$dldll~
  9278. $RM \$dlpath'
  9279. shlibpath_overrides_runpath=yes
  9280. case $host_os in
  9281. cygwin*)
  9282. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9283. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9284. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9285. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9286. ;;
  9287. mingw* | cegcc*)
  9288. # MinGW DLLs use traditional 'lib' prefix
  9289. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9290. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9291. ;;
  9292. pw32*)
  9293. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9294. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9295. ;;
  9296. esac
  9297. dynamic_linker='Win32 ld.exe'
  9298. ;;
  9299. *,cl*)
  9300. # Native MSVC
  9301. libname_spec='$name'
  9302. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. library_names_spec='$libname.dll.lib'
  9304. case $build_os in
  9305. mingw*)
  9306. sys_lib_search_path_spec=
  9307. lt_save_ifs=$IFS
  9308. IFS=';'
  9309. for lt_path in $LIB
  9310. do
  9311. IFS=$lt_save_ifs
  9312. # Let DOS variable expansion print the short 8.3 style file name.
  9313. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9314. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9315. done
  9316. IFS=$lt_save_ifs
  9317. # Convert to MSYS style.
  9318. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9319. ;;
  9320. cygwin*)
  9321. # Convert to unix form, then to dos form, then back to unix form
  9322. # but this time dos style (no spaces!) so that the unix form looks
  9323. # like /cygdrive/c/PROGRA~1:/cygdr...
  9324. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9325. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9327. ;;
  9328. *)
  9329. sys_lib_search_path_spec=$LIB
  9330. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9331. # It is most probably a Windows format PATH.
  9332. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9333. else
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. fi
  9336. # FIXME: find the short name or the path components, as spaces are
  9337. # common. (e.g. "Program Files" -> "PROGRA~1")
  9338. ;;
  9339. esac
  9340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9341. postinstall_cmds='base_file=`basename \$file`~
  9342. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9343. dldir=$destdir/`dirname \$dlpath`~
  9344. test -d \$dldir || mkdir -p \$dldir~
  9345. $install_prog $dir/$dlname \$dldir/$dlname'
  9346. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9347. dlpath=$dir/\$dldll~
  9348. $RM \$dlpath'
  9349. shlibpath_overrides_runpath=yes
  9350. dynamic_linker='Win32 link.exe'
  9351. ;;
  9352. *)
  9353. # Assume MSVC wrapper
  9354. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9355. dynamic_linker='Win32 ld.exe'
  9356. ;;
  9357. esac
  9358. # FIXME: first we should search . and the directory the executable is in
  9359. shlibpath_var=PATH
  9360. ;;
  9361. darwin* | rhapsody*)
  9362. dynamic_linker="$host_os dyld"
  9363. version_type=darwin
  9364. need_lib_prefix=no
  9365. need_version=no
  9366. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9367. soname_spec='$libname$release$major$shared_ext'
  9368. shlibpath_overrides_runpath=yes
  9369. shlibpath_var=DYLD_LIBRARY_PATH
  9370. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9371. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9372. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9373. ;;
  9374. dgux*)
  9375. version_type=linux # correct to gnu/linux during the next big refactor
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9379. soname_spec='$libname$release$shared_ext$major'
  9380. shlibpath_var=LD_LIBRARY_PATH
  9381. ;;
  9382. freebsd* | dragonfly* | midnightbsd*)
  9383. # DragonFly does not have aout. When/if they implement a new
  9384. # versioning mechanism, adjust this.
  9385. if test -x /usr/bin/objformat; then
  9386. objformat=`/usr/bin/objformat`
  9387. else
  9388. case $host_os in
  9389. freebsd[23].*) objformat=aout ;;
  9390. *) objformat=elf ;;
  9391. esac
  9392. fi
  9393. version_type=freebsd-$objformat
  9394. case $version_type in
  9395. freebsd-elf*)
  9396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9397. soname_spec='$libname$release$shared_ext$major'
  9398. need_version=no
  9399. need_lib_prefix=no
  9400. ;;
  9401. freebsd-*)
  9402. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9403. need_version=yes
  9404. ;;
  9405. esac
  9406. shlibpath_var=LD_LIBRARY_PATH
  9407. case $host_os in
  9408. freebsd2.*)
  9409. shlibpath_overrides_runpath=yes
  9410. ;;
  9411. freebsd3.[01]* | freebsdelf3.[01]*)
  9412. shlibpath_overrides_runpath=yes
  9413. hardcode_into_libs=yes
  9414. ;;
  9415. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9416. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9417. shlibpath_overrides_runpath=no
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. *) # from 4.6 on, and DragonFly
  9421. shlibpath_overrides_runpath=yes
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. esac
  9425. ;;
  9426. haiku*)
  9427. version_type=linux # correct to gnu/linux during the next big refactor
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. dynamic_linker="$host_os runtime_loader"
  9431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9432. soname_spec='$libname$release$shared_ext$major'
  9433. shlibpath_var=LIBRARY_PATH
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. hpux9* | hpux10* | hpux11*)
  9439. # Give a soname corresponding to the major version so that dld.sl refuses to
  9440. # link against other versions.
  9441. version_type=sunos
  9442. need_lib_prefix=no
  9443. need_version=no
  9444. case $host_cpu in
  9445. ia64*)
  9446. shrext_cmds='.so'
  9447. hardcode_into_libs=yes
  9448. dynamic_linker="$host_os dld.so"
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9451. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9452. soname_spec='$libname$release$shared_ext$major'
  9453. if test 32 = "$HPUX_IA64_MODE"; then
  9454. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9455. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9456. else
  9457. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9458. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9459. fi
  9460. ;;
  9461. hppa*64*)
  9462. shrext_cmds='.sl'
  9463. hardcode_into_libs=yes
  9464. dynamic_linker="$host_os dld.sl"
  9465. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9466. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9468. soname_spec='$libname$release$shared_ext$major'
  9469. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9470. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9471. ;;
  9472. *)
  9473. shrext_cmds='.sl'
  9474. dynamic_linker="$host_os dld.sl"
  9475. shlibpath_var=SHLIB_PATH
  9476. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9478. soname_spec='$libname$release$shared_ext$major'
  9479. ;;
  9480. esac
  9481. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9482. postinstall_cmds='chmod 555 $lib'
  9483. # or fails outright, so override atomically:
  9484. install_override_mode=555
  9485. ;;
  9486. interix[3-9]*)
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9491. soname_spec='$libname$release$shared_ext$major'
  9492. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9493. shlibpath_var=LD_LIBRARY_PATH
  9494. shlibpath_overrides_runpath=no
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. irix5* | irix6* | nonstopux*)
  9498. case $host_os in
  9499. nonstopux*) version_type=nonstopux ;;
  9500. *)
  9501. if test yes = "$lt_cv_prog_gnu_ld"; then
  9502. version_type=linux # correct to gnu/linux during the next big refactor
  9503. else
  9504. version_type=irix
  9505. fi ;;
  9506. esac
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. soname_spec='$libname$release$shared_ext$major'
  9510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9511. case $host_os in
  9512. irix5* | nonstopux*)
  9513. libsuff= shlibsuff=
  9514. ;;
  9515. *)
  9516. case $LD in # libtool.m4 will add one of these switches to LD
  9517. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9518. libsuff= shlibsuff= libmagic=32-bit;;
  9519. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9520. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9521. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9522. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9523. *) libsuff= shlibsuff= libmagic=never-match;;
  9524. esac
  9525. ;;
  9526. esac
  9527. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9528. shlibpath_overrides_runpath=no
  9529. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9530. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9531. hardcode_into_libs=yes
  9532. ;;
  9533. # No shared lib support for Linux oldld, aout, or coff.
  9534. linux*oldld* | linux*aout* | linux*coff*)
  9535. dynamic_linker=no
  9536. ;;
  9537. linux*android*)
  9538. version_type=none # Android doesn't support versioned libraries.
  9539. need_lib_prefix=no
  9540. need_version=no
  9541. library_names_spec='$libname$release$shared_ext'
  9542. soname_spec='$libname$release$shared_ext'
  9543. finish_cmds=
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=yes
  9546. # This implies no fast_install, which is unacceptable.
  9547. # Some rework will be needed to allow for fast_install
  9548. # before this can be enabled.
  9549. hardcode_into_libs=yes
  9550. dynamic_linker='Android linker'
  9551. # Don't embed -rpath directories since the linker doesn't support them.
  9552. hardcode_libdir_flag_spec='-L$libdir'
  9553. ;;
  9554. # This must be glibc/ELF.
  9555. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9556. version_type=linux # correct to gnu/linux during the next big refactor
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9560. soname_spec='$libname$release$shared_ext$major'
  9561. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. shlibpath_overrides_runpath=no
  9564. # Some binutils ld are patched to set DT_RUNPATH
  9565. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. lt_cv_shlibpath_overrides_runpath=no
  9569. save_LDFLAGS=$LDFLAGS
  9570. save_libdir=$libdir
  9571. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9572. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9574. /* end confdefs.h. */
  9575. int
  9576. main ()
  9577. {
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9584. lt_cv_shlibpath_overrides_runpath=yes
  9585. fi
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LDFLAGS=$save_LDFLAGS
  9590. libdir=$save_libdir
  9591. fi
  9592. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9593. # This implies no fast_install, which is unacceptable.
  9594. # Some rework will be needed to allow for fast_install
  9595. # before this can be enabled.
  9596. hardcode_into_libs=yes
  9597. # Add ABI-specific directories to the system library path.
  9598. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9599. # Ideally, we could use ldconfig to report *all* directores which are
  9600. # searched for libraries, however this is still not possible. Aside from not
  9601. # being certain /sbin/ldconfig is available, command
  9602. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9603. # even though it is searched at run-time. Try to do the best guess by
  9604. # appending ld.so.conf contents (and includes) to the search path.
  9605. if test -f /etc/ld.so.conf; then
  9606. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9607. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9608. fi
  9609. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9610. # powerpc, because MkLinux only supported shared libraries with the
  9611. # GNU dynamic linker. Since this was broken with cross compilers,
  9612. # most powerpc-linux boxes support dynamic linking these days and
  9613. # people can always --disable-shared, the test was removed, and we
  9614. # assume the GNU/Linux dynamic linker is in use.
  9615. dynamic_linker='GNU/Linux ld.so'
  9616. ;;
  9617. netbsd*)
  9618. version_type=sunos
  9619. need_lib_prefix=no
  9620. need_version=no
  9621. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9623. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9624. dynamic_linker='NetBSD (a.out) ld.so'
  9625. else
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9627. soname_spec='$libname$release$shared_ext$major'
  9628. dynamic_linker='NetBSD ld.elf_so'
  9629. fi
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. shlibpath_overrides_runpath=yes
  9632. hardcode_into_libs=yes
  9633. ;;
  9634. newsos6)
  9635. version_type=linux # correct to gnu/linux during the next big refactor
  9636. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes
  9639. ;;
  9640. *nto* | *qnx*)
  9641. version_type=qnx
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. soname_spec='$libname$release$shared_ext$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=no
  9648. hardcode_into_libs=yes
  9649. dynamic_linker='ldqnx.so'
  9650. ;;
  9651. openbsd* | bitrig*)
  9652. version_type=sunos
  9653. sys_lib_dlsearch_path_spec=/usr/lib
  9654. need_lib_prefix=no
  9655. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9656. need_version=no
  9657. else
  9658. need_version=yes
  9659. fi
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=yes
  9664. ;;
  9665. os2*)
  9666. libname_spec='$name'
  9667. shrext_cmds=.dll
  9668. need_lib_prefix=no
  9669. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9670. # SDL customization: removed versioning support.
  9671. # version_type=windows
  9672. # need_version=no
  9673. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9674. # v=$($ECHO $release$versuffix | tr -d .-);
  9675. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9676. # $ECHO $n$v`$shared_ext'
  9677. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9678. library_names_spec='${libname}_dll.$libext'
  9679. dynamic_linker='OS/2 ld.exe'
  9680. shlibpath_var=BEGINLIBPATH
  9681. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9682. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9683. postinstall_cmds='base_file=`basename \$file`~
  9684. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9685. dldir=$destdir/`dirname \$dlpath`~
  9686. test -d \$dldir || mkdir -p \$dldir~
  9687. $install_prog $dir/$dlname \$dldir/$dlname~
  9688. chmod a+x \$dldir/$dlname~
  9689. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9690. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9691. fi'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. ;;
  9696. osf3* | osf4* | osf5*)
  9697. version_type=osf
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. soname_spec='$libname$release$shared_ext$major'
  9701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9704. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9705. ;;
  9706. rdos*)
  9707. dynamic_linker=no
  9708. ;;
  9709. solaris*)
  9710. version_type=linux # correct to gnu/linux during the next big refactor
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9714. soname_spec='$libname$release$shared_ext$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=yes
  9717. hardcode_into_libs=yes
  9718. # ldd complains unless libraries are executable
  9719. postinstall_cmds='chmod +x $lib'
  9720. ;;
  9721. sunos4*)
  9722. version_type=sunos
  9723. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9724. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. shlibpath_overrides_runpath=yes
  9727. if test yes = "$with_gnu_ld"; then
  9728. need_lib_prefix=no
  9729. fi
  9730. need_version=yes
  9731. ;;
  9732. sysv4 | sysv4.3*)
  9733. version_type=linux # correct to gnu/linux during the next big refactor
  9734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9735. soname_spec='$libname$release$shared_ext$major'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. case $host_vendor in
  9738. sni)
  9739. shlibpath_overrides_runpath=no
  9740. need_lib_prefix=no
  9741. runpath_var=LD_RUN_PATH
  9742. ;;
  9743. siemens)
  9744. need_lib_prefix=no
  9745. ;;
  9746. motorola)
  9747. need_lib_prefix=no
  9748. need_version=no
  9749. shlibpath_overrides_runpath=no
  9750. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9751. ;;
  9752. esac
  9753. ;;
  9754. sysv4*MP*)
  9755. if test -d /usr/nec; then
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9758. soname_spec='$libname$shared_ext.$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. fi
  9761. ;;
  9762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9763. version_type=sco
  9764. need_lib_prefix=no
  9765. need_version=no
  9766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9767. soname_spec='$libname$release$shared_ext$major'
  9768. shlibpath_var=LD_LIBRARY_PATH
  9769. shlibpath_overrides_runpath=yes
  9770. hardcode_into_libs=yes
  9771. if test yes = "$with_gnu_ld"; then
  9772. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9773. else
  9774. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9775. case $host_os in
  9776. sco3.2v5*)
  9777. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9778. ;;
  9779. esac
  9780. fi
  9781. sys_lib_dlsearch_path_spec='/usr/lib'
  9782. ;;
  9783. tpf*)
  9784. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. shlibpath_overrides_runpath=no
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. uts4*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. soname_spec='$libname$release$shared_ext$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. ;;
  9799. *)
  9800. dynamic_linker=no
  9801. ;;
  9802. esac
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9804. $as_echo "$dynamic_linker" >&6; }
  9805. test no = "$dynamic_linker" && can_build_shared=no
  9806. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9807. if test yes = "$GCC"; then
  9808. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9809. fi
  9810. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9811. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9812. fi
  9813. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9814. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9815. fi
  9816. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9817. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9818. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9819. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9820. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9821. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9823. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9824. hardcode_action=
  9825. if test -n "$hardcode_libdir_flag_spec" ||
  9826. test -n "$runpath_var" ||
  9827. test yes = "$hardcode_automatic"; then
  9828. # We can hardcode non-existent directories.
  9829. if test no != "$hardcode_direct" &&
  9830. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9831. # have to relink, otherwise we might link with an installed library
  9832. # when we should be linking with a yet-to-be-installed one
  9833. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9834. test no != "$hardcode_minus_L"; then
  9835. # Linking always hardcodes the temporary library directory.
  9836. hardcode_action=relink
  9837. else
  9838. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9839. hardcode_action=immediate
  9840. fi
  9841. else
  9842. # We cannot hardcode anything, or else we can only hardcode existing
  9843. # directories.
  9844. hardcode_action=unsupported
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9847. $as_echo "$hardcode_action" >&6; }
  9848. if test relink = "$hardcode_action" ||
  9849. test yes = "$inherit_rpath"; then
  9850. # Fast installation is not supported
  9851. enable_fast_install=no
  9852. elif test yes = "$shlibpath_overrides_runpath" ||
  9853. test no = "$enable_shared"; then
  9854. # Fast installation is not necessary
  9855. enable_fast_install=needless
  9856. fi
  9857. if test yes != "$enable_dlopen"; then
  9858. enable_dlopen=unknown
  9859. enable_dlopen_self=unknown
  9860. enable_dlopen_self_static=unknown
  9861. else
  9862. lt_cv_dlopen=no
  9863. lt_cv_dlopen_libs=
  9864. case $host_os in
  9865. beos*)
  9866. lt_cv_dlopen=load_add_on
  9867. lt_cv_dlopen_libs=
  9868. lt_cv_dlopen_self=yes
  9869. ;;
  9870. mingw* | pw32* | cegcc*)
  9871. lt_cv_dlopen=LoadLibrary
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. cygwin*)
  9875. lt_cv_dlopen=dlopen
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. darwin*)
  9879. # if libdl is installed we need to link against it
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9881. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9882. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. ac_check_lib_save_LIBS=$LIBS
  9886. LIBS="-ldl $LIBS"
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. /* Override any GCC internal prototype to avoid an error.
  9890. Use char because int might match the return type of a GCC
  9891. builtin and then its argument prototype would still apply. */
  9892. #ifdef __cplusplus
  9893. extern "C"
  9894. #endif
  9895. char dlopen ();
  9896. int
  9897. main ()
  9898. {
  9899. return dlopen ();
  9900. ;
  9901. return 0;
  9902. }
  9903. _ACEOF
  9904. if ac_fn_c_try_link "$LINENO"; then :
  9905. ac_cv_lib_dl_dlopen=yes
  9906. else
  9907. ac_cv_lib_dl_dlopen=no
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. LIBS=$ac_check_lib_save_LIBS
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9914. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9915. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9916. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9917. else
  9918. lt_cv_dlopen=dyld
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. fi
  9922. ;;
  9923. tpf*)
  9924. # Don't try to run any link tests for TPF. We know it's impossible
  9925. # because TPF is a cross-compiler, and we know how we open DSOs.
  9926. lt_cv_dlopen=dlopen
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=no
  9929. ;;
  9930. *)
  9931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9932. if test "x$ac_cv_func_shl_load" = xyes; then :
  9933. lt_cv_dlopen=shl_load
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9937. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. ac_check_lib_save_LIBS=$LIBS
  9941. LIBS="-ldld $LIBS"
  9942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9943. /* end confdefs.h. */
  9944. /* Override any GCC internal prototype to avoid an error.
  9945. Use char because int might match the return type of a GCC
  9946. builtin and then its argument prototype would still apply. */
  9947. #ifdef __cplusplus
  9948. extern "C"
  9949. #endif
  9950. char shl_load ();
  9951. int
  9952. main ()
  9953. {
  9954. return shl_load ();
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. if ac_fn_c_try_link "$LINENO"; then :
  9960. ac_cv_lib_dld_shl_load=yes
  9961. else
  9962. ac_cv_lib_dld_shl_load=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext \
  9965. conftest$ac_exeext conftest.$ac_ext
  9966. LIBS=$ac_check_lib_save_LIBS
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9970. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9971. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9972. else
  9973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9974. if test "x$ac_cv_func_dlopen" = xyes; then :
  9975. lt_cv_dlopen=dlopen
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9979. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. ac_check_lib_save_LIBS=$LIBS
  9983. LIBS="-ldl $LIBS"
  9984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9985. /* end confdefs.h. */
  9986. /* Override any GCC internal prototype to avoid an error.
  9987. Use char because int might match the return type of a GCC
  9988. builtin and then its argument prototype would still apply. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. #endif
  9992. char dlopen ();
  9993. int
  9994. main ()
  9995. {
  9996. return dlopen ();
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. if ac_fn_c_try_link "$LINENO"; then :
  10002. ac_cv_lib_dl_dlopen=yes
  10003. else
  10004. ac_cv_lib_dl_dlopen=no
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. LIBS=$ac_check_lib_save_LIBS
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10012. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10013. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10014. else
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10017. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. ac_check_lib_save_LIBS=$LIBS
  10021. LIBS="-lsvld $LIBS"
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. /* Override any GCC internal prototype to avoid an error.
  10025. Use char because int might match the return type of a GCC
  10026. builtin and then its argument prototype would still apply. */
  10027. #ifdef __cplusplus
  10028. extern "C"
  10029. #endif
  10030. char dlopen ();
  10031. int
  10032. main ()
  10033. {
  10034. return dlopen ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. ac_cv_lib_svld_dlopen=yes
  10041. else
  10042. ac_cv_lib_svld_dlopen=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10050. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10051. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10055. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10056. $as_echo_n "(cached) " >&6
  10057. else
  10058. ac_check_lib_save_LIBS=$LIBS
  10059. LIBS="-ldld $LIBS"
  10060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10061. /* end confdefs.h. */
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char dld_link ();
  10069. int
  10070. main ()
  10071. {
  10072. return dld_link ();
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. if ac_fn_c_try_link "$LINENO"; then :
  10078. ac_cv_lib_dld_dld_link=yes
  10079. else
  10080. ac_cv_lib_dld_dld_link=no
  10081. fi
  10082. rm -f core conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. LIBS=$ac_check_lib_save_LIBS
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10088. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10089. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10090. fi
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. ;;
  10097. esac
  10098. if test no = "$lt_cv_dlopen"; then
  10099. enable_dlopen=no
  10100. else
  10101. enable_dlopen=yes
  10102. fi
  10103. case $lt_cv_dlopen in
  10104. dlopen)
  10105. save_CPPFLAGS=$CPPFLAGS
  10106. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10107. save_LDFLAGS=$LDFLAGS
  10108. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10109. save_LIBS=$LIBS
  10110. LIBS="$lt_cv_dlopen_libs $LIBS"
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10113. if ${lt_cv_dlopen_self+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test yes = "$cross_compiling"; then :
  10117. lt_cv_dlopen_self=cross
  10118. else
  10119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10120. lt_status=$lt_dlunknown
  10121. cat > conftest.$ac_ext <<_LT_EOF
  10122. #line $LINENO "configure"
  10123. #include "confdefs.h"
  10124. #if HAVE_DLFCN_H
  10125. #include <dlfcn.h>
  10126. #endif
  10127. #include <stdio.h>
  10128. #ifdef RTLD_GLOBAL
  10129. # define LT_DLGLOBAL RTLD_GLOBAL
  10130. #else
  10131. # ifdef DL_GLOBAL
  10132. # define LT_DLGLOBAL DL_GLOBAL
  10133. # else
  10134. # define LT_DLGLOBAL 0
  10135. # endif
  10136. #endif
  10137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10138. find out it does not work in some platform. */
  10139. #ifndef LT_DLLAZY_OR_NOW
  10140. # ifdef RTLD_LAZY
  10141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10142. # else
  10143. # ifdef DL_LAZY
  10144. # define LT_DLLAZY_OR_NOW DL_LAZY
  10145. # else
  10146. # ifdef RTLD_NOW
  10147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10148. # else
  10149. # ifdef DL_NOW
  10150. # define LT_DLLAZY_OR_NOW DL_NOW
  10151. # else
  10152. # define LT_DLLAZY_OR_NOW 0
  10153. # endif
  10154. # endif
  10155. # endif
  10156. # endif
  10157. #endif
  10158. /* When -fvisibility=hidden is used, assume the code has been annotated
  10159. correspondingly for the symbols needed. */
  10160. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10161. int fnord () __attribute__((visibility("default")));
  10162. #endif
  10163. int fnord () { return 42; }
  10164. int main ()
  10165. {
  10166. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10167. int status = $lt_dlunknown;
  10168. if (self)
  10169. {
  10170. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10171. else
  10172. {
  10173. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10174. else puts (dlerror ());
  10175. }
  10176. /* dlclose (self); */
  10177. }
  10178. else
  10179. puts (dlerror ());
  10180. return status;
  10181. }
  10182. _LT_EOF
  10183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10184. (eval $ac_link) 2>&5
  10185. ac_status=$?
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10187. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10188. (./conftest; exit; ) >&5 2>/dev/null
  10189. lt_status=$?
  10190. case x$lt_status in
  10191. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10192. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10194. esac
  10195. else :
  10196. # compilation failed
  10197. lt_cv_dlopen_self=no
  10198. fi
  10199. fi
  10200. rm -fr conftest*
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10203. $as_echo "$lt_cv_dlopen_self" >&6; }
  10204. if test yes = "$lt_cv_dlopen_self"; then
  10205. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10207. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10208. if ${lt_cv_dlopen_self_static+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test yes = "$cross_compiling"; then :
  10212. lt_cv_dlopen_self_static=cross
  10213. else
  10214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10215. lt_status=$lt_dlunknown
  10216. cat > conftest.$ac_ext <<_LT_EOF
  10217. #line $LINENO "configure"
  10218. #include "confdefs.h"
  10219. #if HAVE_DLFCN_H
  10220. #include <dlfcn.h>
  10221. #endif
  10222. #include <stdio.h>
  10223. #ifdef RTLD_GLOBAL
  10224. # define LT_DLGLOBAL RTLD_GLOBAL
  10225. #else
  10226. # ifdef DL_GLOBAL
  10227. # define LT_DLGLOBAL DL_GLOBAL
  10228. # else
  10229. # define LT_DLGLOBAL 0
  10230. # endif
  10231. #endif
  10232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10233. find out it does not work in some platform. */
  10234. #ifndef LT_DLLAZY_OR_NOW
  10235. # ifdef RTLD_LAZY
  10236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10237. # else
  10238. # ifdef DL_LAZY
  10239. # define LT_DLLAZY_OR_NOW DL_LAZY
  10240. # else
  10241. # ifdef RTLD_NOW
  10242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10243. # else
  10244. # ifdef DL_NOW
  10245. # define LT_DLLAZY_OR_NOW DL_NOW
  10246. # else
  10247. # define LT_DLLAZY_OR_NOW 0
  10248. # endif
  10249. # endif
  10250. # endif
  10251. # endif
  10252. #endif
  10253. /* When -fvisibility=hidden is used, assume the code has been annotated
  10254. correspondingly for the symbols needed. */
  10255. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10256. int fnord () __attribute__((visibility("default")));
  10257. #endif
  10258. int fnord () { return 42; }
  10259. int main ()
  10260. {
  10261. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10262. int status = $lt_dlunknown;
  10263. if (self)
  10264. {
  10265. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10266. else
  10267. {
  10268. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10269. else puts (dlerror ());
  10270. }
  10271. /* dlclose (self); */
  10272. }
  10273. else
  10274. puts (dlerror ());
  10275. return status;
  10276. }
  10277. _LT_EOF
  10278. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10279. (eval $ac_link) 2>&5
  10280. ac_status=$?
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10282. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10283. (./conftest; exit; ) >&5 2>/dev/null
  10284. lt_status=$?
  10285. case x$lt_status in
  10286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10289. esac
  10290. else :
  10291. # compilation failed
  10292. lt_cv_dlopen_self_static=no
  10293. fi
  10294. fi
  10295. rm -fr conftest*
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10298. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10299. fi
  10300. CPPFLAGS=$save_CPPFLAGS
  10301. LDFLAGS=$save_LDFLAGS
  10302. LIBS=$save_LIBS
  10303. ;;
  10304. esac
  10305. case $lt_cv_dlopen_self in
  10306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10307. *) enable_dlopen_self=unknown ;;
  10308. esac
  10309. case $lt_cv_dlopen_self_static in
  10310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10311. *) enable_dlopen_self_static=unknown ;;
  10312. esac
  10313. fi
  10314. striplib=
  10315. old_striplib=
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10317. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10318. if test -z "$STRIP"; then
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10320. $as_echo "no" >&6; }
  10321. else
  10322. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10323. old_striplib="$STRIP --strip-debug"
  10324. striplib="$STRIP --strip-unneeded"
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10326. $as_echo "yes" >&6; }
  10327. else
  10328. case $host_os in
  10329. darwin*)
  10330. # FIXME - insert some real tests, host_os isn't really good enough
  10331. striplib="$STRIP -x"
  10332. old_striplib="$STRIP -S"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. ;;
  10336. freebsd*)
  10337. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10338. old_striplib="$STRIP --strip-debug"
  10339. striplib="$STRIP --strip-unneeded"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. ;;
  10347. *)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. ;;
  10351. esac
  10352. fi
  10353. fi
  10354. # Report what library types will actually be built
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10356. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10358. $as_echo "$can_build_shared" >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10360. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10361. test no = "$can_build_shared" && enable_shared=no
  10362. # On AIX, shared libraries and static libraries use the same namespace, and
  10363. # are all built from PIC.
  10364. case $host_os in
  10365. aix3*)
  10366. test yes = "$enable_shared" && enable_static=no
  10367. if test -n "$RANLIB"; then
  10368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10369. postinstall_cmds='$RANLIB $lib'
  10370. fi
  10371. ;;
  10372. aix[4-9]*)
  10373. if test ia64 != "$host_cpu"; then
  10374. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10375. yes,aix,yes) ;; # shared object as lib.so file only
  10376. yes,svr4,*) ;; # shared object as lib.so archive member only
  10377. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10378. esac
  10379. fi
  10380. ;;
  10381. esac
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10383. $as_echo "$enable_shared" >&6; }
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10385. $as_echo_n "checking whether to build static libraries... " >&6; }
  10386. # Make sure either enable_shared or enable_static is yes.
  10387. test yes = "$enable_shared" || enable_static=yes
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10389. $as_echo "$enable_static" >&6; }
  10390. fi
  10391. ac_ext=c
  10392. ac_cpp='$CPP $CPPFLAGS'
  10393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10396. CC=$lt_save_CC
  10397. ac_config_commands="$ac_config_commands libtool"
  10398. # Only expand once:
  10399. if test -n "$ac_tool_prefix"; then
  10400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10403. $as_echo_n "checking for $ac_word... " >&6; }
  10404. if ${ac_cv_prog_RC+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test -n "$RC"; then
  10408. ac_cv_prog_RC="$RC" # Let the user override the test.
  10409. else
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. fi
  10425. fi
  10426. RC=$ac_cv_prog_RC
  10427. if test -n "$RC"; then
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10429. $as_echo "$RC" >&6; }
  10430. else
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10432. $as_echo "no" >&6; }
  10433. fi
  10434. fi
  10435. if test -z "$ac_cv_prog_RC"; then
  10436. ac_ct_RC=$RC
  10437. # Extract the first word of "windres", so it can be a program name with args.
  10438. set dummy windres; ac_word=$2
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10440. $as_echo_n "checking for $ac_word... " >&6; }
  10441. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. if test -n "$ac_ct_RC"; then
  10445. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10446. else
  10447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10448. for as_dir in $PATH
  10449. do
  10450. IFS=$as_save_IFS
  10451. test -z "$as_dir" && as_dir=.
  10452. for ac_exec_ext in '' $ac_executable_extensions; do
  10453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10454. ac_cv_prog_ac_ct_RC="windres"
  10455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10456. break 2
  10457. fi
  10458. done
  10459. done
  10460. IFS=$as_save_IFS
  10461. fi
  10462. fi
  10463. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10464. if test -n "$ac_ct_RC"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10466. $as_echo "$ac_ct_RC" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. if test "x$ac_ct_RC" = x; then
  10472. RC=""
  10473. else
  10474. case $cross_compiling:$ac_tool_warned in
  10475. yes:)
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10478. ac_tool_warned=yes ;;
  10479. esac
  10480. RC=$ac_ct_RC
  10481. fi
  10482. else
  10483. RC="$ac_cv_prog_RC"
  10484. fi
  10485. # Source file extension for RC test sources.
  10486. ac_ext=rc
  10487. # Object file extension for compiled RC test sources.
  10488. objext=o
  10489. objext_RC=$objext
  10490. # Code to be used in simple compile tests
  10491. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10492. # Code to be used in simple link tests
  10493. lt_simple_link_test_code=$lt_simple_compile_test_code
  10494. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10495. # If no C compiler was specified, use CC.
  10496. LTCC=${LTCC-"$CC"}
  10497. # If no C compiler flags were specified, use CFLAGS.
  10498. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10499. # Allow CC to be a program name with arguments.
  10500. compiler=$CC
  10501. # save warnings/boilerplate of simple test code
  10502. ac_outfile=conftest.$ac_objext
  10503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10505. _lt_compiler_boilerplate=`cat conftest.err`
  10506. $RM conftest*
  10507. ac_outfile=conftest.$ac_objext
  10508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10510. _lt_linker_boilerplate=`cat conftest.err`
  10511. $RM -r conftest*
  10512. # Allow CC to be a program name with arguments.
  10513. lt_save_CC=$CC
  10514. lt_save_CFLAGS=$CFLAGS
  10515. lt_save_GCC=$GCC
  10516. GCC=
  10517. CC=${RC-"windres"}
  10518. CFLAGS=
  10519. compiler=$CC
  10520. compiler_RC=$CC
  10521. func_cc_basename $compiler
  10522. cc_basename=$func_cc_basename_result
  10523. lt_cv_prog_compiler_c_o_RC=yes
  10524. if test -n "$compiler"; then
  10525. :
  10526. fi
  10527. GCC=$lt_save_GCC
  10528. ac_ext=c
  10529. ac_cpp='$CPP $CPPFLAGS'
  10530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10533. CC=$lt_save_CC
  10534. CFLAGS=$lt_save_CFLAGS
  10535. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10536. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10537. LT_REVISION=$SDL_INTERFACE_AGE
  10538. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10539. ac_ext=c
  10540. ac_cpp='$CPP $CPPFLAGS'
  10541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10544. if test -n "$ac_tool_prefix"; then
  10545. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10546. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10548. $as_echo_n "checking for $ac_word... " >&6; }
  10549. if ${ac_cv_prog_CC+:} false; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. if test -n "$CC"; then
  10553. ac_cv_prog_CC="$CC" # Let the user override the test.
  10554. else
  10555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10556. for as_dir in $PATH
  10557. do
  10558. IFS=$as_save_IFS
  10559. test -z "$as_dir" && as_dir=.
  10560. for ac_exec_ext in '' $ac_executable_extensions; do
  10561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10562. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10564. break 2
  10565. fi
  10566. done
  10567. done
  10568. IFS=$as_save_IFS
  10569. fi
  10570. fi
  10571. CC=$ac_cv_prog_CC
  10572. if test -n "$CC"; then
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10574. $as_echo "$CC" >&6; }
  10575. else
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10577. $as_echo "no" >&6; }
  10578. fi
  10579. fi
  10580. if test -z "$ac_cv_prog_CC"; then
  10581. ac_ct_CC=$CC
  10582. # Extract the first word of "gcc", so it can be a program name with args.
  10583. set dummy gcc; ac_word=$2
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10585. $as_echo_n "checking for $ac_word... " >&6; }
  10586. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. if test -n "$ac_ct_CC"; then
  10590. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10591. else
  10592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10593. for as_dir in $PATH
  10594. do
  10595. IFS=$as_save_IFS
  10596. test -z "$as_dir" && as_dir=.
  10597. for ac_exec_ext in '' $ac_executable_extensions; do
  10598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10599. ac_cv_prog_ac_ct_CC="gcc"
  10600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10601. break 2
  10602. fi
  10603. done
  10604. done
  10605. IFS=$as_save_IFS
  10606. fi
  10607. fi
  10608. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10609. if test -n "$ac_ct_CC"; then
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10611. $as_echo "$ac_ct_CC" >&6; }
  10612. else
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10614. $as_echo "no" >&6; }
  10615. fi
  10616. if test "x$ac_ct_CC" = x; then
  10617. CC=""
  10618. else
  10619. case $cross_compiling:$ac_tool_warned in
  10620. yes:)
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10623. ac_tool_warned=yes ;;
  10624. esac
  10625. CC=$ac_ct_CC
  10626. fi
  10627. else
  10628. CC="$ac_cv_prog_CC"
  10629. fi
  10630. if test -z "$CC"; then
  10631. if test -n "$ac_tool_prefix"; then
  10632. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10633. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10635. $as_echo_n "checking for $ac_word... " >&6; }
  10636. if ${ac_cv_prog_CC+:} false; then :
  10637. $as_echo_n "(cached) " >&6
  10638. else
  10639. if test -n "$CC"; then
  10640. ac_cv_prog_CC="$CC" # Let the user override the test.
  10641. else
  10642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10643. for as_dir in $PATH
  10644. do
  10645. IFS=$as_save_IFS
  10646. test -z "$as_dir" && as_dir=.
  10647. for ac_exec_ext in '' $ac_executable_extensions; do
  10648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10649. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10651. break 2
  10652. fi
  10653. done
  10654. done
  10655. IFS=$as_save_IFS
  10656. fi
  10657. fi
  10658. CC=$ac_cv_prog_CC
  10659. if test -n "$CC"; then
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10661. $as_echo "$CC" >&6; }
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. fi
  10667. fi
  10668. if test -z "$CC"; then
  10669. # Extract the first word of "cc", so it can be a program name with args.
  10670. set dummy cc; ac_word=$2
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10672. $as_echo_n "checking for $ac_word... " >&6; }
  10673. if ${ac_cv_prog_CC+:} false; then :
  10674. $as_echo_n "(cached) " >&6
  10675. else
  10676. if test -n "$CC"; then
  10677. ac_cv_prog_CC="$CC" # Let the user override the test.
  10678. else
  10679. ac_prog_rejected=no
  10680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10681. for as_dir in $PATH
  10682. do
  10683. IFS=$as_save_IFS
  10684. test -z "$as_dir" && as_dir=.
  10685. for ac_exec_ext in '' $ac_executable_extensions; do
  10686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10687. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10688. ac_prog_rejected=yes
  10689. continue
  10690. fi
  10691. ac_cv_prog_CC="cc"
  10692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10693. break 2
  10694. fi
  10695. done
  10696. done
  10697. IFS=$as_save_IFS
  10698. if test $ac_prog_rejected = yes; then
  10699. # We found a bogon in the path, so make sure we never use it.
  10700. set dummy $ac_cv_prog_CC
  10701. shift
  10702. if test $# != 0; then
  10703. # We chose a different compiler from the bogus one.
  10704. # However, it has the same basename, so the bogon will be chosen
  10705. # first if we set CC to just the basename; use the full file name.
  10706. shift
  10707. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10708. fi
  10709. fi
  10710. fi
  10711. fi
  10712. CC=$ac_cv_prog_CC
  10713. if test -n "$CC"; then
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10715. $as_echo "$CC" >&6; }
  10716. else
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10718. $as_echo "no" >&6; }
  10719. fi
  10720. fi
  10721. if test -z "$CC"; then
  10722. if test -n "$ac_tool_prefix"; then
  10723. for ac_prog in cl.exe
  10724. do
  10725. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10726. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10728. $as_echo_n "checking for $ac_word... " >&6; }
  10729. if ${ac_cv_prog_CC+:} false; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. if test -n "$CC"; then
  10733. ac_cv_prog_CC="$CC" # Let the user override the test.
  10734. else
  10735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10736. for as_dir in $PATH
  10737. do
  10738. IFS=$as_save_IFS
  10739. test -z "$as_dir" && as_dir=.
  10740. for ac_exec_ext in '' $ac_executable_extensions; do
  10741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10742. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10744. break 2
  10745. fi
  10746. done
  10747. done
  10748. IFS=$as_save_IFS
  10749. fi
  10750. fi
  10751. CC=$ac_cv_prog_CC
  10752. if test -n "$CC"; then
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10754. $as_echo "$CC" >&6; }
  10755. else
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10757. $as_echo "no" >&6; }
  10758. fi
  10759. test -n "$CC" && break
  10760. done
  10761. fi
  10762. if test -z "$CC"; then
  10763. ac_ct_CC=$CC
  10764. for ac_prog in cl.exe
  10765. do
  10766. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10767. set dummy $ac_prog; ac_word=$2
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10769. $as_echo_n "checking for $ac_word... " >&6; }
  10770. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. if test -n "$ac_ct_CC"; then
  10774. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10775. else
  10776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10777. for as_dir in $PATH
  10778. do
  10779. IFS=$as_save_IFS
  10780. test -z "$as_dir" && as_dir=.
  10781. for ac_exec_ext in '' $ac_executable_extensions; do
  10782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10783. ac_cv_prog_ac_ct_CC="$ac_prog"
  10784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10785. break 2
  10786. fi
  10787. done
  10788. done
  10789. IFS=$as_save_IFS
  10790. fi
  10791. fi
  10792. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10793. if test -n "$ac_ct_CC"; then
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10795. $as_echo "$ac_ct_CC" >&6; }
  10796. else
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10798. $as_echo "no" >&6; }
  10799. fi
  10800. test -n "$ac_ct_CC" && break
  10801. done
  10802. if test "x$ac_ct_CC" = x; then
  10803. CC=""
  10804. else
  10805. case $cross_compiling:$ac_tool_warned in
  10806. yes:)
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10809. ac_tool_warned=yes ;;
  10810. esac
  10811. CC=$ac_ct_CC
  10812. fi
  10813. fi
  10814. fi
  10815. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10817. as_fn_error $? "no acceptable C compiler found in \$PATH
  10818. See \`config.log' for more details" "$LINENO" 5; }
  10819. # Provide some information about the compiler.
  10820. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10821. set X $ac_compile
  10822. ac_compiler=$2
  10823. for ac_option in --version -v -V -qversion; do
  10824. { { ac_try="$ac_compiler $ac_option >&5"
  10825. case "(($ac_try" in
  10826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10827. *) ac_try_echo=$ac_try;;
  10828. esac
  10829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10830. $as_echo "$ac_try_echo"; } >&5
  10831. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10832. ac_status=$?
  10833. if test -s conftest.err; then
  10834. sed '10a\
  10835. ... rest of stderr output deleted ...
  10836. 10q' conftest.err >conftest.er1
  10837. cat conftest.er1 >&5
  10838. fi
  10839. rm -f conftest.er1 conftest.err
  10840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10841. test $ac_status = 0; }
  10842. done
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10844. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10845. if ${ac_cv_c_compiler_gnu+:} false; then :
  10846. $as_echo_n "(cached) " >&6
  10847. else
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. int
  10851. main ()
  10852. {
  10853. #ifndef __GNUC__
  10854. choke me
  10855. #endif
  10856. ;
  10857. return 0;
  10858. }
  10859. _ACEOF
  10860. if ac_fn_c_try_compile "$LINENO"; then :
  10861. ac_compiler_gnu=yes
  10862. else
  10863. ac_compiler_gnu=no
  10864. fi
  10865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10866. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10869. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10870. if test $ac_compiler_gnu = yes; then
  10871. GCC=yes
  10872. else
  10873. GCC=
  10874. fi
  10875. ac_test_CFLAGS=${CFLAGS+set}
  10876. ac_save_CFLAGS=$CFLAGS
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10878. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10879. if ${ac_cv_prog_cc_g+:} false; then :
  10880. $as_echo_n "(cached) " >&6
  10881. else
  10882. ac_save_c_werror_flag=$ac_c_werror_flag
  10883. ac_c_werror_flag=yes
  10884. ac_cv_prog_cc_g=no
  10885. CFLAGS="-g"
  10886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10887. /* end confdefs.h. */
  10888. int
  10889. main ()
  10890. {
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_c_try_compile "$LINENO"; then :
  10896. ac_cv_prog_cc_g=yes
  10897. else
  10898. CFLAGS=""
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. int
  10902. main ()
  10903. {
  10904. ;
  10905. return 0;
  10906. }
  10907. _ACEOF
  10908. if ac_fn_c_try_compile "$LINENO"; then :
  10909. else
  10910. ac_c_werror_flag=$ac_save_c_werror_flag
  10911. CFLAGS="-g"
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. int
  10915. main ()
  10916. {
  10917. ;
  10918. return 0;
  10919. }
  10920. _ACEOF
  10921. if ac_fn_c_try_compile "$LINENO"; then :
  10922. ac_cv_prog_cc_g=yes
  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. fi
  10928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10929. ac_c_werror_flag=$ac_save_c_werror_flag
  10930. fi
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10932. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10933. if test "$ac_test_CFLAGS" = set; then
  10934. CFLAGS=$ac_save_CFLAGS
  10935. elif test $ac_cv_prog_cc_g = yes; then
  10936. if test "$GCC" = yes; then
  10937. CFLAGS="-g -O2"
  10938. else
  10939. CFLAGS="-g"
  10940. fi
  10941. else
  10942. if test "$GCC" = yes; then
  10943. CFLAGS="-O2"
  10944. else
  10945. CFLAGS=
  10946. fi
  10947. fi
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10949. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10950. if ${ac_cv_prog_cc_c89+:} false; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. ac_cv_prog_cc_c89=no
  10954. ac_save_CC=$CC
  10955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10956. /* end confdefs.h. */
  10957. #include <stdarg.h>
  10958. #include <stdio.h>
  10959. struct stat;
  10960. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10961. struct buf { int x; };
  10962. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10963. static char *e (p, i)
  10964. char **p;
  10965. int i;
  10966. {
  10967. return p[i];
  10968. }
  10969. static char *f (char * (*g) (char **, int), char **p, ...)
  10970. {
  10971. char *s;
  10972. va_list v;
  10973. va_start (v,p);
  10974. s = g (p, va_arg (v,int));
  10975. va_end (v);
  10976. return s;
  10977. }
  10978. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10979. function prototypes and stuff, but not '\xHH' hex character constants.
  10980. These don't provoke an error unfortunately, instead are silently treated
  10981. as 'x'. The following induces an error, until -std is added to get
  10982. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10983. array size at least. It's necessary to write '\x00'==0 to get something
  10984. that's true only with -std. */
  10985. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10986. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10987. inside strings and character constants. */
  10988. #define FOO(x) 'x'
  10989. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10990. int test (int i, double x);
  10991. struct s1 {int (*f) (int a);};
  10992. struct s2 {int (*f) (double a);};
  10993. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10994. int argc;
  10995. char **argv;
  10996. int
  10997. main ()
  10998. {
  10999. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11000. ;
  11001. return 0;
  11002. }
  11003. _ACEOF
  11004. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11005. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11006. do
  11007. CC="$ac_save_CC $ac_arg"
  11008. if ac_fn_c_try_compile "$LINENO"; then :
  11009. ac_cv_prog_cc_c89=$ac_arg
  11010. fi
  11011. rm -f core conftest.err conftest.$ac_objext
  11012. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11013. done
  11014. rm -f conftest.$ac_ext
  11015. CC=$ac_save_CC
  11016. fi
  11017. # AC_CACHE_VAL
  11018. case "x$ac_cv_prog_cc_c89" in
  11019. x)
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11021. $as_echo "none needed" >&6; } ;;
  11022. xno)
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11024. $as_echo "unsupported" >&6; } ;;
  11025. *)
  11026. CC="$CC $ac_cv_prog_cc_c89"
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11028. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11029. esac
  11030. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11031. fi
  11032. ac_ext=c
  11033. ac_cpp='$CPP $CPPFLAGS'
  11034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11037. ac_ext=cpp
  11038. ac_cpp='$CXXCPP $CPPFLAGS'
  11039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11042. if test -z "$CXX"; then
  11043. if test -n "$CCC"; then
  11044. CXX=$CCC
  11045. else
  11046. if test -n "$ac_tool_prefix"; then
  11047. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11048. do
  11049. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11050. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11052. $as_echo_n "checking for $ac_word... " >&6; }
  11053. if ${ac_cv_prog_CXX+:} false; then :
  11054. $as_echo_n "(cached) " >&6
  11055. else
  11056. if test -n "$CXX"; then
  11057. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11058. else
  11059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11060. for as_dir in $PATH
  11061. do
  11062. IFS=$as_save_IFS
  11063. test -z "$as_dir" && as_dir=.
  11064. for ac_exec_ext in '' $ac_executable_extensions; do
  11065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11066. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11068. break 2
  11069. fi
  11070. done
  11071. done
  11072. IFS=$as_save_IFS
  11073. fi
  11074. fi
  11075. CXX=$ac_cv_prog_CXX
  11076. if test -n "$CXX"; then
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11078. $as_echo "$CXX" >&6; }
  11079. else
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11081. $as_echo "no" >&6; }
  11082. fi
  11083. test -n "$CXX" && break
  11084. done
  11085. fi
  11086. if test -z "$CXX"; then
  11087. ac_ct_CXX=$CXX
  11088. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11089. do
  11090. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11091. set dummy $ac_prog; ac_word=$2
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11093. $as_echo_n "checking for $ac_word... " >&6; }
  11094. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. if test -n "$ac_ct_CXX"; then
  11098. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11099. else
  11100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11101. for as_dir in $PATH
  11102. do
  11103. IFS=$as_save_IFS
  11104. test -z "$as_dir" && as_dir=.
  11105. for ac_exec_ext in '' $ac_executable_extensions; do
  11106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11107. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11109. break 2
  11110. fi
  11111. done
  11112. done
  11113. IFS=$as_save_IFS
  11114. fi
  11115. fi
  11116. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11117. if test -n "$ac_ct_CXX"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11119. $as_echo "$ac_ct_CXX" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. test -n "$ac_ct_CXX" && break
  11125. done
  11126. if test "x$ac_ct_CXX" = x; then
  11127. CXX="g++"
  11128. else
  11129. case $cross_compiling:$ac_tool_warned in
  11130. yes:)
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11132. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11133. ac_tool_warned=yes ;;
  11134. esac
  11135. CXX=$ac_ct_CXX
  11136. fi
  11137. fi
  11138. fi
  11139. fi
  11140. # Provide some information about the compiler.
  11141. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11142. set X $ac_compile
  11143. ac_compiler=$2
  11144. for ac_option in --version -v -V -qversion; do
  11145. { { ac_try="$ac_compiler $ac_option >&5"
  11146. case "(($ac_try" in
  11147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11148. *) ac_try_echo=$ac_try;;
  11149. esac
  11150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11151. $as_echo "$ac_try_echo"; } >&5
  11152. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11153. ac_status=$?
  11154. if test -s conftest.err; then
  11155. sed '10a\
  11156. ... rest of stderr output deleted ...
  11157. 10q' conftest.err >conftest.er1
  11158. cat conftest.er1 >&5
  11159. fi
  11160. rm -f conftest.er1 conftest.err
  11161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11162. test $ac_status = 0; }
  11163. done
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11165. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11166. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. int
  11172. main ()
  11173. {
  11174. #ifndef __GNUC__
  11175. choke me
  11176. #endif
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. if ac_fn_cxx_try_compile "$LINENO"; then :
  11182. ac_compiler_gnu=yes
  11183. else
  11184. ac_compiler_gnu=no
  11185. fi
  11186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11187. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11188. fi
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11190. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11191. if test $ac_compiler_gnu = yes; then
  11192. GXX=yes
  11193. else
  11194. GXX=
  11195. fi
  11196. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11197. ac_save_CXXFLAGS=$CXXFLAGS
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11199. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11200. if ${ac_cv_prog_cxx_g+:} false; then :
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11204. ac_cxx_werror_flag=yes
  11205. ac_cv_prog_cxx_g=no
  11206. CXXFLAGS="-g"
  11207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11208. /* end confdefs.h. */
  11209. int
  11210. main ()
  11211. {
  11212. ;
  11213. return 0;
  11214. }
  11215. _ACEOF
  11216. if ac_fn_cxx_try_compile "$LINENO"; then :
  11217. ac_cv_prog_cxx_g=yes
  11218. else
  11219. CXXFLAGS=""
  11220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11221. /* end confdefs.h. */
  11222. int
  11223. main ()
  11224. {
  11225. ;
  11226. return 0;
  11227. }
  11228. _ACEOF
  11229. if ac_fn_cxx_try_compile "$LINENO"; then :
  11230. else
  11231. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11232. CXXFLAGS="-g"
  11233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11234. /* end confdefs.h. */
  11235. int
  11236. main ()
  11237. {
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if ac_fn_cxx_try_compile "$LINENO"; then :
  11243. ac_cv_prog_cxx_g=yes
  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. fi
  11249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11250. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11251. fi
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11253. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11254. if test "$ac_test_CXXFLAGS" = set; then
  11255. CXXFLAGS=$ac_save_CXXFLAGS
  11256. elif test $ac_cv_prog_cxx_g = yes; then
  11257. if test "$GXX" = yes; then
  11258. CXXFLAGS="-g -O2"
  11259. else
  11260. CXXFLAGS="-g"
  11261. fi
  11262. else
  11263. if test "$GXX" = yes; then
  11264. CXXFLAGS="-O2"
  11265. else
  11266. CXXFLAGS=
  11267. fi
  11268. fi
  11269. ac_ext=c
  11270. ac_cpp='$CPP $CPPFLAGS'
  11271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11274. func_stripname_cnf ()
  11275. {
  11276. case $2 in
  11277. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11278. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11279. esac
  11280. } # func_stripname_cnf
  11281. if test -n "$CXX" && ( test no != "$CXX" &&
  11282. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11283. (test g++ != "$CXX"))); then
  11284. ac_ext=cpp
  11285. ac_cpp='$CXXCPP $CPPFLAGS'
  11286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11290. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11291. if test -z "$CXXCPP"; then
  11292. if ${ac_cv_prog_CXXCPP+:} false; then :
  11293. $as_echo_n "(cached) " >&6
  11294. else
  11295. # Double quotes because CXXCPP needs to be expanded
  11296. for CXXCPP in "$CXX -E" "/lib/cpp"
  11297. do
  11298. ac_preproc_ok=false
  11299. for ac_cxx_preproc_warn_flag in '' yes
  11300. do
  11301. # Use a header file that comes with gcc, so configuring glibc
  11302. # with a fresh cross-compiler works.
  11303. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11304. # <limits.h> exists even on freestanding compilers.
  11305. # On the NeXT, cc -E runs the code through the compiler's parser,
  11306. # not just through cpp. "Syntax error" is here to catch this case.
  11307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11308. /* end confdefs.h. */
  11309. #ifdef __STDC__
  11310. # include <limits.h>
  11311. #else
  11312. # include <assert.h>
  11313. #endif
  11314. Syntax error
  11315. _ACEOF
  11316. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11317. else
  11318. # Broken: fails on valid input.
  11319. continue
  11320. fi
  11321. rm -f conftest.err conftest.i conftest.$ac_ext
  11322. # OK, works on sane cases. Now check whether nonexistent headers
  11323. # can be detected and how.
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. #include <ac_nonexistent.h>
  11327. _ACEOF
  11328. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11329. # Broken: success on invalid input.
  11330. continue
  11331. else
  11332. # Passes both tests.
  11333. ac_preproc_ok=:
  11334. break
  11335. fi
  11336. rm -f conftest.err conftest.i conftest.$ac_ext
  11337. done
  11338. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11339. rm -f conftest.i conftest.err conftest.$ac_ext
  11340. if $ac_preproc_ok; then :
  11341. break
  11342. fi
  11343. done
  11344. ac_cv_prog_CXXCPP=$CXXCPP
  11345. fi
  11346. CXXCPP=$ac_cv_prog_CXXCPP
  11347. else
  11348. ac_cv_prog_CXXCPP=$CXXCPP
  11349. fi
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11351. $as_echo "$CXXCPP" >&6; }
  11352. ac_preproc_ok=false
  11353. for ac_cxx_preproc_warn_flag in '' yes
  11354. do
  11355. # Use a header file that comes with gcc, so configuring glibc
  11356. # with a fresh cross-compiler works.
  11357. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11358. # <limits.h> exists even on freestanding compilers.
  11359. # On the NeXT, cc -E runs the code through the compiler's parser,
  11360. # not just through cpp. "Syntax error" is here to catch this case.
  11361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11362. /* end confdefs.h. */
  11363. #ifdef __STDC__
  11364. # include <limits.h>
  11365. #else
  11366. # include <assert.h>
  11367. #endif
  11368. Syntax error
  11369. _ACEOF
  11370. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11371. else
  11372. # Broken: fails on valid input.
  11373. continue
  11374. fi
  11375. rm -f conftest.err conftest.i conftest.$ac_ext
  11376. # OK, works on sane cases. Now check whether nonexistent headers
  11377. # can be detected and how.
  11378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11379. /* end confdefs.h. */
  11380. #include <ac_nonexistent.h>
  11381. _ACEOF
  11382. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11383. # Broken: success on invalid input.
  11384. continue
  11385. else
  11386. # Passes both tests.
  11387. ac_preproc_ok=:
  11388. break
  11389. fi
  11390. rm -f conftest.err conftest.i conftest.$ac_ext
  11391. done
  11392. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11393. rm -f conftest.i conftest.err conftest.$ac_ext
  11394. if $ac_preproc_ok; then :
  11395. else
  11396. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11398. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11399. See \`config.log' for more details" "$LINENO" 5; }
  11400. fi
  11401. ac_ext=c
  11402. ac_cpp='$CPP $CPPFLAGS'
  11403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11406. else
  11407. _lt_caught_CXX_error=yes
  11408. fi
  11409. ac_ext=cpp
  11410. ac_cpp='$CXXCPP $CPPFLAGS'
  11411. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11412. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11413. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11414. archive_cmds_need_lc_CXX=no
  11415. allow_undefined_flag_CXX=
  11416. always_export_symbols_CXX=no
  11417. archive_expsym_cmds_CXX=
  11418. compiler_needs_object_CXX=no
  11419. export_dynamic_flag_spec_CXX=
  11420. hardcode_direct_CXX=no
  11421. hardcode_direct_absolute_CXX=no
  11422. hardcode_libdir_flag_spec_CXX=
  11423. hardcode_libdir_separator_CXX=
  11424. hardcode_minus_L_CXX=no
  11425. hardcode_shlibpath_var_CXX=unsupported
  11426. hardcode_automatic_CXX=no
  11427. inherit_rpath_CXX=no
  11428. module_cmds_CXX=
  11429. module_expsym_cmds_CXX=
  11430. link_all_deplibs_CXX=unknown
  11431. old_archive_cmds_CXX=$old_archive_cmds
  11432. reload_flag_CXX=$reload_flag
  11433. reload_cmds_CXX=$reload_cmds
  11434. no_undefined_flag_CXX=
  11435. whole_archive_flag_spec_CXX=
  11436. enable_shared_with_static_runtimes_CXX=no
  11437. # Source file extension for C++ test sources.
  11438. ac_ext=cpp
  11439. # Object file extension for compiled C++ test sources.
  11440. objext=o
  11441. objext_CXX=$objext
  11442. # No sense in running all these tests if we already determined that
  11443. # the CXX compiler isn't working. Some variables (like enable_shared)
  11444. # are currently assumed to apply to all compilers on this platform,
  11445. # and will be corrupted by setting them based on a non-working compiler.
  11446. if test yes != "$_lt_caught_CXX_error"; then
  11447. # Code to be used in simple compile tests
  11448. lt_simple_compile_test_code="int some_variable = 0;"
  11449. # Code to be used in simple link tests
  11450. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11451. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11452. # If no C compiler was specified, use CC.
  11453. LTCC=${LTCC-"$CC"}
  11454. # If no C compiler flags were specified, use CFLAGS.
  11455. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11456. # Allow CC to be a program name with arguments.
  11457. compiler=$CC
  11458. # save warnings/boilerplate of simple test code
  11459. ac_outfile=conftest.$ac_objext
  11460. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11461. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11462. _lt_compiler_boilerplate=`cat conftest.err`
  11463. $RM conftest*
  11464. ac_outfile=conftest.$ac_objext
  11465. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11466. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11467. _lt_linker_boilerplate=`cat conftest.err`
  11468. $RM -r conftest*
  11469. # Allow CC to be a program name with arguments.
  11470. lt_save_CC=$CC
  11471. lt_save_CFLAGS=$CFLAGS
  11472. lt_save_LD=$LD
  11473. lt_save_GCC=$GCC
  11474. GCC=$GXX
  11475. lt_save_with_gnu_ld=$with_gnu_ld
  11476. lt_save_path_LD=$lt_cv_path_LD
  11477. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11478. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11479. else
  11480. $as_unset lt_cv_prog_gnu_ld
  11481. fi
  11482. if test -n "${lt_cv_path_LDCXX+set}"; then
  11483. lt_cv_path_LD=$lt_cv_path_LDCXX
  11484. else
  11485. $as_unset lt_cv_path_LD
  11486. fi
  11487. test -z "${LDCXX+set}" || LD=$LDCXX
  11488. CC=${CXX-"c++"}
  11489. CFLAGS=$CXXFLAGS
  11490. compiler=$CC
  11491. compiler_CXX=$CC
  11492. func_cc_basename $compiler
  11493. cc_basename=$func_cc_basename_result
  11494. if test -n "$compiler"; then
  11495. # We don't want -fno-exception when compiling C++ code, so set the
  11496. # no_builtin_flag separately
  11497. if test yes = "$GXX"; then
  11498. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11499. else
  11500. lt_prog_compiler_no_builtin_flag_CXX=
  11501. fi
  11502. if test yes = "$GXX"; then
  11503. # Set up default GNU C++ configuration
  11504. # Check whether --with-gnu-ld was given.
  11505. if test "${with_gnu_ld+set}" = set; then :
  11506. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11507. else
  11508. with_gnu_ld=no
  11509. fi
  11510. ac_prog=ld
  11511. if test yes = "$GCC"; then
  11512. # Check if gcc -print-prog-name=ld gives a path.
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11514. $as_echo_n "checking for ld used by $CC... " >&6; }
  11515. case $host in
  11516. *-*-mingw*)
  11517. # gcc leaves a trailing carriage return, which upsets mingw
  11518. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11519. *)
  11520. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11521. esac
  11522. case $ac_prog in
  11523. # Accept absolute paths.
  11524. [\\/]* | ?:[\\/]*)
  11525. re_direlt='/[^/][^/]*/\.\./'
  11526. # Canonicalize the pathname of ld
  11527. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11528. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11529. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11530. done
  11531. test -z "$LD" && LD=$ac_prog
  11532. ;;
  11533. "")
  11534. # If it fails, then pretend we aren't using GCC.
  11535. ac_prog=ld
  11536. ;;
  11537. *)
  11538. # If it is relative, then search for the first ld in PATH.
  11539. with_gnu_ld=unknown
  11540. ;;
  11541. esac
  11542. elif test yes = "$with_gnu_ld"; then
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11544. $as_echo_n "checking for GNU ld... " >&6; }
  11545. else
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11547. $as_echo_n "checking for non-GNU ld... " >&6; }
  11548. fi
  11549. if ${lt_cv_path_LD+:} false; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. if test -z "$LD"; then
  11553. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11554. for ac_dir in $PATH; do
  11555. IFS=$lt_save_ifs
  11556. test -z "$ac_dir" && ac_dir=.
  11557. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11558. lt_cv_path_LD=$ac_dir/$ac_prog
  11559. # Check to see if the program is GNU ld. I'd rather use --version,
  11560. # but apparently some variants of GNU ld only accept -v.
  11561. # Break only if it was the GNU/non-GNU ld that we prefer.
  11562. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11563. *GNU* | *'with BFD'*)
  11564. test no != "$with_gnu_ld" && break
  11565. ;;
  11566. *)
  11567. test yes != "$with_gnu_ld" && break
  11568. ;;
  11569. esac
  11570. fi
  11571. done
  11572. IFS=$lt_save_ifs
  11573. else
  11574. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11575. fi
  11576. fi
  11577. LD=$lt_cv_path_LD
  11578. if test -n "$LD"; then
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11580. $as_echo "$LD" >&6; }
  11581. else
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11583. $as_echo "no" >&6; }
  11584. fi
  11585. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11587. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11588. if ${lt_cv_prog_gnu_ld+:} false; then :
  11589. $as_echo_n "(cached) " >&6
  11590. else
  11591. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11592. case `$LD -v 2>&1 </dev/null` in
  11593. *GNU* | *'with BFD'*)
  11594. lt_cv_prog_gnu_ld=yes
  11595. ;;
  11596. *)
  11597. lt_cv_prog_gnu_ld=no
  11598. ;;
  11599. esac
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11602. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11603. with_gnu_ld=$lt_cv_prog_gnu_ld
  11604. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11605. # archiving commands below assume that GNU ld is being used.
  11606. if test yes = "$with_gnu_ld"; then
  11607. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11608. 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'
  11609. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11610. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11611. # If archive_cmds runs LD, not CC, wlarc should be empty
  11612. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11613. # investigate it a little bit more. (MM)
  11614. wlarc='$wl'
  11615. # ancient GNU ld didn't support --whole-archive et. al.
  11616. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11617. $GREP 'no-whole-archive' > /dev/null; then
  11618. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11619. else
  11620. whole_archive_flag_spec_CXX=
  11621. fi
  11622. else
  11623. with_gnu_ld=no
  11624. wlarc=
  11625. # A generic and very simple default shared library creation
  11626. # command for GNU C++ for the case where it uses the native
  11627. # linker, instead of GNU ld. If possible, this setting should
  11628. # overridden to take advantage of the native linker features on
  11629. # the platform it is being used on.
  11630. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11631. fi
  11632. # Commands to make compiler produce verbose output that lists
  11633. # what "hidden" libraries, object files and flags are used when
  11634. # linking a shared library.
  11635. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11636. else
  11637. GXX=no
  11638. with_gnu_ld=no
  11639. wlarc=
  11640. fi
  11641. # PORTME: fill in a description of your system's C++ link characteristics
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11643. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11644. ld_shlibs_CXX=yes
  11645. case $host_os in
  11646. aix3*)
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. aix[4-9]*)
  11651. if test ia64 = "$host_cpu"; then
  11652. # On IA64, the linker does run time linking by default, so we don't
  11653. # have to do anything special.
  11654. aix_use_runtimelinking=no
  11655. exp_sym_flag='-Bexport'
  11656. no_entry_flag=
  11657. else
  11658. aix_use_runtimelinking=no
  11659. # Test if we are trying to use run time linking or normal
  11660. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11661. # have runtime linking enabled, and use it for executables.
  11662. # For shared libraries, we enable/disable runtime linking
  11663. # depending on the kind of the shared library created -
  11664. # when "with_aix_soname,aix_use_runtimelinking" is:
  11665. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11666. # "aix,yes" lib.so shared, rtl:yes, for executables
  11667. # lib.a static archive
  11668. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11669. # lib.a(lib.so.V) shared, rtl:no, for executables
  11670. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11671. # lib.a(lib.so.V) shared, rtl:no
  11672. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11673. # lib.a static archive
  11674. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11675. for ld_flag in $LDFLAGS; do
  11676. case $ld_flag in
  11677. *-brtl*)
  11678. aix_use_runtimelinking=yes
  11679. break
  11680. ;;
  11681. esac
  11682. done
  11683. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11684. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11685. # so we don't have lib.a shared libs to link our executables.
  11686. # We have to force runtime linking in this case.
  11687. aix_use_runtimelinking=yes
  11688. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11689. fi
  11690. ;;
  11691. esac
  11692. exp_sym_flag='-bexport'
  11693. no_entry_flag='-bnoentry'
  11694. fi
  11695. # When large executables or shared objects are built, AIX ld can
  11696. # have problems creating the table of contents. If linking a library
  11697. # or program results in "error TOC overflow" add -mminimal-toc to
  11698. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11699. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11700. archive_cmds_CXX=''
  11701. hardcode_direct_CXX=yes
  11702. hardcode_direct_absolute_CXX=yes
  11703. hardcode_libdir_separator_CXX=':'
  11704. link_all_deplibs_CXX=yes
  11705. file_list_spec_CXX='$wl-f,'
  11706. case $with_aix_soname,$aix_use_runtimelinking in
  11707. aix,*) ;; # no import file
  11708. svr4,* | *,yes) # use import file
  11709. # The Import File defines what to hardcode.
  11710. hardcode_direct_CXX=no
  11711. hardcode_direct_absolute_CXX=no
  11712. ;;
  11713. esac
  11714. if test yes = "$GXX"; then
  11715. case $host_os in aix4.[012]|aix4.[012].*)
  11716. # We only want to do this on AIX 4.2 and lower, the check
  11717. # below for broken collect2 doesn't work under 4.3+
  11718. collect2name=`$CC -print-prog-name=collect2`
  11719. if test -f "$collect2name" &&
  11720. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11721. then
  11722. # We have reworked collect2
  11723. :
  11724. else
  11725. # We have old collect2
  11726. hardcode_direct_CXX=unsupported
  11727. # It fails to find uninstalled libraries when the uninstalled
  11728. # path is not listed in the libpath. Setting hardcode_minus_L
  11729. # to unsupported forces relinking
  11730. hardcode_minus_L_CXX=yes
  11731. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11732. hardcode_libdir_separator_CXX=
  11733. fi
  11734. esac
  11735. shared_flag='-shared'
  11736. if test yes = "$aix_use_runtimelinking"; then
  11737. shared_flag=$shared_flag' $wl-G'
  11738. fi
  11739. # Need to ensure runtime linking is disabled for the traditional
  11740. # shared library, or the linker may eventually find shared libraries
  11741. # /with/ Import File - we do not want to mix them.
  11742. shared_flag_aix='-shared'
  11743. shared_flag_svr4='-shared $wl-G'
  11744. else
  11745. # not using gcc
  11746. if test ia64 = "$host_cpu"; then
  11747. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11748. # chokes on -Wl,-G. The following line is correct:
  11749. shared_flag='-G'
  11750. else
  11751. if test yes = "$aix_use_runtimelinking"; then
  11752. shared_flag='$wl-G'
  11753. else
  11754. shared_flag='$wl-bM:SRE'
  11755. fi
  11756. shared_flag_aix='$wl-bM:SRE'
  11757. shared_flag_svr4='$wl-G'
  11758. fi
  11759. fi
  11760. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11761. # It seems that -bexpall does not export symbols beginning with
  11762. # underscore (_), so it is better to generate a list of symbols to
  11763. # export.
  11764. always_export_symbols_CXX=yes
  11765. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11766. # Warning - without using the other runtime loading flags (-brtl),
  11767. # -berok will link without error, but may produce a broken library.
  11768. # The "-G" linker flag allows undefined symbols.
  11769. no_undefined_flag_CXX='-bernotok'
  11770. # Determine the default libpath from the value encoded in an empty
  11771. # executable.
  11772. if test set = "${lt_cv_aix_libpath+set}"; then
  11773. aix_libpath=$lt_cv_aix_libpath
  11774. else
  11775. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11776. $as_echo_n "(cached) " >&6
  11777. else
  11778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11779. /* end confdefs.h. */
  11780. int
  11781. main ()
  11782. {
  11783. ;
  11784. return 0;
  11785. }
  11786. _ACEOF
  11787. if ac_fn_cxx_try_link "$LINENO"; then :
  11788. lt_aix_libpath_sed='
  11789. /Import File Strings/,/^$/ {
  11790. /^0/ {
  11791. s/^0 *\([^ ]*\) *$/\1/
  11792. p
  11793. }
  11794. }'
  11795. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11796. # Check for a 64-bit object if we didn't find anything.
  11797. if test -z "$lt_cv_aix_libpath__CXX"; then
  11798. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11799. fi
  11800. fi
  11801. rm -f core conftest.err conftest.$ac_objext \
  11802. conftest$ac_exeext conftest.$ac_ext
  11803. if test -z "$lt_cv_aix_libpath__CXX"; then
  11804. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11805. fi
  11806. fi
  11807. aix_libpath=$lt_cv_aix_libpath__CXX
  11808. fi
  11809. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11810. 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
  11811. else
  11812. if test ia64 = "$host_cpu"; then
  11813. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11814. allow_undefined_flag_CXX="-z nodefs"
  11815. 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"
  11816. else
  11817. # Determine the default libpath from the value encoded in an
  11818. # empty executable.
  11819. if test set = "${lt_cv_aix_libpath+set}"; then
  11820. aix_libpath=$lt_cv_aix_libpath
  11821. else
  11822. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11823. $as_echo_n "(cached) " >&6
  11824. else
  11825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826. /* end confdefs.h. */
  11827. int
  11828. main ()
  11829. {
  11830. ;
  11831. return 0;
  11832. }
  11833. _ACEOF
  11834. if ac_fn_cxx_try_link "$LINENO"; then :
  11835. lt_aix_libpath_sed='
  11836. /Import File Strings/,/^$/ {
  11837. /^0/ {
  11838. s/^0 *\([^ ]*\) *$/\1/
  11839. p
  11840. }
  11841. }'
  11842. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11843. # Check for a 64-bit object if we didn't find anything.
  11844. if test -z "$lt_cv_aix_libpath__CXX"; then
  11845. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11846. fi
  11847. fi
  11848. rm -f core conftest.err conftest.$ac_objext \
  11849. conftest$ac_exeext conftest.$ac_ext
  11850. if test -z "$lt_cv_aix_libpath__CXX"; then
  11851. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11852. fi
  11853. fi
  11854. aix_libpath=$lt_cv_aix_libpath__CXX
  11855. fi
  11856. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11857. # Warning - without using the other run time loading flags,
  11858. # -berok will link without error, but may produce a broken library.
  11859. no_undefined_flag_CXX=' $wl-bernotok'
  11860. allow_undefined_flag_CXX=' $wl-berok'
  11861. if test yes = "$with_gnu_ld"; then
  11862. # We only use this code for GNU lds that support --whole-archive.
  11863. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11864. else
  11865. # Exported symbols can be pulled into shared objects from archives
  11866. whole_archive_flag_spec_CXX='$convenience'
  11867. fi
  11868. archive_cmds_need_lc_CXX=yes
  11869. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11870. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11871. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11872. if test svr4 != "$with_aix_soname"; then
  11873. # This is similar to how AIX traditionally builds its shared
  11874. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11875. 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'
  11876. fi
  11877. if test aix != "$with_aix_soname"; then
  11878. 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'
  11879. else
  11880. # used by -dlpreopen to get the symbols
  11881. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11882. fi
  11883. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11884. fi
  11885. fi
  11886. ;;
  11887. beos*)
  11888. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11889. allow_undefined_flag_CXX=unsupported
  11890. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11891. # support --undefined. This deserves some investigation. FIXME
  11892. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11893. else
  11894. ld_shlibs_CXX=no
  11895. fi
  11896. ;;
  11897. chorus*)
  11898. case $cc_basename in
  11899. *)
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. esac
  11904. ;;
  11905. cygwin* | mingw* | pw32* | cegcc*)
  11906. case $GXX,$cc_basename in
  11907. ,cl* | no,cl*)
  11908. # Native MSVC
  11909. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11910. # no search path for DLLs.
  11911. hardcode_libdir_flag_spec_CXX=' '
  11912. allow_undefined_flag_CXX=unsupported
  11913. always_export_symbols_CXX=yes
  11914. file_list_spec_CXX='@'
  11915. # Tell ltmain to make .lib files, not .a files.
  11916. libext=lib
  11917. # Tell ltmain to make .dll files, not .so files.
  11918. shrext_cmds=.dll
  11919. # FIXME: Setting linknames here is a bad hack.
  11920. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11921. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11922. cp "$export_symbols" "$output_objdir/$soname.def";
  11923. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11924. else
  11925. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11926. fi~
  11927. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11928. linknames='
  11929. # The linker will not automatically build a static lib if we build a DLL.
  11930. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11931. enable_shared_with_static_runtimes_CXX=yes
  11932. # Don't use ranlib
  11933. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11934. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11935. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11936. case $lt_outputfile in
  11937. *.exe|*.EXE) ;;
  11938. *)
  11939. lt_outputfile=$lt_outputfile.exe
  11940. lt_tool_outputfile=$lt_tool_outputfile.exe
  11941. ;;
  11942. esac~
  11943. func_to_tool_file "$lt_outputfile"~
  11944. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11945. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11946. $RM "$lt_outputfile.manifest";
  11947. fi'
  11948. ;;
  11949. *)
  11950. # g++
  11951. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11952. # as there is no search path for DLLs.
  11953. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11954. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11955. allow_undefined_flag_CXX=unsupported
  11956. always_export_symbols_CXX=no
  11957. enable_shared_with_static_runtimes_CXX=yes
  11958. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11959. 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'
  11960. # If the export-symbols file already is a .def file, use it as
  11961. # is; otherwise, prepend EXPORTS...
  11962. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11963. cp $export_symbols $output_objdir/$soname.def;
  11964. else
  11965. echo EXPORTS > $output_objdir/$soname.def;
  11966. cat $export_symbols >> $output_objdir/$soname.def;
  11967. fi~
  11968. $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'
  11969. else
  11970. ld_shlibs_CXX=no
  11971. fi
  11972. ;;
  11973. esac
  11974. ;;
  11975. darwin* | rhapsody*)
  11976. archive_cmds_need_lc_CXX=no
  11977. hardcode_direct_CXX=no
  11978. hardcode_automatic_CXX=yes
  11979. hardcode_shlibpath_var_CXX=unsupported
  11980. if test yes = "$lt_cv_ld_force_load"; then
  11981. 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\"`'
  11982. else
  11983. whole_archive_flag_spec_CXX=''
  11984. fi
  11985. link_all_deplibs_CXX=yes
  11986. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11987. case $cc_basename in
  11988. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11989. *) _lt_dar_can_shared=$GCC ;;
  11990. esac
  11991. if test yes = "$_lt_dar_can_shared"; then
  11992. output_verbose_link_cmd=func_echo_all
  11993. 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"
  11994. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11995. 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"
  11996. 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"
  11997. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11998. 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"
  11999. 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"
  12000. fi
  12001. else
  12002. ld_shlibs_CXX=no
  12003. fi
  12004. ;;
  12005. os2*)
  12006. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12007. hardcode_minus_L_CXX=yes
  12008. allow_undefined_flag_CXX=unsupported
  12009. shrext_cmds=.dll
  12010. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12011. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12012. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12013. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12014. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12015. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12016. emximp -o $lib $output_objdir/$libname.def'
  12017. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12021. prefix_cmds="$SED"~
  12022. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12023. prefix_cmds="$prefix_cmds -e 1d";
  12024. fi~
  12025. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12026. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12027. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12028. emximp -o $lib $output_objdir/$libname.def'
  12029. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12030. enable_shared_with_static_runtimes_CXX=yes
  12031. file_list_spec_CXX='@'
  12032. ;;
  12033. dgux*)
  12034. case $cc_basename in
  12035. ec++*)
  12036. # FIXME: insert proper C++ library support
  12037. ld_shlibs_CXX=no
  12038. ;;
  12039. ghcx*)
  12040. # Green Hills C++ Compiler
  12041. # FIXME: insert proper C++ library support
  12042. ld_shlibs_CXX=no
  12043. ;;
  12044. *)
  12045. # FIXME: insert proper C++ library support
  12046. ld_shlibs_CXX=no
  12047. ;;
  12048. esac
  12049. ;;
  12050. freebsd2.*)
  12051. # C++ shared libraries reported to be fairly broken before
  12052. # switch to ELF
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. freebsd-elf*)
  12056. archive_cmds_need_lc_CXX=no
  12057. ;;
  12058. freebsd* | dragonfly* | midnightbsd*)
  12059. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12060. # conventions
  12061. ld_shlibs_CXX=yes
  12062. ;;
  12063. haiku*)
  12064. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12065. link_all_deplibs_CXX=yes
  12066. ;;
  12067. hpux9*)
  12068. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12069. hardcode_libdir_separator_CXX=:
  12070. export_dynamic_flag_spec_CXX='$wl-E'
  12071. hardcode_direct_CXX=yes
  12072. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12073. # but as the default
  12074. # location of the library.
  12075. case $cc_basename in
  12076. CC*)
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. ;;
  12080. aCC*)
  12081. 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'
  12082. # Commands to make compiler produce verbose output that lists
  12083. # what "hidden" libraries, object files and flags are used when
  12084. # linking a shared library.
  12085. #
  12086. # There doesn't appear to be a way to prevent this compiler from
  12087. # explicitly linking system object files so we need to strip them
  12088. # from the output so that they don't get included in the library
  12089. # dependencies.
  12090. 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"'
  12091. ;;
  12092. *)
  12093. if test yes = "$GXX"; then
  12094. 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'
  12095. else
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. fi
  12099. ;;
  12100. esac
  12101. ;;
  12102. hpux10*|hpux11*)
  12103. if test no = "$with_gnu_ld"; then
  12104. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12105. hardcode_libdir_separator_CXX=:
  12106. case $host_cpu in
  12107. hppa*64*|ia64*)
  12108. ;;
  12109. *)
  12110. export_dynamic_flag_spec_CXX='$wl-E'
  12111. ;;
  12112. esac
  12113. fi
  12114. case $host_cpu in
  12115. hppa*64*|ia64*)
  12116. hardcode_direct_CXX=no
  12117. hardcode_shlibpath_var_CXX=no
  12118. ;;
  12119. *)
  12120. hardcode_direct_CXX=yes
  12121. hardcode_direct_absolute_CXX=yes
  12122. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12123. # but as the default
  12124. # location of the library.
  12125. ;;
  12126. esac
  12127. case $cc_basename in
  12128. CC*)
  12129. # FIXME: insert proper C++ library support
  12130. ld_shlibs_CXX=no
  12131. ;;
  12132. aCC*)
  12133. case $host_cpu in
  12134. hppa*64*)
  12135. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12136. ;;
  12137. ia64*)
  12138. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12139. ;;
  12140. *)
  12141. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12142. ;;
  12143. esac
  12144. # Commands to make compiler produce verbose output that lists
  12145. # what "hidden" libraries, object files and flags are used when
  12146. # linking a shared library.
  12147. #
  12148. # There doesn't appear to be a way to prevent this compiler from
  12149. # explicitly linking system object files so we need to strip them
  12150. # from the output so that they don't get included in the library
  12151. # dependencies.
  12152. 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"'
  12153. ;;
  12154. *)
  12155. if test yes = "$GXX"; then
  12156. if test no = "$with_gnu_ld"; then
  12157. case $host_cpu in
  12158. hppa*64*)
  12159. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12160. ;;
  12161. ia64*)
  12162. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12163. ;;
  12164. *)
  12165. 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'
  12166. ;;
  12167. esac
  12168. fi
  12169. else
  12170. # FIXME: insert proper C++ library support
  12171. ld_shlibs_CXX=no
  12172. fi
  12173. ;;
  12174. esac
  12175. ;;
  12176. interix[3-9]*)
  12177. hardcode_direct_CXX=no
  12178. hardcode_shlibpath_var_CXX=no
  12179. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12180. export_dynamic_flag_spec_CXX='$wl-E'
  12181. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12182. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12183. # default) and relocated if they conflict, which is a slow very memory
  12184. # consuming and fragmenting process. To avoid this, we pick a random,
  12185. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12186. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12187. 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'
  12188. 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'
  12189. ;;
  12190. irix5* | irix6*)
  12191. case $cc_basename in
  12192. CC*)
  12193. # SGI C++
  12194. 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'
  12195. # Archives containing C++ object files must be created using
  12196. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12197. # necessary to make sure instantiated templates are included
  12198. # in the archive.
  12199. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12200. ;;
  12201. *)
  12202. if test yes = "$GXX"; then
  12203. if test no = "$with_gnu_ld"; then
  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"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12205. else
  12206. 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'
  12207. fi
  12208. fi
  12209. link_all_deplibs_CXX=yes
  12210. ;;
  12211. esac
  12212. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12213. hardcode_libdir_separator_CXX=:
  12214. inherit_rpath_CXX=yes
  12215. ;;
  12216. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12217. case $cc_basename in
  12218. KCC*)
  12219. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12220. # KCC will only create a shared library if the output file
  12221. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12222. # to its proper name (with version) after linking.
  12223. 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'
  12224. 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'
  12225. # Commands to make compiler produce verbose output that lists
  12226. # what "hidden" libraries, object files and flags are used when
  12227. # linking a shared library.
  12228. #
  12229. # There doesn't appear to be a way to prevent this compiler from
  12230. # explicitly linking system object files so we need to strip them
  12231. # from the output so that they don't get included in the library
  12232. # dependencies.
  12233. 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"'
  12234. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12235. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12236. # Archives containing C++ object files must be created using
  12237. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12238. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12239. ;;
  12240. icpc* | ecpc* )
  12241. # Intel C++
  12242. with_gnu_ld=yes
  12243. # version 8.0 and above of icpc choke on multiply defined symbols
  12244. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12245. # earlier do not add the objects themselves.
  12246. case `$CC -V 2>&1` in
  12247. *"Version 7."*)
  12248. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12249. 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'
  12250. ;;
  12251. *) # Version 8.0 or newer
  12252. tmp_idyn=
  12253. case $host_cpu in
  12254. ia64*) tmp_idyn=' -i_dynamic';;
  12255. esac
  12256. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12257. 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'
  12258. ;;
  12259. esac
  12260. archive_cmds_need_lc_CXX=no
  12261. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12262. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12263. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12264. ;;
  12265. pgCC* | pgcpp*)
  12266. # Portland Group C++ compiler
  12267. case `$CC -V` in
  12268. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12269. prelink_cmds_CXX='tpldir=Template.dir~
  12270. rm -rf $tpldir~
  12271. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12272. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12273. old_archive_cmds_CXX='tpldir=Template.dir~
  12274. rm -rf $tpldir~
  12275. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12276. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12277. $RANLIB $oldlib'
  12278. archive_cmds_CXX='tpldir=Template.dir~
  12279. rm -rf $tpldir~
  12280. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12281. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12282. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12283. rm -rf $tpldir~
  12284. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12285. $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'
  12286. ;;
  12287. *) # Version 6 and above use weak symbols
  12288. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12289. 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'
  12290. ;;
  12291. esac
  12292. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12293. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12294. 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'
  12295. ;;
  12296. cxx*)
  12297. # Compaq C++
  12298. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12299. 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'
  12300. runpath_var=LD_RUN_PATH
  12301. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12302. hardcode_libdir_separator_CXX=:
  12303. # Commands to make compiler produce verbose output that lists
  12304. # what "hidden" libraries, object files and flags are used when
  12305. # linking a shared library.
  12306. #
  12307. # There doesn't appear to be a way to prevent this compiler from
  12308. # explicitly linking system object files so we need to strip them
  12309. # from the output so that they don't get included in the library
  12310. # dependencies.
  12311. 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'
  12312. ;;
  12313. xl* | mpixl* | bgxl*)
  12314. # IBM XL 8.0 on PPC, with GNU ld
  12315. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12316. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12317. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12318. if test yes = "$supports_anon_versioning"; then
  12319. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12320. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12321. echo "local: *; };" >> $output_objdir/$libname.ver~
  12322. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12323. fi
  12324. ;;
  12325. *)
  12326. case `$CC -V 2>&1 | sed 5q` in
  12327. *Sun\ C*)
  12328. # Sun C++ 5.9
  12329. no_undefined_flag_CXX=' -zdefs'
  12330. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12331. 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'
  12332. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12333. 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'
  12334. compiler_needs_object_CXX=yes
  12335. # Not sure whether something based on
  12336. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12337. # would be better.
  12338. output_verbose_link_cmd='func_echo_all'
  12339. # Archives containing C++ object files must be created using
  12340. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12341. # necessary to make sure instantiated templates are included
  12342. # in the archive.
  12343. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12344. ;;
  12345. esac
  12346. ;;
  12347. esac
  12348. ;;
  12349. lynxos*)
  12350. # FIXME: insert proper C++ library support
  12351. ld_shlibs_CXX=no
  12352. ;;
  12353. m88k*)
  12354. # FIXME: insert proper C++ library support
  12355. ld_shlibs_CXX=no
  12356. ;;
  12357. mvs*)
  12358. case $cc_basename in
  12359. cxx*)
  12360. # FIXME: insert proper C++ library support
  12361. ld_shlibs_CXX=no
  12362. ;;
  12363. *)
  12364. # FIXME: insert proper C++ library support
  12365. ld_shlibs_CXX=no
  12366. ;;
  12367. esac
  12368. ;;
  12369. netbsd*)
  12370. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12371. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12372. wlarc=
  12373. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12374. hardcode_direct_CXX=yes
  12375. hardcode_shlibpath_var_CXX=no
  12376. fi
  12377. # Workaround some broken pre-1.5 toolchains
  12378. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12379. ;;
  12380. *nto* | *qnx*)
  12381. ld_shlibs_CXX=yes
  12382. ;;
  12383. openbsd* | bitrig*)
  12384. if test -f /usr/libexec/ld.so; then
  12385. hardcode_direct_CXX=yes
  12386. hardcode_shlibpath_var_CXX=no
  12387. hardcode_direct_absolute_CXX=yes
  12388. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12389. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12390. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12391. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12392. export_dynamic_flag_spec_CXX='$wl-E'
  12393. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12394. fi
  12395. output_verbose_link_cmd=func_echo_all
  12396. else
  12397. ld_shlibs_CXX=no
  12398. fi
  12399. ;;
  12400. osf3* | osf4* | osf5*)
  12401. case $cc_basename in
  12402. KCC*)
  12403. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12404. # KCC will only create a shared library if the output file
  12405. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12406. # to its proper name (with version) after linking.
  12407. 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'
  12408. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12409. hardcode_libdir_separator_CXX=:
  12410. # Archives containing C++ object files must be created using
  12411. # the KAI C++ compiler.
  12412. case $host in
  12413. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12414. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12415. esac
  12416. ;;
  12417. RCC*)
  12418. # Rational C++ 2.4.1
  12419. # FIXME: insert proper C++ library support
  12420. ld_shlibs_CXX=no
  12421. ;;
  12422. cxx*)
  12423. case $host in
  12424. osf3*)
  12425. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12426. 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'
  12427. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12428. ;;
  12429. *)
  12430. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12431. 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'
  12432. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12433. echo "-hidden">> $lib.exp~
  12434. $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~
  12435. $RM $lib.exp'
  12436. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12437. ;;
  12438. esac
  12439. hardcode_libdir_separator_CXX=:
  12440. # Commands to make compiler produce verbose output that lists
  12441. # what "hidden" libraries, object files and flags are used when
  12442. # linking a shared library.
  12443. #
  12444. # There doesn't appear to be a way to prevent this compiler from
  12445. # explicitly linking system object files so we need to strip them
  12446. # from the output so that they don't get included in the library
  12447. # dependencies.
  12448. 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"'
  12449. ;;
  12450. *)
  12451. if test yes,no = "$GXX,$with_gnu_ld"; then
  12452. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12453. case $host in
  12454. osf3*)
  12455. 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'
  12456. ;;
  12457. *)
  12458. 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'
  12459. ;;
  12460. esac
  12461. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12462. hardcode_libdir_separator_CXX=:
  12463. # Commands to make compiler produce verbose output that lists
  12464. # what "hidden" libraries, object files and flags are used when
  12465. # linking a shared library.
  12466. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12467. else
  12468. # FIXME: insert proper C++ library support
  12469. ld_shlibs_CXX=no
  12470. fi
  12471. ;;
  12472. esac
  12473. ;;
  12474. psos*)
  12475. # FIXME: insert proper C++ library support
  12476. ld_shlibs_CXX=no
  12477. ;;
  12478. sunos4*)
  12479. case $cc_basename in
  12480. CC*)
  12481. # Sun C++ 4.x
  12482. # FIXME: insert proper C++ library support
  12483. ld_shlibs_CXX=no
  12484. ;;
  12485. lcc*)
  12486. # Lucid
  12487. # FIXME: insert proper C++ library support
  12488. ld_shlibs_CXX=no
  12489. ;;
  12490. *)
  12491. # FIXME: insert proper C++ library support
  12492. ld_shlibs_CXX=no
  12493. ;;
  12494. esac
  12495. ;;
  12496. solaris*)
  12497. case $cc_basename in
  12498. CC* | sunCC*)
  12499. # Sun C++ 4.2, 5.x and Centerline C++
  12500. archive_cmds_need_lc_CXX=yes
  12501. no_undefined_flag_CXX=' -zdefs'
  12502. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12503. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12504. $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'
  12505. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12506. hardcode_shlibpath_var_CXX=no
  12507. case $host_os in
  12508. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12509. *)
  12510. # The compiler driver will combine and reorder linker options,
  12511. # but understands '-z linker_flag'.
  12512. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12513. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12514. ;;
  12515. esac
  12516. link_all_deplibs_CXX=yes
  12517. output_verbose_link_cmd='func_echo_all'
  12518. # Archives containing C++ object files must be created using
  12519. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12520. # necessary to make sure instantiated templates are included
  12521. # in the archive.
  12522. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12523. ;;
  12524. gcx*)
  12525. # Green Hills C++ Compiler
  12526. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12527. # The C++ compiler must be used to create the archive.
  12528. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12529. ;;
  12530. *)
  12531. # GNU C++ compiler with Solaris linker
  12532. if test yes,no = "$GXX,$with_gnu_ld"; then
  12533. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12534. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12535. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12536. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12537. $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'
  12538. # Commands to make compiler produce verbose output that lists
  12539. # what "hidden" libraries, object files and flags are used when
  12540. # linking a shared library.
  12541. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12542. else
  12543. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12544. # platform.
  12545. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12546. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12547. $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'
  12548. # Commands to make compiler produce verbose output that lists
  12549. # what "hidden" libraries, object files and flags are used when
  12550. # linking a shared library.
  12551. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12552. fi
  12553. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12554. case $host_os in
  12555. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12556. *)
  12557. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12558. ;;
  12559. esac
  12560. fi
  12561. ;;
  12562. esac
  12563. ;;
  12564. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12565. no_undefined_flag_CXX='$wl-z,text'
  12566. archive_cmds_need_lc_CXX=no
  12567. hardcode_shlibpath_var_CXX=no
  12568. runpath_var='LD_RUN_PATH'
  12569. case $cc_basename in
  12570. CC*)
  12571. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12572. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. ;;
  12574. *)
  12575. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12576. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12577. ;;
  12578. esac
  12579. ;;
  12580. sysv5* | sco3.2v5* | sco5v6*)
  12581. # Note: We CANNOT use -z defs as we might desire, because we do not
  12582. # link with -lc, and that would cause any symbols used from libc to
  12583. # always be unresolved, which means just about no library would
  12584. # ever link correctly. If we're not using GNU ld we use -z text
  12585. # though, which does catch some bad symbols but isn't as heavy-handed
  12586. # as -z defs.
  12587. no_undefined_flag_CXX='$wl-z,text'
  12588. allow_undefined_flag_CXX='$wl-z,nodefs'
  12589. archive_cmds_need_lc_CXX=no
  12590. hardcode_shlibpath_var_CXX=no
  12591. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12592. hardcode_libdir_separator_CXX=':'
  12593. link_all_deplibs_CXX=yes
  12594. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12595. runpath_var='LD_RUN_PATH'
  12596. case $cc_basename in
  12597. CC*)
  12598. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12599. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12600. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12601. '"$old_archive_cmds_CXX"
  12602. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12603. '"$reload_cmds_CXX"
  12604. ;;
  12605. *)
  12606. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12608. ;;
  12609. esac
  12610. ;;
  12611. tandem*)
  12612. case $cc_basename in
  12613. NCC*)
  12614. # NonStop-UX NCC 3.20
  12615. # FIXME: insert proper C++ library support
  12616. ld_shlibs_CXX=no
  12617. ;;
  12618. *)
  12619. # FIXME: insert proper C++ library support
  12620. ld_shlibs_CXX=no
  12621. ;;
  12622. esac
  12623. ;;
  12624. vxworks*)
  12625. # FIXME: insert proper C++ library support
  12626. ld_shlibs_CXX=no
  12627. ;;
  12628. *)
  12629. # FIXME: insert proper C++ library support
  12630. ld_shlibs_CXX=no
  12631. ;;
  12632. esac
  12633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12634. $as_echo "$ld_shlibs_CXX" >&6; }
  12635. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12636. GCC_CXX=$GXX
  12637. LD_CXX=$LD
  12638. ## CAVEAT EMPTOR:
  12639. ## There is no encapsulation within the following macros, do not change
  12640. ## the running order or otherwise move them around unless you know exactly
  12641. ## what you are doing...
  12642. # Dependencies to place before and after the object being linked:
  12643. predep_objects_CXX=
  12644. postdep_objects_CXX=
  12645. predeps_CXX=
  12646. postdeps_CXX=
  12647. compiler_lib_search_path_CXX=
  12648. cat > conftest.$ac_ext <<_LT_EOF
  12649. class Foo
  12650. {
  12651. public:
  12652. Foo (void) { a = 0; }
  12653. private:
  12654. int a;
  12655. };
  12656. _LT_EOF
  12657. _lt_libdeps_save_CFLAGS=$CFLAGS
  12658. case "$CC $CFLAGS " in #(
  12659. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12660. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12661. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12662. esac
  12663. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12664. (eval $ac_compile) 2>&5
  12665. ac_status=$?
  12666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12667. test $ac_status = 0; }; then
  12668. # Parse the compiler output and extract the necessary
  12669. # objects, libraries and library flags.
  12670. # Sentinel used to keep track of whether or not we are before
  12671. # the conftest object file.
  12672. pre_test_object_deps_done=no
  12673. for p in `eval "$output_verbose_link_cmd"`; do
  12674. case $prev$p in
  12675. -L* | -R* | -l*)
  12676. # Some compilers place space between "-{L,R}" and the path.
  12677. # Remove the space.
  12678. if test x-L = "x$p" ||
  12679. test x-R = "x$p" ||
  12680. test x-l = "x$p"; then
  12681. prev=$p
  12682. continue
  12683. fi
  12684. # Expand the sysroot to ease extracting the directories later.
  12685. if test -z "$prev"; then
  12686. case $p in
  12687. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12688. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12689. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12690. esac
  12691. fi
  12692. case $p in
  12693. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12694. esac
  12695. if test no = "$pre_test_object_deps_done"; then
  12696. case $prev in
  12697. -L | -R)
  12698. # Internal compiler library paths should come after those
  12699. # provided the user. The postdeps already come after the
  12700. # user supplied libs so there is no need to process them.
  12701. if test -z "$compiler_lib_search_path_CXX"; then
  12702. compiler_lib_search_path_CXX=$prev$p
  12703. else
  12704. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12705. fi
  12706. ;;
  12707. # The "-l" case would never come before the object being
  12708. # linked, so don't bother handling this case.
  12709. esac
  12710. else
  12711. if test -z "$postdeps_CXX"; then
  12712. postdeps_CXX=$prev$p
  12713. else
  12714. postdeps_CXX="${postdeps_CXX} $prev$p"
  12715. fi
  12716. fi
  12717. prev=
  12718. ;;
  12719. *.lto.$objext) ;; # Ignore GCC LTO objects
  12720. *.$objext)
  12721. # This assumes that the test object file only shows up
  12722. # once in the compiler output.
  12723. if test "$p" = "conftest.$objext"; then
  12724. pre_test_object_deps_done=yes
  12725. continue
  12726. fi
  12727. if test no = "$pre_test_object_deps_done"; then
  12728. if test -z "$predep_objects_CXX"; then
  12729. predep_objects_CXX=$p
  12730. else
  12731. predep_objects_CXX="$predep_objects_CXX $p"
  12732. fi
  12733. else
  12734. if test -z "$postdep_objects_CXX"; then
  12735. postdep_objects_CXX=$p
  12736. else
  12737. postdep_objects_CXX="$postdep_objects_CXX $p"
  12738. fi
  12739. fi
  12740. ;;
  12741. *) ;; # Ignore the rest.
  12742. esac
  12743. done
  12744. # Clean up.
  12745. rm -f a.out a.exe
  12746. else
  12747. echo "libtool.m4: error: problem compiling CXX test program"
  12748. fi
  12749. $RM -f confest.$objext
  12750. CFLAGS=$_lt_libdeps_save_CFLAGS
  12751. # PORTME: override above test on systems where it is broken
  12752. case $host_os in
  12753. interix[3-9]*)
  12754. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12755. # hack all around it, let's just trust "g++" to DTRT.
  12756. predep_objects_CXX=
  12757. postdep_objects_CXX=
  12758. postdeps_CXX=
  12759. ;;
  12760. esac
  12761. case " $postdeps_CXX " in
  12762. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12763. esac
  12764. compiler_lib_search_dirs_CXX=
  12765. if test -n "${compiler_lib_search_path_CXX}"; then
  12766. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12767. fi
  12768. lt_prog_compiler_wl_CXX=
  12769. lt_prog_compiler_pic_CXX=
  12770. lt_prog_compiler_static_CXX=
  12771. # C++ specific cases for pic, static, wl, etc.
  12772. if test yes = "$GXX"; then
  12773. lt_prog_compiler_wl_CXX='-Wl,'
  12774. lt_prog_compiler_static_CXX='-static'
  12775. case $host_os in
  12776. aix*)
  12777. # All AIX code is PIC.
  12778. if test ia64 = "$host_cpu"; then
  12779. # AIX 5 now supports IA64 processor
  12780. lt_prog_compiler_static_CXX='-Bstatic'
  12781. fi
  12782. lt_prog_compiler_pic_CXX='-fPIC'
  12783. ;;
  12784. amigaos*)
  12785. case $host_cpu in
  12786. powerpc)
  12787. # see comment about AmigaOS4 .so support
  12788. lt_prog_compiler_pic_CXX='-fPIC'
  12789. ;;
  12790. m68k)
  12791. # FIXME: we need at least 68020 code to build shared libraries, but
  12792. # adding the '-m68020' flag to GCC prevents building anything better,
  12793. # like '-m68040'.
  12794. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12795. ;;
  12796. esac
  12797. ;;
  12798. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12799. # PIC is the default for these OSes.
  12800. ;;
  12801. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12802. # This hack is so that the source file can tell whether it is being
  12803. # built for inclusion in a dll (and should export symbols for example).
  12804. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12805. # (--disable-auto-import) libraries
  12806. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12807. case $host_os in
  12808. os2*)
  12809. lt_prog_compiler_static_CXX='$wl-static'
  12810. ;;
  12811. esac
  12812. ;;
  12813. darwin* | rhapsody*)
  12814. # PIC is the default on this platform
  12815. # Common symbols not allowed in MH_DYLIB files
  12816. lt_prog_compiler_pic_CXX='-fno-common'
  12817. ;;
  12818. *djgpp*)
  12819. # DJGPP does not support shared libraries at all
  12820. lt_prog_compiler_pic_CXX=
  12821. ;;
  12822. haiku*)
  12823. # PIC is the default for Haiku.
  12824. # The "-static" flag exists, but is broken.
  12825. lt_prog_compiler_static_CXX=
  12826. ;;
  12827. interix[3-9]*)
  12828. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12829. # Instead, we relocate shared libraries at runtime.
  12830. ;;
  12831. sysv4*MP*)
  12832. if test -d /usr/nec; then
  12833. lt_prog_compiler_pic_CXX=-Kconform_pic
  12834. fi
  12835. ;;
  12836. hpux*)
  12837. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12838. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12839. # sets the default TLS model and affects inlining.
  12840. case $host_cpu in
  12841. hppa*64*)
  12842. ;;
  12843. *)
  12844. lt_prog_compiler_pic_CXX='-fPIC'
  12845. ;;
  12846. esac
  12847. ;;
  12848. *qnx* | *nto*)
  12849. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12850. # it will coredump.
  12851. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12852. ;;
  12853. *)
  12854. lt_prog_compiler_pic_CXX='-fPIC'
  12855. ;;
  12856. esac
  12857. else
  12858. case $host_os in
  12859. aix[4-9]*)
  12860. # All AIX code is PIC.
  12861. if test ia64 = "$host_cpu"; then
  12862. # AIX 5 now supports IA64 processor
  12863. lt_prog_compiler_static_CXX='-Bstatic'
  12864. else
  12865. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12866. fi
  12867. ;;
  12868. chorus*)
  12869. case $cc_basename in
  12870. cxch68*)
  12871. # Green Hills C++ Compiler
  12872. # _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"
  12873. ;;
  12874. esac
  12875. ;;
  12876. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12877. # This hack is so that the source file can tell whether it is being
  12878. # built for inclusion in a dll (and should export symbols for example).
  12879. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12880. ;;
  12881. dgux*)
  12882. case $cc_basename in
  12883. ec++*)
  12884. lt_prog_compiler_pic_CXX='-KPIC'
  12885. ;;
  12886. ghcx*)
  12887. # Green Hills C++ Compiler
  12888. lt_prog_compiler_pic_CXX='-pic'
  12889. ;;
  12890. *)
  12891. ;;
  12892. esac
  12893. ;;
  12894. freebsd* | dragonfly* | midnightbsd*)
  12895. # FreeBSD uses GNU C++
  12896. ;;
  12897. hpux9* | hpux10* | hpux11*)
  12898. case $cc_basename in
  12899. CC*)
  12900. lt_prog_compiler_wl_CXX='-Wl,'
  12901. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12902. if test ia64 != "$host_cpu"; then
  12903. lt_prog_compiler_pic_CXX='+Z'
  12904. fi
  12905. ;;
  12906. aCC*)
  12907. lt_prog_compiler_wl_CXX='-Wl,'
  12908. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12909. case $host_cpu in
  12910. hppa*64*|ia64*)
  12911. # +Z the default
  12912. ;;
  12913. *)
  12914. lt_prog_compiler_pic_CXX='+Z'
  12915. ;;
  12916. esac
  12917. ;;
  12918. *)
  12919. ;;
  12920. esac
  12921. ;;
  12922. interix*)
  12923. # This is c89, which is MS Visual C++ (no shared libs)
  12924. # Anyone wants to do a port?
  12925. ;;
  12926. irix5* | irix6* | nonstopux*)
  12927. case $cc_basename in
  12928. CC*)
  12929. lt_prog_compiler_wl_CXX='-Wl,'
  12930. lt_prog_compiler_static_CXX='-non_shared'
  12931. # CC pic flag -KPIC is the default.
  12932. ;;
  12933. *)
  12934. ;;
  12935. esac
  12936. ;;
  12937. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12938. case $cc_basename in
  12939. KCC*)
  12940. # KAI C++ Compiler
  12941. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12942. lt_prog_compiler_pic_CXX='-fPIC'
  12943. ;;
  12944. ecpc* )
  12945. # old Intel C++ for x86_64, which still supported -KPIC.
  12946. lt_prog_compiler_wl_CXX='-Wl,'
  12947. lt_prog_compiler_pic_CXX='-KPIC'
  12948. lt_prog_compiler_static_CXX='-static'
  12949. ;;
  12950. icpc* )
  12951. # Intel C++, used to be incompatible with GCC.
  12952. # ICC 10 doesn't accept -KPIC any more.
  12953. lt_prog_compiler_wl_CXX='-Wl,'
  12954. lt_prog_compiler_pic_CXX='-fPIC'
  12955. lt_prog_compiler_static_CXX='-static'
  12956. ;;
  12957. pgCC* | pgcpp*)
  12958. # Portland Group C++ compiler
  12959. lt_prog_compiler_wl_CXX='-Wl,'
  12960. lt_prog_compiler_pic_CXX='-fpic'
  12961. lt_prog_compiler_static_CXX='-Bstatic'
  12962. ;;
  12963. cxx*)
  12964. # Compaq C++
  12965. # Make sure the PIC flag is empty. It appears that all Alpha
  12966. # Linux and Compaq Tru64 Unix objects are PIC.
  12967. lt_prog_compiler_pic_CXX=
  12968. lt_prog_compiler_static_CXX='-non_shared'
  12969. ;;
  12970. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12971. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12972. lt_prog_compiler_wl_CXX='-Wl,'
  12973. lt_prog_compiler_pic_CXX='-qpic'
  12974. lt_prog_compiler_static_CXX='-qstaticlink'
  12975. ;;
  12976. *)
  12977. case `$CC -V 2>&1 | sed 5q` in
  12978. *Sun\ C*)
  12979. # Sun C++ 5.9
  12980. lt_prog_compiler_pic_CXX='-KPIC'
  12981. lt_prog_compiler_static_CXX='-Bstatic'
  12982. lt_prog_compiler_wl_CXX='-Qoption ld '
  12983. ;;
  12984. esac
  12985. ;;
  12986. esac
  12987. ;;
  12988. lynxos*)
  12989. ;;
  12990. m88k*)
  12991. ;;
  12992. mvs*)
  12993. case $cc_basename in
  12994. cxx*)
  12995. lt_prog_compiler_pic_CXX='-W c,exportall'
  12996. ;;
  12997. *)
  12998. ;;
  12999. esac
  13000. ;;
  13001. netbsd*)
  13002. ;;
  13003. *qnx* | *nto*)
  13004. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13005. # it will coredump.
  13006. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13007. ;;
  13008. osf3* | osf4* | osf5*)
  13009. case $cc_basename in
  13010. KCC*)
  13011. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13012. ;;
  13013. RCC*)
  13014. # Rational C++ 2.4.1
  13015. lt_prog_compiler_pic_CXX='-pic'
  13016. ;;
  13017. cxx*)
  13018. # Digital/Compaq C++
  13019. lt_prog_compiler_wl_CXX='-Wl,'
  13020. # Make sure the PIC flag is empty. It appears that all Alpha
  13021. # Linux and Compaq Tru64 Unix objects are PIC.
  13022. lt_prog_compiler_pic_CXX=
  13023. lt_prog_compiler_static_CXX='-non_shared'
  13024. ;;
  13025. *)
  13026. ;;
  13027. esac
  13028. ;;
  13029. psos*)
  13030. ;;
  13031. solaris*)
  13032. case $cc_basename in
  13033. CC* | sunCC*)
  13034. # Sun C++ 4.2, 5.x and Centerline C++
  13035. lt_prog_compiler_pic_CXX='-KPIC'
  13036. lt_prog_compiler_static_CXX='-Bstatic'
  13037. lt_prog_compiler_wl_CXX='-Qoption ld '
  13038. ;;
  13039. gcx*)
  13040. # Green Hills C++ Compiler
  13041. lt_prog_compiler_pic_CXX='-PIC'
  13042. ;;
  13043. *)
  13044. ;;
  13045. esac
  13046. ;;
  13047. sunos4*)
  13048. case $cc_basename in
  13049. CC*)
  13050. # Sun C++ 4.x
  13051. lt_prog_compiler_pic_CXX='-pic'
  13052. lt_prog_compiler_static_CXX='-Bstatic'
  13053. ;;
  13054. lcc*)
  13055. # Lucid
  13056. lt_prog_compiler_pic_CXX='-pic'
  13057. ;;
  13058. *)
  13059. ;;
  13060. esac
  13061. ;;
  13062. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13063. case $cc_basename in
  13064. CC*)
  13065. lt_prog_compiler_wl_CXX='-Wl,'
  13066. lt_prog_compiler_pic_CXX='-KPIC'
  13067. lt_prog_compiler_static_CXX='-Bstatic'
  13068. ;;
  13069. esac
  13070. ;;
  13071. tandem*)
  13072. case $cc_basename in
  13073. NCC*)
  13074. # NonStop-UX NCC 3.20
  13075. lt_prog_compiler_pic_CXX='-KPIC'
  13076. ;;
  13077. *)
  13078. ;;
  13079. esac
  13080. ;;
  13081. vxworks*)
  13082. ;;
  13083. *)
  13084. lt_prog_compiler_can_build_shared_CXX=no
  13085. ;;
  13086. esac
  13087. fi
  13088. case $host_os in
  13089. # For platforms that do not support PIC, -DPIC is meaningless:
  13090. *djgpp*)
  13091. lt_prog_compiler_pic_CXX=
  13092. ;;
  13093. *)
  13094. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13095. ;;
  13096. esac
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13098. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13099. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13100. $as_echo_n "(cached) " >&6
  13101. else
  13102. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13103. fi
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13105. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13106. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13107. #
  13108. # Check to make sure the PIC flag actually works.
  13109. #
  13110. if test -n "$lt_prog_compiler_pic_CXX"; then
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13112. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13113. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13114. $as_echo_n "(cached) " >&6
  13115. else
  13116. lt_cv_prog_compiler_pic_works_CXX=no
  13117. ac_outfile=conftest.$ac_objext
  13118. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13119. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13120. # Insert the option either (1) after the last *FLAGS variable, or
  13121. # (2) before a word containing "conftest.", or (3) at the end.
  13122. # Note that $ac_compile itself does not contain backslashes and begins
  13123. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13124. # The option is referenced via a variable to avoid confusing sed.
  13125. lt_compile=`echo "$ac_compile" | $SED \
  13126. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13127. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13128. -e 's:$: $lt_compiler_flag:'`
  13129. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13130. (eval "$lt_compile" 2>conftest.err)
  13131. ac_status=$?
  13132. cat conftest.err >&5
  13133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13134. if (exit $ac_status) && test -s "$ac_outfile"; then
  13135. # The compiler can only warn and ignore the option if not recognized
  13136. # So say no if there are warnings other than the usual output.
  13137. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13138. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13139. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13140. lt_cv_prog_compiler_pic_works_CXX=yes
  13141. fi
  13142. fi
  13143. $RM conftest*
  13144. fi
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13146. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13147. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13148. case $lt_prog_compiler_pic_CXX in
  13149. "" | " "*) ;;
  13150. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13151. esac
  13152. else
  13153. lt_prog_compiler_pic_CXX=
  13154. lt_prog_compiler_can_build_shared_CXX=no
  13155. fi
  13156. fi
  13157. #
  13158. # Check to make sure the static flag actually works.
  13159. #
  13160. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13162. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13163. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13164. $as_echo_n "(cached) " >&6
  13165. else
  13166. lt_cv_prog_compiler_static_works_CXX=no
  13167. save_LDFLAGS=$LDFLAGS
  13168. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13169. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13170. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13171. # The linker can only warn and ignore the option if not recognized
  13172. # So say no if there are warnings
  13173. if test -s conftest.err; then
  13174. # Append any errors to the config.log.
  13175. cat conftest.err 1>&5
  13176. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13178. if diff conftest.exp conftest.er2 >/dev/null; then
  13179. lt_cv_prog_compiler_static_works_CXX=yes
  13180. fi
  13181. else
  13182. lt_cv_prog_compiler_static_works_CXX=yes
  13183. fi
  13184. fi
  13185. $RM -r conftest*
  13186. LDFLAGS=$save_LDFLAGS
  13187. fi
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13189. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13190. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13191. :
  13192. else
  13193. lt_prog_compiler_static_CXX=
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13196. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13197. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13198. $as_echo_n "(cached) " >&6
  13199. else
  13200. lt_cv_prog_compiler_c_o_CXX=no
  13201. $RM -r conftest 2>/dev/null
  13202. mkdir conftest
  13203. cd conftest
  13204. mkdir out
  13205. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13206. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13207. # Insert the option either (1) after the last *FLAGS variable, or
  13208. # (2) before a word containing "conftest.", or (3) at the end.
  13209. # Note that $ac_compile itself does not contain backslashes and begins
  13210. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13211. lt_compile=`echo "$ac_compile" | $SED \
  13212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13214. -e 's:$: $lt_compiler_flag:'`
  13215. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13216. (eval "$lt_compile" 2>out/conftest.err)
  13217. ac_status=$?
  13218. cat out/conftest.err >&5
  13219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13220. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13221. then
  13222. # The compiler can only warn and ignore the option if not recognized
  13223. # So say no if there are warnings
  13224. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13225. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13226. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13227. lt_cv_prog_compiler_c_o_CXX=yes
  13228. fi
  13229. fi
  13230. chmod u+w . 2>&5
  13231. $RM conftest*
  13232. # SGI C++ compiler will create directory out/ii_files/ for
  13233. # template instantiation
  13234. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13235. $RM out/* && rmdir out
  13236. cd ..
  13237. $RM -r conftest
  13238. $RM conftest*
  13239. fi
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13241. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13243. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13244. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13245. $as_echo_n "(cached) " >&6
  13246. else
  13247. lt_cv_prog_compiler_c_o_CXX=no
  13248. $RM -r conftest 2>/dev/null
  13249. mkdir conftest
  13250. cd conftest
  13251. mkdir out
  13252. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13253. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13254. # Insert the option either (1) after the last *FLAGS variable, or
  13255. # (2) before a word containing "conftest.", or (3) at the end.
  13256. # Note that $ac_compile itself does not contain backslashes and begins
  13257. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13258. lt_compile=`echo "$ac_compile" | $SED \
  13259. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13260. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13261. -e 's:$: $lt_compiler_flag:'`
  13262. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13263. (eval "$lt_compile" 2>out/conftest.err)
  13264. ac_status=$?
  13265. cat out/conftest.err >&5
  13266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13267. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13268. then
  13269. # The compiler can only warn and ignore the option if not recognized
  13270. # So say no if there are warnings
  13271. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13272. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13273. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13274. lt_cv_prog_compiler_c_o_CXX=yes
  13275. fi
  13276. fi
  13277. chmod u+w . 2>&5
  13278. $RM conftest*
  13279. # SGI C++ compiler will create directory out/ii_files/ for
  13280. # template instantiation
  13281. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13282. $RM out/* && rmdir out
  13283. cd ..
  13284. $RM -r conftest
  13285. $RM conftest*
  13286. fi
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13288. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13289. hard_links=nottested
  13290. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13291. # do not overwrite the value of need_locks provided by the user
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13293. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13294. hard_links=yes
  13295. $RM conftest*
  13296. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13297. touch conftest.a
  13298. ln conftest.a conftest.b 2>&5 || hard_links=no
  13299. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13301. $as_echo "$hard_links" >&6; }
  13302. if test no = "$hard_links"; then
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13304. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13305. need_locks=warn
  13306. fi
  13307. else
  13308. need_locks=no
  13309. fi
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13311. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13312. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13313. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13314. case $host_os in
  13315. aix[4-9]*)
  13316. # If we're using GNU nm, then we don't want the "-C" option.
  13317. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13318. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13319. # weak defined symbols like other global defined symbols, whereas
  13320. # GNU nm marks them as "W".
  13321. # While the 'weak' keyword is ignored in the Export File, we need
  13322. # it in the Import File for the 'aix-soname' feature, so we have
  13323. # to replace the "-B" option with "-P" for AIX nm.
  13324. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13325. 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'
  13326. else
  13327. 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'
  13328. fi
  13329. ;;
  13330. pw32*)
  13331. export_symbols_cmds_CXX=$ltdll_cmds
  13332. ;;
  13333. cygwin* | mingw* | cegcc*)
  13334. case $cc_basename in
  13335. cl*)
  13336. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13337. ;;
  13338. *)
  13339. 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'
  13340. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13341. ;;
  13342. esac
  13343. ;;
  13344. *)
  13345. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13346. ;;
  13347. esac
  13348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13349. $as_echo "$ld_shlibs_CXX" >&6; }
  13350. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13351. with_gnu_ld_CXX=$with_gnu_ld
  13352. #
  13353. # Do we need to explicitly link libc?
  13354. #
  13355. case "x$archive_cmds_need_lc_CXX" in
  13356. x|xyes)
  13357. # Assume -lc should be added
  13358. archive_cmds_need_lc_CXX=yes
  13359. if test yes,yes = "$GCC,$enable_shared"; then
  13360. case $archive_cmds_CXX in
  13361. *'~'*)
  13362. # FIXME: we may have to deal with multi-command sequences.
  13363. ;;
  13364. '$CC '*)
  13365. # Test whether the compiler implicitly links with -lc since on some
  13366. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13367. # to ld, don't add -lc before -lgcc.
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13369. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13370. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13371. $as_echo_n "(cached) " >&6
  13372. else
  13373. $RM conftest*
  13374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13376. (eval $ac_compile) 2>&5
  13377. ac_status=$?
  13378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13379. test $ac_status = 0; } 2>conftest.err; then
  13380. soname=conftest
  13381. lib=conftest
  13382. libobjs=conftest.$ac_objext
  13383. deplibs=
  13384. wl=$lt_prog_compiler_wl_CXX
  13385. pic_flag=$lt_prog_compiler_pic_CXX
  13386. compiler_flags=-v
  13387. linker_flags=-v
  13388. verstring=
  13389. output_objdir=.
  13390. libname=conftest
  13391. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13392. allow_undefined_flag_CXX=
  13393. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13394. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13395. ac_status=$?
  13396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13397. test $ac_status = 0; }
  13398. then
  13399. lt_cv_archive_cmds_need_lc_CXX=no
  13400. else
  13401. lt_cv_archive_cmds_need_lc_CXX=yes
  13402. fi
  13403. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13404. else
  13405. cat conftest.err 1>&5
  13406. fi
  13407. $RM conftest*
  13408. fi
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13410. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13411. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13412. ;;
  13413. esac
  13414. fi
  13415. ;;
  13416. esac
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13418. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13419. library_names_spec=
  13420. libname_spec='lib$name'
  13421. soname_spec=
  13422. shrext_cmds=.so
  13423. postinstall_cmds=
  13424. postuninstall_cmds=
  13425. finish_cmds=
  13426. finish_eval=
  13427. shlibpath_var=
  13428. shlibpath_overrides_runpath=unknown
  13429. version_type=none
  13430. dynamic_linker="$host_os ld.so"
  13431. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13432. need_lib_prefix=unknown
  13433. hardcode_into_libs=no
  13434. # when you set need_version to no, make sure it does not cause -set_version
  13435. # flags to be left without arguments
  13436. need_version=unknown
  13437. case $host_os in
  13438. aix3*)
  13439. version_type=linux # correct to gnu/linux during the next big refactor
  13440. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13441. shlibpath_var=LIBPATH
  13442. # AIX 3 has no versioning support, so we append a major version to the name.
  13443. soname_spec='$libname$release$shared_ext$major'
  13444. ;;
  13445. aix[4-9]*)
  13446. version_type=linux # correct to gnu/linux during the next big refactor
  13447. need_lib_prefix=no
  13448. need_version=no
  13449. hardcode_into_libs=yes
  13450. if test ia64 = "$host_cpu"; then
  13451. # AIX 5 supports IA64
  13452. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. else
  13455. # With GCC up to 2.95.x, collect2 would create an import file
  13456. # for dependence libraries. The import file would start with
  13457. # the line '#! .'. This would cause the generated library to
  13458. # depend on '.', always an invalid library. This was fixed in
  13459. # development snapshots of GCC prior to 3.0.
  13460. case $host_os in
  13461. aix4 | aix4.[01] | aix4.[01].*)
  13462. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13463. echo ' yes '
  13464. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13465. :
  13466. else
  13467. can_build_shared=no
  13468. fi
  13469. ;;
  13470. esac
  13471. # Using Import Files as archive members, it is possible to support
  13472. # filename-based versioning of shared library archives on AIX. While
  13473. # this would work for both with and without runtime linking, it will
  13474. # prevent static linking of such archives. So we do filename-based
  13475. # shared library versioning with .so extension only, which is used
  13476. # when both runtime linking and shared linking is enabled.
  13477. # Unfortunately, runtime linking may impact performance, so we do
  13478. # not want this to be the default eventually. Also, we use the
  13479. # versioned .so libs for executables only if there is the -brtl
  13480. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13481. # To allow for filename-based versioning support, we need to create
  13482. # libNAME.so.V as an archive file, containing:
  13483. # *) an Import File, referring to the versioned filename of the
  13484. # archive as well as the shared archive member, telling the
  13485. # bitwidth (32 or 64) of that shared object, and providing the
  13486. # list of exported symbols of that shared object, eventually
  13487. # decorated with the 'weak' keyword
  13488. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13489. # it being seen by the linker.
  13490. # At run time we better use the real file rather than another symlink,
  13491. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13492. case $with_aix_soname,$aix_use_runtimelinking in
  13493. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13494. # soname into executable. Probably we can add versioning support to
  13495. # collect2, so additional links can be useful in future.
  13496. aix,yes) # traditional libtool
  13497. dynamic_linker='AIX unversionable lib.so'
  13498. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13499. # instead of lib<name>.a to let people know that these are not
  13500. # typical AIX shared libraries.
  13501. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13502. ;;
  13503. aix,no) # traditional AIX only
  13504. dynamic_linker='AIX lib.a(lib.so.V)'
  13505. # We preserve .a as extension for shared libraries through AIX4.2
  13506. # and later when we are not doing run time linking.
  13507. library_names_spec='$libname$release.a $libname.a'
  13508. soname_spec='$libname$release$shared_ext$major'
  13509. ;;
  13510. svr4,*) # full svr4 only
  13511. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13512. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13513. # We do not specify a path in Import Files, so LIBPATH fires.
  13514. shlibpath_overrides_runpath=yes
  13515. ;;
  13516. *,yes) # both, prefer svr4
  13517. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13518. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13519. # unpreferred sharedlib libNAME.a needs extra handling
  13520. 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"'
  13521. 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"'
  13522. # We do not specify a path in Import Files, so LIBPATH fires.
  13523. shlibpath_overrides_runpath=yes
  13524. ;;
  13525. *,no) # both, prefer aix
  13526. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13527. library_names_spec='$libname$release.a $libname.a'
  13528. soname_spec='$libname$release$shared_ext$major'
  13529. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13530. 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)'
  13531. 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"'
  13532. ;;
  13533. esac
  13534. shlibpath_var=LIBPATH
  13535. fi
  13536. ;;
  13537. amigaos*)
  13538. case $host_cpu in
  13539. powerpc)
  13540. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13541. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13542. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13543. ;;
  13544. m68k)
  13545. library_names_spec='$libname.ixlibrary $libname.a'
  13546. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13547. 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'
  13548. ;;
  13549. esac
  13550. ;;
  13551. beos*)
  13552. library_names_spec='$libname$shared_ext'
  13553. dynamic_linker="$host_os ld.so"
  13554. shlibpath_var=LIBRARY_PATH
  13555. ;;
  13556. bsdi[45]*)
  13557. version_type=linux # correct to gnu/linux during the next big refactor
  13558. need_version=no
  13559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13560. soname_spec='$libname$release$shared_ext$major'
  13561. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13562. shlibpath_var=LD_LIBRARY_PATH
  13563. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13564. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13565. # the default ld.so.conf also contains /usr/contrib/lib and
  13566. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13567. # libtool to hard-code these into programs
  13568. ;;
  13569. cygwin* | mingw* | pw32* | cegcc*)
  13570. version_type=windows
  13571. shrext_cmds=.dll
  13572. need_version=no
  13573. need_lib_prefix=no
  13574. case $GCC,$cc_basename in
  13575. yes,*)
  13576. # gcc
  13577. library_names_spec='$libname.dll.a'
  13578. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13579. postinstall_cmds='base_file=`basename \$file`~
  13580. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13581. dldir=$destdir/`dirname \$dlpath`~
  13582. test -d \$dldir || mkdir -p \$dldir~
  13583. $install_prog $dir/$dlname \$dldir/$dlname~
  13584. chmod a+x \$dldir/$dlname~
  13585. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13586. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13587. fi'
  13588. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13589. dlpath=$dir/\$dldll~
  13590. $RM \$dlpath'
  13591. shlibpath_overrides_runpath=yes
  13592. case $host_os in
  13593. cygwin*)
  13594. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13595. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13596. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13597. ;;
  13598. mingw* | cegcc*)
  13599. # MinGW DLLs use traditional 'lib' prefix
  13600. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13601. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13602. ;;
  13603. pw32*)
  13604. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13605. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13606. ;;
  13607. esac
  13608. dynamic_linker='Win32 ld.exe'
  13609. ;;
  13610. *,cl*)
  13611. # Native MSVC
  13612. libname_spec='$name'
  13613. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13614. library_names_spec='$libname.dll.lib'
  13615. case $build_os in
  13616. mingw*)
  13617. sys_lib_search_path_spec=
  13618. lt_save_ifs=$IFS
  13619. IFS=';'
  13620. for lt_path in $LIB
  13621. do
  13622. IFS=$lt_save_ifs
  13623. # Let DOS variable expansion print the short 8.3 style file name.
  13624. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13625. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13626. done
  13627. IFS=$lt_save_ifs
  13628. # Convert to MSYS style.
  13629. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13630. ;;
  13631. cygwin*)
  13632. # Convert to unix form, then to dos form, then back to unix form
  13633. # but this time dos style (no spaces!) so that the unix form looks
  13634. # like /cygdrive/c/PROGRA~1:/cygdr...
  13635. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13636. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13637. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13638. ;;
  13639. *)
  13640. sys_lib_search_path_spec=$LIB
  13641. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13642. # It is most probably a Windows format PATH.
  13643. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13644. else
  13645. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13646. fi
  13647. # FIXME: find the short name or the path components, as spaces are
  13648. # common. (e.g. "Program Files" -> "PROGRA~1")
  13649. ;;
  13650. esac
  13651. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13652. postinstall_cmds='base_file=`basename \$file`~
  13653. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13654. dldir=$destdir/`dirname \$dlpath`~
  13655. test -d \$dldir || mkdir -p \$dldir~
  13656. $install_prog $dir/$dlname \$dldir/$dlname'
  13657. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13658. dlpath=$dir/\$dldll~
  13659. $RM \$dlpath'
  13660. shlibpath_overrides_runpath=yes
  13661. dynamic_linker='Win32 link.exe'
  13662. ;;
  13663. *)
  13664. # Assume MSVC wrapper
  13665. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13666. dynamic_linker='Win32 ld.exe'
  13667. ;;
  13668. esac
  13669. # FIXME: first we should search . and the directory the executable is in
  13670. shlibpath_var=PATH
  13671. ;;
  13672. darwin* | rhapsody*)
  13673. dynamic_linker="$host_os dyld"
  13674. version_type=darwin
  13675. need_lib_prefix=no
  13676. need_version=no
  13677. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13678. soname_spec='$libname$release$major$shared_ext'
  13679. shlibpath_overrides_runpath=yes
  13680. shlibpath_var=DYLD_LIBRARY_PATH
  13681. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13682. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13683. ;;
  13684. dgux*)
  13685. version_type=linux # correct to gnu/linux during the next big refactor
  13686. need_lib_prefix=no
  13687. need_version=no
  13688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13689. soname_spec='$libname$release$shared_ext$major'
  13690. shlibpath_var=LD_LIBRARY_PATH
  13691. ;;
  13692. freebsd* | dragonfly* | midnightbsd*)
  13693. # DragonFly does not have aout. When/if they implement a new
  13694. # versioning mechanism, adjust this.
  13695. if test -x /usr/bin/objformat; then
  13696. objformat=`/usr/bin/objformat`
  13697. else
  13698. case $host_os in
  13699. freebsd[23].*) objformat=aout ;;
  13700. *) objformat=elf ;;
  13701. esac
  13702. fi
  13703. version_type=freebsd-$objformat
  13704. case $version_type in
  13705. freebsd-elf*)
  13706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13707. soname_spec='$libname$release$shared_ext$major'
  13708. need_version=no
  13709. need_lib_prefix=no
  13710. ;;
  13711. freebsd-*)
  13712. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13713. need_version=yes
  13714. ;;
  13715. esac
  13716. shlibpath_var=LD_LIBRARY_PATH
  13717. case $host_os in
  13718. freebsd2.*)
  13719. shlibpath_overrides_runpath=yes
  13720. ;;
  13721. freebsd3.[01]* | freebsdelf3.[01]*)
  13722. shlibpath_overrides_runpath=yes
  13723. hardcode_into_libs=yes
  13724. ;;
  13725. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13726. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13727. shlibpath_overrides_runpath=no
  13728. hardcode_into_libs=yes
  13729. ;;
  13730. *) # from 4.6 on, and DragonFly
  13731. shlibpath_overrides_runpath=yes
  13732. hardcode_into_libs=yes
  13733. ;;
  13734. esac
  13735. ;;
  13736. haiku*)
  13737. version_type=linux # correct to gnu/linux during the next big refactor
  13738. need_lib_prefix=no
  13739. need_version=no
  13740. dynamic_linker="$host_os runtime_loader"
  13741. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13742. soname_spec='$libname$release$shared_ext$major'
  13743. shlibpath_var=LIBRARY_PATH
  13744. shlibpath_overrides_runpath=no
  13745. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13746. hardcode_into_libs=yes
  13747. ;;
  13748. hpux9* | hpux10* | hpux11*)
  13749. # Give a soname corresponding to the major version so that dld.sl refuses to
  13750. # link against other versions.
  13751. version_type=sunos
  13752. need_lib_prefix=no
  13753. need_version=no
  13754. case $host_cpu in
  13755. ia64*)
  13756. shrext_cmds='.so'
  13757. hardcode_into_libs=yes
  13758. dynamic_linker="$host_os dld.so"
  13759. shlibpath_var=LD_LIBRARY_PATH
  13760. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13761. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13762. soname_spec='$libname$release$shared_ext$major'
  13763. if test 32 = "$HPUX_IA64_MODE"; then
  13764. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13765. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13766. else
  13767. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13768. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13769. fi
  13770. ;;
  13771. hppa*64*)
  13772. shrext_cmds='.sl'
  13773. hardcode_into_libs=yes
  13774. dynamic_linker="$host_os dld.sl"
  13775. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13776. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13778. soname_spec='$libname$release$shared_ext$major'
  13779. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13780. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13781. ;;
  13782. *)
  13783. shrext_cmds='.sl'
  13784. dynamic_linker="$host_os dld.sl"
  13785. shlibpath_var=SHLIB_PATH
  13786. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13788. soname_spec='$libname$release$shared_ext$major'
  13789. ;;
  13790. esac
  13791. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13792. postinstall_cmds='chmod 555 $lib'
  13793. # or fails outright, so override atomically:
  13794. install_override_mode=555
  13795. ;;
  13796. interix[3-9]*)
  13797. version_type=linux # correct to gnu/linux during the next big refactor
  13798. need_lib_prefix=no
  13799. need_version=no
  13800. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13801. soname_spec='$libname$release$shared_ext$major'
  13802. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13803. shlibpath_var=LD_LIBRARY_PATH
  13804. shlibpath_overrides_runpath=no
  13805. hardcode_into_libs=yes
  13806. ;;
  13807. irix5* | irix6* | nonstopux*)
  13808. case $host_os in
  13809. nonstopux*) version_type=nonstopux ;;
  13810. *)
  13811. if test yes = "$lt_cv_prog_gnu_ld"; then
  13812. version_type=linux # correct to gnu/linux during the next big refactor
  13813. else
  13814. version_type=irix
  13815. fi ;;
  13816. esac
  13817. need_lib_prefix=no
  13818. need_version=no
  13819. soname_spec='$libname$release$shared_ext$major'
  13820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13821. case $host_os in
  13822. irix5* | nonstopux*)
  13823. libsuff= shlibsuff=
  13824. ;;
  13825. *)
  13826. case $LD in # libtool.m4 will add one of these switches to LD
  13827. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13828. libsuff= shlibsuff= libmagic=32-bit;;
  13829. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13830. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13831. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13832. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13833. *) libsuff= shlibsuff= libmagic=never-match;;
  13834. esac
  13835. ;;
  13836. esac
  13837. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13838. shlibpath_overrides_runpath=no
  13839. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13840. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13841. hardcode_into_libs=yes
  13842. ;;
  13843. # No shared lib support for Linux oldld, aout, or coff.
  13844. linux*oldld* | linux*aout* | linux*coff*)
  13845. dynamic_linker=no
  13846. ;;
  13847. linux*android*)
  13848. version_type=none # Android doesn't support versioned libraries.
  13849. need_lib_prefix=no
  13850. need_version=no
  13851. library_names_spec='$libname$release$shared_ext'
  13852. soname_spec='$libname$release$shared_ext'
  13853. finish_cmds=
  13854. shlibpath_var=LD_LIBRARY_PATH
  13855. shlibpath_overrides_runpath=yes
  13856. # This implies no fast_install, which is unacceptable.
  13857. # Some rework will be needed to allow for fast_install
  13858. # before this can be enabled.
  13859. hardcode_into_libs=yes
  13860. dynamic_linker='Android linker'
  13861. # Don't embed -rpath directories since the linker doesn't support them.
  13862. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13863. ;;
  13864. # This must be glibc/ELF.
  13865. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13866. version_type=linux # correct to gnu/linux during the next big refactor
  13867. need_lib_prefix=no
  13868. need_version=no
  13869. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13870. soname_spec='$libname$release$shared_ext$major'
  13871. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13872. shlibpath_var=LD_LIBRARY_PATH
  13873. shlibpath_overrides_runpath=no
  13874. # Some binutils ld are patched to set DT_RUNPATH
  13875. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13876. $as_echo_n "(cached) " >&6
  13877. else
  13878. lt_cv_shlibpath_overrides_runpath=no
  13879. save_LDFLAGS=$LDFLAGS
  13880. save_libdir=$libdir
  13881. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13882. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13884. /* end confdefs.h. */
  13885. int
  13886. main ()
  13887. {
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_cxx_try_link "$LINENO"; then :
  13893. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13894. lt_cv_shlibpath_overrides_runpath=yes
  13895. fi
  13896. fi
  13897. rm -f core conftest.err conftest.$ac_objext \
  13898. conftest$ac_exeext conftest.$ac_ext
  13899. LDFLAGS=$save_LDFLAGS
  13900. libdir=$save_libdir
  13901. fi
  13902. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13903. # This implies no fast_install, which is unacceptable.
  13904. # Some rework will be needed to allow for fast_install
  13905. # before this can be enabled.
  13906. hardcode_into_libs=yes
  13907. # Add ABI-specific directories to the system library path.
  13908. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13909. # Ideally, we could use ldconfig to report *all* directores which are
  13910. # searched for libraries, however this is still not possible. Aside from not
  13911. # being certain /sbin/ldconfig is available, command
  13912. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13913. # even though it is searched at run-time. Try to do the best guess by
  13914. # appending ld.so.conf contents (and includes) to the search path.
  13915. if test -f /etc/ld.so.conf; then
  13916. 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' ' '`
  13917. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13918. fi
  13919. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13920. # powerpc, because MkLinux only supported shared libraries with the
  13921. # GNU dynamic linker. Since this was broken with cross compilers,
  13922. # most powerpc-linux boxes support dynamic linking these days and
  13923. # people can always --disable-shared, the test was removed, and we
  13924. # assume the GNU/Linux dynamic linker is in use.
  13925. dynamic_linker='GNU/Linux ld.so'
  13926. ;;
  13927. netbsd*)
  13928. version_type=sunos
  13929. need_lib_prefix=no
  13930. need_version=no
  13931. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13932. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13933. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13934. dynamic_linker='NetBSD (a.out) ld.so'
  13935. else
  13936. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13937. soname_spec='$libname$release$shared_ext$major'
  13938. dynamic_linker='NetBSD ld.elf_so'
  13939. fi
  13940. shlibpath_var=LD_LIBRARY_PATH
  13941. shlibpath_overrides_runpath=yes
  13942. hardcode_into_libs=yes
  13943. ;;
  13944. newsos6)
  13945. version_type=linux # correct to gnu/linux during the next big refactor
  13946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=yes
  13949. ;;
  13950. *nto* | *qnx*)
  13951. version_type=qnx
  13952. need_lib_prefix=no
  13953. need_version=no
  13954. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13955. soname_spec='$libname$release$shared_ext$major'
  13956. shlibpath_var=LD_LIBRARY_PATH
  13957. shlibpath_overrides_runpath=no
  13958. hardcode_into_libs=yes
  13959. dynamic_linker='ldqnx.so'
  13960. ;;
  13961. openbsd* | bitrig*)
  13962. version_type=sunos
  13963. sys_lib_dlsearch_path_spec=/usr/lib
  13964. need_lib_prefix=no
  13965. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13966. need_version=no
  13967. else
  13968. need_version=yes
  13969. fi
  13970. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13972. shlibpath_var=LD_LIBRARY_PATH
  13973. shlibpath_overrides_runpath=yes
  13974. ;;
  13975. os2*)
  13976. libname_spec='$name'
  13977. shrext_cmds=.dll
  13978. need_lib_prefix=no
  13979. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13980. # SDL customization: removed versioning support.
  13981. # version_type=windows
  13982. # need_version=no
  13983. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13984. # v=$($ECHO $release$versuffix | tr -d .-);
  13985. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13986. # $ECHO $n$v`$shared_ext'
  13987. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13988. library_names_spec='${libname}_dll.$libext'
  13989. dynamic_linker='OS/2 ld.exe'
  13990. shlibpath_var=BEGINLIBPATH
  13991. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13992. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13993. postinstall_cmds='base_file=`basename \$file`~
  13994. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13995. dldir=$destdir/`dirname \$dlpath`~
  13996. test -d \$dldir || mkdir -p \$dldir~
  13997. $install_prog $dir/$dlname \$dldir/$dlname~
  13998. chmod a+x \$dldir/$dlname~
  13999. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14000. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14001. fi'
  14002. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14003. dlpath=$dir/\$dldll~
  14004. $RM \$dlpath'
  14005. ;;
  14006. osf3* | osf4* | osf5*)
  14007. version_type=osf
  14008. need_lib_prefix=no
  14009. need_version=no
  14010. soname_spec='$libname$release$shared_ext$major'
  14011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14012. shlibpath_var=LD_LIBRARY_PATH
  14013. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14014. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14015. ;;
  14016. rdos*)
  14017. dynamic_linker=no
  14018. ;;
  14019. solaris*)
  14020. version_type=linux # correct to gnu/linux during the next big refactor
  14021. need_lib_prefix=no
  14022. need_version=no
  14023. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14024. soname_spec='$libname$release$shared_ext$major'
  14025. shlibpath_var=LD_LIBRARY_PATH
  14026. shlibpath_overrides_runpath=yes
  14027. hardcode_into_libs=yes
  14028. # ldd complains unless libraries are executable
  14029. postinstall_cmds='chmod +x $lib'
  14030. ;;
  14031. sunos4*)
  14032. version_type=sunos
  14033. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14034. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14035. shlibpath_var=LD_LIBRARY_PATH
  14036. shlibpath_overrides_runpath=yes
  14037. if test yes = "$with_gnu_ld"; then
  14038. need_lib_prefix=no
  14039. fi
  14040. need_version=yes
  14041. ;;
  14042. sysv4 | sysv4.3*)
  14043. version_type=linux # correct to gnu/linux during the next big refactor
  14044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14045. soname_spec='$libname$release$shared_ext$major'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. case $host_vendor in
  14048. sni)
  14049. shlibpath_overrides_runpath=no
  14050. need_lib_prefix=no
  14051. runpath_var=LD_RUN_PATH
  14052. ;;
  14053. siemens)
  14054. need_lib_prefix=no
  14055. ;;
  14056. motorola)
  14057. need_lib_prefix=no
  14058. need_version=no
  14059. shlibpath_overrides_runpath=no
  14060. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14061. ;;
  14062. esac
  14063. ;;
  14064. sysv4*MP*)
  14065. if test -d /usr/nec; then
  14066. version_type=linux # correct to gnu/linux during the next big refactor
  14067. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14068. soname_spec='$libname$shared_ext.$major'
  14069. shlibpath_var=LD_LIBRARY_PATH
  14070. fi
  14071. ;;
  14072. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14073. version_type=sco
  14074. need_lib_prefix=no
  14075. need_version=no
  14076. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14077. soname_spec='$libname$release$shared_ext$major'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. shlibpath_overrides_runpath=yes
  14080. hardcode_into_libs=yes
  14081. if test yes = "$with_gnu_ld"; then
  14082. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14083. else
  14084. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14085. case $host_os in
  14086. sco3.2v5*)
  14087. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14088. ;;
  14089. esac
  14090. fi
  14091. sys_lib_dlsearch_path_spec='/usr/lib'
  14092. ;;
  14093. tpf*)
  14094. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14095. version_type=linux # correct to gnu/linux during the next big refactor
  14096. need_lib_prefix=no
  14097. need_version=no
  14098. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14099. shlibpath_var=LD_LIBRARY_PATH
  14100. shlibpath_overrides_runpath=no
  14101. hardcode_into_libs=yes
  14102. ;;
  14103. uts4*)
  14104. version_type=linux # correct to gnu/linux during the next big refactor
  14105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14106. soname_spec='$libname$release$shared_ext$major'
  14107. shlibpath_var=LD_LIBRARY_PATH
  14108. ;;
  14109. *)
  14110. dynamic_linker=no
  14111. ;;
  14112. esac
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14114. $as_echo "$dynamic_linker" >&6; }
  14115. test no = "$dynamic_linker" && can_build_shared=no
  14116. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14117. if test yes = "$GCC"; then
  14118. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14119. fi
  14120. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14121. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14122. fi
  14123. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14124. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14125. fi
  14126. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14127. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14128. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14129. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14130. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14131. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14133. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14134. hardcode_action_CXX=
  14135. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14136. test -n "$runpath_var_CXX" ||
  14137. test yes = "$hardcode_automatic_CXX"; then
  14138. # We can hardcode non-existent directories.
  14139. if test no != "$hardcode_direct_CXX" &&
  14140. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14141. # have to relink, otherwise we might link with an installed library
  14142. # when we should be linking with a yet-to-be-installed one
  14143. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14144. test no != "$hardcode_minus_L_CXX"; then
  14145. # Linking always hardcodes the temporary library directory.
  14146. hardcode_action_CXX=relink
  14147. else
  14148. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14149. hardcode_action_CXX=immediate
  14150. fi
  14151. else
  14152. # We cannot hardcode anything, or else we can only hardcode existing
  14153. # directories.
  14154. hardcode_action_CXX=unsupported
  14155. fi
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14157. $as_echo "$hardcode_action_CXX" >&6; }
  14158. if test relink = "$hardcode_action_CXX" ||
  14159. test yes = "$inherit_rpath_CXX"; then
  14160. # Fast installation is not supported
  14161. enable_fast_install=no
  14162. elif test yes = "$shlibpath_overrides_runpath" ||
  14163. test no = "$enable_shared"; then
  14164. # Fast installation is not necessary
  14165. enable_fast_install=needless
  14166. fi
  14167. fi # test -n "$compiler"
  14168. CC=$lt_save_CC
  14169. CFLAGS=$lt_save_CFLAGS
  14170. LDCXX=$LD
  14171. LD=$lt_save_LD
  14172. GCC=$lt_save_GCC
  14173. with_gnu_ld=$lt_save_with_gnu_ld
  14174. lt_cv_path_LDCXX=$lt_cv_path_LD
  14175. lt_cv_path_LD=$lt_save_path_LD
  14176. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14177. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14178. fi # test yes != "$_lt_caught_CXX_error"
  14179. ac_ext=c
  14180. ac_cpp='$CPP $CPPFLAGS'
  14181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14184. # Find a good install program. We prefer a C program (faster),
  14185. # so one script is as good as another. But avoid the broken or
  14186. # incompatible versions:
  14187. # SysV /etc/install, /usr/sbin/install
  14188. # SunOS /usr/etc/install
  14189. # IRIX /sbin/install
  14190. # AIX /bin/install
  14191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14195. # OS/2's system install, which has a completely different semantic
  14196. # ./install, which can be erroneously created by make from ./install.sh.
  14197. # Reject install programs that cannot install multiple files.
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14199. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14200. if test -z "$INSTALL"; then
  14201. if ${ac_cv_path_install+:} false; then :
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14205. for as_dir in $PATH
  14206. do
  14207. IFS=$as_save_IFS
  14208. test -z "$as_dir" && as_dir=.
  14209. # Account for people who put trailing slashes in PATH elements.
  14210. case $as_dir/ in #((
  14211. ./ | .// | /[cC]/* | \
  14212. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14213. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14214. /usr/ucb/* ) ;;
  14215. *)
  14216. # OSF1 and SCO ODT 3.0 have their own names for install.
  14217. # Don't use installbsd from OSF since it installs stuff as root
  14218. # by default.
  14219. for ac_prog in ginstall scoinst install; do
  14220. for ac_exec_ext in '' $ac_executable_extensions; do
  14221. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14222. if test $ac_prog = install &&
  14223. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14224. # AIX install. It has an incompatible calling convention.
  14225. :
  14226. elif test $ac_prog = install &&
  14227. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14228. # program-specific install script used by HP pwplus--don't use.
  14229. :
  14230. else
  14231. rm -rf conftest.one conftest.two conftest.dir
  14232. echo one > conftest.one
  14233. echo two > conftest.two
  14234. mkdir conftest.dir
  14235. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14236. test -s conftest.one && test -s conftest.two &&
  14237. test -s conftest.dir/conftest.one &&
  14238. test -s conftest.dir/conftest.two
  14239. then
  14240. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14241. break 3
  14242. fi
  14243. fi
  14244. fi
  14245. done
  14246. done
  14247. ;;
  14248. esac
  14249. done
  14250. IFS=$as_save_IFS
  14251. rm -rf conftest.one conftest.two conftest.dir
  14252. fi
  14253. if test "${ac_cv_path_install+set}" = set; then
  14254. INSTALL=$ac_cv_path_install
  14255. else
  14256. # As a last resort, use the slow shell script. Don't cache a
  14257. # value for INSTALL within a source directory, because that will
  14258. # break other packages using the cache if that directory is
  14259. # removed, or if the value is a relative name.
  14260. INSTALL=$ac_install_sh
  14261. fi
  14262. fi
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14264. $as_echo "$INSTALL" >&6; }
  14265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14266. # It thinks the first close brace ends the variable substitution.
  14267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14271. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14272. set x ${MAKE-make}
  14273. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14274. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14275. $as_echo_n "(cached) " >&6
  14276. else
  14277. cat >conftest.make <<\_ACEOF
  14278. SHELL = /bin/sh
  14279. all:
  14280. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14281. _ACEOF
  14282. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14283. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14284. *@@@%%%=?*=@@@%%%*)
  14285. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14286. *)
  14287. eval ac_cv_prog_make_${ac_make}_set=no;;
  14288. esac
  14289. rm -f conftest.make
  14290. fi
  14291. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14293. $as_echo "yes" >&6; }
  14294. SET_MAKE=
  14295. else
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14297. $as_echo "no" >&6; }
  14298. SET_MAKE="MAKE=${MAKE-make}"
  14299. fi
  14300. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14301. if test -n "$ac_tool_prefix"; then
  14302. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14303. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14305. $as_echo_n "checking for $ac_word... " >&6; }
  14306. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14307. $as_echo_n "(cached) " >&6
  14308. else
  14309. case $PKG_CONFIG in
  14310. [\\/]* | ?:[\\/]*)
  14311. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14312. ;;
  14313. *)
  14314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14315. for as_dir in $PATH
  14316. do
  14317. IFS=$as_save_IFS
  14318. test -z "$as_dir" && as_dir=.
  14319. for ac_exec_ext in '' $ac_executable_extensions; do
  14320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14321. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14323. break 2
  14324. fi
  14325. done
  14326. done
  14327. IFS=$as_save_IFS
  14328. ;;
  14329. esac
  14330. fi
  14331. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14332. if test -n "$PKG_CONFIG"; then
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14334. $as_echo "$PKG_CONFIG" >&6; }
  14335. else
  14336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14337. $as_echo "no" >&6; }
  14338. fi
  14339. fi
  14340. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14341. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14342. # Extract the first word of "pkg-config", so it can be a program name with args.
  14343. set dummy pkg-config; ac_word=$2
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14345. $as_echo_n "checking for $ac_word... " >&6; }
  14346. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14347. $as_echo_n "(cached) " >&6
  14348. else
  14349. case $ac_pt_PKG_CONFIG in
  14350. [\\/]* | ?:[\\/]*)
  14351. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14352. ;;
  14353. *)
  14354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14355. for as_dir in $PATH
  14356. do
  14357. IFS=$as_save_IFS
  14358. test -z "$as_dir" && as_dir=.
  14359. for ac_exec_ext in '' $ac_executable_extensions; do
  14360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14361. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14363. break 2
  14364. fi
  14365. done
  14366. done
  14367. IFS=$as_save_IFS
  14368. ;;
  14369. esac
  14370. fi
  14371. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14372. if test -n "$ac_pt_PKG_CONFIG"; then
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14374. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14375. else
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14377. $as_echo "no" >&6; }
  14378. fi
  14379. if test "x$ac_pt_PKG_CONFIG" = x; then
  14380. PKG_CONFIG=""
  14381. else
  14382. case $cross_compiling:$ac_tool_warned in
  14383. yes:)
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14385. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14386. ac_tool_warned=yes ;;
  14387. esac
  14388. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14389. fi
  14390. else
  14391. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14392. fi
  14393. fi
  14394. if test -n "$PKG_CONFIG"; then
  14395. _pkg_min_version=0.9.0
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14397. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14398. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14400. $as_echo "yes" >&6; }
  14401. else
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14403. $as_echo "no" >&6; }
  14404. PKG_CONFIG=""
  14405. fi
  14406. fi
  14407. case "$host" in
  14408. *-*-mingw*)
  14409. # Except on msys, where make can't handle full pathnames (bug 1972)
  14410. ;;
  14411. *)
  14412. srcdir=`cd $srcdir && pwd`
  14413. ;;
  14414. esac
  14415. INCLUDE="-I$srcdir/include"
  14416. case "$host" in
  14417. *-*-nto-qnx*)
  14418. ;;
  14419. *)
  14420. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14421. ;;
  14422. esac
  14423. case "$host" in
  14424. *-*-haiku*)
  14425. LINKER='$(CXX)'
  14426. LIBTOOLLINKERTAG='CXX'
  14427. ;;
  14428. *)
  14429. LINKER='$(CC)'
  14430. LIBTOOLLINKERTAG='CC'
  14431. ;;
  14432. esac
  14433. if test x$srcdir != x.; then
  14434. INCLUDE="-Iinclude $INCLUDE"
  14435. elif test -d .git; then
  14436. as_fn_error $? "
  14437. *** When building from a git clone you should configure and build in a
  14438. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14439. " "$LINENO" 5
  14440. fi
  14441. BASE_CFLAGS=""
  14442. BASE_LDFLAGS=""
  14443. case "$host" in
  14444. *-*-cygwin*)
  14445. # We build SDL on cygwin without the UNIX emulation layer
  14446. save_CFLAGS="$CFLAGS"
  14447. have_no_cygwin=no
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14449. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14450. CFLAGS="$save_CFLAGS -mno-cygwin"
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. int
  14454. main ()
  14455. {
  14456. ;
  14457. return 0;
  14458. }
  14459. _ACEOF
  14460. if ac_fn_c_try_compile "$LINENO"; then :
  14461. have_no_cygwin=yes
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14465. $as_echo "$have_no_cygwin" >&6; }
  14466. CFLAGS="$save_CFLAGS"
  14467. if test x$have_no_cygwin = xyes; then
  14468. BASE_CFLAGS="-mno-cygwin"
  14469. BASE_LDFLAGS="-mno-cygwin"
  14470. fi
  14471. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14472. ;;
  14473. esac
  14474. # Uncomment the following line if you want to force SDL and applications
  14475. # built with it to be compiled for a particular architecture.
  14476. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14477. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14478. # The default optimization for SDL is -O3 (Bug #31)
  14479. if test "x$orig_CFLAGS" = x; then
  14480. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14481. fi
  14482. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14483. BUILD_LDFLAGS="$LDFLAGS"
  14484. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14485. ## These are common directories to find software packages
  14486. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14487. # if test -d $path/include; then
  14488. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14489. # fi
  14490. # if test -d $path/lib; then
  14491. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14492. # fi
  14493. #done
  14494. SDL_CFLAGS="$BASE_CFLAGS"
  14495. SDL_LIBS="-lSDL2"
  14496. if test "x$BASE_LDFLAGS" != x; then
  14497. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14498. fi
  14499. if test "x$EXTRA_CFLAGS" != x; then
  14500. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14501. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14502. fi
  14503. if test "x$EXTRA_LDFLAGS" != x; then
  14504. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14505. fi
  14506. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14507. find_lib()
  14508. {
  14509. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14510. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14511. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14512. if test "$cross_compiling" = yes; then
  14513. host_lib_path=""
  14514. else
  14515. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14516. fi
  14517. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14518. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14519. if test x$lib != x; then
  14520. echo $lib
  14521. return
  14522. fi
  14523. done
  14524. # Try again, this time allowing more than one version digit after the .so
  14525. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14526. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14527. if test x$lib != x; then
  14528. echo $lib
  14529. return
  14530. fi
  14531. done
  14532. }
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14534. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14535. if ${ac_cv_c_const+:} false; then :
  14536. $as_echo_n "(cached) " >&6
  14537. else
  14538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14539. /* end confdefs.h. */
  14540. int
  14541. main ()
  14542. {
  14543. #ifndef __cplusplus
  14544. /* Ultrix mips cc rejects this sort of thing. */
  14545. typedef int charset[2];
  14546. const charset cs = { 0, 0 };
  14547. /* SunOS 4.1.1 cc rejects this. */
  14548. char const *const *pcpcc;
  14549. char **ppc;
  14550. /* NEC SVR4.0.2 mips cc rejects this. */
  14551. struct point {int x, y;};
  14552. static struct point const zero = {0,0};
  14553. /* AIX XL C 1.02.0.0 rejects this.
  14554. It does not let you subtract one const X* pointer from another in
  14555. an arm of an if-expression whose if-part is not a constant
  14556. expression */
  14557. const char *g = "string";
  14558. pcpcc = &g + (g ? g-g : 0);
  14559. /* HPUX 7.0 cc rejects these. */
  14560. ++pcpcc;
  14561. ppc = (char**) pcpcc;
  14562. pcpcc = (char const *const *) ppc;
  14563. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14564. char tx;
  14565. char *t = &tx;
  14566. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14567. *t++ = 0;
  14568. if (s) return 0;
  14569. }
  14570. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14571. int x[] = {25, 17};
  14572. const int *foo = &x[0];
  14573. ++foo;
  14574. }
  14575. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14576. typedef const int *iptr;
  14577. iptr p = 0;
  14578. ++p;
  14579. }
  14580. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14581. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14582. struct s { int j; const int *ap[3]; } bx;
  14583. struct s *b = &bx; b->j = 5;
  14584. }
  14585. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14586. const int foo = 10;
  14587. if (!foo) return 0;
  14588. }
  14589. return !cs[0] && !zero.x;
  14590. #endif
  14591. ;
  14592. return 0;
  14593. }
  14594. _ACEOF
  14595. if ac_fn_c_try_compile "$LINENO"; then :
  14596. ac_cv_c_const=yes
  14597. else
  14598. ac_cv_c_const=no
  14599. fi
  14600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14601. fi
  14602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14603. $as_echo "$ac_cv_c_const" >&6; }
  14604. if test $ac_cv_c_const = no; then
  14605. $as_echo "#define const /**/" >>confdefs.h
  14606. fi
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14608. $as_echo_n "checking for inline... " >&6; }
  14609. if ${ac_cv_c_inline+:} false; then :
  14610. $as_echo_n "(cached) " >&6
  14611. else
  14612. ac_cv_c_inline=no
  14613. for ac_kw in inline __inline__ __inline; do
  14614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14615. /* end confdefs.h. */
  14616. #ifndef __cplusplus
  14617. typedef int foo_t;
  14618. static $ac_kw foo_t static_foo () {return 0; }
  14619. $ac_kw foo_t foo () {return 0; }
  14620. #endif
  14621. _ACEOF
  14622. if ac_fn_c_try_compile "$LINENO"; then :
  14623. ac_cv_c_inline=$ac_kw
  14624. fi
  14625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14626. test "$ac_cv_c_inline" != no && break
  14627. done
  14628. fi
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14630. $as_echo "$ac_cv_c_inline" >&6; }
  14631. case $ac_cv_c_inline in
  14632. inline | yes) ;;
  14633. *)
  14634. case $ac_cv_c_inline in
  14635. no) ac_val=;;
  14636. *) ac_val=$ac_cv_c_inline;;
  14637. esac
  14638. cat >>confdefs.h <<_ACEOF
  14639. #ifndef __cplusplus
  14640. #define inline $ac_val
  14641. #endif
  14642. _ACEOF
  14643. ;;
  14644. esac
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14646. $as_echo_n "checking for working volatile... " >&6; }
  14647. if ${ac_cv_c_volatile+:} false; then :
  14648. $as_echo_n "(cached) " >&6
  14649. else
  14650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14651. /* end confdefs.h. */
  14652. int
  14653. main ()
  14654. {
  14655. volatile int x;
  14656. int * volatile y = (int *) 0;
  14657. return !x && !y;
  14658. ;
  14659. return 0;
  14660. }
  14661. _ACEOF
  14662. if ac_fn_c_try_compile "$LINENO"; then :
  14663. ac_cv_c_volatile=yes
  14664. else
  14665. ac_cv_c_volatile=no
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14668. fi
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14670. $as_echo "$ac_cv_c_volatile" >&6; }
  14671. if test $ac_cv_c_volatile = no; then
  14672. $as_echo "#define volatile /**/" >>confdefs.h
  14673. fi
  14674. # Check whether --enable-assertions was given.
  14675. if test "${enable_assertions+set}" = set; then :
  14676. enableval=$enable_assertions;
  14677. else
  14678. enable_assertions=auto
  14679. fi
  14680. case "$enable_assertions" in
  14681. auto) # Use optimization settings to determine assertion level
  14682. ;;
  14683. disabled)
  14684. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14685. ;;
  14686. release)
  14687. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14688. ;;
  14689. enabled)
  14690. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14691. ;;
  14692. paranoid)
  14693. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14694. ;;
  14695. *)
  14696. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14697. ;;
  14698. esac
  14699. # Check whether --enable-dependency-tracking was given.
  14700. if test "${enable_dependency_tracking+set}" = set; then :
  14701. enableval=$enable_dependency_tracking;
  14702. else
  14703. enable_dependency_tracking=yes
  14704. fi
  14705. if test x$enable_dependency_tracking = xyes; then
  14706. have_gcc_mmd_mt=no
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14708. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14710. /* end confdefs.h. */
  14711. #if !defined(__GNUC__) || __GNUC__ < 3
  14712. #error Dependency tracking requires GCC 3.0 or newer
  14713. #endif
  14714. int
  14715. main ()
  14716. {
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. if ac_fn_c_try_compile "$LINENO"; then :
  14722. have_gcc_mmd_mt=yes
  14723. fi
  14724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14726. $as_echo "$have_gcc_mmd_mt" >&6; }
  14727. if test x$have_gcc_mmd_mt = xyes; then
  14728. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14729. fi
  14730. fi
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14732. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14733. have_no_undefined=no
  14734. case "$host" in
  14735. *-*-openbsd*)
  14736. ;;
  14737. *)
  14738. save_LDFLAGS="$LDFLAGS"
  14739. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14741. /* end confdefs.h. */
  14742. int
  14743. main ()
  14744. {
  14745. ;
  14746. return 0;
  14747. }
  14748. _ACEOF
  14749. if ac_fn_c_try_link "$LINENO"; then :
  14750. have_no_undefined=yes
  14751. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14752. fi
  14753. rm -f core conftest.err conftest.$ac_objext \
  14754. conftest$ac_exeext conftest.$ac_ext
  14755. LDFLAGS="$save_LDFLAGS"
  14756. ;;
  14757. esac
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14759. $as_echo "$have_no_undefined" >&6; }
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14761. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14762. have_dynamicbase=no
  14763. case "$host" in
  14764. *)
  14765. save_LDFLAGS="$LDFLAGS"
  14766. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14768. /* end confdefs.h. */
  14769. int
  14770. main ()
  14771. {
  14772. ;
  14773. return 0;
  14774. }
  14775. _ACEOF
  14776. if ac_fn_c_try_link "$LINENO"; then :
  14777. have_dynamicbase=yes
  14778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14779. fi
  14780. rm -f core conftest.err conftest.$ac_objext \
  14781. conftest$ac_exeext conftest.$ac_ext
  14782. LDFLAGS="$save_LDFLAGS"
  14783. ;;
  14784. esac
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14786. $as_echo "$have_dynamicbase" >&6; }
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14788. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14789. have_nxcompat=no
  14790. case "$host" in
  14791. *)
  14792. save_LDFLAGS="$LDFLAGS"
  14793. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14795. /* end confdefs.h. */
  14796. int
  14797. main ()
  14798. {
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. if ac_fn_c_try_link "$LINENO"; then :
  14804. have_nxcompat=yes
  14805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14806. fi
  14807. rm -f core conftest.err conftest.$ac_objext \
  14808. conftest$ac_exeext conftest.$ac_ext
  14809. LDFLAGS="$save_LDFLAGS"
  14810. ;;
  14811. esac
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14813. $as_echo "$have_nxcompat" >&6; }
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14815. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14816. have_high_entropy_va=no
  14817. case "$host" in
  14818. *)
  14819. save_LDFLAGS="$LDFLAGS"
  14820. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14822. /* end confdefs.h. */
  14823. int
  14824. main ()
  14825. {
  14826. ;
  14827. return 0;
  14828. }
  14829. _ACEOF
  14830. if ac_fn_c_try_link "$LINENO"; then :
  14831. have_high_entropy_va=yes
  14832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14833. fi
  14834. rm -f core conftest.err conftest.$ac_objext \
  14835. conftest$ac_exeext conftest.$ac_ext
  14836. LDFLAGS="$save_LDFLAGS"
  14837. ;;
  14838. esac
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14840. $as_echo "$have_high_entropy_va" >&6; }
  14841. # Check whether --enable-libc was given.
  14842. if test "${enable_libc+set}" = set; then :
  14843. enableval=$enable_libc;
  14844. else
  14845. enable_libc=yes
  14846. fi
  14847. if test x$enable_libc = xyes; then
  14848. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14850. $as_echo_n "checking for ANSI C header files... " >&6; }
  14851. if ${ac_cv_header_stdc+:} false; then :
  14852. $as_echo_n "(cached) " >&6
  14853. else
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. #include <stdlib.h>
  14857. #include <stdarg.h>
  14858. #include <string.h>
  14859. #include <float.h>
  14860. int
  14861. main ()
  14862. {
  14863. ;
  14864. return 0;
  14865. }
  14866. _ACEOF
  14867. if ac_fn_c_try_compile "$LINENO"; then :
  14868. ac_cv_header_stdc=yes
  14869. else
  14870. ac_cv_header_stdc=no
  14871. fi
  14872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14873. if test $ac_cv_header_stdc = yes; then
  14874. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. #include <string.h>
  14878. _ACEOF
  14879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14880. $EGREP "memchr" >/dev/null 2>&1; then :
  14881. else
  14882. ac_cv_header_stdc=no
  14883. fi
  14884. rm -f conftest*
  14885. fi
  14886. if test $ac_cv_header_stdc = yes; then
  14887. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14889. /* end confdefs.h. */
  14890. #include <stdlib.h>
  14891. _ACEOF
  14892. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14893. $EGREP "free" >/dev/null 2>&1; then :
  14894. else
  14895. ac_cv_header_stdc=no
  14896. fi
  14897. rm -f conftest*
  14898. fi
  14899. if test $ac_cv_header_stdc = yes; then
  14900. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14901. if test "$cross_compiling" = yes; then :
  14902. :
  14903. else
  14904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14905. /* end confdefs.h. */
  14906. #include <ctype.h>
  14907. #include <stdlib.h>
  14908. #if ((' ' & 0x0FF) == 0x020)
  14909. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14910. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14911. #else
  14912. # define ISLOWER(c) \
  14913. (('a' <= (c) && (c) <= 'i') \
  14914. || ('j' <= (c) && (c) <= 'r') \
  14915. || ('s' <= (c) && (c) <= 'z'))
  14916. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14917. #endif
  14918. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14919. int
  14920. main ()
  14921. {
  14922. int i;
  14923. for (i = 0; i < 256; i++)
  14924. if (XOR (islower (i), ISLOWER (i))
  14925. || toupper (i) != TOUPPER (i))
  14926. return 2;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_c_try_run "$LINENO"; then :
  14931. else
  14932. ac_cv_header_stdc=no
  14933. fi
  14934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14935. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14936. fi
  14937. fi
  14938. fi
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14940. $as_echo "$ac_cv_header_stdc" >&6; }
  14941. if test $ac_cv_header_stdc = yes; then
  14942. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14943. fi
  14944. 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
  14945. do :
  14946. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14947. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14948. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14949. cat >>confdefs.h <<_ACEOF
  14950. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14951. _ACEOF
  14952. fi
  14953. done
  14954. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14955. if test "x$ac_cv_type_size_t" = xyes; then :
  14956. else
  14957. cat >>confdefs.h <<_ACEOF
  14958. #define size_t unsigned int
  14959. _ACEOF
  14960. fi
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14962. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14963. if ${ac_cv_define_M_PI+:} false; then :
  14964. $as_echo_n "(cached) " >&6
  14965. else
  14966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14967. /* end confdefs.h. */
  14968. #include <math.h>
  14969. #ifdef M_PI
  14970. YES_IS_DEFINED
  14971. #endif
  14972. _ACEOF
  14973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14974. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14975. ac_cv_define_M_PI=yes
  14976. else
  14977. ac_cv_define_M_PI=no
  14978. fi
  14979. rm -f conftest*
  14980. fi
  14981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14982. $as_echo "$ac_cv_define_M_PI" >&6; }
  14983. if test "$ac_cv_define_M_PI" = "yes" ; then
  14984. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14985. fi
  14986. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14987. # for constant arguments. Useless!
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14989. $as_echo_n "checking for working alloca.h... " >&6; }
  14990. if ${ac_cv_working_alloca_h+:} false; then :
  14991. $as_echo_n "(cached) " >&6
  14992. else
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. #include <alloca.h>
  14996. int
  14997. main ()
  14998. {
  14999. char *p = (char *) alloca (2 * sizeof (int));
  15000. if (p) return 0;
  15001. ;
  15002. return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_link "$LINENO"; then :
  15006. ac_cv_working_alloca_h=yes
  15007. else
  15008. ac_cv_working_alloca_h=no
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext \
  15011. conftest$ac_exeext conftest.$ac_ext
  15012. fi
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15014. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15015. if test $ac_cv_working_alloca_h = yes; then
  15016. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15017. fi
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15019. $as_echo_n "checking for alloca... " >&6; }
  15020. if ${ac_cv_func_alloca_works+:} false; then :
  15021. $as_echo_n "(cached) " >&6
  15022. else
  15023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15024. /* end confdefs.h. */
  15025. #ifdef __GNUC__
  15026. # define alloca __builtin_alloca
  15027. #else
  15028. # ifdef _MSC_VER
  15029. # include <malloc.h>
  15030. # define alloca _alloca
  15031. # else
  15032. # ifdef HAVE_ALLOCA_H
  15033. # include <alloca.h>
  15034. # else
  15035. # ifdef _AIX
  15036. #pragma alloca
  15037. # else
  15038. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15039. void *alloca (size_t);
  15040. # endif
  15041. # endif
  15042. # endif
  15043. # endif
  15044. #endif
  15045. int
  15046. main ()
  15047. {
  15048. char *p = (char *) alloca (1);
  15049. if (p) return 0;
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. if ac_fn_c_try_link "$LINENO"; then :
  15055. ac_cv_func_alloca_works=yes
  15056. else
  15057. ac_cv_func_alloca_works=no
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext \
  15060. conftest$ac_exeext conftest.$ac_ext
  15061. fi
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15063. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15064. if test $ac_cv_func_alloca_works = yes; then
  15065. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15066. else
  15067. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15068. # that cause trouble. Some versions do not even contain alloca or
  15069. # contain a buggy version. If you still want to use their alloca,
  15070. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15071. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15072. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15074. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15075. if ${ac_cv_os_cray+:} false; then :
  15076. $as_echo_n "(cached) " >&6
  15077. else
  15078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15079. /* end confdefs.h. */
  15080. #if defined CRAY && ! defined CRAY2
  15081. webecray
  15082. #else
  15083. wenotbecray
  15084. #endif
  15085. _ACEOF
  15086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15087. $EGREP "webecray" >/dev/null 2>&1; then :
  15088. ac_cv_os_cray=yes
  15089. else
  15090. ac_cv_os_cray=no
  15091. fi
  15092. rm -f conftest*
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15095. $as_echo "$ac_cv_os_cray" >&6; }
  15096. if test $ac_cv_os_cray = yes; then
  15097. for ac_func in _getb67 GETB67 getb67; do
  15098. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15099. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15100. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15101. cat >>confdefs.h <<_ACEOF
  15102. #define CRAY_STACKSEG_END $ac_func
  15103. _ACEOF
  15104. break
  15105. fi
  15106. done
  15107. fi
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15109. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15110. if ${ac_cv_c_stack_direction+:} false; then :
  15111. $as_echo_n "(cached) " >&6
  15112. else
  15113. if test "$cross_compiling" = yes; then :
  15114. ac_cv_c_stack_direction=0
  15115. else
  15116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15117. /* end confdefs.h. */
  15118. $ac_includes_default
  15119. int
  15120. find_stack_direction (int *addr, int depth)
  15121. {
  15122. int dir, dummy = 0;
  15123. if (! addr)
  15124. addr = &dummy;
  15125. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15126. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15127. return dir + dummy;
  15128. }
  15129. int
  15130. main (int argc, char **argv)
  15131. {
  15132. return find_stack_direction (0, argc + !argv + 20) < 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_run "$LINENO"; then :
  15136. ac_cv_c_stack_direction=1
  15137. else
  15138. ac_cv_c_stack_direction=-1
  15139. fi
  15140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15142. fi
  15143. fi
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15145. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15146. cat >>confdefs.h <<_ACEOF
  15147. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15148. _ACEOF
  15149. fi
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15151. $as_echo_n "checking for working memcmp... " >&6; }
  15152. if ${ac_cv_func_memcmp_working+:} false; then :
  15153. $as_echo_n "(cached) " >&6
  15154. else
  15155. if test "$cross_compiling" = yes; then :
  15156. ac_cv_func_memcmp_working=no
  15157. else
  15158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15159. /* end confdefs.h. */
  15160. $ac_includes_default
  15161. int
  15162. main ()
  15163. {
  15164. /* Some versions of memcmp are not 8-bit clean. */
  15165. char c0 = '\100', c1 = '\200', c2 = '\201';
  15166. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15167. return 1;
  15168. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15169. or more and with at least one buffer not starting on a 4-byte boundary.
  15170. William Lewis provided this test program. */
  15171. {
  15172. char foo[21];
  15173. char bar[21];
  15174. int i;
  15175. for (i = 0; i < 4; i++)
  15176. {
  15177. char *a = foo + i;
  15178. char *b = bar + i;
  15179. strcpy (a, "--------01111111");
  15180. strcpy (b, "--------10000000");
  15181. if (memcmp (a, b, 16) >= 0)
  15182. return 1;
  15183. }
  15184. return 0;
  15185. }
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. if ac_fn_c_try_run "$LINENO"; then :
  15191. ac_cv_func_memcmp_working=yes
  15192. else
  15193. ac_cv_func_memcmp_working=no
  15194. fi
  15195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15197. fi
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15200. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15201. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15202. *" memcmp.$ac_objext "* ) ;;
  15203. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15204. ;;
  15205. esac
  15206. if test x$ac_cv_func_memcmp_working = xyes; then
  15207. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15208. fi
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15210. $as_echo_n "checking for working strtod... " >&6; }
  15211. if ${ac_cv_func_strtod+:} false; then :
  15212. $as_echo_n "(cached) " >&6
  15213. else
  15214. if test "$cross_compiling" = yes; then :
  15215. ac_cv_func_strtod=no
  15216. else
  15217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15218. /* end confdefs.h. */
  15219. $ac_includes_default
  15220. #ifndef strtod
  15221. double strtod ();
  15222. #endif
  15223. int
  15224. main()
  15225. {
  15226. {
  15227. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15228. char *string = " +69";
  15229. char *term;
  15230. double value;
  15231. value = strtod (string, &term);
  15232. if (value != 69 || term != (string + 4))
  15233. return 1;
  15234. }
  15235. {
  15236. /* Under Solaris 2.4, strtod returns the wrong value for the
  15237. terminating character under some conditions. */
  15238. char *string = "NaN";
  15239. char *term;
  15240. strtod (string, &term);
  15241. if (term != string && *(term - 1) == 0)
  15242. return 1;
  15243. }
  15244. return 0;
  15245. }
  15246. _ACEOF
  15247. if ac_fn_c_try_run "$LINENO"; then :
  15248. ac_cv_func_strtod=yes
  15249. else
  15250. ac_cv_func_strtod=no
  15251. fi
  15252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15254. fi
  15255. fi
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15257. $as_echo "$ac_cv_func_strtod" >&6; }
  15258. if test $ac_cv_func_strtod = no; then
  15259. case " $LIBOBJS " in
  15260. *" strtod.$ac_objext "* ) ;;
  15261. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15262. ;;
  15263. esac
  15264. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15265. if test "x$ac_cv_func_pow" = xyes; then :
  15266. fi
  15267. if test $ac_cv_func_pow = no; then
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15269. $as_echo_n "checking for pow in -lm... " >&6; }
  15270. if ${ac_cv_lib_m_pow+:} false; then :
  15271. $as_echo_n "(cached) " >&6
  15272. else
  15273. ac_check_lib_save_LIBS=$LIBS
  15274. LIBS="-lm $LIBS"
  15275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15276. /* end confdefs.h. */
  15277. /* Override any GCC internal prototype to avoid an error.
  15278. Use char because int might match the return type of a GCC
  15279. builtin and then its argument prototype would still apply. */
  15280. #ifdef __cplusplus
  15281. extern "C"
  15282. #endif
  15283. char pow ();
  15284. int
  15285. main ()
  15286. {
  15287. return pow ();
  15288. ;
  15289. return 0;
  15290. }
  15291. _ACEOF
  15292. if ac_fn_c_try_link "$LINENO"; then :
  15293. ac_cv_lib_m_pow=yes
  15294. else
  15295. ac_cv_lib_m_pow=no
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext \
  15298. conftest$ac_exeext conftest.$ac_ext
  15299. LIBS=$ac_check_lib_save_LIBS
  15300. fi
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15302. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15303. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15304. POW_LIB=-lm
  15305. else
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15307. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15308. fi
  15309. fi
  15310. fi
  15311. if test x$ac_cv_func_strtod = xyes; then
  15312. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15313. fi
  15314. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15315. if test "x$ac_cv_func_mprotect" = xyes; then :
  15316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15317. /* end confdefs.h. */
  15318. #include <sys/types.h>
  15319. #include <sys/mman.h>
  15320. int
  15321. main ()
  15322. {
  15323. ;
  15324. return 0;
  15325. }
  15326. _ACEOF
  15327. if ac_fn_c_try_compile "$LINENO"; then :
  15328. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15329. fi
  15330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15331. fi
  15332. 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
  15333. do :
  15334. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15335. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15336. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15337. cat >>confdefs.h <<_ACEOF
  15338. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15339. _ACEOF
  15340. fi
  15341. done
  15342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15343. $as_echo_n "checking for pow in -lm... " >&6; }
  15344. if ${ac_cv_lib_m_pow+:} false; then :
  15345. $as_echo_n "(cached) " >&6
  15346. else
  15347. ac_check_lib_save_LIBS=$LIBS
  15348. LIBS="-lm $LIBS"
  15349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15350. /* end confdefs.h. */
  15351. /* Override any GCC internal prototype to avoid an error.
  15352. Use char because int might match the return type of a GCC
  15353. builtin and then its argument prototype would still apply. */
  15354. #ifdef __cplusplus
  15355. extern "C"
  15356. #endif
  15357. char pow ();
  15358. int
  15359. main ()
  15360. {
  15361. return pow ();
  15362. ;
  15363. return 0;
  15364. }
  15365. _ACEOF
  15366. if ac_fn_c_try_link "$LINENO"; then :
  15367. ac_cv_lib_m_pow=yes
  15368. else
  15369. ac_cv_lib_m_pow=no
  15370. fi
  15371. rm -f core conftest.err conftest.$ac_objext \
  15372. conftest$ac_exeext conftest.$ac_ext
  15373. LIBS=$ac_check_lib_save_LIBS
  15374. fi
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15376. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15377. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15378. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15379. fi
  15380. 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
  15381. do :
  15382. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15383. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15384. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15385. cat >>confdefs.h <<_ACEOF
  15386. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15387. _ACEOF
  15388. fi
  15389. done
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15391. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15392. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15393. $as_echo_n "(cached) " >&6
  15394. else
  15395. ac_check_lib_save_LIBS=$LIBS
  15396. LIBS="-liconv $LIBS"
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. /* Override any GCC internal prototype to avoid an error.
  15400. Use char because int might match the return type of a GCC
  15401. builtin and then its argument prototype would still apply. */
  15402. #ifdef __cplusplus
  15403. extern "C"
  15404. #endif
  15405. char iconv_open ();
  15406. int
  15407. main ()
  15408. {
  15409. return iconv_open ();
  15410. ;
  15411. return 0;
  15412. }
  15413. _ACEOF
  15414. if ac_fn_c_try_link "$LINENO"; then :
  15415. ac_cv_lib_iconv_iconv_open=yes
  15416. else
  15417. ac_cv_lib_iconv_iconv_open=no
  15418. fi
  15419. rm -f core conftest.err conftest.$ac_objext \
  15420. conftest$ac_exeext conftest.$ac_ext
  15421. LIBS=$ac_check_lib_save_LIBS
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15424. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15425. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15426. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15427. fi
  15428. for ac_func in iconv
  15429. do :
  15430. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15431. if test "x$ac_cv_func_iconv" = xyes; then :
  15432. cat >>confdefs.h <<_ACEOF
  15433. #define HAVE_ICONV 1
  15434. _ACEOF
  15435. fi
  15436. done
  15437. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15438. "
  15439. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15440. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15441. fi
  15442. for ac_header in libunwind.h
  15443. do :
  15444. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15445. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15446. cat >>confdefs.h <<_ACEOF
  15447. #define HAVE_LIBUNWIND_H 1
  15448. _ACEOF
  15449. fi
  15450. done
  15451. fi
  15452. # Check whether --enable-gcc-atomics was given.
  15453. if test "${enable_gcc_atomics+set}" = set; then :
  15454. enableval=$enable_gcc_atomics;
  15455. else
  15456. enable_gcc_atomics=yes
  15457. fi
  15458. if test x$enable_gcc_atomics = xyes; then
  15459. have_gcc_atomics=no
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15461. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15463. /* end confdefs.h. */
  15464. int
  15465. main ()
  15466. {
  15467. int a;
  15468. void *x, *y, *z;
  15469. __sync_lock_test_and_set(&a, 4);
  15470. __sync_lock_test_and_set(&x, y);
  15471. __sync_fetch_and_add(&a, 1);
  15472. __sync_bool_compare_and_swap(&a, 5, 10);
  15473. __sync_bool_compare_and_swap(&x, y, z);
  15474. ;
  15475. return 0;
  15476. }
  15477. _ACEOF
  15478. if ac_fn_c_try_link "$LINENO"; then :
  15479. have_gcc_atomics=yes
  15480. fi
  15481. rm -f core conftest.err conftest.$ac_objext \
  15482. conftest$ac_exeext conftest.$ac_ext
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15484. $as_echo "$have_gcc_atomics" >&6; }
  15485. if test x$have_gcc_atomics = xyes; then
  15486. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15487. else
  15488. # See if we have the minimum operation needed for GCC atomics
  15489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15490. /* end confdefs.h. */
  15491. int
  15492. main ()
  15493. {
  15494. int a;
  15495. __sync_lock_test_and_set(&a, 1);
  15496. __sync_lock_release(&a);
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. if ac_fn_c_try_link "$LINENO"; then :
  15502. have_gcc_sync_lock_test_and_set=yes
  15503. fi
  15504. rm -f core conftest.err conftest.$ac_objext \
  15505. conftest$ac_exeext conftest.$ac_ext
  15506. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15507. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15508. fi
  15509. fi
  15510. fi
  15511. # Standard C sources
  15512. SOURCES="$SOURCES $srcdir/src/*.c"
  15513. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15514. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15525. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15527. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15535. case "$host" in
  15536. *-*-emscripten*)
  15537. default_atomic=no
  15538. ;;
  15539. *)
  15540. default_atomic=yes
  15541. ;;
  15542. esac
  15543. # Check whether --enable-atomic was given.
  15544. if test "${enable_atomic+set}" = set; then :
  15545. enableval=$enable_atomic;
  15546. else
  15547. enable_atomic=$default_atomic
  15548. fi
  15549. if test x$enable_atomic != xyes; then
  15550. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15551. else
  15552. SUMMARY_modules="${SUMMARY_modules} atomic"
  15553. fi
  15554. # Check whether --enable-audio was given.
  15555. if test "${enable_audio+set}" = set; then :
  15556. enableval=$enable_audio;
  15557. else
  15558. enable_audio=yes
  15559. fi
  15560. if test x$enable_audio != xyes; then
  15561. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15562. else
  15563. SUMMARY_modules="${SUMMARY_modules} audio"
  15564. fi
  15565. # Check whether --enable-video was given.
  15566. if test "${enable_video+set}" = set; then :
  15567. enableval=$enable_video;
  15568. else
  15569. enable_video=yes
  15570. fi
  15571. if test x$enable_video != xyes; then
  15572. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15573. else
  15574. SUMMARY_modules="${SUMMARY_modules} video"
  15575. fi
  15576. # Check whether --enable-render was given.
  15577. if test "${enable_render+set}" = set; then :
  15578. enableval=$enable_render;
  15579. else
  15580. enable_render=yes
  15581. fi
  15582. if test x$enable_render != xyes; then
  15583. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15584. else
  15585. SUMMARY_modules="${SUMMARY_modules} render"
  15586. fi
  15587. # Check whether --enable-events was given.
  15588. if test "${enable_events+set}" = set; then :
  15589. enableval=$enable_events;
  15590. else
  15591. enable_events=yes
  15592. fi
  15593. if test x$enable_events != xyes; then
  15594. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15595. else
  15596. SUMMARY_modules="${SUMMARY_modules} events"
  15597. fi
  15598. # Check whether --enable-joystick was given.
  15599. if test "${enable_joystick+set}" = set; then :
  15600. enableval=$enable_joystick;
  15601. else
  15602. enable_joystick=yes
  15603. fi
  15604. if test x$enable_joystick != xyes; then
  15605. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15606. else
  15607. SUMMARY_modules="${SUMMARY_modules} joystick"
  15608. fi
  15609. # Check whether --enable-haptic was given.
  15610. if test "${enable_haptic+set}" = set; then :
  15611. enableval=$enable_haptic;
  15612. else
  15613. enable_haptic=yes
  15614. fi
  15615. if test x$enable_haptic != xyes; then
  15616. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15617. else
  15618. SUMMARY_modules="${SUMMARY_modules} haptic"
  15619. fi
  15620. # Check whether --enable-hidapi was given.
  15621. if test "${enable_hidapi+set}" = set; then :
  15622. enableval=$enable_hidapi;
  15623. else
  15624. enable_hidapi=yes
  15625. fi
  15626. if test x$enable_hidapi != xyes; then
  15627. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15628. else
  15629. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15630. fi
  15631. # Check whether --enable-sensor was given.
  15632. if test "${enable_sensor+set}" = set; then :
  15633. enableval=$enable_sensor;
  15634. else
  15635. enable_sensor=yes
  15636. fi
  15637. if test x$enable_sensor != xyes; then
  15638. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15639. else
  15640. SUMMARY_modules="${SUMMARY_modules} sensor"
  15641. fi
  15642. # Check whether --enable-power was given.
  15643. if test "${enable_power+set}" = set; then :
  15644. enableval=$enable_power;
  15645. else
  15646. enable_power=yes
  15647. fi
  15648. if test x$enable_power != xyes; then
  15649. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15650. else
  15651. SUMMARY_modules="${SUMMARY_modules} power"
  15652. fi
  15653. # Check whether --enable-filesystem was given.
  15654. if test "${enable_filesystem+set}" = set; then :
  15655. enableval=$enable_filesystem;
  15656. else
  15657. enable_filesystem=yes
  15658. fi
  15659. if test x$enable_filesystem != xyes; then
  15660. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15661. else
  15662. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15663. fi
  15664. # Check whether --enable-threads was given.
  15665. if test "${enable_threads+set}" = set; then :
  15666. enableval=$enable_threads;
  15667. else
  15668. enable_threads=yes
  15669. fi
  15670. if test x$enable_threads != xyes; then
  15671. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15672. else
  15673. SUMMARY_modules="${SUMMARY_modules} threads"
  15674. fi
  15675. # Check whether --enable-timers was given.
  15676. if test "${enable_timers+set}" = set; then :
  15677. enableval=$enable_timers;
  15678. else
  15679. enable_timers=yes
  15680. fi
  15681. if test x$enable_timers != xyes; then
  15682. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15683. else
  15684. SUMMARY_modules="${SUMMARY_modules} timers"
  15685. fi
  15686. # Check whether --enable-file was given.
  15687. if test "${enable_file+set}" = set; then :
  15688. enableval=$enable_file;
  15689. else
  15690. enable_file=yes
  15691. fi
  15692. if test x$enable_file != xyes; then
  15693. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15694. else
  15695. SUMMARY_modules="${SUMMARY_modules} file"
  15696. fi
  15697. # Check whether --enable-misc was given.
  15698. if test "${enable_misc+set}" = set; then :
  15699. enableval=$enable_misc;
  15700. else
  15701. enable_misc=yes
  15702. fi
  15703. if test x$enable_misc != xyes; then
  15704. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15705. else
  15706. SUMMARY_modules="${SUMMARY_modules} misc"
  15707. fi
  15708. # Check whether --enable-locale was given.
  15709. if test "${enable_locale+set}" = set; then :
  15710. enableval=$enable_locale;
  15711. else
  15712. enable_locale=yes
  15713. fi
  15714. if test x$enable_locale != xyes; then
  15715. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15716. else
  15717. SUMMARY_modules="${SUMMARY_modules} locale"
  15718. fi
  15719. # Check whether --enable-loadso was given.
  15720. if test "${enable_loadso+set}" = set; then :
  15721. enableval=$enable_loadso;
  15722. else
  15723. enable_loadso=yes
  15724. fi
  15725. if test x$enable_loadso != xyes; then
  15726. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15727. else
  15728. SUMMARY_modules="${SUMMARY_modules} loadso"
  15729. fi
  15730. # Check whether --enable-cpuinfo was given.
  15731. if test "${enable_cpuinfo+set}" = set; then :
  15732. enableval=$enable_cpuinfo;
  15733. else
  15734. enable_cpuinfo=yes
  15735. fi
  15736. if test x$enable_cpuinfo != xyes; then
  15737. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15738. else
  15739. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15740. fi
  15741. # Check whether --enable-assembly was given.
  15742. if test "${enable_assembly+set}" = set; then :
  15743. enableval=$enable_assembly;
  15744. else
  15745. enable_assembly=yes
  15746. fi
  15747. if test x$enable_assembly = xyes; then
  15748. SUMMARY_modules="${SUMMARY_modules} assembly"
  15749. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15750. # Make sure that we don't generate floating point code that would
  15751. # cause illegal instruction exceptions on older processors
  15752. case "$host" in
  15753. *-*-darwin*)
  15754. # Don't need to worry about Apple hardware, it's all SSE capable
  15755. default_ssemath=yes
  15756. ;;
  15757. *64-*-*)
  15758. # x86 64-bit architectures all have SSE instructions
  15759. default_ssemath=yes
  15760. ;;
  15761. *)
  15762. default_ssemath=no
  15763. ;;
  15764. esac
  15765. # Check whether --enable-ssemath was given.
  15766. if test "${enable_ssemath+set}" = set; then :
  15767. enableval=$enable_ssemath;
  15768. else
  15769. enable_ssemath=$default_ssemath
  15770. fi
  15771. if test x$enable_ssemath = xno; then
  15772. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15773. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15774. fi
  15775. fi
  15776. # Check whether --enable-mmx was given.
  15777. if test "${enable_mmx+set}" = set; then :
  15778. enableval=$enable_mmx;
  15779. else
  15780. enable_mmx=yes
  15781. fi
  15782. if test x$enable_mmx = xyes; then
  15783. save_CFLAGS="$CFLAGS"
  15784. have_gcc_mmx=no
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15786. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15787. mmx_CFLAGS="-mmmx"
  15788. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15790. /* end confdefs.h. */
  15791. #ifdef __MINGW32__
  15792. #include <_mingw.h>
  15793. #ifdef __MINGW64_VERSION_MAJOR
  15794. #include <intrin.h>
  15795. #else
  15796. #include <mmintrin.h>
  15797. #endif
  15798. #else
  15799. #include <mmintrin.h>
  15800. #endif
  15801. #ifndef __MMX__
  15802. #error Assembler CPP flag not enabled
  15803. #endif
  15804. int
  15805. main ()
  15806. {
  15807. ;
  15808. return 0;
  15809. }
  15810. _ACEOF
  15811. if ac_fn_c_try_compile "$LINENO"; then :
  15812. have_gcc_mmx=yes
  15813. fi
  15814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15816. $as_echo "$have_gcc_mmx" >&6; }
  15817. CFLAGS="$save_CFLAGS"
  15818. if test x$have_gcc_mmx = xyes; then
  15819. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15820. SUMMARY_math="${SUMMARY_math} mmx"
  15821. fi
  15822. fi
  15823. # Check whether --enable-3dnow was given.
  15824. if test "${enable_3dnow+set}" = set; then :
  15825. enableval=$enable_3dnow;
  15826. else
  15827. enable_3dnow=yes
  15828. fi
  15829. if test x$enable_3dnow = xyes; then
  15830. save_CFLAGS="$CFLAGS"
  15831. have_gcc_3dnow=no
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15833. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15834. amd3dnow_CFLAGS="-m3dnow"
  15835. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15837. /* end confdefs.h. */
  15838. #include <mm3dnow.h>
  15839. #ifndef __3dNOW__
  15840. #error Assembler CPP flag not enabled
  15841. #endif
  15842. int
  15843. main ()
  15844. {
  15845. void *p = 0;
  15846. _m_prefetch(p);
  15847. ;
  15848. return 0;
  15849. }
  15850. _ACEOF
  15851. if ac_fn_c_try_link "$LINENO"; then :
  15852. have_gcc_3dnow=yes
  15853. fi
  15854. rm -f core conftest.err conftest.$ac_objext \
  15855. conftest$ac_exeext conftest.$ac_ext
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15857. $as_echo "$have_gcc_3dnow" >&6; }
  15858. CFLAGS="$save_CFLAGS"
  15859. if test x$have_gcc_3dnow = xyes; then
  15860. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15861. SUMMARY_math="${SUMMARY_math} 3dnow"
  15862. fi
  15863. fi
  15864. # Check whether --enable-sse was given.
  15865. if test "${enable_sse+set}" = set; then :
  15866. enableval=$enable_sse;
  15867. else
  15868. enable_sse=yes
  15869. fi
  15870. if test x$enable_sse = xyes; then
  15871. save_CFLAGS="$CFLAGS"
  15872. have_gcc_sse=no
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15874. $as_echo_n "checking for GCC -msse option... " >&6; }
  15875. sse_CFLAGS="-msse"
  15876. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15878. /* end confdefs.h. */
  15879. #ifdef __MINGW32__
  15880. #include <_mingw.h>
  15881. #ifdef __MINGW64_VERSION_MAJOR
  15882. #include <intrin.h>
  15883. #else
  15884. #include <xmmintrin.h>
  15885. #endif
  15886. #else
  15887. #include <xmmintrin.h>
  15888. #endif
  15889. #ifndef __SSE__
  15890. #error Assembler CPP flag not enabled
  15891. #endif
  15892. int
  15893. main ()
  15894. {
  15895. ;
  15896. return 0;
  15897. }
  15898. _ACEOF
  15899. if ac_fn_c_try_compile "$LINENO"; then :
  15900. have_gcc_sse=yes
  15901. fi
  15902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15904. $as_echo "$have_gcc_sse" >&6; }
  15905. CFLAGS="$save_CFLAGS"
  15906. if test x$have_gcc_sse = xyes; then
  15907. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15908. SUMMARY_math="${SUMMARY_math} sse"
  15909. fi
  15910. fi
  15911. # Check whether --enable-sse2 was given.
  15912. if test "${enable_sse2+set}" = set; then :
  15913. enableval=$enable_sse2;
  15914. else
  15915. enable_sse2=$default_ssemath
  15916. fi
  15917. if test x$enable_sse2 = xyes; then
  15918. save_CFLAGS="$CFLAGS"
  15919. have_gcc_sse2=no
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15921. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15922. sse2_CFLAGS="-msse2"
  15923. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15925. /* end confdefs.h. */
  15926. #ifdef __MINGW32__
  15927. #include <_mingw.h>
  15928. #ifdef __MINGW64_VERSION_MAJOR
  15929. #include <intrin.h>
  15930. #else
  15931. #include <emmintrin.h>
  15932. #endif
  15933. #else
  15934. #include <emmintrin.h>
  15935. #endif
  15936. #ifndef __SSE2__
  15937. #error Assembler CPP flag not enabled
  15938. #endif
  15939. int
  15940. main ()
  15941. {
  15942. ;
  15943. return 0;
  15944. }
  15945. _ACEOF
  15946. if ac_fn_c_try_compile "$LINENO"; then :
  15947. have_gcc_sse2=yes
  15948. fi
  15949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15951. $as_echo "$have_gcc_sse2" >&6; }
  15952. CFLAGS="$save_CFLAGS"
  15953. if test x$have_gcc_sse2 = xyes; then
  15954. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15955. SUMMARY_math="${SUMMARY_math} sse2"
  15956. fi
  15957. fi
  15958. # Check whether --enable-sse3 was given.
  15959. if test "${enable_sse3+set}" = set; then :
  15960. enableval=$enable_sse3;
  15961. else
  15962. enable_sse3=$default_ssemath
  15963. fi
  15964. if test x$enable_sse3 = xyes; then
  15965. save_CFLAGS="$CFLAGS"
  15966. have_gcc_sse3=no
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15968. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15969. sse3_CFLAGS="-msse3"
  15970. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15972. /* end confdefs.h. */
  15973. #ifdef __MINGW32__
  15974. #include <_mingw.h>
  15975. #ifdef __MINGW64_VERSION_MAJOR
  15976. #include <intrin.h>
  15977. #else
  15978. #include <pmmintrin.h>
  15979. #endif
  15980. #else
  15981. #include <pmmintrin.h>
  15982. #endif
  15983. #ifndef __SSE2__
  15984. #error Assembler CPP flag not enabled
  15985. #endif
  15986. int
  15987. main ()
  15988. {
  15989. ;
  15990. return 0;
  15991. }
  15992. _ACEOF
  15993. if ac_fn_c_try_compile "$LINENO"; then :
  15994. have_gcc_sse3=yes
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15998. $as_echo "$have_gcc_sse3" >&6; }
  15999. CFLAGS="$save_CFLAGS"
  16000. if test x$have_gcc_sse3 = xyes; then
  16001. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16002. SUMMARY_math="${SUMMARY_math} sse3"
  16003. fi
  16004. fi
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16006. $as_echo_n "checking for immintrin.h... " >&6; }
  16007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16008. /* end confdefs.h. */
  16009. #include <immintrin.h>
  16010. int
  16011. main ()
  16012. {
  16013. ;
  16014. return 0;
  16015. }
  16016. _ACEOF
  16017. if ac_fn_c_try_compile "$LINENO"; then :
  16018. have_immintrin_h_hdr=yes
  16019. else
  16020. have_immintrin_h_hdr=no
  16021. fi
  16022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16024. $as_echo "$have_immintrin_h_hdr" >&6; }
  16025. if test x$have_immintrin_h_hdr = xyes; then
  16026. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16027. fi
  16028. # Check whether --enable-altivec was given.
  16029. if test "${enable_altivec+set}" = set; then :
  16030. enableval=$enable_altivec;
  16031. else
  16032. enable_altivec=yes
  16033. fi
  16034. if test x$enable_altivec = xyes; then
  16035. save_CFLAGS="$CFLAGS"
  16036. have_gcc_altivec=no
  16037. have_altivec_h_hdr=no
  16038. altivec_CFLAGS="-maltivec"
  16039. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16041. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16043. /* end confdefs.h. */
  16044. #include <altivec.h>
  16045. vector unsigned int vzero() {
  16046. return vec_splat_u32(0);
  16047. }
  16048. int
  16049. main ()
  16050. {
  16051. ;
  16052. return 0;
  16053. }
  16054. _ACEOF
  16055. if ac_fn_c_try_compile "$LINENO"; then :
  16056. have_gcc_altivec=yes
  16057. have_altivec_h_hdr=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. if test x$have_gcc_altivec = xno; then
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16064. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16066. /* end confdefs.h. */
  16067. vector unsigned int vzero() {
  16068. return vec_splat_u32(0);
  16069. }
  16070. int
  16071. main ()
  16072. {
  16073. ;
  16074. return 0;
  16075. }
  16076. _ACEOF
  16077. if ac_fn_c_try_compile "$LINENO"; then :
  16078. have_gcc_altivec=yes
  16079. fi
  16080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16082. $as_echo "$have_gcc_altivec" >&6; }
  16083. fi
  16084. if test x$have_gcc_altivec = xno; then
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16086. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16087. altivec_CFLAGS="-faltivec"
  16088. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090. /* end confdefs.h. */
  16091. #include <altivec.h>
  16092. vector unsigned int vzero() {
  16093. return vec_splat_u32(0);
  16094. }
  16095. int
  16096. main ()
  16097. {
  16098. ;
  16099. return 0;
  16100. }
  16101. _ACEOF
  16102. if ac_fn_c_try_compile "$LINENO"; then :
  16103. have_gcc_altivec=yes
  16104. have_altivec_h_hdr=yes
  16105. fi
  16106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16108. $as_echo "$have_gcc_altivec" >&6; }
  16109. fi
  16110. if test x$have_gcc_altivec = xno; then
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16112. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16114. /* end confdefs.h. */
  16115. vector unsigned int vzero() {
  16116. return vec_splat_u32(0);
  16117. }
  16118. int
  16119. main ()
  16120. {
  16121. ;
  16122. return 0;
  16123. }
  16124. _ACEOF
  16125. if ac_fn_c_try_compile "$LINENO"; then :
  16126. have_gcc_altivec=yes
  16127. fi
  16128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16130. $as_echo "$have_gcc_altivec" >&6; }
  16131. fi
  16132. CFLAGS="$save_CFLAGS"
  16133. if test x$have_gcc_altivec = xyes; then
  16134. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16135. if test x$have_altivec_h_hdr = xyes; then
  16136. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16137. fi
  16138. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16139. SUMMARY_math="${SUMMARY_math} altivec"
  16140. fi
  16141. fi
  16142. fi
  16143. CheckOSS()
  16144. {
  16145. # Check whether --enable-oss was given.
  16146. if test "${enable_oss+set}" = set; then :
  16147. enableval=$enable_oss;
  16148. else
  16149. enable_oss=maybe
  16150. fi
  16151. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16152. # use sndio instead. So on there, we default to disabled. You can force
  16153. # it on if you really want, though.
  16154. if test x$enable_oss = xmaybe; then
  16155. enable_oss=yes
  16156. case "$host" in
  16157. *-*-openbsd*)
  16158. enable_oss=no;;
  16159. esac
  16160. fi
  16161. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16163. $as_echo_n "checking for OSS audio support... " >&6; }
  16164. have_oss=no
  16165. if test x$have_oss != xyes; then
  16166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16167. /* end confdefs.h. */
  16168. #include <sys/soundcard.h>
  16169. int
  16170. main ()
  16171. {
  16172. int arg = SNDCTL_DSP_SETFRAGMENT;
  16173. ;
  16174. return 0;
  16175. }
  16176. _ACEOF
  16177. if ac_fn_c_try_compile "$LINENO"; then :
  16178. have_oss=yes
  16179. fi
  16180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16181. fi
  16182. if test x$have_oss != xyes; then
  16183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16184. /* end confdefs.h. */
  16185. #include <soundcard.h>
  16186. int
  16187. main ()
  16188. {
  16189. int arg = SNDCTL_DSP_SETFRAGMENT;
  16190. ;
  16191. return 0;
  16192. }
  16193. _ACEOF
  16194. if ac_fn_c_try_compile "$LINENO"; then :
  16195. have_oss=yes
  16196. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16197. fi
  16198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16199. fi
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16201. $as_echo "$have_oss" >&6; }
  16202. if test x$have_oss = xyes; then
  16203. SUMMARY_audio="${SUMMARY_audio} oss"
  16204. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16205. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16206. have_audio=yes
  16207. # We may need to link with ossaudio emulation library
  16208. case "$host" in
  16209. *-*-openbsd*|*-*-netbsd*)
  16210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16211. esac
  16212. fi
  16213. fi
  16214. }
  16215. CheckALSA()
  16216. {
  16217. # Check whether --enable-alsa was given.
  16218. if test "${enable_alsa+set}" = set; then :
  16219. enableval=$enable_alsa;
  16220. else
  16221. enable_alsa=yes
  16222. fi
  16223. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16224. alsa_save_CFLAGS="$CFLAGS"
  16225. alsa_save_LDFLAGS="$LDFLAGS"
  16226. alsa_save_LIBS="$LIBS"
  16227. alsa_found=yes
  16228. # Check whether --with-alsa-prefix was given.
  16229. if test "${with_alsa_prefix+set}" = set; then :
  16230. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16231. else
  16232. alsa_prefix=""
  16233. fi
  16234. # Check whether --with-alsa-inc-prefix was given.
  16235. if test "${with_alsa_inc_prefix+set}" = set; then :
  16236. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16237. else
  16238. alsa_inc_prefix=""
  16239. fi
  16240. # Check whether --enable-alsatest was given.
  16241. if test "${enable_alsatest+set}" = set; then :
  16242. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16243. else
  16244. enable_alsatest=yes
  16245. fi
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16247. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16248. if test "$alsa_inc_prefix" != "" ; then
  16249. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16250. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16251. fi
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16253. $as_echo "$ALSA_CFLAGS" >&6; }
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16255. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16256. if test "$alsa_prefix" != "" ; then
  16257. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16258. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16259. fi
  16260. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16261. LIBS=`echo $LIBS | sed 's/-lm//'`
  16262. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16263. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16264. LIBS=`echo $LIBS | sed 's/ //'`
  16265. LIBS="$ALSA_LIBS $LIBS"
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16267. $as_echo "$ALSA_LIBS" >&6; }
  16268. min_alsa_version=1.0.11
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16270. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16271. no_alsa=""
  16272. alsa_min_major_version=`echo $min_alsa_version | \
  16273. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16274. alsa_min_minor_version=`echo $min_alsa_version | \
  16275. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16276. alsa_min_micro_version=`echo $min_alsa_version | \
  16277. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16278. ac_ext=c
  16279. ac_cpp='$CPP $CPPFLAGS'
  16280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16284. /* end confdefs.h. */
  16285. #include <alsa/asoundlib.h>
  16286. int
  16287. main ()
  16288. {
  16289. /* ensure backward compatibility */
  16290. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16291. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16292. #endif
  16293. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16294. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16295. #endif
  16296. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16297. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16298. #endif
  16299. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16300. exit(0);
  16301. # else
  16302. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16303. # error not present
  16304. # endif
  16305. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16306. exit(0);
  16307. # else
  16308. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16309. # error not present
  16310. # endif
  16311. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16312. # error not present
  16313. # endif
  16314. # endif
  16315. # endif
  16316. exit(0);
  16317. ;
  16318. return 0;
  16319. }
  16320. _ACEOF
  16321. if ac_fn_c_try_compile "$LINENO"; then :
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16323. $as_echo "found." >&6; }
  16324. else
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16326. $as_echo "not present." >&6; }
  16327. alsa_found=no
  16328. fi
  16329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16330. ac_ext=c
  16331. ac_cpp='$CPP $CPPFLAGS'
  16332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16335. if test "x$enable_alsatest" = "xyes"; then
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16337. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16338. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16339. $as_echo_n "(cached) " >&6
  16340. else
  16341. ac_check_lib_save_LIBS=$LIBS
  16342. LIBS="-lasound $LIBS"
  16343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16344. /* end confdefs.h. */
  16345. /* Override any GCC internal prototype to avoid an error.
  16346. Use char because int might match the return type of a GCC
  16347. builtin and then its argument prototype would still apply. */
  16348. #ifdef __cplusplus
  16349. extern "C"
  16350. #endif
  16351. char snd_ctl_open ();
  16352. int
  16353. main ()
  16354. {
  16355. return snd_ctl_open ();
  16356. ;
  16357. return 0;
  16358. }
  16359. _ACEOF
  16360. if ac_fn_c_try_link "$LINENO"; then :
  16361. ac_cv_lib_asound_snd_ctl_open=yes
  16362. else
  16363. ac_cv_lib_asound_snd_ctl_open=no
  16364. fi
  16365. rm -f core conftest.err conftest.$ac_objext \
  16366. conftest$ac_exeext conftest.$ac_ext
  16367. LIBS=$ac_check_lib_save_LIBS
  16368. fi
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16370. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16371. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16372. cat >>confdefs.h <<_ACEOF
  16373. #define HAVE_LIBASOUND 1
  16374. _ACEOF
  16375. LIBS="-lasound $LIBS"
  16376. else
  16377. alsa_found=no
  16378. fi
  16379. fi
  16380. if test "x$alsa_found" = "xyes" ; then
  16381. have_alsa=yes
  16382. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16383. LIBS=`echo $LIBS | sed 's/ //'`
  16384. LIBS="-lasound $LIBS"
  16385. fi
  16386. if test "x$alsa_found" = "xno" ; then
  16387. have_alsa=no
  16388. CFLAGS="$alsa_save_CFLAGS"
  16389. LDFLAGS="$alsa_save_LDFLAGS"
  16390. LIBS="$alsa_save_LIBS"
  16391. ALSA_CFLAGS=""
  16392. ALSA_LIBS=""
  16393. fi
  16394. # Restore all flags from before the ALSA detection runs
  16395. CFLAGS="$alsa_save_CFLAGS"
  16396. LDFLAGS="$alsa_save_LDFLAGS"
  16397. LIBS="$alsa_save_LIBS"
  16398. if test x$have_alsa = xyes; then
  16399. # Check whether --enable-alsa-shared was given.
  16400. if test "${enable_alsa_shared+set}" = set; then :
  16401. enableval=$enable_alsa_shared;
  16402. else
  16403. enable_alsa_shared=yes
  16404. fi
  16405. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16406. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16407. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16408. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16409. if test x$have_loadso != xyes && \
  16410. test x$enable_alsa_shared = xyes; then
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16412. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16413. fi
  16414. if test x$have_loadso = xyes && \
  16415. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16416. echo "-- dynamic libasound -> $alsa_lib"
  16417. cat >>confdefs.h <<_ACEOF
  16418. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16419. _ACEOF
  16420. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16421. else
  16422. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16423. SUMMARY_audio="${SUMMARY_audio} alsa"
  16424. fi
  16425. have_audio=yes
  16426. fi
  16427. fi
  16428. }
  16429. CheckJACK()
  16430. {
  16431. # Check whether --enable-jack was given.
  16432. if test "${enable_jack+set}" = set; then :
  16433. enableval=$enable_jack;
  16434. else
  16435. enable_jack=yes
  16436. fi
  16437. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16438. pkg_failed=no
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16440. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16441. if test -n "$JACK_CFLAGS"; then
  16442. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16443. elif test -n "$PKG_CONFIG"; then
  16444. if test -n "$PKG_CONFIG" && \
  16445. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16446. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16447. ac_status=$?
  16448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16449. test $ac_status = 0; }; then
  16450. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16451. test "x$?" != "x0" && pkg_failed=yes
  16452. else
  16453. pkg_failed=yes
  16454. fi
  16455. else
  16456. pkg_failed=untried
  16457. fi
  16458. if test -n "$JACK_LIBS"; then
  16459. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16460. elif test -n "$PKG_CONFIG"; then
  16461. if test -n "$PKG_CONFIG" && \
  16462. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16463. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16464. ac_status=$?
  16465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16466. test $ac_status = 0; }; then
  16467. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16468. test "x$?" != "x0" && pkg_failed=yes
  16469. else
  16470. pkg_failed=yes
  16471. fi
  16472. else
  16473. pkg_failed=untried
  16474. fi
  16475. if test $pkg_failed = yes; then
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16477. $as_echo "no" >&6; }
  16478. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16479. _pkg_short_errors_supported=yes
  16480. else
  16481. _pkg_short_errors_supported=no
  16482. fi
  16483. if test $_pkg_short_errors_supported = yes; then
  16484. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16485. else
  16486. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16487. fi
  16488. # Put the nasty error message in config.log where it belongs
  16489. echo "$JACK_PKG_ERRORS" >&5
  16490. audio_jack=no
  16491. elif test $pkg_failed = untried; then
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16493. $as_echo "no" >&6; }
  16494. audio_jack=no
  16495. else
  16496. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16497. JACK_LIBS=$pkg_cv_JACK_LIBS
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16499. $as_echo "yes" >&6; }
  16500. audio_jack=yes
  16501. fi
  16502. if test x$audio_jack = xyes; then
  16503. # Check whether --enable-jack-shared was given.
  16504. if test "${enable_jack_shared+set}" = set; then :
  16505. enableval=$enable_jack_shared;
  16506. else
  16507. enable_jack_shared=yes
  16508. fi
  16509. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16510. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16511. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16512. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16513. if test x$have_loadso != xyes && \
  16514. test x$enable_jack_shared = xyes; then
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16516. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16517. fi
  16518. if test x$have_loadso = xyes && \
  16519. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16520. echo "-- dynamic libjack -> $jack_lib"
  16521. cat >>confdefs.h <<_ACEOF
  16522. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16523. _ACEOF
  16524. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16525. case "$host" in
  16526. # On Solaris, jack must be linked deferred explicitly
  16527. # to prevent undefined symbol failures.
  16528. *-*-solaris*)
  16529. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16531. esac
  16532. else
  16533. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16534. SUMMARY_audio="${SUMMARY_audio} jack"
  16535. fi
  16536. have_audio=yes
  16537. fi
  16538. fi
  16539. }
  16540. CheckESD()
  16541. {
  16542. # Check whether --enable-esd was given.
  16543. if test "${enable_esd+set}" = set; then :
  16544. enableval=$enable_esd;
  16545. else
  16546. enable_esd=yes
  16547. fi
  16548. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16549. # Check whether --with-esd-prefix was given.
  16550. if test "${with_esd_prefix+set}" = set; then :
  16551. withval=$with_esd_prefix; esd_prefix="$withval"
  16552. else
  16553. esd_prefix=""
  16554. fi
  16555. # Check whether --with-esd-exec-prefix was given.
  16556. if test "${with_esd_exec_prefix+set}" = set; then :
  16557. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16558. else
  16559. esd_exec_prefix=""
  16560. fi
  16561. # Check whether --enable-esdtest was given.
  16562. if test "${enable_esdtest+set}" = set; then :
  16563. enableval=$enable_esdtest;
  16564. else
  16565. enable_esdtest=yes
  16566. fi
  16567. if test x$esd_exec_prefix != x ; then
  16568. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16569. if test x${ESD_CONFIG+set} != xset ; then
  16570. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16571. fi
  16572. fi
  16573. if test x$esd_prefix != x ; then
  16574. esd_args="$esd_args --prefix=$esd_prefix"
  16575. if test x${ESD_CONFIG+set} != xset ; then
  16576. ESD_CONFIG=$esd_prefix/bin/esd-config
  16577. fi
  16578. fi
  16579. # Extract the first word of "esd-config", so it can be a program name with args.
  16580. set dummy esd-config; ac_word=$2
  16581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16582. $as_echo_n "checking for $ac_word... " >&6; }
  16583. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16584. $as_echo_n "(cached) " >&6
  16585. else
  16586. case $ESD_CONFIG in
  16587. [\\/]* | ?:[\\/]*)
  16588. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16589. ;;
  16590. *)
  16591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16592. for as_dir in $PATH
  16593. do
  16594. IFS=$as_save_IFS
  16595. test -z "$as_dir" && as_dir=.
  16596. for ac_exec_ext in '' $ac_executable_extensions; do
  16597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16598. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16600. break 2
  16601. fi
  16602. done
  16603. done
  16604. IFS=$as_save_IFS
  16605. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16606. ;;
  16607. esac
  16608. fi
  16609. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16610. if test -n "$ESD_CONFIG"; then
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16612. $as_echo "$ESD_CONFIG" >&6; }
  16613. else
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16615. $as_echo "no" >&6; }
  16616. fi
  16617. min_esd_version=0.2.8
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16619. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16620. no_esd=""
  16621. if test "$ESD_CONFIG" = "no" ; then
  16622. no_esd=yes
  16623. else
  16624. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16625. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16626. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16628. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16630. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16632. if test "x$enable_esdtest" = "xyes" ; then
  16633. ac_ext=c
  16634. ac_cpp='$CPP $CPPFLAGS'
  16635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16638. ac_save_CFLAGS="$CFLAGS"
  16639. ac_save_LIBS="$LIBS"
  16640. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16641. LIBS="$LIBS $ESD_LIBS"
  16642. rm -f conf.esdtest
  16643. if test "$cross_compiling" = yes; then :
  16644. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16645. else
  16646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16647. /* end confdefs.h. */
  16648. #include <stdio.h>
  16649. #include <stdlib.h>
  16650. #include <esd.h>
  16651. int main (void)
  16652. {
  16653. int major, minor, micro;
  16654. FILE *fp = fopen("conf.esdtest", "w");
  16655. if (fp) fclose(fp);
  16656. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16657. printf("%s, bad version string\n", "$min_esd_version");
  16658. exit(1);
  16659. }
  16660. if (($esd_major_version > major) ||
  16661. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16662. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16663. {
  16664. return 0;
  16665. }
  16666. else
  16667. {
  16668. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16669. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16670. printf("*** best to upgrade to the required version.\n");
  16671. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16672. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16673. printf("*** config.cache before re-running configure\n");
  16674. return 1;
  16675. }
  16676. }
  16677. _ACEOF
  16678. if ac_fn_c_try_run "$LINENO"; then :
  16679. else
  16680. no_esd=yes
  16681. fi
  16682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16683. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16684. fi
  16685. CFLAGS="$ac_save_CFLAGS"
  16686. LIBS="$ac_save_LIBS"
  16687. ac_ext=c
  16688. ac_cpp='$CPP $CPPFLAGS'
  16689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16692. fi
  16693. fi
  16694. if test "x$no_esd" = x ; then
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16696. $as_echo "yes" >&6; }
  16697. have_esd=yes
  16698. else
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16700. $as_echo "no" >&6; }
  16701. if test "$ESD_CONFIG" = "no" ; then
  16702. echo "*** The esd-config script installed by ESD could not be found"
  16703. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16704. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16705. echo "*** full path to esd-config."
  16706. else
  16707. if test -f conf.esdtest ; then
  16708. :
  16709. else
  16710. echo "*** Could not run ESD test program, checking why..."
  16711. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16712. LIBS="$LIBS $ESD_LIBS"
  16713. ac_ext=c
  16714. ac_cpp='$CPP $CPPFLAGS'
  16715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16719. /* end confdefs.h. */
  16720. #include <stdio.h>
  16721. #include <esd.h>
  16722. int
  16723. main ()
  16724. {
  16725. return 0;
  16726. ;
  16727. return 0;
  16728. }
  16729. _ACEOF
  16730. if ac_fn_c_try_link "$LINENO"; then :
  16731. echo "*** The test program compiled, but did not run. This usually means"
  16732. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16733. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16734. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16735. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16736. echo "*** is required on your system"
  16737. echo "***"
  16738. echo "*** If you have an old version installed, it is best to remove it, although"
  16739. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16740. else
  16741. echo "*** The test program failed to compile or link. See the file config.log for the"
  16742. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16743. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16744. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16745. fi
  16746. rm -f core conftest.err conftest.$ac_objext \
  16747. conftest$ac_exeext conftest.$ac_ext
  16748. CFLAGS="$ac_save_CFLAGS"
  16749. LIBS="$ac_save_LIBS"
  16750. ac_ext=c
  16751. ac_cpp='$CPP $CPPFLAGS'
  16752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16755. fi
  16756. fi
  16757. ESD_CFLAGS=""
  16758. ESD_LIBS=""
  16759. have_esd=no
  16760. fi
  16761. rm -f conf.esdtest
  16762. if test x$have_esd = xyes; then
  16763. # Check whether --enable-esd-shared was given.
  16764. if test "${enable_esd_shared+set}" = set; then :
  16765. enableval=$enable_esd_shared;
  16766. else
  16767. enable_esd_shared=yes
  16768. fi
  16769. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16770. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16771. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16772. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16773. if test x$have_loadso != xyes && \
  16774. test x$enable_esd_shared = xyes; then
  16775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16776. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16777. fi
  16778. if test x$have_loadso = xyes && \
  16779. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16780. echo "-- dynamic libesd -> $esd_lib"
  16781. cat >>confdefs.h <<_ACEOF
  16782. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16783. _ACEOF
  16784. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16785. else
  16786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16787. SUMMARY_audio="${SUMMARY_audio} esd"
  16788. fi
  16789. have_audio=yes
  16790. fi
  16791. fi
  16792. }
  16793. CheckPipewire()
  16794. {
  16795. # Check whether --enable-pipewire was given.
  16796. if test "${enable_pipewire+set}" = set; then :
  16797. enableval=$enable_pipewire;
  16798. else
  16799. enable_pipewire=yes
  16800. fi
  16801. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16802. pkg_failed=no
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16804. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16805. if test -n "$PIPEWIRE_CFLAGS"; then
  16806. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16807. elif test -n "$PKG_CONFIG"; then
  16808. if test -n "$PKG_CONFIG" && \
  16809. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16810. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16811. ac_status=$?
  16812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16813. test $ac_status = 0; }; then
  16814. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16815. test "x$?" != "x0" && pkg_failed=yes
  16816. else
  16817. pkg_failed=yes
  16818. fi
  16819. else
  16820. pkg_failed=untried
  16821. fi
  16822. if test -n "$PIPEWIRE_LIBS"; then
  16823. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16824. elif test -n "$PKG_CONFIG"; then
  16825. if test -n "$PKG_CONFIG" && \
  16826. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16827. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16828. ac_status=$?
  16829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16830. test $ac_status = 0; }; then
  16831. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16832. test "x$?" != "x0" && pkg_failed=yes
  16833. else
  16834. pkg_failed=yes
  16835. fi
  16836. else
  16837. pkg_failed=untried
  16838. fi
  16839. if test $pkg_failed = yes; then
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16841. $as_echo "no" >&6; }
  16842. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16843. _pkg_short_errors_supported=yes
  16844. else
  16845. _pkg_short_errors_supported=no
  16846. fi
  16847. if test $_pkg_short_errors_supported = yes; then
  16848. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16849. else
  16850. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16851. fi
  16852. # Put the nasty error message in config.log where it belongs
  16853. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16854. audio_pipewire=no
  16855. elif test $pkg_failed = untried; then
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16857. $as_echo "no" >&6; }
  16858. audio_pipewire=no
  16859. else
  16860. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16861. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16863. $as_echo "yes" >&6; }
  16864. audio_pipewire=yes
  16865. fi
  16866. if test x$audio_pipewire = xyes; then
  16867. # Check whether --enable-pipewire-shared was given.
  16868. if test "${enable_pipewire_shared+set}" = set; then :
  16869. enableval=$enable_pipewire_shared;
  16870. else
  16871. enable_pipewire_shared=yes
  16872. fi
  16873. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16874. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16875. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16876. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16877. if test x$have_loadso != xyes && \
  16878. test x$enable_pipewire_shared = xyes; then
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16880. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16881. fi
  16882. if test x$have_loadso = xyes && \
  16883. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16884. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16885. cat >>confdefs.h <<_ACEOF
  16886. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16887. _ACEOF
  16888. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16889. else
  16890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16891. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16892. fi
  16893. have_audio=yes
  16894. fi
  16895. fi
  16896. }
  16897. CheckPulseAudio()
  16898. {
  16899. # Check whether --enable-pulseaudio was given.
  16900. if test "${enable_pulseaudio+set}" = set; then :
  16901. enableval=$enable_pulseaudio;
  16902. else
  16903. enable_pulseaudio=yes
  16904. fi
  16905. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16906. pkg_failed=no
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16908. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16909. if test -n "$PULSEAUDIO_CFLAGS"; then
  16910. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16911. elif test -n "$PKG_CONFIG"; then
  16912. if test -n "$PKG_CONFIG" && \
  16913. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16914. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16915. ac_status=$?
  16916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16917. test $ac_status = 0; }; then
  16918. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16919. test "x$?" != "x0" && pkg_failed=yes
  16920. else
  16921. pkg_failed=yes
  16922. fi
  16923. else
  16924. pkg_failed=untried
  16925. fi
  16926. if test -n "$PULSEAUDIO_LIBS"; then
  16927. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16928. elif test -n "$PKG_CONFIG"; then
  16929. if test -n "$PKG_CONFIG" && \
  16930. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16931. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16932. ac_status=$?
  16933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16934. test $ac_status = 0; }; then
  16935. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16936. test "x$?" != "x0" && pkg_failed=yes
  16937. else
  16938. pkg_failed=yes
  16939. fi
  16940. else
  16941. pkg_failed=untried
  16942. fi
  16943. if test $pkg_failed = yes; then
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16945. $as_echo "no" >&6; }
  16946. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16947. _pkg_short_errors_supported=yes
  16948. else
  16949. _pkg_short_errors_supported=no
  16950. fi
  16951. if test $_pkg_short_errors_supported = yes; then
  16952. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16953. else
  16954. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16955. fi
  16956. # Put the nasty error message in config.log where it belongs
  16957. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16958. audio_pulseaudio=no
  16959. elif test $pkg_failed = untried; then
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16961. $as_echo "no" >&6; }
  16962. audio_pulseaudio=no
  16963. else
  16964. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16965. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16967. $as_echo "yes" >&6; }
  16968. audio_pulseaudio=yes
  16969. fi
  16970. if test x$audio_pulseaudio = xyes; then
  16971. # Check whether --enable-pulseaudio-shared was given.
  16972. if test "${enable_pulseaudio_shared+set}" = set; then :
  16973. enableval=$enable_pulseaudio_shared;
  16974. else
  16975. enable_pulseaudio_shared=yes
  16976. fi
  16977. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16978. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16979. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16980. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16981. if test x$have_loadso != xyes && \
  16982. test x$enable_pulseaudio_shared = xyes; then
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16984. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16985. fi
  16986. if test x$have_loadso = xyes && \
  16987. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16988. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16989. cat >>confdefs.h <<_ACEOF
  16990. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16991. _ACEOF
  16992. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16993. case "$host" in
  16994. # On Solaris, pulseaudio must be linked deferred explicitly
  16995. # to prevent undefined symbol failures.
  16996. *-*-solaris*)
  16997. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16999. esac
  17000. else
  17001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17002. SUMMARY_audio="${SUMMARY_audio} pulse"
  17003. fi
  17004. have_audio=yes
  17005. fi
  17006. fi
  17007. }
  17008. CheckARTSC()
  17009. {
  17010. # Check whether --enable-arts was given.
  17011. if test "${enable_arts+set}" = set; then :
  17012. enableval=$enable_arts;
  17013. else
  17014. enable_arts=yes
  17015. fi
  17016. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17017. # Extract the first word of "artsc-config", so it can be a program name with args.
  17018. set dummy artsc-config; ac_word=$2
  17019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17020. $as_echo_n "checking for $ac_word... " >&6; }
  17021. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17022. $as_echo_n "(cached) " >&6
  17023. else
  17024. case $ARTSCONFIG in
  17025. [\\/]* | ?:[\\/]*)
  17026. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17027. ;;
  17028. *)
  17029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17030. for as_dir in $PATH
  17031. do
  17032. IFS=$as_save_IFS
  17033. test -z "$as_dir" && as_dir=.
  17034. for ac_exec_ext in '' $ac_executable_extensions; do
  17035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17036. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17038. break 2
  17039. fi
  17040. done
  17041. done
  17042. IFS=$as_save_IFS
  17043. ;;
  17044. esac
  17045. fi
  17046. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17047. if test -n "$ARTSCONFIG"; then
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17049. $as_echo "$ARTSCONFIG" >&6; }
  17050. else
  17051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17052. $as_echo "no" >&6; }
  17053. fi
  17054. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17055. : # arts isn't installed
  17056. else
  17057. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17058. ARTS_LIBS=`$ARTSCONFIG --libs`
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17060. $as_echo_n "checking for aRts development environment... " >&6; }
  17061. audio_arts=no
  17062. save_CFLAGS="$CFLAGS"
  17063. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17065. /* end confdefs.h. */
  17066. #include <artsc.h>
  17067. int
  17068. main ()
  17069. {
  17070. arts_stream_t stream;
  17071. ;
  17072. return 0;
  17073. }
  17074. _ACEOF
  17075. if ac_fn_c_try_compile "$LINENO"; then :
  17076. audio_arts=yes
  17077. fi
  17078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17079. CFLAGS="$save_CFLAGS"
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17081. $as_echo "$audio_arts" >&6; }
  17082. if test x$audio_arts = xyes; then
  17083. # Check whether --enable-arts-shared was given.
  17084. if test "${enable_arts_shared+set}" = set; then :
  17085. enableval=$enable_arts_shared;
  17086. else
  17087. enable_arts_shared=yes
  17088. fi
  17089. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17090. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17091. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17092. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17093. if test x$have_loadso != xyes && \
  17094. test x$enable_arts_shared = xyes; then
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17096. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17097. fi
  17098. if test x$have_loadso = xyes && \
  17099. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17100. echo "-- dynamic libartsc -> $arts_lib"
  17101. cat >>confdefs.h <<_ACEOF
  17102. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17103. _ACEOF
  17104. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17105. else
  17106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17107. SUMMARY_audio="${SUMMARY_audio} arts"
  17108. fi
  17109. have_audio=yes
  17110. fi
  17111. fi
  17112. fi
  17113. }
  17114. CheckNAS()
  17115. {
  17116. # Check whether --enable-nas was given.
  17117. if test "${enable_nas+set}" = set; then :
  17118. enableval=$enable_nas;
  17119. else
  17120. enable_nas=yes
  17121. fi
  17122. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17123. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17124. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17125. have_nas_hdr=yes
  17126. fi
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17128. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17129. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17130. $as_echo_n "(cached) " >&6
  17131. else
  17132. ac_check_lib_save_LIBS=$LIBS
  17133. LIBS="-laudio $LIBS"
  17134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17135. /* end confdefs.h. */
  17136. /* Override any GCC internal prototype to avoid an error.
  17137. Use char because int might match the return type of a GCC
  17138. builtin and then its argument prototype would still apply. */
  17139. #ifdef __cplusplus
  17140. extern "C"
  17141. #endif
  17142. char AuOpenServer ();
  17143. int
  17144. main ()
  17145. {
  17146. return AuOpenServer ();
  17147. ;
  17148. return 0;
  17149. }
  17150. _ACEOF
  17151. if ac_fn_c_try_link "$LINENO"; then :
  17152. ac_cv_lib_audio_AuOpenServer=yes
  17153. else
  17154. ac_cv_lib_audio_AuOpenServer=no
  17155. fi
  17156. rm -f core conftest.err conftest.$ac_objext \
  17157. conftest$ac_exeext conftest.$ac_ext
  17158. LIBS=$ac_check_lib_save_LIBS
  17159. fi
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17161. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17162. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17163. have_nas_lib=yes
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17166. $as_echo_n "checking for NAS audio support... " >&6; }
  17167. have_nas=no
  17168. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17169. have_nas=yes
  17170. NAS_LIBS="-laudio"
  17171. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17172. have_nas=yes
  17173. NAS_CFLAGS="-I/usr/X11R6/include/"
  17174. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17175. fi
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17177. $as_echo "$have_nas" >&6; }
  17178. if test x$have_nas = xyes; then
  17179. # Check whether --enable-nas-shared was given.
  17180. if test "${enable_nas_shared+set}" = set; then :
  17181. enableval=$enable_nas_shared;
  17182. else
  17183. enable_nas_shared=yes
  17184. fi
  17185. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17186. if test x$have_loadso != xyes && \
  17187. test x$enable_nas_shared = xyes; then
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17189. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17190. fi
  17191. if test x$have_loadso = xyes && \
  17192. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17193. echo "-- dynamic libaudio -> $nas_lib"
  17194. cat >>confdefs.h <<_ACEOF
  17195. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17196. _ACEOF
  17197. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17198. else
  17199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17200. SUMMARY_audio="${SUMMARY_audio} nas"
  17201. fi
  17202. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17203. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17204. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17205. have_audio=yes
  17206. fi
  17207. fi
  17208. }
  17209. CheckSNDIO()
  17210. {
  17211. # Check whether --enable-sndio was given.
  17212. if test "${enable_sndio+set}" = set; then :
  17213. enableval=$enable_sndio;
  17214. else
  17215. enable_sndio=yes
  17216. fi
  17217. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17218. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17219. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17220. have_sndio_hdr=yes
  17221. fi
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17223. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17224. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17225. $as_echo_n "(cached) " >&6
  17226. else
  17227. ac_check_lib_save_LIBS=$LIBS
  17228. LIBS="-lsndio $LIBS"
  17229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17230. /* end confdefs.h. */
  17231. /* Override any GCC internal prototype to avoid an error.
  17232. Use char because int might match the return type of a GCC
  17233. builtin and then its argument prototype would still apply. */
  17234. #ifdef __cplusplus
  17235. extern "C"
  17236. #endif
  17237. char sio_open ();
  17238. int
  17239. main ()
  17240. {
  17241. return sio_open ();
  17242. ;
  17243. return 0;
  17244. }
  17245. _ACEOF
  17246. if ac_fn_c_try_link "$LINENO"; then :
  17247. ac_cv_lib_sndio_sio_open=yes
  17248. else
  17249. ac_cv_lib_sndio_sio_open=no
  17250. fi
  17251. rm -f core conftest.err conftest.$ac_objext \
  17252. conftest$ac_exeext conftest.$ac_ext
  17253. LIBS=$ac_check_lib_save_LIBS
  17254. fi
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17256. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17257. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17258. have_sndio_lib=yes
  17259. fi
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17261. $as_echo_n "checking for sndio audio support... " >&6; }
  17262. have_sndio=no
  17263. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17264. have_sndio=yes
  17265. SNDIO_LIBS="-lsndio"
  17266. fi
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17268. $as_echo "$have_sndio" >&6; }
  17269. if test x$have_sndio = xyes; then
  17270. # Check whether --enable-sndio-shared was given.
  17271. if test "${enable_sndio_shared+set}" = set; then :
  17272. enableval=$enable_sndio_shared;
  17273. else
  17274. enable_sndio_shared=yes
  17275. fi
  17276. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17277. if test x$have_loadso != xyes && \
  17278. test x$enable_sndio_shared = xyes; then
  17279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17280. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17281. fi
  17282. if test x$have_loadso = xyes && \
  17283. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17284. echo "-- dynamic libsndio -> $sndio_lib"
  17285. cat >>confdefs.h <<_ACEOF
  17286. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17287. _ACEOF
  17288. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17289. else
  17290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17291. SUMMARY_audio="${SUMMARY_audio} sndio"
  17292. fi
  17293. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17294. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17295. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17296. have_audio=yes
  17297. fi
  17298. fi
  17299. }
  17300. CheckFusionSound()
  17301. {
  17302. # Check whether --enable-fusionsound was given.
  17303. if test "${enable_fusionsound+set}" = set; then :
  17304. enableval=$enable_fusionsound;
  17305. else
  17306. enable_fusionsound=no
  17307. fi
  17308. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17309. pkg_failed=no
  17310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17311. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17312. if test -n "$FUSIONSOUND_CFLAGS"; then
  17313. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17314. elif test -n "$PKG_CONFIG"; then
  17315. if test -n "$PKG_CONFIG" && \
  17316. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17317. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17318. ac_status=$?
  17319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17320. test $ac_status = 0; }; then
  17321. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17322. test "x$?" != "x0" && pkg_failed=yes
  17323. else
  17324. pkg_failed=yes
  17325. fi
  17326. else
  17327. pkg_failed=untried
  17328. fi
  17329. if test -n "$FUSIONSOUND_LIBS"; then
  17330. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17331. elif test -n "$PKG_CONFIG"; then
  17332. if test -n "$PKG_CONFIG" && \
  17333. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17334. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17335. ac_status=$?
  17336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17337. test $ac_status = 0; }; then
  17338. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17339. test "x$?" != "x0" && pkg_failed=yes
  17340. else
  17341. pkg_failed=yes
  17342. fi
  17343. else
  17344. pkg_failed=untried
  17345. fi
  17346. if test $pkg_failed = yes; then
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17348. $as_echo "no" >&6; }
  17349. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17350. _pkg_short_errors_supported=yes
  17351. else
  17352. _pkg_short_errors_supported=no
  17353. fi
  17354. if test $_pkg_short_errors_supported = yes; then
  17355. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17356. else
  17357. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17358. fi
  17359. # Put the nasty error message in config.log where it belongs
  17360. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17361. fusionsound=no
  17362. elif test $pkg_failed = untried; then
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17364. $as_echo "no" >&6; }
  17365. fusionsound=no
  17366. else
  17367. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17368. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17370. $as_echo "yes" >&6; }
  17371. fusionsound=yes
  17372. fi
  17373. if test x$fusionsound = xyes; then
  17374. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17375. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17376. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17377. # Check whether --enable-fusionsound-shared was given.
  17378. if test "${enable_fusionsound_shared+set}" = set; then :
  17379. enableval=$enable_fusionsound_shared;
  17380. else
  17381. enable_fusionsound_shared=yes
  17382. fi
  17383. fusionsound_shared=no
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17385. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17386. if test x$have_loadso != xyes && \
  17387. test x$enable_fusionsound_shared = xyes; then
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17389. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17390. fi
  17391. if test x$have_loadso = xyes && \
  17392. test x$enable_fusionsound_shared = xyes; then
  17393. cat >>confdefs.h <<_ACEOF
  17394. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17395. _ACEOF
  17396. fusionsound_shared=yes
  17397. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17398. else
  17399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17400. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17401. fi
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17403. $as_echo "$fusionsound_shared" >&6; }
  17404. have_audio=yes
  17405. fi
  17406. fi
  17407. }
  17408. CheckDiskAudio()
  17409. {
  17410. # Check whether --enable-diskaudio was given.
  17411. if test "${enable_diskaudio+set}" = set; then :
  17412. enableval=$enable_diskaudio;
  17413. else
  17414. enable_diskaudio=yes
  17415. fi
  17416. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17417. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17418. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17419. SUMMARY_audio="${SUMMARY_audio} disk"
  17420. have_audio=yes
  17421. fi
  17422. }
  17423. CheckDummyAudio()
  17424. {
  17425. # Check whether --enable-dummyaudio was given.
  17426. if test "${enable_dummyaudio+set}" = set; then :
  17427. enableval=$enable_dummyaudio;
  17428. else
  17429. enable_dummyaudio=yes
  17430. fi
  17431. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17432. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17433. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17434. SUMMARY_audio="${SUMMARY_audio} dummy"
  17435. have_audio=yes
  17436. fi
  17437. }
  17438. CheckLibSampleRate()
  17439. {
  17440. # Check whether --enable-libsamplerate was given.
  17441. if test "${enable_libsamplerate+set}" = set; then :
  17442. enableval=$enable_libsamplerate;
  17443. else
  17444. enable_libsamplerate=yes
  17445. fi
  17446. if test x$enable_libsamplerate = xyes; then
  17447. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17448. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17449. have_samplerate_h_hdr=yes
  17450. else
  17451. have_samplerate_h_hdr=no
  17452. fi
  17453. if test x$have_samplerate_h_hdr = xyes; then
  17454. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17455. # Check whether --enable-libsamplerate-shared was given.
  17456. if test "${enable_libsamplerate_shared+set}" = set; then :
  17457. enableval=$enable_libsamplerate_shared;
  17458. else
  17459. enable_libsamplerate_shared=yes
  17460. fi
  17461. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17462. if test x$have_loadso != xyes && \
  17463. test x$enable_libsamplerate_shared = xyes; then
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17465. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17466. fi
  17467. if test x$have_loadso = xyes && \
  17468. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17469. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17470. cat >>confdefs.h <<_ACEOF
  17471. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17472. _ACEOF
  17473. else
  17474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17475. fi
  17476. fi
  17477. fi
  17478. }
  17479. CheckARM()
  17480. {
  17481. # Check whether --enable-arm-simd was given.
  17482. if test "${enable_arm_simd+set}" = set; then :
  17483. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17484. else
  17485. enable_arm_simd=no
  17486. fi
  17487. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17488. save_CFLAGS="$CFLAGS"
  17489. have_arm_simd=no
  17490. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17492. $as_echo_n "checking for ARM SIMD... " >&6; }
  17493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17494. /* end confdefs.h. */
  17495. .text
  17496. .arch armv6
  17497. .object_arch armv4
  17498. .arm
  17499. .altmacro
  17500. #ifndef __ARM_EABI__
  17501. #error EABI is required (to be sure that calling conventions are compatible)
  17502. #endif
  17503. pld [r0]
  17504. uqadd8 r0, r0, r0
  17505. _ACEOF
  17506. if ac_fn_c_try_compile "$LINENO"; then :
  17507. have_arm_simd=yes
  17508. fi
  17509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17511. $as_echo "$have_arm_simd" >&6; }
  17512. CFLAGS="$save_CFLAGS"
  17513. if test x$have_arm_simd = xyes; then
  17514. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17515. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17516. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17517. fi
  17518. fi
  17519. }
  17520. CheckNEON()
  17521. {
  17522. # Check whether --enable-arm-neon was given.
  17523. if test "${enable_arm_neon+set}" = set; then :
  17524. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17525. else
  17526. enable_arm_neon=no
  17527. fi
  17528. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17529. save_CFLAGS="$CFLAGS"
  17530. have_arm_neon=no
  17531. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17533. $as_echo_n "checking for ARM NEON... " >&6; }
  17534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17535. /* end confdefs.h. */
  17536. .text
  17537. .fpu neon
  17538. .arch armv7a
  17539. .object_arch armv4
  17540. .eabi_attribute 10, 0
  17541. .arm
  17542. .altmacro
  17543. #ifndef __ARM_EABI__
  17544. #error EABI is required (to be sure that calling conventions are compatible)
  17545. #endif
  17546. pld [r0]
  17547. vmovn.u16 d0, q0
  17548. _ACEOF
  17549. if ac_fn_c_try_compile "$LINENO"; then :
  17550. have_arm_neon=yes
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17554. $as_echo "$have_arm_neon" >&6; }
  17555. CFLAGS="$save_CFLAGS"
  17556. if test x$have_arm_neon = xyes; then
  17557. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17558. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17559. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17560. fi
  17561. fi
  17562. }
  17563. CheckVisibilityHidden()
  17564. {
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17566. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17567. have_gcc_fvisibility=no
  17568. visibility_CFLAGS="-fvisibility=hidden"
  17569. save_CFLAGS="$CFLAGS"
  17570. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17572. /* end confdefs.h. */
  17573. #if !defined(__GNUC__) || __GNUC__ < 4
  17574. #error SDL only uses visibility attributes in GCC 4 or newer
  17575. #endif
  17576. int
  17577. main ()
  17578. {
  17579. ;
  17580. return 0;
  17581. }
  17582. _ACEOF
  17583. if ac_fn_c_try_compile "$LINENO"; then :
  17584. have_gcc_fvisibility=yes
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17588. $as_echo "$have_gcc_fvisibility" >&6; }
  17589. CFLAGS="$save_CFLAGS"
  17590. if test x$have_gcc_fvisibility = xyes; then
  17591. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17592. fi
  17593. }
  17594. CheckNoStrictAliasing()
  17595. {
  17596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17597. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17598. have_gcc_no_strict_aliasing=no
  17599. save_CFLAGS="$CFLAGS"
  17600. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17602. /* end confdefs.h. */
  17603. int x = 0;
  17604. int
  17605. main ()
  17606. {
  17607. ;
  17608. return 0;
  17609. }
  17610. _ACEOF
  17611. if ac_fn_c_try_compile "$LINENO"; then :
  17612. have_gcc_no_strict_aliasing=yes
  17613. fi
  17614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17616. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17617. CFLAGS="$save_CFLAGS"
  17618. if test x$have_gcc_no_strict_aliasing = xyes; then
  17619. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17620. fi
  17621. }
  17622. CheckStackBoundary()
  17623. {
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17625. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17626. have_gcc_preferred_stack_boundary=no
  17627. save_CFLAGS="$CFLAGS"
  17628. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17630. /* end confdefs.h. */
  17631. int x = 0;
  17632. int
  17633. main ()
  17634. {
  17635. ;
  17636. return 0;
  17637. }
  17638. _ACEOF
  17639. if ac_fn_c_try_compile "$LINENO"; then :
  17640. have_gcc_preferred_stack_boundary=yes
  17641. fi
  17642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17644. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17645. CFLAGS="$save_CFLAGS"
  17646. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17647. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17648. fi
  17649. }
  17650. CheckDeclarationAfterStatement()
  17651. {
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17653. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17654. have_gcc_declaration_after_statement=no
  17655. save_CFLAGS="$CFLAGS"
  17656. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17658. /* end confdefs.h. */
  17659. int x = 0;
  17660. int
  17661. main ()
  17662. {
  17663. ;
  17664. return 0;
  17665. }
  17666. _ACEOF
  17667. if ac_fn_c_try_compile "$LINENO"; then :
  17668. have_gcc_declaration_after_statement=yes
  17669. fi
  17670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17672. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17673. CFLAGS="$save_CFLAGS"
  17674. if test x$have_gcc_declaration_after_statement = xyes; then
  17675. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17676. fi
  17677. }
  17678. CheckWarnAll()
  17679. {
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17681. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17682. have_gcc_Wall=no
  17683. save_CFLAGS="$CFLAGS"
  17684. CFLAGS="$save_CFLAGS -Wall"
  17685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17686. /* end confdefs.h. */
  17687. int x = 0;
  17688. int
  17689. main ()
  17690. {
  17691. ;
  17692. return 0;
  17693. }
  17694. _ACEOF
  17695. if ac_fn_c_try_compile "$LINENO"; then :
  17696. have_gcc_Wall=yes
  17697. fi
  17698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17700. $as_echo "$have_gcc_Wall" >&6; }
  17701. CFLAGS="$save_CFLAGS"
  17702. if test x$have_gcc_Wall = xyes; then
  17703. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17705. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17706. need_gcc_Wno_multichar=no
  17707. case "$host" in
  17708. *-*-haiku*)
  17709. need_gcc_Wno_multichar=yes
  17710. ;;
  17711. esac
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17713. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17714. if test x$need_gcc_Wno_multichar = xyes; then
  17715. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17716. fi
  17717. fi
  17718. }
  17719. CheckWayland()
  17720. {
  17721. # Check whether --enable-video-wayland was given.
  17722. if test "${enable_video_wayland+set}" = set; then :
  17723. enableval=$enable_video_wayland;
  17724. else
  17725. enable_video_wayland=yes
  17726. fi
  17727. # Check whether --enable-video-wayland-qt-touch was given.
  17728. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17729. enableval=$enable_video_wayland_qt_touch;
  17730. else
  17731. enable_video_wayland_qt_touch=yes
  17732. fi
  17733. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17735. $as_echo_n "checking for Wayland support... " >&6; }
  17736. video_wayland=no
  17737. if test x$video_opengl_egl = xyes && \
  17738. test x$video_opengles_v2 = xyes; then
  17739. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17740. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17741. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17742. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17743. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17744. WAYLAND_SCANNER_CODE_MODE=private-code
  17745. else
  17746. WAYLAND_SCANNER_CODE_MODE=code
  17747. fi
  17748. video_wayland=yes
  17749. fi
  17750. fi
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17752. $as_echo "$video_wayland" >&6; }
  17753. if test x$video_wayland = xyes; then
  17754. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17755. if test x$enable_video_wayland_qt_touch = xyes; then
  17756. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17757. fi
  17758. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17759. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17760. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17761. # Check whether --enable-wayland-shared was given.
  17762. if test "${enable_wayland_shared+set}" = set; then :
  17763. enableval=$enable_wayland_shared;
  17764. else
  17765. enable_wayland_shared=maybe
  17766. fi
  17767. case "$host" in
  17768. *)
  17769. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17770. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17771. if test x$wayland_egl_lib = x; then
  17772. # This works in Ubuntu 13.10, maybe others
  17773. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17774. fi
  17775. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17776. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17777. ;;
  17778. esac
  17779. if test x$enable_wayland_shared = xmaybe; then
  17780. enable_wayland_shared=yes
  17781. fi
  17782. if test x$have_loadso != xyes && \
  17783. test x$enable_wayland_shared = xyes; then
  17784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17785. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17786. enable_wayland_shared=no
  17787. fi
  17788. if test x$have_loadso = xyes && \
  17789. test x$enable_wayland_shared = xyes && \
  17790. test x$wayland_client_lib != x && \
  17791. test x$wayland_egl_lib != x && \
  17792. test x$wayland_cursor_lib != x && \
  17793. test x$xkbcommon_lib != x; then
  17794. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17795. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17796. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17797. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17798. cat >>confdefs.h <<_ACEOF
  17799. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17800. _ACEOF
  17801. cat >>confdefs.h <<_ACEOF
  17802. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17803. _ACEOF
  17804. cat >>confdefs.h <<_ACEOF
  17805. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17806. _ACEOF
  17807. cat >>confdefs.h <<_ACEOF
  17808. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17809. _ACEOF
  17810. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17811. else
  17812. enable_wayland_shared=no
  17813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17814. SUMMARY_video="${SUMMARY_video} wayland"
  17815. fi
  17816. have_video=yes
  17817. # Check whether --enable-libdecor was given.
  17818. if test "${enable_libdecor+set}" = set; then :
  17819. enableval=$enable_libdecor;
  17820. else
  17821. enable_libdecor=yes
  17822. fi
  17823. if test x$enable_libdecor = xyes; then
  17824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17825. $as_echo_n "checking for libdecor support... " >&6; }
  17826. if $PKG_CONFIG --exists libdecor-0; then :
  17827. video_libdecor=yes
  17828. else
  17829. video_libdecor=no
  17830. fi
  17831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17832. $as_echo "$video_libdecor" >&6; }
  17833. if test x$video_libdecor = xyes; then
  17834. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17835. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17836. # Check whether --enable-libdecor-shared was given.
  17837. if test "${enable_libdecor_shared+set}" = set; then :
  17838. enableval=$enable_libdecor_shared;
  17839. else
  17840. enable_libdecor_shared=yes
  17841. fi
  17842. if test x$enable_wayland_shared != xyes; then
  17843. enable_libdecor_shared=no
  17844. fi
  17845. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17846. if test x$have_loadso != xyes && \
  17847. test x$enable_libdecor_shared = xyes; then
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17849. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17850. fi
  17851. if test x$have_loadso = xyes && \
  17852. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17853. echo "-- dynamic libdecor -> $decor_lib"
  17854. cat >>confdefs.h <<_ACEOF
  17855. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17856. _ACEOF
  17857. else
  17858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17859. fi
  17860. fi
  17861. fi
  17862. fi
  17863. fi
  17864. }
  17865. CheckNativeClient()
  17866. {
  17867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17868. /* end confdefs.h. */
  17869. #if !defined(__native_client__)
  17870. #error "NO NACL"
  17871. #endif
  17872. int
  17873. main ()
  17874. {
  17875. ;
  17876. return 0;
  17877. }
  17878. _ACEOF
  17879. if ac_fn_c_try_compile "$LINENO"; then :
  17880. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17881. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17882. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17883. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17884. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17885. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17886. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17887. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17888. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17889. SUMMARY_audio="${SUMMARY_audio} nacl"
  17890. have_audio=yes
  17891. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17892. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17893. have_video=yes
  17894. fi
  17895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17896. }
  17897. CheckRPI()
  17898. {
  17899. # Check whether --enable-video-rpi was given.
  17900. if test "${enable_video_rpi+set}" = set; then :
  17901. enableval=$enable_video_rpi;
  17902. else
  17903. enable_video_rpi=yes
  17904. fi
  17905. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17906. pkg_failed=no
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17908. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17909. if test -n "$RPI_CFLAGS"; then
  17910. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17911. elif test -n "$PKG_CONFIG"; then
  17912. if test -n "$PKG_CONFIG" && \
  17913. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17914. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17915. ac_status=$?
  17916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17917. test $ac_status = 0; }; then
  17918. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17919. test "x$?" != "x0" && pkg_failed=yes
  17920. else
  17921. pkg_failed=yes
  17922. fi
  17923. else
  17924. pkg_failed=untried
  17925. fi
  17926. if test -n "$RPI_LIBS"; then
  17927. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17928. elif test -n "$PKG_CONFIG"; then
  17929. if test -n "$PKG_CONFIG" && \
  17930. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17931. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17932. ac_status=$?
  17933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17934. test $ac_status = 0; }; then
  17935. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17936. test "x$?" != "x0" && pkg_failed=yes
  17937. else
  17938. pkg_failed=yes
  17939. fi
  17940. else
  17941. pkg_failed=untried
  17942. fi
  17943. if test $pkg_failed = yes; then
  17944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17945. $as_echo "no" >&6; }
  17946. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17947. _pkg_short_errors_supported=yes
  17948. else
  17949. _pkg_short_errors_supported=no
  17950. fi
  17951. if test $_pkg_short_errors_supported = yes; then
  17952. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17953. else
  17954. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17955. fi
  17956. # Put the nasty error message in config.log where it belongs
  17957. echo "$RPI_PKG_ERRORS" >&5
  17958. video_rpi=no
  17959. elif test $pkg_failed = untried; then
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17961. $as_echo "no" >&6; }
  17962. video_rpi=no
  17963. else
  17964. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17965. RPI_LIBS=$pkg_cv_RPI_LIBS
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17967. $as_echo "yes" >&6; }
  17968. video_rpi=yes
  17969. fi
  17970. if test x$video_rpi = xno; then
  17971. if test x$ARCH = xnetbsd; then
  17972. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17973. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17974. else
  17975. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17976. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17977. fi
  17978. fi
  17979. # Save the original compiler flags and libraries
  17980. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17981. # Add the Raspberry Pi compiler flags and libraries
  17982. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17984. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17985. have_video_rpi=no
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. #include <bcm_host.h>
  17989. #include <EGL/eglplatform.h>
  17990. int
  17991. main ()
  17992. {
  17993. EGL_DISPMANX_WINDOW_T window;
  17994. bcm_host_init();
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_link "$LINENO"; then :
  18000. have_video_rpi=yes
  18001. fi
  18002. rm -f core conftest.err conftest.$ac_objext \
  18003. conftest$ac_exeext conftest.$ac_ext
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18005. $as_echo "$have_video_rpi" >&6; }
  18006. # Restore the compiler flags and libraries
  18007. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18008. if test x$have_video_rpi = xyes; then
  18009. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18010. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18011. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18013. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18014. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18015. SUMMARY_video="${SUMMARY_video} rpi"
  18016. have_video=yes
  18017. fi
  18018. fi
  18019. }
  18020. CheckX11()
  18021. {
  18022. # Check whether --enable-video-x11 was given.
  18023. if test "${enable_video_x11+set}" = set; then :
  18024. enableval=$enable_video_x11;
  18025. else
  18026. enable_video_x11=yes
  18027. fi
  18028. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18029. case "$host" in
  18030. *-*-darwin*)
  18031. # This isn't necessary for X11, but fixes GLX detection
  18032. if test "x$x_includes" = xNONE && \
  18033. test "x$x_libraries" = xNONE && \
  18034. test -d /opt/X11/include && \
  18035. test -d /opt/X11/lib; then
  18036. x_includes="/opt/X11/include"
  18037. x_libraries="/opt/X11/lib"
  18038. fi
  18039. ;;
  18040. esac
  18041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18042. $as_echo_n "checking for X... " >&6; }
  18043. # Check whether --with-x was given.
  18044. if test "${with_x+set}" = set; then :
  18045. withval=$with_x;
  18046. fi
  18047. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18048. if test "x$with_x" = xno; then
  18049. # The user explicitly disabled X.
  18050. have_x=disabled
  18051. else
  18052. case $x_includes,$x_libraries in #(
  18053. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18054. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18055. $as_echo_n "(cached) " >&6
  18056. else
  18057. # One or both of the vars are not set, and there is no cached value.
  18058. ac_x_includes=no
  18059. ac_x_libraries=no
  18060. # Do we need to do anything special at all?
  18061. ac_save_LIBS=$LIBS
  18062. LIBS="-lX11 $LIBS"
  18063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18064. /* end confdefs.h. */
  18065. #include <X11/Xlib.h>
  18066. int
  18067. main ()
  18068. {
  18069. XrmInitialize ()
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_link "$LINENO"; then :
  18075. # We can compile and link X programs with no special options.
  18076. ac_x_includes=
  18077. ac_x_libraries=
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext \
  18080. conftest$ac_exeext conftest.$ac_ext
  18081. LIBS="$ac_save_LIBS"
  18082. # If that didn't work, only try xmkmf and filesystem searches
  18083. # for native compilation.
  18084. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18085. rm -f -r conftest.dir
  18086. if mkdir conftest.dir; then
  18087. cd conftest.dir
  18088. cat >Imakefile <<'_ACEOF'
  18089. incroot:
  18090. @echo incroot='${INCROOT}'
  18091. usrlibdir:
  18092. @echo usrlibdir='${USRLIBDIR}'
  18093. libdir:
  18094. @echo libdir='${LIBDIR}'
  18095. _ACEOF
  18096. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18097. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18098. for ac_var in incroot usrlibdir libdir; do
  18099. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18100. done
  18101. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18102. for ac_extension in a so sl dylib la dll; do
  18103. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18104. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18105. ac_im_usrlibdir=$ac_im_libdir; break
  18106. fi
  18107. done
  18108. # Screen out bogus values from the imake configuration. They are
  18109. # bogus both because they are the default anyway, and because
  18110. # using them would break gcc on systems where it needs fixed includes.
  18111. case $ac_im_incroot in
  18112. /usr/include) ac_x_includes= ;;
  18113. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18114. esac
  18115. case $ac_im_usrlibdir in
  18116. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18117. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18118. esac
  18119. fi
  18120. cd ..
  18121. rm -f -r conftest.dir
  18122. fi
  18123. # Standard set of common directories for X headers.
  18124. # Check X11 before X11Rn because it is often a symlink to the current release.
  18125. ac_x_header_dirs='
  18126. /usr/X11/include
  18127. /usr/X11R7/include
  18128. /usr/X11R6/include
  18129. /usr/X11R5/include
  18130. /usr/X11R4/include
  18131. /usr/include/X11
  18132. /usr/include/X11R7
  18133. /usr/include/X11R6
  18134. /usr/include/X11R5
  18135. /usr/include/X11R4
  18136. /usr/local/X11/include
  18137. /usr/local/X11R7/include
  18138. /usr/local/X11R6/include
  18139. /usr/local/X11R5/include
  18140. /usr/local/X11R4/include
  18141. /usr/local/include/X11
  18142. /usr/local/include/X11R7
  18143. /usr/local/include/X11R6
  18144. /usr/local/include/X11R5
  18145. /usr/local/include/X11R4
  18146. /opt/X11/include
  18147. /usr/X386/include
  18148. /usr/x386/include
  18149. /usr/XFree86/include/X11
  18150. /usr/include
  18151. /usr/local/include
  18152. /usr/unsupported/include
  18153. /usr/athena/include
  18154. /usr/local/x11r5/include
  18155. /usr/lpp/Xamples/include
  18156. /usr/openwin/include
  18157. /usr/openwin/share/include'
  18158. if test "$ac_x_includes" = no; then
  18159. # Guess where to find include files, by looking for Xlib.h.
  18160. # First, try using that file with no special directory specified.
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. #include <X11/Xlib.h>
  18164. _ACEOF
  18165. if ac_fn_c_try_cpp "$LINENO"; then :
  18166. # We can compile using X headers with no special include directory.
  18167. ac_x_includes=
  18168. else
  18169. for ac_dir in $ac_x_header_dirs; do
  18170. if test -r "$ac_dir/X11/Xlib.h"; then
  18171. ac_x_includes=$ac_dir
  18172. break
  18173. fi
  18174. done
  18175. fi
  18176. rm -f conftest.err conftest.i conftest.$ac_ext
  18177. fi # $ac_x_includes = no
  18178. if test "$ac_x_libraries" = no; then
  18179. # Check for the libraries.
  18180. # See if we find them without any special options.
  18181. # Don't add to $LIBS permanently.
  18182. ac_save_LIBS=$LIBS
  18183. LIBS="-lX11 $LIBS"
  18184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18185. /* end confdefs.h. */
  18186. #include <X11/Xlib.h>
  18187. int
  18188. main ()
  18189. {
  18190. XrmInitialize ()
  18191. ;
  18192. return 0;
  18193. }
  18194. _ACEOF
  18195. if ac_fn_c_try_link "$LINENO"; then :
  18196. LIBS=$ac_save_LIBS
  18197. # We can link X programs with no special library path.
  18198. ac_x_libraries=
  18199. else
  18200. LIBS=$ac_save_LIBS
  18201. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18202. do
  18203. # Don't even attempt the hair of trying to link an X program!
  18204. for ac_extension in a so sl dylib la dll; do
  18205. if test -r "$ac_dir/libX11.$ac_extension"; then
  18206. ac_x_libraries=$ac_dir
  18207. break 2
  18208. fi
  18209. done
  18210. done
  18211. fi
  18212. rm -f core conftest.err conftest.$ac_objext \
  18213. conftest$ac_exeext conftest.$ac_ext
  18214. fi # $ac_x_libraries = no
  18215. fi
  18216. # Record the results.
  18217. case $ac_x_includes,$ac_x_libraries in #(
  18218. no,* | *,no | *\'*) :
  18219. # Didn't find X, or a directory has "'" in its name.
  18220. ac_cv_have_x="have_x=no" ;; #(
  18221. *) :
  18222. # Record where we found X for the cache.
  18223. ac_cv_have_x="have_x=yes\
  18224. ac_x_includes='$ac_x_includes'\
  18225. ac_x_libraries='$ac_x_libraries'" ;;
  18226. esac
  18227. fi
  18228. ;; #(
  18229. *) have_x=yes;;
  18230. esac
  18231. eval "$ac_cv_have_x"
  18232. fi # $with_x != no
  18233. if test "$have_x" != yes; then
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18235. $as_echo "$have_x" >&6; }
  18236. no_x=yes
  18237. else
  18238. # If each of the values was on the command line, it overrides each guess.
  18239. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18240. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18241. # Update the cache value to reflect the command line values.
  18242. ac_cv_have_x="have_x=yes\
  18243. ac_x_includes='$x_includes'\
  18244. ac_x_libraries='$x_libraries'"
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18246. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18247. fi
  18248. if test "$no_x" = yes; then
  18249. # Not all programs may use this symbol, but it does not hurt to define it.
  18250. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18251. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18252. else
  18253. if test -n "$x_includes"; then
  18254. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18255. fi
  18256. # It would also be nice to do this for all -L options, not just this one.
  18257. if test -n "$x_libraries"; then
  18258. X_LIBS="$X_LIBS -L$x_libraries"
  18259. # For Solaris; some versions of Sun CC require a space after -R and
  18260. # others require no space. Words are not sufficient . . . .
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18262. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18263. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18264. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18265. ac_c_werror_flag=yes
  18266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18267. /* end confdefs.h. */
  18268. int
  18269. main ()
  18270. {
  18271. ;
  18272. return 0;
  18273. }
  18274. _ACEOF
  18275. if ac_fn_c_try_link "$LINENO"; then :
  18276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18277. $as_echo "no" >&6; }
  18278. X_LIBS="$X_LIBS -R$x_libraries"
  18279. else
  18280. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18282. /* end confdefs.h. */
  18283. int
  18284. main ()
  18285. {
  18286. ;
  18287. return 0;
  18288. }
  18289. _ACEOF
  18290. if ac_fn_c_try_link "$LINENO"; then :
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18292. $as_echo "yes" >&6; }
  18293. X_LIBS="$X_LIBS -R $x_libraries"
  18294. else
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18296. $as_echo "neither works" >&6; }
  18297. fi
  18298. rm -f core conftest.err conftest.$ac_objext \
  18299. conftest$ac_exeext conftest.$ac_ext
  18300. fi
  18301. rm -f core conftest.err conftest.$ac_objext \
  18302. conftest$ac_exeext conftest.$ac_ext
  18303. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18304. LIBS=$ac_xsave_LIBS
  18305. fi
  18306. # Check for system-dependent libraries X programs must link with.
  18307. # Do this before checking for the system-independent R6 libraries
  18308. # (-lICE), since we may need -lsocket or whatever for X linking.
  18309. if test "$ISC" = yes; then
  18310. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18311. else
  18312. # Martyn Johnson says this is needed for Ultrix, if the X
  18313. # libraries were built with DECnet support. And Karl Berry says
  18314. # the Alpha needs dnet_stub (dnet does not exist).
  18315. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  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 XOpenDisplay ();
  18325. int
  18326. main ()
  18327. {
  18328. return XOpenDisplay ();
  18329. ;
  18330. return 0;
  18331. }
  18332. _ACEOF
  18333. if ac_fn_c_try_link "$LINENO"; then :
  18334. else
  18335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18336. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18337. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18338. $as_echo_n "(cached) " >&6
  18339. else
  18340. ac_check_lib_save_LIBS=$LIBS
  18341. LIBS="-ldnet $LIBS"
  18342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18343. /* end confdefs.h. */
  18344. /* Override any GCC internal prototype to avoid an error.
  18345. Use char because int might match the return type of a GCC
  18346. builtin and then its argument prototype would still apply. */
  18347. #ifdef __cplusplus
  18348. extern "C"
  18349. #endif
  18350. char dnet_ntoa ();
  18351. int
  18352. main ()
  18353. {
  18354. return dnet_ntoa ();
  18355. ;
  18356. return 0;
  18357. }
  18358. _ACEOF
  18359. if ac_fn_c_try_link "$LINENO"; then :
  18360. ac_cv_lib_dnet_dnet_ntoa=yes
  18361. else
  18362. ac_cv_lib_dnet_dnet_ntoa=no
  18363. fi
  18364. rm -f core conftest.err conftest.$ac_objext \
  18365. conftest$ac_exeext conftest.$ac_ext
  18366. LIBS=$ac_check_lib_save_LIBS
  18367. fi
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18369. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18370. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18371. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18372. fi
  18373. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18375. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18376. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18377. $as_echo_n "(cached) " >&6
  18378. else
  18379. ac_check_lib_save_LIBS=$LIBS
  18380. LIBS="-ldnet_stub $LIBS"
  18381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18382. /* end confdefs.h. */
  18383. /* Override any GCC internal prototype to avoid an error.
  18384. Use char because int might match the return type of a GCC
  18385. builtin and then its argument prototype would still apply. */
  18386. #ifdef __cplusplus
  18387. extern "C"
  18388. #endif
  18389. char dnet_ntoa ();
  18390. int
  18391. main ()
  18392. {
  18393. return dnet_ntoa ();
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. if ac_fn_c_try_link "$LINENO"; then :
  18399. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18400. else
  18401. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18402. fi
  18403. rm -f core conftest.err conftest.$ac_objext \
  18404. conftest$ac_exeext conftest.$ac_ext
  18405. LIBS=$ac_check_lib_save_LIBS
  18406. fi
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18408. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18409. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18410. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18411. fi
  18412. fi
  18413. fi
  18414. rm -f core conftest.err conftest.$ac_objext \
  18415. conftest$ac_exeext conftest.$ac_ext
  18416. LIBS="$ac_xsave_LIBS"
  18417. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18418. # to get the SysV transport functions.
  18419. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18420. # needs -lnsl.
  18421. # The nsl library prevents programs from opening the X display
  18422. # on Irix 5.2, according to T.E. Dickey.
  18423. # The functions gethostbyname, getservbyname, and inet_addr are
  18424. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18425. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18426. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18427. fi
  18428. if test $ac_cv_func_gethostbyname = no; then
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18430. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18431. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18432. $as_echo_n "(cached) " >&6
  18433. else
  18434. ac_check_lib_save_LIBS=$LIBS
  18435. LIBS="-lnsl $LIBS"
  18436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18437. /* end confdefs.h. */
  18438. /* Override any GCC internal prototype to avoid an error.
  18439. Use char because int might match the return type of a GCC
  18440. builtin and then its argument prototype would still apply. */
  18441. #ifdef __cplusplus
  18442. extern "C"
  18443. #endif
  18444. char gethostbyname ();
  18445. int
  18446. main ()
  18447. {
  18448. return gethostbyname ();
  18449. ;
  18450. return 0;
  18451. }
  18452. _ACEOF
  18453. if ac_fn_c_try_link "$LINENO"; then :
  18454. ac_cv_lib_nsl_gethostbyname=yes
  18455. else
  18456. ac_cv_lib_nsl_gethostbyname=no
  18457. fi
  18458. rm -f core conftest.err conftest.$ac_objext \
  18459. conftest$ac_exeext conftest.$ac_ext
  18460. LIBS=$ac_check_lib_save_LIBS
  18461. fi
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18463. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18464. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18465. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18466. fi
  18467. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18469. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18470. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18471. $as_echo_n "(cached) " >&6
  18472. else
  18473. ac_check_lib_save_LIBS=$LIBS
  18474. LIBS="-lbsd $LIBS"
  18475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18476. /* end confdefs.h. */
  18477. /* Override any GCC internal prototype to avoid an error.
  18478. Use char because int might match the return type of a GCC
  18479. builtin and then its argument prototype would still apply. */
  18480. #ifdef __cplusplus
  18481. extern "C"
  18482. #endif
  18483. char gethostbyname ();
  18484. int
  18485. main ()
  18486. {
  18487. return gethostbyname ();
  18488. ;
  18489. return 0;
  18490. }
  18491. _ACEOF
  18492. if ac_fn_c_try_link "$LINENO"; then :
  18493. ac_cv_lib_bsd_gethostbyname=yes
  18494. else
  18495. ac_cv_lib_bsd_gethostbyname=no
  18496. fi
  18497. rm -f core conftest.err conftest.$ac_objext \
  18498. conftest$ac_exeext conftest.$ac_ext
  18499. LIBS=$ac_check_lib_save_LIBS
  18500. fi
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18502. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18503. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18504. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18505. fi
  18506. fi
  18507. fi
  18508. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18509. # socket/setsockopt and other routines are undefined under SCO ODT
  18510. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18511. # on later versions), says Simon Leinen: it contains gethostby*
  18512. # variants that don't use the name server (or something). -lsocket
  18513. # must be given before -lnsl if both are needed. We assume that
  18514. # if connect needs -lnsl, so does gethostbyname.
  18515. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18516. if test "x$ac_cv_func_connect" = xyes; then :
  18517. fi
  18518. if test $ac_cv_func_connect = no; then
  18519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18520. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18521. if ${ac_cv_lib_socket_connect+:} false; then :
  18522. $as_echo_n "(cached) " >&6
  18523. else
  18524. ac_check_lib_save_LIBS=$LIBS
  18525. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18527. /* end confdefs.h. */
  18528. /* Override any GCC internal prototype to avoid an error.
  18529. Use char because int might match the return type of a GCC
  18530. builtin and then its argument prototype would still apply. */
  18531. #ifdef __cplusplus
  18532. extern "C"
  18533. #endif
  18534. char connect ();
  18535. int
  18536. main ()
  18537. {
  18538. return connect ();
  18539. ;
  18540. return 0;
  18541. }
  18542. _ACEOF
  18543. if ac_fn_c_try_link "$LINENO"; then :
  18544. ac_cv_lib_socket_connect=yes
  18545. else
  18546. ac_cv_lib_socket_connect=no
  18547. fi
  18548. rm -f core conftest.err conftest.$ac_objext \
  18549. conftest$ac_exeext conftest.$ac_ext
  18550. LIBS=$ac_check_lib_save_LIBS
  18551. fi
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18553. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18554. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18555. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18556. fi
  18557. fi
  18558. # Guillermo Gomez says -lposix is necessary on A/UX.
  18559. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18560. if test "x$ac_cv_func_remove" = xyes; then :
  18561. fi
  18562. if test $ac_cv_func_remove = no; then
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18564. $as_echo_n "checking for remove in -lposix... " >&6; }
  18565. if ${ac_cv_lib_posix_remove+:} false; then :
  18566. $as_echo_n "(cached) " >&6
  18567. else
  18568. ac_check_lib_save_LIBS=$LIBS
  18569. LIBS="-lposix $LIBS"
  18570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18571. /* end confdefs.h. */
  18572. /* Override any GCC internal prototype to avoid an error.
  18573. Use char because int might match the return type of a GCC
  18574. builtin and then its argument prototype would still apply. */
  18575. #ifdef __cplusplus
  18576. extern "C"
  18577. #endif
  18578. char remove ();
  18579. int
  18580. main ()
  18581. {
  18582. return remove ();
  18583. ;
  18584. return 0;
  18585. }
  18586. _ACEOF
  18587. if ac_fn_c_try_link "$LINENO"; then :
  18588. ac_cv_lib_posix_remove=yes
  18589. else
  18590. ac_cv_lib_posix_remove=no
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext \
  18593. conftest$ac_exeext conftest.$ac_ext
  18594. LIBS=$ac_check_lib_save_LIBS
  18595. fi
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18597. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18598. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18599. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18600. fi
  18601. fi
  18602. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18603. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18604. if test "x$ac_cv_func_shmat" = xyes; then :
  18605. fi
  18606. if test $ac_cv_func_shmat = no; then
  18607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18608. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18609. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18610. $as_echo_n "(cached) " >&6
  18611. else
  18612. ac_check_lib_save_LIBS=$LIBS
  18613. LIBS="-lipc $LIBS"
  18614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18615. /* end confdefs.h. */
  18616. /* Override any GCC internal prototype to avoid an error.
  18617. Use char because int might match the return type of a GCC
  18618. builtin and then its argument prototype would still apply. */
  18619. #ifdef __cplusplus
  18620. extern "C"
  18621. #endif
  18622. char shmat ();
  18623. int
  18624. main ()
  18625. {
  18626. return shmat ();
  18627. ;
  18628. return 0;
  18629. }
  18630. _ACEOF
  18631. if ac_fn_c_try_link "$LINENO"; then :
  18632. ac_cv_lib_ipc_shmat=yes
  18633. else
  18634. ac_cv_lib_ipc_shmat=no
  18635. fi
  18636. rm -f core conftest.err conftest.$ac_objext \
  18637. conftest$ac_exeext conftest.$ac_ext
  18638. LIBS=$ac_check_lib_save_LIBS
  18639. fi
  18640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18641. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18642. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18643. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18644. fi
  18645. fi
  18646. fi
  18647. # Check for libraries that X11R6 Xt/Xaw programs need.
  18648. ac_save_LDFLAGS=$LDFLAGS
  18649. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18650. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18651. # check for ICE first), but we must link in the order -lSM -lICE or
  18652. # we get undefined symbols. So assume we have SM if we have ICE.
  18653. # These have to be linked with before -lX11, unlike the other
  18654. # libraries we check for below, so use a different variable.
  18655. # John Interrante, Karl Berry
  18656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18657. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18658. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18659. $as_echo_n "(cached) " >&6
  18660. else
  18661. ac_check_lib_save_LIBS=$LIBS
  18662. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18664. /* end confdefs.h. */
  18665. /* Override any GCC internal prototype to avoid an error.
  18666. Use char because int might match the return type of a GCC
  18667. builtin and then its argument prototype would still apply. */
  18668. #ifdef __cplusplus
  18669. extern "C"
  18670. #endif
  18671. char IceConnectionNumber ();
  18672. int
  18673. main ()
  18674. {
  18675. return IceConnectionNumber ();
  18676. ;
  18677. return 0;
  18678. }
  18679. _ACEOF
  18680. if ac_fn_c_try_link "$LINENO"; then :
  18681. ac_cv_lib_ICE_IceConnectionNumber=yes
  18682. else
  18683. ac_cv_lib_ICE_IceConnectionNumber=no
  18684. fi
  18685. rm -f core conftest.err conftest.$ac_objext \
  18686. conftest$ac_exeext conftest.$ac_ext
  18687. LIBS=$ac_check_lib_save_LIBS
  18688. fi
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18690. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18691. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18692. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18693. fi
  18694. LDFLAGS=$ac_save_LDFLAGS
  18695. fi
  18696. if test x$have_x = xyes; then
  18697. # Check whether --enable-x11-shared was given.
  18698. if test "${enable_x11_shared+set}" = set; then :
  18699. enableval=$enable_x11_shared;
  18700. else
  18701. enable_x11_shared=maybe
  18702. fi
  18703. case "$host" in
  18704. *-*-darwin*)
  18705. # Apple now puts this in /opt/X11
  18706. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18707. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18708. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18709. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18710. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18711. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18712. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18713. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18714. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18715. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18716. ;;
  18717. *-*-openbsd*)
  18718. x11_lib='libX11.so'
  18719. x11ext_lib='libXext.so'
  18720. xcursor_lib='libXcursor.so'
  18721. xinerama_lib='libXinerama.so'
  18722. xinput_lib='libXi.so'
  18723. xfixes_lib='libXfixes.so'
  18724. xrandr_lib='libXrandr.so'
  18725. xrender_lib='libXrender.so'
  18726. xss_lib='libXss.so'
  18727. xvidmode_lib='libXxf86vm.so'
  18728. ;;
  18729. *)
  18730. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18731. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18732. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18733. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18734. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18735. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18736. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18737. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18738. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18739. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18740. ;;
  18741. esac
  18742. if test x$ac_cv_func_shmat != xyes; then
  18743. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18744. fi
  18745. CFLAGS="$CFLAGS $X_CFLAGS"
  18746. LDFLAGS="$LDFLAGS $X_LIBS"
  18747. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18748. #include <X11/Xproto.h>
  18749. "
  18750. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18751. have_xext_h_hdr=yes
  18752. else
  18753. have_xext_h_hdr=no
  18754. fi
  18755. if test x$have_xext_h_hdr != xyes; then
  18756. as_fn_error $? "
  18757. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18758. " "$LINENO" 5
  18759. fi
  18760. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18761. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18762. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18763. # Needed so SDL applications can include SDL_syswm.h
  18764. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18765. if test x$enable_x11_shared = xmaybe; then
  18766. enable_x11_shared=yes
  18767. fi
  18768. if test x$have_loadso != xyes && \
  18769. test x$enable_x11_shared = xyes; then
  18770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18771. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18772. enable_x11_shared=no
  18773. fi
  18774. if test x$have_loadso = xyes && \
  18775. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18776. echo "-- dynamic libX11 -> $x11_lib"
  18777. echo "-- dynamic libX11ext -> $x11ext_lib"
  18778. cat >>confdefs.h <<_ACEOF
  18779. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18780. _ACEOF
  18781. cat >>confdefs.h <<_ACEOF
  18782. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18783. _ACEOF
  18784. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18785. else
  18786. enable_x11_shared=no
  18787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18788. SUMMARY_video="${SUMMARY_video} x11"
  18789. fi
  18790. have_video=yes
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18792. $as_echo_n "checking for XGenericEvent... " >&6; }
  18793. have_XGenericEvent=no
  18794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18795. /* end confdefs.h. */
  18796. #include <X11/Xlib.h>
  18797. int
  18798. main ()
  18799. {
  18800. Display *display;
  18801. XEvent event;
  18802. XGenericEventCookie *cookie = &event.xcookie;
  18803. XNextEvent(display, &event);
  18804. XGetEventData(display, cookie);
  18805. XFreeEventData(display, cookie);
  18806. ;
  18807. return 0;
  18808. }
  18809. _ACEOF
  18810. if ac_fn_c_try_compile "$LINENO"; then :
  18811. have_XGenericEvent=yes
  18812. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18813. fi
  18814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18816. $as_echo "$have_XGenericEvent" >&6; }
  18817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18818. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18819. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18820. $as_echo_n "(cached) " >&6
  18821. else
  18822. ac_check_lib_save_LIBS=$LIBS
  18823. LIBS="-lX11 $LIBS"
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. /* Override any GCC internal prototype to avoid an error.
  18827. Use char because int might match the return type of a GCC
  18828. builtin and then its argument prototype would still apply. */
  18829. #ifdef __cplusplus
  18830. extern "C"
  18831. #endif
  18832. char XkbKeycodeToKeysym ();
  18833. int
  18834. main ()
  18835. {
  18836. return XkbKeycodeToKeysym ();
  18837. ;
  18838. return 0;
  18839. }
  18840. _ACEOF
  18841. if ac_fn_c_try_link "$LINENO"; then :
  18842. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18843. else
  18844. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18845. fi
  18846. rm -f core conftest.err conftest.$ac_objext \
  18847. conftest$ac_exeext conftest.$ac_ext
  18848. LIBS=$ac_check_lib_save_LIBS
  18849. fi
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18851. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18852. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18853. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18854. fi
  18855. # Check whether --enable-video-x11-xcursor was given.
  18856. if test "${enable_video_x11_xcursor+set}" = set; then :
  18857. enableval=$enable_video_x11_xcursor;
  18858. else
  18859. enable_video_x11_xcursor=yes
  18860. fi
  18861. if test x$enable_video_x11_xcursor = xyes; then
  18862. definitely_enable_video_x11_xcursor=no
  18863. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18864. "
  18865. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18866. have_xcursor_h_hdr=yes
  18867. else
  18868. have_xcursor_h_hdr=no
  18869. fi
  18870. if test x$have_xcursor_h_hdr = xyes; then
  18871. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18872. echo "-- dynamic libXcursor -> $xcursor_lib"
  18873. cat >>confdefs.h <<_ACEOF
  18874. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18875. _ACEOF
  18876. definitely_enable_video_x11_xcursor=yes
  18877. else
  18878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18879. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18880. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18881. $as_echo_n "(cached) " >&6
  18882. else
  18883. ac_check_lib_save_LIBS=$LIBS
  18884. LIBS="-lXcursor $LIBS"
  18885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18886. /* end confdefs.h. */
  18887. /* Override any GCC internal prototype to avoid an error.
  18888. Use char because int might match the return type of a GCC
  18889. builtin and then its argument prototype would still apply. */
  18890. #ifdef __cplusplus
  18891. extern "C"
  18892. #endif
  18893. char XcursorImageCreate ();
  18894. int
  18895. main ()
  18896. {
  18897. return XcursorImageCreate ();
  18898. ;
  18899. return 0;
  18900. }
  18901. _ACEOF
  18902. if ac_fn_c_try_link "$LINENO"; then :
  18903. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18904. else
  18905. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18906. fi
  18907. rm -f core conftest.err conftest.$ac_objext \
  18908. conftest$ac_exeext conftest.$ac_ext
  18909. LIBS=$ac_check_lib_save_LIBS
  18910. fi
  18911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18912. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18913. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18914. have_xcursor_lib=yes
  18915. fi
  18916. if test x$have_xcursor_lib = xyes ; then
  18917. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18918. definitely_enable_video_x11_xcursor=yes
  18919. fi
  18920. fi
  18921. fi
  18922. fi
  18923. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18924. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18925. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18926. fi
  18927. # Check whether --enable-video-x11-xdbe was given.
  18928. if test "${enable_video_x11_xdbe+set}" = set; then :
  18929. enableval=$enable_video_x11_xdbe;
  18930. else
  18931. enable_video_x11_xdbe=yes
  18932. fi
  18933. if test x$enable_video_x11_xdbe = xyes; then
  18934. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18935. "
  18936. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18937. have_dbe_h_hdr=yes
  18938. else
  18939. have_dbe_h_hdr=no
  18940. fi
  18941. if test x$have_dbe_h_hdr = xyes; then
  18942. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18943. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18944. fi
  18945. fi
  18946. # Check whether --enable-video-x11-xinerama was given.
  18947. if test "${enable_video_x11_xinerama+set}" = set; then :
  18948. enableval=$enable_video_x11_xinerama;
  18949. else
  18950. enable_video_x11_xinerama=yes
  18951. fi
  18952. if test x$enable_video_x11_xinerama = xyes; then
  18953. definitely_enable_video_x11_xinerama=no
  18954. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18955. "
  18956. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18957. have_xinerama_h_hdr=yes
  18958. else
  18959. have_xinerama_h_hdr=no
  18960. fi
  18961. if test x$have_xinerama_h_hdr = xyes; then
  18962. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18963. echo "-- dynamic libXinerama -> $xinerama_lib"
  18964. cat >>confdefs.h <<_ACEOF
  18965. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18966. _ACEOF
  18967. definitely_enable_video_x11_xinerama=yes
  18968. else
  18969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18970. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18971. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18972. $as_echo_n "(cached) " >&6
  18973. else
  18974. ac_check_lib_save_LIBS=$LIBS
  18975. LIBS="-lXinerama $LIBS"
  18976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18977. /* end confdefs.h. */
  18978. /* Override any GCC internal prototype to avoid an error.
  18979. Use char because int might match the return type of a GCC
  18980. builtin and then its argument prototype would still apply. */
  18981. #ifdef __cplusplus
  18982. extern "C"
  18983. #endif
  18984. char XineramaQueryExtension ();
  18985. int
  18986. main ()
  18987. {
  18988. return XineramaQueryExtension ();
  18989. ;
  18990. return 0;
  18991. }
  18992. _ACEOF
  18993. if ac_fn_c_try_link "$LINENO"; then :
  18994. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18995. else
  18996. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18997. fi
  18998. rm -f core conftest.err conftest.$ac_objext \
  18999. conftest$ac_exeext conftest.$ac_ext
  19000. LIBS=$ac_check_lib_save_LIBS
  19001. fi
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  19003. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  19004. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  19005. have_xinerama_lib=yes
  19006. fi
  19007. if test x$have_xinerama_lib = xyes ; then
  19008. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  19009. definitely_enable_video_x11_xinerama=yes
  19010. fi
  19011. fi
  19012. fi
  19013. fi
  19014. if test x$definitely_enable_video_x11_xinerama = xyes; then
  19015. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  19016. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  19017. fi
  19018. # Check whether --enable-video-x11-xinput was given.
  19019. if test "${enable_video_x11_xinput+set}" = set; then :
  19020. enableval=$enable_video_x11_xinput;
  19021. else
  19022. enable_video_x11_xinput=yes
  19023. fi
  19024. if test x$enable_video_x11_xinput = xyes; then
  19025. definitely_enable_video_x11_xinput=no
  19026. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19027. "
  19028. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19029. have_xinput_h_hdr=yes
  19030. else
  19031. have_xinput_h_hdr=no
  19032. fi
  19033. if test x$have_xinput_h_hdr = xyes; then
  19034. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19035. echo "-- dynamic libXi -> $xinput_lib"
  19036. cat >>confdefs.h <<_ACEOF
  19037. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19038. _ACEOF
  19039. definitely_enable_video_x11_xinput=yes
  19040. else
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19042. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19043. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19044. $as_echo_n "(cached) " >&6
  19045. else
  19046. ac_check_lib_save_LIBS=$LIBS
  19047. LIBS="-lXi $LIBS"
  19048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19049. /* end confdefs.h. */
  19050. /* Override any GCC internal prototype to avoid an error.
  19051. Use char because int might match the return type of a GCC
  19052. builtin and then its argument prototype would still apply. */
  19053. #ifdef __cplusplus
  19054. extern "C"
  19055. #endif
  19056. char XOpenDevice ();
  19057. int
  19058. main ()
  19059. {
  19060. return XOpenDevice ();
  19061. ;
  19062. return 0;
  19063. }
  19064. _ACEOF
  19065. if ac_fn_c_try_link "$LINENO"; then :
  19066. ac_cv_lib_Xi_XOpenDevice=yes
  19067. else
  19068. ac_cv_lib_Xi_XOpenDevice=no
  19069. fi
  19070. rm -f core conftest.err conftest.$ac_objext \
  19071. conftest$ac_exeext conftest.$ac_ext
  19072. LIBS=$ac_check_lib_save_LIBS
  19073. fi
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19075. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19076. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19077. have_xinput_lib=yes
  19078. fi
  19079. if test x$have_xinput_lib = xyes ; then
  19080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19081. definitely_enable_video_x11_xinput=yes
  19082. fi
  19083. fi
  19084. fi
  19085. fi
  19086. if test x$definitely_enable_video_x11_xinput = xyes; then
  19087. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19088. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19090. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19091. have_xinput2_multitouch=no
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. #include <X11/Xlib.h>
  19095. #include <X11/Xproto.h>
  19096. #include <X11/extensions/XInput2.h>
  19097. int
  19098. main ()
  19099. {
  19100. int event_type = XI_TouchBegin;
  19101. XITouchClassInfo *t;
  19102. ;
  19103. return 0;
  19104. }
  19105. _ACEOF
  19106. if ac_fn_c_try_compile "$LINENO"; then :
  19107. have_xinput2_multitouch=yes
  19108. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19109. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19110. fi
  19111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19113. $as_echo "$have_xinput2_multitouch" >&6; }
  19114. fi
  19115. # Check whether --enable-video-x11-xfixes was given.
  19116. if test "${enable_video_x11_xfixes+set}" = set; then :
  19117. enableval=$enable_video_x11_xfixes;
  19118. else
  19119. enable_video_x11_xfixes=yes
  19120. fi
  19121. if test x$enable_video_x11_xfixes = xyes; then
  19122. definitely_enable_video_x11_xfixes=no
  19123. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19125. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19127. /* end confdefs.h. */
  19128. #include <X11/Xlib.h>
  19129. #include <X11/Xproto.h>
  19130. #include <X11/extensions/XInput2.h>
  19131. #include <X11/extensions/Xfixes.h>
  19132. int
  19133. main ()
  19134. {
  19135. BarrierEventID b;
  19136. ;
  19137. return 0;
  19138. }
  19139. _ACEOF
  19140. if ac_fn_c_try_compile "$LINENO"; then :
  19141. have_xfixes_h_hdr=yes
  19142. else
  19143. have_xfixes_h_hdr=no
  19144. fi
  19145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19147. $as_echo "$have_xfixes_h_hdr" >&6; }
  19148. if test x$have_xfixes_h_hdr = xyes; then
  19149. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19150. echo "-- dynamic libXfixes -> $xfixes_lib"
  19151. cat >>confdefs.h <<_ACEOF
  19152. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19153. _ACEOF
  19154. definitely_enable_video_x11_xfixes=yes
  19155. else
  19156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19157. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19158. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19159. $as_echo_n "(cached) " >&6
  19160. else
  19161. ac_check_lib_save_LIBS=$LIBS
  19162. LIBS="-lXfixes $LIBS"
  19163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19164. /* end confdefs.h. */
  19165. /* Override any GCC internal prototype to avoid an error.
  19166. Use char because int might match the return type of a GCC
  19167. builtin and then its argument prototype would still apply. */
  19168. #ifdef __cplusplus
  19169. extern "C"
  19170. #endif
  19171. char XFixesCreatePointerBarrier ();
  19172. int
  19173. main ()
  19174. {
  19175. return XFixesCreatePointerBarrier ();
  19176. ;
  19177. return 0;
  19178. }
  19179. _ACEOF
  19180. if ac_fn_c_try_link "$LINENO"; then :
  19181. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19182. else
  19183. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19184. fi
  19185. rm -f core conftest.err conftest.$ac_objext \
  19186. conftest$ac_exeext conftest.$ac_ext
  19187. LIBS=$ac_check_lib_save_LIBS
  19188. fi
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19190. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19191. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19192. have_xfixes_lib=yes
  19193. fi
  19194. if test x$have_xfixes_lib = xyes ; then
  19195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19196. definitely_enable_video_x11_xfixes=yes
  19197. fi
  19198. fi
  19199. fi
  19200. fi
  19201. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19202. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19203. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19204. fi
  19205. # Check whether --enable-video-x11-xrandr was given.
  19206. if test "${enable_video_x11_xrandr+set}" = set; then :
  19207. enableval=$enable_video_x11_xrandr;
  19208. else
  19209. enable_video_x11_xrandr=yes
  19210. fi
  19211. if test x$enable_video_x11_xrandr = xyes; then
  19212. definitely_enable_video_x11_xrandr=no
  19213. have_xrandr_h_hdr=no
  19214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19215. /* end confdefs.h. */
  19216. #include <X11/Xlib.h>
  19217. #include <X11/extensions/Xrandr.h>
  19218. int
  19219. main ()
  19220. {
  19221. XRRScreenResources *res = NULL;
  19222. ;
  19223. return 0;
  19224. }
  19225. _ACEOF
  19226. if ac_fn_c_try_compile "$LINENO"; then :
  19227. have_xrandr_h_hdr=yes
  19228. fi
  19229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19230. if test x$have_xrandr_h_hdr = xyes; then
  19231. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19232. echo "-- dynamic libXrandr -> $xrandr_lib"
  19233. cat >>confdefs.h <<_ACEOF
  19234. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19235. _ACEOF
  19236. definitely_enable_video_x11_xrandr=yes
  19237. else
  19238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19239. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19240. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19241. $as_echo_n "(cached) " >&6
  19242. else
  19243. ac_check_lib_save_LIBS=$LIBS
  19244. LIBS="-lXrandr $LIBS"
  19245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19246. /* end confdefs.h. */
  19247. /* Override any GCC internal prototype to avoid an error.
  19248. Use char because int might match the return type of a GCC
  19249. builtin and then its argument prototype would still apply. */
  19250. #ifdef __cplusplus
  19251. extern "C"
  19252. #endif
  19253. char XRRQueryExtension ();
  19254. int
  19255. main ()
  19256. {
  19257. return XRRQueryExtension ();
  19258. ;
  19259. return 0;
  19260. }
  19261. _ACEOF
  19262. if ac_fn_c_try_link "$LINENO"; then :
  19263. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19264. else
  19265. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19266. fi
  19267. rm -f core conftest.err conftest.$ac_objext \
  19268. conftest$ac_exeext conftest.$ac_ext
  19269. LIBS=$ac_check_lib_save_LIBS
  19270. fi
  19271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19272. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19273. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19274. have_xrandr_lib=yes
  19275. fi
  19276. if test x$have_xrandr_lib = xyes ; then
  19277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19278. definitely_enable_video_x11_xrandr=yes
  19279. fi
  19280. fi
  19281. fi
  19282. fi
  19283. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19284. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19285. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19286. fi
  19287. # Check whether --enable-video-x11-scrnsaver was given.
  19288. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19289. enableval=$enable_video_x11_scrnsaver;
  19290. else
  19291. enable_video_x11_scrnsaver=yes
  19292. fi
  19293. if test x$enable_video_x11_scrnsaver = xyes; then
  19294. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19295. "
  19296. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19297. have_scrnsaver_h_hdr=yes
  19298. else
  19299. have_scrnsaver_h_hdr=no
  19300. fi
  19301. if test x$have_scrnsaver_h_hdr = xyes; then
  19302. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19303. echo "-- dynamic libXss -> $xss_lib"
  19304. cat >>confdefs.h <<_ACEOF
  19305. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19306. _ACEOF
  19307. definitely_enable_video_x11_scrnsaver=yes
  19308. else
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19310. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19311. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19312. $as_echo_n "(cached) " >&6
  19313. else
  19314. ac_check_lib_save_LIBS=$LIBS
  19315. LIBS="-lXss $LIBS"
  19316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19317. /* end confdefs.h. */
  19318. /* Override any GCC internal prototype to avoid an error.
  19319. Use char because int might match the return type of a GCC
  19320. builtin and then its argument prototype would still apply. */
  19321. #ifdef __cplusplus
  19322. extern "C"
  19323. #endif
  19324. char XScreenSaverSuspend ();
  19325. int
  19326. main ()
  19327. {
  19328. return XScreenSaverSuspend ();
  19329. ;
  19330. return 0;
  19331. }
  19332. _ACEOF
  19333. if ac_fn_c_try_link "$LINENO"; then :
  19334. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19335. else
  19336. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19337. fi
  19338. rm -f core conftest.err conftest.$ac_objext \
  19339. conftest$ac_exeext conftest.$ac_ext
  19340. LIBS=$ac_check_lib_save_LIBS
  19341. fi
  19342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19343. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19344. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19345. have_xss_lib=yes
  19346. fi
  19347. if test x$have_xss_lib = xyes ; then
  19348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19349. definitely_enable_video_x11_scrnsaver=yes
  19350. fi
  19351. fi
  19352. fi
  19353. fi
  19354. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19355. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19356. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19357. fi
  19358. # Check whether --enable-video-x11-xshape was given.
  19359. if test "${enable_video_x11_xshape+set}" = set; then :
  19360. enableval=$enable_video_x11_xshape;
  19361. else
  19362. enable_video_x11_xshape=yes
  19363. fi
  19364. if test x$enable_video_x11_xshape = xyes; then
  19365. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19366. "
  19367. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19368. have_shape_h_hdr=yes
  19369. else
  19370. have_shape_h_hdr=no
  19371. fi
  19372. if test x$have_shape_h_hdr = xyes; then
  19373. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19374. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19375. fi
  19376. fi
  19377. # Check whether --enable-video-x11-vm was given.
  19378. if test "${enable_video_x11_vm+set}" = set; then :
  19379. enableval=$enable_video_x11_vm;
  19380. else
  19381. enable_video_x11_vm=yes
  19382. fi
  19383. if test x$enable_video_x11_vm = xyes; then
  19384. definitely_enable_video_x11_vm=no
  19385. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19386. "
  19387. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19388. have_vm_h_hdr=yes
  19389. else
  19390. have_vm_h_hdr=no
  19391. fi
  19392. if test x$have_vm_h_hdr = xyes; then
  19393. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19394. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19395. cat >>confdefs.h <<_ACEOF
  19396. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19397. _ACEOF
  19398. definitely_enable_video_x11_vm=yes
  19399. else
  19400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19401. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19402. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19403. $as_echo_n "(cached) " >&6
  19404. else
  19405. ac_check_lib_save_LIBS=$LIBS
  19406. LIBS="-lXxf86vm $LIBS"
  19407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19408. /* end confdefs.h. */
  19409. /* Override any GCC internal prototype to avoid an error.
  19410. Use char because int might match the return type of a GCC
  19411. builtin and then its argument prototype would still apply. */
  19412. #ifdef __cplusplus
  19413. extern "C"
  19414. #endif
  19415. char XF86VidModeQueryVersion ();
  19416. int
  19417. main ()
  19418. {
  19419. return XF86VidModeQueryVersion ();
  19420. ;
  19421. return 0;
  19422. }
  19423. _ACEOF
  19424. if ac_fn_c_try_link "$LINENO"; then :
  19425. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19426. else
  19427. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19428. fi
  19429. rm -f core conftest.err conftest.$ac_objext \
  19430. conftest$ac_exeext conftest.$ac_ext
  19431. LIBS=$ac_check_lib_save_LIBS
  19432. fi
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19434. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19435. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19436. have_vm_lib=yes
  19437. fi
  19438. if test x$have_vm_lib = xyes ; then
  19439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19440. definitely_enable_video_x11_vm=yes
  19441. fi
  19442. fi
  19443. fi
  19444. fi
  19445. if test x$definitely_enable_video_x11_vm = xyes; then
  19446. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19447. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19448. fi
  19449. fi
  19450. fi
  19451. if test x$have_x != xyes; then
  19452. # Prevent Mesa from including X11 headers
  19453. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19454. fi
  19455. }
  19456. CheckVivanteVideo()
  19457. {
  19458. # Check whether --enable-video-vivante was given.
  19459. if test "${enable_video_vivante+set}" = set; then :
  19460. enableval=$enable_video_vivante;
  19461. else
  19462. enable_video_vivante=yes
  19463. fi
  19464. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19466. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19467. have_vivante_vdk=no
  19468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19469. /* end confdefs.h. */
  19470. #define LINUX
  19471. #define EGL_API_FB
  19472. #include <gc_vdk.h>
  19473. int
  19474. main ()
  19475. {
  19476. ;
  19477. return 0;
  19478. }
  19479. _ACEOF
  19480. if ac_fn_c_try_compile "$LINENO"; then :
  19481. have_vivante_vdk=yes
  19482. fi
  19483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19485. $as_echo "$have_vivante_vdk" >&6; }
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19487. $as_echo_n "checking for Vivante FB API... " >&6; }
  19488. have_vivante_egl=no
  19489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19490. /* end confdefs.h. */
  19491. #define LINUX
  19492. #define EGL_API_FB
  19493. #include <EGL/eglvivante.h>
  19494. int
  19495. main ()
  19496. {
  19497. ;
  19498. return 0;
  19499. }
  19500. _ACEOF
  19501. if ac_fn_c_try_compile "$LINENO"; then :
  19502. have_vivante_egl=yes
  19503. fi
  19504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19506. $as_echo "$have_vivante_egl" >&6; }
  19507. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19508. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19509. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19510. if test x$have_vivante_vdk = xyes; then
  19511. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19513. fi
  19514. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19515. SUMMARY_video="${SUMMARY_video} vivante"
  19516. have_video=yes
  19517. fi
  19518. fi
  19519. }
  19520. CheckHaikuVideo()
  19521. {
  19522. if test x$enable_video = xyes; then
  19523. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19524. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19525. have_video=yes
  19526. SUMMARY_video="${SUMMARY_video} haiku"
  19527. fi
  19528. }
  19529. CheckCOCOA()
  19530. {
  19531. # Check whether --enable-video-cocoa was given.
  19532. if test "${enable_video_cocoa+set}" = set; then :
  19533. enableval=$enable_video_cocoa;
  19534. else
  19535. enable_video_cocoa=yes
  19536. fi
  19537. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19538. save_CFLAGS="$CFLAGS"
  19539. CFLAGS="$CFLAGS -x objective-c"
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19541. $as_echo_n "checking for Cocoa framework... " >&6; }
  19542. have_cocoa=no
  19543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19544. /* end confdefs.h. */
  19545. #import <Cocoa/Cocoa.h>
  19546. int
  19547. main ()
  19548. {
  19549. ;
  19550. return 0;
  19551. }
  19552. _ACEOF
  19553. if ac_fn_c_try_compile "$LINENO"; then :
  19554. have_cocoa=yes
  19555. fi
  19556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19558. $as_echo "$have_cocoa" >&6; }
  19559. CFLAGS="$save_CFLAGS"
  19560. if test x$have_cocoa = xyes; then
  19561. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19562. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19563. SUMMARY_video="${SUMMARY_video} cocoa"
  19564. have_video=yes
  19565. fi
  19566. fi
  19567. }
  19568. CheckMETAL()
  19569. {
  19570. # Check whether --enable-video-metal was given.
  19571. if test "${enable_video_metal+set}" = set; then :
  19572. enableval=$enable_video_metal;
  19573. else
  19574. enable_video_metal=yes
  19575. fi
  19576. # Check whether --enable-render-metal was given.
  19577. if test "${enable_render_metal+set}" = set; then :
  19578. enableval=$enable_render_metal;
  19579. else
  19580. enable_render_metal=yes
  19581. fi
  19582. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19583. save_CFLAGS="$CFLAGS"
  19584. CFLAGS="$CFLAGS -x objective-c"
  19585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19586. $as_echo_n "checking for Metal framework... " >&6; }
  19587. have_metal=no
  19588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19589. /* end confdefs.h. */
  19590. #import <Cocoa/Cocoa.h>
  19591. #import <Metal/Metal.h>
  19592. #import <QuartzCore/CAMetalLayer.h>
  19593. #if TARGET_CPU_X86
  19594. #error Metal doesn't work on this configuration
  19595. #endif
  19596. int
  19597. main ()
  19598. {
  19599. ;
  19600. return 0;
  19601. }
  19602. _ACEOF
  19603. if ac_fn_c_try_compile "$LINENO"; then :
  19604. have_metal=yes
  19605. fi
  19606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19607. CFLAGS="$save_CFLAGS"
  19608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19609. $as_echo "$have_metal" >&6; }
  19610. if test x$have_metal = xyes; then
  19611. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19612. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19613. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19614. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19615. fi
  19616. SUMMARY_video="${SUMMARY_video} metal"
  19617. else
  19618. enable_video_metal=no
  19619. enable_render_metal=no
  19620. fi
  19621. fi
  19622. }
  19623. CheckDirectFB()
  19624. {
  19625. # Check whether --enable-video-directfb was given.
  19626. if test "${enable_video_directfb+set}" = set; then :
  19627. enableval=$enable_video_directfb;
  19628. else
  19629. enable_video_directfb=no
  19630. fi
  19631. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19632. pkg_failed=no
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19634. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19635. if test -n "$DIRECTFB_CFLAGS"; then
  19636. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19637. elif test -n "$PKG_CONFIG"; then
  19638. if test -n "$PKG_CONFIG" && \
  19639. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19640. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19641. ac_status=$?
  19642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19643. test $ac_status = 0; }; then
  19644. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19645. test "x$?" != "x0" && pkg_failed=yes
  19646. else
  19647. pkg_failed=yes
  19648. fi
  19649. else
  19650. pkg_failed=untried
  19651. fi
  19652. if test -n "$DIRECTFB_LIBS"; then
  19653. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19654. elif test -n "$PKG_CONFIG"; then
  19655. if test -n "$PKG_CONFIG" && \
  19656. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19657. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19658. ac_status=$?
  19659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19660. test $ac_status = 0; }; then
  19661. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19662. test "x$?" != "x0" && pkg_failed=yes
  19663. else
  19664. pkg_failed=yes
  19665. fi
  19666. else
  19667. pkg_failed=untried
  19668. fi
  19669. if test $pkg_failed = yes; then
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19671. $as_echo "no" >&6; }
  19672. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19673. _pkg_short_errors_supported=yes
  19674. else
  19675. _pkg_short_errors_supported=no
  19676. fi
  19677. if test $_pkg_short_errors_supported = yes; then
  19678. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19679. else
  19680. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19681. fi
  19682. # Put the nasty error message in config.log where it belongs
  19683. echo "$DIRECTFB_PKG_ERRORS" >&5
  19684. video_directfb=no
  19685. elif test $pkg_failed = untried; then
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19687. $as_echo "no" >&6; }
  19688. video_directfb=no
  19689. else
  19690. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19691. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19693. $as_echo "yes" >&6; }
  19694. video_directfb=yes
  19695. fi
  19696. if test x$video_directfb = xyes; then
  19697. # SuSE 11.1 installs directfb-config without directfb-devel
  19698. save_CPPFLAGS="$CPPFLAGS"
  19699. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19700. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19701. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19702. have_directfb_hdr=yes
  19703. else
  19704. have_directfb_hdr=no
  19705. fi
  19706. CPPFLAGS="$save_CPPFLAGS"
  19707. video_directfb=$have_directfb_hdr
  19708. fi
  19709. if test x$video_directfb = xyes; then
  19710. # Check whether --enable-directfb-shared was given.
  19711. if test "${enable_directfb_shared+set}" = set; then :
  19712. enableval=$enable_directfb_shared;
  19713. else
  19714. enable_directfb_shared=yes
  19715. fi
  19716. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19717. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19718. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19719. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19720. directfb_shared=no
  19721. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19722. if test x$have_loadso != xyes && \
  19723. test x$enable_directfb_shared = xyes; then
  19724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19725. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19726. fi
  19727. if test x$have_loadso = xyes && \
  19728. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19729. directfb_shared=yes
  19730. echo "-- dynamic libdirectfb -> $directfb_lib"
  19731. cat >>confdefs.h <<_ACEOF
  19732. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19733. _ACEOF
  19734. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19735. else
  19736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19737. SUMMARY_video="${SUMMARY_video} directfb"
  19738. fi
  19739. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19740. have_video=yes
  19741. fi
  19742. fi
  19743. }
  19744. CheckKMSDRM()
  19745. {
  19746. # Check whether --enable-video-kmsdrm was given.
  19747. if test "${enable_video_kmsdrm+set}" = set; then :
  19748. enableval=$enable_video_kmsdrm;
  19749. else
  19750. enable_video_kmsdrm=yes
  19751. fi
  19752. if test x$enable_video = xyes && \
  19753. test x$enable_video_kmsdrm = xyes && \
  19754. test x$video_opengl_egl = xyes; then
  19755. video_kmsdrm=no
  19756. pkg_failed=no
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19758. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19759. if test -n "$LIBDRM_CFLAGS"; then
  19760. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19761. elif test -n "$PKG_CONFIG"; then
  19762. if test -n "$PKG_CONFIG" && \
  19763. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19764. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19765. ac_status=$?
  19766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19767. test $ac_status = 0; }; then
  19768. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19769. test "x$?" != "x0" && pkg_failed=yes
  19770. else
  19771. pkg_failed=yes
  19772. fi
  19773. else
  19774. pkg_failed=untried
  19775. fi
  19776. if test -n "$LIBDRM_LIBS"; then
  19777. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19778. elif test -n "$PKG_CONFIG"; then
  19779. if test -n "$PKG_CONFIG" && \
  19780. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19781. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19782. ac_status=$?
  19783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19784. test $ac_status = 0; }; then
  19785. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19786. test "x$?" != "x0" && pkg_failed=yes
  19787. else
  19788. pkg_failed=yes
  19789. fi
  19790. else
  19791. pkg_failed=untried
  19792. fi
  19793. if test $pkg_failed = yes; then
  19794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19795. $as_echo "no" >&6; }
  19796. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19797. _pkg_short_errors_supported=yes
  19798. else
  19799. _pkg_short_errors_supported=no
  19800. fi
  19801. if test $_pkg_short_errors_supported = yes; then
  19802. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19803. else
  19804. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19805. fi
  19806. # Put the nasty error message in config.log where it belongs
  19807. echo "$LIBDRM_PKG_ERRORS" >&5
  19808. libdrm_avail=no
  19809. elif test $pkg_failed = untried; then
  19810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19811. $as_echo "no" >&6; }
  19812. libdrm_avail=no
  19813. else
  19814. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19815. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19817. $as_echo "yes" >&6; }
  19818. libdrm_avail=yes
  19819. fi
  19820. pkg_failed=no
  19821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19822. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19823. if test -n "$LIBGBM_CFLAGS"; then
  19824. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19825. elif test -n "$PKG_CONFIG"; then
  19826. if test -n "$PKG_CONFIG" && \
  19827. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19828. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19829. ac_status=$?
  19830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19831. test $ac_status = 0; }; then
  19832. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19833. test "x$?" != "x0" && pkg_failed=yes
  19834. else
  19835. pkg_failed=yes
  19836. fi
  19837. else
  19838. pkg_failed=untried
  19839. fi
  19840. if test -n "$LIBGBM_LIBS"; then
  19841. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19842. elif test -n "$PKG_CONFIG"; then
  19843. if test -n "$PKG_CONFIG" && \
  19844. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19845. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19846. ac_status=$?
  19847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19848. test $ac_status = 0; }; then
  19849. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19850. test "x$?" != "x0" && pkg_failed=yes
  19851. else
  19852. pkg_failed=yes
  19853. fi
  19854. else
  19855. pkg_failed=untried
  19856. fi
  19857. if test $pkg_failed = yes; then
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19859. $as_echo "no" >&6; }
  19860. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19861. _pkg_short_errors_supported=yes
  19862. else
  19863. _pkg_short_errors_supported=no
  19864. fi
  19865. if test $_pkg_short_errors_supported = yes; then
  19866. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19867. else
  19868. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19869. fi
  19870. # Put the nasty error message in config.log where it belongs
  19871. echo "$LIBGBM_PKG_ERRORS" >&5
  19872. libgbm_avail=no
  19873. elif test $pkg_failed = untried; then
  19874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19875. $as_echo "no" >&6; }
  19876. libgbm_avail=no
  19877. else
  19878. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19879. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19881. $as_echo "yes" >&6; }
  19882. libgbm_avail=yes
  19883. fi
  19884. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19885. video_kmsdrm=yes
  19886. fi
  19887. if test x$video_kmsdrm = xyes; then
  19888. # Check whether --enable-kmsdrm-shared was given.
  19889. if test "${enable_kmsdrm_shared+set}" = set; then :
  19890. enableval=$enable_kmsdrm_shared;
  19891. else
  19892. enable_kmsdrm_shared=yes
  19893. fi
  19894. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19895. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19896. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19898. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19899. kmsdrm_shared=no
  19900. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19901. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19902. if test x$have_loadso != xyes && \
  19903. test x$enable_kmsdrm_shared = xyes; then
  19904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19905. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19906. fi
  19907. if test x$have_loadso = xyes && \
  19908. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19909. kmsdrm_shared=yes
  19910. cat >>confdefs.h <<_ACEOF
  19911. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19912. _ACEOF
  19913. cat >>confdefs.h <<_ACEOF
  19914. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19915. _ACEOF
  19916. cat >>confdefs.h <<_ACEOF
  19917. #define HAVE_KMSDRM_SHARED "TRUE"
  19918. _ACEOF
  19919. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19920. else
  19921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19922. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19923. fi
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19925. $as_echo "$kmsdrm_shared" >&6; }
  19926. if test x$kmsdrm_shared = xyes; then
  19927. echo "-- dynamic libdrm -> $drm_lib"
  19928. echo "-- dynamic libgbm -> $gbm_lib"
  19929. fi
  19930. have_video=yes
  19931. fi
  19932. fi
  19933. }
  19934. CheckDummyVideo()
  19935. {
  19936. # Check whether --enable-video-dummy was given.
  19937. if test "${enable_video_dummy+set}" = set; then :
  19938. enableval=$enable_video_dummy;
  19939. else
  19940. enable_video_dummy=yes
  19941. fi
  19942. if test x$enable_video_dummy = xyes; then
  19943. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19944. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19945. have_video=yes
  19946. SUMMARY_video="${SUMMARY_video} dummy"
  19947. fi
  19948. }
  19949. CheckOffscreenVideo()
  19950. {
  19951. # Check whether --enable-video-offscreen was given.
  19952. if test "${enable_video_offscreen+set}" = set; then :
  19953. enableval=$enable_video_offscreen;
  19954. else
  19955. enable_video_offscreen=no
  19956. fi
  19957. if test x$enable_video_offscreen = xyes; then
  19958. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19959. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19960. have_video=yes
  19961. SUMMARY_video="${SUMMARY_video} offscreen"
  19962. fi
  19963. }
  19964. CheckQNXVideo()
  19965. {
  19966. if test x$enable_video = xyes; then
  19967. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19968. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19969. have_video=yes
  19970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19971. SUMMARY_video="${SUMMARY_video} qnx"
  19972. fi
  19973. }
  19974. CheckQNXAudio()
  19975. {
  19976. if test x$enable_audio = xyes; then
  19977. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19978. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19979. have_audio=yes
  19980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19981. SUMMARY_audio="${SUMMARY_audio} qsa"
  19982. fi
  19983. }
  19984. # Check whether --enable-video-opengl was given.
  19985. if test "${enable_video_opengl+set}" = set; then :
  19986. enableval=$enable_video_opengl;
  19987. else
  19988. enable_video_opengl=yes
  19989. fi
  19990. CheckGLX()
  19991. {
  19992. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19994. $as_echo_n "checking for GLX support... " >&6; }
  19995. video_opengl_glx=no
  19996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19997. /* end confdefs.h. */
  19998. #include <GL/glx.h>
  19999. int
  20000. main ()
  20001. {
  20002. ;
  20003. return 0;
  20004. }
  20005. _ACEOF
  20006. if ac_fn_c_try_compile "$LINENO"; then :
  20007. video_opengl_glx=yes
  20008. fi
  20009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20011. $as_echo "$video_opengl_glx" >&6; }
  20012. if test x$video_opengl_glx = xyes; then
  20013. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20014. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20015. fi
  20016. fi
  20017. }
  20018. # Check whether --enable-video-opengles was given.
  20019. if test "${enable_video_opengles+set}" = set; then :
  20020. enableval=$enable_video_opengles;
  20021. else
  20022. enable_video_opengles=yes
  20023. fi
  20024. # Check whether --enable-video-opengles1 was given.
  20025. if test "${enable_video_opengles1+set}" = set; then :
  20026. enableval=$enable_video_opengles1;
  20027. else
  20028. enable_video_opengles1=yes
  20029. fi
  20030. # Check whether --enable-video-opengles2 was given.
  20031. if test "${enable_video_opengles2+set}" = set; then :
  20032. enableval=$enable_video_opengles2;
  20033. else
  20034. enable_video_opengles2=yes
  20035. fi
  20036. CheckEGL()
  20037. {
  20038. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20040. $as_echo_n "checking for EGL support... " >&6; }
  20041. video_opengl_egl=no
  20042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20043. /* end confdefs.h. */
  20044. #define LINUX
  20045. #define EGL_API_FB
  20046. #define MESA_EGL_NO_X11_HEADERS
  20047. #define EGL_NO_X11
  20048. #include <EGL/egl.h>
  20049. #include <EGL/eglext.h>
  20050. int
  20051. main ()
  20052. {
  20053. ;
  20054. return 0;
  20055. }
  20056. _ACEOF
  20057. if ac_fn_c_try_compile "$LINENO"; then :
  20058. video_opengl_egl=yes
  20059. fi
  20060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20062. $as_echo "$video_opengl_egl" >&6; }
  20063. if test x$video_opengl_egl = xyes; then
  20064. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20065. fi
  20066. fi
  20067. }
  20068. CheckOpenGL()
  20069. {
  20070. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20072. $as_echo_n "checking for OpenGL headers... " >&6; }
  20073. video_opengl=no
  20074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20075. /* end confdefs.h. */
  20076. #include <GL/gl.h>
  20077. #include <GL/glext.h>
  20078. int
  20079. main ()
  20080. {
  20081. ;
  20082. return 0;
  20083. }
  20084. _ACEOF
  20085. if ac_fn_c_try_compile "$LINENO"; then :
  20086. video_opengl=yes
  20087. fi
  20088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20090. $as_echo "$video_opengl" >&6; }
  20091. if test x$video_opengl = xyes; then
  20092. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20093. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20094. SUMMARY_video="${SUMMARY_video} opengl"
  20095. fi
  20096. fi
  20097. }
  20098. CheckOpenGLES()
  20099. {
  20100. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20101. if test x$enable_video_opengles1 = xyes; then
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20103. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20104. video_opengles_v1=no
  20105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20106. /* end confdefs.h. */
  20107. #include <GLES/gl.h>
  20108. #include <GLES/glext.h>
  20109. int
  20110. main ()
  20111. {
  20112. ;
  20113. return 0;
  20114. }
  20115. _ACEOF
  20116. if ac_fn_c_try_compile "$LINENO"; then :
  20117. video_opengles_v1=yes
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20121. $as_echo "$video_opengles_v1" >&6; }
  20122. if test x$video_opengles_v1 = xyes; then
  20123. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20124. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20125. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20126. fi
  20127. fi
  20128. if test x$enable_video_opengles2 = xyes; then
  20129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20130. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20131. video_opengles_v2=no
  20132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20133. /* end confdefs.h. */
  20134. #include <GLES2/gl2.h>
  20135. #include <GLES2/gl2ext.h>
  20136. int
  20137. main ()
  20138. {
  20139. ;
  20140. return 0;
  20141. }
  20142. _ACEOF
  20143. if ac_fn_c_try_compile "$LINENO"; then :
  20144. video_opengles_v2=yes
  20145. fi
  20146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20148. $as_echo "$video_opengles_v2" >&6; }
  20149. if test x$video_opengles_v2 = xyes; then
  20150. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20151. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20152. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20153. fi
  20154. fi
  20155. fi
  20156. }
  20157. CheckWINDOWSGL()
  20158. {
  20159. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20160. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20161. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20162. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20163. SUMMARY_video="${SUMMARY_video} opengl"
  20164. fi
  20165. }
  20166. CheckWINDOWSGLES()
  20167. {
  20168. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20170. $as_echo_n "checking for EGL support... " >&6; }
  20171. video_opengl_egl=no
  20172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20173. /* end confdefs.h. */
  20174. #include <EGL/egl.h>
  20175. int
  20176. main ()
  20177. {
  20178. ;
  20179. return 0;
  20180. }
  20181. _ACEOF
  20182. if ac_fn_c_try_compile "$LINENO"; then :
  20183. video_opengl_egl=yes
  20184. fi
  20185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20187. $as_echo "$video_opengl_egl" >&6; }
  20188. if test x$video_opengl_egl = xyes; then
  20189. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20190. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20191. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20192. fi
  20193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20194. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20195. video_opengles_v2=no
  20196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20197. /* end confdefs.h. */
  20198. #include <GLES2/gl2.h>
  20199. #include <GLES2/gl2ext.h>
  20200. int
  20201. main ()
  20202. {
  20203. ;
  20204. return 0;
  20205. }
  20206. _ACEOF
  20207. if ac_fn_c_try_compile "$LINENO"; then :
  20208. video_opengles_v2=yes
  20209. fi
  20210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20212. $as_echo "$video_opengles_v2" >&6; }
  20213. if test x$video_opengles_v2 = xyes; then
  20214. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20215. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20216. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20217. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20218. fi
  20219. fi
  20220. }
  20221. CheckHaikuGL()
  20222. {
  20223. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20224. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20225. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20226. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20228. SUMMARY_video="${SUMMARY_video} opengl"
  20229. fi
  20230. }
  20231. CheckMacGL()
  20232. {
  20233. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20234. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20235. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20236. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20237. SUMMARY_video="${SUMMARY_video} opengl"
  20238. fi
  20239. }
  20240. CheckMacGLES()
  20241. {
  20242. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20243. video_opengl_egl=yes
  20244. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20245. video_opengles_v2=yes
  20246. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20247. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20248. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20249. fi
  20250. }
  20251. CheckEmscriptenGLES()
  20252. {
  20253. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20255. $as_echo_n "checking for EGL support... " >&6; }
  20256. video_opengl_egl=no
  20257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20258. /* end confdefs.h. */
  20259. #include <EGL/egl.h>
  20260. int
  20261. main ()
  20262. {
  20263. ;
  20264. return 0;
  20265. }
  20266. _ACEOF
  20267. if ac_fn_c_try_compile "$LINENO"; then :
  20268. video_opengl_egl=yes
  20269. fi
  20270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20272. $as_echo "$video_opengl_egl" >&6; }
  20273. if test x$video_opengl_egl = xyes; then
  20274. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20275. fi
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20277. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20278. video_opengles_v2=no
  20279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20280. /* end confdefs.h. */
  20281. #include <GLES2/gl2.h>
  20282. #include <GLES2/gl2ext.h>
  20283. int
  20284. main ()
  20285. {
  20286. ;
  20287. return 0;
  20288. }
  20289. _ACEOF
  20290. if ac_fn_c_try_compile "$LINENO"; then :
  20291. video_opengles_v2=yes
  20292. fi
  20293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20295. $as_echo "$video_opengles_v2" >&6; }
  20296. if test x$video_opengles_v2 = xyes; then
  20297. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20298. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20299. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20300. fi
  20301. fi
  20302. }
  20303. # Check whether --enable-video-vulkan was given.
  20304. if test "${enable_video_vulkan+set}" = set; then :
  20305. enableval=$enable_video_vulkan;
  20306. else
  20307. enable_video_vulkan=yes
  20308. fi
  20309. CheckVulkan()
  20310. {
  20311. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20312. case "$host" in
  20313. *-*-android*)
  20314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20315. /* end confdefs.h. */
  20316. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20317. #error Vulkan doesn't work on this configuration
  20318. #endif
  20319. int
  20320. main ()
  20321. {
  20322. ;
  20323. return 0;
  20324. }
  20325. _ACEOF
  20326. if ac_fn_c_try_compile "$LINENO"; then :
  20327. else
  20328. enable_video_vulkan=no
  20329. fi
  20330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20331. ;;
  20332. *-*-darwin*)
  20333. save_CFLAGS="$CFLAGS"
  20334. CFLAGS="$CFLAGS -x objective-c"
  20335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20336. /* end confdefs.h. */
  20337. #include <Cocoa/Cocoa.h>
  20338. #include <Metal/Metal.h>
  20339. #include <QuartzCore/CAMetalLayer.h>
  20340. #if TARGET_CPU_X86
  20341. #error Vulkan doesn't work on this configuration
  20342. #endif
  20343. int
  20344. main ()
  20345. {
  20346. ;
  20347. return 0;
  20348. }
  20349. _ACEOF
  20350. if ac_fn_c_try_compile "$LINENO"; then :
  20351. else
  20352. enable_video_vulkan=no
  20353. fi
  20354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20355. CFLAGS="$save_CFLAGS"
  20356. ;;
  20357. *)
  20358. ;;
  20359. esac
  20360. if test x$enable_video_vulkan = xno; then
  20361. # For reasons I am totally unable to see, I get an undefined macro error if
  20362. # I put this in the AC_TRY_COMPILE.
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20364. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20365. fi
  20366. fi
  20367. if test x$have_loadso != xyes; then
  20368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20369. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20370. enable_video_vulkan=no
  20371. fi
  20372. if test x$enable_video_vulkan = xyes; then
  20373. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20374. SUMMARY_video="${SUMMARY_video} vulkan"
  20375. fi
  20376. }
  20377. CheckInputEvents()
  20378. {
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20380. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20381. use_input_events=no
  20382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20383. /* end confdefs.h. */
  20384. #include <linux/input.h>
  20385. int
  20386. main ()
  20387. {
  20388. #ifndef EVIOCGNAME
  20389. #error EVIOCGNAME() ioctl not available
  20390. #endif
  20391. ;
  20392. return 0;
  20393. }
  20394. _ACEOF
  20395. if ac_fn_c_try_compile "$LINENO"; then :
  20396. use_input_events=yes
  20397. fi
  20398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20400. $as_echo "$use_input_events" >&6; }
  20401. if test x$use_input_events = xyes; then
  20402. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20403. SUMMARY_input="${SUMMARY_input} linuxev"
  20404. fi
  20405. }
  20406. CheckInputKD()
  20407. {
  20408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20409. $as_echo_n "checking for Linux kd.h... " >&6; }
  20410. use_input_kd=no
  20411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20412. /* end confdefs.h. */
  20413. #include <linux/kd.h>
  20414. #include <linux/keyboard.h>
  20415. int
  20416. main ()
  20417. {
  20418. struct kbentry kbe;
  20419. kbe.kb_table = KG_CTRL;
  20420. ioctl(0, KDGKBENT, &kbe);
  20421. ;
  20422. return 0;
  20423. }
  20424. _ACEOF
  20425. if ac_fn_c_try_compile "$LINENO"; then :
  20426. use_input_kd=yes
  20427. fi
  20428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20430. $as_echo "$use_input_kd" >&6; }
  20431. if test x$use_input_kd = xyes; then
  20432. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20433. SUMMARY_input="${SUMMARY_input} linuxkd"
  20434. fi
  20435. }
  20436. CheckInputKBIO()
  20437. {
  20438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20439. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20440. use_input_kbio=no
  20441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20442. /* end confdefs.h. */
  20443. #include <sys/kbio.h>
  20444. #include <sys/ioctl.h>
  20445. int
  20446. main ()
  20447. {
  20448. accentmap_t accTable;
  20449. ioctl(0, KDENABIO, 1);
  20450. ;
  20451. return 0;
  20452. }
  20453. _ACEOF
  20454. if ac_fn_c_try_compile "$LINENO"; then :
  20455. use_input_kbio=yes
  20456. fi
  20457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20459. $as_echo "$use_input_kbio" >&6; }
  20460. if test x$use_input_kbio = xyes; then
  20461. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20462. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20463. fi
  20464. }
  20465. CheckInputWSCONS()
  20466. {
  20467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20468. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20469. use_input_wscons=no
  20470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20471. /* end confdefs.h. */
  20472. #include <sys/time.h>
  20473. #include <dev/wscons/wsconsio.h>
  20474. #include <dev/wscons/wsksymdef.h>
  20475. #include <dev/wscons/wsksymvar.h>
  20476. #include <sys/ioctl.h>
  20477. int
  20478. main ()
  20479. {
  20480. struct wskbd_map_data data;
  20481. ioctl(0, WSKBDIO_GETMAP, &data);
  20482. ;
  20483. return 0;
  20484. }
  20485. _ACEOF
  20486. if ac_fn_c_try_compile "$LINENO"; then :
  20487. use_input_wscons=yes
  20488. fi
  20489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20491. $as_echo "$use_input_wscons" >&6; }
  20492. if test x$use_input_wscons = xyes; then
  20493. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20494. SUMMARY_input="${SUMMARY_input} wscons"
  20495. fi
  20496. }
  20497. CheckLibUDev()
  20498. {
  20499. # Check whether --enable-libudev was given.
  20500. if test "${enable_libudev+set}" = set; then :
  20501. enableval=$enable_libudev;
  20502. else
  20503. enable_libudev=yes
  20504. fi
  20505. if test x$enable_libudev = xyes; then
  20506. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20507. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20508. have_libudev_h_hdr=yes
  20509. else
  20510. have_libudev_h_hdr=no
  20511. fi
  20512. if test x$have_libudev_h_hdr = xyes; then
  20513. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20514. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20515. if test x$udev_lib != x; then
  20516. echo "-- dynamic udev -> $udev_lib"
  20517. cat >>confdefs.h <<_ACEOF
  20518. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20519. _ACEOF
  20520. fi
  20521. fi
  20522. fi
  20523. }
  20524. CheckDBus()
  20525. {
  20526. # Check whether --enable-dbus was given.
  20527. if test "${enable_dbus+set}" = set; then :
  20528. enableval=$enable_dbus;
  20529. else
  20530. enable_dbus=yes
  20531. fi
  20532. if test x$enable_dbus = xyes; then
  20533. pkg_failed=no
  20534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20535. $as_echo_n "checking for dbus-1... " >&6; }
  20536. if test -n "$DBUS_CFLAGS"; then
  20537. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20538. elif test -n "$PKG_CONFIG"; then
  20539. if test -n "$PKG_CONFIG" && \
  20540. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20541. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20542. ac_status=$?
  20543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20544. test $ac_status = 0; }; then
  20545. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20546. test "x$?" != "x0" && pkg_failed=yes
  20547. else
  20548. pkg_failed=yes
  20549. fi
  20550. else
  20551. pkg_failed=untried
  20552. fi
  20553. if test -n "$DBUS_LIBS"; then
  20554. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20555. elif test -n "$PKG_CONFIG"; then
  20556. if test -n "$PKG_CONFIG" && \
  20557. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20558. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20559. ac_status=$?
  20560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20561. test $ac_status = 0; }; then
  20562. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20563. test "x$?" != "x0" && pkg_failed=yes
  20564. else
  20565. pkg_failed=yes
  20566. fi
  20567. else
  20568. pkg_failed=untried
  20569. fi
  20570. if test $pkg_failed = yes; then
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20572. $as_echo "no" >&6; }
  20573. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20574. _pkg_short_errors_supported=yes
  20575. else
  20576. _pkg_short_errors_supported=no
  20577. fi
  20578. if test $_pkg_short_errors_supported = yes; then
  20579. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20580. else
  20581. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20582. fi
  20583. # Put the nasty error message in config.log where it belongs
  20584. echo "$DBUS_PKG_ERRORS" >&5
  20585. have_dbus=no
  20586. elif test $pkg_failed = untried; then
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20588. $as_echo "no" >&6; }
  20589. have_dbus=no
  20590. else
  20591. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20592. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20594. $as_echo "yes" >&6; }
  20595. have_dbus=yes
  20596. fi
  20597. save_CPPFLAGS="$CPPFLAGS"
  20598. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20599. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20600. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20601. have_dbus_dbus_h_hdr=yes
  20602. else
  20603. have_dbus_dbus_h_hdr=no
  20604. fi
  20605. CPPFLAGS="$save_CPPFLAGS"
  20606. if test x$have_dbus_dbus_h_hdr = xyes; then
  20607. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20608. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20609. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20610. fi
  20611. fi
  20612. }
  20613. CheckIME()
  20614. {
  20615. # Check whether --enable-ime was given.
  20616. if test "${enable_ime+set}" = set; then :
  20617. enableval=$enable_ime;
  20618. else
  20619. enable_ime=yes
  20620. fi
  20621. if test x$enable_ime = xyes; then
  20622. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20623. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20624. fi
  20625. }
  20626. CheckInotify()
  20627. {
  20628. save_LIBS="$LIBS"
  20629. case "$host" in
  20630. *-*-freebsd*) LIBS="$LIBS -linotify"
  20631. ;;
  20632. esac
  20633. for ac_header in sys/inotify.h
  20634. do :
  20635. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20636. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20637. cat >>confdefs.h <<_ACEOF
  20638. #define HAVE_SYS_INOTIFY_H 1
  20639. _ACEOF
  20640. have_inotify_inotify_h_hdr=yes
  20641. fi
  20642. done
  20643. for ac_func in inotify_init
  20644. do :
  20645. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20646. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20647. cat >>confdefs.h <<_ACEOF
  20648. #define HAVE_INOTIFY_INIT 1
  20649. _ACEOF
  20650. have_inotify=yes
  20651. fi
  20652. done
  20653. for ac_func in inotify_init1
  20654. do :
  20655. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20656. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20657. cat >>confdefs.h <<_ACEOF
  20658. #define HAVE_INOTIFY_INIT1 1
  20659. _ACEOF
  20660. fi
  20661. done
  20662. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20663. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20664. case "$host" in
  20665. *-*-freebsd*)
  20666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20667. ;;
  20668. esac
  20669. fi
  20670. LIBS="$save_LIBS"
  20671. }
  20672. CheckIBus()
  20673. {
  20674. # Check whether --enable-ibus was given.
  20675. if test "${enable_ibus+set}" = set; then :
  20676. enableval=$enable_ibus;
  20677. else
  20678. enable_ibus=yes
  20679. fi
  20680. if test x$enable_ibus = xyes; then
  20681. pkg_failed=no
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20683. $as_echo_n "checking for ibus-1.0... " >&6; }
  20684. if test -n "$IBUS_CFLAGS"; then
  20685. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20686. elif test -n "$PKG_CONFIG"; then
  20687. if test -n "$PKG_CONFIG" && \
  20688. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20689. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20690. ac_status=$?
  20691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20692. test $ac_status = 0; }; then
  20693. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20694. test "x$?" != "x0" && pkg_failed=yes
  20695. else
  20696. pkg_failed=yes
  20697. fi
  20698. else
  20699. pkg_failed=untried
  20700. fi
  20701. if test -n "$IBUS_LIBS"; then
  20702. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20703. elif test -n "$PKG_CONFIG"; then
  20704. if test -n "$PKG_CONFIG" && \
  20705. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20706. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20707. ac_status=$?
  20708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20709. test $ac_status = 0; }; then
  20710. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20711. test "x$?" != "x0" && pkg_failed=yes
  20712. else
  20713. pkg_failed=yes
  20714. fi
  20715. else
  20716. pkg_failed=untried
  20717. fi
  20718. if test $pkg_failed = yes; then
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20720. $as_echo "no" >&6; }
  20721. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20722. _pkg_short_errors_supported=yes
  20723. else
  20724. _pkg_short_errors_supported=no
  20725. fi
  20726. if test $_pkg_short_errors_supported = yes; then
  20727. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20728. else
  20729. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20730. fi
  20731. # Put the nasty error message in config.log where it belongs
  20732. echo "$IBUS_PKG_ERRORS" >&5
  20733. have_ibus=no
  20734. elif test $pkg_failed = untried; then
  20735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20736. $as_echo "no" >&6; }
  20737. have_ibus=no
  20738. else
  20739. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20740. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20742. $as_echo "yes" >&6; }
  20743. have_ibus=yes
  20744. fi
  20745. save_CPPFLAGS="$CPPFLAGS"
  20746. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20747. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20748. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20749. have_ibus_ibus_h_hdr=yes
  20750. else
  20751. have_ibus_ibus_h_hdr=no
  20752. fi
  20753. CPPFLAGS="$save_CPPFLAGS"
  20754. if test x$have_ibus_ibus_h_hdr = xyes; then
  20755. if test x$enable_ime != xyes; then
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20757. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20758. have_ibus_ibus_h_hdr=no
  20759. elif test x$enable_dbus != xyes; then
  20760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20761. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20762. have_ibus_ibus_h_hdr=no
  20763. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20765. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20766. have_ibus_ibus_h_hdr=no
  20767. else
  20768. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20769. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20770. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20771. fi
  20772. fi
  20773. fi
  20774. }
  20775. CheckFcitx()
  20776. {
  20777. # Check whether --enable-fcitx was given.
  20778. if test "${enable_fcitx+set}" = set; then :
  20779. enableval=$enable_fcitx;
  20780. else
  20781. enable_fcitx=yes
  20782. fi
  20783. if test x$enable_fcitx = xyes; then
  20784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20785. $as_echo_n "checking for fcitx support... " >&6; }
  20786. have_fcitx=no
  20787. if test x$enable_ime != xyes; then
  20788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20789. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20790. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20792. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20793. else
  20794. have_fcitx=yes
  20795. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20796. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20797. fi
  20798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20799. $as_echo "$have_fcitx" >&6; }
  20800. fi
  20801. }
  20802. CheckJoystickMFI()
  20803. {
  20804. # Check whether --enable-joystick-mfi was given.
  20805. if test "${enable_joystick_mfi+set}" = set; then :
  20806. enableval=$enable_joystick_mfi;
  20807. else
  20808. enable_joystick_mfi=yes
  20809. fi
  20810. if test x$enable_joystick_mfi = xyes; then
  20811. save_CFLAGS="$CFLAGS"
  20812. save_LDFLAGS="$LDFLAGS"
  20813. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20814. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20816. $as_echo_n "checking for GameController framework... " >&6; }
  20817. enable_joystick_mfi=no
  20818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20819. /* end confdefs.h. */
  20820. #include <AvailabilityMacros.h>
  20821. #include <TargetConditionals.h>
  20822. #import <GameController/GameController.h>
  20823. int
  20824. main ()
  20825. {
  20826. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20827. #error GameController framework doesn't work on this configuration
  20828. #endif
  20829. #if TARGET_CPU_X86
  20830. #error GameController framework doesn't work on this configuration
  20831. #endif
  20832. ;
  20833. return 0;
  20834. }
  20835. _ACEOF
  20836. if ac_fn_c_try_link "$LINENO"; then :
  20837. enable_joystick_mfi=yes
  20838. fi
  20839. rm -f core conftest.err conftest.$ac_objext \
  20840. conftest$ac_exeext conftest.$ac_ext
  20841. CFLAGS="$save_CFLAGS"
  20842. LDFLAGS="$save_LDFLAGS"
  20843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20844. $as_echo "$enable_joystick_mfi" >&6; }
  20845. if test x$enable_joystick_mfi = xyes; then
  20846. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20847. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20849. fi
  20850. fi
  20851. }
  20852. CheckPTHREAD()
  20853. {
  20854. case "$host" in
  20855. *-*-emscripten*)
  20856. enable_pthreads_default=no
  20857. ;;
  20858. *)
  20859. enable_pthreads_default=yes
  20860. ;;
  20861. esac
  20862. # Check whether --enable-pthreads was given.
  20863. if test "${enable_pthreads+set}" = set; then :
  20864. enableval=$enable_pthreads;
  20865. else
  20866. enable_pthreads=maybe
  20867. fi
  20868. # Check whether --enable-pthread-sem was given.
  20869. if test "${enable_pthread_sem+set}" = set; then :
  20870. enableval=$enable_pthread_sem;
  20871. else
  20872. enable_pthread_sem=maybe
  20873. fi
  20874. if test x$enable_pthreads = xmaybe; then
  20875. enable_pthreads=$enable_pthreads_default
  20876. fi
  20877. if test x$enable_pthread_sem = xmaybe; then
  20878. enable_pthread_sem=$enable_pthreads
  20879. fi
  20880. case "$host" in
  20881. *-*-android*)
  20882. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20883. pthread_lib=""
  20884. ;;
  20885. *-*-linux*|*-*-uclinux*)
  20886. pthread_cflags="-D_REENTRANT"
  20887. pthread_lib="-lpthread"
  20888. ;;
  20889. *-*-bsdi*)
  20890. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20891. pthread_lib=""
  20892. ;;
  20893. *-*-darwin*)
  20894. pthread_cflags="-D_THREAD_SAFE"
  20895. # causes Carbon.p complaints?
  20896. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20897. ;;
  20898. *-*-freebsd*|*-*-dragonfly*)
  20899. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20900. pthread_lib="-pthread"
  20901. ;;
  20902. *-*-netbsd*)
  20903. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20904. pthread_lib="-lpthread"
  20905. ;;
  20906. *-*-openbsd*)
  20907. pthread_cflags="-D_REENTRANT"
  20908. pthread_lib="-pthread"
  20909. ;;
  20910. *-*-solaris2.9)
  20911. # From Solaris 9+, posix4's preferred name is rt.
  20912. pthread_cflags="-D_REENTRANT"
  20913. pthread_lib="-lpthread -lrt"
  20914. ;;
  20915. *-*-solaris2.10)
  20916. # Solaris 10+ merged pthread into libc.
  20917. pthread_cflags="-D_REENTRANT"
  20918. pthread_lib="-lrt"
  20919. ;;
  20920. *-*-solaris*)
  20921. # Solaris 11+ merged rt into libc.
  20922. pthread_cflags="-D_REENTRANT"
  20923. pthread_lib=""
  20924. ;;
  20925. *-*-sysv5*)
  20926. pthread_cflags="-D_REENTRANT -Kthread"
  20927. pthread_lib=""
  20928. ;;
  20929. *-*-aix*)
  20930. pthread_cflags="-D_REENTRANT -mthreads"
  20931. pthread_lib="-lpthread"
  20932. ;;
  20933. *-*-hpux11*)
  20934. pthread_cflags="-D_REENTRANT"
  20935. pthread_lib="-L/usr/lib -lpthread"
  20936. ;;
  20937. *-*-haiku*)
  20938. pthread_cflags="-D_REENTRANT"
  20939. pthread_lib=""
  20940. ;;
  20941. *-*-nto*)
  20942. pthread_cflags="-D_REENTRANT"
  20943. pthread_lib=""
  20944. ;;
  20945. *-*-emscripten*)
  20946. pthread_cflags="-D_REENTRANT -pthread"
  20947. pthread_lib="-pthread"
  20948. ;;
  20949. *)
  20950. pthread_cflags="-D_REENTRANT"
  20951. pthread_lib="-lpthread"
  20952. ;;
  20953. esac
  20954. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20955. # Save the original compiler flags and libraries
  20956. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20957. # Add the pthread compiler flags and libraries
  20958. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20959. # Check to see if we have pthread support on this system
  20960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20961. $as_echo_n "checking for pthreads... " >&6; }
  20962. use_pthreads=no
  20963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20964. /* end confdefs.h. */
  20965. #include <pthread.h>
  20966. int
  20967. main ()
  20968. {
  20969. pthread_attr_t type;
  20970. pthread_attr_init(&type);
  20971. ;
  20972. return 0;
  20973. }
  20974. _ACEOF
  20975. if ac_fn_c_try_link "$LINENO"; then :
  20976. use_pthreads=yes
  20977. fi
  20978. rm -f core conftest.err conftest.$ac_objext \
  20979. conftest$ac_exeext conftest.$ac_ext
  20980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20981. $as_echo "$use_pthreads" >&6; }
  20982. # Restore the compiler flags and libraries
  20983. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20984. # Do futher testing if we have pthread support...
  20985. if test x$use_pthreads = xyes; then
  20986. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20987. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20989. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20990. # Save the original compiler flags and libraries
  20991. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20992. # Add the pthread compiler flags and libraries
  20993. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20994. # Check to see if recursive mutexes are available
  20995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20996. $as_echo_n "checking for recursive mutexes... " >&6; }
  20997. has_recursive_mutexes=no
  20998. if test x$has_recursive_mutexes = xno; then
  20999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21000. /* end confdefs.h. */
  21001. #define _GNU_SOURCE 1
  21002. #include <pthread.h>
  21003. int
  21004. main ()
  21005. {
  21006. pthread_mutexattr_t attr;
  21007. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21008. ;
  21009. return 0;
  21010. }
  21011. _ACEOF
  21012. if ac_fn_c_try_link "$LINENO"; then :
  21013. has_recursive_mutexes=yes
  21014. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21015. fi
  21016. rm -f core conftest.err conftest.$ac_objext \
  21017. conftest$ac_exeext conftest.$ac_ext
  21018. fi
  21019. if test x$has_recursive_mutexes = xno; then
  21020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21021. /* end confdefs.h. */
  21022. #define _GNU_SOURCE 1
  21023. #include <pthread.h>
  21024. int
  21025. main ()
  21026. {
  21027. pthread_mutexattr_t attr;
  21028. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21029. ;
  21030. return 0;
  21031. }
  21032. _ACEOF
  21033. if ac_fn_c_try_link "$LINENO"; then :
  21034. has_recursive_mutexes=yes
  21035. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21036. fi
  21037. rm -f core conftest.err conftest.$ac_objext \
  21038. conftest$ac_exeext conftest.$ac_ext
  21039. fi
  21040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21041. $as_echo "$has_recursive_mutexes" >&6; }
  21042. # Check to see if pthread semaphore support is missing
  21043. if test x$enable_pthread_sem = xyes; then
  21044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21045. $as_echo_n "checking for pthread semaphores... " >&6; }
  21046. have_pthread_sem=no
  21047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21048. /* end confdefs.h. */
  21049. #include <pthread.h>
  21050. #include <semaphore.h>
  21051. int
  21052. main ()
  21053. {
  21054. ;
  21055. return 0;
  21056. }
  21057. _ACEOF
  21058. if ac_fn_c_try_compile "$LINENO"; then :
  21059. have_pthread_sem=yes
  21060. fi
  21061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21063. $as_echo "$have_pthread_sem" >&6; }
  21064. fi
  21065. if test x$have_pthread_sem = xyes; then
  21066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21067. $as_echo_n "checking for sem_timedwait... " >&6; }
  21068. have_sem_timedwait=no
  21069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21070. /* end confdefs.h. */
  21071. #include <pthread.h>
  21072. #include <semaphore.h>
  21073. int
  21074. main ()
  21075. {
  21076. sem_timedwait(NULL, NULL);
  21077. ;
  21078. return 0;
  21079. }
  21080. _ACEOF
  21081. if ac_fn_c_try_link "$LINENO"; then :
  21082. have_sem_timedwait=yes
  21083. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21084. fi
  21085. rm -f core conftest.err conftest.$ac_objext \
  21086. conftest$ac_exeext conftest.$ac_ext
  21087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21088. $as_echo "$have_sem_timedwait" >&6; }
  21089. fi
  21090. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21091. "
  21092. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21093. have_pthread_np_h=yes
  21094. else
  21095. have_pthread_np_h=no
  21096. fi
  21097. if test x$have_pthread_np_h = xyes; then
  21098. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21099. fi
  21100. # Check to see if pthread naming is available
  21101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21102. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21104. /* end confdefs.h. */
  21105. /* Override any GCC internal prototype to avoid an error.
  21106. Use char because int might match the return type of a GCC
  21107. builtin and then its argument prototype would still apply. */
  21108. #ifdef __cplusplus
  21109. extern "C"
  21110. #endif
  21111. char pthread_setname_np ();
  21112. int
  21113. main ()
  21114. {
  21115. return pthread_setname_np ();
  21116. ;
  21117. return 0;
  21118. }
  21119. _ACEOF
  21120. if ac_fn_c_try_link "$LINENO"; then :
  21121. has_pthread_setname_np=yes
  21122. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21123. else
  21124. has_pthread_setname_np=no
  21125. fi
  21126. rm -f core conftest.err conftest.$ac_objext \
  21127. conftest$ac_exeext conftest.$ac_ext
  21128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21129. $as_echo "$has_pthread_setname_np" >&6; }
  21130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21131. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21133. /* end confdefs.h. */
  21134. /* Override any GCC internal prototype to avoid an error.
  21135. Use char because int might match the return type of a GCC
  21136. builtin and then its argument prototype would still apply. */
  21137. #ifdef __cplusplus
  21138. extern "C"
  21139. #endif
  21140. char pthread_set_name_np ();
  21141. int
  21142. main ()
  21143. {
  21144. return pthread_set_name_np ();
  21145. ;
  21146. return 0;
  21147. }
  21148. _ACEOF
  21149. if ac_fn_c_try_link "$LINENO"; then :
  21150. has_pthread_set_name_np=yes
  21151. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21152. else
  21153. has_pthread_set_name_np=no
  21154. fi
  21155. rm -f core conftest.err conftest.$ac_objext \
  21156. conftest$ac_exeext conftest.$ac_ext
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21158. $as_echo "$has_pthread_set_name_np" >&6; }
  21159. # Restore the compiler flags and libraries
  21160. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21161. # Basic thread creation functions
  21162. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21163. # Semaphores
  21164. # We can fake these with mutexes and condition variables if necessary
  21165. if test x$have_pthread_sem = xyes; then
  21166. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21167. else
  21168. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21169. fi
  21170. # Mutexes
  21171. # We can fake these with semaphores if necessary
  21172. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21173. # Condition variables
  21174. # We can fake these with semaphores and mutexes if necessary
  21175. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21176. # Thread local storage
  21177. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21178. have_threads=yes
  21179. fi
  21180. fi
  21181. }
  21182. CheckWINDOWS()
  21183. {
  21184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21185. $as_echo_n "checking Windows compiler... " >&6; }
  21186. have_win32_gcc=no
  21187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21188. /* end confdefs.h. */
  21189. #include <windows.h>
  21190. int
  21191. main ()
  21192. {
  21193. ;
  21194. return 0;
  21195. }
  21196. _ACEOF
  21197. if ac_fn_c_try_compile "$LINENO"; then :
  21198. have_win32_gcc=yes
  21199. fi
  21200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21202. $as_echo "$have_win32_gcc" >&6; }
  21203. if test x$have_win32_gcc != xyes; then
  21204. as_fn_error $? "
  21205. *** Your compiler ($CC) does not produce Windows executables!
  21206. " "$LINENO" 5
  21207. fi
  21208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21209. $as_echo_n "checking Windows CE... " >&6; }
  21210. have_wince=no
  21211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21212. /* end confdefs.h. */
  21213. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21214. #error This is not Windows CE
  21215. #endif
  21216. int
  21217. main ()
  21218. {
  21219. ;
  21220. return 0;
  21221. }
  21222. _ACEOF
  21223. if ac_fn_c_try_compile "$LINENO"; then :
  21224. have_wince=yes
  21225. as_fn_error $? "
  21226. *** Sorry, Windows CE is no longer supported.
  21227. " "$LINENO" 5
  21228. fi
  21229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21231. $as_echo "$have_wince" >&6; }
  21232. # This fixes Windows stack alignment with newer GCC
  21233. CheckStackBoundary
  21234. }
  21235. CheckOS2()
  21236. {
  21237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21238. $as_echo_n "checking OS/2 compiler... " >&6; }
  21239. have_os2_gcc=no
  21240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21241. /* end confdefs.h. */
  21242. #include <os2.h>
  21243. int
  21244. main ()
  21245. {
  21246. ;
  21247. return 0;
  21248. }
  21249. _ACEOF
  21250. if ac_fn_c_try_compile "$LINENO"; then :
  21251. have_os2_gcc=yes
  21252. fi
  21253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21255. $as_echo "$have_os2_gcc" >&6; }
  21256. if test x$have_os2_gcc != xyes; then
  21257. as_fn_error $? "
  21258. *** Your compiler ($CC) does not produce OS/2 executables!
  21259. " "$LINENO" 5
  21260. fi
  21261. }
  21262. CheckDIRECTX()
  21263. {
  21264. # Check whether --enable-directx was given.
  21265. if test "${enable_directx+set}" = set; then :
  21266. enableval=$enable_directx;
  21267. else
  21268. enable_directx=yes
  21269. fi
  21270. if test x$enable_directx = xyes; then
  21271. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21272. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21273. have_d3d=yes
  21274. fi
  21275. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21276. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21277. have_d3d11=yes
  21278. fi
  21279. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21280. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21281. have_ddraw=yes
  21282. fi
  21283. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21284. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21285. have_dsound=yes
  21286. fi
  21287. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21288. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21289. have_dinput=yes
  21290. fi
  21291. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21292. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21293. have_dxgi=yes
  21294. fi
  21295. if test x$have_ddraw = xyes; then
  21296. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21297. fi
  21298. if test x$have_dinput = xyes; then
  21299. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21300. fi
  21301. if test x$have_dsound = xyes; then
  21302. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21303. fi
  21304. if test x$have_dxgi = xyes; then
  21305. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21306. fi
  21307. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21308. # FIXME: ...so force it off for now.
  21309. case "$host" in
  21310. *-*-cygwin*)
  21311. have_dinput=false
  21312. ;;
  21313. esac
  21314. fi
  21315. # Check whether --enable-xinput was given.
  21316. if test "${enable_xinput+set}" = set; then :
  21317. enableval=$enable_xinput;
  21318. else
  21319. enable_xinput=yes
  21320. fi
  21321. if test x$enable_xinput = xyes; then
  21322. have_xinput_gamepadex=no
  21323. have_xinput_stateex=no
  21324. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21325. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21326. have_xinput=yes
  21327. fi
  21328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21329. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21331. /* end confdefs.h. */
  21332. #include <windows.h>
  21333. #include <xinput.h>
  21334. XINPUT_GAMEPAD_EX x1;
  21335. int
  21336. main ()
  21337. {
  21338. ;
  21339. return 0;
  21340. }
  21341. _ACEOF
  21342. if ac_fn_c_try_compile "$LINENO"; then :
  21343. have_xinput_gamepadex=yes
  21344. fi
  21345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21347. $as_echo "$have_xinput_gamepadex" >&6; }
  21348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21349. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21351. /* end confdefs.h. */
  21352. #include <windows.h>
  21353. #include <xinput.h>
  21354. XINPUT_STATE_EX s1;
  21355. int
  21356. main ()
  21357. {
  21358. ;
  21359. return 0;
  21360. }
  21361. _ACEOF
  21362. if ac_fn_c_try_compile "$LINENO"; then :
  21363. have_xinput_stateex=yes
  21364. fi
  21365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21367. $as_echo "$have_xinput_stateex" >&6; }
  21368. if test x$have_xinput = xyes; then
  21369. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21370. fi
  21371. if test x$have_xinput_gamepadex = xyes; then
  21372. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21373. fi
  21374. if test x$have_xinput_stateex = xyes; then
  21375. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21376. fi
  21377. fi
  21378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21379. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21381. /* end confdefs.h. */
  21382. #define COBJMACROS
  21383. #include <windows.gaming.input.h>
  21384. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21385. int
  21386. main ()
  21387. {
  21388. ;
  21389. return 0;
  21390. }
  21391. _ACEOF
  21392. if ac_fn_c_try_compile "$LINENO"; then :
  21393. have_wgi=yes
  21394. else
  21395. have_wgi=no
  21396. fi
  21397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21399. $as_echo "$have_wgi" >&6; }
  21400. if test x$have_wgi = xyes; then
  21401. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21402. fi
  21403. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21404. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21405. have_wasapi=yes
  21406. fi
  21407. if test x$have_wasapi = xyes; then
  21408. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21409. fi
  21410. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21411. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21412. else
  21413. have_wasapi=no
  21414. fi
  21415. if test x$have_wasapi = xyes; then
  21416. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21417. fi
  21418. # Check whether --enable-wasapi was given.
  21419. if test "${enable_wasapi+set}" = set; then :
  21420. enableval=$enable_wasapi;
  21421. else
  21422. enable_wasapi=yes
  21423. fi
  21424. }
  21425. CheckDLOPEN()
  21426. {
  21427. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21428. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21429. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21430. have_dlfcn_h=yes
  21431. else
  21432. have_dlfcn_h=no
  21433. fi
  21434. have_dlopen=no
  21435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21436. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21437. if ${ac_cv_lib_c_dlopen+:} false; then :
  21438. $as_echo_n "(cached) " >&6
  21439. else
  21440. ac_check_lib_save_LIBS=$LIBS
  21441. LIBS="-lc $LIBS"
  21442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21443. /* end confdefs.h. */
  21444. /* Override any GCC internal prototype to avoid an error.
  21445. Use char because int might match the return type of a GCC
  21446. builtin and then its argument prototype would still apply. */
  21447. #ifdef __cplusplus
  21448. extern "C"
  21449. #endif
  21450. char dlopen ();
  21451. int
  21452. main ()
  21453. {
  21454. return dlopen ();
  21455. ;
  21456. return 0;
  21457. }
  21458. _ACEOF
  21459. if ac_fn_c_try_link "$LINENO"; then :
  21460. ac_cv_lib_c_dlopen=yes
  21461. else
  21462. ac_cv_lib_c_dlopen=no
  21463. fi
  21464. rm -f core conftest.err conftest.$ac_objext \
  21465. conftest$ac_exeext conftest.$ac_ext
  21466. LIBS=$ac_check_lib_save_LIBS
  21467. fi
  21468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21469. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21470. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21471. have_dlopen=yes
  21472. else
  21473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21474. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21475. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21476. $as_echo_n "(cached) " >&6
  21477. else
  21478. ac_check_lib_save_LIBS=$LIBS
  21479. LIBS="-ldl $LIBS"
  21480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21481. /* end confdefs.h. */
  21482. /* Override any GCC internal prototype to avoid an error.
  21483. Use char because int might match the return type of a GCC
  21484. builtin and then its argument prototype would still apply. */
  21485. #ifdef __cplusplus
  21486. extern "C"
  21487. #endif
  21488. char dlopen ();
  21489. int
  21490. main ()
  21491. {
  21492. return dlopen ();
  21493. ;
  21494. return 0;
  21495. }
  21496. _ACEOF
  21497. if ac_fn_c_try_link "$LINENO"; then :
  21498. ac_cv_lib_dl_dlopen=yes
  21499. else
  21500. ac_cv_lib_dl_dlopen=no
  21501. fi
  21502. rm -f core conftest.err conftest.$ac_objext \
  21503. conftest$ac_exeext conftest.$ac_ext
  21504. LIBS=$ac_check_lib_save_LIBS
  21505. fi
  21506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21507. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21508. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21509. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21510. fi
  21511. fi
  21512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21513. $as_echo_n "checking for dlopen... " >&6; }
  21514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21515. $as_echo "$have_dlopen" >&6; }
  21516. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21517. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21518. if test x$enable_loadso = xyes; then
  21519. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21520. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21521. have_loadso=yes
  21522. fi
  21523. fi
  21524. }
  21525. CheckO_CLOEXEC()
  21526. {
  21527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21528. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21530. /* end confdefs.h. */
  21531. #include <fcntl.h>
  21532. int flag = O_CLOEXEC;
  21533. int
  21534. main ()
  21535. {
  21536. ;
  21537. return 0;
  21538. }
  21539. _ACEOF
  21540. if ac_fn_c_try_compile "$LINENO"; then :
  21541. have_o_cloexec=yes
  21542. else
  21543. have_o_cloexec=no
  21544. fi
  21545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21547. $as_echo "$have_o_cloexec" >&6; }
  21548. if test $have_o_cloexec = yes; then
  21549. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21550. fi
  21551. }
  21552. CheckUSBHID()
  21553. {
  21554. case "$host" in
  21555. *-*-*bsd*|*-*-dragonfly*)
  21556. if test x$enable_joystick = xyes; then
  21557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21558. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21559. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21560. $as_echo_n "(cached) " >&6
  21561. else
  21562. ac_check_lib_save_LIBS=$LIBS
  21563. LIBS="-lusbhid $LIBS"
  21564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21565. /* end confdefs.h. */
  21566. /* Override any GCC internal prototype to avoid an error.
  21567. Use char because int might match the return type of a GCC
  21568. builtin and then its argument prototype would still apply. */
  21569. #ifdef __cplusplus
  21570. extern "C"
  21571. #endif
  21572. char hid_init ();
  21573. int
  21574. main ()
  21575. {
  21576. return hid_init ();
  21577. ;
  21578. return 0;
  21579. }
  21580. _ACEOF
  21581. if ac_fn_c_try_link "$LINENO"; then :
  21582. ac_cv_lib_usbhid_hid_init=yes
  21583. else
  21584. ac_cv_lib_usbhid_hid_init=no
  21585. fi
  21586. rm -f core conftest.err conftest.$ac_objext \
  21587. conftest$ac_exeext conftest.$ac_ext
  21588. LIBS=$ac_check_lib_save_LIBS
  21589. fi
  21590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21591. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21592. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21593. have_libusbhid=yes
  21594. fi
  21595. if test x$have_libusbhid = xyes; then
  21596. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21597. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21598. USB_CFLAGS="-DHAVE_USBHID_H"
  21599. fi
  21600. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21601. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21602. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21603. fi
  21604. USB_LIBS="$USB_LIBS -lusbhid"
  21605. else
  21606. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21607. if test "x$ac_cv_header_usb_h" = xyes; then :
  21608. USB_CFLAGS="-DHAVE_USB_H"
  21609. fi
  21610. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21611. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21612. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21613. fi
  21614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21615. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21616. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21617. $as_echo_n "(cached) " >&6
  21618. else
  21619. ac_check_lib_save_LIBS=$LIBS
  21620. LIBS="-lusb $LIBS"
  21621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21622. /* end confdefs.h. */
  21623. /* Override any GCC internal prototype to avoid an error.
  21624. Use char because int might match the return type of a GCC
  21625. builtin and then its argument prototype would still apply. */
  21626. #ifdef __cplusplus
  21627. extern "C"
  21628. #endif
  21629. char hid_init ();
  21630. int
  21631. main ()
  21632. {
  21633. return hid_init ();
  21634. ;
  21635. return 0;
  21636. }
  21637. _ACEOF
  21638. if ac_fn_c_try_link "$LINENO"; then :
  21639. ac_cv_lib_usb_hid_init=yes
  21640. else
  21641. ac_cv_lib_usb_hid_init=no
  21642. fi
  21643. rm -f core conftest.err conftest.$ac_objext \
  21644. conftest$ac_exeext conftest.$ac_ext
  21645. LIBS=$ac_check_lib_save_LIBS
  21646. fi
  21647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21648. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21649. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21650. USB_LIBS="$USB_LIBS -lusb"
  21651. fi
  21652. fi
  21653. save_CFLAGS="$CFLAGS"
  21654. CFLAGS="$CFLAGS $USB_CFLAGS"
  21655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21656. $as_echo_n "checking for usbhid... " >&6; }
  21657. have_usbhid=no
  21658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21659. /* end confdefs.h. */
  21660. #include <sys/types.h>
  21661. #if defined(HAVE_USB_H)
  21662. #include <usb.h>
  21663. #endif
  21664. #ifdef __DragonFly__
  21665. # include <bus/u4b/usb.h>
  21666. # include <bus/u4b/usbhid.h>
  21667. #else
  21668. # include <dev/usb/usb.h>
  21669. # include <dev/usb/usbhid.h>
  21670. #endif
  21671. #if defined(HAVE_USBHID_H)
  21672. #include <usbhid.h>
  21673. #elif defined(HAVE_LIBUSB_H)
  21674. #include <libusb.h>
  21675. #elif defined(HAVE_LIBUSBHID_H)
  21676. #include <libusbhid.h>
  21677. #endif
  21678. int
  21679. main ()
  21680. {
  21681. struct report_desc *repdesc;
  21682. struct usb_ctl_report *repbuf;
  21683. hid_kind_t hidkind;
  21684. ;
  21685. return 0;
  21686. }
  21687. _ACEOF
  21688. if ac_fn_c_try_compile "$LINENO"; then :
  21689. have_usbhid=yes
  21690. fi
  21691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21693. $as_echo "$have_usbhid" >&6; }
  21694. if test x$have_usbhid = xyes; then
  21695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21696. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21697. have_usbhid_ucr_data=no
  21698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21699. /* end confdefs.h. */
  21700. #include <sys/types.h>
  21701. #if defined(HAVE_USB_H)
  21702. #include <usb.h>
  21703. #endif
  21704. #ifdef __DragonFly__
  21705. # include <bus/u4b/usb.h>
  21706. # include <bus/u4b/usbhid.h>
  21707. #else
  21708. # include <dev/usb/usb.h>
  21709. # include <dev/usb/usbhid.h>
  21710. #endif
  21711. #if defined(HAVE_USBHID_H)
  21712. #include <usbhid.h>
  21713. #elif defined(HAVE_LIBUSB_H)
  21714. #include <libusb.h>
  21715. #elif defined(HAVE_LIBUSBHID_H)
  21716. #include <libusbhid.h>
  21717. #endif
  21718. int
  21719. main ()
  21720. {
  21721. struct usb_ctl_report buf;
  21722. if (buf.ucr_data) { }
  21723. ;
  21724. return 0;
  21725. }
  21726. _ACEOF
  21727. if ac_fn_c_try_compile "$LINENO"; then :
  21728. have_usbhid_ucr_data=yes
  21729. fi
  21730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21731. if test x$have_usbhid_ucr_data = xyes; then
  21732. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21733. fi
  21734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21735. $as_echo "$have_usbhid_ucr_data" >&6; }
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21737. $as_echo_n "checking for new usbhid API... " >&6; }
  21738. have_usbhid_new=no
  21739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21740. /* end confdefs.h. */
  21741. #include <sys/types.h>
  21742. #if defined(HAVE_USB_H)
  21743. #include <usb.h>
  21744. #endif
  21745. #ifdef __DragonFly__
  21746. #include <bus/u4b/usb.h>
  21747. #include <bus/u4b/usbhid.h>
  21748. #else
  21749. #include <dev/usb/usb.h>
  21750. #include <dev/usb/usbhid.h>
  21751. #endif
  21752. #if defined(HAVE_USBHID_H)
  21753. #include <usbhid.h>
  21754. #elif defined(HAVE_LIBUSB_H)
  21755. #include <libusb.h>
  21756. #elif defined(HAVE_LIBUSBHID_H)
  21757. #include <libusbhid.h>
  21758. #endif
  21759. int
  21760. main ()
  21761. {
  21762. report_desc_t d;
  21763. hid_start_parse(d, 1, 1);
  21764. ;
  21765. return 0;
  21766. }
  21767. _ACEOF
  21768. if ac_fn_c_try_compile "$LINENO"; then :
  21769. have_usbhid_new=yes
  21770. fi
  21771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21772. if test x$have_usbhid_new = xyes; then
  21773. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21774. fi
  21775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21776. $as_echo "$have_usbhid_new" >&6; }
  21777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21778. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21779. have_machine_joystick=no
  21780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21781. /* end confdefs.h. */
  21782. #include <machine/joystick.h>
  21783. int
  21784. main ()
  21785. {
  21786. struct joystick t;
  21787. ;
  21788. return 0;
  21789. }
  21790. _ACEOF
  21791. if ac_fn_c_try_compile "$LINENO"; then :
  21792. have_machine_joystick=yes
  21793. fi
  21794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21795. if test x$have_machine_joystick = xyes; then
  21796. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21797. fi
  21798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21799. $as_echo "$have_machine_joystick" >&6; }
  21800. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21801. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21802. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21804. have_joystick=yes
  21805. fi
  21806. CFLAGS="$save_CFLAGS"
  21807. fi
  21808. ;;
  21809. esac
  21810. }
  21811. CheckHIDAPI()
  21812. {
  21813. # Check whether --enable-hidapi-joystick was given.
  21814. if test "${enable_hidapi_joystick+set}" = set; then :
  21815. enableval=$enable_hidapi_joystick;
  21816. else
  21817. enable_hidapi_joystick=yes
  21818. fi
  21819. # Check whether --enable-hidapi-libusb was given.
  21820. if test "${enable_hidapi_libusb+set}" = set; then :
  21821. enableval=$enable_hidapi_libusb;
  21822. else
  21823. enable_hidapi_libusb=maybe
  21824. fi
  21825. if test x$enable_hidapi = xyes; then
  21826. case "$host" in
  21827. # libusb does not support iOS
  21828. *-ios-* )
  21829. enable_hidapi_libusb=no
  21830. ;;
  21831. # On the other hand, *BSD specifically uses libusb only
  21832. *-*-*bsd* )
  21833. enable_hidapi_libusb=yes
  21834. require_hidapi_libusb=yes
  21835. ;;
  21836. *-*-os2* )
  21837. enable_hidapi_libusb=yes
  21838. ;;
  21839. esac
  21840. hidapi_support=yes
  21841. if test x$enable_hidapi_libusb = xyes; then
  21842. pkg_failed=no
  21843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21844. $as_echo_n "checking for libusb-1.0... " >&6; }
  21845. if test -n "$LIBUSB_CFLAGS"; then
  21846. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21847. elif test -n "$PKG_CONFIG"; then
  21848. if test -n "$PKG_CONFIG" && \
  21849. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21850. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21851. ac_status=$?
  21852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21853. test $ac_status = 0; }; then
  21854. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21855. test "x$?" != "x0" && pkg_failed=yes
  21856. else
  21857. pkg_failed=yes
  21858. fi
  21859. else
  21860. pkg_failed=untried
  21861. fi
  21862. if test -n "$LIBUSB_LIBS"; then
  21863. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21864. elif test -n "$PKG_CONFIG"; then
  21865. if test -n "$PKG_CONFIG" && \
  21866. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21867. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21868. ac_status=$?
  21869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21870. test $ac_status = 0; }; then
  21871. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21872. test "x$?" != "x0" && pkg_failed=yes
  21873. else
  21874. pkg_failed=yes
  21875. fi
  21876. else
  21877. pkg_failed=untried
  21878. fi
  21879. if test $pkg_failed = yes; then
  21880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21881. $as_echo "no" >&6; }
  21882. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21883. _pkg_short_errors_supported=yes
  21884. else
  21885. _pkg_short_errors_supported=no
  21886. fi
  21887. if test $_pkg_short_errors_supported = yes; then
  21888. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21889. else
  21890. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21891. fi
  21892. # Put the nasty error message in config.log where it belongs
  21893. echo "$LIBUSB_PKG_ERRORS" >&5
  21894. have_libusb=no
  21895. elif test $pkg_failed = untried; then
  21896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21897. $as_echo "no" >&6; }
  21898. have_libusb=no
  21899. else
  21900. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21901. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21903. $as_echo "yes" >&6; }
  21904. have_libusb=yes
  21905. fi
  21906. save_CPPFLAGS="$CPPFLAGS"
  21907. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21908. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21909. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21910. have_libusb_h=yes
  21911. else
  21912. have_libusb_h=no
  21913. fi
  21914. CPPFLAGS="$save_CPPFLAGS"
  21915. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21916. hidapi_support=no
  21917. fi
  21918. fi
  21919. if test x$hidapi_support = xyes; then
  21920. if test x$have_libusb_h = xyes; then
  21921. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21922. if test x$require_hidapi_libusb = xyes; then
  21923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21924. else
  21925. if test x$have_loadso != xyes; then
  21926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21927. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21928. fi
  21929. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21930. libusb_lib=""
  21931. case "$host" in
  21932. *-*-darwin* )
  21933. libusb_lib="libusb-1.0.0.dylib"
  21934. ;;
  21935. *-*-cygwin* | *-*-mingw* )
  21936. libusb_lib="libusb-1.0.dll"
  21937. ;;
  21938. *-*-os2* )
  21939. libusb_lib="usb100.dll"
  21940. ;;
  21941. esac
  21942. if test x$libusb_lib = x; then
  21943. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21944. fi
  21945. cat >>confdefs.h <<_ACEOF
  21946. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21947. _ACEOF
  21948. fi
  21949. fi
  21950. fi
  21951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21952. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21954. $as_echo "$hidapi_support" >&6; }
  21955. fi
  21956. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21957. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21958. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21959. fi
  21960. }
  21961. CheckClockGettime()
  21962. {
  21963. # Check whether --enable-clock_gettime was given.
  21964. if test "${enable_clock_gettime+set}" = set; then :
  21965. enableval=$enable_clock_gettime;
  21966. else
  21967. enable_clock_gettime=yes
  21968. fi
  21969. if test x$enable_clock_gettime = xyes; then
  21970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21971. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21972. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21973. $as_echo_n "(cached) " >&6
  21974. else
  21975. ac_check_lib_save_LIBS=$LIBS
  21976. LIBS="-lrt $LIBS"
  21977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21978. /* end confdefs.h. */
  21979. /* Override any GCC internal prototype to avoid an error.
  21980. Use char because int might match the return type of a GCC
  21981. builtin and then its argument prototype would still apply. */
  21982. #ifdef __cplusplus
  21983. extern "C"
  21984. #endif
  21985. char clock_gettime ();
  21986. int
  21987. main ()
  21988. {
  21989. return clock_gettime ();
  21990. ;
  21991. return 0;
  21992. }
  21993. _ACEOF
  21994. if ac_fn_c_try_link "$LINENO"; then :
  21995. ac_cv_lib_rt_clock_gettime=yes
  21996. else
  21997. ac_cv_lib_rt_clock_gettime=no
  21998. fi
  21999. rm -f core conftest.err conftest.$ac_objext \
  22000. conftest$ac_exeext conftest.$ac_ext
  22001. LIBS=$ac_check_lib_save_LIBS
  22002. fi
  22003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22004. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22005. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22006. have_clock_gettime=yes
  22007. fi
  22008. if test x$have_clock_gettime = xyes; then
  22009. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22011. else
  22012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22013. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22014. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22015. $as_echo_n "(cached) " >&6
  22016. else
  22017. ac_check_lib_save_LIBS=$LIBS
  22018. LIBS="-lc $LIBS"
  22019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22020. /* end confdefs.h. */
  22021. /* Override any GCC internal prototype to avoid an error.
  22022. Use char because int might match the return type of a GCC
  22023. builtin and then its argument prototype would still apply. */
  22024. #ifdef __cplusplus
  22025. extern "C"
  22026. #endif
  22027. char clock_gettime ();
  22028. int
  22029. main ()
  22030. {
  22031. return clock_gettime ();
  22032. ;
  22033. return 0;
  22034. }
  22035. _ACEOF
  22036. if ac_fn_c_try_link "$LINENO"; then :
  22037. ac_cv_lib_c_clock_gettime=yes
  22038. else
  22039. ac_cv_lib_c_clock_gettime=no
  22040. fi
  22041. rm -f core conftest.err conftest.$ac_objext \
  22042. conftest$ac_exeext conftest.$ac_ext
  22043. LIBS=$ac_check_lib_save_LIBS
  22044. fi
  22045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22046. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22047. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22048. have_clock_gettime=yes
  22049. fi
  22050. if test x$have_clock_gettime = xyes; then
  22051. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22053. fi
  22054. fi
  22055. fi
  22056. }
  22057. CheckLinuxVersion()
  22058. {
  22059. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22060. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22061. have_linux_version_h=yes
  22062. fi
  22063. if test x$have_linux_version_h = xyes; then
  22064. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22065. fi
  22066. }
  22067. CheckRPATH()
  22068. {
  22069. # Check whether --enable-rpath was given.
  22070. if test "${enable_rpath+set}" = set; then :
  22071. enableval=$enable_rpath;
  22072. else
  22073. enable_rpath=yes
  22074. fi
  22075. }
  22076. CheckEventSignals()
  22077. {
  22078. # Check whether --enable-backgrounding-signal was given.
  22079. if test "${enable_backgrounding_signal+set}" = set; then :
  22080. enableval=$enable_backgrounding_signal;
  22081. else
  22082. enable_backgrounding_signal=no
  22083. fi
  22084. if test x$enable_backgrounding_signal != xno; then
  22085. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22086. fi
  22087. # Check whether --enable-foregrounding-signal was given.
  22088. if test "${enable_foregrounding_signal+set}" = set; then :
  22089. enableval=$enable_foregrounding_signal;
  22090. else
  22091. enable_foregrounding_signal=no
  22092. fi
  22093. if test x$enable_foregrounding_signal != xno; then
  22094. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22095. fi
  22096. }
  22097. CheckVirtualJoystick()
  22098. {
  22099. # Check whether --enable-joystick-virtual was given.
  22100. if test "${enable_joystick_virtual+set}" = set; then :
  22101. enableval=$enable_joystick_virtual;
  22102. else
  22103. enable_joystick_virtual=yes
  22104. fi
  22105. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22106. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22107. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22108. have_joystick_virtual=yes
  22109. fi
  22110. }
  22111. CheckWarnAll
  22112. CheckNoStrictAliasing
  22113. CheckEventSignals
  22114. have_locale=no
  22115. case "$host" in
  22116. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22117. case "$host" in
  22118. *-*-android*)
  22119. # Android
  22120. ARCH=android
  22121. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22122. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22123. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22124. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22126. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22127. if test x$enable_video = xyes; then
  22128. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22129. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22130. SUMMARY_video="${SUMMARY_video} android"
  22131. have_video=yes
  22132. fi
  22133. ;;
  22134. *-*-linux*) ARCH=linux ;;
  22135. *-*-uclinux*) ARCH=linux ;;
  22136. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22137. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22138. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22139. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22140. *-*-bsdi*) ARCH=bsdi ;;
  22141. *-*-freebsd*) ARCH=freebsd ;;
  22142. *-*-dragonfly*) ARCH=freebsd ;;
  22143. *-*-netbsd*) ARCH=netbsd ;;
  22144. *-*-openbsd*) ARCH=openbsd ;;
  22145. *-*-sysv5*) ARCH=sysv5 ;;
  22146. *-*-solaris*) ARCH=solaris ;;
  22147. *-*-hpux*) ARCH=hpux ;;
  22148. *-*-aix*) ARCH=aix ;;
  22149. *-*-minix*) ARCH=minix ;;
  22150. *-*-nto*) ARCH=nto
  22151. CheckQNXVideo
  22152. ;;
  22153. esac
  22154. CheckVisibilityHidden
  22155. CheckDeclarationAfterStatement
  22156. CheckDummyVideo
  22157. CheckOffscreenVideo
  22158. CheckDiskAudio
  22159. CheckDummyAudio
  22160. CheckDLOPEN
  22161. CheckARM
  22162. CheckNEON
  22163. CheckO_CLOEXEC
  22164. CheckOSS
  22165. CheckALSA
  22166. CheckPipewire
  22167. CheckPulseAudio
  22168. CheckJACK
  22169. CheckARTSC
  22170. CheckESD
  22171. CheckNAS
  22172. CheckSNDIO
  22173. CheckFusionSound
  22174. CheckLibSampleRate
  22175. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22176. CheckRPI
  22177. CheckX11
  22178. CheckDirectFB
  22179. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22180. CheckEGL
  22181. CheckKMSDRM
  22182. CheckGLX
  22183. CheckOpenGL
  22184. CheckOpenGLES
  22185. CheckVulkan
  22186. CheckWayland
  22187. CheckInputEvents
  22188. CheckLibUDev
  22189. CheckDBus
  22190. CheckIME
  22191. CheckInotify
  22192. CheckIBus
  22193. CheckFcitx
  22194. case $ARCH in
  22195. linux)
  22196. CheckInputKD
  22197. ;;
  22198. freebsd)
  22199. CheckInputKBIO
  22200. ;;
  22201. openbsd|netbsd)
  22202. CheckInputWSCONS
  22203. ;;
  22204. esac
  22205. CheckUSBHID
  22206. CheckHIDAPI
  22207. CheckPTHREAD
  22208. CheckClockGettime
  22209. CheckLinuxVersion
  22210. CheckRPATH
  22211. CheckVivanteVideo
  22212. # Set up files for the misc library
  22213. if test x$enable_misc = xyes; then
  22214. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22215. have_misc=yes
  22216. fi
  22217. # Set up files for the locale library
  22218. if test x$enable_locale = xyes; then
  22219. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22220. have_locale=yes
  22221. fi
  22222. # Set up files for the audio library
  22223. if test x$enable_audio = xyes; then
  22224. case $ARCH in
  22225. sysv5|solaris|hpux)
  22226. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22227. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22228. SUMMARY_audio="${SUMMARY_audio} sun"
  22229. have_audio=yes
  22230. ;;
  22231. netbsd) # Don't use this on OpenBSD, it's busted.
  22232. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22233. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22234. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22235. have_audio=yes
  22236. ;;
  22237. aix)
  22238. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22239. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22240. SUMMARY_audio="${SUMMARY_audio} paudio"
  22241. have_audio=yes
  22242. ;;
  22243. android)
  22244. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22245. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22246. SUMMARY_audio="${SUMMARY_audio} android"
  22247. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22248. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22249. SUMMARY_audio="${SUMMARY_audio} openslES"
  22250. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22251. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22252. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22253. have_audio=yes
  22254. ;;
  22255. nto)
  22256. CheckQNXAudio
  22257. ;;
  22258. esac
  22259. fi
  22260. # Set up files for the joystick library
  22261. if test x$enable_joystick = xyes; then
  22262. case $ARCH in
  22263. linux)
  22264. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22265. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22266. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22267. have_joystick=yes
  22268. ;;
  22269. freebsd)
  22270. if test x$use_input_events = xyes; then
  22271. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22272. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22273. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22274. have_joystick=yes
  22275. fi
  22276. ;;
  22277. android)
  22278. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22279. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22280. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22281. have_joystick=yes
  22282. ;;
  22283. esac
  22284. fi
  22285. # Set up files for the haptic library
  22286. if test x$enable_haptic = xyes; then
  22287. case $ARCH in
  22288. linux|freebsd)
  22289. if test x$use_input_events = xyes; then
  22290. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22291. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22292. have_haptic=yes
  22293. fi
  22294. ;;
  22295. android)
  22296. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22297. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22298. have_haptic=yes
  22299. ;;
  22300. esac
  22301. fi
  22302. # Set up files for the sensor library
  22303. if test x$enable_sensor = xyes; then
  22304. case $ARCH in
  22305. android)
  22306. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22307. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22308. have_sensor=yes
  22309. ;;
  22310. esac
  22311. fi
  22312. # Set up files for the power library
  22313. if test x$enable_power = xyes; then
  22314. case $ARCH in
  22315. linux)
  22316. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22317. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22318. have_power=yes
  22319. ;;
  22320. android)
  22321. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22322. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22323. have_power=yes
  22324. ;;
  22325. esac
  22326. fi
  22327. # Set up files for the filesystem library
  22328. if test x$enable_filesystem = xyes; then
  22329. case $ARCH in
  22330. android)
  22331. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22332. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22333. have_filesystem=yes
  22334. ;;
  22335. *)
  22336. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22337. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22338. have_filesystem=yes
  22339. ;;
  22340. esac
  22341. fi
  22342. # Set up files for the timer library
  22343. if test x$enable_timers = xyes; then
  22344. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22345. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22346. have_timers=yes
  22347. fi
  22348. # Set up files for udev hotplugging support
  22349. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22350. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22351. fi
  22352. # Set up files for evdev input
  22353. if test x$use_input_events = xyes; then
  22354. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22355. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22356. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22357. fi
  22358. # Set up files for wscons input
  22359. if test x$use_input_wscons = xyes; then
  22360. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22361. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22362. fi
  22363. # Set up other core UNIX files
  22364. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22365. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22366. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22367. ;;
  22368. *-*-cygwin* | *-*-mingw*)
  22369. ARCH=win32
  22370. if test "$build" != "$host"; then # cross-compiling
  22371. # Default cross-compile location
  22372. ac_default_prefix=/usr/local/cross-tools/$host
  22373. else
  22374. # Look for the location of the tools and install there
  22375. if test "$BUILD_PREFIX" != ""; then
  22376. ac_default_prefix=$BUILD_PREFIX
  22377. fi
  22378. fi
  22379. if test x$enable_loadso = xyes; then
  22380. have_loadso=yes
  22381. fi
  22382. CheckDeclarationAfterStatement
  22383. CheckDummyVideo
  22384. CheckOffscreenVideo
  22385. CheckDiskAudio
  22386. CheckDummyAudio
  22387. CheckWINDOWS
  22388. CheckWINDOWSGL
  22389. CheckWINDOWSGLES
  22390. CheckVulkan
  22391. CheckDIRECTX
  22392. CheckHIDAPI
  22393. # Set up the core platform files
  22394. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22395. # Set up files for the misc library
  22396. if test x$enable_misc = xyes; then
  22397. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22398. have_misc=yes
  22399. fi
  22400. # Use the Windows locale APIs.
  22401. if test x$enable_locale = xyes; then
  22402. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22403. have_locale=yes
  22404. fi
  22405. # Set up files for the video library
  22406. if test x$enable_video = xyes; then
  22407. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22408. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22409. have_video=yes
  22410. # Check whether --enable-render-d3d was given.
  22411. if test "${enable_render_d3d+set}" = set; then :
  22412. enableval=$enable_render_d3d;
  22413. else
  22414. enable_render_d3d=yes
  22415. fi
  22416. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22417. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22418. SUMMARY_video="${SUMMARY_video} d3d9"
  22419. fi
  22420. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22421. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22422. SUMMARY_video="${SUMMARY_video} d3d11"
  22423. fi
  22424. fi
  22425. # Set up files for the audio library
  22426. if test x$enable_audio = xyes; then
  22427. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22428. SUMMARY_audio="${SUMMARY_audio} winmm"
  22429. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22430. if test x$have_dsound = xyes; then
  22431. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22432. SUMMARY_audio="${SUMMARY_audio} directsound"
  22433. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22434. fi
  22435. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22436. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22437. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22438. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22439. fi
  22440. have_audio=yes
  22441. fi
  22442. # Set up files for the joystick library
  22443. if test x$enable_joystick = xyes; then
  22444. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22445. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22446. if test x$have_xinput = xyes; then
  22447. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22448. fi
  22449. if test x$have_wgi = xyes; then
  22450. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22451. fi
  22452. if test x$have_dinput = xyes; then
  22453. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22454. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22455. fi
  22456. fi
  22457. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22458. have_joystick=yes
  22459. fi
  22460. if test x$enable_haptic = xyes; then
  22461. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22462. if test x$have_xinput = xyes; then
  22463. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22464. fi
  22465. if test x$have_dinput = xyes; then
  22466. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22467. fi
  22468. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22469. have_haptic=yes
  22470. fi
  22471. fi
  22472. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22473. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  22474. have_tpcshrd_h=yes
  22475. fi
  22476. if test x$have_tpcshrd_h = xyes; then
  22477. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22478. fi
  22479. # Set up files for the sensor library
  22480. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22481. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22482. have_winsensors=yes
  22483. else
  22484. have_winsensors=no
  22485. fi
  22486. if test x$have_winsensors = xyes; then
  22487. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22488. fi
  22489. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22490. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22491. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22492. have_sensor=yes
  22493. fi
  22494. # Set up files for the power library
  22495. if test x$enable_power = xyes; then
  22496. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22497. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22498. have_power=yes
  22499. fi
  22500. # Set up files for the filesystem library
  22501. if test x$enable_filesystem = xyes; then
  22502. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22503. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22504. have_filesystem=yes
  22505. fi
  22506. # Set up files for the thread library
  22507. if test x$enable_threads = xyes; then
  22508. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22509. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22510. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22511. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22512. have_threads=yes
  22513. fi
  22514. # Set up files for the timer library
  22515. if test x$enable_timers = xyes; then
  22516. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22517. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22518. have_timers=yes
  22519. fi
  22520. # Set up files for the shared object loading library
  22521. if test x$enable_loadso = xyes; then
  22522. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22523. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22524. fi
  22525. # Set up the system libraries we need
  22526. if test -f /lib/w32api/libuuid.a; then
  22527. LIBUUID=/lib/w32api/libuuid.a
  22528. else
  22529. LIBUUID=-luuid
  22530. fi
  22531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22532. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22533. # The Windows platform requires special setup
  22534. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22535. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22536. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22537. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22538. # Check to see if this is a mingw or cygwin build
  22539. have_mingw32=
  22540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22541. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22542. if ${ac_cv_lib_mingw32_main+:} false; then :
  22543. $as_echo_n "(cached) " >&6
  22544. else
  22545. ac_check_lib_save_LIBS=$LIBS
  22546. LIBS="-lmingw32 $LIBS"
  22547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22548. /* end confdefs.h. */
  22549. int
  22550. main ()
  22551. {
  22552. return main ();
  22553. ;
  22554. return 0;
  22555. }
  22556. _ACEOF
  22557. if ac_fn_c_try_link "$LINENO"; then :
  22558. ac_cv_lib_mingw32_main=yes
  22559. else
  22560. ac_cv_lib_mingw32_main=no
  22561. fi
  22562. rm -f core conftest.err conftest.$ac_objext \
  22563. conftest$ac_exeext conftest.$ac_ext
  22564. LIBS=$ac_check_lib_save_LIBS
  22565. fi
  22566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22567. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22568. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22569. have_mingw32=yes
  22570. fi
  22571. if test x$have_mingw32 = xyes; then
  22572. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22573. else
  22574. SDL_LIBS="-lcygwin $SDL_LIBS"
  22575. fi
  22576. ;;
  22577. *-*-beos*)
  22578. as_fn_error $? "
  22579. *** BeOS support has been removed as of SDL 2.0.2.
  22580. " "$LINENO" 5
  22581. ;;
  22582. *-*-haiku*)
  22583. ARCH=haiku
  22584. ac_default_prefix=/boot/system
  22585. CheckDummyVideo
  22586. CheckOffscreenVideo
  22587. CheckDiskAudio
  22588. CheckDummyAudio
  22589. CheckDLOPEN
  22590. CheckO_CLOEXEC
  22591. CheckHaikuVideo
  22592. CheckHaikuGL
  22593. CheckPTHREAD
  22594. # Set up files for the audio library
  22595. if test x$enable_audio = xyes; then
  22596. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22597. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22598. SUMMARY_audio="${SUMMARY_audio} haiku"
  22599. have_audio=yes
  22600. fi
  22601. # Set up files for the joystick library
  22602. if test x$enable_joystick = xyes; then
  22603. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22604. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22605. have_joystick=yes
  22606. fi
  22607. # Set up files for the timer library
  22608. if test x$enable_timers = xyes; then
  22609. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22610. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22611. have_timers=yes
  22612. fi
  22613. # Set up files for the system power library
  22614. if test x$enable_power = xyes; then
  22615. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22616. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22617. have_power=yes
  22618. fi
  22619. # Set up files for the system filesystem library
  22620. if test x$enable_filesystem = xyes; then
  22621. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22622. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22623. have_filesystem=yes
  22624. fi
  22625. # Set up files for the misc library
  22626. if test x$enable_misc = xyes; then
  22627. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22628. have_misc=yes
  22629. fi
  22630. # Set up files for the locale library
  22631. if test x$enable_locale = xyes; then
  22632. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22633. have_locale=yes
  22634. fi
  22635. # The Haiku platform requires special setup.
  22636. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22638. ;;
  22639. *-ios-*)
  22640. ARCH=ios
  22641. CheckVisibilityHidden
  22642. CheckDeclarationAfterStatement
  22643. CheckDummyVideo
  22644. CheckOffscreenVideo
  22645. CheckDiskAudio
  22646. CheckDummyAudio
  22647. CheckDLOPEN
  22648. CheckO_CLOEXEC
  22649. CheckMETAL
  22650. CheckVulkan
  22651. CheckPTHREAD
  22652. # Set up files for the misc library
  22653. if test x$enable_misc = xyes; then
  22654. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22655. have_misc=yes
  22656. fi
  22657. # Set up files for the locale library
  22658. if test x$enable_locale = xyes; then
  22659. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22660. have_locale=yes
  22661. fi
  22662. # Set up files for the audio library
  22663. if test x$enable_audio = xyes; then
  22664. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22665. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22666. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22667. have_audio=yes
  22668. fi
  22669. # Set up files for the joystick library
  22670. if test x$enable_joystick = xyes; then
  22671. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22672. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22673. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22674. have_joystick=yes
  22675. else
  22676. # Need this code for accelerometer as joystick support
  22677. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22678. fi
  22679. # Set up files for the haptic library
  22680. #if test x$enable_haptic = xyes; then
  22681. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22682. # have_haptic=yes
  22683. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22684. #fi
  22685. # Set up files for the sensor library
  22686. if test x$enable_sensor = xyes; then
  22687. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22688. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22689. have_sensor=yes
  22690. fi
  22691. # Set up files for the power library
  22692. if test x$enable_power = xyes; then
  22693. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22694. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22695. have_power=yes
  22696. fi
  22697. # Set up files for the filesystem library
  22698. if test x$enable_filesystem = xyes; then
  22699. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22700. have_filesystem=yes
  22701. fi
  22702. # Set up additional files for the file library
  22703. if test x$enable_file = xyes; then
  22704. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22705. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22706. fi
  22707. # Set up files for the timer library
  22708. if test x$enable_timers = xyes; then
  22709. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22710. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22711. have_timers=yes
  22712. fi
  22713. # Set up other core UNIX files
  22714. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22715. # The iOS platform requires special setup.
  22716. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22717. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22718. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22719. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22720. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22721. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22722. SUMMARY_video="${SUMMARY_video} uikit"
  22723. have_video=yes
  22724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22735. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22737. fi
  22738. ;;
  22739. *-*-darwin* )
  22740. # This could be either full "Mac OS X", or plain "Darwin" which is
  22741. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22742. # Next line is broken, and a few files below require Mac OS X (full)
  22743. ARCH=macosx
  22744. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22745. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22746. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22747. CheckVisibilityHidden
  22748. CheckDeclarationAfterStatement
  22749. CheckDummyVideo
  22750. CheckOffscreenVideo
  22751. CheckDiskAudio
  22752. CheckDummyAudio
  22753. CheckDLOPEN
  22754. CheckO_CLOEXEC
  22755. CheckCOCOA
  22756. CheckMETAL
  22757. CheckX11
  22758. CheckMacGL
  22759. CheckMacGLES
  22760. CheckGLX
  22761. CheckOpenGL
  22762. CheckVulkan
  22763. CheckPTHREAD
  22764. CheckHIDAPI
  22765. # Set up files for the misc library
  22766. if test x$enable_misc = xyes; then
  22767. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22768. have_misc=yes
  22769. fi
  22770. # Set up files for the locale library
  22771. if test x$enable_locale = xyes; then
  22772. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22773. have_locale=yes
  22774. fi
  22775. # Set up files for the audio library
  22776. if test x$enable_audio = xyes; then
  22777. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22778. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22779. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22780. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22781. have_audio=yes
  22782. fi
  22783. # Set up files for the joystick library
  22784. if test x$enable_joystick = xyes; then
  22785. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22786. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22787. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22788. CheckJoystickMFI
  22789. have_joystick=yes
  22790. fi
  22791. # Set up files for the haptic library
  22792. if test x$enable_haptic = xyes; then
  22793. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22794. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22795. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22796. have_haptic=yes
  22797. fi
  22798. # Set up files for the power library
  22799. if test x$enable_power = xyes; then
  22800. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22801. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22802. have_power=yes
  22803. fi
  22804. # Set up files for the filesystem library
  22805. if test x$enable_filesystem = xyes; then
  22806. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22807. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22808. have_filesystem=yes
  22809. fi
  22810. # Set up files for the timer library
  22811. if test x$enable_timers = xyes; then
  22812. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22813. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22814. have_timers=yes
  22815. fi
  22816. # Set up additional files for the file library
  22817. if test x$enable_file = xyes; then
  22818. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22819. fi
  22820. # Set up other core UNIX files
  22821. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22822. # The Mac OS X platform requires special setup.
  22823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22828. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22830. fi
  22831. ;;
  22832. *-nacl|*-pnacl)
  22833. ARCH=nacl
  22834. CheckNativeClient
  22835. CheckDummyAudio
  22836. CheckDummyVideo
  22837. CheckOffscreenVideo
  22838. CheckInputEvents
  22839. CheckPTHREAD
  22840. CheckO_CLOEXEC
  22841. # Set up files for the timer library
  22842. if test x$enable_timers = xyes; then
  22843. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22844. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22845. have_timers=yes
  22846. fi
  22847. if test x$enable_filesystem = xyes; then
  22848. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22849. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22850. have_filesystem=yes
  22851. fi
  22852. ;;
  22853. *-*-emscripten* )
  22854. if test x$enable_video = xyes; then
  22855. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22856. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22857. have_video=yes
  22858. SUMMARY_video="${SUMMARY_video} emscripten"
  22859. fi
  22860. if test x$enable_audio = xyes; then
  22861. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22862. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22863. have_audio=yes
  22864. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22865. fi
  22866. CheckVisibilityHidden
  22867. CheckDeclarationAfterStatement
  22868. CheckDummyVideo
  22869. CheckOffscreenVideo
  22870. CheckDiskAudio
  22871. CheckDummyAudio
  22872. CheckPTHREAD
  22873. CheckDLOPEN
  22874. CheckClockGettime
  22875. CheckEmscriptenGLES
  22876. # Set up files for the misc library
  22877. if test x$enable_misc = xyes; then
  22878. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22879. have_misc=yes
  22880. fi
  22881. # Set up files for the power library
  22882. if test x$enable_power = xyes; then
  22883. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22884. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22885. have_power=yes
  22886. fi
  22887. # Set up files for the joystick library
  22888. if test x$enable_joystick = xyes; then
  22889. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22890. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22891. have_joystick=yes
  22892. fi
  22893. # Set up files for the filesystem library
  22894. if test x$enable_filesystem = xyes; then
  22895. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22897. have_filesystem=yes
  22898. fi
  22899. # Set up files for the timer library
  22900. if test x$enable_timers = xyes; then
  22901. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22902. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22903. have_timers=yes
  22904. fi
  22905. # Set up files for the locale library
  22906. if test x$enable_locale = xyes; then
  22907. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22908. have_locale=yes
  22909. fi
  22910. ;;
  22911. *-*-riscos*)
  22912. ARCH=riscos
  22913. CheckVisibilityHidden
  22914. CheckDeclarationAfterStatement
  22915. CheckDummyVideo
  22916. CheckOffscreenVideo
  22917. CheckDiskAudio
  22918. CheckDummyAudio
  22919. CheckDLOPEN
  22920. CheckO_CLOEXEC
  22921. CheckOSS
  22922. CheckPTHREAD
  22923. CheckClockGettime
  22924. # Set up files for the misc library
  22925. if test x$enable_misc = xyes; then
  22926. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22927. have_misc=yes
  22928. fi
  22929. # Set up files for the video library
  22930. if test x$enable_video = xyes; then
  22931. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22932. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22933. have_video=yes
  22934. SUMMARY_video="${SUMMARY_video} riscos"
  22935. fi
  22936. # Set up files for the filesystem library
  22937. if test x$enable_filesystem = xyes; then
  22938. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22939. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22940. have_filesystem=yes
  22941. fi
  22942. # Set up files for the timer library
  22943. if test x$enable_timers = xyes; then
  22944. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22945. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22946. have_timers=yes
  22947. fi
  22948. ;;
  22949. *-*-os2*)
  22950. ARCH=os2
  22951. if test "$build" != "$host"; then # cross-compiling
  22952. # Default cross-compile location
  22953. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22954. else
  22955. # Look for the location of the tools and install there
  22956. if test "$BUILD_PREFIX" != ""; then
  22957. ac_default_prefix=$BUILD_PREFIX
  22958. fi
  22959. fi
  22960. enable_static=no # disable static builds
  22961. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22962. CheckOS2
  22963. CheckDeclarationAfterStatement
  22964. CheckDummyVideo
  22965. CheckDiskAudio
  22966. CheckDummyAudio
  22967. CheckHIDAPI
  22968. # Set up the core platform files
  22969. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22970. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22971. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22972. fi
  22973. # Use the Unix locale APIs.
  22974. if test x$enable_locale = xyes; then
  22975. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22976. have_locale=yes
  22977. fi
  22978. # Set up files for the video library
  22979. if test x$enable_video = xyes; then
  22980. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22981. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22982. have_video=yes
  22983. SUMMARY_video="${SUMMARY_video} os/2"
  22984. fi
  22985. # Set up files for the audio library
  22986. if test x$enable_audio = xyes; then
  22987. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22988. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22989. have_audio=yes
  22990. SUMMARY_audio="${SUMMARY_audio} os/2"
  22991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22992. fi
  22993. # Set up files for the thread library
  22994. if test x$enable_threads = xyes; then
  22995. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22996. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22997. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22998. have_threads=yes
  22999. fi
  23000. # Set up files for the timer library
  23001. if test x$enable_timers = xyes; then
  23002. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  23003. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  23004. have_timers=yes
  23005. fi
  23006. # Set up files for the shared object loading library
  23007. if test x$enable_loadso = xyes; then
  23008. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23009. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23010. have_loadso=yes
  23011. fi
  23012. # Set up files for the filesystem library
  23013. if test x$enable_filesystem = xyes; then
  23014. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23015. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23016. have_filesystem=yes
  23017. fi
  23018. # Set up files for the joystick library
  23019. if test x$enable_joystick = xyes; then
  23020. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23021. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23022. have_joystick=yes
  23023. fi
  23024. ;;
  23025. *)
  23026. as_fn_error $? "
  23027. *** Unsupported host: Please add to configure.ac
  23028. " "$LINENO" 5
  23029. ;;
  23030. esac
  23031. CheckVirtualJoystick
  23032. # Check whether to install sdl2-config
  23033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23034. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23035. # Check whether --enable-sdl2-config was given.
  23036. if test "${enable_sdl2_config+set}" = set; then :
  23037. enableval=$enable_sdl2_config; case "${enableval}" in
  23038. yes) enable_sdl2_config="TRUE" ;;
  23039. no) enable_sdl2_config="FALSE" ;;
  23040. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23041. esac
  23042. else
  23043. enable_sdl2_config="TRUE"
  23044. fi
  23045. if test "$enable_sdl2_config" = "TRUE"; then
  23046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23047. $as_echo "yes" >&6; }
  23048. else
  23049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23050. $as_echo "no" >&6; }
  23051. fi
  23052. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23053. # Verify that we have all the platform specific files we need
  23054. if test x$have_audio != xyes; then
  23055. if test x$enable_audio = xyes; then
  23056. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23057. fi
  23058. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23059. fi
  23060. if test x$have_video != xyes; then
  23061. if test x$enable_video = xyes; then
  23062. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23063. fi
  23064. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23065. fi
  23066. if test x$have_misc != xyes; then
  23067. if test x$enable_misc = xyes; then
  23068. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23069. fi
  23070. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23071. fi
  23072. if test x$have_locale != xyes; then
  23073. if test x$enable_locale = xyes; then
  23074. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23075. fi
  23076. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23077. fi
  23078. if test x$have_joystick != xyes; then
  23079. if test x$enable_joystick = xyes; then
  23080. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23081. fi
  23082. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23083. fi
  23084. if test x$have_haptic != xyes; then
  23085. if test x$enable_haptic = xyes; then
  23086. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23087. fi
  23088. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23089. fi
  23090. if test x$have_sensor != xyes; then
  23091. if test x$enable_sensor = xyes; then
  23092. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23093. fi
  23094. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23095. fi
  23096. if test x$have_threads != xyes; then
  23097. if test x$enable_threads = xyes; then
  23098. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23099. fi
  23100. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23101. fi
  23102. if test x$have_timers != xyes; then
  23103. if test x$enable_timers = xyes; then
  23104. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23105. fi
  23106. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23107. fi
  23108. if test x$have_filesystem != xyes; then
  23109. if test x$enable_filesystem = xyes; then
  23110. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23111. fi
  23112. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23113. fi
  23114. if test x$have_loadso != xyes; then
  23115. if test x$enable_loadso = xyes; then
  23116. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23117. fi
  23118. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23119. fi
  23120. if test x$SDLMAIN_SOURCES = x; then
  23121. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23122. fi
  23123. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23124. if test x$video_wayland = xyes; then
  23125. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23126. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23127. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23128. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23129. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23130. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23131. echo ;\
  23132. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23133. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23134. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23135. echo ;\
  23136. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23137. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23138. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23139. echo ;\
  23140. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23141. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23142. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23143. done ;\
  23144. echo ;\
  23145. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23146. fi
  23147. OBJECTS=`echo $SOURCES`
  23148. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23149. for EXT in asm cc m c S; do
  23150. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23151. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23152. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23153. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23154. done
  23155. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23156. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23157. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23158. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23159. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23160. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23161. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23162. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23163. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23164. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23165. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23166. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23167. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23168. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23169. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23170. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23171. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23172. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23173. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23174. # Set runtime shared library paths as needed
  23175. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23176. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23177. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23179. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23180. have_enable_new_dtags=no
  23181. save_LDFLAGS="$LDFLAGS"
  23182. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23184. /* end confdefs.h. */
  23185. int
  23186. main ()
  23187. {
  23188. ;
  23189. return 0;
  23190. }
  23191. _ACEOF
  23192. if ac_fn_c_try_link "$LINENO"; then :
  23193. have_enable_new_dtags=yes
  23194. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23195. fi
  23196. rm -f core conftest.err conftest.$ac_objext \
  23197. conftest$ac_exeext conftest.$ac_ext
  23198. LDFLAGS="$save_LDFLAGS"
  23199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23200. $as_echo "$have_enable_new_dtags" >&6; }
  23201. fi
  23202. if test $ARCH = solaris; then
  23203. SDL_RLD_FLAGS="-R\${libdir}"
  23204. fi
  23205. else
  23206. SDL_RLD_FLAGS=""
  23207. fi
  23208. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23209. if test x$enable_shared = xyes; then
  23210. PKGCONFIG_LIBS_PRIV="
  23211. Libs.private:"
  23212. ENABLE_SHARED_TRUE=
  23213. ENABLE_SHARED_FALSE="#"
  23214. else
  23215. PKGCONFIG_LIBS_PRIV=
  23216. ENABLE_SHARED_TRUE="#"
  23217. ENABLE_SHARED_FALSE=
  23218. fi
  23219. if test x$enable_static = xyes; then
  23220. ENABLE_STATIC_TRUE=
  23221. ENABLE_STATIC_FALSE="#"
  23222. else
  23223. ENABLE_STATIC_TRUE="#"
  23224. ENABLE_STATIC_FALSE=
  23225. fi
  23226. cat >Makefile.rules <<__EOF__
  23227. # Build rules for objects
  23228. -include \$(OBJECTS:.lo=.d)
  23229. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23230. $srcdir/src/SDL.c: update-revision
  23231. $DEPENDS
  23232. $VERSION_DEPENDS
  23233. $SDLMAIN_DEPENDS
  23234. $SDLTEST_DEPENDS
  23235. $WAYLAND_PROTOCOLS_DEPENDS
  23236. __EOF__
  23237. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23238. ac_config_commands="$ac_config_commands sdl2_config"
  23239. SUMMARY="SDL2 Configure Summary:\n"
  23240. if test x$enable_shared = xyes; then
  23241. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23242. fi
  23243. if test x$enable_static = xyes; then
  23244. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23245. fi
  23246. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23247. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23248. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23249. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23250. if test x$have_x = xyes; then
  23251. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23252. fi
  23253. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23254. if test x$have_joystick_virtual = xyes; then
  23255. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23256. else
  23257. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23258. fi
  23259. if test x$have_samplerate_h_hdr = xyes; then
  23260. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23261. else
  23262. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23263. fi
  23264. if test x$have_libudev_h_hdr = xyes; then
  23265. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23266. else
  23267. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23268. fi
  23269. if test x$have_dbus_dbus_h_hdr = xyes; then
  23270. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23271. else
  23272. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23273. fi
  23274. if test x$enable_ime = xyes; then
  23275. SUMMARY="${SUMMARY}Using ime : YES\n"
  23276. else
  23277. SUMMARY="${SUMMARY}Using ime : NO\n"
  23278. fi
  23279. if test x$have_ibus_ibus_h_hdr = xyes; then
  23280. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23281. else
  23282. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23283. fi
  23284. if test x$have_fcitx = xyes; then
  23285. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23286. else
  23287. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23288. fi
  23289. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23290. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23291. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23292. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23293. SUMMARY="${SUMMARY}configure script with:\n"
  23294. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23295. fi
  23296. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23297. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23298. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23299. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23300. SUMMARY="${SUMMARY}configure script with:\n"
  23301. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23302. fi
  23303. ac_config_commands="$ac_config_commands summary"
  23304. cat >confcache <<\_ACEOF
  23305. # This file is a shell script that caches the results of configure
  23306. # tests run on this system so they can be shared between configure
  23307. # scripts and configure runs, see configure's option --config-cache.
  23308. # It is not useful on other systems. If it contains results you don't
  23309. # want to keep, you may remove or edit it.
  23310. #
  23311. # config.status only pays attention to the cache file if you give it
  23312. # the --recheck option to rerun configure.
  23313. #
  23314. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23315. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23316. # following values.
  23317. _ACEOF
  23318. # The following way of writing the cache mishandles newlines in values,
  23319. # but we know of no workaround that is simple, portable, and efficient.
  23320. # So, we kill variables containing newlines.
  23321. # Ultrix sh set writes to stderr and can't be redirected directly,
  23322. # and sets the high bit in the cache file unless we assign to the vars.
  23323. (
  23324. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23325. eval ac_val=\$$ac_var
  23326. case $ac_val in #(
  23327. *${as_nl}*)
  23328. case $ac_var in #(
  23329. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23330. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23331. esac
  23332. case $ac_var in #(
  23333. _ | IFS | as_nl) ;; #(
  23334. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23335. *) { eval $ac_var=; unset $ac_var;} ;;
  23336. esac ;;
  23337. esac
  23338. done
  23339. (set) 2>&1 |
  23340. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23341. *${as_nl}ac_space=\ *)
  23342. # `set' does not quote correctly, so add quotes: double-quote
  23343. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23344. sed -n \
  23345. "s/'/'\\\\''/g;
  23346. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23347. ;; #(
  23348. *)
  23349. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23350. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23351. ;;
  23352. esac |
  23353. sort
  23354. ) |
  23355. sed '
  23356. /^ac_cv_env_/b end
  23357. t clear
  23358. :clear
  23359. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23360. t end
  23361. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23362. :end' >>confcache
  23363. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23364. if test -w "$cache_file"; then
  23365. if test "x$cache_file" != "x/dev/null"; then
  23366. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23367. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23368. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23369. cat confcache >"$cache_file"
  23370. else
  23371. case $cache_file in #(
  23372. */* | ?:*)
  23373. mv -f confcache "$cache_file"$$ &&
  23374. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23375. *)
  23376. mv -f confcache "$cache_file" ;;
  23377. esac
  23378. fi
  23379. fi
  23380. else
  23381. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23382. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23383. fi
  23384. fi
  23385. rm -f confcache
  23386. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23387. # Let make expand exec_prefix.
  23388. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23389. DEFS=-DHAVE_CONFIG_H
  23390. ac_libobjs=
  23391. ac_ltlibobjs=
  23392. U=
  23393. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23394. # 1. Remove the extension, and $U if already installed.
  23395. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23396. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23397. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23398. # will be set to the directory where LIBOBJS objects are built.
  23399. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23400. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23401. done
  23402. LIBOBJS=$ac_libobjs
  23403. LTLIBOBJS=$ac_ltlibobjs
  23404. : "${CONFIG_STATUS=./config.status}"
  23405. ac_write_fail=0
  23406. ac_clean_files_save=$ac_clean_files
  23407. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23408. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23409. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23410. as_write_fail=0
  23411. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23412. #! $SHELL
  23413. # Generated by $as_me.
  23414. # Run this file to recreate the current configuration.
  23415. # Compiler output produced by configure, useful for debugging
  23416. # configure, is in config.log if it exists.
  23417. debug=false
  23418. ac_cs_recheck=false
  23419. ac_cs_silent=false
  23420. SHELL=\${CONFIG_SHELL-$SHELL}
  23421. export SHELL
  23422. _ASEOF
  23423. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23424. ## -------------------- ##
  23425. ## M4sh Initialization. ##
  23426. ## -------------------- ##
  23427. # Be more Bourne compatible
  23428. DUALCASE=1; export DUALCASE # for MKS sh
  23429. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23430. emulate sh
  23431. NULLCMD=:
  23432. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23433. # is contrary to our usage. Disable this feature.
  23434. alias -g '${1+"$@"}'='"$@"'
  23435. setopt NO_GLOB_SUBST
  23436. else
  23437. case `(set -o) 2>/dev/null` in #(
  23438. *posix*) :
  23439. set -o posix ;; #(
  23440. *) :
  23441. ;;
  23442. esac
  23443. fi
  23444. as_nl='
  23445. '
  23446. export as_nl
  23447. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23448. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23449. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23450. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23451. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23452. # but without wasting forks for bash or zsh.
  23453. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23454. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23455. as_echo='print -r --'
  23456. as_echo_n='print -rn --'
  23457. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23458. as_echo='printf %s\n'
  23459. as_echo_n='printf %s'
  23460. else
  23461. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23462. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23463. as_echo_n='/usr/ucb/echo -n'
  23464. else
  23465. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23466. as_echo_n_body='eval
  23467. arg=$1;
  23468. case $arg in #(
  23469. *"$as_nl"*)
  23470. expr "X$arg" : "X\\(.*\\)$as_nl";
  23471. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23472. esac;
  23473. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23474. '
  23475. export as_echo_n_body
  23476. as_echo_n='sh -c $as_echo_n_body as_echo'
  23477. fi
  23478. export as_echo_body
  23479. as_echo='sh -c $as_echo_body as_echo'
  23480. fi
  23481. # The user is always right.
  23482. if test "${PATH_SEPARATOR+set}" != set; then
  23483. PATH_SEPARATOR=:
  23484. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23485. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23486. PATH_SEPARATOR=';'
  23487. }
  23488. fi
  23489. # IFS
  23490. # We need space, tab and new line, in precisely that order. Quoting is
  23491. # there to prevent editors from complaining about space-tab.
  23492. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23493. # splitting by setting IFS to empty value.)
  23494. IFS=" "" $as_nl"
  23495. # Find who we are. Look in the path if we contain no directory separator.
  23496. as_myself=
  23497. case $0 in #((
  23498. *[\\/]* ) as_myself=$0 ;;
  23499. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23500. for as_dir in $PATH
  23501. do
  23502. IFS=$as_save_IFS
  23503. test -z "$as_dir" && as_dir=.
  23504. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23505. done
  23506. IFS=$as_save_IFS
  23507. ;;
  23508. esac
  23509. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23510. # in which case we are not to be found in the path.
  23511. if test "x$as_myself" = x; then
  23512. as_myself=$0
  23513. fi
  23514. if test ! -f "$as_myself"; then
  23515. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23516. exit 1
  23517. fi
  23518. # Unset variables that we do not need and which cause bugs (e.g. in
  23519. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23520. # suppresses any "Segmentation fault" message there. '((' could
  23521. # trigger a bug in pdksh 5.2.14.
  23522. for as_var in BASH_ENV ENV MAIL MAILPATH
  23523. do eval test x\${$as_var+set} = xset \
  23524. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23525. done
  23526. PS1='$ '
  23527. PS2='> '
  23528. PS4='+ '
  23529. # NLS nuisances.
  23530. LC_ALL=C
  23531. export LC_ALL
  23532. LANGUAGE=C
  23533. export LANGUAGE
  23534. # CDPATH.
  23535. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23536. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23537. # ----------------------------------------
  23538. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23539. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23540. # script with STATUS, using 1 if that was 0.
  23541. as_fn_error ()
  23542. {
  23543. as_status=$1; test $as_status -eq 0 && as_status=1
  23544. if test "$4"; then
  23545. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23546. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23547. fi
  23548. $as_echo "$as_me: error: $2" >&2
  23549. as_fn_exit $as_status
  23550. } # as_fn_error
  23551. # as_fn_set_status STATUS
  23552. # -----------------------
  23553. # Set $? to STATUS, without forking.
  23554. as_fn_set_status ()
  23555. {
  23556. return $1
  23557. } # as_fn_set_status
  23558. # as_fn_exit STATUS
  23559. # -----------------
  23560. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23561. as_fn_exit ()
  23562. {
  23563. set +e
  23564. as_fn_set_status $1
  23565. exit $1
  23566. } # as_fn_exit
  23567. # as_fn_unset VAR
  23568. # ---------------
  23569. # Portably unset VAR.
  23570. as_fn_unset ()
  23571. {
  23572. { eval $1=; unset $1;}
  23573. }
  23574. as_unset=as_fn_unset
  23575. # as_fn_append VAR VALUE
  23576. # ----------------------
  23577. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23578. # advantage of any shell optimizations that allow amortized linear growth over
  23579. # repeated appends, instead of the typical quadratic growth present in naive
  23580. # implementations.
  23581. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23582. eval 'as_fn_append ()
  23583. {
  23584. eval $1+=\$2
  23585. }'
  23586. else
  23587. as_fn_append ()
  23588. {
  23589. eval $1=\$$1\$2
  23590. }
  23591. fi # as_fn_append
  23592. # as_fn_arith ARG...
  23593. # ------------------
  23594. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23595. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23596. # must be portable across $(()) and expr.
  23597. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23598. eval 'as_fn_arith ()
  23599. {
  23600. as_val=$(( $* ))
  23601. }'
  23602. else
  23603. as_fn_arith ()
  23604. {
  23605. as_val=`expr "$@" || test $? -eq 1`
  23606. }
  23607. fi # as_fn_arith
  23608. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23609. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23610. as_expr=expr
  23611. else
  23612. as_expr=false
  23613. fi
  23614. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23615. as_basename=basename
  23616. else
  23617. as_basename=false
  23618. fi
  23619. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23620. as_dirname=dirname
  23621. else
  23622. as_dirname=false
  23623. fi
  23624. as_me=`$as_basename -- "$0" ||
  23625. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23626. X"$0" : 'X\(//\)$' \| \
  23627. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23628. $as_echo X/"$0" |
  23629. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23630. s//\1/
  23631. q
  23632. }
  23633. /^X\/\(\/\/\)$/{
  23634. s//\1/
  23635. q
  23636. }
  23637. /^X\/\(\/\).*/{
  23638. s//\1/
  23639. q
  23640. }
  23641. s/.*/./; q'`
  23642. # Avoid depending upon Character Ranges.
  23643. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23644. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23645. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23646. as_cr_digits='0123456789'
  23647. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23648. ECHO_C= ECHO_N= ECHO_T=
  23649. case `echo -n x` in #(((((
  23650. -n*)
  23651. case `echo 'xy\c'` in
  23652. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23653. xy) ECHO_C='\c';;
  23654. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23655. ECHO_T=' ';;
  23656. esac;;
  23657. *)
  23658. ECHO_N='-n';;
  23659. esac
  23660. rm -f conf$$ conf$$.exe conf$$.file
  23661. if test -d conf$$.dir; then
  23662. rm -f conf$$.dir/conf$$.file
  23663. else
  23664. rm -f conf$$.dir
  23665. mkdir conf$$.dir 2>/dev/null
  23666. fi
  23667. if (echo >conf$$.file) 2>/dev/null; then
  23668. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23669. as_ln_s='ln -s'
  23670. # ... but there are two gotchas:
  23671. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23672. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23673. # In both cases, we have to default to `cp -pR'.
  23674. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23675. as_ln_s='cp -pR'
  23676. elif ln conf$$.file conf$$ 2>/dev/null; then
  23677. as_ln_s=ln
  23678. else
  23679. as_ln_s='cp -pR'
  23680. fi
  23681. else
  23682. as_ln_s='cp -pR'
  23683. fi
  23684. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23685. rmdir conf$$.dir 2>/dev/null
  23686. # as_fn_mkdir_p
  23687. # -------------
  23688. # Create "$as_dir" as a directory, including parents if necessary.
  23689. as_fn_mkdir_p ()
  23690. {
  23691. case $as_dir in #(
  23692. -*) as_dir=./$as_dir;;
  23693. esac
  23694. test -d "$as_dir" || eval $as_mkdir_p || {
  23695. as_dirs=
  23696. while :; do
  23697. case $as_dir in #(
  23698. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23699. *) as_qdir=$as_dir;;
  23700. esac
  23701. as_dirs="'$as_qdir' $as_dirs"
  23702. as_dir=`$as_dirname -- "$as_dir" ||
  23703. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23704. X"$as_dir" : 'X\(//\)[^/]' \| \
  23705. X"$as_dir" : 'X\(//\)$' \| \
  23706. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23707. $as_echo X"$as_dir" |
  23708. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23709. s//\1/
  23710. q
  23711. }
  23712. /^X\(\/\/\)[^/].*/{
  23713. s//\1/
  23714. q
  23715. }
  23716. /^X\(\/\/\)$/{
  23717. s//\1/
  23718. q
  23719. }
  23720. /^X\(\/\).*/{
  23721. s//\1/
  23722. q
  23723. }
  23724. s/.*/./; q'`
  23725. test -d "$as_dir" && break
  23726. done
  23727. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23728. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23729. } # as_fn_mkdir_p
  23730. if mkdir -p . 2>/dev/null; then
  23731. as_mkdir_p='mkdir -p "$as_dir"'
  23732. else
  23733. test -d ./-p && rmdir ./-p
  23734. as_mkdir_p=false
  23735. fi
  23736. # as_fn_executable_p FILE
  23737. # -----------------------
  23738. # Test if FILE is an executable regular file.
  23739. as_fn_executable_p ()
  23740. {
  23741. test -f "$1" && test -x "$1"
  23742. } # as_fn_executable_p
  23743. as_test_x='test -x'
  23744. as_executable_p=as_fn_executable_p
  23745. # Sed expression to map a string onto a valid CPP name.
  23746. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23747. # Sed expression to map a string onto a valid variable name.
  23748. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23749. exec 6>&1
  23750. ## ----------------------------------- ##
  23751. ## Main body of $CONFIG_STATUS script. ##
  23752. ## ----------------------------------- ##
  23753. _ASEOF
  23754. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23756. # Save the log message, to keep $0 and so on meaningful, and to
  23757. # report actual input values of CONFIG_FILES etc. instead of their
  23758. # values after options handling.
  23759. ac_log="
  23760. This file was extended by $as_me, which was
  23761. generated by GNU Autoconf 2.69. Invocation command line was
  23762. CONFIG_FILES = $CONFIG_FILES
  23763. CONFIG_HEADERS = $CONFIG_HEADERS
  23764. CONFIG_LINKS = $CONFIG_LINKS
  23765. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23766. $ $0 $@
  23767. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23768. "
  23769. _ACEOF
  23770. case $ac_config_files in *"
  23771. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23772. esac
  23773. case $ac_config_headers in *"
  23774. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23775. esac
  23776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23777. # Files that config.status was made for.
  23778. config_files="$ac_config_files"
  23779. config_headers="$ac_config_headers"
  23780. config_commands="$ac_config_commands"
  23781. _ACEOF
  23782. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23783. ac_cs_usage="\
  23784. \`$as_me' instantiates files and other configuration actions
  23785. from templates according to the current configuration. Unless the files
  23786. and actions are specified as TAGs, all are instantiated by default.
  23787. Usage: $0 [OPTION]... [TAG]...
  23788. -h, --help print this help, then exit
  23789. -V, --version print version number and configuration settings, then exit
  23790. --config print configuration, then exit
  23791. -q, --quiet, --silent
  23792. do not print progress messages
  23793. -d, --debug don't remove temporary files
  23794. --recheck update $as_me by reconfiguring in the same conditions
  23795. --file=FILE[:TEMPLATE]
  23796. instantiate the configuration file FILE
  23797. --header=FILE[:TEMPLATE]
  23798. instantiate the configuration header FILE
  23799. Configuration files:
  23800. $config_files
  23801. Configuration headers:
  23802. $config_headers
  23803. Configuration commands:
  23804. $config_commands
  23805. Report bugs to the package provider."
  23806. _ACEOF
  23807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23808. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23809. ac_cs_version="\\
  23810. config.status
  23811. configured by $0, generated by GNU Autoconf 2.69,
  23812. with options \\"\$ac_cs_config\\"
  23813. Copyright (C) 2012 Free Software Foundation, Inc.
  23814. This config.status script is free software; the Free Software Foundation
  23815. gives unlimited permission to copy, distribute and modify it."
  23816. ac_pwd='$ac_pwd'
  23817. srcdir='$srcdir'
  23818. INSTALL='$INSTALL'
  23819. AWK='$AWK'
  23820. test -n "\$AWK" || AWK=awk
  23821. _ACEOF
  23822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23823. # The default lists apply if the user does not specify any file.
  23824. ac_need_defaults=:
  23825. while test $# != 0
  23826. do
  23827. case $1 in
  23828. --*=?*)
  23829. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23830. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23831. ac_shift=:
  23832. ;;
  23833. --*=)
  23834. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23835. ac_optarg=
  23836. ac_shift=:
  23837. ;;
  23838. *)
  23839. ac_option=$1
  23840. ac_optarg=$2
  23841. ac_shift=shift
  23842. ;;
  23843. esac
  23844. case $ac_option in
  23845. # Handling of the options.
  23846. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23847. ac_cs_recheck=: ;;
  23848. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23849. $as_echo "$ac_cs_version"; exit ;;
  23850. --config | --confi | --conf | --con | --co | --c )
  23851. $as_echo "$ac_cs_config"; exit ;;
  23852. --debug | --debu | --deb | --de | --d | -d )
  23853. debug=: ;;
  23854. --file | --fil | --fi | --f )
  23855. $ac_shift
  23856. case $ac_optarg in
  23857. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23858. '') as_fn_error $? "missing file argument" ;;
  23859. esac
  23860. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23861. ac_need_defaults=false;;
  23862. --header | --heade | --head | --hea )
  23863. $ac_shift
  23864. case $ac_optarg in
  23865. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23866. esac
  23867. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23868. ac_need_defaults=false;;
  23869. --he | --h)
  23870. # Conflict between --help and --header
  23871. as_fn_error $? "ambiguous option: \`$1'
  23872. Try \`$0 --help' for more information.";;
  23873. --help | --hel | -h )
  23874. $as_echo "$ac_cs_usage"; exit ;;
  23875. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23876. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23877. ac_cs_silent=: ;;
  23878. # This is an error.
  23879. -*) as_fn_error $? "unrecognized option: \`$1'
  23880. Try \`$0 --help' for more information." ;;
  23881. *) as_fn_append ac_config_targets " $1"
  23882. ac_need_defaults=false ;;
  23883. esac
  23884. shift
  23885. done
  23886. ac_configure_extra_args=
  23887. if $ac_cs_silent; then
  23888. exec 6>/dev/null
  23889. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23890. fi
  23891. _ACEOF
  23892. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23893. if \$ac_cs_recheck; then
  23894. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23895. shift
  23896. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23897. CONFIG_SHELL='$SHELL'
  23898. export CONFIG_SHELL
  23899. exec "\$@"
  23900. fi
  23901. _ACEOF
  23902. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23903. exec 5>>config.log
  23904. {
  23905. echo
  23906. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23907. ## Running $as_me. ##
  23908. _ASBOX
  23909. $as_echo "$ac_log"
  23910. } >&5
  23911. _ACEOF
  23912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23913. #
  23914. # INIT-COMMANDS
  23915. #
  23916. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23917. # if CDPATH is set.
  23918. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23919. sed_quote_subst='$sed_quote_subst'
  23920. double_quote_subst='$double_quote_subst'
  23921. delay_variable_subst='$delay_variable_subst'
  23922. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23923. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23924. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23925. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23926. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23927. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23928. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23929. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23930. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23931. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23932. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23933. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23934. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23935. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23936. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23937. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23938. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23939. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23940. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23941. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23942. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23943. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23944. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23945. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23946. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23947. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23948. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23949. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23950. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23951. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23952. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23953. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23954. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23955. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23956. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23957. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23958. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23959. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23960. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23961. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23962. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23963. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23964. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23965. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23966. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23967. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23968. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23969. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23970. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23971. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23972. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23973. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23974. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23975. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23976. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23977. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23978. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23979. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23980. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23981. 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"`'
  23982. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23983. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23984. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23985. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23986. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23987. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23988. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23989. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23990. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23991. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23992. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23993. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23994. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23995. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23996. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23997. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23998. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23999. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24000. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24001. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24002. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24003. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24004. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24005. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24006. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24007. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24008. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24009. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24010. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24011. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24012. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24013. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24014. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24015. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24016. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24017. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24018. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24019. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24020. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24021. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24022. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24023. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24024. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24025. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24026. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24027. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24028. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24029. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24030. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24031. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24032. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24033. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24034. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24035. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24036. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24037. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24038. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24039. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24040. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24041. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24042. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24043. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24044. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24045. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24046. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24047. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24048. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24049. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24050. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24051. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24052. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24053. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24054. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24055. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24056. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24057. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24058. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24059. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24060. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24061. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24062. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24063. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24064. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24065. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24066. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24067. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24068. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24069. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24070. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24071. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24072. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24073. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24074. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24075. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24076. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24077. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24078. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24079. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24080. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24081. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24082. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24083. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24084. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24085. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24086. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24087. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24088. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24089. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24090. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24091. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24092. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24093. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24094. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24095. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24096. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24097. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24098. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24099. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24100. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24101. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24102. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24103. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24104. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24105. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24106. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24107. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24108. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24109. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24110. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24111. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24112. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24113. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24114. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24115. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24116. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24117. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24118. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24119. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24120. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24121. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24122. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24123. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24124. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24125. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24126. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24127. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24128. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24129. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24130. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24131. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24132. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24133. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24134. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24135. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24136. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24137. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24138. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24139. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24140. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24141. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24142. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24143. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24144. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24145. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24146. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24147. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24148. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24149. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24150. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24151. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24152. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24153. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24154. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24155. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24156. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24157. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24158. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24159. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24160. LTCC='$LTCC'
  24161. LTCFLAGS='$LTCFLAGS'
  24162. compiler='$compiler_DEFAULT'
  24163. # A function that is used when there is no print builtin or printf.
  24164. func_fallback_echo ()
  24165. {
  24166. eval 'cat <<_LTECHO_EOF
  24167. \$1
  24168. _LTECHO_EOF'
  24169. }
  24170. # Quote evaled strings.
  24171. for var in AS \
  24172. DLLTOOL \
  24173. OBJDUMP \
  24174. SHELL \
  24175. ECHO \
  24176. PATH_SEPARATOR \
  24177. SED \
  24178. GREP \
  24179. EGREP \
  24180. FGREP \
  24181. LD \
  24182. NM \
  24183. LN_S \
  24184. lt_SP2NL \
  24185. lt_NL2SP \
  24186. reload_flag \
  24187. deplibs_check_method \
  24188. file_magic_cmd \
  24189. file_magic_glob \
  24190. want_nocaseglob \
  24191. sharedlib_from_linklib_cmd \
  24192. AR \
  24193. AR_FLAGS \
  24194. archiver_list_spec \
  24195. STRIP \
  24196. RANLIB \
  24197. CC \
  24198. CFLAGS \
  24199. compiler \
  24200. lt_cv_sys_global_symbol_pipe \
  24201. lt_cv_sys_global_symbol_to_cdecl \
  24202. lt_cv_sys_global_symbol_to_import \
  24203. lt_cv_sys_global_symbol_to_c_name_address \
  24204. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24205. lt_cv_nm_interface \
  24206. nm_file_list_spec \
  24207. lt_cv_truncate_bin \
  24208. lt_prog_compiler_no_builtin_flag \
  24209. lt_prog_compiler_pic \
  24210. lt_prog_compiler_wl \
  24211. lt_prog_compiler_static \
  24212. lt_cv_prog_compiler_c_o \
  24213. need_locks \
  24214. MANIFEST_TOOL \
  24215. DSYMUTIL \
  24216. NMEDIT \
  24217. LIPO \
  24218. OTOOL \
  24219. OTOOL64 \
  24220. shrext_cmds \
  24221. export_dynamic_flag_spec \
  24222. whole_archive_flag_spec \
  24223. compiler_needs_object \
  24224. with_gnu_ld \
  24225. allow_undefined_flag \
  24226. no_undefined_flag \
  24227. hardcode_libdir_flag_spec \
  24228. hardcode_libdir_separator \
  24229. exclude_expsyms \
  24230. include_expsyms \
  24231. file_list_spec \
  24232. variables_saved_for_relink \
  24233. libname_spec \
  24234. library_names_spec \
  24235. soname_spec \
  24236. install_override_mode \
  24237. finish_eval \
  24238. old_striplib \
  24239. striplib \
  24240. compiler_lib_search_dirs \
  24241. predep_objects \
  24242. postdep_objects \
  24243. predeps \
  24244. postdeps \
  24245. compiler_lib_search_path \
  24246. LD_RC \
  24247. LD_CXX \
  24248. reload_flag_RC \
  24249. reload_flag_CXX \
  24250. compiler_RC \
  24251. compiler_CXX \
  24252. lt_prog_compiler_no_builtin_flag_RC \
  24253. lt_prog_compiler_no_builtin_flag_CXX \
  24254. lt_prog_compiler_pic_RC \
  24255. lt_prog_compiler_pic_CXX \
  24256. lt_prog_compiler_wl_RC \
  24257. lt_prog_compiler_wl_CXX \
  24258. lt_prog_compiler_static_RC \
  24259. lt_prog_compiler_static_CXX \
  24260. lt_cv_prog_compiler_c_o_RC \
  24261. lt_cv_prog_compiler_c_o_CXX \
  24262. export_dynamic_flag_spec_RC \
  24263. export_dynamic_flag_spec_CXX \
  24264. whole_archive_flag_spec_RC \
  24265. whole_archive_flag_spec_CXX \
  24266. compiler_needs_object_RC \
  24267. compiler_needs_object_CXX \
  24268. with_gnu_ld_RC \
  24269. with_gnu_ld_CXX \
  24270. allow_undefined_flag_RC \
  24271. allow_undefined_flag_CXX \
  24272. no_undefined_flag_RC \
  24273. no_undefined_flag_CXX \
  24274. hardcode_libdir_flag_spec_RC \
  24275. hardcode_libdir_flag_spec_CXX \
  24276. hardcode_libdir_separator_RC \
  24277. hardcode_libdir_separator_CXX \
  24278. exclude_expsyms_RC \
  24279. exclude_expsyms_CXX \
  24280. include_expsyms_RC \
  24281. include_expsyms_CXX \
  24282. file_list_spec_RC \
  24283. file_list_spec_CXX \
  24284. compiler_lib_search_dirs_RC \
  24285. compiler_lib_search_dirs_CXX \
  24286. predep_objects_RC \
  24287. predep_objects_CXX \
  24288. postdep_objects_RC \
  24289. postdep_objects_CXX \
  24290. predeps_RC \
  24291. predeps_CXX \
  24292. postdeps_RC \
  24293. postdeps_CXX \
  24294. compiler_lib_search_path_RC \
  24295. compiler_lib_search_path_CXX; do
  24296. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24297. *[\\\\\\\`\\"\\\$]*)
  24298. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24299. ;;
  24300. *)
  24301. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24302. ;;
  24303. esac
  24304. done
  24305. # Double-quote double-evaled strings.
  24306. for var in reload_cmds \
  24307. old_postinstall_cmds \
  24308. old_postuninstall_cmds \
  24309. old_archive_cmds \
  24310. extract_expsyms_cmds \
  24311. old_archive_from_new_cmds \
  24312. old_archive_from_expsyms_cmds \
  24313. archive_cmds \
  24314. archive_expsym_cmds \
  24315. module_cmds \
  24316. module_expsym_cmds \
  24317. export_symbols_cmds \
  24318. prelink_cmds \
  24319. postlink_cmds \
  24320. postinstall_cmds \
  24321. postuninstall_cmds \
  24322. finish_cmds \
  24323. sys_lib_search_path_spec \
  24324. configure_time_dlsearch_path \
  24325. configure_time_lt_sys_library_path \
  24326. reload_cmds_RC \
  24327. reload_cmds_CXX \
  24328. old_archive_cmds_RC \
  24329. old_archive_cmds_CXX \
  24330. old_archive_from_new_cmds_RC \
  24331. old_archive_from_new_cmds_CXX \
  24332. old_archive_from_expsyms_cmds_RC \
  24333. old_archive_from_expsyms_cmds_CXX \
  24334. archive_cmds_RC \
  24335. archive_cmds_CXX \
  24336. archive_expsym_cmds_RC \
  24337. archive_expsym_cmds_CXX \
  24338. module_cmds_RC \
  24339. module_cmds_CXX \
  24340. module_expsym_cmds_RC \
  24341. module_expsym_cmds_CXX \
  24342. export_symbols_cmds_RC \
  24343. export_symbols_cmds_CXX \
  24344. prelink_cmds_RC \
  24345. prelink_cmds_CXX \
  24346. postlink_cmds_RC \
  24347. postlink_cmds_CXX; do
  24348. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24349. *[\\\\\\\`\\"\\\$]*)
  24350. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24351. ;;
  24352. *)
  24353. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24354. ;;
  24355. esac
  24356. done
  24357. ac_aux_dir='$ac_aux_dir'
  24358. # See if we are running on zsh, and set the options that allow our
  24359. # commands through without removal of \ escapes INIT.
  24360. if test -n "\${ZSH_VERSION+set}"; then
  24361. setopt NO_GLOB_SUBST
  24362. fi
  24363. PACKAGE='$PACKAGE'
  24364. VERSION='$VERSION'
  24365. RM='$RM'
  24366. ofile='$ofile'
  24367. SUMMARY="$SUMMARY"
  24368. _ACEOF
  24369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24370. # Handling of arguments.
  24371. for ac_config_target in $ac_config_targets
  24372. do
  24373. case $ac_config_target in
  24374. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24375. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24376. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24377. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24378. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24379. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24380. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24381. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24382. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24383. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24384. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24385. esac
  24386. done
  24387. # If the user did not use the arguments to specify the items to instantiate,
  24388. # then the envvar interface is used. Set only those that are not.
  24389. # We use the long form for the default assignment because of an extremely
  24390. # bizarre bug on SunOS 4.1.3.
  24391. if $ac_need_defaults; then
  24392. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24393. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24394. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24395. fi
  24396. # Have a temporary directory for convenience. Make it in the build tree
  24397. # simply because there is no reason against having it here, and in addition,
  24398. # creating and moving files from /tmp can sometimes cause problems.
  24399. # Hook for its removal unless debugging.
  24400. # Note that there is a small window in which the directory will not be cleaned:
  24401. # after its creation but before its name has been assigned to `$tmp'.
  24402. $debug ||
  24403. {
  24404. tmp= ac_tmp=
  24405. trap 'exit_status=$?
  24406. : "${ac_tmp:=$tmp}"
  24407. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24408. ' 0
  24409. trap 'as_fn_exit 1' 1 2 13 15
  24410. }
  24411. # Create a (secure) tmp directory for tmp files.
  24412. {
  24413. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24414. test -d "$tmp"
  24415. } ||
  24416. {
  24417. tmp=./conf$$-$RANDOM
  24418. (umask 077 && mkdir "$tmp")
  24419. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24420. ac_tmp=$tmp
  24421. # Set up the scripts for CONFIG_FILES section.
  24422. # No need to generate them if there are no CONFIG_FILES.
  24423. # This happens for instance with `./config.status config.h'.
  24424. if test -n "$CONFIG_FILES"; then
  24425. ac_cr=`echo X | tr X '\015'`
  24426. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24427. # But we know of no other shell where ac_cr would be empty at this
  24428. # point, so we can use a bashism as a fallback.
  24429. if test "x$ac_cr" = x; then
  24430. eval ac_cr=\$\'\\r\'
  24431. fi
  24432. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24433. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24434. ac_cs_awk_cr='\\r'
  24435. else
  24436. ac_cs_awk_cr=$ac_cr
  24437. fi
  24438. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24439. _ACEOF
  24440. {
  24441. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24442. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24443. echo "_ACEOF"
  24444. } >conf$$subs.sh ||
  24445. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24446. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24447. ac_delim='%!_!# '
  24448. for ac_last_try in false false false false false :; do
  24449. . ./conf$$subs.sh ||
  24450. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24451. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24452. if test $ac_delim_n = $ac_delim_num; then
  24453. break
  24454. elif $ac_last_try; then
  24455. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24456. else
  24457. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24458. fi
  24459. done
  24460. rm -f conf$$subs.sh
  24461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24462. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24463. _ACEOF
  24464. sed -n '
  24465. h
  24466. s/^/S["/; s/!.*/"]=/
  24467. p
  24468. g
  24469. s/^[^!]*!//
  24470. :repl
  24471. t repl
  24472. s/'"$ac_delim"'$//
  24473. t delim
  24474. :nl
  24475. h
  24476. s/\(.\{148\}\)..*/\1/
  24477. t more1
  24478. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24479. p
  24480. n
  24481. b repl
  24482. :more1
  24483. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24484. p
  24485. g
  24486. s/.\{148\}//
  24487. t nl
  24488. :delim
  24489. h
  24490. s/\(.\{148\}\)..*/\1/
  24491. t more2
  24492. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24493. p
  24494. b
  24495. :more2
  24496. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24497. p
  24498. g
  24499. s/.\{148\}//
  24500. t delim
  24501. ' <conf$$subs.awk | sed '
  24502. /^[^""]/{
  24503. N
  24504. s/\n//
  24505. }
  24506. ' >>$CONFIG_STATUS || ac_write_fail=1
  24507. rm -f conf$$subs.awk
  24508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24509. _ACAWK
  24510. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24511. for (key in S) S_is_set[key] = 1
  24512. FS = ""
  24513. }
  24514. {
  24515. line = $ 0
  24516. nfields = split(line, field, "@")
  24517. substed = 0
  24518. len = length(field[1])
  24519. for (i = 2; i < nfields; i++) {
  24520. key = field[i]
  24521. keylen = length(key)
  24522. if (S_is_set[key]) {
  24523. value = S[key]
  24524. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24525. len += length(value) + length(field[++i])
  24526. substed = 1
  24527. } else
  24528. len += 1 + keylen
  24529. }
  24530. print line
  24531. }
  24532. _ACAWK
  24533. _ACEOF
  24534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24535. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24536. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24537. else
  24538. cat
  24539. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24540. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24541. _ACEOF
  24542. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24543. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24544. # trailing colons and then remove the whole line if VPATH becomes empty
  24545. # (actually we leave an empty line to preserve line numbers).
  24546. if test "x$srcdir" = x.; then
  24547. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24548. h
  24549. s///
  24550. s/^/:/
  24551. s/[ ]*$/:/
  24552. s/:\$(srcdir):/:/g
  24553. s/:\${srcdir}:/:/g
  24554. s/:@srcdir@:/:/g
  24555. s/^:*//
  24556. s/:*$//
  24557. x
  24558. s/\(=[ ]*\).*/\1/
  24559. G
  24560. s/\n//
  24561. s/^[^=]*=[ ]*$//
  24562. }'
  24563. fi
  24564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24565. fi # test -n "$CONFIG_FILES"
  24566. # Set up the scripts for CONFIG_HEADERS section.
  24567. # No need to generate them if there are no CONFIG_HEADERS.
  24568. # This happens for instance with `./config.status Makefile'.
  24569. if test -n "$CONFIG_HEADERS"; then
  24570. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24571. BEGIN {
  24572. _ACEOF
  24573. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24574. # here-document in config.status, that substitutes the proper values into
  24575. # config.h.in to produce config.h.
  24576. # Create a delimiter string that does not exist in confdefs.h, to ease
  24577. # handling of long lines.
  24578. ac_delim='%!_!# '
  24579. for ac_last_try in false false :; do
  24580. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24581. if test -z "$ac_tt"; then
  24582. break
  24583. elif $ac_last_try; then
  24584. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24585. else
  24586. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24587. fi
  24588. done
  24589. # For the awk script, D is an array of macro values keyed by name,
  24590. # likewise P contains macro parameters if any. Preserve backslash
  24591. # newline sequences.
  24592. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24593. sed -n '
  24594. s/.\{148\}/&'"$ac_delim"'/g
  24595. t rset
  24596. :rset
  24597. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24598. t def
  24599. d
  24600. :def
  24601. s/\\$//
  24602. t bsnl
  24603. s/["\\]/\\&/g
  24604. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24605. D["\1"]=" \3"/p
  24606. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24607. d
  24608. :bsnl
  24609. s/["\\]/\\&/g
  24610. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24611. D["\1"]=" \3\\\\\\n"\\/p
  24612. t cont
  24613. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24614. t cont
  24615. d
  24616. :cont
  24617. n
  24618. s/.\{148\}/&'"$ac_delim"'/g
  24619. t clear
  24620. :clear
  24621. s/\\$//
  24622. t bsnlc
  24623. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24624. d
  24625. :bsnlc
  24626. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24627. b cont
  24628. ' <confdefs.h | sed '
  24629. s/'"$ac_delim"'/"\\\
  24630. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24632. for (key in D) D_is_set[key] = 1
  24633. FS = ""
  24634. }
  24635. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24636. line = \$ 0
  24637. split(line, arg, " ")
  24638. if (arg[1] == "#") {
  24639. defundef = arg[2]
  24640. mac1 = arg[3]
  24641. } else {
  24642. defundef = substr(arg[1], 2)
  24643. mac1 = arg[2]
  24644. }
  24645. split(mac1, mac2, "(") #)
  24646. macro = mac2[1]
  24647. prefix = substr(line, 1, index(line, defundef) - 1)
  24648. if (D_is_set[macro]) {
  24649. # Preserve the white space surrounding the "#".
  24650. print prefix "define", macro P[macro] D[macro]
  24651. next
  24652. } else {
  24653. # Replace #undef with comments. This is necessary, for example,
  24654. # in the case of _POSIX_SOURCE, which is predefined and required
  24655. # on some systems where configure will not decide to define it.
  24656. if (defundef == "undef") {
  24657. print "/*", prefix defundef, macro, "*/"
  24658. next
  24659. }
  24660. }
  24661. }
  24662. { print }
  24663. _ACAWK
  24664. _ACEOF
  24665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24666. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24667. fi # test -n "$CONFIG_HEADERS"
  24668. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24669. shift
  24670. for ac_tag
  24671. do
  24672. case $ac_tag in
  24673. :[FHLC]) ac_mode=$ac_tag; continue;;
  24674. esac
  24675. case $ac_mode$ac_tag in
  24676. :[FHL]*:*);;
  24677. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24678. :[FH]-) ac_tag=-:-;;
  24679. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24680. esac
  24681. ac_save_IFS=$IFS
  24682. IFS=:
  24683. set x $ac_tag
  24684. IFS=$ac_save_IFS
  24685. shift
  24686. ac_file=$1
  24687. shift
  24688. case $ac_mode in
  24689. :L) ac_source=$1;;
  24690. :[FH])
  24691. ac_file_inputs=
  24692. for ac_f
  24693. do
  24694. case $ac_f in
  24695. -) ac_f="$ac_tmp/stdin";;
  24696. *) # Look for the file first in the build tree, then in the source tree
  24697. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24698. # because $ac_f cannot contain `:'.
  24699. test -f "$ac_f" ||
  24700. case $ac_f in
  24701. [\\/$]*) false;;
  24702. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24703. esac ||
  24704. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24705. esac
  24706. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24707. as_fn_append ac_file_inputs " '$ac_f'"
  24708. done
  24709. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24710. # use $as_me), people would be surprised to read:
  24711. # /* config.h. Generated by config.status. */
  24712. configure_input='Generated from '`
  24713. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24714. `' by configure.'
  24715. if test x"$ac_file" != x-; then
  24716. configure_input="$ac_file. $configure_input"
  24717. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24718. $as_echo "$as_me: creating $ac_file" >&6;}
  24719. fi
  24720. # Neutralize special characters interpreted by sed in replacement strings.
  24721. case $configure_input in #(
  24722. *\&* | *\|* | *\\* )
  24723. ac_sed_conf_input=`$as_echo "$configure_input" |
  24724. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24725. *) ac_sed_conf_input=$configure_input;;
  24726. esac
  24727. case $ac_tag in
  24728. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24729. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24730. esac
  24731. ;;
  24732. esac
  24733. ac_dir=`$as_dirname -- "$ac_file" ||
  24734. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24735. X"$ac_file" : 'X\(//\)[^/]' \| \
  24736. X"$ac_file" : 'X\(//\)$' \| \
  24737. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24738. $as_echo X"$ac_file" |
  24739. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24740. s//\1/
  24741. q
  24742. }
  24743. /^X\(\/\/\)[^/].*/{
  24744. s//\1/
  24745. q
  24746. }
  24747. /^X\(\/\/\)$/{
  24748. s//\1/
  24749. q
  24750. }
  24751. /^X\(\/\).*/{
  24752. s//\1/
  24753. q
  24754. }
  24755. s/.*/./; q'`
  24756. as_dir="$ac_dir"; as_fn_mkdir_p
  24757. ac_builddir=.
  24758. case "$ac_dir" in
  24759. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24760. *)
  24761. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24762. # A ".." for each directory in $ac_dir_suffix.
  24763. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24764. case $ac_top_builddir_sub in
  24765. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24766. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24767. esac ;;
  24768. esac
  24769. ac_abs_top_builddir=$ac_pwd
  24770. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24771. # for backward compatibility:
  24772. ac_top_builddir=$ac_top_build_prefix
  24773. case $srcdir in
  24774. .) # We are building in place.
  24775. ac_srcdir=.
  24776. ac_top_srcdir=$ac_top_builddir_sub
  24777. ac_abs_top_srcdir=$ac_pwd ;;
  24778. [\\/]* | ?:[\\/]* ) # Absolute name.
  24779. ac_srcdir=$srcdir$ac_dir_suffix;
  24780. ac_top_srcdir=$srcdir
  24781. ac_abs_top_srcdir=$srcdir ;;
  24782. *) # Relative name.
  24783. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24784. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24785. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24786. esac
  24787. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24788. case $ac_mode in
  24789. :F)
  24790. #
  24791. # CONFIG_FILE
  24792. #
  24793. case $INSTALL in
  24794. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24795. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24796. esac
  24797. _ACEOF
  24798. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24799. # If the template does not know about datarootdir, expand it.
  24800. # FIXME: This hack should be removed a few years after 2.60.
  24801. ac_datarootdir_hack=; ac_datarootdir_seen=
  24802. ac_sed_dataroot='
  24803. /datarootdir/ {
  24804. p
  24805. q
  24806. }
  24807. /@datadir@/p
  24808. /@docdir@/p
  24809. /@infodir@/p
  24810. /@localedir@/p
  24811. /@mandir@/p'
  24812. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24813. *datarootdir*) ac_datarootdir_seen=yes;;
  24814. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24816. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24817. _ACEOF
  24818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24819. ac_datarootdir_hack='
  24820. s&@datadir@&$datadir&g
  24821. s&@docdir@&$docdir&g
  24822. s&@infodir@&$infodir&g
  24823. s&@localedir@&$localedir&g
  24824. s&@mandir@&$mandir&g
  24825. s&\\\${datarootdir}&$datarootdir&g' ;;
  24826. esac
  24827. _ACEOF
  24828. # Neutralize VPATH when `$srcdir' = `.'.
  24829. # Shell code in configure.ac might set extrasub.
  24830. # FIXME: do we really want to maintain this feature?
  24831. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24832. ac_sed_extra="$ac_vpsub
  24833. $extrasub
  24834. _ACEOF
  24835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24836. :t
  24837. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24838. s|@configure_input@|$ac_sed_conf_input|;t t
  24839. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24840. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24841. s&@srcdir@&$ac_srcdir&;t t
  24842. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24843. s&@top_srcdir@&$ac_top_srcdir&;t t
  24844. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24845. s&@builddir@&$ac_builddir&;t t
  24846. s&@abs_builddir@&$ac_abs_builddir&;t t
  24847. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24848. s&@INSTALL@&$ac_INSTALL&;t t
  24849. $ac_datarootdir_hack
  24850. "
  24851. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24852. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24853. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24854. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24855. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24856. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24858. which seems to be undefined. Please make sure it is defined" >&5
  24859. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24860. which seems to be undefined. Please make sure it is defined" >&2;}
  24861. rm -f "$ac_tmp/stdin"
  24862. case $ac_file in
  24863. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24864. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24865. esac \
  24866. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24867. ;;
  24868. :H)
  24869. #
  24870. # CONFIG_HEADER
  24871. #
  24872. if test x"$ac_file" != x-; then
  24873. {
  24874. $as_echo "/* $configure_input */" \
  24875. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24876. } >"$ac_tmp/config.h" \
  24877. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24878. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24879. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24880. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24881. else
  24882. rm -f "$ac_file"
  24883. mv "$ac_tmp/config.h" "$ac_file" \
  24884. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24885. fi
  24886. else
  24887. $as_echo "/* $configure_input */" \
  24888. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24889. || as_fn_error $? "could not create -" "$LINENO" 5
  24890. fi
  24891. ;;
  24892. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24893. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24894. ;;
  24895. esac
  24896. case $ac_file$ac_mode in
  24897. "libtool":C)
  24898. # See if we are running on zsh, and set the options that allow our
  24899. # commands through without removal of \ escapes.
  24900. if test -n "${ZSH_VERSION+set}"; then
  24901. setopt NO_GLOB_SUBST
  24902. fi
  24903. cfgfile=${ofile}T
  24904. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24905. $RM "$cfgfile"
  24906. cat <<_LT_EOF >> "$cfgfile"
  24907. #! $SHELL
  24908. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24909. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24910. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24911. # Provide generalized library-building support services.
  24912. # Written by Gordon Matzigkeit, 1996
  24913. # Copyright (C) 2014 Free Software Foundation, Inc.
  24914. # This is free software; see the source for copying conditions. There is NO
  24915. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24916. # GNU Libtool is free software; you can redistribute it and/or modify
  24917. # it under the terms of the GNU General Public License as published by
  24918. # the Free Software Foundation; either version 2 of of the License, or
  24919. # (at your option) any later version.
  24920. #
  24921. # As a special exception to the GNU General Public License, if you
  24922. # distribute this file as part of a program or library that is built
  24923. # using GNU Libtool, you may include this file under the same
  24924. # distribution terms that you use for the rest of that program.
  24925. #
  24926. # GNU Libtool is distributed in the hope that it will be useful, but
  24927. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24928. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24929. # GNU General Public License for more details.
  24930. #
  24931. # You should have received a copy of the GNU General Public License
  24932. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24933. # The names of the tagged configurations supported by this script.
  24934. available_tags='RC CXX '
  24935. # Configured defaults for sys_lib_dlsearch_path munging.
  24936. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24937. # ### BEGIN LIBTOOL CONFIG
  24938. # Which release of libtool.m4 was used?
  24939. macro_version=$macro_version
  24940. macro_revision=$macro_revision
  24941. # Assembler program.
  24942. AS=$lt_AS
  24943. # DLL creation program.
  24944. DLLTOOL=$lt_DLLTOOL
  24945. # Object dumper program.
  24946. OBJDUMP=$lt_OBJDUMP
  24947. # Whether or not to build shared libraries.
  24948. build_libtool_libs=$enable_shared
  24949. # Whether or not to build static libraries.
  24950. build_old_libs=$enable_static
  24951. # What type of objects to build.
  24952. pic_mode=$pic_mode
  24953. # Whether or not to optimize for fast installation.
  24954. fast_install=$enable_fast_install
  24955. # Shared archive member basename,for filename based shared library versioning on AIX.
  24956. shared_archive_member_spec=$shared_archive_member_spec
  24957. # Shell to use when invoking shell scripts.
  24958. SHELL=$lt_SHELL
  24959. # An echo program that protects backslashes.
  24960. ECHO=$lt_ECHO
  24961. # The PATH separator for the build system.
  24962. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24963. # The host system.
  24964. host_alias=$host_alias
  24965. host=$host
  24966. host_os=$host_os
  24967. # The build system.
  24968. build_alias=$build_alias
  24969. build=$build
  24970. build_os=$build_os
  24971. # A sed program that does not truncate output.
  24972. SED=$lt_SED
  24973. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24974. Xsed="\$SED -e 1s/^X//"
  24975. # A grep program that handles long lines.
  24976. GREP=$lt_GREP
  24977. # An ERE matcher.
  24978. EGREP=$lt_EGREP
  24979. # A literal string matcher.
  24980. FGREP=$lt_FGREP
  24981. # A BSD- or MS-compatible name lister.
  24982. NM=$lt_NM
  24983. # Whether we need soft or hard links.
  24984. LN_S=$lt_LN_S
  24985. # What is the maximum length of a command?
  24986. max_cmd_len=$max_cmd_len
  24987. # Object file suffix (normally "o").
  24988. objext=$ac_objext
  24989. # Executable file suffix (normally "").
  24990. exeext=$exeext
  24991. # whether the shell understands "unset".
  24992. lt_unset=$lt_unset
  24993. # turn spaces into newlines.
  24994. SP2NL=$lt_lt_SP2NL
  24995. # turn newlines into spaces.
  24996. NL2SP=$lt_lt_NL2SP
  24997. # convert \$build file names to \$host format.
  24998. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24999. # convert \$build files to toolchain format.
  25000. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25001. # Method to check whether dependent libraries are shared objects.
  25002. deplibs_check_method=$lt_deplibs_check_method
  25003. # Command to use when deplibs_check_method = "file_magic".
  25004. file_magic_cmd=$lt_file_magic_cmd
  25005. # How to find potential files when deplibs_check_method = "file_magic".
  25006. file_magic_glob=$lt_file_magic_glob
  25007. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25008. want_nocaseglob=$lt_want_nocaseglob
  25009. # Command to associate shared and link libraries.
  25010. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25011. # The archiver.
  25012. AR=$lt_AR
  25013. # Flags to create an archive.
  25014. AR_FLAGS=$lt_AR_FLAGS
  25015. # How to feed a file listing to the archiver.
  25016. archiver_list_spec=$lt_archiver_list_spec
  25017. # A symbol stripping program.
  25018. STRIP=$lt_STRIP
  25019. # Commands used to install an old-style archive.
  25020. RANLIB=$lt_RANLIB
  25021. old_postinstall_cmds=$lt_old_postinstall_cmds
  25022. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25023. # Whether to use a lock for old archive extraction.
  25024. lock_old_archive_extraction=$lock_old_archive_extraction
  25025. # A C compiler.
  25026. LTCC=$lt_CC
  25027. # LTCC compiler flags.
  25028. LTCFLAGS=$lt_CFLAGS
  25029. # Take the output of nm and produce a listing of raw symbols and C names.
  25030. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25031. # Transform the output of nm in a proper C declaration.
  25032. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25033. # Transform the output of nm into a list of symbols to manually relocate.
  25034. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25035. # Transform the output of nm in a C name address pair.
  25036. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25037. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25038. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25039. # The name lister interface.
  25040. nm_interface=$lt_lt_cv_nm_interface
  25041. # Specify filename containing input files for \$NM.
  25042. nm_file_list_spec=$lt_nm_file_list_spec
  25043. # The root where to search for dependent libraries,and where our libraries should be installed.
  25044. lt_sysroot=$lt_sysroot
  25045. # Command to truncate a binary pipe.
  25046. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25047. # The name of the directory that contains temporary libtool files.
  25048. objdir=$objdir
  25049. # Used to examine libraries when file_magic_cmd begins with "file".
  25050. MAGIC_CMD=$MAGIC_CMD
  25051. # Must we lock files when doing compilation?
  25052. need_locks=$lt_need_locks
  25053. # Manifest tool.
  25054. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25055. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25056. DSYMUTIL=$lt_DSYMUTIL
  25057. # Tool to change global to local symbols on Mac OS X.
  25058. NMEDIT=$lt_NMEDIT
  25059. # Tool to manipulate fat objects and archives on Mac OS X.
  25060. LIPO=$lt_LIPO
  25061. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25062. OTOOL=$lt_OTOOL
  25063. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25064. OTOOL64=$lt_OTOOL64
  25065. # Old archive suffix (normally "a").
  25066. libext=$libext
  25067. # Shared library suffix (normally ".so").
  25068. shrext_cmds=$lt_shrext_cmds
  25069. # The commands to extract the exported symbol list from a shared archive.
  25070. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25071. # Variables whose values should be saved in libtool wrapper scripts and
  25072. # restored at link time.
  25073. variables_saved_for_relink=$lt_variables_saved_for_relink
  25074. # Do we need the "lib" prefix for modules?
  25075. need_lib_prefix=$need_lib_prefix
  25076. # Do we need a version for libraries?
  25077. need_version=$need_version
  25078. # Library versioning type.
  25079. version_type=$version_type
  25080. # Shared library runtime path variable.
  25081. runpath_var=$runpath_var
  25082. # Shared library path variable.
  25083. shlibpath_var=$shlibpath_var
  25084. # Is shlibpath searched before the hard-coded library search path?
  25085. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25086. # Format of library name prefix.
  25087. libname_spec=$lt_libname_spec
  25088. # List of archive names. First name is the real one, the rest are links.
  25089. # The last name is the one that the linker finds with -lNAME
  25090. library_names_spec=$lt_library_names_spec
  25091. # The coded name of the library, if different from the real name.
  25092. soname_spec=$lt_soname_spec
  25093. # Permission mode override for installation of shared libraries.
  25094. install_override_mode=$lt_install_override_mode
  25095. # Command to use after installation of a shared archive.
  25096. postinstall_cmds=$lt_postinstall_cmds
  25097. # Command to use after uninstallation of a shared archive.
  25098. postuninstall_cmds=$lt_postuninstall_cmds
  25099. # Commands used to finish a libtool library installation in a directory.
  25100. finish_cmds=$lt_finish_cmds
  25101. # As "finish_cmds", except a single script fragment to be evaled but
  25102. # not shown.
  25103. finish_eval=$lt_finish_eval
  25104. # Whether we should hardcode library paths into libraries.
  25105. hardcode_into_libs=$hardcode_into_libs
  25106. # Compile-time system search path for libraries.
  25107. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25108. # Detected run-time system search path for libraries.
  25109. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25110. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25111. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25112. # Whether dlopen is supported.
  25113. dlopen_support=$enable_dlopen
  25114. # Whether dlopen of programs is supported.
  25115. dlopen_self=$enable_dlopen_self
  25116. # Whether dlopen of statically linked programs is supported.
  25117. dlopen_self_static=$enable_dlopen_self_static
  25118. # Commands to strip libraries.
  25119. old_striplib=$lt_old_striplib
  25120. striplib=$lt_striplib
  25121. # The linker used to build libraries.
  25122. LD=$lt_LD
  25123. # How to create reloadable object files.
  25124. reload_flag=$lt_reload_flag
  25125. reload_cmds=$lt_reload_cmds
  25126. # Commands used to build an old-style archive.
  25127. old_archive_cmds=$lt_old_archive_cmds
  25128. # A language specific compiler.
  25129. CC=$lt_compiler
  25130. # Is the compiler the GNU compiler?
  25131. with_gcc=$GCC
  25132. # Compiler flag to turn off builtin functions.
  25133. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25134. # Additional compiler flags for building library objects.
  25135. pic_flag=$lt_lt_prog_compiler_pic
  25136. # How to pass a linker flag through the compiler.
  25137. wl=$lt_lt_prog_compiler_wl
  25138. # Compiler flag to prevent dynamic linking.
  25139. link_static_flag=$lt_lt_prog_compiler_static
  25140. # Does compiler simultaneously support -c and -o options?
  25141. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25142. # Whether or not to add -lc for building shared libraries.
  25143. build_libtool_need_lc=$archive_cmds_need_lc
  25144. # Whether or not to disallow shared libs when runtime libs are static.
  25145. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25146. # Compiler flag to allow reflexive dlopens.
  25147. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25148. # Compiler flag to generate shared objects directly from archives.
  25149. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25150. # Whether the compiler copes with passing no objects directly.
  25151. compiler_needs_object=$lt_compiler_needs_object
  25152. # Create an old-style archive from a shared archive.
  25153. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25154. # Create a temporary old-style archive to link instead of a shared archive.
  25155. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25156. # Commands used to build a shared archive.
  25157. archive_cmds=$lt_archive_cmds
  25158. archive_expsym_cmds=$lt_archive_expsym_cmds
  25159. # Commands used to build a loadable module if different from building
  25160. # a shared archive.
  25161. module_cmds=$lt_module_cmds
  25162. module_expsym_cmds=$lt_module_expsym_cmds
  25163. # Whether we are building with GNU ld or not.
  25164. with_gnu_ld=$lt_with_gnu_ld
  25165. # Flag that allows shared libraries with undefined symbols to be built.
  25166. allow_undefined_flag=$lt_allow_undefined_flag
  25167. # Flag that enforces no undefined symbols.
  25168. no_undefined_flag=$lt_no_undefined_flag
  25169. # Flag to hardcode \$libdir into a binary during linking.
  25170. # This must work even if \$libdir does not exist
  25171. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25172. # Whether we need a single "-rpath" flag with a separated argument.
  25173. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25174. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25175. # DIR into the resulting binary.
  25176. hardcode_direct=$hardcode_direct
  25177. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25178. # DIR into the resulting binary and the resulting library dependency is
  25179. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25180. # library is relocated.
  25181. hardcode_direct_absolute=$hardcode_direct_absolute
  25182. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25183. # into the resulting binary.
  25184. hardcode_minus_L=$hardcode_minus_L
  25185. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25186. # into the resulting binary.
  25187. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25188. # Set to "yes" if building a shared library automatically hardcodes DIR
  25189. # into the library and all subsequent libraries and executables linked
  25190. # against it.
  25191. hardcode_automatic=$hardcode_automatic
  25192. # Set to yes if linker adds runtime paths of dependent libraries
  25193. # to runtime path list.
  25194. inherit_rpath=$inherit_rpath
  25195. # Whether libtool must link a program against all its dependency libraries.
  25196. link_all_deplibs=$link_all_deplibs
  25197. # Set to "yes" if exported symbols are required.
  25198. always_export_symbols=$always_export_symbols
  25199. # The commands to list exported symbols.
  25200. export_symbols_cmds=$lt_export_symbols_cmds
  25201. # Symbols that should not be listed in the preloaded symbols.
  25202. exclude_expsyms=$lt_exclude_expsyms
  25203. # Symbols that must always be exported.
  25204. include_expsyms=$lt_include_expsyms
  25205. # Commands necessary for linking programs (against libraries) with templates.
  25206. prelink_cmds=$lt_prelink_cmds
  25207. # Commands necessary for finishing linking programs.
  25208. postlink_cmds=$lt_postlink_cmds
  25209. # Specify filename containing input files.
  25210. file_list_spec=$lt_file_list_spec
  25211. # How to hardcode a shared library path into an executable.
  25212. hardcode_action=$hardcode_action
  25213. # The directories searched by this compiler when creating a shared library.
  25214. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25215. # Dependencies to place before and after the objects being linked to
  25216. # create a shared library.
  25217. predep_objects=$lt_predep_objects
  25218. postdep_objects=$lt_postdep_objects
  25219. predeps=$lt_predeps
  25220. postdeps=$lt_postdeps
  25221. # The library search path used internally by the compiler when linking
  25222. # a shared library.
  25223. compiler_lib_search_path=$lt_compiler_lib_search_path
  25224. # ### END LIBTOOL CONFIG
  25225. _LT_EOF
  25226. cat <<'_LT_EOF' >> "$cfgfile"
  25227. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25228. # func_munge_path_list VARIABLE PATH
  25229. # -----------------------------------
  25230. # VARIABLE is name of variable containing _space_ separated list of
  25231. # directories to be munged by the contents of PATH, which is string
  25232. # having a format:
  25233. # "DIR[:DIR]:"
  25234. # string "DIR[ DIR]" will be prepended to VARIABLE
  25235. # ":DIR[:DIR]"
  25236. # string "DIR[ DIR]" will be appended to VARIABLE
  25237. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25238. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25239. # "DIRA[ DIRA]" will be appended to VARIABLE
  25240. # "DIR[:DIR]"
  25241. # VARIABLE will be replaced by "DIR[ DIR]"
  25242. func_munge_path_list ()
  25243. {
  25244. case x$2 in
  25245. x)
  25246. ;;
  25247. *:)
  25248. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25249. ;;
  25250. x:*)
  25251. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25252. ;;
  25253. *::*)
  25254. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25255. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25256. ;;
  25257. *)
  25258. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25259. ;;
  25260. esac
  25261. }
  25262. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25263. func_cc_basename ()
  25264. {
  25265. for cc_temp in $*""; do
  25266. case $cc_temp in
  25267. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25268. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25269. \-*) ;;
  25270. *) break;;
  25271. esac
  25272. done
  25273. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25274. }
  25275. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25276. _LT_EOF
  25277. case $host_os in
  25278. aix3*)
  25279. cat <<\_LT_EOF >> "$cfgfile"
  25280. # AIX sometimes has problems with the GCC collect2 program. For some
  25281. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25282. # vanish in a puff of smoke.
  25283. if test set != "${COLLECT_NAMES+set}"; then
  25284. COLLECT_NAMES=
  25285. export COLLECT_NAMES
  25286. fi
  25287. _LT_EOF
  25288. ;;
  25289. esac
  25290. ltmain=$ac_aux_dir/ltmain.sh
  25291. # We use sed instead of cat because bash on DJGPP gets confused if
  25292. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25293. # text mode, it properly converts lines to CR/LF. This bash problem
  25294. # is reportedly fixed, but why not run on old versions too?
  25295. sed '$q' "$ltmain" >> "$cfgfile" \
  25296. || (rm -f "$cfgfile"; exit 1)
  25297. mv -f "$cfgfile" "$ofile" ||
  25298. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25299. chmod +x "$ofile"
  25300. cat <<_LT_EOF >> "$ofile"
  25301. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25302. # The linker used to build libraries.
  25303. LD=$lt_LD_RC
  25304. # How to create reloadable object files.
  25305. reload_flag=$lt_reload_flag_RC
  25306. reload_cmds=$lt_reload_cmds_RC
  25307. # Commands used to build an old-style archive.
  25308. old_archive_cmds=$lt_old_archive_cmds_RC
  25309. # A language specific compiler.
  25310. CC=$lt_compiler_RC
  25311. # Is the compiler the GNU compiler?
  25312. with_gcc=$GCC_RC
  25313. # Compiler flag to turn off builtin functions.
  25314. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25315. # Additional compiler flags for building library objects.
  25316. pic_flag=$lt_lt_prog_compiler_pic_RC
  25317. # How to pass a linker flag through the compiler.
  25318. wl=$lt_lt_prog_compiler_wl_RC
  25319. # Compiler flag to prevent dynamic linking.
  25320. link_static_flag=$lt_lt_prog_compiler_static_RC
  25321. # Does compiler simultaneously support -c and -o options?
  25322. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25323. # Whether or not to add -lc for building shared libraries.
  25324. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25325. # Whether or not to disallow shared libs when runtime libs are static.
  25326. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25327. # Compiler flag to allow reflexive dlopens.
  25328. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25329. # Compiler flag to generate shared objects directly from archives.
  25330. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25331. # Whether the compiler copes with passing no objects directly.
  25332. compiler_needs_object=$lt_compiler_needs_object_RC
  25333. # Create an old-style archive from a shared archive.
  25334. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25335. # Create a temporary old-style archive to link instead of a shared archive.
  25336. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25337. # Commands used to build a shared archive.
  25338. archive_cmds=$lt_archive_cmds_RC
  25339. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25340. # Commands used to build a loadable module if different from building
  25341. # a shared archive.
  25342. module_cmds=$lt_module_cmds_RC
  25343. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25344. # Whether we are building with GNU ld or not.
  25345. with_gnu_ld=$lt_with_gnu_ld_RC
  25346. # Flag that allows shared libraries with undefined symbols to be built.
  25347. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25348. # Flag that enforces no undefined symbols.
  25349. no_undefined_flag=$lt_no_undefined_flag_RC
  25350. # Flag to hardcode \$libdir into a binary during linking.
  25351. # This must work even if \$libdir does not exist
  25352. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25353. # Whether we need a single "-rpath" flag with a separated argument.
  25354. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25355. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25356. # DIR into the resulting binary.
  25357. hardcode_direct=$hardcode_direct_RC
  25358. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25359. # DIR into the resulting binary and the resulting library dependency is
  25360. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25361. # library is relocated.
  25362. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25363. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25364. # into the resulting binary.
  25365. hardcode_minus_L=$hardcode_minus_L_RC
  25366. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25367. # into the resulting binary.
  25368. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25369. # Set to "yes" if building a shared library automatically hardcodes DIR
  25370. # into the library and all subsequent libraries and executables linked
  25371. # against it.
  25372. hardcode_automatic=$hardcode_automatic_RC
  25373. # Set to yes if linker adds runtime paths of dependent libraries
  25374. # to runtime path list.
  25375. inherit_rpath=$inherit_rpath_RC
  25376. # Whether libtool must link a program against all its dependency libraries.
  25377. link_all_deplibs=$link_all_deplibs_RC
  25378. # Set to "yes" if exported symbols are required.
  25379. always_export_symbols=$always_export_symbols_RC
  25380. # The commands to list exported symbols.
  25381. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25382. # Symbols that should not be listed in the preloaded symbols.
  25383. exclude_expsyms=$lt_exclude_expsyms_RC
  25384. # Symbols that must always be exported.
  25385. include_expsyms=$lt_include_expsyms_RC
  25386. # Commands necessary for linking programs (against libraries) with templates.
  25387. prelink_cmds=$lt_prelink_cmds_RC
  25388. # Commands necessary for finishing linking programs.
  25389. postlink_cmds=$lt_postlink_cmds_RC
  25390. # Specify filename containing input files.
  25391. file_list_spec=$lt_file_list_spec_RC
  25392. # How to hardcode a shared library path into an executable.
  25393. hardcode_action=$hardcode_action_RC
  25394. # The directories searched by this compiler when creating a shared library.
  25395. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25396. # Dependencies to place before and after the objects being linked to
  25397. # create a shared library.
  25398. predep_objects=$lt_predep_objects_RC
  25399. postdep_objects=$lt_postdep_objects_RC
  25400. predeps=$lt_predeps_RC
  25401. postdeps=$lt_postdeps_RC
  25402. # The library search path used internally by the compiler when linking
  25403. # a shared library.
  25404. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25405. # ### END LIBTOOL TAG CONFIG: RC
  25406. _LT_EOF
  25407. cat <<_LT_EOF >> "$ofile"
  25408. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25409. # The linker used to build libraries.
  25410. LD=$lt_LD_CXX
  25411. # How to create reloadable object files.
  25412. reload_flag=$lt_reload_flag_CXX
  25413. reload_cmds=$lt_reload_cmds_CXX
  25414. # Commands used to build an old-style archive.
  25415. old_archive_cmds=$lt_old_archive_cmds_CXX
  25416. # A language specific compiler.
  25417. CC=$lt_compiler_CXX
  25418. # Is the compiler the GNU compiler?
  25419. with_gcc=$GCC_CXX
  25420. # Compiler flag to turn off builtin functions.
  25421. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25422. # Additional compiler flags for building library objects.
  25423. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25424. # How to pass a linker flag through the compiler.
  25425. wl=$lt_lt_prog_compiler_wl_CXX
  25426. # Compiler flag to prevent dynamic linking.
  25427. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25428. # Does compiler simultaneously support -c and -o options?
  25429. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25430. # Whether or not to add -lc for building shared libraries.
  25431. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25432. # Whether or not to disallow shared libs when runtime libs are static.
  25433. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25434. # Compiler flag to allow reflexive dlopens.
  25435. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25436. # Compiler flag to generate shared objects directly from archives.
  25437. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25438. # Whether the compiler copes with passing no objects directly.
  25439. compiler_needs_object=$lt_compiler_needs_object_CXX
  25440. # Create an old-style archive from a shared archive.
  25441. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25442. # Create a temporary old-style archive to link instead of a shared archive.
  25443. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25444. # Commands used to build a shared archive.
  25445. archive_cmds=$lt_archive_cmds_CXX
  25446. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25447. # Commands used to build a loadable module if different from building
  25448. # a shared archive.
  25449. module_cmds=$lt_module_cmds_CXX
  25450. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25451. # Whether we are building with GNU ld or not.
  25452. with_gnu_ld=$lt_with_gnu_ld_CXX
  25453. # Flag that allows shared libraries with undefined symbols to be built.
  25454. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25455. # Flag that enforces no undefined symbols.
  25456. no_undefined_flag=$lt_no_undefined_flag_CXX
  25457. # Flag to hardcode \$libdir into a binary during linking.
  25458. # This must work even if \$libdir does not exist
  25459. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25460. # Whether we need a single "-rpath" flag with a separated argument.
  25461. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25462. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25463. # DIR into the resulting binary.
  25464. hardcode_direct=$hardcode_direct_CXX
  25465. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25466. # DIR into the resulting binary and the resulting library dependency is
  25467. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25468. # library is relocated.
  25469. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25470. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25471. # into the resulting binary.
  25472. hardcode_minus_L=$hardcode_minus_L_CXX
  25473. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25474. # into the resulting binary.
  25475. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25476. # Set to "yes" if building a shared library automatically hardcodes DIR
  25477. # into the library and all subsequent libraries and executables linked
  25478. # against it.
  25479. hardcode_automatic=$hardcode_automatic_CXX
  25480. # Set to yes if linker adds runtime paths of dependent libraries
  25481. # to runtime path list.
  25482. inherit_rpath=$inherit_rpath_CXX
  25483. # Whether libtool must link a program against all its dependency libraries.
  25484. link_all_deplibs=$link_all_deplibs_CXX
  25485. # Set to "yes" if exported symbols are required.
  25486. always_export_symbols=$always_export_symbols_CXX
  25487. # The commands to list exported symbols.
  25488. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25489. # Symbols that should not be listed in the preloaded symbols.
  25490. exclude_expsyms=$lt_exclude_expsyms_CXX
  25491. # Symbols that must always be exported.
  25492. include_expsyms=$lt_include_expsyms_CXX
  25493. # Commands necessary for linking programs (against libraries) with templates.
  25494. prelink_cmds=$lt_prelink_cmds_CXX
  25495. # Commands necessary for finishing linking programs.
  25496. postlink_cmds=$lt_postlink_cmds_CXX
  25497. # Specify filename containing input files.
  25498. file_list_spec=$lt_file_list_spec_CXX
  25499. # How to hardcode a shared library path into an executable.
  25500. hardcode_action=$hardcode_action_CXX
  25501. # The directories searched by this compiler when creating a shared library.
  25502. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25503. # Dependencies to place before and after the objects being linked to
  25504. # create a shared library.
  25505. predep_objects=$lt_predep_objects_CXX
  25506. postdep_objects=$lt_postdep_objects_CXX
  25507. predeps=$lt_predeps_CXX
  25508. postdeps=$lt_postdeps_CXX
  25509. # The library search path used internally by the compiler when linking
  25510. # a shared library.
  25511. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25512. # ### END LIBTOOL TAG CONFIG: CXX
  25513. _LT_EOF
  25514. ;;
  25515. "sdl2_config":C) chmod a+x sdl2-config ;;
  25516. "summary":C) printf "$SUMMARY" ;;
  25517. esac
  25518. done # for ac_tag
  25519. as_fn_exit 0
  25520. _ACEOF
  25521. ac_clean_files=$ac_clean_files_save
  25522. test $ac_write_fail = 0 ||
  25523. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25524. # configure is writing to config.log, and then calls config.status.
  25525. # config.status does its own redirection, appending to config.log.
  25526. # Unfortunately, on DOS this fails, as config.log is still kept open
  25527. # by configure, so config.status won't be able to write to it; its
  25528. # output is simply discarded. So we exec the FD to /dev/null,
  25529. # effectively closing config.log, so it can be properly (re)opened and
  25530. # appended to by config.status. When coming back to configure, we
  25531. # need to make the FD available again.
  25532. if test "$no_create" != yes; then
  25533. ac_cs_success=:
  25534. ac_config_status_args=
  25535. test "$silent" = yes &&
  25536. ac_config_status_args="$ac_config_status_args --quiet"
  25537. exec 5>/dev/null
  25538. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25539. exec 5>>config.log
  25540. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25541. # would make configure fail if this is the last instruction.
  25542. $ac_cs_success || as_fn_exit 1
  25543. fi
  25544. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25546. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25547. fi