configure 884 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. DECOR_LIBS
  625. DECOR_CFLAGS
  626. FUSIONSOUND_LIBS
  627. FUSIONSOUND_CFLAGS
  628. ARTSCONFIG
  629. PULSEAUDIO_LIBS
  630. PULSEAUDIO_CFLAGS
  631. PIPEWIRE_LIBS
  632. PIPEWIRE_CFLAGS
  633. ESD_LIBS
  634. ESD_CFLAGS
  635. ESD_CONFIG
  636. JACK_LIBS
  637. JACK_CFLAGS
  638. ALSA_LIBS
  639. ALSA_CFLAGS
  640. POW_LIB
  641. LIBOBJS
  642. ALLOCA
  643. LIBTOOLLINKERTAG
  644. LINKER
  645. PKG_CONFIG_LIBDIR
  646. PKG_CONFIG_PATH
  647. PKG_CONFIG
  648. SET_MAKE
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. CXXCPP
  653. ac_ct_CXX
  654. CXXFLAGS
  655. CXX
  656. LT_AGE
  657. LT_REVISION
  658. LT_CURRENT
  659. LT_RELEASE
  660. RC
  661. CPP
  662. LT_SYS_LIBRARY_PATH
  663. OTOOL64
  664. OTOOL
  665. LIPO
  666. NMEDIT
  667. DSYMUTIL
  668. MANIFEST_TOOL
  669. AWK
  670. RANLIB
  671. STRIP
  672. ac_ct_AR
  673. AR
  674. LN_S
  675. NM
  676. ac_ct_DUMPBIN
  677. DUMPBIN
  678. LD
  679. FGREP
  680. EGREP
  681. GREP
  682. SED
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. LIBTOOL
  699. OBJDUMP
  700. DLLTOOL
  701. AS
  702. SDL_VERSION
  703. SDL_BINARY_AGE
  704. SDL_INTERFACE_AGE
  705. SDL_MICRO_VERSION
  706. SDL_MINOR_VERSION
  707. SDL_MAJOR_VERSION
  708. target_alias
  709. host_alias
  710. build_alias
  711. LIBS
  712. ECHO_T
  713. ECHO_N
  714. ECHO_C
  715. DEFS
  716. mandir
  717. localedir
  718. libdir
  719. psdir
  720. pdfdir
  721. dvidir
  722. htmldir
  723. infodir
  724. docdir
  725. oldincludedir
  726. includedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_aix_soname
  754. with_gnu_ld
  755. with_sysroot
  756. enable_libtool_lock
  757. enable_assertions
  758. enable_dependency_tracking
  759. enable_libc
  760. enable_gcc_atomics
  761. enable_atomic
  762. enable_audio
  763. enable_video
  764. enable_render
  765. enable_events
  766. enable_joystick
  767. enable_haptic
  768. enable_hidapi
  769. enable_sensor
  770. enable_power
  771. enable_filesystem
  772. enable_threads
  773. enable_timers
  774. enable_file
  775. enable_misc
  776. enable_locale
  777. enable_loadso
  778. enable_cpuinfo
  779. enable_assembly
  780. enable_ssemath
  781. enable_mmx
  782. enable_3dnow
  783. enable_sse
  784. enable_sse2
  785. enable_sse3
  786. enable_altivec
  787. enable_oss
  788. enable_alsa
  789. with_alsa_prefix
  790. with_alsa_inc_prefix
  791. enable_alsatest
  792. enable_alsa_shared
  793. enable_jack
  794. enable_jack_shared
  795. enable_esd
  796. with_esd_prefix
  797. with_esd_exec_prefix
  798. enable_esdtest
  799. enable_esd_shared
  800. enable_pipewire
  801. enable_pipewire_shared
  802. enable_pulseaudio
  803. enable_pulseaudio_shared
  804. enable_arts
  805. enable_arts_shared
  806. enable_nas
  807. enable_nas_shared
  808. enable_sndio
  809. enable_sndio_shared
  810. enable_fusionsound
  811. enable_fusionsound_shared
  812. enable_diskaudio
  813. enable_dummyaudio
  814. enable_libsamplerate
  815. enable_libsamplerate_shared
  816. enable_arm_simd
  817. enable_arm_neon
  818. enable_video_wayland
  819. enable_video_wayland_qt_touch
  820. enable_wayland_shared
  821. enable_libdecor
  822. enable_libdecor_shared
  823. enable_video_rpi
  824. enable_video_x11
  825. with_x
  826. enable_x11_shared
  827. enable_video_x11_xcursor
  828. enable_video_x11_xdbe
  829. enable_video_x11_xinput
  830. enable_video_x11_xfixes
  831. enable_video_x11_xrandr
  832. enable_video_x11_scrnsaver
  833. enable_video_x11_xshape
  834. enable_video_vivante
  835. enable_video_cocoa
  836. enable_video_metal
  837. enable_render_metal
  838. enable_video_directfb
  839. enable_directfb_shared
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl2_config
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CPP
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. JACK_CFLAGS
  888. JACK_LIBS
  889. PIPEWIRE_CFLAGS
  890. PIPEWIRE_LIBS
  891. PULSEAUDIO_CFLAGS
  892. PULSEAUDIO_LIBS
  893. FUSIONSOUND_CFLAGS
  894. FUSIONSOUND_LIBS
  895. DECOR_CFLAGS
  896. DECOR_LIBS
  897. RPI_CFLAGS
  898. RPI_LIBS
  899. XMKMF
  900. DIRECTFB_CFLAGS
  901. DIRECTFB_LIBS
  902. LIBDRM_CFLAGS
  903. LIBDRM_LIBS
  904. LIBGBM_CFLAGS
  905. LIBGBM_LIBS
  906. DBUS_CFLAGS
  907. DBUS_LIBS
  908. IBUS_CFLAGS
  909. IBUS_LIBS
  910. LIBUSB_CFLAGS
  911. LIBUSB_LIBS'
  912. # Initialize some variables set by options.
  913. ac_init_help=
  914. ac_init_version=false
  915. ac_unrecognized_opts=
  916. ac_unrecognized_sep=
  917. # The variables have the same names as the options, with
  918. # dashes changed to underlines.
  919. cache_file=/dev/null
  920. exec_prefix=NONE
  921. no_create=
  922. no_recursion=
  923. prefix=NONE
  924. program_prefix=NONE
  925. program_suffix=NONE
  926. program_transform_name=s,x,x,
  927. silent=
  928. site=
  929. srcdir=
  930. verbose=
  931. x_includes=NONE
  932. x_libraries=NONE
  933. # Installation directory options.
  934. # These are left unexpanded so users can "make install exec_prefix=/foo"
  935. # and all the variables that are supposed to be based on exec_prefix
  936. # by default will actually change.
  937. # Use braces instead of parens because sh, perl, etc. also accept them.
  938. # (The list follows the same order as the GNU Coding Standards.)
  939. bindir='${exec_prefix}/bin'
  940. sbindir='${exec_prefix}/sbin'
  941. libexecdir='${exec_prefix}/libexec'
  942. datarootdir='${prefix}/share'
  943. datadir='${datarootdir}'
  944. sysconfdir='${prefix}/etc'
  945. sharedstatedir='${prefix}/com'
  946. localstatedir='${prefix}/var'
  947. includedir='${prefix}/include'
  948. oldincludedir='/usr/include'
  949. docdir='${datarootdir}/doc/${PACKAGE}'
  950. infodir='${datarootdir}/info'
  951. htmldir='${docdir}'
  952. dvidir='${docdir}'
  953. pdfdir='${docdir}'
  954. psdir='${docdir}'
  955. libdir='${exec_prefix}/lib'
  956. localedir='${datarootdir}/locale'
  957. mandir='${datarootdir}/man'
  958. ac_prev=
  959. ac_dashdash=
  960. for ac_option
  961. do
  962. # If the previous option needs an argument, assign it.
  963. if test -n "$ac_prev"; then
  964. eval $ac_prev=\$ac_option
  965. ac_prev=
  966. continue
  967. fi
  968. case $ac_option in
  969. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  970. *=) ac_optarg= ;;
  971. *) ac_optarg=yes ;;
  972. esac
  973. # Accept the important Cygnus configure options, so we can diagnose typos.
  974. case $ac_dashdash$ac_option in
  975. --)
  976. ac_dashdash=yes ;;
  977. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  978. ac_prev=bindir ;;
  979. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  980. bindir=$ac_optarg ;;
  981. -build | --build | --buil | --bui | --bu)
  982. ac_prev=build_alias ;;
  983. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  984. build_alias=$ac_optarg ;;
  985. -cache-file | --cache-file | --cache-fil | --cache-fi \
  986. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  987. ac_prev=cache_file ;;
  988. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  989. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  990. cache_file=$ac_optarg ;;
  991. --config-cache | -C)
  992. cache_file=config.cache ;;
  993. -datadir | --datadir | --datadi | --datad)
  994. ac_prev=datadir ;;
  995. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  996. datadir=$ac_optarg ;;
  997. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  998. | --dataroo | --dataro | --datar)
  999. ac_prev=datarootdir ;;
  1000. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1001. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1002. datarootdir=$ac_optarg ;;
  1003. -disable-* | --disable-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid feature name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "enable_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval enable_$ac_useropt=no ;;
  1018. -docdir | --docdir | --docdi | --doc | --do)
  1019. ac_prev=docdir ;;
  1020. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1021. docdir=$ac_optarg ;;
  1022. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1023. ac_prev=dvidir ;;
  1024. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1025. dvidir=$ac_optarg ;;
  1026. -enable-* | --enable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=\$ac_optarg ;;
  1041. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1042. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1043. | --exec | --exe | --ex)
  1044. ac_prev=exec_prefix ;;
  1045. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1046. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1047. | --exec=* | --exe=* | --ex=*)
  1048. exec_prefix=$ac_optarg ;;
  1049. -gas | --gas | --ga | --g)
  1050. # Obsolete; use --with-gas.
  1051. with_gas=yes ;;
  1052. -help | --help | --hel | --he | -h)
  1053. ac_init_help=long ;;
  1054. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1055. ac_init_help=recursive ;;
  1056. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1057. ac_init_help=short ;;
  1058. -host | --host | --hos | --ho)
  1059. ac_prev=host_alias ;;
  1060. -host=* | --host=* | --hos=* | --ho=*)
  1061. host_alias=$ac_optarg ;;
  1062. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1063. ac_prev=htmldir ;;
  1064. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1065. | --ht=*)
  1066. htmldir=$ac_optarg ;;
  1067. -includedir | --includedir | --includedi | --included | --include \
  1068. | --includ | --inclu | --incl | --inc)
  1069. ac_prev=includedir ;;
  1070. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1071. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1072. includedir=$ac_optarg ;;
  1073. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1074. ac_prev=infodir ;;
  1075. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1076. infodir=$ac_optarg ;;
  1077. -libdir | --libdir | --libdi | --libd)
  1078. ac_prev=libdir ;;
  1079. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1080. libdir=$ac_optarg ;;
  1081. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1082. | --libexe | --libex | --libe)
  1083. ac_prev=libexecdir ;;
  1084. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1085. | --libexe=* | --libex=* | --libe=*)
  1086. libexecdir=$ac_optarg ;;
  1087. -localedir | --localedir | --localedi | --localed | --locale)
  1088. ac_prev=localedir ;;
  1089. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1090. localedir=$ac_optarg ;;
  1091. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1092. | --localstate | --localstat | --localsta | --localst | --locals)
  1093. ac_prev=localstatedir ;;
  1094. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1095. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1096. localstatedir=$ac_optarg ;;
  1097. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1098. ac_prev=mandir ;;
  1099. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1100. mandir=$ac_optarg ;;
  1101. -nfp | --nfp | --nf)
  1102. # Obsolete; use --without-fp.
  1103. with_fp=no ;;
  1104. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1105. | --no-cr | --no-c | -n)
  1106. no_create=yes ;;
  1107. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1108. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1109. no_recursion=yes ;;
  1110. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1111. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1112. | --oldin | --oldi | --old | --ol | --o)
  1113. ac_prev=oldincludedir ;;
  1114. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1115. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1116. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1117. oldincludedir=$ac_optarg ;;
  1118. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1119. ac_prev=prefix ;;
  1120. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1121. prefix=$ac_optarg ;;
  1122. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1123. | --program-pre | --program-pr | --program-p)
  1124. ac_prev=program_prefix ;;
  1125. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1126. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1127. program_prefix=$ac_optarg ;;
  1128. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1129. | --program-suf | --program-su | --program-s)
  1130. ac_prev=program_suffix ;;
  1131. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1132. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1133. program_suffix=$ac_optarg ;;
  1134. -program-transform-name | --program-transform-name \
  1135. | --program-transform-nam | --program-transform-na \
  1136. | --program-transform-n | --program-transform- \
  1137. | --program-transform | --program-transfor \
  1138. | --program-transfo | --program-transf \
  1139. | --program-trans | --program-tran \
  1140. | --progr-tra | --program-tr | --program-t)
  1141. ac_prev=program_transform_name ;;
  1142. -program-transform-name=* | --program-transform-name=* \
  1143. | --program-transform-nam=* | --program-transform-na=* \
  1144. | --program-transform-n=* | --program-transform-=* \
  1145. | --program-transform=* | --program-transfor=* \
  1146. | --program-transfo=* | --program-transf=* \
  1147. | --program-trans=* | --program-tran=* \
  1148. | --progr-tra=* | --program-tr=* | --program-t=*)
  1149. program_transform_name=$ac_optarg ;;
  1150. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1151. ac_prev=pdfdir ;;
  1152. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1153. pdfdir=$ac_optarg ;;
  1154. -psdir | --psdir | --psdi | --psd | --ps)
  1155. ac_prev=psdir ;;
  1156. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1157. psdir=$ac_optarg ;;
  1158. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1159. | -silent | --silent | --silen | --sile | --sil)
  1160. silent=yes ;;
  1161. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1162. ac_prev=sbindir ;;
  1163. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1164. | --sbi=* | --sb=*)
  1165. sbindir=$ac_optarg ;;
  1166. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1167. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1168. | --sharedst | --shareds | --shared | --share | --shar \
  1169. | --sha | --sh)
  1170. ac_prev=sharedstatedir ;;
  1171. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1172. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1173. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1174. | --sha=* | --sh=*)
  1175. sharedstatedir=$ac_optarg ;;
  1176. -site | --site | --sit)
  1177. ac_prev=site ;;
  1178. -site=* | --site=* | --sit=*)
  1179. site=$ac_optarg ;;
  1180. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1181. ac_prev=srcdir ;;
  1182. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1183. srcdir=$ac_optarg ;;
  1184. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1185. | --syscon | --sysco | --sysc | --sys | --sy)
  1186. ac_prev=sysconfdir ;;
  1187. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1188. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1189. sysconfdir=$ac_optarg ;;
  1190. -target | --target | --targe | --targ | --tar | --ta | --t)
  1191. ac_prev=target_alias ;;
  1192. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1193. target_alias=$ac_optarg ;;
  1194. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1195. verbose=yes ;;
  1196. -version | --version | --versio | --versi | --vers | -V)
  1197. ac_init_version=: ;;
  1198. -with-* | --with-*)
  1199. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1200. # Reject names that are not valid shell variable names.
  1201. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1202. as_fn_error $? "invalid package name: $ac_useropt"
  1203. ac_useropt_orig=$ac_useropt
  1204. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1205. case $ac_user_opts in
  1206. *"
  1207. "with_$ac_useropt"
  1208. "*) ;;
  1209. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1210. ac_unrecognized_sep=', ';;
  1211. esac
  1212. eval with_$ac_useropt=\$ac_optarg ;;
  1213. -without-* | --without-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error $? "invalid package name: $ac_useropt"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=no ;;
  1228. --x)
  1229. # Obsolete; use --with-x.
  1230. with_x=yes ;;
  1231. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1232. | --x-incl | --x-inc | --x-in | --x-i)
  1233. ac_prev=x_includes ;;
  1234. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1235. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1236. x_includes=$ac_optarg ;;
  1237. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1238. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1239. ac_prev=x_libraries ;;
  1240. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1241. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1242. x_libraries=$ac_optarg ;;
  1243. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1244. Try \`$0 --help' for more information"
  1245. ;;
  1246. *=*)
  1247. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1248. # Reject names that are not valid shell variable names.
  1249. case $ac_envvar in #(
  1250. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1251. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1252. esac
  1253. eval $ac_envvar=\$ac_optarg
  1254. export $ac_envvar ;;
  1255. *)
  1256. # FIXME: should be removed in autoconf 3.0.
  1257. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1258. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1259. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1260. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1261. ;;
  1262. esac
  1263. done
  1264. if test -n "$ac_prev"; then
  1265. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1266. as_fn_error $? "missing argument to $ac_option"
  1267. fi
  1268. if test -n "$ac_unrecognized_opts"; then
  1269. case $enable_option_checking in
  1270. no) ;;
  1271. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1272. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1273. esac
  1274. fi
  1275. # Check all directory arguments for consistency.
  1276. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1277. datadir sysconfdir sharedstatedir localstatedir includedir \
  1278. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1279. libdir localedir mandir
  1280. do
  1281. eval ac_val=\$$ac_var
  1282. # Remove trailing slashes.
  1283. case $ac_val in
  1284. */ )
  1285. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1286. eval $ac_var=\$ac_val;;
  1287. esac
  1288. # Be sure to have absolute directory names.
  1289. case $ac_val in
  1290. [\\/$]* | ?:[\\/]* ) continue;;
  1291. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1292. esac
  1293. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1294. done
  1295. # There might be people who depend on the old broken behavior: `$host'
  1296. # used to hold the argument of --host etc.
  1297. # FIXME: To remove some day.
  1298. build=$build_alias
  1299. host=$host_alias
  1300. target=$target_alias
  1301. # FIXME: To remove some day.
  1302. if test "x$host_alias" != x; then
  1303. if test "x$build_alias" = x; then
  1304. cross_compiling=maybe
  1305. elif test "x$build_alias" != "x$host_alias"; then
  1306. cross_compiling=yes
  1307. fi
  1308. fi
  1309. ac_tool_prefix=
  1310. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1311. test "$silent" = yes && exec 6>/dev/null
  1312. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1313. ac_ls_di=`ls -di .` &&
  1314. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1315. as_fn_error $? "working directory cannot be determined"
  1316. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1317. as_fn_error $? "pwd does not report name of working directory"
  1318. # Find the source files, if location was not specified.
  1319. if test -z "$srcdir"; then
  1320. ac_srcdir_defaulted=yes
  1321. # Try the directory containing this script, then the parent directory.
  1322. ac_confdir=`$as_dirname -- "$as_myself" ||
  1323. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1324. X"$as_myself" : 'X\(//\)[^/]' \| \
  1325. X"$as_myself" : 'X\(//\)$' \| \
  1326. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1327. $as_echo X"$as_myself" |
  1328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)[^/].*/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\/\)$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\).*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. s/.*/./; q'`
  1345. srcdir=$ac_confdir
  1346. if test ! -r "$srcdir/$ac_unique_file"; then
  1347. srcdir=..
  1348. fi
  1349. else
  1350. ac_srcdir_defaulted=no
  1351. fi
  1352. if test ! -r "$srcdir/$ac_unique_file"; then
  1353. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1354. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1355. fi
  1356. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1357. ac_abs_confdir=`(
  1358. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1359. pwd)`
  1360. # When building in place, set srcdir=.
  1361. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1362. srcdir=.
  1363. fi
  1364. # Remove unnecessary trailing slashes from srcdir.
  1365. # Double slashes in file names in object file debugging info
  1366. # mess up M-x gdb in Emacs.
  1367. case $srcdir in
  1368. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1369. esac
  1370. for ac_var in $ac_precious_vars; do
  1371. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_env_${ac_var}_value=\$${ac_var}
  1373. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1375. done
  1376. #
  1377. # Report the --help message.
  1378. #
  1379. if test "$ac_init_help" = "long"; then
  1380. # Omit some internal or obsolete options to make the list less imposing.
  1381. # This message is too long to be a string in the A/UX 3.1 sh.
  1382. cat <<_ACEOF
  1383. \`configure' configures this package to adapt to many kinds of systems.
  1384. Usage: $0 [OPTION]... [VAR=VALUE]...
  1385. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1386. VAR=VALUE. See below for descriptions of some of the useful variables.
  1387. Defaults for the options are specified in brackets.
  1388. Configuration:
  1389. -h, --help display this help and exit
  1390. --help=short display options specific to this package
  1391. --help=recursive display the short help of all the included packages
  1392. -V, --version display version information and exit
  1393. -q, --quiet, --silent do not print \`checking ...' messages
  1394. --cache-file=FILE cache test results in FILE [disabled]
  1395. -C, --config-cache alias for \`--cache-file=config.cache'
  1396. -n, --no-create do not create output files
  1397. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1398. Installation directories:
  1399. --prefix=PREFIX install architecture-independent files in PREFIX
  1400. [$ac_default_prefix]
  1401. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1402. [PREFIX]
  1403. By default, \`make install' will install all the files in
  1404. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1405. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1406. for instance \`--prefix=\$HOME'.
  1407. For better control, use the options below.
  1408. Fine tuning of the installation directories:
  1409. --bindir=DIR user executables [EPREFIX/bin]
  1410. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1411. --libexecdir=DIR program executables [EPREFIX/libexec]
  1412. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1413. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1414. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1415. --libdir=DIR object code libraries [EPREFIX/lib]
  1416. --includedir=DIR C header files [PREFIX/include]
  1417. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1418. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1419. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1420. --infodir=DIR info documentation [DATAROOTDIR/info]
  1421. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1422. --mandir=DIR man documentation [DATAROOTDIR/man]
  1423. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1424. --htmldir=DIR html documentation [DOCDIR]
  1425. --dvidir=DIR dvi documentation [DOCDIR]
  1426. --pdfdir=DIR pdf documentation [DOCDIR]
  1427. --psdir=DIR ps documentation [DOCDIR]
  1428. _ACEOF
  1429. cat <<\_ACEOF
  1430. X features:
  1431. --x-includes=DIR X include files are in DIR
  1432. --x-libraries=DIR X library files are in DIR
  1433. System types:
  1434. --build=BUILD configure for building on BUILD [guessed]
  1435. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. cat <<\_ACEOF
  1440. Optional Features:
  1441. --disable-option-checking ignore unrecognized --enable/--with options
  1442. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1443. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1444. --enable-shared[=PKGS] build shared libraries [default=yes]
  1445. --enable-static[=PKGS] build static libraries [default=yes]
  1446. --enable-fast-install[=PKGS]
  1447. optimize for fast installation [default=yes]
  1448. --disable-libtool-lock avoid locking (might break parallel builds)
  1449. --enable-assertions Enable internal sanity checks
  1450. (auto/disabled/release/enabled/paranoid)
  1451. [default=auto]
  1452. --enable-dependency-tracking
  1453. Use gcc -MMD -MT dependency tracking [default=yes]
  1454. --enable-libc Use the system C library [default=yes]
  1455. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1456. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1457. --enable-audio Enable the audio subsystem [default=yes]
  1458. --enable-video Enable the video subsystem [default=yes]
  1459. --enable-render Enable the render subsystem [default=yes]
  1460. --enable-events Enable the events subsystem [default=yes]
  1461. --enable-joystick Enable the joystick subsystem [default=yes]
  1462. --enable-haptic Enable the haptic (force feedback) subsystem
  1463. [default=yes]
  1464. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1465. --enable-sensor Enable the sensor subsystem [default=yes]
  1466. --enable-power Enable the power subsystem [default=yes]
  1467. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1468. --enable-threads Enable the threading subsystem [default=yes]
  1469. --enable-timers Enable the timer subsystem [default=yes]
  1470. --enable-file Enable the file subsystem [default=yes]
  1471. --enable-misc Enable the misc subsystem [default=yes]
  1472. --enable-locale Enable the locale subsystem [default=yes]
  1473. --enable-loadso Enable the shared object loading subsystem
  1474. [default=yes]
  1475. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1476. --enable-assembly Enable assembly routines [default=yes]
  1477. --enable-ssemath Allow GCC to use SSE floating point math
  1478. [default=maybe]
  1479. --enable-mmx use MMX assembly routines [default=yes]
  1480. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1481. --enable-sse use SSE assembly routines [default=yes]
  1482. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1483. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1484. --enable-altivec use Altivec assembly routines [default=yes]
  1485. --enable-oss support the OSS audio API [default=maybe]
  1486. --enable-alsa support the ALSA audio API [default=yes]
  1487. --disable-alsatest Do not try to compile and run a test Alsa program
  1488. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1489. --enable-jack use JACK audio [default=yes]
  1490. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1491. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1492. --disable-esdtest Do not try to compile and run a test ESD program
  1493. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1494. --enable-pipewire use Pipewire audio [default=yes]
  1495. --enable-pipewire-shared
  1496. dynamically load Pipewire support [default=yes]
  1497. --enable-pulseaudio use PulseAudio [default=yes]
  1498. --enable-pulseaudio-shared
  1499. dynamically load PulseAudio support [default=yes]
  1500. --enable-arts support the Analog Real Time Synthesizer
  1501. [default=yes]
  1502. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1503. --enable-nas support the NAS audio API [default=yes]
  1504. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1505. --enable-sndio support the sndio audio API [default=yes]
  1506. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1507. --enable-fusionsound use FusionSound audio driver [default=no]
  1508. --enable-fusionsound-shared
  1509. dynamically load fusionsound audio support
  1510. [default=yes]
  1511. --enable-diskaudio support the disk writer audio driver [default=yes]
  1512. --enable-dummyaudio support the dummy audio driver [default=yes]
  1513. --enable-libsamplerate use libsamplerate for audio rate conversion
  1514. [default=yes]
  1515. --enable-libsamplerate-shared
  1516. dynamically load libsamplerate [default=yes]
  1517. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1518. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1519. --enable-video-wayland use Wayland video driver [default=yes]
  1520. --enable-video-wayland-qt-touch
  1521. QtWayland server support for Wayland video driver
  1522. [default=yes]
  1523. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1524. --enable-libdecor use libdecor for Wayland client-side decorations
  1525. [default=yes]
  1526. --enable-libdecor-shared
  1527. dynamically load libdecor [default=yes]
  1528. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1529. --enable-video-x11 use X11 video driver [default=yes]
  1530. --enable-x11-shared dynamically load X11 support [default=maybe]
  1531. --enable-video-x11-xcursor
  1532. enable X11 Xcursor support [default=yes]
  1533. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1547. --enable-video-cocoa use Cocoa video driver [default=yes]
  1548. --enable-video-metal include Metal support [default=yes]
  1549. --enable-render-metal enable the Metal render driver [default=yes]
  1550. --enable-video-directfb use DirectFB video driver [default=no]
  1551. --enable-directfb-shared
  1552. dynamically load directfb support [default=yes]
  1553. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1554. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1555. --enable-video-dummy use dummy video driver [default=yes]
  1556. --enable-video-offscreen
  1557. use offscreen video driver [default=no]
  1558. --enable-video-opengl include OpenGL support [default=yes]
  1559. --enable-video-opengles include OpenGL ES support [default=yes]
  1560. --enable-video-opengles1
  1561. include OpenGL ES 1.1 support [default=yes]
  1562. --enable-video-opengles2
  1563. include OpenGL ES 2.0 support [default=yes]
  1564. --enable-video-vulkan include Vulkan support [default=yes]
  1565. --enable-libudev enable libudev support [default=yes]
  1566. --enable-dbus enable D-Bus support [default=yes]
  1567. --enable-ime enable IME support [default=yes]
  1568. --enable-ibus enable IBus support [default=yes]
  1569. --enable-fcitx enable fcitx support [default=yes]
  1570. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1571. --enable-pthreads use POSIX threads for multi-threading
  1572. [default=maybe]
  1573. --enable-pthread-sem use pthread semaphores [default=maybe]
  1574. --enable-directx use DirectX for Windows audio/video [default=yes]
  1575. --enable-xinput use Xinput for Windows [default=yes]
  1576. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1577. --enable-hidapi-joystick
  1578. use HIDAPI for low level joystick drivers
  1579. [default=yes]
  1580. --enable-hidapi-libusb use libusb for low level joystick drivers
  1581. [default=maybe]
  1582. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1583. UNIX [default=yes]
  1584. --enable-rpath use an rpath when linking SDL [default=yes]
  1585. --enable-backgrounding-signal
  1586. number to use for magic backgrounding signal or 'no'
  1587. [default=no]
  1588. --enable-foregrounding-signal
  1589. number to use for magic foregrounding signal or 'no'
  1590. [default=no]
  1591. --enable-joystick-virtual
  1592. enable virtual joystick APIs [default=yes]
  1593. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1594. --enable-sdl2-config Install sdl2-config [default=yes]
  1595. Optional Packages:
  1596. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1597. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1598. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1599. both]
  1600. --with-aix-soname=aix|svr4|both
  1601. shared library versioning (aka "SONAME") variant to
  1602. provide on AIX, [default=aix].
  1603. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1604. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1605. compiler's sysroot if not specified).
  1606. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1607. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1608. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1609. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1610. --with-x use the X Window System
  1611. Some influential environment variables:
  1612. CC C compiler command
  1613. CFLAGS C compiler flags
  1614. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1615. nonstandard directory <lib dir>
  1616. LIBS libraries to pass to the linker, e.g. -l<library>
  1617. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1618. you have headers in a nonstandard directory <include dir>
  1619. LT_SYS_LIBRARY_PATH
  1620. User-defined run-time library search path.
  1621. CPP C preprocessor
  1622. CXX C++ compiler command
  1623. CXXFLAGS C++ compiler flags
  1624. CXXCPP C++ preprocessor
  1625. PKG_CONFIG path to pkg-config utility
  1626. PKG_CONFIG_PATH
  1627. directories to add to pkg-config's search path
  1628. PKG_CONFIG_LIBDIR
  1629. path overriding pkg-config's built-in search path
  1630. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1631. JACK_LIBS linker flags for JACK, overriding pkg-config
  1632. PIPEWIRE_CFLAGS
  1633. C compiler flags for PIPEWIRE, overriding pkg-config
  1634. PIPEWIRE_LIBS
  1635. linker flags for PIPEWIRE, overriding pkg-config
  1636. PULSEAUDIO_CFLAGS
  1637. C compiler flags for PULSEAUDIO, overriding pkg-config
  1638. PULSEAUDIO_LIBS
  1639. linker flags for PULSEAUDIO, overriding pkg-config
  1640. FUSIONSOUND_CFLAGS
  1641. C compiler flags for FUSIONSOUND, overriding pkg-config
  1642. FUSIONSOUND_LIBS
  1643. linker flags for FUSIONSOUND, overriding pkg-config
  1644. DECOR_CFLAGS
  1645. C compiler flags for DECOR, overriding pkg-config
  1646. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1647. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1648. RPI_LIBS linker flags for RPI, overriding pkg-config
  1649. XMKMF Path to xmkmf, Makefile generator for X Window System
  1650. DIRECTFB_CFLAGS
  1651. C compiler flags for DIRECTFB, overriding pkg-config
  1652. DIRECTFB_LIBS
  1653. linker flags for DIRECTFB, overriding pkg-config
  1654. LIBDRM_CFLAGS
  1655. C compiler flags for LIBDRM, overriding pkg-config
  1656. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1657. LIBGBM_CFLAGS
  1658. C compiler flags for LIBGBM, overriding pkg-config
  1659. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1660. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1661. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1662. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1663. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1664. LIBUSB_CFLAGS
  1665. C compiler flags for LIBUSB, overriding pkg-config
  1666. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1667. Use these variables to override the choices made by `configure' or to help
  1668. it to find libraries and programs with nonstandard names/locations.
  1669. Report bugs to the package provider.
  1670. _ACEOF
  1671. ac_status=$?
  1672. fi
  1673. if test "$ac_init_help" = "recursive"; then
  1674. # If there are subdirs, report their specific --help.
  1675. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1676. test -d "$ac_dir" ||
  1677. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1678. continue
  1679. ac_builddir=.
  1680. case "$ac_dir" in
  1681. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1682. *)
  1683. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1684. # A ".." for each directory in $ac_dir_suffix.
  1685. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1686. case $ac_top_builddir_sub in
  1687. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1688. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1689. esac ;;
  1690. esac
  1691. ac_abs_top_builddir=$ac_pwd
  1692. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1693. # for backward compatibility:
  1694. ac_top_builddir=$ac_top_build_prefix
  1695. case $srcdir in
  1696. .) # We are building in place.
  1697. ac_srcdir=.
  1698. ac_top_srcdir=$ac_top_builddir_sub
  1699. ac_abs_top_srcdir=$ac_pwd ;;
  1700. [\\/]* | ?:[\\/]* ) # Absolute name.
  1701. ac_srcdir=$srcdir$ac_dir_suffix;
  1702. ac_top_srcdir=$srcdir
  1703. ac_abs_top_srcdir=$srcdir ;;
  1704. *) # Relative name.
  1705. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1706. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1707. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1708. esac
  1709. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1710. cd "$ac_dir" || { ac_status=$?; continue; }
  1711. # Check for guested configure.
  1712. if test -f "$ac_srcdir/configure.gnu"; then
  1713. echo &&
  1714. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1715. elif test -f "$ac_srcdir/configure"; then
  1716. echo &&
  1717. $SHELL "$ac_srcdir/configure" --help=recursive
  1718. else
  1719. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1720. fi || ac_status=$?
  1721. cd "$ac_pwd" || { ac_status=$?; break; }
  1722. done
  1723. fi
  1724. test -n "$ac_init_help" && exit $ac_status
  1725. if $ac_init_version; then
  1726. cat <<\_ACEOF
  1727. configure
  1728. generated by GNU Autoconf 2.69
  1729. Copyright (C) 2012 Free Software Foundation, Inc.
  1730. This configure script is free software; the Free Software Foundation
  1731. gives unlimited permission to copy, distribute and modify it.
  1732. _ACEOF
  1733. exit
  1734. fi
  1735. ## ------------------------ ##
  1736. ## Autoconf initialization. ##
  1737. ## ------------------------ ##
  1738. # ac_fn_c_try_compile LINENO
  1739. # --------------------------
  1740. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1741. ac_fn_c_try_compile ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. rm -f conftest.$ac_objext
  1745. if { { ac_try="$ac_compile"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_compile") 2>conftest.err
  1753. ac_status=$?
  1754. if test -s conftest.err; then
  1755. grep -v '^ *+' conftest.err >conftest.er1
  1756. cat conftest.er1 >&5
  1757. mv -f conftest.er1 conftest.err
  1758. fi
  1759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } && {
  1761. test -z "$ac_c_werror_flag" ||
  1762. test ! -s conftest.err
  1763. } && test -s conftest.$ac_objext; then :
  1764. ac_retval=0
  1765. else
  1766. $as_echo "$as_me: failed program was:" >&5
  1767. sed 's/^/| /' conftest.$ac_ext >&5
  1768. ac_retval=1
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_compile
  1773. # ac_fn_c_try_link LINENO
  1774. # -----------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. test -x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_c_try_link
  1816. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1817. # -------------------------------------------------------
  1818. # Tests whether HEADER exists and can be compiled using the include files in
  1819. # INCLUDES, setting the cache variable VAR accordingly.
  1820. ac_fn_c_check_header_compile ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. $as_echo_n "checking for $2... " >&6; }
  1825. if eval \${$3+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. else
  1828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1829. /* end confdefs.h. */
  1830. $4
  1831. #include <$2>
  1832. _ACEOF
  1833. if ac_fn_c_try_compile "$LINENO"; then :
  1834. eval "$3=yes"
  1835. else
  1836. eval "$3=no"
  1837. fi
  1838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_check_header_compile
  1845. # ac_fn_c_try_cpp LINENO
  1846. # ----------------------
  1847. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_c_try_cpp ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1857. $as_echo "$ac_try_echo"; } >&5
  1858. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1859. ac_status=$?
  1860. if test -s conftest.err; then
  1861. grep -v '^ *+' conftest.err >conftest.er1
  1862. cat conftest.er1 >&5
  1863. mv -f conftest.er1 conftest.err
  1864. fi
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; } > conftest.i && {
  1867. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1868. test ! -s conftest.err
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. as_fn_set_status $ac_retval
  1878. } # ac_fn_c_try_cpp
  1879. # ac_fn_c_try_run LINENO
  1880. # ----------------------
  1881. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1882. # that executables *can* be run.
  1883. ac_fn_c_try_run ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. if { { ac_try="$ac_link"
  1887. case "(($ac_try" in
  1888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1889. *) ac_try_echo=$ac_try;;
  1890. esac
  1891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1892. $as_echo "$ac_try_echo"; } >&5
  1893. (eval "$ac_link") 2>&5
  1894. ac_status=$?
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1897. { { case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_try") 2>&5
  1904. ac_status=$?
  1905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1906. test $ac_status = 0; }; }; then :
  1907. ac_retval=0
  1908. else
  1909. $as_echo "$as_me: program exited with status $ac_status" >&5
  1910. $as_echo "$as_me: failed program was:" >&5
  1911. sed 's/^/| /' conftest.$ac_ext >&5
  1912. ac_retval=$ac_status
  1913. fi
  1914. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1915. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1916. as_fn_set_status $ac_retval
  1917. } # ac_fn_c_try_run
  1918. # ac_fn_c_check_func LINENO FUNC VAR
  1919. # ----------------------------------
  1920. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1921. ac_fn_c_check_func ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1925. $as_echo_n "checking for $2... " >&6; }
  1926. if eval \${$3+:} false; then :
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1932. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1933. #define $2 innocuous_$2
  1934. /* System header to define __stub macros and hopefully few prototypes,
  1935. which can conflict with char $2 (); below.
  1936. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1937. <limits.h> exists even on freestanding compilers. */
  1938. #ifdef __STDC__
  1939. # include <limits.h>
  1940. #else
  1941. # include <assert.h>
  1942. #endif
  1943. #undef $2
  1944. /* Override any GCC internal prototype to avoid an error.
  1945. Use char because int might match the return type of a GCC
  1946. builtin and then its argument prototype would still apply. */
  1947. #ifdef __cplusplus
  1948. extern "C"
  1949. #endif
  1950. char $2 ();
  1951. /* The GNU C library defines this for functions which it implements
  1952. to always fail with ENOSYS. Some functions are actually named
  1953. something starting with __ and the normal name is an alias. */
  1954. #if defined __stub_$2 || defined __stub___$2
  1955. choke me
  1956. #endif
  1957. int
  1958. main ()
  1959. {
  1960. return $2 ();
  1961. ;
  1962. return 0;
  1963. }
  1964. _ACEOF
  1965. if ac_fn_c_try_link "$LINENO"; then :
  1966. eval "$3=yes"
  1967. else
  1968. eval "$3=no"
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext \
  1971. conftest$ac_exeext conftest.$ac_ext
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. } # ac_fn_c_check_func
  1978. # ac_fn_cxx_try_compile LINENO
  1979. # ----------------------------
  1980. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_compile ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext
  1985. if { { ac_try="$ac_compile"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. $as_echo "$ac_try_echo"; } >&5
  1992. (eval "$ac_compile") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest.$ac_objext; then :
  2004. ac_retval=0
  2005. else
  2006. $as_echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. ac_retval=1
  2009. fi
  2010. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2011. as_fn_set_status $ac_retval
  2012. } # ac_fn_cxx_try_compile
  2013. # ac_fn_cxx_try_cpp LINENO
  2014. # ------------------------
  2015. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2016. ac_fn_cxx_try_cpp ()
  2017. {
  2018. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2019. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. $as_echo "$ac_try_echo"; } >&5
  2026. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } > conftest.i && {
  2035. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. }; then :
  2038. ac_retval=0
  2039. else
  2040. $as_echo "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_retval=1
  2043. fi
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. as_fn_set_status $ac_retval
  2046. } # ac_fn_cxx_try_cpp
  2047. # ac_fn_cxx_try_link LINENO
  2048. # -------------------------
  2049. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2050. ac_fn_cxx_try_link ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. rm -f conftest.$ac_objext conftest$ac_exeext
  2054. if { { ac_try="$ac_link"
  2055. case "(($ac_try" in
  2056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2057. *) ac_try_echo=$ac_try;;
  2058. esac
  2059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2060. $as_echo "$ac_try_echo"; } >&5
  2061. (eval "$ac_link") 2>conftest.err
  2062. ac_status=$?
  2063. if test -s conftest.err; then
  2064. grep -v '^ *+' conftest.err >conftest.er1
  2065. cat conftest.er1 >&5
  2066. mv -f conftest.er1 conftest.err
  2067. fi
  2068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2069. test $ac_status = 0; } && {
  2070. test -z "$ac_cxx_werror_flag" ||
  2071. test ! -s conftest.err
  2072. } && test -s conftest$ac_exeext && {
  2073. test "$cross_compiling" = yes ||
  2074. test -x conftest$ac_exeext
  2075. }; then :
  2076. ac_retval=0
  2077. else
  2078. $as_echo "$as_me: failed program was:" >&5
  2079. sed 's/^/| /' conftest.$ac_ext >&5
  2080. ac_retval=1
  2081. fi
  2082. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2083. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2084. # interfere with the next link command; also delete a directory that is
  2085. # left behind by Apple's compiler. We do this before executing the actions.
  2086. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2087. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2088. as_fn_set_status $ac_retval
  2089. } # ac_fn_cxx_try_link
  2090. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2091. # -------------------------------------------------------
  2092. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2093. # the include files in INCLUDES and setting the cache variable VAR
  2094. # accordingly.
  2095. ac_fn_c_check_header_mongrel ()
  2096. {
  2097. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2098. if eval \${$3+:} false; then :
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2100. $as_echo_n "checking for $2... " >&6; }
  2101. if eval \${$3+:} false; then :
  2102. $as_echo_n "(cached) " >&6
  2103. fi
  2104. eval ac_res=\$$3
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107. else
  2108. # Is the header compilable?
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2110. $as_echo_n "checking $2 usability... " >&6; }
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $4
  2114. #include <$2>
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"; then :
  2117. ac_header_compiler=yes
  2118. else
  2119. ac_header_compiler=no
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2123. $as_echo "$ac_header_compiler" >&6; }
  2124. # Is the header present?
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2126. $as_echo_n "checking $2 presence... " >&6; }
  2127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2128. /* end confdefs.h. */
  2129. #include <$2>
  2130. _ACEOF
  2131. if ac_fn_c_try_cpp "$LINENO"; then :
  2132. ac_header_preproc=yes
  2133. else
  2134. ac_header_preproc=no
  2135. fi
  2136. rm -f conftest.err conftest.i conftest.$ac_ext
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2138. $as_echo "$ac_header_preproc" >&6; }
  2139. # So? What about this header?
  2140. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2141. yes:no: )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2143. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2145. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2146. ;;
  2147. no:yes:* )
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2149. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2151. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2153. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2155. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2157. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2158. ;;
  2159. esac
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2161. $as_echo_n "checking for $2... " >&6; }
  2162. if eval \${$3+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. eval "$3=\$ac_header_compiler"
  2166. fi
  2167. eval ac_res=\$$3
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2169. $as_echo "$ac_res" >&6; }
  2170. fi
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. } # ac_fn_c_check_header_mongrel
  2173. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2174. # -------------------------------------------
  2175. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2176. # variable VAR accordingly.
  2177. ac_fn_c_check_type ()
  2178. {
  2179. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2181. $as_echo_n "checking for $2... " >&6; }
  2182. if eval \${$3+:} false; then :
  2183. $as_echo_n "(cached) " >&6
  2184. else
  2185. eval "$3=no"
  2186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2187. /* end confdefs.h. */
  2188. $4
  2189. int
  2190. main ()
  2191. {
  2192. if (sizeof ($2))
  2193. return 0;
  2194. ;
  2195. return 0;
  2196. }
  2197. _ACEOF
  2198. if ac_fn_c_try_compile "$LINENO"; then :
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $4
  2202. int
  2203. main ()
  2204. {
  2205. if (sizeof (($2)))
  2206. return 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_c_try_compile "$LINENO"; then :
  2212. else
  2213. eval "$3=yes"
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. eval ac_res=\$$3
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2221. $as_echo "$ac_res" >&6; }
  2222. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2223. } # ac_fn_c_check_type
  2224. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2225. # ----------------------------------------------------
  2226. # Tries to find if the field MEMBER exists in type AGGR, after including
  2227. # INCLUDES, setting cache variable VAR accordingly.
  2228. ac_fn_c_check_member ()
  2229. {
  2230. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2232. $as_echo_n "checking for $2.$3... " >&6; }
  2233. if eval \${$4+:} false; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $5
  2255. int
  2256. main ()
  2257. {
  2258. static $2 ac_aggr;
  2259. if (sizeof ac_aggr.$3)
  2260. return 0;
  2261. ;
  2262. return 0;
  2263. }
  2264. _ACEOF
  2265. if ac_fn_c_try_compile "$LINENO"; then :
  2266. eval "$4=yes"
  2267. else
  2268. eval "$4=no"
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. fi
  2274. eval ac_res=\$$4
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2276. $as_echo "$ac_res" >&6; }
  2277. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2278. } # ac_fn_c_check_member
  2279. cat >config.log <<_ACEOF
  2280. This file contains any messages produced by compilers while
  2281. running configure, to aid debugging if configure makes a mistake.
  2282. It was created by $as_me, which was
  2283. generated by GNU Autoconf 2.69. Invocation command line was
  2284. $ $0 $@
  2285. _ACEOF
  2286. exec 5>>config.log
  2287. {
  2288. cat <<_ASUNAME
  2289. ## --------- ##
  2290. ## Platform. ##
  2291. ## --------- ##
  2292. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2293. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2294. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2295. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2296. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2297. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2298. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2299. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2300. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2301. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2302. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2303. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2304. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2305. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2306. _ASUNAME
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. $as_echo "PATH: $as_dir"
  2313. done
  2314. IFS=$as_save_IFS
  2315. } >&5
  2316. cat >&5 <<_ACEOF
  2317. ## ----------- ##
  2318. ## Core tests. ##
  2319. ## ----------- ##
  2320. _ACEOF
  2321. # Keep a trace of the command line.
  2322. # Strip out --no-create and --no-recursion so they do not pile up.
  2323. # Strip out --silent because we don't want to record it for future runs.
  2324. # Also quote any args containing shell meta-characters.
  2325. # Make two passes to allow for proper duplicate-argument suppression.
  2326. ac_configure_args=
  2327. ac_configure_args0=
  2328. ac_configure_args1=
  2329. ac_must_keep_next=false
  2330. for ac_pass in 1 2
  2331. do
  2332. for ac_arg
  2333. do
  2334. case $ac_arg in
  2335. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2336. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2337. | -silent | --silent | --silen | --sile | --sil)
  2338. continue ;;
  2339. *\'*)
  2340. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2341. esac
  2342. case $ac_pass in
  2343. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2344. 2)
  2345. as_fn_append ac_configure_args1 " '$ac_arg'"
  2346. if test $ac_must_keep_next = true; then
  2347. ac_must_keep_next=false # Got value, back to normal.
  2348. else
  2349. case $ac_arg in
  2350. *=* | --config-cache | -C | -disable-* | --disable-* \
  2351. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2352. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2353. | -with-* | --with-* | -without-* | --without-* | --x)
  2354. case "$ac_configure_args0 " in
  2355. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2356. esac
  2357. ;;
  2358. -* ) ac_must_keep_next=true ;;
  2359. esac
  2360. fi
  2361. as_fn_append ac_configure_args " '$ac_arg'"
  2362. ;;
  2363. esac
  2364. done
  2365. done
  2366. { ac_configure_args0=; unset ac_configure_args0;}
  2367. { ac_configure_args1=; unset ac_configure_args1;}
  2368. # When interrupted or exit'd, cleanup temporary files, and complete
  2369. # config.log. We remove comments because anyway the quotes in there
  2370. # would cause problems or look ugly.
  2371. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2372. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2373. trap 'exit_status=$?
  2374. # Save into config.log some information that might help in debugging.
  2375. {
  2376. echo
  2377. $as_echo "## ---------------- ##
  2378. ## Cache variables. ##
  2379. ## ---------------- ##"
  2380. echo
  2381. # The following way of writing the cache mishandles newlines in values,
  2382. (
  2383. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2384. eval ac_val=\$$ac_var
  2385. case $ac_val in #(
  2386. *${as_nl}*)
  2387. case $ac_var in #(
  2388. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2389. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2390. esac
  2391. case $ac_var in #(
  2392. _ | IFS | as_nl) ;; #(
  2393. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2394. *) { eval $ac_var=; unset $ac_var;} ;;
  2395. esac ;;
  2396. esac
  2397. done
  2398. (set) 2>&1 |
  2399. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2400. *${as_nl}ac_space=\ *)
  2401. sed -n \
  2402. "s/'\''/'\''\\\\'\'''\''/g;
  2403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2404. ;; #(
  2405. *)
  2406. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2407. ;;
  2408. esac |
  2409. sort
  2410. )
  2411. echo
  2412. $as_echo "## ----------------- ##
  2413. ## Output variables. ##
  2414. ## ----------------- ##"
  2415. echo
  2416. for ac_var in $ac_subst_vars
  2417. do
  2418. eval ac_val=\$$ac_var
  2419. case $ac_val in
  2420. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2421. esac
  2422. $as_echo "$ac_var='\''$ac_val'\''"
  2423. done | sort
  2424. echo
  2425. if test -n "$ac_subst_files"; then
  2426. $as_echo "## ------------------- ##
  2427. ## File substitutions. ##
  2428. ## ------------------- ##"
  2429. echo
  2430. for ac_var in $ac_subst_files
  2431. do
  2432. eval ac_val=\$$ac_var
  2433. case $ac_val in
  2434. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2435. esac
  2436. $as_echo "$ac_var='\''$ac_val'\''"
  2437. done | sort
  2438. echo
  2439. fi
  2440. if test -s confdefs.h; then
  2441. $as_echo "## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##"
  2444. echo
  2445. cat confdefs.h
  2446. echo
  2447. fi
  2448. test "$ac_signal" != 0 &&
  2449. $as_echo "$as_me: caught signal $ac_signal"
  2450. $as_echo "$as_me: exit $exit_status"
  2451. } >&5
  2452. rm -f core *.core core.conftest.* &&
  2453. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2454. exit $exit_status
  2455. ' 0
  2456. for ac_signal in 1 2 13 15; do
  2457. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2458. done
  2459. ac_signal=0
  2460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2461. rm -f -r conftest* confdefs.h
  2462. $as_echo "/* confdefs.h */" > confdefs.h
  2463. # Predefined preprocessor variables.
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_NAME "$PACKAGE_NAME"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_STRING "$PACKAGE_STRING"
  2475. _ACEOF
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define PACKAGE_URL "$PACKAGE_URL"
  2481. _ACEOF
  2482. # Let the site file select an alternate cache file if it wants to.
  2483. # Prefer an explicitly selected file to automatically selected ones.
  2484. ac_site_file1=NONE
  2485. ac_site_file2=NONE
  2486. if test -n "$CONFIG_SITE"; then
  2487. # We do not want a PATH search for config.site.
  2488. case $CONFIG_SITE in #((
  2489. -*) ac_site_file1=./$CONFIG_SITE;;
  2490. */*) ac_site_file1=$CONFIG_SITE;;
  2491. *) ac_site_file1=./$CONFIG_SITE;;
  2492. esac
  2493. elif test "x$prefix" != xNONE; then
  2494. ac_site_file1=$prefix/share/config.site
  2495. ac_site_file2=$prefix/etc/config.site
  2496. else
  2497. ac_site_file1=$ac_default_prefix/share/config.site
  2498. ac_site_file2=$ac_default_prefix/etc/config.site
  2499. fi
  2500. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2501. do
  2502. test "x$ac_site_file" = xNONE && continue
  2503. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2505. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2506. sed 's/^/| /' "$ac_site_file" >&5
  2507. . "$ac_site_file" \
  2508. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2509. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2510. as_fn_error $? "failed to load site script $ac_site_file
  2511. See \`config.log' for more details" "$LINENO" 5; }
  2512. fi
  2513. done
  2514. if test -r "$cache_file"; then
  2515. # Some versions of bash will fail to source /dev/null (special files
  2516. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2517. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2519. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2520. case $cache_file in
  2521. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2522. *) . "./$cache_file";;
  2523. esac
  2524. fi
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2527. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2528. >$cache_file
  2529. fi
  2530. # Check that the precious variables saved in the cache have kept the same
  2531. # value.
  2532. ac_cache_corrupted=false
  2533. for ac_var in $ac_precious_vars; do
  2534. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2535. eval ac_new_set=\$ac_env_${ac_var}_set
  2536. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2537. eval ac_new_val=\$ac_env_${ac_var}_value
  2538. case $ac_old_set,$ac_new_set in
  2539. set,)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2542. ac_cache_corrupted=: ;;
  2543. ,set)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,);;
  2548. *)
  2549. if test "x$ac_old_val" != "x$ac_new_val"; then
  2550. # differences in whitespace do not lead to failure.
  2551. ac_old_val_w=`echo x $ac_old_val`
  2552. ac_new_val_w=`echo x $ac_new_val`
  2553. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2556. ac_cache_corrupted=:
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2559. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2560. eval $ac_var=\$ac_old_val
  2561. fi
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2563. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2565. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2566. fi;;
  2567. esac
  2568. # Pass precious variables to config.status.
  2569. if test "$ac_new_set" = set; then
  2570. case $ac_new_val in
  2571. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2572. *) ac_arg=$ac_var=$ac_new_val ;;
  2573. esac
  2574. case " $ac_configure_args " in
  2575. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2576. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2577. esac
  2578. fi
  2579. done
  2580. if $ac_cache_corrupted; then
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2584. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2585. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2586. fi
  2587. ## -------------------- ##
  2588. ## Main body of script. ##
  2589. ## -------------------- ##
  2590. ac_ext=c
  2591. ac_cpp='$CPP $CPPFLAGS'
  2592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2595. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2596. ac_aux_dir=
  2597. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2598. if test -f "$ac_dir/install-sh"; then
  2599. ac_aux_dir=$ac_dir
  2600. ac_install_sh="$ac_aux_dir/install-sh -c"
  2601. break
  2602. elif test -f "$ac_dir/install.sh"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/install.sh -c"
  2605. break
  2606. elif test -f "$ac_dir/shtool"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/shtool install -c"
  2609. break
  2610. fi
  2611. done
  2612. if test -z "$ac_aux_dir"; then
  2613. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2614. fi
  2615. # These three variables are undocumented and unsupported,
  2616. # and are intended to be withdrawn in a future Autoconf release.
  2617. # They can cause serious problems if a builder's source tree is in a directory
  2618. # whose full name contains unusual characters.
  2619. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2620. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2621. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2622. orig_CFLAGS="$CFLAGS"
  2623. # See docs/release_checklist.md
  2624. SDL_MAJOR_VERSION=2
  2625. SDL_MINOR_VERSION=23
  2626. SDL_MICRO_VERSION=0
  2627. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2628. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2629. case "$SDL_MINOR_VERSION" in #(
  2630. *[02468]) :
  2631. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2632. *) :
  2633. SDL_INTERFACE_AGE=0 ;; #(
  2634. *) :
  2635. ;;
  2636. esac
  2637. # libtool versioning
  2638. case `pwd` in
  2639. *\ * | *\ *)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2641. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2642. esac
  2643. macro_version='2.4.6'
  2644. macro_revision='2.4.6'
  2645. ltmain=$ac_aux_dir/ltmain.sh
  2646. # Make sure we can run config.sub.
  2647. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2648. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2650. $as_echo_n "checking build system type... " >&6; }
  2651. if ${ac_cv_build+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. ac_build_alias=$build_alias
  2655. test "x$ac_build_alias" = x &&
  2656. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2657. test "x$ac_build_alias" = x &&
  2658. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2659. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2660. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2663. $as_echo "$ac_cv_build" >&6; }
  2664. case $ac_cv_build in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2667. esac
  2668. build=$ac_cv_build
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_build
  2671. shift
  2672. build_cpu=$1
  2673. build_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. build_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2681. $as_echo_n "checking host system type... " >&6; }
  2682. if ${ac_cv_host+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test "x$host_alias" = x; then
  2686. ac_cv_host=$ac_cv_build
  2687. else
  2688. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2693. $as_echo "$ac_cv_host" >&6; }
  2694. case $ac_cv_host in
  2695. *-*-*) ;;
  2696. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2697. esac
  2698. host=$ac_cv_host
  2699. ac_save_IFS=$IFS; IFS='-'
  2700. set x $ac_cv_host
  2701. shift
  2702. host_cpu=$1
  2703. host_vendor=$2
  2704. shift; shift
  2705. # Remember, the first character of IFS is used to create $*,
  2706. # except with old shells:
  2707. host_os=$*
  2708. IFS=$ac_save_IFS
  2709. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2710. # Backslashify metacharacters that are still active within
  2711. # double-quoted strings.
  2712. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2713. # Same as above, but do not quote variable references.
  2714. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2715. # Sed substitution to delay expansion of an escaped shell variable in a
  2716. # double_quote_subst'ed string.
  2717. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2718. # Sed substitution to delay expansion of an escaped single quote.
  2719. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2720. # Sed substitution to avoid accidental globbing in evaled expressions
  2721. no_glob_subst='s/\*/\\\*/g'
  2722. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2723. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2726. $as_echo_n "checking how to print strings... " >&6; }
  2727. # Test print first, because it will be a builtin if present.
  2728. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2729. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2730. ECHO='print -r --'
  2731. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='printf %s\n'
  2733. else
  2734. # Use this function as a fallback that always works.
  2735. func_fallback_echo ()
  2736. {
  2737. eval 'cat <<_LTECHO_EOF
  2738. $1
  2739. _LTECHO_EOF'
  2740. }
  2741. ECHO='func_fallback_echo'
  2742. fi
  2743. # func_echo_all arg...
  2744. # Invoke $ECHO with all args, space-separated.
  2745. func_echo_all ()
  2746. {
  2747. $ECHO ""
  2748. }
  2749. case $ECHO in
  2750. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2751. $as_echo "printf" >&6; } ;;
  2752. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2753. $as_echo "print -r" >&6; } ;;
  2754. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2755. $as_echo "cat" >&6; } ;;
  2756. esac
  2757. ac_ext=c
  2758. ac_cpp='$CPP $CPPFLAGS'
  2759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2762. if test -n "$ac_tool_prefix"; then
  2763. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2764. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_CC+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$CC"; then
  2771. ac_cv_prog_CC="$CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$ac_cv_prog_CC"; then
  2799. ac_ct_CC=$CC
  2800. # Extract the first word of "gcc", so it can be a program name with args.
  2801. set dummy gcc; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$ac_ct_CC"; then
  2808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_ac_ct_CC="gcc"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2827. if test -n "$ac_ct_CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2829. $as_echo "$ac_ct_CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. if test "x$ac_ct_CC" = x; then
  2835. CC=""
  2836. else
  2837. case $cross_compiling:$ac_tool_warned in
  2838. yes:)
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2841. ac_tool_warned=yes ;;
  2842. esac
  2843. CC=$ac_ct_CC
  2844. fi
  2845. else
  2846. CC="$ac_cv_prog_CC"
  2847. fi
  2848. if test -z "$CC"; then
  2849. if test -n "$ac_tool_prefix"; then
  2850. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2851. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if ${ac_cv_prog_CC+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. fi
  2875. fi
  2876. CC=$ac_cv_prog_CC
  2877. if test -n "$CC"; then
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2879. $as_echo "$CC" >&6; }
  2880. else
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. fi
  2884. fi
  2885. fi
  2886. if test -z "$CC"; then
  2887. # Extract the first word of "cc", so it can be a program name with args.
  2888. set dummy cc; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if ${ac_cv_prog_CC+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$CC"; then
  2895. ac_cv_prog_CC="$CC" # Let the user override the test.
  2896. else
  2897. ac_prog_rejected=no
  2898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2899. for as_dir in $PATH
  2900. do
  2901. IFS=$as_save_IFS
  2902. test -z "$as_dir" && as_dir=.
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2905. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2906. ac_prog_rejected=yes
  2907. continue
  2908. fi
  2909. ac_cv_prog_CC="cc"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. if test $ac_prog_rejected = yes; then
  2917. # We found a bogon in the path, so make sure we never use it.
  2918. set dummy $ac_cv_prog_CC
  2919. shift
  2920. if test $# != 0; then
  2921. # We chose a different compiler from the bogus one.
  2922. # However, it has the same basename, so the bogon will be chosen
  2923. # first if we set CC to just the basename; use the full file name.
  2924. shift
  2925. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2926. fi
  2927. fi
  2928. fi
  2929. fi
  2930. CC=$ac_cv_prog_CC
  2931. if test -n "$CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2933. $as_echo "$CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. fi
  2939. if test -z "$CC"; then
  2940. if test -n "$ac_tool_prefix"; then
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$CC"; then
  2951. ac_cv_prog_CC="$CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. CC=$ac_cv_prog_CC
  2970. if test -n "$CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2972. $as_echo "$CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$CC" && break
  2978. done
  2979. fi
  2980. if test -z "$CC"; then
  2981. ac_ct_CC=$CC
  2982. for ac_prog in cl.exe
  2983. do
  2984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2985. set dummy $ac_prog; ac_word=$2
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2987. $as_echo_n "checking for $ac_word... " >&6; }
  2988. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. if test -n "$ac_ct_CC"; then
  2992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2993. else
  2994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2995. for as_dir in $PATH
  2996. do
  2997. IFS=$as_save_IFS
  2998. test -z "$as_dir" && as_dir=.
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3001. ac_cv_prog_ac_ct_CC="$ac_prog"
  3002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3003. break 2
  3004. fi
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. fi
  3010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3011. if test -n "$ac_ct_CC"; then
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3013. $as_echo "$ac_ct_CC" >&6; }
  3014. else
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017. fi
  3018. test -n "$ac_ct_CC" && break
  3019. done
  3020. if test "x$ac_ct_CC" = x; then
  3021. CC=""
  3022. else
  3023. case $cross_compiling:$ac_tool_warned in
  3024. yes:)
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3027. ac_tool_warned=yes ;;
  3028. esac
  3029. CC=$ac_ct_CC
  3030. fi
  3031. fi
  3032. fi
  3033. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "no acceptable C compiler found in \$PATH
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. # Provide some information about the compiler.
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3039. set X $ac_compile
  3040. ac_compiler=$2
  3041. for ac_option in --version -v -V -qversion; do
  3042. { { ac_try="$ac_compiler $ac_option >&5"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3050. ac_status=$?
  3051. if test -s conftest.err; then
  3052. sed '10a\
  3053. ... rest of stderr output deleted ...
  3054. 10q' conftest.err >conftest.er1
  3055. cat conftest.er1 >&5
  3056. fi
  3057. rm -f conftest.er1 conftest.err
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }
  3060. done
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files_save=$ac_clean_files
  3071. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3072. # Try to create an executable without -o first, disregard a.out.
  3073. # It will help us diagnose broken compilers, and finding out an intuition
  3074. # of exeext.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3076. $as_echo_n "checking whether the C compiler works... " >&6; }
  3077. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3078. # The possible output files:
  3079. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3080. ac_rmfiles=
  3081. for ac_file in $ac_files
  3082. do
  3083. case $ac_file in
  3084. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3085. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3086. esac
  3087. done
  3088. rm -f $ac_rmfiles
  3089. if { { ac_try="$ac_link_default"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_link_default") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3101. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3102. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3103. # so that the user can short-circuit this test for compilers unknown to
  3104. # Autoconf.
  3105. for ac_file in $ac_files ''
  3106. do
  3107. test -f "$ac_file" || continue
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3110. ;;
  3111. [ab].out )
  3112. # We found the default executable, but exeext='' is most
  3113. # certainly right.
  3114. break;;
  3115. *.* )
  3116. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3117. then :; else
  3118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3119. fi
  3120. # We set ac_cv_exeext here because the later test for it is not
  3121. # safe: cross compilers may not add the suffix if given an `-o'
  3122. # argument, so we may need to know it at that point already.
  3123. # Even if this section looks crufty: it has the advantage of
  3124. # actually working.
  3125. break;;
  3126. * )
  3127. break;;
  3128. esac
  3129. done
  3130. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3131. else
  3132. ac_file=''
  3133. fi
  3134. if test -z "$ac_file"; then :
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3136. $as_echo "no" >&6; }
  3137. $as_echo "$as_me: failed program was:" >&5
  3138. sed 's/^/| /' conftest.$ac_ext >&5
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error 77 "C compiler cannot create executables
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. else
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3145. $as_echo "yes" >&6; }
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3148. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3150. $as_echo "$ac_file" >&6; }
  3151. ac_exeext=$ac_cv_exeext
  3152. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3153. ac_clean_files=$ac_clean_files_save
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3155. $as_echo_n "checking for suffix of executables... " >&6; }
  3156. if { { ac_try="$ac_link"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_link") 2>&5
  3164. ac_status=$?
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3166. test $ac_status = 0; }; then :
  3167. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3168. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3169. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3170. # `rm'.
  3171. for ac_file in conftest.exe conftest conftest.*; do
  3172. test -f "$ac_file" || continue
  3173. case $ac_file in
  3174. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3175. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3176. break;;
  3177. * ) break;;
  3178. esac
  3179. done
  3180. else
  3181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3183. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3184. See \`config.log' for more details" "$LINENO" 5; }
  3185. fi
  3186. rm -f conftest conftest$ac_cv_exeext
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3188. $as_echo "$ac_cv_exeext" >&6; }
  3189. rm -f conftest.$ac_ext
  3190. EXEEXT=$ac_cv_exeext
  3191. ac_exeext=$EXEEXT
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdio.h>
  3195. int
  3196. main ()
  3197. {
  3198. FILE *f = fopen ("conftest.out", "w");
  3199. return ferror (f) || fclose (f) != 0;
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. ac_clean_files="$ac_clean_files conftest.out"
  3205. # Check that the compiler produces executables we can run. If not, either
  3206. # the compiler is broken, or we cross compile.
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3208. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3209. if test "$cross_compiling" != yes; then
  3210. { { ac_try="$ac_link"
  3211. case "(($ac_try" in
  3212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3213. *) ac_try_echo=$ac_try;;
  3214. esac
  3215. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3216. $as_echo "$ac_try_echo"; } >&5
  3217. (eval "$ac_link") 2>&5
  3218. ac_status=$?
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3220. test $ac_status = 0; }
  3221. if { ac_try='./conftest$ac_cv_exeext'
  3222. { { case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo"; } >&5
  3228. (eval "$ac_try") 2>&5
  3229. ac_status=$?
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3231. test $ac_status = 0; }; }; then
  3232. cross_compiling=no
  3233. else
  3234. if test "$cross_compiling" = maybe; then
  3235. cross_compiling=yes
  3236. else
  3237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3239. as_fn_error $? "cannot run C compiled programs.
  3240. If you meant to cross compile, use \`--host'.
  3241. See \`config.log' for more details" "$LINENO" 5; }
  3242. fi
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3246. $as_echo "$cross_compiling" >&6; }
  3247. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3248. ac_clean_files=$ac_clean_files_save
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3250. $as_echo_n "checking for suffix of object files... " >&6; }
  3251. if ${ac_cv_objext+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. int
  3257. main ()
  3258. {
  3259. ;
  3260. return 0;
  3261. }
  3262. _ACEOF
  3263. rm -f conftest.o conftest.obj
  3264. if { { ac_try="$ac_compile"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_compile") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; then :
  3275. for ac_file in conftest.o conftest.obj conftest.*; do
  3276. test -f "$ac_file" || continue;
  3277. case $ac_file in
  3278. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3279. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3280. break;;
  3281. esac
  3282. done
  3283. else
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3289. See \`config.log' for more details" "$LINENO" 5; }
  3290. fi
  3291. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3294. $as_echo "$ac_cv_objext" >&6; }
  3295. OBJEXT=$ac_cv_objext
  3296. ac_objext=$OBJEXT
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3298. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3299. if ${ac_cv_c_compiler_gnu+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. #ifndef __GNUC__
  3308. choke me
  3309. #endif
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_compiler_gnu=yes
  3316. else
  3317. ac_compiler_gnu=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3323. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3324. if test $ac_compiler_gnu = yes; then
  3325. GCC=yes
  3326. else
  3327. GCC=
  3328. fi
  3329. ac_test_CFLAGS=${CFLAGS+set}
  3330. ac_save_CFLAGS=$CFLAGS
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3332. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3333. if ${ac_cv_prog_cc_g+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_save_c_werror_flag=$ac_c_werror_flag
  3337. ac_c_werror_flag=yes
  3338. ac_cv_prog_cc_g=no
  3339. CFLAGS="-g"
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. ac_cv_prog_cc_g=yes
  3351. else
  3352. CFLAGS=""
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. if ac_fn_c_try_compile "$LINENO"; then :
  3363. else
  3364. ac_c_werror_flag=$ac_save_c_werror_flag
  3365. CFLAGS="-g"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. int
  3369. main ()
  3370. {
  3371. ;
  3372. return 0;
  3373. }
  3374. _ACEOF
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_g=yes
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. ac_c_werror_flag=$ac_save_c_werror_flag
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3386. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3387. if test "$ac_test_CFLAGS" = set; then
  3388. CFLAGS=$ac_save_CFLAGS
  3389. elif test $ac_cv_prog_cc_g = yes; then
  3390. if test "$GCC" = yes; then
  3391. CFLAGS="-g -O2"
  3392. else
  3393. CFLAGS="-g"
  3394. fi
  3395. else
  3396. if test "$GCC" = yes; then
  3397. CFLAGS="-O2"
  3398. else
  3399. CFLAGS=
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3403. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3404. if ${ac_cv_prog_cc_c89+:} false; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. ac_cv_prog_cc_c89=no
  3408. ac_save_CC=$CC
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. #include <stdarg.h>
  3412. #include <stdio.h>
  3413. struct stat;
  3414. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3415. struct buf { int x; };
  3416. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3417. static char *e (p, i)
  3418. char **p;
  3419. int i;
  3420. {
  3421. return p[i];
  3422. }
  3423. static char *f (char * (*g) (char **, int), char **p, ...)
  3424. {
  3425. char *s;
  3426. va_list v;
  3427. va_start (v,p);
  3428. s = g (p, va_arg (v,int));
  3429. va_end (v);
  3430. return s;
  3431. }
  3432. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3433. function prototypes and stuff, but not '\xHH' hex character constants.
  3434. These don't provoke an error unfortunately, instead are silently treated
  3435. as 'x'. The following induces an error, until -std is added to get
  3436. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3437. array size at least. It's necessary to write '\x00'==0 to get something
  3438. that's true only with -std. */
  3439. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3440. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3441. inside strings and character constants. */
  3442. #define FOO(x) 'x'
  3443. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3444. int test (int i, double x);
  3445. struct s1 {int (*f) (int a);};
  3446. struct s2 {int (*f) (double a);};
  3447. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3448. int argc;
  3449. char **argv;
  3450. int
  3451. main ()
  3452. {
  3453. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3459. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3460. do
  3461. CC="$ac_save_CC $ac_arg"
  3462. if ac_fn_c_try_compile "$LINENO"; then :
  3463. ac_cv_prog_cc_c89=$ac_arg
  3464. fi
  3465. rm -f core conftest.err conftest.$ac_objext
  3466. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3467. done
  3468. rm -f conftest.$ac_ext
  3469. CC=$ac_save_CC
  3470. fi
  3471. # AC_CACHE_VAL
  3472. case "x$ac_cv_prog_cc_c89" in
  3473. x)
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3475. $as_echo "none needed" >&6; } ;;
  3476. xno)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3478. $as_echo "unsupported" >&6; } ;;
  3479. *)
  3480. CC="$CC $ac_cv_prog_cc_c89"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3482. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3483. esac
  3484. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3485. fi
  3486. ac_ext=c
  3487. ac_cpp='$CPP $CPPFLAGS'
  3488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3492. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3493. if ${ac_cv_path_SED+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3497. for ac_i in 1 2 3 4 5 6 7; do
  3498. ac_script="$ac_script$as_nl$ac_script"
  3499. done
  3500. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3501. { ac_script=; unset ac_script;}
  3502. if test -z "$SED"; then
  3503. ac_path_SED_found=false
  3504. # Loop through the user's path and test for each of PROGNAME-LIST
  3505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3506. for as_dir in $PATH
  3507. do
  3508. IFS=$as_save_IFS
  3509. test -z "$as_dir" && as_dir=.
  3510. for ac_prog in sed gsed; do
  3511. for ac_exec_ext in '' $ac_executable_extensions; do
  3512. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3513. as_fn_executable_p "$ac_path_SED" || continue
  3514. # Check for GNU ac_path_SED and select it if it is found.
  3515. # Check for GNU $ac_path_SED
  3516. case `"$ac_path_SED" --version 2>&1` in
  3517. *GNU*)
  3518. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3519. *)
  3520. ac_count=0
  3521. $as_echo_n 0123456789 >"conftest.in"
  3522. while :
  3523. do
  3524. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3525. mv "conftest.tmp" "conftest.in"
  3526. cp "conftest.in" "conftest.nl"
  3527. $as_echo '' >> "conftest.nl"
  3528. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3529. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3530. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3531. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3532. # Best one so far, save it but keep looking for a better one
  3533. ac_cv_path_SED="$ac_path_SED"
  3534. ac_path_SED_max=$ac_count
  3535. fi
  3536. # 10*(2^10) chars as input seems more than enough
  3537. test $ac_count -gt 10 && break
  3538. done
  3539. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3540. esac
  3541. $ac_path_SED_found && break 3
  3542. done
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test -z "$ac_cv_path_SED"; then
  3547. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3548. fi
  3549. else
  3550. ac_cv_path_SED=$SED
  3551. fi
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3554. $as_echo "$ac_cv_path_SED" >&6; }
  3555. SED="$ac_cv_path_SED"
  3556. rm -f conftest.sed
  3557. test -z "$SED" && SED=sed
  3558. Xsed="$SED -e 1s/^X//"
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3560. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3561. if ${ac_cv_path_GREP+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -z "$GREP"; then
  3565. ac_path_GREP_found=false
  3566. # Loop through the user's path and test for each of PROGNAME-LIST
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_prog in grep ggrep; do
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3575. as_fn_executable_p "$ac_path_GREP" || continue
  3576. # Check for GNU ac_path_GREP and select it if it is found.
  3577. # Check for GNU $ac_path_GREP
  3578. case `"$ac_path_GREP" --version 2>&1` in
  3579. *GNU*)
  3580. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3581. *)
  3582. ac_count=0
  3583. $as_echo_n 0123456789 >"conftest.in"
  3584. while :
  3585. do
  3586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3587. mv "conftest.tmp" "conftest.in"
  3588. cp "conftest.in" "conftest.nl"
  3589. $as_echo 'GREP' >> "conftest.nl"
  3590. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3592. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3593. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3594. # Best one so far, save it but keep looking for a better one
  3595. ac_cv_path_GREP="$ac_path_GREP"
  3596. ac_path_GREP_max=$ac_count
  3597. fi
  3598. # 10*(2^10) chars as input seems more than enough
  3599. test $ac_count -gt 10 && break
  3600. done
  3601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3602. esac
  3603. $ac_path_GREP_found && break 3
  3604. done
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. if test -z "$ac_cv_path_GREP"; then
  3609. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3610. fi
  3611. else
  3612. ac_cv_path_GREP=$GREP
  3613. fi
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3616. $as_echo "$ac_cv_path_GREP" >&6; }
  3617. GREP="$ac_cv_path_GREP"
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3619. $as_echo_n "checking for egrep... " >&6; }
  3620. if ${ac_cv_path_EGREP+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3624. then ac_cv_path_EGREP="$GREP -E"
  3625. else
  3626. if test -z "$EGREP"; then
  3627. ac_path_EGREP_found=false
  3628. # Loop through the user's path and test for each of PROGNAME-LIST
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_prog in egrep; do
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3637. as_fn_executable_p "$ac_path_EGREP" || continue
  3638. # Check for GNU ac_path_EGREP and select it if it is found.
  3639. # Check for GNU $ac_path_EGREP
  3640. case `"$ac_path_EGREP" --version 2>&1` in
  3641. *GNU*)
  3642. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3643. *)
  3644. ac_count=0
  3645. $as_echo_n 0123456789 >"conftest.in"
  3646. while :
  3647. do
  3648. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3649. mv "conftest.tmp" "conftest.in"
  3650. cp "conftest.in" "conftest.nl"
  3651. $as_echo 'EGREP' >> "conftest.nl"
  3652. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3653. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3654. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3655. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3656. # Best one so far, save it but keep looking for a better one
  3657. ac_cv_path_EGREP="$ac_path_EGREP"
  3658. ac_path_EGREP_max=$ac_count
  3659. fi
  3660. # 10*(2^10) chars as input seems more than enough
  3661. test $ac_count -gt 10 && break
  3662. done
  3663. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3664. esac
  3665. $ac_path_EGREP_found && break 3
  3666. done
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. if test -z "$ac_cv_path_EGREP"; then
  3671. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3672. fi
  3673. else
  3674. ac_cv_path_EGREP=$EGREP
  3675. fi
  3676. fi
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3679. $as_echo "$ac_cv_path_EGREP" >&6; }
  3680. EGREP="$ac_cv_path_EGREP"
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3682. $as_echo_n "checking for fgrep... " >&6; }
  3683. if ${ac_cv_path_FGREP+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3687. then ac_cv_path_FGREP="$GREP -F"
  3688. else
  3689. if test -z "$FGREP"; then
  3690. ac_path_FGREP_found=false
  3691. # Loop through the user's path and test for each of PROGNAME-LIST
  3692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3693. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3694. do
  3695. IFS=$as_save_IFS
  3696. test -z "$as_dir" && as_dir=.
  3697. for ac_prog in fgrep; do
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3700. as_fn_executable_p "$ac_path_FGREP" || continue
  3701. # Check for GNU ac_path_FGREP and select it if it is found.
  3702. # Check for GNU $ac_path_FGREP
  3703. case `"$ac_path_FGREP" --version 2>&1` in
  3704. *GNU*)
  3705. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3706. *)
  3707. ac_count=0
  3708. $as_echo_n 0123456789 >"conftest.in"
  3709. while :
  3710. do
  3711. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3712. mv "conftest.tmp" "conftest.in"
  3713. cp "conftest.in" "conftest.nl"
  3714. $as_echo 'FGREP' >> "conftest.nl"
  3715. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3716. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3717. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3718. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3719. # Best one so far, save it but keep looking for a better one
  3720. ac_cv_path_FGREP="$ac_path_FGREP"
  3721. ac_path_FGREP_max=$ac_count
  3722. fi
  3723. # 10*(2^10) chars as input seems more than enough
  3724. test $ac_count -gt 10 && break
  3725. done
  3726. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3727. esac
  3728. $ac_path_FGREP_found && break 3
  3729. done
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. if test -z "$ac_cv_path_FGREP"; then
  3734. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3735. fi
  3736. else
  3737. ac_cv_path_FGREP=$FGREP
  3738. fi
  3739. fi
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3742. $as_echo "$ac_cv_path_FGREP" >&6; }
  3743. FGREP="$ac_cv_path_FGREP"
  3744. test -z "$GREP" && GREP=grep
  3745. # Check whether --with-gnu-ld was given.
  3746. if test "${with_gnu_ld+set}" = set; then :
  3747. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3748. else
  3749. with_gnu_ld=no
  3750. fi
  3751. ac_prog=ld
  3752. if test yes = "$GCC"; then
  3753. # Check if gcc -print-prog-name=ld gives a path.
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3755. $as_echo_n "checking for ld used by $CC... " >&6; }
  3756. case $host in
  3757. *-*-mingw*)
  3758. # gcc leaves a trailing carriage return, which upsets mingw
  3759. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3760. *)
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3762. esac
  3763. case $ac_prog in
  3764. # Accept absolute paths.
  3765. [\\/]* | ?:[\\/]*)
  3766. re_direlt='/[^/][^/]*/\.\./'
  3767. # Canonicalize the pathname of ld
  3768. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3769. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3770. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3771. done
  3772. test -z "$LD" && LD=$ac_prog
  3773. ;;
  3774. "")
  3775. # If it fails, then pretend we aren't using GCC.
  3776. ac_prog=ld
  3777. ;;
  3778. *)
  3779. # If it is relative, then search for the first ld in PATH.
  3780. with_gnu_ld=unknown
  3781. ;;
  3782. esac
  3783. elif test yes = "$with_gnu_ld"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3785. $as_echo_n "checking for GNU ld... " >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3788. $as_echo_n "checking for non-GNU ld... " >&6; }
  3789. fi
  3790. if ${lt_cv_path_LD+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$LD"; then
  3794. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3795. for ac_dir in $PATH; do
  3796. IFS=$lt_save_ifs
  3797. test -z "$ac_dir" && ac_dir=.
  3798. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3799. lt_cv_path_LD=$ac_dir/$ac_prog
  3800. # Check to see if the program is GNU ld. I'd rather use --version,
  3801. # but apparently some variants of GNU ld only accept -v.
  3802. # Break only if it was the GNU/non-GNU ld that we prefer.
  3803. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. test no != "$with_gnu_ld" && break
  3806. ;;
  3807. *)
  3808. test yes != "$with_gnu_ld" && break
  3809. ;;
  3810. esac
  3811. fi
  3812. done
  3813. IFS=$lt_save_ifs
  3814. else
  3815. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3816. fi
  3817. fi
  3818. LD=$lt_cv_path_LD
  3819. if test -n "$LD"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3821. $as_echo "$LD" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3828. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3829. if ${lt_cv_prog_gnu_ld+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3833. case `$LD -v 2>&1 </dev/null` in
  3834. *GNU* | *'with BFD'*)
  3835. lt_cv_prog_gnu_ld=yes
  3836. ;;
  3837. *)
  3838. lt_cv_prog_gnu_ld=no
  3839. ;;
  3840. esac
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3843. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3844. with_gnu_ld=$lt_cv_prog_gnu_ld
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3846. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3847. if ${lt_cv_path_NM+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -n "$NM"; then
  3851. # Let the user override the test.
  3852. lt_cv_path_NM=$NM
  3853. else
  3854. lt_nm_to_check=${ac_tool_prefix}nm
  3855. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3856. lt_nm_to_check="$lt_nm_to_check nm"
  3857. fi
  3858. for lt_tmp_nm in $lt_nm_to_check; do
  3859. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3860. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3861. IFS=$lt_save_ifs
  3862. test -z "$ac_dir" && ac_dir=.
  3863. tmp_nm=$ac_dir/$lt_tmp_nm
  3864. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3865. # Check to see if the nm accepts a BSD-compat flag.
  3866. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3867. # nm: unknown option "B" ignored
  3868. # Tru64's nm complains that /dev/null is an invalid object file
  3869. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3870. case $build_os in
  3871. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3872. *) lt_bad_file=/dev/null ;;
  3873. esac
  3874. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3875. *$lt_bad_file* | *'Invalid file or object type'*)
  3876. lt_cv_path_NM="$tmp_nm -B"
  3877. break 2
  3878. ;;
  3879. *)
  3880. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3881. */dev/null*)
  3882. lt_cv_path_NM="$tmp_nm -p"
  3883. break 2
  3884. ;;
  3885. *)
  3886. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3887. continue # so that we can try to find one that supports BSD flags
  3888. ;;
  3889. esac
  3890. ;;
  3891. esac
  3892. fi
  3893. done
  3894. IFS=$lt_save_ifs
  3895. done
  3896. : ${lt_cv_path_NM=no}
  3897. fi
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3900. $as_echo "$lt_cv_path_NM" >&6; }
  3901. if test no != "$lt_cv_path_NM"; then
  3902. NM=$lt_cv_path_NM
  3903. else
  3904. # Didn't find any BSD compatible name lister, look for dumpbin.
  3905. if test -n "$DUMPBIN"; then :
  3906. # Let the user override the test.
  3907. else
  3908. if test -n "$ac_tool_prefix"; then
  3909. for ac_prog in dumpbin "link -dump"
  3910. do
  3911. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3912. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$DUMPBIN"; then
  3919. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3928. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. DUMPBIN=$ac_cv_prog_DUMPBIN
  3938. if test -n "$DUMPBIN"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3940. $as_echo "$DUMPBIN" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. test -n "$DUMPBIN" && break
  3946. done
  3947. fi
  3948. if test -z "$DUMPBIN"; then
  3949. ac_ct_DUMPBIN=$DUMPBIN
  3950. for ac_prog in dumpbin "link -dump"
  3951. do
  3952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3953. set dummy $ac_prog; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$ac_ct_DUMPBIN"; then
  3960. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3979. if test -n "$ac_ct_DUMPBIN"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3981. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3984. $as_echo "no" >&6; }
  3985. fi
  3986. test -n "$ac_ct_DUMPBIN" && break
  3987. done
  3988. if test "x$ac_ct_DUMPBIN" = x; then
  3989. DUMPBIN=":"
  3990. else
  3991. case $cross_compiling:$ac_tool_warned in
  3992. yes:)
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3995. ac_tool_warned=yes ;;
  3996. esac
  3997. DUMPBIN=$ac_ct_DUMPBIN
  3998. fi
  3999. fi
  4000. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4001. *COFF*)
  4002. DUMPBIN="$DUMPBIN -symbols -headers"
  4003. ;;
  4004. *)
  4005. DUMPBIN=:
  4006. ;;
  4007. esac
  4008. fi
  4009. if test : != "$DUMPBIN"; then
  4010. NM=$DUMPBIN
  4011. fi
  4012. fi
  4013. test -z "$NM" && NM=nm
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4015. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4016. if ${lt_cv_nm_interface+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. lt_cv_nm_interface="BSD nm"
  4020. echo "int some_variable = 0;" > conftest.$ac_ext
  4021. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4022. (eval "$ac_compile" 2>conftest.err)
  4023. cat conftest.err >&5
  4024. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4025. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4026. cat conftest.err >&5
  4027. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4028. cat conftest.out >&5
  4029. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4030. lt_cv_nm_interface="MS dumpbin"
  4031. fi
  4032. rm -f conftest*
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4035. $as_echo "$lt_cv_nm_interface" >&6; }
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4037. $as_echo_n "checking whether ln -s works... " >&6; }
  4038. LN_S=$as_ln_s
  4039. if test "$LN_S" = "ln -s"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4041. $as_echo "yes" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4044. $as_echo "no, using $LN_S" >&6; }
  4045. fi
  4046. # find the maximum length of command line arguments
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4048. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4049. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. i=0
  4053. teststring=ABCD
  4054. case $build_os in
  4055. msdosdjgpp*)
  4056. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4057. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4058. # during glob expansion). Even if it were fixed, the result of this
  4059. # check would be larger than it should be.
  4060. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4061. ;;
  4062. gnu*)
  4063. # Under GNU Hurd, this test is not required because there is
  4064. # no limit to the length of command line arguments.
  4065. # Libtool will interpret -1 as no limit whatsoever
  4066. lt_cv_sys_max_cmd_len=-1;
  4067. ;;
  4068. cygwin* | mingw* | cegcc*)
  4069. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4070. # about 5 minutes as the teststring grows exponentially.
  4071. # Worse, since 9x/ME are not pre-emptively multitasking,
  4072. # you end up with a "frozen" computer, even though with patience
  4073. # the test eventually succeeds (with a max line length of 256k).
  4074. # Instead, let's just punt: use the minimum linelength reported by
  4075. # all of the supported platforms: 8192 (on NT/2K/XP).
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. mint*)
  4079. # On MiNT this can take a long time and run out of memory.
  4080. lt_cv_sys_max_cmd_len=8192;
  4081. ;;
  4082. amigaos*)
  4083. # On AmigaOS with pdksh, this test takes hours, literally.
  4084. # So we just punt and use a minimum line length of 8192.
  4085. lt_cv_sys_max_cmd_len=8192;
  4086. ;;
  4087. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4088. # This has been around since 386BSD, at least. Likely further.
  4089. if test -x /sbin/sysctl; then
  4090. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4091. elif test -x /usr/sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4093. else
  4094. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4095. fi
  4096. # And add a safety zone
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4099. ;;
  4100. interix*)
  4101. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4102. lt_cv_sys_max_cmd_len=196608
  4103. ;;
  4104. os2*)
  4105. # The test takes a long time on OS/2.
  4106. lt_cv_sys_max_cmd_len=8192
  4107. ;;
  4108. osf*)
  4109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4111. # nice to cause kernel panics so lets avoid the loop below.
  4112. # First set a reasonable default.
  4113. lt_cv_sys_max_cmd_len=16384
  4114. #
  4115. if test -x /sbin/sysconfig; then
  4116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4118. esac
  4119. fi
  4120. ;;
  4121. sco3.2v5*)
  4122. lt_cv_sys_max_cmd_len=102400
  4123. ;;
  4124. sysv5* | sco5v6* | sysv4.2uw2*)
  4125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4126. if test -n "$kargmax"; then
  4127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4128. else
  4129. lt_cv_sys_max_cmd_len=32768
  4130. fi
  4131. ;;
  4132. *)
  4133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4134. if test -n "$lt_cv_sys_max_cmd_len" && \
  4135. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4138. else
  4139. # Make teststring a little bigger before we do anything with it.
  4140. # a 1K string should be a reasonable start.
  4141. for i in 1 2 3 4 5 6 7 8; do
  4142. teststring=$teststring$teststring
  4143. done
  4144. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4145. # If test is not a shell built-in, we'll probably end up computing a
  4146. # maximum length that is only half of the actual maximum length, but
  4147. # we can't tell.
  4148. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4149. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4150. test 17 != "$i" # 1/2 MB should be enough
  4151. do
  4152. i=`expr $i + 1`
  4153. teststring=$teststring$teststring
  4154. done
  4155. # Only check the string length outside the loop.
  4156. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4157. teststring=
  4158. # Add a significant safety factor because C++ compilers can tack on
  4159. # massive amounts of additional arguments before passing them to the
  4160. # linker. It appears as though 1/2 is a usable value.
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4162. fi
  4163. ;;
  4164. esac
  4165. fi
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4168. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4169. else
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4171. $as_echo "none" >&6; }
  4172. fi
  4173. max_cmd_len=$lt_cv_sys_max_cmd_len
  4174. : ${CP="cp -f"}
  4175. : ${MV="mv -f"}
  4176. : ${RM="rm -f"}
  4177. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4178. lt_unset=unset
  4179. else
  4180. lt_unset=false
  4181. fi
  4182. # test EBCDIC or ASCII
  4183. case `echo X|tr X '\101'` in
  4184. A) # ASCII based system
  4185. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4186. lt_SP2NL='tr \040 \012'
  4187. lt_NL2SP='tr \015\012 \040\040'
  4188. ;;
  4189. *) # EBCDIC based system
  4190. lt_SP2NL='tr \100 \n'
  4191. lt_NL2SP='tr \r\n \100\100'
  4192. ;;
  4193. esac
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4195. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4196. if ${lt_cv_to_host_file_cmd+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. case $host in
  4200. *-*-mingw* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4210. ;;
  4211. esac
  4212. ;;
  4213. *-*-cygwin* )
  4214. case $build in
  4215. *-*-mingw* ) # actually msys
  4216. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4217. ;;
  4218. *-*-cygwin* )
  4219. lt_cv_to_host_file_cmd=func_convert_file_noop
  4220. ;;
  4221. * ) # otherwise, assume *nix
  4222. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4223. ;;
  4224. esac
  4225. ;;
  4226. * ) # unhandled hosts (and "normal" native builds)
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. esac
  4230. fi
  4231. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4233. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4235. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4236. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. #assume ordinary cross tools, or native build.
  4240. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4241. case $host in
  4242. *-*-mingw* )
  4243. case $build in
  4244. *-*-mingw* ) # actually msys
  4245. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4246. ;;
  4247. esac
  4248. ;;
  4249. esac
  4250. fi
  4251. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4253. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4255. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4256. if ${lt_cv_ld_reload_flag+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. lt_cv_ld_reload_flag='-r'
  4260. fi
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4262. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4263. reload_flag=$lt_cv_ld_reload_flag
  4264. case $reload_flag in
  4265. "" | " "*) ;;
  4266. *) reload_flag=" $reload_flag" ;;
  4267. esac
  4268. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4269. case $host_os in
  4270. cygwin* | mingw* | pw32* | cegcc*)
  4271. if test yes != "$GCC"; then
  4272. reload_cmds=false
  4273. fi
  4274. ;;
  4275. darwin*)
  4276. if test yes = "$GCC"; then
  4277. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4278. else
  4279. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4280. fi
  4281. ;;
  4282. esac
  4283. if test -n "$ac_tool_prefix"; then
  4284. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4285. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$OBJDUMP"; then
  4292. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. OBJDUMP=$ac_cv_prog_OBJDUMP
  4311. if test -n "$OBJDUMP"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4313. $as_echo "$OBJDUMP" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$ac_cv_prog_OBJDUMP"; then
  4320. ac_ct_OBJDUMP=$OBJDUMP
  4321. # Extract the first word of "objdump", so it can be a program name with args.
  4322. set dummy objdump; ac_word=$2
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. $as_echo_n "checking for $ac_word... " >&6; }
  4325. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if test -n "$ac_ct_OBJDUMP"; then
  4329. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4330. else
  4331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4332. for as_dir in $PATH
  4333. do
  4334. IFS=$as_save_IFS
  4335. test -z "$as_dir" && as_dir=.
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4348. if test -n "$ac_ct_OBJDUMP"; then
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4350. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4351. else
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. $as_echo "no" >&6; }
  4354. fi
  4355. if test "x$ac_ct_OBJDUMP" = x; then
  4356. OBJDUMP="false"
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. OBJDUMP=$ac_ct_OBJDUMP
  4365. fi
  4366. else
  4367. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4368. fi
  4369. test -z "$OBJDUMP" && OBJDUMP=objdump
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4371. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4372. if ${lt_cv_deplibs_check_method+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4376. lt_cv_file_magic_test_file=
  4377. lt_cv_deplibs_check_method='unknown'
  4378. # Need to set the preceding variable on all platforms that support
  4379. # interlibrary dependencies.
  4380. # 'none' -- dependencies not supported.
  4381. # 'unknown' -- same as none, but documents that we really don't know.
  4382. # 'pass_all' -- all dependencies passed with no checks.
  4383. # 'test_compile' -- check by making test program.
  4384. # 'file_magic [[regex]]' -- check by looking for files in library path
  4385. # that responds to the $file_magic_cmd with a given extended regex.
  4386. # If you have 'file' or equivalent on your system and you're not sure
  4387. # whether 'pass_all' will *always* work, you probably want this one.
  4388. case $host_os in
  4389. aix[4-9]*)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. beos*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. bsdi[45]*)
  4396. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4397. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4398. lt_cv_file_magic_test_file=/shlib/libc.so
  4399. ;;
  4400. cygwin*)
  4401. # func_win32_libid is a shell function defined in ltmain.sh
  4402. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4403. lt_cv_file_magic_cmd='func_win32_libid'
  4404. lt_cv_deplibs_check_method=pass_all # SDL customization
  4405. ;;
  4406. mingw* | pw32*)
  4407. # Base MSYS/MinGW do not provide the 'file' command needed by
  4408. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4409. # unless we find 'file', for example because we are cross-compiling.
  4410. if ( file / ) >/dev/null 2>&1; then
  4411. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4412. lt_cv_file_magic_cmd='func_win32_libid'
  4413. else
  4414. # Keep this pattern in sync with the one in func_win32_libid.
  4415. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4416. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4417. fi
  4418. lt_cv_deplibs_check_method=pass_all # SDL customization
  4419. ;;
  4420. cegcc*)
  4421. # use the weaker test based on 'objdump'. See mingw*.
  4422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. ;;
  4425. darwin* | rhapsody*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. freebsd* | dragonfly* | midnightbsd*)
  4429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4430. case $host_cpu in
  4431. i*86 )
  4432. # Not sure whether the presence of OpenBSD here was a mistake.
  4433. # Let's accept both of them until this is cleared up.
  4434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4437. ;;
  4438. esac
  4439. else
  4440. lt_cv_deplibs_check_method=pass_all
  4441. fi
  4442. ;;
  4443. haiku*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. hpux10.20* | hpux11*)
  4447. lt_cv_file_magic_cmd=/usr/bin/file
  4448. case $host_cpu in
  4449. ia64*)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4451. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4452. ;;
  4453. hppa*64*)
  4454. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4455. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4456. ;;
  4457. *)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4459. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4460. ;;
  4461. esac
  4462. ;;
  4463. interix[3-9]*)
  4464. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4466. ;;
  4467. irix5* | irix6* | nonstopux*)
  4468. case $LD in
  4469. *-32|*"-32 ") libmagic=32-bit;;
  4470. *-n32|*"-n32 ") libmagic=N32;;
  4471. *-64|*"-64 ") libmagic=64-bit;;
  4472. *) libmagic=never-match;;
  4473. esac
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. # This must be glibc/ELF.
  4477. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. netbsd*)
  4481. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. newos6*)
  4488. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4489. lt_cv_file_magic_cmd=/usr/bin/file
  4490. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4491. ;;
  4492. *nto* | *qnx*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. openbsd* | bitrig*)
  4496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4498. else
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4500. fi
  4501. ;;
  4502. osf3* | osf4* | osf5*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. rdos*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. solaris*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv4 | sysv4.3*)
  4515. case $host_vendor in
  4516. motorola)
  4517. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4518. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4519. ;;
  4520. ncr)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. sequent)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4526. ;;
  4527. sni)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4530. lt_cv_file_magic_test_file=/lib/libc.so
  4531. ;;
  4532. siemens)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. pc)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. esac
  4539. ;;
  4540. tpf*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. os2*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. fi
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4550. file_magic_glob=
  4551. want_nocaseglob=no
  4552. if test "$build" = "$host"; then
  4553. case $host_os in
  4554. mingw* | pw32*)
  4555. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4556. want_nocaseglob=yes
  4557. else
  4558. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4559. fi
  4560. ;;
  4561. esac
  4562. fi
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$DLLTOOL"; then
  4575. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. DLLTOOL=$ac_cv_prog_DLLTOOL
  4594. if test -n "$DLLTOOL"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4596. $as_echo "$DLLTOOL" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_DLLTOOL"; then
  4603. ac_ct_DLLTOOL=$DLLTOOL
  4604. # Extract the first word of "dlltool", so it can be a program name with args.
  4605. set dummy dlltool; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_DLLTOOL"; then
  4612. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4631. if test -n "$ac_ct_DLLTOOL"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4633. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_DLLTOOL" = x; then
  4639. DLLTOOL="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. DLLTOOL=$ac_ct_DLLTOOL
  4648. fi
  4649. else
  4650. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4651. fi
  4652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4654. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4655. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. # two different shell functions defined in ltmain.sh;
  4662. # decide which one to use based on capabilities of $DLLTOOL
  4663. case `$DLLTOOL --help 2>&1` in
  4664. *--identify-strict*)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4666. ;;
  4667. *)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4669. ;;
  4670. esac
  4671. ;;
  4672. *)
  4673. # fallback: assume linklib IS sharedlib
  4674. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4675. ;;
  4676. esac
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4679. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4680. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4681. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4682. if test -n "$ac_tool_prefix"; then
  4683. for ac_prog in ar
  4684. do
  4685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_AR+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$AR"; then
  4693. ac_cv_prog_AR="$AR" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. AR=$ac_cv_prog_AR
  4712. if test -n "$AR"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4714. $as_echo "$AR" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. test -n "$AR" && break
  4720. done
  4721. fi
  4722. if test -z "$AR"; then
  4723. ac_ct_AR=$AR
  4724. for ac_prog in ar
  4725. do
  4726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4727. set dummy $ac_prog; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_AR"; then
  4734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_AR="$ac_prog"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4753. if test -n "$ac_ct_AR"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4755. $as_echo "$ac_ct_AR" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. test -n "$ac_ct_AR" && break
  4761. done
  4762. if test "x$ac_ct_AR" = x; then
  4763. AR="false"
  4764. else
  4765. case $cross_compiling:$ac_tool_warned in
  4766. yes:)
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4769. ac_tool_warned=yes ;;
  4770. esac
  4771. AR=$ac_ct_AR
  4772. fi
  4773. fi
  4774. : ${AR=ar}
  4775. : ${AR_FLAGS=cru}
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4777. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4778. if ${lt_cv_ar_at_file+:} false; then :
  4779. $as_echo_n "(cached) " >&6
  4780. else
  4781. lt_cv_ar_at_file=no
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. int
  4785. main ()
  4786. {
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. echo conftest.$ac_objext > conftest.lst
  4793. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4794. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4795. (eval $lt_ar_try) 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; }
  4799. if test 0 -eq "$ac_status"; then
  4800. # Ensure the archiver fails upon bogus file names.
  4801. rm -f conftest.$ac_objext libconftest.a
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -ne "$ac_status"; then
  4808. lt_cv_ar_at_file=@
  4809. fi
  4810. fi
  4811. rm -f conftest.* libconftest.a
  4812. fi
  4813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4816. $as_echo "$lt_cv_ar_at_file" >&6; }
  4817. if test no = "$lt_cv_ar_at_file"; then
  4818. archiver_list_spec=
  4819. else
  4820. archiver_list_spec=$lt_cv_ar_at_file
  4821. fi
  4822. if test -n "$ac_tool_prefix"; then
  4823. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4824. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_STRIP+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$STRIP"; then
  4831. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. STRIP=$ac_cv_prog_STRIP
  4850. if test -n "$STRIP"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4852. $as_echo "$STRIP" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_prog_STRIP"; then
  4859. ac_ct_STRIP=$STRIP
  4860. # Extract the first word of "strip", so it can be a program name with args.
  4861. set dummy strip; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. if test -n "$ac_ct_STRIP"; then
  4868. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_ac_ct_STRIP="strip"
  4878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4887. if test -n "$ac_ct_STRIP"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4889. $as_echo "$ac_ct_STRIP" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. if test "x$ac_ct_STRIP" = x; then
  4895. STRIP=":"
  4896. else
  4897. case $cross_compiling:$ac_tool_warned in
  4898. yes:)
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4901. ac_tool_warned=yes ;;
  4902. esac
  4903. STRIP=$ac_ct_STRIP
  4904. fi
  4905. else
  4906. STRIP="$ac_cv_prog_STRIP"
  4907. fi
  4908. test -z "$STRIP" && STRIP=:
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_RANLIB+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$RANLIB"; then
  4918. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. RANLIB=$ac_cv_prog_RANLIB
  4937. if test -n "$RANLIB"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4939. $as_echo "$RANLIB" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_RANLIB"; then
  4946. ac_ct_RANLIB=$RANLIB
  4947. # Extract the first word of "ranlib", so it can be a program name with args.
  4948. set dummy ranlib; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_RANLIB"; then
  4955. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4974. if test -n "$ac_ct_RANLIB"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4976. $as_echo "$ac_ct_RANLIB" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_RANLIB" = x; then
  4982. RANLIB=":"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. RANLIB=$ac_ct_RANLIB
  4991. fi
  4992. else
  4993. RANLIB="$ac_cv_prog_RANLIB"
  4994. fi
  4995. test -z "$RANLIB" && RANLIB=:
  4996. # Determine commands to create old-style static archives.
  4997. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4998. old_postinstall_cmds='chmod 644 $oldlib'
  4999. old_postuninstall_cmds=
  5000. if test -n "$RANLIB"; then
  5001. case $host_os in
  5002. bitrig* | openbsd*)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5004. ;;
  5005. *)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5007. ;;
  5008. esac
  5009. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5010. fi
  5011. case $host_os in
  5012. darwin*)
  5013. lock_old_archive_extraction=yes ;;
  5014. *)
  5015. lock_old_archive_extraction=no ;;
  5016. esac
  5017. for ac_prog in gawk mawk nawk awk
  5018. do
  5019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5020. set dummy $ac_prog; ac_word=$2
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5022. $as_echo_n "checking for $ac_word... " >&6; }
  5023. if ${ac_cv_prog_AWK+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -n "$AWK"; then
  5027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5028. else
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5036. ac_cv_prog_AWK="$ac_prog"
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5038. break 2
  5039. fi
  5040. done
  5041. done
  5042. IFS=$as_save_IFS
  5043. fi
  5044. fi
  5045. AWK=$ac_cv_prog_AWK
  5046. if test -n "$AWK"; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5048. $as_echo "$AWK" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. fi
  5053. test -n "$AWK" && break
  5054. done
  5055. # If no C compiler was specified, use CC.
  5056. LTCC=${LTCC-"$CC"}
  5057. # If no C compiler flags were specified, use CFLAGS.
  5058. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5059. # Allow CC to be a program name with arguments.
  5060. compiler=$CC
  5061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5063. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5064. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. # These are sane defaults that work on at least a few old systems.
  5068. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5069. # Character class describing NM global symbol codes.
  5070. symcode='[BCDEGRST]'
  5071. # Regexp to match symbols that can be accessed directly from C.
  5072. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5073. # Define system-specific variables.
  5074. case $host_os in
  5075. aix*)
  5076. symcode='[BCDT]'
  5077. ;;
  5078. cygwin* | mingw* | pw32* | cegcc*)
  5079. symcode='[ABCDGISTW]'
  5080. ;;
  5081. hpux*)
  5082. if test ia64 = "$host_cpu"; then
  5083. symcode='[ABCDEGRST]'
  5084. fi
  5085. ;;
  5086. irix* | nonstopux*)
  5087. symcode='[BCDEGRST]'
  5088. ;;
  5089. osf*)
  5090. symcode='[BCDEGQRST]'
  5091. ;;
  5092. solaris*)
  5093. symcode='[BCDRT]'
  5094. ;;
  5095. sco3.2v5*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv4.2uw2*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5102. symcode='[ABDT]'
  5103. ;;
  5104. sysv4)
  5105. symcode='[DFNSTU]'
  5106. ;;
  5107. esac
  5108. # If we're using GNU nm, then use its standard symbol codes.
  5109. case `$NM -V 2>&1` in
  5110. *GNU* | *'with BFD'*)
  5111. symcode='[ABCDGIRSTW]' ;;
  5112. esac
  5113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5114. # Gets list of data symbols to import.
  5115. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5116. # Adjust the below global symbol transforms to fixup imported variables.
  5117. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5118. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5119. lt_c_name_lib_hook="\
  5120. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5121. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5122. else
  5123. # Disable hooks by default.
  5124. lt_cv_sys_global_symbol_to_import=
  5125. lt_cdecl_hook=
  5126. lt_c_name_hook=
  5127. lt_c_name_lib_hook=
  5128. fi
  5129. # Transform an extracted symbol line into a proper C declaration.
  5130. # Some systems (esp. on ia64) link data and code symbols differently,
  5131. # so use this general approach.
  5132. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5133. $lt_cdecl_hook\
  5134. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5135. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5136. # Transform an extracted symbol line into symbol name and symbol address
  5137. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5138. $lt_c_name_hook\
  5139. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5140. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5141. # Transform an extracted symbol line into symbol name with lib prefix and
  5142. # symbol address.
  5143. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5144. $lt_c_name_lib_hook\
  5145. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5146. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5148. # Handle CRLF in mingw tool chain
  5149. opt_cr=
  5150. case $build_os in
  5151. mingw*)
  5152. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5153. ;;
  5154. esac
  5155. # Try without a prefix underscore, then with it.
  5156. for ac_symprfx in "" "_"; do
  5157. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5158. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5159. # Write the raw and C identifiers.
  5160. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5161. # Fake it for dumpbin and say T for any non-static function,
  5162. # D for any global variable and I for any imported variable.
  5163. # Also find C++ and __fastcall symbols from MSVC++,
  5164. # which start with @ or ?.
  5165. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5166. " {last_section=section; section=\$ 3};"\
  5167. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5168. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5169. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5170. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5171. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5172. " \$ 0!~/External *\|/{next};"\
  5173. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5174. " {if(hide[section]) next};"\
  5175. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5176. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5177. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5178. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5179. " ' prfx=^$ac_symprfx"
  5180. else
  5181. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5182. fi
  5183. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5184. # Check to see that the pipe works correctly.
  5185. pipe_works=no
  5186. rm -f conftest*
  5187. cat > conftest.$ac_ext <<_LT_EOF
  5188. #ifdef __cplusplus
  5189. extern "C" {
  5190. #endif
  5191. char nm_test_var;
  5192. void nm_test_func(void);
  5193. void nm_test_func(void){}
  5194. #ifdef __cplusplus
  5195. }
  5196. #endif
  5197. int main(){nm_test_var='a';nm_test_func();return(0);}
  5198. _LT_EOF
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. # Now try to grab the symbols.
  5205. nlist=conftest.nm
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5207. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; } && test -s "$nlist"; then
  5211. # Try sorting and uniquifying the output.
  5212. if sort "$nlist" | uniq > "$nlist"T; then
  5213. mv -f "$nlist"T "$nlist"
  5214. else
  5215. rm -f "$nlist"T
  5216. fi
  5217. # Make sure that we snagged all the symbols we need.
  5218. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5219. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5220. cat <<_LT_EOF > conftest.$ac_ext
  5221. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5222. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5223. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5224. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5225. # define LT_DLSYM_CONST
  5226. #elif defined __osf__
  5227. /* This system does not cope well with relocations in const data. */
  5228. # define LT_DLSYM_CONST
  5229. #else
  5230. # define LT_DLSYM_CONST const
  5231. #endif
  5232. #ifdef __cplusplus
  5233. extern "C" {
  5234. #endif
  5235. _LT_EOF
  5236. # Now generate the symbol file.
  5237. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5238. cat <<_LT_EOF >> conftest.$ac_ext
  5239. /* The mapping between symbol names and symbols. */
  5240. LT_DLSYM_CONST struct {
  5241. const char *name;
  5242. void *address;
  5243. }
  5244. lt__PROGRAM__LTX_preloaded_symbols[] =
  5245. {
  5246. { "@PROGRAM@", (void *) 0 },
  5247. _LT_EOF
  5248. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5249. cat <<\_LT_EOF >> conftest.$ac_ext
  5250. {0, (void *) 0}
  5251. };
  5252. /* This works around a problem in FreeBSD linker */
  5253. #ifdef FREEBSD_WORKAROUND
  5254. static const void *lt_preloaded_setup() {
  5255. return lt__PROGRAM__LTX_preloaded_symbols;
  5256. }
  5257. #endif
  5258. #ifdef __cplusplus
  5259. }
  5260. #endif
  5261. _LT_EOF
  5262. # Now try linking the two files.
  5263. mv conftest.$ac_objext conftstm.$ac_objext
  5264. lt_globsym_save_LIBS=$LIBS
  5265. lt_globsym_save_CFLAGS=$CFLAGS
  5266. LIBS=conftstm.$ac_objext
  5267. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5269. (eval $ac_link) 2>&5
  5270. ac_status=$?
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5272. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5273. pipe_works=yes
  5274. fi
  5275. LIBS=$lt_globsym_save_LIBS
  5276. CFLAGS=$lt_globsym_save_CFLAGS
  5277. else
  5278. echo "cannot find nm_test_func in $nlist" >&5
  5279. fi
  5280. else
  5281. echo "cannot find nm_test_var in $nlist" >&5
  5282. fi
  5283. else
  5284. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5285. fi
  5286. else
  5287. echo "$progname: failed program was:" >&5
  5288. cat conftest.$ac_ext >&5
  5289. fi
  5290. rm -rf conftest* conftst*
  5291. # Do not use the global_symbol_pipe unless it works.
  5292. if test yes = "$pipe_works"; then
  5293. break
  5294. else
  5295. lt_cv_sys_global_symbol_pipe=
  5296. fi
  5297. done
  5298. fi
  5299. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5300. lt_cv_sys_global_symbol_to_cdecl=
  5301. fi
  5302. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5304. $as_echo "failed" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5307. $as_echo "ok" >&6; }
  5308. fi
  5309. # Response file support.
  5310. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5311. nm_file_list_spec='@'
  5312. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5313. nm_file_list_spec='@'
  5314. fi
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5316. $as_echo_n "checking for sysroot... " >&6; }
  5317. # Check whether --with-sysroot was given.
  5318. if test "${with_sysroot+set}" = set; then :
  5319. withval=$with_sysroot;
  5320. else
  5321. with_sysroot=no
  5322. fi
  5323. lt_sysroot=
  5324. case $with_sysroot in #(
  5325. yes)
  5326. if test yes = "$GCC"; then
  5327. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5328. fi
  5329. ;; #(
  5330. /*)
  5331. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5332. ;; #(
  5333. no|'')
  5334. ;; #(
  5335. *)
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5337. $as_echo "$with_sysroot" >&6; }
  5338. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5339. ;;
  5340. esac
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5342. $as_echo "${lt_sysroot:-no}" >&6; }
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5344. $as_echo_n "checking for a working dd... " >&6; }
  5345. if ${ac_cv_path_lt_DD+:} false; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. printf 0123456789abcdef0123456789abcdef >conftest.i
  5349. cat conftest.i conftest.i >conftest2.i
  5350. : ${lt_DD:=$DD}
  5351. if test -z "$lt_DD"; then
  5352. ac_path_lt_DD_found=false
  5353. # Loop through the user's path and test for each of PROGNAME-LIST
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_prog in dd; do
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5362. as_fn_executable_p "$ac_path_lt_DD" || continue
  5363. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5364. cmp -s conftest.i conftest.out \
  5365. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5366. fi
  5367. $ac_path_lt_DD_found && break 3
  5368. done
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. if test -z "$ac_cv_path_lt_DD"; then
  5373. :
  5374. fi
  5375. else
  5376. ac_cv_path_lt_DD=$lt_DD
  5377. fi
  5378. rm -f conftest.i conftest2.i conftest.out
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5381. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5383. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5384. if ${lt_cv_truncate_bin+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. printf 0123456789abcdef0123456789abcdef >conftest.i
  5388. cat conftest.i conftest.i >conftest2.i
  5389. lt_cv_truncate_bin=
  5390. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5391. cmp -s conftest.i conftest.out \
  5392. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5393. fi
  5394. rm -f conftest.i conftest2.i conftest.out
  5395. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5396. fi
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5398. $as_echo "$lt_cv_truncate_bin" >&6; }
  5399. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5400. func_cc_basename ()
  5401. {
  5402. for cc_temp in $*""; do
  5403. case $cc_temp in
  5404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5406. \-*) ;;
  5407. *) break;;
  5408. esac
  5409. done
  5410. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5411. }
  5412. # Check whether --enable-libtool-lock was given.
  5413. if test "${enable_libtool_lock+set}" = set; then :
  5414. enableval=$enable_libtool_lock;
  5415. fi
  5416. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5417. # Some flags need to be propagated to the compiler or linker for good
  5418. # libtool support.
  5419. case $host in
  5420. ia64-*-hpux*)
  5421. # Find out what ABI is being produced by ac_compile, and set mode
  5422. # options accordingly.
  5423. echo 'int i;' > conftest.$ac_ext
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5425. (eval $ac_compile) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }; then
  5429. case `/usr/bin/file conftest.$ac_objext` in
  5430. *ELF-32*)
  5431. HPUX_IA64_MODE=32
  5432. ;;
  5433. *ELF-64*)
  5434. HPUX_IA64_MODE=64
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-irix6*)
  5441. # Find out what ABI is being produced by ac_compile, and set linker
  5442. # options accordingly.
  5443. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5445. (eval $ac_compile) 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. if test yes = "$lt_cv_prog_gnu_ld"; then
  5450. case `/usr/bin/file conftest.$ac_objext` in
  5451. *32-bit*)
  5452. LD="${LD-ld} -melf32bsmip"
  5453. ;;
  5454. *N32*)
  5455. LD="${LD-ld} -melf32bmipn32"
  5456. ;;
  5457. *64-bit*)
  5458. LD="${LD-ld} -melf64bmip"
  5459. ;;
  5460. esac
  5461. else
  5462. case `/usr/bin/file conftest.$ac_objext` in
  5463. *32-bit*)
  5464. LD="${LD-ld} -32"
  5465. ;;
  5466. *N32*)
  5467. LD="${LD-ld} -n32"
  5468. ;;
  5469. *64-bit*)
  5470. LD="${LD-ld} -64"
  5471. ;;
  5472. esac
  5473. fi
  5474. fi
  5475. rm -rf conftest*
  5476. ;;
  5477. mips64*-*linux*)
  5478. # Find out what ABI is being produced by ac_compile, and set linker
  5479. # options accordingly.
  5480. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5482. (eval $ac_compile) 2>&5
  5483. ac_status=$?
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5485. test $ac_status = 0; }; then
  5486. emul=elf
  5487. case `/usr/bin/file conftest.$ac_objext` in
  5488. *32-bit*)
  5489. emul="${emul}32"
  5490. ;;
  5491. *64-bit*)
  5492. emul="${emul}64"
  5493. ;;
  5494. esac
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *MSB*)
  5497. emul="${emul}btsmip"
  5498. ;;
  5499. *LSB*)
  5500. emul="${emul}ltsmip"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *N32*)
  5505. emul="${emul}n32"
  5506. ;;
  5507. esac
  5508. LD="${LD-ld} -m $emul"
  5509. fi
  5510. rm -rf conftest*
  5511. ;;
  5512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5514. # Find out what ABI is being produced by ac_compile, and set linker
  5515. # options accordingly. Note that the listed cases only cover the
  5516. # situations where additional linker options are needed (such as when
  5517. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5518. # vice versa); the common cases where no linker options are needed do
  5519. # not appear in the list.
  5520. echo 'int i;' > conftest.$ac_ext
  5521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5522. (eval $ac_compile) 2>&5
  5523. ac_status=$?
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5525. test $ac_status = 0; }; then
  5526. case `/usr/bin/file conftest.o` in
  5527. *32-bit*)
  5528. case $host in
  5529. x86_64-*kfreebsd*-gnu)
  5530. LD="${LD-ld} -m elf_i386_fbsd"
  5531. ;;
  5532. x86_64-*linux*)
  5533. case `/usr/bin/file conftest.o` in
  5534. *x86-64*)
  5535. LD="${LD-ld} -m elf32_x86_64"
  5536. ;;
  5537. *)
  5538. LD="${LD-ld} -m elf_i386"
  5539. ;;
  5540. esac
  5541. ;;
  5542. powerpc64le-*linux*)
  5543. LD="${LD-ld} -m elf32lppclinux"
  5544. ;;
  5545. powerpc64-*linux*)
  5546. LD="${LD-ld} -m elf32ppclinux"
  5547. ;;
  5548. s390x-*linux*)
  5549. LD="${LD-ld} -m elf_s390"
  5550. ;;
  5551. sparc64-*linux*)
  5552. LD="${LD-ld} -m elf32_sparc"
  5553. ;;
  5554. esac
  5555. ;;
  5556. *64-bit*)
  5557. case $host in
  5558. x86_64-*kfreebsd*-gnu)
  5559. LD="${LD-ld} -m elf_x86_64_fbsd"
  5560. ;;
  5561. x86_64-*linux*)
  5562. LD="${LD-ld} -m elf_x86_64"
  5563. ;;
  5564. powerpcle-*linux*|powerpc64le-*linux*)
  5565. LD="${LD-ld} -m elf64lppc"
  5566. ;;
  5567. powerpc-*linux*|powerpc64-*linux*)
  5568. LD="${LD-ld} -m elf64ppc"
  5569. ;;
  5570. s390*-*linux*|s390*-*tpf*)
  5571. LD="${LD-ld} -m elf64_s390"
  5572. ;;
  5573. sparc*-*linux*)
  5574. LD="${LD-ld} -m elf64_sparc"
  5575. ;;
  5576. esac
  5577. ;;
  5578. esac
  5579. fi
  5580. rm -rf conftest*
  5581. ;;
  5582. *-*-sco3.2v5*)
  5583. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5584. SAVE_CFLAGS=$CFLAGS
  5585. CFLAGS="$CFLAGS -belf"
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5587. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5588. if ${lt_cv_cc_needs_belf+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598. int
  5599. main ()
  5600. {
  5601. ;
  5602. return 0;
  5603. }
  5604. _ACEOF
  5605. if ac_fn_c_try_link "$LINENO"; then :
  5606. lt_cv_cc_needs_belf=yes
  5607. else
  5608. lt_cv_cc_needs_belf=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext \
  5611. conftest$ac_exeext conftest.$ac_ext
  5612. ac_ext=c
  5613. ac_cpp='$CPP $CPPFLAGS'
  5614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5617. fi
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5619. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5620. if test yes != "$lt_cv_cc_needs_belf"; then
  5621. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5622. CFLAGS=$SAVE_CFLAGS
  5623. fi
  5624. ;;
  5625. *-*solaris*)
  5626. # Find out what ABI is being produced by ac_compile, and set linker
  5627. # options accordingly.
  5628. echo 'int i;' > conftest.$ac_ext
  5629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5630. (eval $ac_compile) 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }; then
  5634. case `/usr/bin/file conftest.o` in
  5635. *64-bit*)
  5636. case $lt_cv_prog_gnu_ld in
  5637. yes*)
  5638. case $host in
  5639. i?86-*-solaris*|x86_64-*-solaris*)
  5640. LD="${LD-ld} -m elf_x86_64"
  5641. ;;
  5642. sparc*-*-solaris*)
  5643. LD="${LD-ld} -m elf64_sparc"
  5644. ;;
  5645. esac
  5646. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5647. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5648. LD=${LD-ld}_sol2
  5649. fi
  5650. ;;
  5651. *)
  5652. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5653. LD="${LD-ld} -64"
  5654. fi
  5655. ;;
  5656. esac
  5657. ;;
  5658. esac
  5659. fi
  5660. rm -rf conftest*
  5661. ;;
  5662. esac
  5663. need_locks=$enable_libtool_lock
  5664. if test -n "$ac_tool_prefix"; then
  5665. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5666. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5668. $as_echo_n "checking for $ac_word... " >&6; }
  5669. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. if test -n "$MANIFEST_TOOL"; then
  5673. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5674. else
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH
  5677. do
  5678. IFS=$as_save_IFS
  5679. test -z "$as_dir" && as_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5692. if test -n "$MANIFEST_TOOL"; then
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5694. $as_echo "$MANIFEST_TOOL" >&6; }
  5695. else
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. $as_echo "no" >&6; }
  5698. fi
  5699. fi
  5700. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5701. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5702. # Extract the first word of "mt", so it can be a program name with args.
  5703. set dummy mt; ac_word=$2
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5710. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5729. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5731. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5737. MANIFEST_TOOL=":"
  5738. else
  5739. case $cross_compiling:$ac_tool_warned in
  5740. yes:)
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5743. ac_tool_warned=yes ;;
  5744. esac
  5745. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5746. fi
  5747. else
  5748. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5749. fi
  5750. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5752. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5753. if ${lt_cv_path_mainfest_tool+:} false; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. lt_cv_path_mainfest_tool=no
  5757. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5758. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5759. cat conftest.err >&5
  5760. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5761. lt_cv_path_mainfest_tool=yes
  5762. fi
  5763. rm -f conftest*
  5764. fi
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5766. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5767. if test yes != "$lt_cv_path_mainfest_tool"; then
  5768. MANIFEST_TOOL=:
  5769. fi
  5770. case $host_os in
  5771. rhapsody* | darwin*)
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$DSYMUTIL"; then
  5781. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5800. if test -n "$DSYMUTIL"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5802. $as_echo "$DSYMUTIL" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5809. ac_ct_DSYMUTIL=$DSYMUTIL
  5810. # Extract the first word of "dsymutil", so it can be a program name with args.
  5811. set dummy dsymutil; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_DSYMUTIL"; then
  5818. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5837. if test -n "$ac_ct_DSYMUTIL"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5839. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_DSYMUTIL" = x; then
  5845. DSYMUTIL=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. DSYMUTIL=$ac_ct_DSYMUTIL
  5854. fi
  5855. else
  5856. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5857. fi
  5858. if test -n "$ac_tool_prefix"; then
  5859. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5860. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_NMEDIT+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$NMEDIT"; then
  5867. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. NMEDIT=$ac_cv_prog_NMEDIT
  5886. if test -n "$NMEDIT"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5888. $as_echo "$NMEDIT" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. fi
  5894. if test -z "$ac_cv_prog_NMEDIT"; then
  5895. ac_ct_NMEDIT=$NMEDIT
  5896. # Extract the first word of "nmedit", so it can be a program name with args.
  5897. set dummy nmedit; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$ac_ct_NMEDIT"; then
  5904. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5923. if test -n "$ac_ct_NMEDIT"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5925. $as_echo "$ac_ct_NMEDIT" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. if test "x$ac_ct_NMEDIT" = x; then
  5931. NMEDIT=":"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. NMEDIT=$ac_ct_NMEDIT
  5940. fi
  5941. else
  5942. NMEDIT="$ac_cv_prog_NMEDIT"
  5943. fi
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_LIPO+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$LIPO"; then
  5953. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. LIPO=$ac_cv_prog_LIPO
  5972. if test -n "$LIPO"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5974. $as_echo "$LIPO" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_LIPO"; then
  5981. ac_ct_LIPO=$LIPO
  5982. # Extract the first word of "lipo", so it can be a program name with args.
  5983. set dummy lipo; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_LIPO"; then
  5990. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_LIPO="lipo"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6009. if test -n "$ac_ct_LIPO"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6011. $as_echo "$ac_ct_LIPO" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_LIPO" = x; then
  6017. LIPO=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. LIPO=$ac_ct_LIPO
  6026. fi
  6027. else
  6028. LIPO="$ac_cv_prog_LIPO"
  6029. fi
  6030. if test -n "$ac_tool_prefix"; then
  6031. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6032. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if ${ac_cv_prog_OTOOL+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$OTOOL"; then
  6039. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6048. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. OTOOL=$ac_cv_prog_OTOOL
  6058. if test -n "$OTOOL"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6060. $as_echo "$OTOOL" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test -z "$ac_cv_prog_OTOOL"; then
  6067. ac_ct_OTOOL=$OTOOL
  6068. # Extract the first word of "otool", so it can be a program name with args.
  6069. set dummy otool; ac_word=$2
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6071. $as_echo_n "checking for $ac_word... " >&6; }
  6072. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. if test -n "$ac_ct_OTOOL"; then
  6076. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6085. ac_cv_prog_ac_ct_OTOOL="otool"
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6095. if test -n "$ac_ct_OTOOL"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6097. $as_echo "$ac_ct_OTOOL" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "x$ac_ct_OTOOL" = x; then
  6103. OTOOL=":"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. OTOOL=$ac_ct_OTOOL
  6112. fi
  6113. else
  6114. OTOOL="$ac_cv_prog_OTOOL"
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_OTOOL64+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$OTOOL64"; then
  6125. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. OTOOL64=$ac_cv_prog_OTOOL64
  6144. if test -n "$OTOOL64"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6146. $as_echo "$OTOOL64" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_OTOOL64"; then
  6153. ac_ct_OTOOL64=$OTOOL64
  6154. # Extract the first word of "otool64", so it can be a program name with args.
  6155. set dummy otool64; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_OTOOL64"; then
  6162. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6181. if test -n "$ac_ct_OTOOL64"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6183. $as_echo "$ac_ct_OTOOL64" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_OTOOL64" = x; then
  6189. OTOOL64=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. OTOOL64=$ac_ct_OTOOL64
  6198. fi
  6199. else
  6200. OTOOL64="$ac_cv_prog_OTOOL64"
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6203. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6204. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. lt_cv_apple_cc_single_mod=no
  6208. if test -z "$LT_MULTI_MODULE"; then
  6209. # By default we will add the -single_module flag. You can override
  6210. # by either setting the environment variable LT_MULTI_MODULE
  6211. # non-empty at configure time, or by adding -multi_module to the
  6212. # link flags.
  6213. rm -rf libconftest.dylib*
  6214. echo "int foo(void){return 1;}" > conftest.c
  6215. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6216. -dynamiclib -Wl,-single_module conftest.c" >&5
  6217. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6219. _lt_result=$?
  6220. # If there is a non-empty error log, and "single_module"
  6221. # appears in it, assume the flag caused a linker warning
  6222. if test -s conftest.err && $GREP single_module conftest.err; then
  6223. cat conftest.err >&5
  6224. # Otherwise, if the output was created with a 0 exit code from
  6225. # the compiler, it worked.
  6226. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6227. lt_cv_apple_cc_single_mod=yes
  6228. else
  6229. cat conftest.err >&5
  6230. fi
  6231. rm -rf libconftest.dylib*
  6232. rm -f conftest.*
  6233. fi
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6236. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6238. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6239. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. lt_cv_ld_exported_symbols_list=no
  6243. save_LDFLAGS=$LDFLAGS
  6244. echo "_main" > conftest.sym
  6245. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. int
  6249. main ()
  6250. {
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. if ac_fn_c_try_link "$LINENO"; then :
  6256. lt_cv_ld_exported_symbols_list=yes
  6257. else
  6258. lt_cv_ld_exported_symbols_list=no
  6259. fi
  6260. rm -f core conftest.err conftest.$ac_objext \
  6261. conftest$ac_exeext conftest.$ac_ext
  6262. LDFLAGS=$save_LDFLAGS
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6265. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6267. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6268. if ${lt_cv_ld_force_load+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. lt_cv_ld_force_load=no
  6272. cat > conftest.c << _LT_EOF
  6273. int forced_loaded() { return 2;}
  6274. _LT_EOF
  6275. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6276. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6277. echo "$AR cru libconftest.a conftest.o" >&5
  6278. $AR cru libconftest.a conftest.o 2>&5
  6279. echo "$RANLIB libconftest.a" >&5
  6280. $RANLIB libconftest.a 2>&5
  6281. cat > conftest.c << _LT_EOF
  6282. int main() { return 0;}
  6283. _LT_EOF
  6284. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6285. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6286. _lt_result=$?
  6287. if test -s conftest.err && $GREP force_load conftest.err; then
  6288. cat conftest.err >&5
  6289. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6290. lt_cv_ld_force_load=yes
  6291. else
  6292. cat conftest.err >&5
  6293. fi
  6294. rm -f conftest.err libconftest.a conftest conftest.c
  6295. rm -rf conftest.dSYM
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6298. $as_echo "$lt_cv_ld_force_load" >&6; }
  6299. case $host_os in
  6300. rhapsody* | darwin1.[012])
  6301. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6302. darwin1.*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. darwin*)
  6305. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6306. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6307. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6308. *)
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6310. esac
  6311. ;;
  6312. esac
  6313. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6314. _lt_dar_single_mod='$single_module'
  6315. fi
  6316. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6317. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6318. else
  6319. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6320. fi
  6321. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6322. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6323. else
  6324. _lt_dsymutil=
  6325. fi
  6326. ;;
  6327. esac
  6328. # func_munge_path_list VARIABLE PATH
  6329. # -----------------------------------
  6330. # VARIABLE is name of variable containing _space_ separated list of
  6331. # directories to be munged by the contents of PATH, which is string
  6332. # having a format:
  6333. # "DIR[:DIR]:"
  6334. # string "DIR[ DIR]" will be prepended to VARIABLE
  6335. # ":DIR[:DIR]"
  6336. # string "DIR[ DIR]" will be appended to VARIABLE
  6337. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6338. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6339. # "DIRA[ DIRA]" will be appended to VARIABLE
  6340. # "DIR[:DIR]"
  6341. # VARIABLE will be replaced by "DIR[ DIR]"
  6342. func_munge_path_list ()
  6343. {
  6344. case x$2 in
  6345. x)
  6346. ;;
  6347. *:)
  6348. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6349. ;;
  6350. x:*)
  6351. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6352. ;;
  6353. *::*)
  6354. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6355. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6356. ;;
  6357. *)
  6358. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6359. ;;
  6360. esac
  6361. }
  6362. ac_ext=c
  6363. ac_cpp='$CPP $CPPFLAGS'
  6364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6368. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6369. # On Suns, sometimes $CPP names a directory.
  6370. if test -n "$CPP" && test -d "$CPP"; then
  6371. CPP=
  6372. fi
  6373. if test -z "$CPP"; then
  6374. if ${ac_cv_prog_CPP+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. # Double quotes because CPP needs to be expanded
  6378. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6379. do
  6380. ac_preproc_ok=false
  6381. for ac_c_preproc_warn_flag in '' yes
  6382. do
  6383. # Use a header file that comes with gcc, so configuring glibc
  6384. # with a fresh cross-compiler works.
  6385. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6386. # <limits.h> exists even on freestanding compilers.
  6387. # On the NeXT, cc -E runs the code through the compiler's parser,
  6388. # not just through cpp. "Syntax error" is here to catch this case.
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. #ifdef __STDC__
  6392. # include <limits.h>
  6393. #else
  6394. # include <assert.h>
  6395. #endif
  6396. Syntax error
  6397. _ACEOF
  6398. if ac_fn_c_try_cpp "$LINENO"; then :
  6399. else
  6400. # Broken: fails on valid input.
  6401. continue
  6402. fi
  6403. rm -f conftest.err conftest.i conftest.$ac_ext
  6404. # OK, works on sane cases. Now check whether nonexistent headers
  6405. # can be detected and how.
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. #include <ac_nonexistent.h>
  6409. _ACEOF
  6410. if ac_fn_c_try_cpp "$LINENO"; then :
  6411. # Broken: success on invalid input.
  6412. continue
  6413. else
  6414. # Passes both tests.
  6415. ac_preproc_ok=:
  6416. break
  6417. fi
  6418. rm -f conftest.err conftest.i conftest.$ac_ext
  6419. done
  6420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6421. rm -f conftest.i conftest.err conftest.$ac_ext
  6422. if $ac_preproc_ok; then :
  6423. break
  6424. fi
  6425. done
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. CPP=$ac_cv_prog_CPP
  6429. else
  6430. ac_cv_prog_CPP=$CPP
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6433. $as_echo "$CPP" >&6; }
  6434. ac_preproc_ok=false
  6435. for ac_c_preproc_warn_flag in '' yes
  6436. do
  6437. # Use a header file that comes with gcc, so configuring glibc
  6438. # with a fresh cross-compiler works.
  6439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6440. # <limits.h> exists even on freestanding compilers.
  6441. # On the NeXT, cc -E runs the code through the compiler's parser,
  6442. # not just through cpp. "Syntax error" is here to catch this case.
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. #ifdef __STDC__
  6446. # include <limits.h>
  6447. #else
  6448. # include <assert.h>
  6449. #endif
  6450. Syntax error
  6451. _ACEOF
  6452. if ac_fn_c_try_cpp "$LINENO"; then :
  6453. else
  6454. # Broken: fails on valid input.
  6455. continue
  6456. fi
  6457. rm -f conftest.err conftest.i conftest.$ac_ext
  6458. # OK, works on sane cases. Now check whether nonexistent headers
  6459. # can be detected and how.
  6460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461. /* end confdefs.h. */
  6462. #include <ac_nonexistent.h>
  6463. _ACEOF
  6464. if ac_fn_c_try_cpp "$LINENO"; then :
  6465. # Broken: success on invalid input.
  6466. continue
  6467. else
  6468. # Passes both tests.
  6469. ac_preproc_ok=:
  6470. break
  6471. fi
  6472. rm -f conftest.err conftest.i conftest.$ac_ext
  6473. done
  6474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6475. rm -f conftest.i conftest.err conftest.$ac_ext
  6476. if $ac_preproc_ok; then :
  6477. else
  6478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6481. See \`config.log' for more details" "$LINENO" 5; }
  6482. fi
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6489. $as_echo_n "checking for ANSI C header files... " >&6; }
  6490. if ${ac_cv_header_stdc+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. #include <stdlib.h>
  6496. #include <stdarg.h>
  6497. #include <string.h>
  6498. #include <float.h>
  6499. int
  6500. main ()
  6501. {
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. if ac_fn_c_try_compile "$LINENO"; then :
  6507. ac_cv_header_stdc=yes
  6508. else
  6509. ac_cv_header_stdc=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512. if test $ac_cv_header_stdc = yes; then
  6513. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. #include <string.h>
  6517. _ACEOF
  6518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6519. $EGREP "memchr" >/dev/null 2>&1; then :
  6520. else
  6521. ac_cv_header_stdc=no
  6522. fi
  6523. rm -f conftest*
  6524. fi
  6525. if test $ac_cv_header_stdc = yes; then
  6526. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. #include <stdlib.h>
  6530. _ACEOF
  6531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6532. $EGREP "free" >/dev/null 2>&1; then :
  6533. else
  6534. ac_cv_header_stdc=no
  6535. fi
  6536. rm -f conftest*
  6537. fi
  6538. if test $ac_cv_header_stdc = yes; then
  6539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6540. if test "$cross_compiling" = yes; then :
  6541. :
  6542. else
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. #include <ctype.h>
  6546. #include <stdlib.h>
  6547. #if ((' ' & 0x0FF) == 0x020)
  6548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6550. #else
  6551. # define ISLOWER(c) \
  6552. (('a' <= (c) && (c) <= 'i') \
  6553. || ('j' <= (c) && (c) <= 'r') \
  6554. || ('s' <= (c) && (c) <= 'z'))
  6555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6556. #endif
  6557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6558. int
  6559. main ()
  6560. {
  6561. int i;
  6562. for (i = 0; i < 256; i++)
  6563. if (XOR (islower (i), ISLOWER (i))
  6564. || toupper (i) != TOUPPER (i))
  6565. return 2;
  6566. return 0;
  6567. }
  6568. _ACEOF
  6569. if ac_fn_c_try_run "$LINENO"; then :
  6570. else
  6571. ac_cv_header_stdc=no
  6572. fi
  6573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6575. fi
  6576. fi
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6579. $as_echo "$ac_cv_header_stdc" >&6; }
  6580. if test $ac_cv_header_stdc = yes; then
  6581. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6582. fi
  6583. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6584. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6585. inttypes.h stdint.h unistd.h
  6586. do :
  6587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6588. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6589. "
  6590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6591. cat >>confdefs.h <<_ACEOF
  6592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6593. _ACEOF
  6594. fi
  6595. done
  6596. for ac_header in dlfcn.h
  6597. do :
  6598. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6599. "
  6600. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6601. cat >>confdefs.h <<_ACEOF
  6602. #define HAVE_DLFCN_H 1
  6603. _ACEOF
  6604. fi
  6605. done
  6606. # Set options
  6607. enable_win32_dll=yes
  6608. case $host in
  6609. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6610. if test -n "$ac_tool_prefix"; then
  6611. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6612. set dummy ${ac_tool_prefix}as; ac_word=$2
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. $as_echo_n "checking for $ac_word... " >&6; }
  6615. if ${ac_cv_prog_AS+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. if test -n "$AS"; then
  6619. ac_cv_prog_AS="$AS" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. test -z "$as_dir" && as_dir=.
  6626. for ac_exec_ext in '' $ac_executable_extensions; do
  6627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6628. ac_cv_prog_AS="${ac_tool_prefix}as"
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6630. break 2
  6631. fi
  6632. done
  6633. done
  6634. IFS=$as_save_IFS
  6635. fi
  6636. fi
  6637. AS=$ac_cv_prog_AS
  6638. if test -n "$AS"; then
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6640. $as_echo "$AS" >&6; }
  6641. else
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6643. $as_echo "no" >&6; }
  6644. fi
  6645. fi
  6646. if test -z "$ac_cv_prog_AS"; then
  6647. ac_ct_AS=$AS
  6648. # Extract the first word of "as", so it can be a program name with args.
  6649. set dummy as; ac_word=$2
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6651. $as_echo_n "checking for $ac_word... " >&6; }
  6652. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. if test -n "$ac_ct_AS"; then
  6656. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6657. else
  6658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6659. for as_dir in $PATH
  6660. do
  6661. IFS=$as_save_IFS
  6662. test -z "$as_dir" && as_dir=.
  6663. for ac_exec_ext in '' $ac_executable_extensions; do
  6664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6665. ac_cv_prog_ac_ct_AS="as"
  6666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6667. break 2
  6668. fi
  6669. done
  6670. done
  6671. IFS=$as_save_IFS
  6672. fi
  6673. fi
  6674. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6675. if test -n "$ac_ct_AS"; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6677. $as_echo "$ac_ct_AS" >&6; }
  6678. else
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681. fi
  6682. if test "x$ac_ct_AS" = x; then
  6683. AS="false"
  6684. else
  6685. case $cross_compiling:$ac_tool_warned in
  6686. yes:)
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6689. ac_tool_warned=yes ;;
  6690. esac
  6691. AS=$ac_ct_AS
  6692. fi
  6693. else
  6694. AS="$ac_cv_prog_AS"
  6695. fi
  6696. if test -n "$ac_tool_prefix"; then
  6697. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6698. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. $as_echo_n "checking for $ac_word... " >&6; }
  6701. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. if test -n "$DLLTOOL"; then
  6705. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. DLLTOOL=$ac_cv_prog_DLLTOOL
  6724. if test -n "$DLLTOOL"; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6726. $as_echo "$DLLTOOL" >&6; }
  6727. else
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. $as_echo "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_DLLTOOL"; then
  6733. ac_ct_DLLTOOL=$DLLTOOL
  6734. # Extract the first word of "dlltool", so it can be a program name with args.
  6735. set dummy dlltool; ac_word=$2
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. $as_echo_n "checking for $ac_word... " >&6; }
  6738. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test -n "$ac_ct_DLLTOOL"; then
  6742. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6751. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. fi
  6759. fi
  6760. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6761. if test -n "$ac_ct_DLLTOOL"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6763. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. if test "x$ac_ct_DLLTOOL" = x; then
  6769. DLLTOOL="false"
  6770. else
  6771. case $cross_compiling:$ac_tool_warned in
  6772. yes:)
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6775. ac_tool_warned=yes ;;
  6776. esac
  6777. DLLTOOL=$ac_ct_DLLTOOL
  6778. fi
  6779. else
  6780. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6781. fi
  6782. if test -n "$ac_tool_prefix"; then
  6783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6786. $as_echo_n "checking for $ac_word... " >&6; }
  6787. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. if test -n "$OBJDUMP"; then
  6791. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6792. else
  6793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6794. for as_dir in $PATH
  6795. do
  6796. IFS=$as_save_IFS
  6797. test -z "$as_dir" && as_dir=.
  6798. for ac_exec_ext in '' $ac_executable_extensions; do
  6799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6800. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6802. break 2
  6803. fi
  6804. done
  6805. done
  6806. IFS=$as_save_IFS
  6807. fi
  6808. fi
  6809. OBJDUMP=$ac_cv_prog_OBJDUMP
  6810. if test -n "$OBJDUMP"; then
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6812. $as_echo "$OBJDUMP" >&6; }
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6815. $as_echo "no" >&6; }
  6816. fi
  6817. fi
  6818. if test -z "$ac_cv_prog_OBJDUMP"; then
  6819. ac_ct_OBJDUMP=$OBJDUMP
  6820. # Extract the first word of "objdump", so it can be a program name with args.
  6821. set dummy objdump; ac_word=$2
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6823. $as_echo_n "checking for $ac_word... " >&6; }
  6824. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. if test -n "$ac_ct_OBJDUMP"; then
  6828. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6829. else
  6830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6831. for as_dir in $PATH
  6832. do
  6833. IFS=$as_save_IFS
  6834. test -z "$as_dir" && as_dir=.
  6835. for ac_exec_ext in '' $ac_executable_extensions; do
  6836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6837. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6839. break 2
  6840. fi
  6841. done
  6842. done
  6843. IFS=$as_save_IFS
  6844. fi
  6845. fi
  6846. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6847. if test -n "$ac_ct_OBJDUMP"; then
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6849. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6850. else
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6852. $as_echo "no" >&6; }
  6853. fi
  6854. if test "x$ac_ct_OBJDUMP" = x; then
  6855. OBJDUMP="false"
  6856. else
  6857. case $cross_compiling:$ac_tool_warned in
  6858. yes:)
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6861. ac_tool_warned=yes ;;
  6862. esac
  6863. OBJDUMP=$ac_ct_OBJDUMP
  6864. fi
  6865. else
  6866. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6867. fi
  6868. ;;
  6869. esac
  6870. test -z "$AS" && AS=as
  6871. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6872. test -z "$OBJDUMP" && OBJDUMP=objdump
  6873. enable_dlopen=no
  6874. # Check whether --enable-shared was given.
  6875. if test "${enable_shared+set}" = set; then :
  6876. enableval=$enable_shared; p=${PACKAGE-default}
  6877. case $enableval in
  6878. yes) enable_shared=yes ;;
  6879. no) enable_shared=no ;;
  6880. *)
  6881. enable_shared=no
  6882. # Look at the argument we got. We use all the common list separators.
  6883. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6884. for pkg in $enableval; do
  6885. IFS=$lt_save_ifs
  6886. if test "X$pkg" = "X$p"; then
  6887. enable_shared=yes
  6888. fi
  6889. done
  6890. IFS=$lt_save_ifs
  6891. ;;
  6892. esac
  6893. else
  6894. enable_shared=yes
  6895. fi
  6896. # Check whether --enable-static was given.
  6897. if test "${enable_static+set}" = set; then :
  6898. enableval=$enable_static; p=${PACKAGE-default}
  6899. case $enableval in
  6900. yes) enable_static=yes ;;
  6901. no) enable_static=no ;;
  6902. *)
  6903. enable_static=no
  6904. # Look at the argument we got. We use all the common list separators.
  6905. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6906. for pkg in $enableval; do
  6907. IFS=$lt_save_ifs
  6908. if test "X$pkg" = "X$p"; then
  6909. enable_static=yes
  6910. fi
  6911. done
  6912. IFS=$lt_save_ifs
  6913. ;;
  6914. esac
  6915. else
  6916. enable_static=yes
  6917. fi
  6918. # Check whether --with-pic was given.
  6919. if test "${with_pic+set}" = set; then :
  6920. withval=$with_pic; lt_p=${PACKAGE-default}
  6921. case $withval in
  6922. yes|no) pic_mode=$withval ;;
  6923. *)
  6924. pic_mode=default
  6925. # Look at the argument we got. We use all the common list separators.
  6926. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6927. for lt_pkg in $withval; do
  6928. IFS=$lt_save_ifs
  6929. if test "X$lt_pkg" = "X$lt_p"; then
  6930. pic_mode=yes
  6931. fi
  6932. done
  6933. IFS=$lt_save_ifs
  6934. ;;
  6935. esac
  6936. else
  6937. pic_mode=default
  6938. fi
  6939. # Check whether --enable-fast-install was given.
  6940. if test "${enable_fast_install+set}" = set; then :
  6941. enableval=$enable_fast_install; p=${PACKAGE-default}
  6942. case $enableval in
  6943. yes) enable_fast_install=yes ;;
  6944. no) enable_fast_install=no ;;
  6945. *)
  6946. enable_fast_install=no
  6947. # Look at the argument we got. We use all the common list separators.
  6948. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6949. for pkg in $enableval; do
  6950. IFS=$lt_save_ifs
  6951. if test "X$pkg" = "X$p"; then
  6952. enable_fast_install=yes
  6953. fi
  6954. done
  6955. IFS=$lt_save_ifs
  6956. ;;
  6957. esac
  6958. else
  6959. enable_fast_install=yes
  6960. fi
  6961. shared_archive_member_spec=
  6962. case $host,$enable_shared in
  6963. power*-*-aix[5-9]*,yes)
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6965. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6966. # Check whether --with-aix-soname was given.
  6967. if test "${with_aix_soname+set}" = set; then :
  6968. withval=$with_aix_soname; case $withval in
  6969. aix|svr4|both)
  6970. ;;
  6971. *)
  6972. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6973. ;;
  6974. esac
  6975. lt_cv_with_aix_soname=$with_aix_soname
  6976. else
  6977. if ${lt_cv_with_aix_soname+:} false; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. lt_cv_with_aix_soname=aix
  6981. fi
  6982. with_aix_soname=$lt_cv_with_aix_soname
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6985. $as_echo "$with_aix_soname" >&6; }
  6986. if test aix != "$with_aix_soname"; then
  6987. # For the AIX way of multilib, we name the shared archive member
  6988. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6989. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6990. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6991. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6992. if test 64 = "${OBJECT_MODE-32}"; then
  6993. shared_archive_member_spec=shr_64
  6994. else
  6995. shared_archive_member_spec=shr
  6996. fi
  6997. fi
  6998. ;;
  6999. *)
  7000. with_aix_soname=aix
  7001. ;;
  7002. esac
  7003. # This can be used to rebuild libtool when needed
  7004. LIBTOOL_DEPS=$ltmain
  7005. # Always use our own libtool.
  7006. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7007. test -z "$LN_S" && LN_S="ln -s"
  7008. if test -n "${ZSH_VERSION+set}"; then
  7009. setopt NO_GLOB_SUBST
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7012. $as_echo_n "checking for objdir... " >&6; }
  7013. if ${lt_cv_objdir+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. rm -f .libs 2>/dev/null
  7017. mkdir .libs 2>/dev/null
  7018. if test -d .libs; then
  7019. lt_cv_objdir=.libs
  7020. else
  7021. # MS-DOS does not allow filenames that begin with a dot.
  7022. lt_cv_objdir=_libs
  7023. fi
  7024. rmdir .libs 2>/dev/null
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7027. $as_echo "$lt_cv_objdir" >&6; }
  7028. objdir=$lt_cv_objdir
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define LT_OBJDIR "$lt_cv_objdir/"
  7031. _ACEOF
  7032. case $host_os in
  7033. aix3*)
  7034. # AIX sometimes has problems with the GCC collect2 program. For some
  7035. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7036. # vanish in a puff of smoke.
  7037. if test set != "${COLLECT_NAMES+set}"; then
  7038. COLLECT_NAMES=
  7039. export COLLECT_NAMES
  7040. fi
  7041. ;;
  7042. esac
  7043. # Global variables:
  7044. ofile=libtool
  7045. can_build_shared=yes
  7046. # All known linkers require a '.a' archive for static linking (except MSVC,
  7047. # which needs '.lib').
  7048. libext=a
  7049. with_gnu_ld=$lt_cv_prog_gnu_ld
  7050. old_CC=$CC
  7051. old_CFLAGS=$CFLAGS
  7052. # Set sane defaults for various variables
  7053. test -z "$CC" && CC=cc
  7054. test -z "$LTCC" && LTCC=$CC
  7055. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7056. test -z "$LD" && LD=ld
  7057. test -z "$ac_objext" && ac_objext=o
  7058. func_cc_basename $compiler
  7059. cc_basename=$func_cc_basename_result
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD=$MAGIC_CMD
  7076. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS=$lt_save_ifs
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7082. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS=$lt_save_ifs
  7109. MAGIC_CMD=$lt_save_MAGIC_CMD
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD=$MAGIC_CMD
  7134. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS=$lt_save_ifs
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f "$ac_dir/file"; then
  7140. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS=$lt_save_ifs
  7167. MAGIC_CMD=$lt_save_MAGIC_CMD
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC=$CC
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test yes = "$GCC"; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. if test yes = "$GCC"; then
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_static='-static'
  7283. case $host_os in
  7284. aix*)
  7285. # All AIX code is PIC.
  7286. if test ia64 = "$host_cpu"; then
  7287. # AIX 5 now supports IA64 processor
  7288. lt_prog_compiler_static='-Bstatic'
  7289. fi
  7290. lt_prog_compiler_pic='-fPIC'
  7291. ;;
  7292. amigaos*)
  7293. case $host_cpu in
  7294. powerpc)
  7295. # see comment about AmigaOS4 .so support
  7296. lt_prog_compiler_pic='-fPIC'
  7297. ;;
  7298. m68k)
  7299. # FIXME: we need at least 68020 code to build shared libraries, but
  7300. # adding the '-m68020' flag to GCC prevents building anything better,
  7301. # like '-m68040'.
  7302. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7303. ;;
  7304. esac
  7305. ;;
  7306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7307. # PIC is the default for these OSes.
  7308. ;;
  7309. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7310. # This hack is so that the source file can tell whether it is being
  7311. # built for inclusion in a dll (and should export symbols for example).
  7312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7313. # (--disable-auto-import) libraries
  7314. lt_prog_compiler_pic='-DDLL_EXPORT'
  7315. case $host_os in
  7316. os2*)
  7317. lt_prog_compiler_static='$wl-static'
  7318. ;;
  7319. esac
  7320. ;;
  7321. darwin* | rhapsody*)
  7322. # PIC is the default on this platform
  7323. # Common symbols not allowed in MH_DYLIB files
  7324. lt_prog_compiler_pic='-fno-common'
  7325. ;;
  7326. haiku*)
  7327. # PIC is the default for Haiku.
  7328. # The "-static" flag exists, but is broken.
  7329. lt_prog_compiler_static=
  7330. ;;
  7331. hpux*)
  7332. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7333. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7334. # sets the default TLS model and affects inlining.
  7335. case $host_cpu in
  7336. hppa*64*)
  7337. # +Z the default
  7338. ;;
  7339. *)
  7340. lt_prog_compiler_pic='-fPIC'
  7341. ;;
  7342. esac
  7343. ;;
  7344. interix[3-9]*)
  7345. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7346. # Instead, we relocate shared libraries at runtime.
  7347. ;;
  7348. msdosdjgpp*)
  7349. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7350. # on systems that don't support them.
  7351. lt_prog_compiler_can_build_shared=no
  7352. enable_shared=no
  7353. ;;
  7354. *nto* | *qnx*)
  7355. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7356. # it will coredump.
  7357. lt_prog_compiler_pic='-fPIC -shared'
  7358. ;;
  7359. sysv4*MP*)
  7360. if test -d /usr/nec; then
  7361. lt_prog_compiler_pic=-Kconform_pic
  7362. fi
  7363. ;;
  7364. *)
  7365. lt_prog_compiler_pic='-fPIC'
  7366. ;;
  7367. esac
  7368. case $cc_basename in
  7369. nvcc*) # Cuda Compiler Driver 2.2
  7370. lt_prog_compiler_wl='-Xlinker '
  7371. if test -n "$lt_prog_compiler_pic"; then
  7372. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7373. fi
  7374. ;;
  7375. esac
  7376. else
  7377. # PORTME Check for flag to pass linker flags through the system compiler.
  7378. case $host_os in
  7379. aix*)
  7380. lt_prog_compiler_wl='-Wl,'
  7381. if test ia64 = "$host_cpu"; then
  7382. # AIX 5 now supports IA64 processor
  7383. lt_prog_compiler_static='-Bstatic'
  7384. else
  7385. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7386. fi
  7387. ;;
  7388. darwin* | rhapsody*)
  7389. # PIC is the default on this platform
  7390. # Common symbols not allowed in MH_DYLIB files
  7391. lt_prog_compiler_pic='-fno-common'
  7392. case $cc_basename in
  7393. nagfor*)
  7394. # NAG Fortran compiler
  7395. lt_prog_compiler_wl='-Wl,-Wl,,'
  7396. lt_prog_compiler_pic='-PIC'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. esac
  7400. ;;
  7401. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7402. # This hack is so that the source file can tell whether it is being
  7403. # built for inclusion in a dll (and should export symbols for example).
  7404. lt_prog_compiler_pic='-DDLL_EXPORT'
  7405. case $host_os in
  7406. os2*)
  7407. lt_prog_compiler_static='$wl-static'
  7408. ;;
  7409. esac
  7410. ;;
  7411. hpux9* | hpux10* | hpux11*)
  7412. lt_prog_compiler_wl='-Wl,'
  7413. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7414. # not for PA HP-UX.
  7415. case $host_cpu in
  7416. hppa*64*|ia64*)
  7417. # +Z the default
  7418. ;;
  7419. *)
  7420. lt_prog_compiler_pic='+Z'
  7421. ;;
  7422. esac
  7423. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7424. lt_prog_compiler_static='$wl-a ${wl}archive'
  7425. ;;
  7426. irix5* | irix6* | nonstopux*)
  7427. lt_prog_compiler_wl='-Wl,'
  7428. # PIC (with -KPIC) is the default.
  7429. lt_prog_compiler_static='-non_shared'
  7430. ;;
  7431. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7432. case $cc_basename in
  7433. # old Intel for x86_64, which still supported -KPIC.
  7434. ecc*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. lt_prog_compiler_pic='-KPIC'
  7437. lt_prog_compiler_static='-static'
  7438. ;;
  7439. # icc used to be incompatible with GCC.
  7440. # ICC 10 doesn't accept -KPIC any more.
  7441. icc* | ifort*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-fPIC'
  7444. lt_prog_compiler_static='-static'
  7445. ;;
  7446. # Lahey Fortran 8.1.
  7447. lf95*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. lt_prog_compiler_pic='--shared'
  7450. lt_prog_compiler_static='--static'
  7451. ;;
  7452. nagfor*)
  7453. # NAG Fortran compiler
  7454. lt_prog_compiler_wl='-Wl,-Wl,,'
  7455. lt_prog_compiler_pic='-PIC'
  7456. lt_prog_compiler_static='-Bstatic'
  7457. ;;
  7458. tcc*)
  7459. # Fabrice Bellard et al's Tiny C Compiler
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_pic='-fPIC'
  7462. lt_prog_compiler_static='-static'
  7463. ;;
  7464. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7465. # Portland Group compilers (*not* the Pentium gcc compiler,
  7466. # which looks to be a dead project)
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-fpic'
  7469. lt_prog_compiler_static='-Bstatic'
  7470. ;;
  7471. ccc*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # All Alpha code is PIC.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. xl* | bgxl* | bgf* | mpixl*)
  7477. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='-qpic'
  7480. lt_prog_compiler_static='-qstaticlink'
  7481. ;;
  7482. *)
  7483. case `$CC -V 2>&1 | sed 5q` in
  7484. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7485. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7486. lt_prog_compiler_pic='-KPIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. lt_prog_compiler_wl=''
  7489. ;;
  7490. *Sun\ F* | *Sun*Fortran*)
  7491. lt_prog_compiler_pic='-KPIC'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. lt_prog_compiler_wl='-Qoption ld '
  7494. ;;
  7495. *Sun\ C*)
  7496. # Sun C 5.9
  7497. lt_prog_compiler_pic='-KPIC'
  7498. lt_prog_compiler_static='-Bstatic'
  7499. lt_prog_compiler_wl='-Wl,'
  7500. ;;
  7501. *Intel*\ [CF]*Compiler*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. lt_prog_compiler_pic='-fPIC'
  7504. lt_prog_compiler_static='-static'
  7505. ;;
  7506. *Portland\ Group*)
  7507. lt_prog_compiler_wl='-Wl,'
  7508. lt_prog_compiler_pic='-fpic'
  7509. lt_prog_compiler_static='-Bstatic'
  7510. ;;
  7511. esac
  7512. ;;
  7513. esac
  7514. ;;
  7515. newsos6)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. *nto* | *qnx*)
  7520. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7521. # it will coredump.
  7522. lt_prog_compiler_pic='-fPIC -shared'
  7523. ;;
  7524. osf3* | osf4* | osf5*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. # All OSF/1 code is PIC.
  7527. lt_prog_compiler_static='-non_shared'
  7528. ;;
  7529. rdos*)
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. solaris*)
  7533. lt_prog_compiler_pic='-KPIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. case $cc_basename in
  7536. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7537. lt_prog_compiler_wl='-Qoption ld ';;
  7538. *)
  7539. lt_prog_compiler_wl='-Wl,';;
  7540. esac
  7541. ;;
  7542. sunos4*)
  7543. lt_prog_compiler_wl='-Qoption ld '
  7544. lt_prog_compiler_pic='-PIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. sysv4 | sysv4.2uw2* | sysv4.3*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec; then
  7554. lt_prog_compiler_pic='-Kconform_pic'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. unicos*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. uts4*)
  7568. lt_prog_compiler_pic='-pic'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. esac
  7575. fi
  7576. case $host_os in
  7577. # For platforms that do not support PIC, -DPIC is meaningless:
  7578. *djgpp*)
  7579. lt_prog_compiler_pic=
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7583. ;;
  7584. esac
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7587. if ${lt_cv_prog_compiler_pic+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7593. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7594. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7595. #
  7596. # Check to make sure the PIC flag actually works.
  7597. #
  7598. if test -n "$lt_prog_compiler_pic"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7601. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. lt_cv_prog_compiler_pic_works=no
  7605. ac_outfile=conftest.$ac_objext
  7606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7607. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7608. # Insert the option either (1) after the last *FLAGS variable, or
  7609. # (2) before a word containing "conftest.", or (3) at the end.
  7610. # Note that $ac_compile itself does not contain backslashes and begins
  7611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7612. # The option is referenced via a variable to avoid confusing sed.
  7613. lt_compile=`echo "$ac_compile" | $SED \
  7614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7616. -e 's:$: $lt_compiler_flag:'`
  7617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7618. (eval "$lt_compile" 2>conftest.err)
  7619. ac_status=$?
  7620. cat conftest.err >&5
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. if (exit $ac_status) && test -s "$ac_outfile"; then
  7623. # The compiler can only warn and ignore the option if not recognized
  7624. # So say no if there are warnings other than the usual output.
  7625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7628. lt_cv_prog_compiler_pic_works=yes
  7629. fi
  7630. fi
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7634. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7635. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7636. case $lt_prog_compiler_pic in
  7637. "" | " "*) ;;
  7638. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7639. esac
  7640. else
  7641. lt_prog_compiler_pic=
  7642. lt_prog_compiler_can_build_shared=no
  7643. fi
  7644. fi
  7645. #
  7646. # Check to make sure the static flag actually works.
  7647. #
  7648. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7651. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_prog_compiler_static_works=no
  7655. save_LDFLAGS=$LDFLAGS
  7656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7659. # The linker can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings
  7661. if test -s conftest.err; then
  7662. # Append any errors to the config.log.
  7663. cat conftest.err 1>&5
  7664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_static_works=yes
  7668. fi
  7669. else
  7670. lt_cv_prog_compiler_static_works=yes
  7671. fi
  7672. fi
  7673. $RM -r conftest*
  7674. LDFLAGS=$save_LDFLAGS
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7677. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7678. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7679. :
  7680. else
  7681. lt_prog_compiler_static=
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7685. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. lt_cv_prog_compiler_c_o=no
  7689. $RM -r conftest 2>/dev/null
  7690. mkdir conftest
  7691. cd conftest
  7692. mkdir out
  7693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7695. # Insert the option either (1) after the last *FLAGS variable, or
  7696. # (2) before a word containing "conftest.", or (3) at the end.
  7697. # Note that $ac_compile itself does not contain backslashes and begins
  7698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7699. lt_compile=`echo "$ac_compile" | $SED \
  7700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7702. -e 's:$: $lt_compiler_flag:'`
  7703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7704. (eval "$lt_compile" 2>out/conftest.err)
  7705. ac_status=$?
  7706. cat out/conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7709. then
  7710. # The compiler can only warn and ignore the option if not recognized
  7711. # So say no if there are warnings
  7712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_c_o=yes
  7716. fi
  7717. fi
  7718. chmod u+w . 2>&5
  7719. $RM conftest*
  7720. # SGI C++ compiler will create directory out/ii_files/ for
  7721. # template instantiation
  7722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7723. $RM out/* && rmdir out
  7724. cd ..
  7725. $RM -r conftest
  7726. $RM conftest*
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7729. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7732. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_prog_compiler_c_o=no
  7736. $RM -r conftest 2>/dev/null
  7737. mkdir conftest
  7738. cd conftest
  7739. mkdir out
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. lt_compile=`echo "$ac_compile" | $SED \
  7747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7749. -e 's:$: $lt_compiler_flag:'`
  7750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7751. (eval "$lt_compile" 2>out/conftest.err)
  7752. ac_status=$?
  7753. cat out/conftest.err >&5
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7756. then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_c_o=yes
  7763. fi
  7764. fi
  7765. chmod u+w . 2>&5
  7766. $RM conftest*
  7767. # SGI C++ compiler will create directory out/ii_files/ for
  7768. # template instantiation
  7769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7770. $RM out/* && rmdir out
  7771. cd ..
  7772. $RM -r conftest
  7773. $RM conftest*
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7776. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7777. hard_links=nottested
  7778. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7779. # do not overwrite the value of need_locks provided by the user
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7782. hard_links=yes
  7783. $RM conftest*
  7784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7785. touch conftest.a
  7786. ln conftest.a conftest.b 2>&5 || hard_links=no
  7787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7789. $as_echo "$hard_links" >&6; }
  7790. if test no = "$hard_links"; then
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7792. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7793. need_locks=warn
  7794. fi
  7795. else
  7796. need_locks=no
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7800. runpath_var=
  7801. allow_undefined_flag=
  7802. always_export_symbols=no
  7803. archive_cmds=
  7804. archive_expsym_cmds=
  7805. compiler_needs_object=no
  7806. enable_shared_with_static_runtimes=no
  7807. export_dynamic_flag_spec=
  7808. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7809. hardcode_automatic=no
  7810. hardcode_direct=no
  7811. hardcode_direct_absolute=no
  7812. hardcode_libdir_flag_spec=
  7813. hardcode_libdir_separator=
  7814. hardcode_minus_L=no
  7815. hardcode_shlibpath_var=unsupported
  7816. inherit_rpath=no
  7817. link_all_deplibs=unknown
  7818. module_cmds=
  7819. module_expsym_cmds=
  7820. old_archive_from_new_cmds=
  7821. old_archive_from_expsyms_cmds=
  7822. thread_safe_flag_spec=
  7823. whole_archive_flag_spec=
  7824. # include_expsyms should be a list of space-separated symbols to be *always*
  7825. # included in the symbol list
  7826. include_expsyms=
  7827. # exclude_expsyms can be an extended regexp of symbols to exclude
  7828. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7829. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7830. # as well as any symbol that contains 'd'.
  7831. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7832. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7833. # platforms (ab)use it in PIC code, but their linkers get confused if
  7834. # the symbol is explicitly referenced. Since portable code cannot
  7835. # rely on this symbol name, it's probably fine to never include it in
  7836. # preloaded symbol tables.
  7837. # Exclude shared library initialization/finalization symbols.
  7838. extract_expsyms_cmds=
  7839. case $host_os in
  7840. cygwin* | mingw* | pw32* | cegcc*)
  7841. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7842. # When not using gcc, we currently assume that we are using
  7843. # Microsoft Visual C++.
  7844. if test yes != "$GCC"; then
  7845. with_gnu_ld=no
  7846. fi
  7847. ;;
  7848. interix*)
  7849. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7850. with_gnu_ld=yes
  7851. ;;
  7852. openbsd* | bitrig*)
  7853. with_gnu_ld=no
  7854. ;;
  7855. esac
  7856. ld_shlibs=yes
  7857. # On some targets, GNU ld is compatible enough with the native linker
  7858. # that we're better off using the native interface for both.
  7859. lt_use_gnu_ld_interface=no
  7860. if test yes = "$with_gnu_ld"; then
  7861. case $host_os in
  7862. aix*)
  7863. # The AIX port of GNU ld has always aspired to compatibility
  7864. # with the native linker. However, as the warning in the GNU ld
  7865. # block says, versions before 2.19.5* couldn't really create working
  7866. # shared libraries, regardless of the interface used.
  7867. case `$LD -v 2>&1` in
  7868. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7869. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7870. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7871. *)
  7872. lt_use_gnu_ld_interface=yes
  7873. ;;
  7874. esac
  7875. ;;
  7876. *)
  7877. lt_use_gnu_ld_interface=yes
  7878. ;;
  7879. esac
  7880. fi
  7881. if test yes = "$lt_use_gnu_ld_interface"; then
  7882. # If archive_cmds runs LD, not CC, wlarc should be empty
  7883. wlarc='$wl'
  7884. # Set some defaults for GNU ld with shared library support. These
  7885. # are reset later if shared libraries are not supported. Putting them
  7886. # here allows them to be overridden if necessary.
  7887. runpath_var=LD_RUN_PATH
  7888. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7889. export_dynamic_flag_spec='$wl--export-dynamic'
  7890. # ancient GNU ld didn't support --whole-archive et. al.
  7891. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7892. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7893. else
  7894. whole_archive_flag_spec=
  7895. fi
  7896. supports_anon_versioning=no
  7897. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7898. *GNU\ gold*) supports_anon_versioning=yes ;;
  7899. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7900. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7901. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7902. *\ 2.11.*) ;; # other 2.11 versions
  7903. *) supports_anon_versioning=yes ;;
  7904. esac
  7905. # See if GNU ld supports shared libraries.
  7906. case $host_os in
  7907. aix[3-9]*)
  7908. # On AIX/PPC, the GNU linker is very broken
  7909. if test ia64 != "$host_cpu"; then
  7910. ld_shlibs=no
  7911. cat <<_LT_EOF 1>&2
  7912. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7913. *** to be unable to reliably create shared libraries on AIX.
  7914. *** Therefore, libtool is disabling shared libraries support. If you
  7915. *** really care for shared libraries, you may want to install binutils
  7916. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7917. *** You will then need to restart the configuration process.
  7918. _LT_EOF
  7919. fi
  7920. ;;
  7921. amigaos*)
  7922. case $host_cpu in
  7923. powerpc)
  7924. # see comment about AmigaOS4 .so support
  7925. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7926. archive_expsym_cmds=''
  7927. ;;
  7928. m68k)
  7929. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_minus_L=yes
  7932. ;;
  7933. esac
  7934. ;;
  7935. beos*)
  7936. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7937. allow_undefined_flag=unsupported
  7938. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7939. # support --undefined. This deserves some investigation. FIXME
  7940. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7941. else
  7942. ld_shlibs=no
  7943. fi
  7944. ;;
  7945. cygwin* | mingw* | pw32* | cegcc*)
  7946. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7947. # as there is no search path for DLLs.
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. export_dynamic_flag_spec='$wl--export-all-symbols'
  7950. allow_undefined_flag=unsupported
  7951. always_export_symbols=no
  7952. enable_shared_with_static_runtimes=yes
  7953. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7954. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7955. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7957. # If the export-symbols file already is a .def file, use it as
  7958. # is; otherwise, prepend EXPORTS...
  7959. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7960. cp $export_symbols $output_objdir/$soname.def;
  7961. else
  7962. echo EXPORTS > $output_objdir/$soname.def;
  7963. cat $export_symbols >> $output_objdir/$soname.def;
  7964. fi~
  7965. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7966. else
  7967. ld_shlibs=no
  7968. fi
  7969. ;;
  7970. haiku*)
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7972. link_all_deplibs=yes
  7973. ;;
  7974. os2*)
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. allow_undefined_flag=unsupported
  7978. shrext_cmds=.dll
  7979. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7980. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7981. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7982. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7983. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7984. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7985. emximp -o $lib $output_objdir/$libname.def'
  7986. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7987. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7988. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7989. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7990. prefix_cmds="$SED"~
  7991. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7992. prefix_cmds="$prefix_cmds -e 1d";
  7993. fi~
  7994. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7995. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7996. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7997. emximp -o $lib $output_objdir/$libname.def'
  7998. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7999. enable_shared_with_static_runtimes=yes
  8000. file_list_spec='@'
  8001. ;;
  8002. interix[3-9]*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8006. export_dynamic_flag_spec='$wl-E'
  8007. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8008. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8009. # default) and relocated if they conflict, which is a slow very memory
  8010. # consuming and fragmenting process. To avoid this, we pick a random,
  8011. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8012. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8013. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8014. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8015. ;;
  8016. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8017. tmp_diet=no
  8018. if test linux-dietlibc = "$host_os"; then
  8019. case $cc_basename in
  8020. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8021. esac
  8022. fi
  8023. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8024. && test no = "$tmp_diet"
  8025. then
  8026. tmp_addflag=' $pic_flag'
  8027. tmp_sharedflag='-shared'
  8028. case $cc_basename,$host_cpu in
  8029. pgcc*) # Portland Group C compiler
  8030. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8031. tmp_addflag=' $pic_flag'
  8032. ;;
  8033. pgf77* | pgf90* | pgf95* | pgfortran*)
  8034. # Portland Group f77 and f90 compilers
  8035. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8036. tmp_addflag=' $pic_flag -Mnomain' ;;
  8037. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8038. tmp_addflag=' -i_dynamic' ;;
  8039. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8040. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8041. ifc* | ifort*) # Intel Fortran compiler
  8042. tmp_addflag=' -nofor_main' ;;
  8043. lf95*) # Lahey Fortran 8.1
  8044. whole_archive_flag_spec=
  8045. tmp_sharedflag='--shared' ;;
  8046. nagfor*) # NAGFOR 5.3
  8047. tmp_sharedflag='-Wl,-shared' ;;
  8048. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8049. tmp_sharedflag='-qmkshrobj'
  8050. tmp_addflag= ;;
  8051. nvcc*) # Cuda Compiler Driver 2.2
  8052. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8053. compiler_needs_object=yes
  8054. ;;
  8055. esac
  8056. case `$CC -V 2>&1 | sed 5q` in
  8057. *Sun\ C*) # Sun C 5.9
  8058. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8059. compiler_needs_object=yes
  8060. tmp_sharedflag='-G' ;;
  8061. *Sun\ F*) # Sun Fortran 8.3
  8062. tmp_sharedflag='-G' ;;
  8063. esac
  8064. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8065. if test yes = "$supports_anon_versioning"; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. case $cc_basename in
  8072. tcc*)
  8073. export_dynamic_flag_spec='-rdynamic'
  8074. ;;
  8075. xlf* | bgf* | bgxlf* | mpixlf*)
  8076. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8077. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8078. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8079. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8080. if test yes = "$supports_anon_versioning"; then
  8081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8083. echo "local: *; };" >> $output_objdir/$libname.ver~
  8084. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. netbsd*)
  8093. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8094. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8095. wlarc=
  8096. else
  8097. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8098. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8099. fi
  8100. ;;
  8101. solaris*)
  8102. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8103. ld_shlibs=no
  8104. cat <<_LT_EOF 1>&2
  8105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8106. *** create shared libraries on Solaris systems. Therefore, libtool
  8107. *** is disabling shared libraries support. We urge you to upgrade GNU
  8108. *** binutils to release 2.9.1 or newer. Another option is to modify
  8109. *** your PATH or compiler configuration so that the native linker is
  8110. *** used, and then restart.
  8111. _LT_EOF
  8112. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8120. case `$LD -v 2>&1` in
  8121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8122. ld_shlibs=no
  8123. cat <<_LT_EOF 1>&2
  8124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8126. *** is disabling shared libraries support. We urge you to upgrade GNU
  8127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8128. *** your PATH or compiler configuration so that the native linker is
  8129. *** used, and then restart.
  8130. _LT_EOF
  8131. ;;
  8132. *)
  8133. # For security reasons, it is highly recommended that you always
  8134. # use absolute paths for naming shared libraries, and exclude the
  8135. # DT_RUNPATH tag from executables and libraries. But doing so
  8136. # requires that you compile everything twice, which is a pain.
  8137. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8138. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8141. else
  8142. ld_shlibs=no
  8143. fi
  8144. ;;
  8145. esac
  8146. ;;
  8147. sunos4*)
  8148. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8149. wlarc=
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8156. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8157. else
  8158. ld_shlibs=no
  8159. fi
  8160. ;;
  8161. esac
  8162. if test no = "$ld_shlibs"; then
  8163. runpath_var=
  8164. hardcode_libdir_flag_spec=
  8165. export_dynamic_flag_spec=
  8166. whole_archive_flag_spec=
  8167. fi
  8168. else
  8169. # PORTME fill in a description of your system's linker (not GNU ld)
  8170. case $host_os in
  8171. aix3*)
  8172. allow_undefined_flag=unsupported
  8173. always_export_symbols=yes
  8174. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8175. # Note: this linker hardcodes the directories in LIBPATH if there
  8176. # are no directories specified by -L.
  8177. hardcode_minus_L=yes
  8178. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8179. # Neither direct hardcoding nor static linking is supported with a
  8180. # broken collect2.
  8181. hardcode_direct=unsupported
  8182. fi
  8183. ;;
  8184. aix[4-9]*)
  8185. if test ia64 = "$host_cpu"; then
  8186. # On IA64, the linker does run time linking by default, so we don't
  8187. # have to do anything special.
  8188. aix_use_runtimelinking=no
  8189. exp_sym_flag='-Bexport'
  8190. no_entry_flag=
  8191. else
  8192. # If we're using GNU nm, then we don't want the "-C" option.
  8193. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8194. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8195. # weak defined symbols like other global defined symbols, whereas
  8196. # GNU nm marks them as "W".
  8197. # While the 'weak' keyword is ignored in the Export File, we need
  8198. # it in the Import File for the 'aix-soname' feature, so we have
  8199. # to replace the "-B" option with "-P" for AIX nm.
  8200. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8201. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8202. else
  8203. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8204. fi
  8205. aix_use_runtimelinking=no
  8206. # Test if we are trying to use run time linking or normal
  8207. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8208. # have runtime linking enabled, and use it for executables.
  8209. # For shared libraries, we enable/disable runtime linking
  8210. # depending on the kind of the shared library created -
  8211. # when "with_aix_soname,aix_use_runtimelinking" is:
  8212. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "aix,yes" lib.so shared, rtl:yes, for executables
  8214. # lib.a static archive
  8215. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8216. # lib.a(lib.so.V) shared, rtl:no, for executables
  8217. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8218. # lib.a(lib.so.V) shared, rtl:no
  8219. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a static archive
  8221. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8222. for ld_flag in $LDFLAGS; do
  8223. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8224. aix_use_runtimelinking=yes
  8225. break
  8226. fi
  8227. done
  8228. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8229. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8230. # so we don't have lib.a shared libs to link our executables.
  8231. # We have to force runtime linking in this case.
  8232. aix_use_runtimelinking=yes
  8233. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8234. fi
  8235. ;;
  8236. esac
  8237. exp_sym_flag='-bexport'
  8238. no_entry_flag='-bnoentry'
  8239. fi
  8240. # When large executables or shared objects are built, AIX ld can
  8241. # have problems creating the table of contents. If linking a library
  8242. # or program results in "error TOC overflow" add -mminimal-toc to
  8243. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8244. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8245. archive_cmds=''
  8246. hardcode_direct=yes
  8247. hardcode_direct_absolute=yes
  8248. hardcode_libdir_separator=':'
  8249. link_all_deplibs=yes
  8250. file_list_spec='$wl-f,'
  8251. case $with_aix_soname,$aix_use_runtimelinking in
  8252. aix,*) ;; # traditional, no import file
  8253. svr4,* | *,yes) # use import file
  8254. # The Import File defines what to hardcode.
  8255. hardcode_direct=no
  8256. hardcode_direct_absolute=no
  8257. ;;
  8258. esac
  8259. if test yes = "$GCC"; then
  8260. case $host_os in aix4.[012]|aix4.[012].*)
  8261. # We only want to do this on AIX 4.2 and lower, the check
  8262. # below for broken collect2 doesn't work under 4.3+
  8263. collect2name=`$CC -print-prog-name=collect2`
  8264. if test -f "$collect2name" &&
  8265. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8266. then
  8267. # We have reworked collect2
  8268. :
  8269. else
  8270. # We have old collect2
  8271. hardcode_direct=unsupported
  8272. # It fails to find uninstalled libraries when the uninstalled
  8273. # path is not listed in the libpath. Setting hardcode_minus_L
  8274. # to unsupported forces relinking
  8275. hardcode_minus_L=yes
  8276. hardcode_libdir_flag_spec='-L$libdir'
  8277. hardcode_libdir_separator=
  8278. fi
  8279. ;;
  8280. esac
  8281. shared_flag='-shared'
  8282. if test yes = "$aix_use_runtimelinking"; then
  8283. shared_flag="$shared_flag "'$wl-G'
  8284. fi
  8285. # Need to ensure runtime linking is disabled for the traditional
  8286. # shared library, or the linker may eventually find shared libraries
  8287. # /with/ Import File - we do not want to mix them.
  8288. shared_flag_aix='-shared'
  8289. shared_flag_svr4='-shared $wl-G'
  8290. else
  8291. # not using gcc
  8292. if test ia64 = "$host_cpu"; then
  8293. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8294. # chokes on -Wl,-G. The following line is correct:
  8295. shared_flag='-G'
  8296. else
  8297. if test yes = "$aix_use_runtimelinking"; then
  8298. shared_flag='$wl-G'
  8299. else
  8300. shared_flag='$wl-bM:SRE'
  8301. fi
  8302. shared_flag_aix='$wl-bM:SRE'
  8303. shared_flag_svr4='$wl-G'
  8304. fi
  8305. fi
  8306. export_dynamic_flag_spec='$wl-bexpall'
  8307. # It seems that -bexpall does not export symbols beginning with
  8308. # underscore (_), so it is better to generate a list of symbols to export.
  8309. always_export_symbols=yes
  8310. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8311. # Warning - without using the other runtime loading flags (-brtl),
  8312. # -berok will link without error, but may produce a broken library.
  8313. allow_undefined_flag='-berok'
  8314. # Determine the default libpath from the value encoded in an
  8315. # empty executable.
  8316. if test set = "${lt_cv_aix_libpath+set}"; then
  8317. aix_libpath=$lt_cv_aix_libpath
  8318. else
  8319. if ${lt_cv_aix_libpath_+:} false; then :
  8320. $as_echo_n "(cached) " >&6
  8321. else
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int
  8325. main ()
  8326. {
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. if ac_fn_c_try_link "$LINENO"; then :
  8332. lt_aix_libpath_sed='
  8333. /Import File Strings/,/^$/ {
  8334. /^0/ {
  8335. s/^0 *\([^ ]*\) *$/\1/
  8336. p
  8337. }
  8338. }'
  8339. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8340. # Check for a 64-bit object if we didn't find anything.
  8341. if test -z "$lt_cv_aix_libpath_"; then
  8342. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8343. fi
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext \
  8346. conftest$ac_exeext conftest.$ac_ext
  8347. if test -z "$lt_cv_aix_libpath_"; then
  8348. lt_cv_aix_libpath_=/usr/lib:/lib
  8349. fi
  8350. fi
  8351. aix_libpath=$lt_cv_aix_libpath_
  8352. fi
  8353. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8354. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8355. else
  8356. if test ia64 = "$host_cpu"; then
  8357. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8358. allow_undefined_flag="-z nodefs"
  8359. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  8360. else
  8361. # Determine the default libpath from the value encoded in an
  8362. # empty executable.
  8363. if test set = "${lt_cv_aix_libpath+set}"; then
  8364. aix_libpath=$lt_cv_aix_libpath
  8365. else
  8366. if ${lt_cv_aix_libpath_+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int
  8372. main ()
  8373. {
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. if ac_fn_c_try_link "$LINENO"; then :
  8379. lt_aix_libpath_sed='
  8380. /Import File Strings/,/^$/ {
  8381. /^0/ {
  8382. s/^0 *\([^ ]*\) *$/\1/
  8383. p
  8384. }
  8385. }'
  8386. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. # Check for a 64-bit object if we didn't find anything.
  8388. if test -z "$lt_cv_aix_libpath_"; then
  8389. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. fi
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. if test -z "$lt_cv_aix_libpath_"; then
  8395. lt_cv_aix_libpath_=/usr/lib:/lib
  8396. fi
  8397. fi
  8398. aix_libpath=$lt_cv_aix_libpath_
  8399. fi
  8400. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8401. # Warning - without using the other run time loading flags,
  8402. # -berok will link without error, but may produce a broken library.
  8403. no_undefined_flag=' $wl-bernotok'
  8404. allow_undefined_flag=' $wl-berok'
  8405. if test yes = "$with_gnu_ld"; then
  8406. # We only use this code for GNU lds that support --whole-archive.
  8407. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8408. else
  8409. # Exported symbols can be pulled into shared objects from archives
  8410. whole_archive_flag_spec='$convenience'
  8411. fi
  8412. archive_cmds_need_lc=yes
  8413. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8414. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8415. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8416. if test svr4 != "$with_aix_soname"; then
  8417. # This is similar to how AIX traditionally builds its shared libraries.
  8418. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8419. fi
  8420. if test aix != "$with_aix_soname"; then
  8421. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8422. else
  8423. # used by -dlpreopen to get the symbols
  8424. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8425. fi
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8427. fi
  8428. fi
  8429. ;;
  8430. amigaos*)
  8431. case $host_cpu in
  8432. powerpc)
  8433. # see comment about AmigaOS4 .so support
  8434. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8435. archive_expsym_cmds=''
  8436. ;;
  8437. m68k)
  8438. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8439. hardcode_libdir_flag_spec='-L$libdir'
  8440. hardcode_minus_L=yes
  8441. ;;
  8442. esac
  8443. ;;
  8444. bsdi[45]*)
  8445. export_dynamic_flag_spec=-rdynamic
  8446. ;;
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # When not using gcc, we currently assume that we are using
  8449. # Microsoft Visual C++.
  8450. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8451. # no search path for DLLs.
  8452. case $cc_basename in
  8453. cl*)
  8454. # Native MSVC
  8455. hardcode_libdir_flag_spec=' '
  8456. allow_undefined_flag=unsupported
  8457. always_export_symbols=yes
  8458. file_list_spec='@'
  8459. # Tell ltmain to make .lib files, not .a files.
  8460. libext=lib
  8461. # Tell ltmain to make .dll files, not .so files.
  8462. shrext_cmds=.dll
  8463. # FIXME: Setting linknames here is a bad hack.
  8464. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8465. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8466. cp "$export_symbols" "$output_objdir/$soname.def";
  8467. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8468. else
  8469. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8470. fi~
  8471. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8472. linknames='
  8473. # The linker will not automatically build a static lib if we build a DLL.
  8474. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8475. enable_shared_with_static_runtimes=yes
  8476. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8478. # Don't use ranlib
  8479. old_postinstall_cmds='chmod 644 $oldlib'
  8480. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8481. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8482. case $lt_outputfile in
  8483. *.exe|*.EXE) ;;
  8484. *)
  8485. lt_outputfile=$lt_outputfile.exe
  8486. lt_tool_outputfile=$lt_tool_outputfile.exe
  8487. ;;
  8488. esac~
  8489. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8490. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8491. $RM "$lt_outputfile.manifest";
  8492. fi'
  8493. ;;
  8494. *)
  8495. # Assume MSVC wrapper
  8496. hardcode_libdir_flag_spec=' '
  8497. allow_undefined_flag=unsupported
  8498. # Tell ltmain to make .lib files, not .a files.
  8499. libext=lib
  8500. # Tell ltmain to make .dll files, not .so files.
  8501. shrext_cmds=.dll
  8502. # FIXME: Setting linknames here is a bad hack.
  8503. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8504. # The linker will automatically build a .lib file if we build a DLL.
  8505. old_archive_from_new_cmds='true'
  8506. # FIXME: Should let the user specify the lib program.
  8507. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8508. enable_shared_with_static_runtimes=yes
  8509. ;;
  8510. esac
  8511. ;;
  8512. darwin* | rhapsody*)
  8513. archive_cmds_need_lc=no
  8514. hardcode_direct=no
  8515. hardcode_automatic=yes
  8516. hardcode_shlibpath_var=unsupported
  8517. if test yes = "$lt_cv_ld_force_load"; then
  8518. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8519. else
  8520. whole_archive_flag_spec=''
  8521. fi
  8522. link_all_deplibs=yes
  8523. allow_undefined_flag=$_lt_dar_allow_undefined
  8524. case $cc_basename in
  8525. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8526. *) _lt_dar_can_shared=$GCC ;;
  8527. esac
  8528. if test yes = "$_lt_dar_can_shared"; then
  8529. output_verbose_link_cmd=func_echo_all
  8530. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8531. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8532. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  8533. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  8534. else
  8535. ld_shlibs=no
  8536. fi
  8537. ;;
  8538. dgux*)
  8539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8544. # support. Future versions do this automatically, but an explicit c++rt0.o
  8545. # does not break anything, and helps significantly (at the cost of a little
  8546. # extra space).
  8547. freebsd2.2*)
  8548. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8549. hardcode_libdir_flag_spec='-R$libdir'
  8550. hardcode_direct=yes
  8551. hardcode_shlibpath_var=no
  8552. ;;
  8553. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8554. freebsd2.*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8556. hardcode_direct=yes
  8557. hardcode_minus_L=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8561. freebsd* | dragonfly* | midnightbsd*)
  8562. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8563. hardcode_libdir_flag_spec='-R$libdir'
  8564. hardcode_direct=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. hpux9*)
  8568. if test yes = "$GCC"; then
  8569. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8570. else
  8571. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8572. fi
  8573. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8574. hardcode_libdir_separator=:
  8575. hardcode_direct=yes
  8576. # hardcode_minus_L: Not really in the search PATH,
  8577. # but as the default location of the library.
  8578. hardcode_minus_L=yes
  8579. export_dynamic_flag_spec='$wl-E'
  8580. ;;
  8581. hpux10*)
  8582. if test yes,no = "$GCC,$with_gnu_ld"; then
  8583. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8584. else
  8585. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8586. fi
  8587. if test no = "$with_gnu_ld"; then
  8588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8589. hardcode_libdir_separator=:
  8590. hardcode_direct=yes
  8591. hardcode_direct_absolute=yes
  8592. export_dynamic_flag_spec='$wl-E'
  8593. # hardcode_minus_L: Not really in the search PATH,
  8594. # but as the default location of the library.
  8595. hardcode_minus_L=yes
  8596. fi
  8597. ;;
  8598. hpux11*)
  8599. if test yes,no = "$GCC,$with_gnu_ld"; then
  8600. case $host_cpu in
  8601. hppa*64*)
  8602. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8603. ;;
  8604. ia64*)
  8605. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. *)
  8608. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8609. ;;
  8610. esac
  8611. else
  8612. case $host_cpu in
  8613. hppa*64*)
  8614. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8615. ;;
  8616. ia64*)
  8617. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8618. ;;
  8619. *)
  8620. # Older versions of the 11.00 compiler do not understand -b yet
  8621. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8623. $as_echo_n "checking if $CC understands -b... " >&6; }
  8624. if ${lt_cv_prog_compiler__b+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. lt_cv_prog_compiler__b=no
  8628. save_LDFLAGS=$LDFLAGS
  8629. LDFLAGS="$LDFLAGS -b"
  8630. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8631. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8632. # The linker can only warn and ignore the option if not recognized
  8633. # So say no if there are warnings
  8634. if test -s conftest.err; then
  8635. # Append any errors to the config.log.
  8636. cat conftest.err 1>&5
  8637. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8639. if diff conftest.exp conftest.er2 >/dev/null; then
  8640. lt_cv_prog_compiler__b=yes
  8641. fi
  8642. else
  8643. lt_cv_prog_compiler__b=yes
  8644. fi
  8645. fi
  8646. $RM -r conftest*
  8647. LDFLAGS=$save_LDFLAGS
  8648. fi
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8650. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8651. if test yes = "$lt_cv_prog_compiler__b"; then
  8652. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8653. else
  8654. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8655. fi
  8656. ;;
  8657. esac
  8658. fi
  8659. if test no = "$with_gnu_ld"; then
  8660. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8661. hardcode_libdir_separator=:
  8662. case $host_cpu in
  8663. hppa*64*|ia64*)
  8664. hardcode_direct=no
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. *)
  8668. hardcode_direct=yes
  8669. hardcode_direct_absolute=yes
  8670. export_dynamic_flag_spec='$wl-E'
  8671. # hardcode_minus_L: Not really in the search PATH,
  8672. # but as the default location of the library.
  8673. hardcode_minus_L=yes
  8674. ;;
  8675. esac
  8676. fi
  8677. ;;
  8678. irix5* | irix6* | nonstopux*)
  8679. if test yes = "$GCC"; then
  8680. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8681. # Try to use the -exported_symbol ld option, if it does not
  8682. # work, assume that -exports_file does not work either and
  8683. # implicitly export all symbols.
  8684. # This should be the same for all languages, so no per-tag cache variable.
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8686. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8687. if ${lt_cv_irix_exported_symbol+:} false; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. save_LDFLAGS=$LDFLAGS
  8691. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8693. /* end confdefs.h. */
  8694. int foo (void) { return 0; }
  8695. _ACEOF
  8696. if ac_fn_c_try_link "$LINENO"; then :
  8697. lt_cv_irix_exported_symbol=yes
  8698. else
  8699. lt_cv_irix_exported_symbol=no
  8700. fi
  8701. rm -f core conftest.err conftest.$ac_objext \
  8702. conftest$ac_exeext conftest.$ac_ext
  8703. LDFLAGS=$save_LDFLAGS
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8706. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8707. if test yes = "$lt_cv_irix_exported_symbol"; then
  8708. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8709. fi
  8710. else
  8711. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8712. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  8713. fi
  8714. archive_cmds_need_lc='no'
  8715. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8716. hardcode_libdir_separator=:
  8717. inherit_rpath=yes
  8718. link_all_deplibs=yes
  8719. ;;
  8720. linux*)
  8721. case $cc_basename in
  8722. tcc*)
  8723. # Fabrice Bellard et al's Tiny C Compiler
  8724. ld_shlibs=yes
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. ;;
  8727. esac
  8728. ;;
  8729. netbsd*)
  8730. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8731. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8732. else
  8733. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8734. fi
  8735. hardcode_libdir_flag_spec='-R$libdir'
  8736. hardcode_direct=yes
  8737. hardcode_shlibpath_var=no
  8738. ;;
  8739. newsos6)
  8740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8741. hardcode_direct=yes
  8742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8743. hardcode_libdir_separator=:
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. *nto* | *qnx*)
  8747. ;;
  8748. openbsd* | bitrig*)
  8749. if test -f /usr/libexec/ld.so; then
  8750. hardcode_direct=yes
  8751. hardcode_shlibpath_var=no
  8752. hardcode_direct_absolute=yes
  8753. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8754. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8755. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. export_dynamic_flag_spec='$wl-E'
  8758. else
  8759. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8761. fi
  8762. else
  8763. ld_shlibs=no
  8764. fi
  8765. ;;
  8766. os2*)
  8767. hardcode_libdir_flag_spec='-L$libdir'
  8768. hardcode_minus_L=yes
  8769. allow_undefined_flag=unsupported
  8770. shrext_cmds=.dll
  8771. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8772. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8773. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8774. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8775. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8776. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8777. emximp -o $lib $output_objdir/$libname.def'
  8778. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8779. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8780. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8781. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8782. prefix_cmds="$SED"~
  8783. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8784. prefix_cmds="$prefix_cmds -e 1d";
  8785. fi~
  8786. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8787. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8788. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8789. emximp -o $lib $output_objdir/$libname.def'
  8790. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8791. enable_shared_with_static_runtimes=yes
  8792. file_list_spec='@'
  8793. ;;
  8794. osf3*)
  8795. if test yes = "$GCC"; then
  8796. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8797. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8798. else
  8799. allow_undefined_flag=' -expect_unresolved \*'
  8800. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8801. fi
  8802. archive_cmds_need_lc='no'
  8803. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8804. hardcode_libdir_separator=:
  8805. ;;
  8806. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8807. if test yes = "$GCC"; then
  8808. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8809. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. else
  8812. allow_undefined_flag=' -expect_unresolved \*'
  8813. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8814. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8815. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  8816. # Both c and cxx compiler support -rpath directly
  8817. hardcode_libdir_flag_spec='-rpath $libdir'
  8818. fi
  8819. archive_cmds_need_lc='no'
  8820. hardcode_libdir_separator=:
  8821. ;;
  8822. solaris*)
  8823. no_undefined_flag=' -z defs'
  8824. if test yes = "$GCC"; then
  8825. wlarc='$wl'
  8826. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8828. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8829. else
  8830. case `$CC -V 2>&1` in
  8831. *"Compilers 5.0"*)
  8832. wlarc=''
  8833. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8836. ;;
  8837. *)
  8838. wlarc='$wl'
  8839. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8841. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8842. ;;
  8843. esac
  8844. fi
  8845. hardcode_libdir_flag_spec='-R$libdir'
  8846. hardcode_shlibpath_var=no
  8847. case $host_os in
  8848. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8849. *)
  8850. # The compiler driver will combine and reorder linker options,
  8851. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8852. # but is careful enough not to reorder.
  8853. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8854. if test yes = "$GCC"; then
  8855. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8856. else
  8857. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8858. fi
  8859. ;;
  8860. esac
  8861. link_all_deplibs=yes
  8862. ;;
  8863. sunos4*)
  8864. if test sequent = "$host_vendor"; then
  8865. # Use $CC to link under sequent, because it throws in some extra .o
  8866. # files that make .init and .fini sections work.
  8867. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8868. else
  8869. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8870. fi
  8871. hardcode_libdir_flag_spec='-L$libdir'
  8872. hardcode_direct=yes
  8873. hardcode_minus_L=yes
  8874. hardcode_shlibpath_var=no
  8875. ;;
  8876. sysv4)
  8877. case $host_vendor in
  8878. sni)
  8879. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8880. hardcode_direct=yes # is this really true???
  8881. ;;
  8882. siemens)
  8883. ## LD is ld it makes a PLAMLIB
  8884. ## CC just makes a GrossModule.
  8885. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8886. reload_cmds='$CC -r -o $output$reload_objs'
  8887. hardcode_direct=no
  8888. ;;
  8889. motorola)
  8890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8891. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8892. ;;
  8893. esac
  8894. runpath_var='LD_RUN_PATH'
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. sysv4.3*)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_shlibpath_var=no
  8900. export_dynamic_flag_spec='-Bexport'
  8901. ;;
  8902. sysv4*MP*)
  8903. if test -d /usr/nec; then
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_shlibpath_var=no
  8906. runpath_var=LD_RUN_PATH
  8907. hardcode_runpath_var=yes
  8908. ld_shlibs=yes
  8909. fi
  8910. ;;
  8911. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8912. no_undefined_flag='$wl-z,text'
  8913. archive_cmds_need_lc=no
  8914. hardcode_shlibpath_var=no
  8915. runpath_var='LD_RUN_PATH'
  8916. if test yes = "$GCC"; then
  8917. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. else
  8920. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. fi
  8923. ;;
  8924. sysv5* | sco3.2v5* | sco5v6*)
  8925. # Note: We CANNOT use -z defs as we might desire, because we do not
  8926. # link with -lc, and that would cause any symbols used from libc to
  8927. # always be unresolved, which means just about no library would
  8928. # ever link correctly. If we're not using GNU ld we use -z text
  8929. # though, which does catch some bad symbols but isn't as heavy-handed
  8930. # as -z defs.
  8931. no_undefined_flag='$wl-z,text'
  8932. allow_undefined_flag='$wl-z,nodefs'
  8933. archive_cmds_need_lc=no
  8934. hardcode_shlibpath_var=no
  8935. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8936. hardcode_libdir_separator=':'
  8937. link_all_deplibs=yes
  8938. export_dynamic_flag_spec='$wl-Bexport'
  8939. runpath_var='LD_RUN_PATH'
  8940. if test yes = "$GCC"; then
  8941. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. else
  8944. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. fi
  8947. ;;
  8948. uts4*)
  8949. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8950. hardcode_libdir_flag_spec='-L$libdir'
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. ld_shlibs=no
  8955. ;;
  8956. esac
  8957. if test sni = "$host_vendor"; then
  8958. case $host in
  8959. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8960. export_dynamic_flag_spec='$wl-Blargedynsym'
  8961. ;;
  8962. esac
  8963. fi
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8966. $as_echo "$ld_shlibs" >&6; }
  8967. test no = "$ld_shlibs" && can_build_shared=no
  8968. with_gnu_ld=$with_gnu_ld
  8969. #
  8970. # Do we need to explicitly link libc?
  8971. #
  8972. case "x$archive_cmds_need_lc" in
  8973. x|xyes)
  8974. # Assume -lc should be added
  8975. archive_cmds_need_lc=yes
  8976. if test yes,yes = "$GCC,$enable_shared"; then
  8977. case $archive_cmds in
  8978. *'~'*)
  8979. # FIXME: we may have to deal with multi-command sequences.
  8980. ;;
  8981. '$CC '*)
  8982. # Test whether the compiler implicitly links with -lc since on some
  8983. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8984. # to ld, don't add -lc before -lgcc.
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8986. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8987. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8988. $as_echo_n "(cached) " >&6
  8989. else
  8990. $RM conftest*
  8991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8993. (eval $ac_compile) 2>&5
  8994. ac_status=$?
  8995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8996. test $ac_status = 0; } 2>conftest.err; then
  8997. soname=conftest
  8998. lib=conftest
  8999. libobjs=conftest.$ac_objext
  9000. deplibs=
  9001. wl=$lt_prog_compiler_wl
  9002. pic_flag=$lt_prog_compiler_pic
  9003. compiler_flags=-v
  9004. linker_flags=-v
  9005. verstring=
  9006. output_objdir=.
  9007. libname=conftest
  9008. lt_save_allow_undefined_flag=$allow_undefined_flag
  9009. allow_undefined_flag=
  9010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9011. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9012. ac_status=$?
  9013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9014. test $ac_status = 0; }
  9015. then
  9016. lt_cv_archive_cmds_need_lc=no
  9017. else
  9018. lt_cv_archive_cmds_need_lc=yes
  9019. fi
  9020. allow_undefined_flag=$lt_save_allow_undefined_flag
  9021. else
  9022. cat conftest.err 1>&5
  9023. fi
  9024. $RM conftest*
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9027. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9028. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9029. ;;
  9030. esac
  9031. fi
  9032. ;;
  9033. esac
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9035. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9036. if test yes = "$GCC"; then
  9037. case $host_os in
  9038. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9039. *) lt_awk_arg='/^libraries:/' ;;
  9040. esac
  9041. case $host_os in
  9042. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9043. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9044. esac
  9045. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9046. case $lt_search_path_spec in
  9047. *\;*)
  9048. # if the path contains ";" then we assume it to be the separator
  9049. # otherwise default to the standard path separator (i.e. ":") - it is
  9050. # assumed that no part of a normal pathname contains ";" but that should
  9051. # okay in the real world where ";" in dirpaths is itself problematic.
  9052. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9053. ;;
  9054. *)
  9055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9056. ;;
  9057. esac
  9058. # Ok, now we have the path, separated by spaces, we can step through it
  9059. # and add multilib dir if necessary...
  9060. lt_tmp_lt_search_path_spec=
  9061. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9062. # ...but if some path component already ends with the multilib dir we assume
  9063. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9064. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9065. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9066. lt_multi_os_dir=
  9067. ;;
  9068. esac
  9069. for lt_sys_path in $lt_search_path_spec; do
  9070. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9071. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9072. elif test -n "$lt_multi_os_dir"; then
  9073. test -d "$lt_sys_path" && \
  9074. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9075. fi
  9076. done
  9077. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9078. BEGIN {RS = " "; FS = "/|\n";} {
  9079. lt_foo = "";
  9080. lt_count = 0;
  9081. for (lt_i = NF; lt_i > 0; lt_i--) {
  9082. if ($lt_i != "" && $lt_i != ".") {
  9083. if ($lt_i == "..") {
  9084. lt_count++;
  9085. } else {
  9086. if (lt_count == 0) {
  9087. lt_foo = "/" $lt_i lt_foo;
  9088. } else {
  9089. lt_count--;
  9090. }
  9091. }
  9092. }
  9093. }
  9094. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9095. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9096. }'`
  9097. # AWK program above erroneously prepends '/' to C:/dos/paths
  9098. # for these hosts.
  9099. case $host_os in
  9100. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9101. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9102. esac
  9103. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9104. else
  9105. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9106. fi
  9107. library_names_spec=
  9108. libname_spec='lib$name'
  9109. soname_spec=
  9110. shrext_cmds=.so
  9111. postinstall_cmds=
  9112. postuninstall_cmds=
  9113. finish_cmds=
  9114. finish_eval=
  9115. shlibpath_var=
  9116. shlibpath_overrides_runpath=unknown
  9117. version_type=none
  9118. dynamic_linker="$host_os ld.so"
  9119. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9120. need_lib_prefix=unknown
  9121. hardcode_into_libs=no
  9122. # when you set need_version to no, make sure it does not cause -set_version
  9123. # flags to be left without arguments
  9124. need_version=unknown
  9125. case $host_os in
  9126. aix3*)
  9127. version_type=linux # correct to gnu/linux during the next big refactor
  9128. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9129. shlibpath_var=LIBPATH
  9130. # AIX 3 has no versioning support, so we append a major version to the name.
  9131. soname_spec='$libname$release$shared_ext$major'
  9132. ;;
  9133. aix[4-9]*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. hardcode_into_libs=yes
  9138. if test ia64 = "$host_cpu"; then
  9139. # AIX 5 supports IA64
  9140. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. else
  9143. # With GCC up to 2.95.x, collect2 would create an import file
  9144. # for dependence libraries. The import file would start with
  9145. # the line '#! .'. This would cause the generated library to
  9146. # depend on '.', always an invalid library. This was fixed in
  9147. # development snapshots of GCC prior to 3.0.
  9148. case $host_os in
  9149. aix4 | aix4.[01] | aix4.[01].*)
  9150. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9151. echo ' yes '
  9152. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9153. :
  9154. else
  9155. can_build_shared=no
  9156. fi
  9157. ;;
  9158. esac
  9159. # Using Import Files as archive members, it is possible to support
  9160. # filename-based versioning of shared library archives on AIX. While
  9161. # this would work for both with and without runtime linking, it will
  9162. # prevent static linking of such archives. So we do filename-based
  9163. # shared library versioning with .so extension only, which is used
  9164. # when both runtime linking and shared linking is enabled.
  9165. # Unfortunately, runtime linking may impact performance, so we do
  9166. # not want this to be the default eventually. Also, we use the
  9167. # versioned .so libs for executables only if there is the -brtl
  9168. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9169. # To allow for filename-based versioning support, we need to create
  9170. # libNAME.so.V as an archive file, containing:
  9171. # *) an Import File, referring to the versioned filename of the
  9172. # archive as well as the shared archive member, telling the
  9173. # bitwidth (32 or 64) of that shared object, and providing the
  9174. # list of exported symbols of that shared object, eventually
  9175. # decorated with the 'weak' keyword
  9176. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9177. # it being seen by the linker.
  9178. # At run time we better use the real file rather than another symlink,
  9179. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9180. case $with_aix_soname,$aix_use_runtimelinking in
  9181. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9182. # soname into executable. Probably we can add versioning support to
  9183. # collect2, so additional links can be useful in future.
  9184. aix,yes) # traditional libtool
  9185. dynamic_linker='AIX unversionable lib.so'
  9186. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9187. # instead of lib<name>.a to let people know that these are not
  9188. # typical AIX shared libraries.
  9189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9190. ;;
  9191. aix,no) # traditional AIX only
  9192. dynamic_linker='AIX lib.a(lib.so.V)'
  9193. # We preserve .a as extension for shared libraries through AIX4.2
  9194. # and later when we are not doing run time linking.
  9195. library_names_spec='$libname$release.a $libname.a'
  9196. soname_spec='$libname$release$shared_ext$major'
  9197. ;;
  9198. svr4,*) # full svr4 only
  9199. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9200. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9201. # We do not specify a path in Import Files, so LIBPATH fires.
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *,yes) # both, prefer svr4
  9205. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9206. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9207. # unpreferred sharedlib libNAME.a needs extra handling
  9208. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9209. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9210. # We do not specify a path in Import Files, so LIBPATH fires.
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *,no) # both, prefer aix
  9214. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9215. library_names_spec='$libname$release.a $libname.a'
  9216. soname_spec='$libname$release$shared_ext$major'
  9217. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9218. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9219. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9220. ;;
  9221. esac
  9222. shlibpath_var=LIBPATH
  9223. fi
  9224. ;;
  9225. amigaos*)
  9226. case $host_cpu in
  9227. powerpc)
  9228. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9229. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9231. ;;
  9232. m68k)
  9233. library_names_spec='$libname.ixlibrary $libname.a'
  9234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9235. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9236. ;;
  9237. esac
  9238. ;;
  9239. beos*)
  9240. library_names_spec='$libname$shared_ext'
  9241. dynamic_linker="$host_os ld.so"
  9242. shlibpath_var=LIBRARY_PATH
  9243. ;;
  9244. bsdi[45]*)
  9245. version_type=linux # correct to gnu/linux during the next big refactor
  9246. need_version=no
  9247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9248. soname_spec='$libname$release$shared_ext$major'
  9249. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9252. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9253. # the default ld.so.conf also contains /usr/contrib/lib and
  9254. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9255. # libtool to hard-code these into programs
  9256. ;;
  9257. cygwin* | mingw* | pw32* | cegcc*)
  9258. version_type=windows
  9259. shrext_cmds=.dll
  9260. need_version=no
  9261. need_lib_prefix=no
  9262. case $GCC,$cc_basename in
  9263. yes,*)
  9264. # gcc
  9265. library_names_spec='$libname.dll.a'
  9266. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9267. postinstall_cmds='base_file=`basename \$file`~
  9268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9269. dldir=$destdir/`dirname \$dlpath`~
  9270. test -d \$dldir || mkdir -p \$dldir~
  9271. $install_prog $dir/$dlname \$dldir/$dlname~
  9272. chmod a+x \$dldir/$dlname~
  9273. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9274. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9275. fi'
  9276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9277. dlpath=$dir/\$dldll~
  9278. $RM \$dlpath'
  9279. shlibpath_overrides_runpath=yes
  9280. case $host_os in
  9281. cygwin*)
  9282. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9283. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9284. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9285. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9286. ;;
  9287. mingw* | cegcc*)
  9288. # MinGW DLLs use traditional 'lib' prefix
  9289. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9290. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9291. ;;
  9292. pw32*)
  9293. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9294. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9295. ;;
  9296. esac
  9297. dynamic_linker='Win32 ld.exe'
  9298. ;;
  9299. *,cl*)
  9300. # Native MSVC
  9301. libname_spec='$name'
  9302. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. library_names_spec='$libname.dll.lib'
  9304. case $build_os in
  9305. mingw*)
  9306. sys_lib_search_path_spec=
  9307. lt_save_ifs=$IFS
  9308. IFS=';'
  9309. for lt_path in $LIB
  9310. do
  9311. IFS=$lt_save_ifs
  9312. # Let DOS variable expansion print the short 8.3 style file name.
  9313. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9314. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9315. done
  9316. IFS=$lt_save_ifs
  9317. # Convert to MSYS style.
  9318. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9319. ;;
  9320. cygwin*)
  9321. # Convert to unix form, then to dos form, then back to unix form
  9322. # but this time dos style (no spaces!) so that the unix form looks
  9323. # like /cygdrive/c/PROGRA~1:/cygdr...
  9324. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9325. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9327. ;;
  9328. *)
  9329. sys_lib_search_path_spec=$LIB
  9330. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9331. # It is most probably a Windows format PATH.
  9332. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9333. else
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. fi
  9336. # FIXME: find the short name or the path components, as spaces are
  9337. # common. (e.g. "Program Files" -> "PROGRA~1")
  9338. ;;
  9339. esac
  9340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9341. postinstall_cmds='base_file=`basename \$file`~
  9342. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9343. dldir=$destdir/`dirname \$dlpath`~
  9344. test -d \$dldir || mkdir -p \$dldir~
  9345. $install_prog $dir/$dlname \$dldir/$dlname'
  9346. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9347. dlpath=$dir/\$dldll~
  9348. $RM \$dlpath'
  9349. shlibpath_overrides_runpath=yes
  9350. dynamic_linker='Win32 link.exe'
  9351. ;;
  9352. *)
  9353. # Assume MSVC wrapper
  9354. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9355. dynamic_linker='Win32 ld.exe'
  9356. ;;
  9357. esac
  9358. # FIXME: first we should search . and the directory the executable is in
  9359. shlibpath_var=PATH
  9360. ;;
  9361. darwin* | rhapsody*)
  9362. dynamic_linker="$host_os dyld"
  9363. version_type=darwin
  9364. need_lib_prefix=no
  9365. need_version=no
  9366. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9367. soname_spec='$libname$release$major$shared_ext'
  9368. shlibpath_overrides_runpath=yes
  9369. shlibpath_var=DYLD_LIBRARY_PATH
  9370. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9371. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9372. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9373. ;;
  9374. dgux*)
  9375. version_type=linux # correct to gnu/linux during the next big refactor
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9379. soname_spec='$libname$release$shared_ext$major'
  9380. shlibpath_var=LD_LIBRARY_PATH
  9381. ;;
  9382. freebsd* | dragonfly* | midnightbsd*)
  9383. # DragonFly does not have aout. When/if they implement a new
  9384. # versioning mechanism, adjust this.
  9385. if test -x /usr/bin/objformat; then
  9386. objformat=`/usr/bin/objformat`
  9387. else
  9388. case $host_os in
  9389. freebsd[23].*) objformat=aout ;;
  9390. *) objformat=elf ;;
  9391. esac
  9392. fi
  9393. version_type=freebsd-$objformat
  9394. case $version_type in
  9395. freebsd-elf*)
  9396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9397. soname_spec='$libname$release$shared_ext$major'
  9398. need_version=no
  9399. need_lib_prefix=no
  9400. ;;
  9401. freebsd-*)
  9402. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9403. need_version=yes
  9404. ;;
  9405. esac
  9406. shlibpath_var=LD_LIBRARY_PATH
  9407. case $host_os in
  9408. freebsd2.*)
  9409. shlibpath_overrides_runpath=yes
  9410. ;;
  9411. freebsd3.[01]* | freebsdelf3.[01]*)
  9412. shlibpath_overrides_runpath=yes
  9413. hardcode_into_libs=yes
  9414. ;;
  9415. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9416. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9417. shlibpath_overrides_runpath=no
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. *) # from 4.6 on, and DragonFly
  9421. shlibpath_overrides_runpath=yes
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. esac
  9425. ;;
  9426. haiku*)
  9427. version_type=linux # correct to gnu/linux during the next big refactor
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. dynamic_linker="$host_os runtime_loader"
  9431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9432. soname_spec='$libname$release$shared_ext$major'
  9433. shlibpath_var=LIBRARY_PATH
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. hpux9* | hpux10* | hpux11*)
  9439. # Give a soname corresponding to the major version so that dld.sl refuses to
  9440. # link against other versions.
  9441. version_type=sunos
  9442. need_lib_prefix=no
  9443. need_version=no
  9444. case $host_cpu in
  9445. ia64*)
  9446. shrext_cmds='.so'
  9447. hardcode_into_libs=yes
  9448. dynamic_linker="$host_os dld.so"
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9451. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9452. soname_spec='$libname$release$shared_ext$major'
  9453. if test 32 = "$HPUX_IA64_MODE"; then
  9454. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9455. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9456. else
  9457. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9458. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9459. fi
  9460. ;;
  9461. hppa*64*)
  9462. shrext_cmds='.sl'
  9463. hardcode_into_libs=yes
  9464. dynamic_linker="$host_os dld.sl"
  9465. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9466. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9468. soname_spec='$libname$release$shared_ext$major'
  9469. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9470. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9471. ;;
  9472. *)
  9473. shrext_cmds='.sl'
  9474. dynamic_linker="$host_os dld.sl"
  9475. shlibpath_var=SHLIB_PATH
  9476. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9478. soname_spec='$libname$release$shared_ext$major'
  9479. ;;
  9480. esac
  9481. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9482. postinstall_cmds='chmod 555 $lib'
  9483. # or fails outright, so override atomically:
  9484. install_override_mode=555
  9485. ;;
  9486. interix[3-9]*)
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9491. soname_spec='$libname$release$shared_ext$major'
  9492. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9493. shlibpath_var=LD_LIBRARY_PATH
  9494. shlibpath_overrides_runpath=no
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. irix5* | irix6* | nonstopux*)
  9498. case $host_os in
  9499. nonstopux*) version_type=nonstopux ;;
  9500. *)
  9501. if test yes = "$lt_cv_prog_gnu_ld"; then
  9502. version_type=linux # correct to gnu/linux during the next big refactor
  9503. else
  9504. version_type=irix
  9505. fi ;;
  9506. esac
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. soname_spec='$libname$release$shared_ext$major'
  9510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9511. case $host_os in
  9512. irix5* | nonstopux*)
  9513. libsuff= shlibsuff=
  9514. ;;
  9515. *)
  9516. case $LD in # libtool.m4 will add one of these switches to LD
  9517. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9518. libsuff= shlibsuff= libmagic=32-bit;;
  9519. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9520. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9521. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9522. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9523. *) libsuff= shlibsuff= libmagic=never-match;;
  9524. esac
  9525. ;;
  9526. esac
  9527. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9528. shlibpath_overrides_runpath=no
  9529. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9530. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9531. hardcode_into_libs=yes
  9532. ;;
  9533. # No shared lib support for Linux oldld, aout, or coff.
  9534. linux*oldld* | linux*aout* | linux*coff*)
  9535. dynamic_linker=no
  9536. ;;
  9537. linux*android*)
  9538. version_type=none # Android doesn't support versioned libraries.
  9539. need_lib_prefix=no
  9540. need_version=no
  9541. library_names_spec='$libname$release$shared_ext'
  9542. soname_spec='$libname$release$shared_ext'
  9543. finish_cmds=
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=yes
  9546. # This implies no fast_install, which is unacceptable.
  9547. # Some rework will be needed to allow for fast_install
  9548. # before this can be enabled.
  9549. hardcode_into_libs=yes
  9550. dynamic_linker='Android linker'
  9551. # Don't embed -rpath directories since the linker doesn't support them.
  9552. hardcode_libdir_flag_spec='-L$libdir'
  9553. ;;
  9554. # This must be glibc/ELF.
  9555. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9556. version_type=linux # correct to gnu/linux during the next big refactor
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9560. soname_spec='$libname$release$shared_ext$major'
  9561. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. shlibpath_overrides_runpath=no
  9564. # Some binutils ld are patched to set DT_RUNPATH
  9565. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. lt_cv_shlibpath_overrides_runpath=no
  9569. save_LDFLAGS=$LDFLAGS
  9570. save_libdir=$libdir
  9571. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9572. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9574. /* end confdefs.h. */
  9575. int
  9576. main ()
  9577. {
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9584. lt_cv_shlibpath_overrides_runpath=yes
  9585. fi
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LDFLAGS=$save_LDFLAGS
  9590. libdir=$save_libdir
  9591. fi
  9592. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9593. # This implies no fast_install, which is unacceptable.
  9594. # Some rework will be needed to allow for fast_install
  9595. # before this can be enabled.
  9596. hardcode_into_libs=yes
  9597. # Add ABI-specific directories to the system library path.
  9598. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9599. # Ideally, we could use ldconfig to report *all* directores which are
  9600. # searched for libraries, however this is still not possible. Aside from not
  9601. # being certain /sbin/ldconfig is available, command
  9602. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9603. # even though it is searched at run-time. Try to do the best guess by
  9604. # appending ld.so.conf contents (and includes) to the search path.
  9605. if test -f /etc/ld.so.conf; then
  9606. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9607. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9608. fi
  9609. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9610. # powerpc, because MkLinux only supported shared libraries with the
  9611. # GNU dynamic linker. Since this was broken with cross compilers,
  9612. # most powerpc-linux boxes support dynamic linking these days and
  9613. # people can always --disable-shared, the test was removed, and we
  9614. # assume the GNU/Linux dynamic linker is in use.
  9615. dynamic_linker='GNU/Linux ld.so'
  9616. ;;
  9617. netbsd*)
  9618. version_type=sunos
  9619. need_lib_prefix=no
  9620. need_version=no
  9621. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9623. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9624. dynamic_linker='NetBSD (a.out) ld.so'
  9625. else
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9627. soname_spec='$libname$release$shared_ext$major'
  9628. dynamic_linker='NetBSD ld.elf_so'
  9629. fi
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. shlibpath_overrides_runpath=yes
  9632. hardcode_into_libs=yes
  9633. ;;
  9634. newsos6)
  9635. version_type=linux # correct to gnu/linux during the next big refactor
  9636. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes
  9639. ;;
  9640. *nto* | *qnx*)
  9641. version_type=qnx
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. soname_spec='$libname$release$shared_ext$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=no
  9648. hardcode_into_libs=yes
  9649. dynamic_linker='ldqnx.so'
  9650. ;;
  9651. openbsd* | bitrig*)
  9652. version_type=sunos
  9653. sys_lib_dlsearch_path_spec=/usr/lib
  9654. need_lib_prefix=no
  9655. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9656. need_version=no
  9657. else
  9658. need_version=yes
  9659. fi
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=yes
  9664. ;;
  9665. os2*)
  9666. libname_spec='$name'
  9667. shrext_cmds=.dll
  9668. need_lib_prefix=no
  9669. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9670. # SDL customization: removed versioning support.
  9671. # version_type=windows
  9672. # need_version=no
  9673. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9674. # v=$($ECHO $release$versuffix | tr -d .-);
  9675. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9676. # $ECHO $n$v`$shared_ext'
  9677. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9678. library_names_spec='${libname}_dll.$libext'
  9679. dynamic_linker='OS/2 ld.exe'
  9680. shlibpath_var=BEGINLIBPATH
  9681. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9682. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9683. postinstall_cmds='base_file=`basename \$file`~
  9684. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9685. dldir=$destdir/`dirname \$dlpath`~
  9686. test -d \$dldir || mkdir -p \$dldir~
  9687. $install_prog $dir/$dlname \$dldir/$dlname~
  9688. chmod a+x \$dldir/$dlname~
  9689. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9690. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9691. fi'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. ;;
  9696. osf3* | osf4* | osf5*)
  9697. version_type=osf
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. soname_spec='$libname$release$shared_ext$major'
  9701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9704. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9705. ;;
  9706. rdos*)
  9707. dynamic_linker=no
  9708. ;;
  9709. solaris*)
  9710. version_type=linux # correct to gnu/linux during the next big refactor
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9714. soname_spec='$libname$release$shared_ext$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=yes
  9717. hardcode_into_libs=yes
  9718. # ldd complains unless libraries are executable
  9719. postinstall_cmds='chmod +x $lib'
  9720. ;;
  9721. sunos4*)
  9722. version_type=sunos
  9723. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9724. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. shlibpath_overrides_runpath=yes
  9727. if test yes = "$with_gnu_ld"; then
  9728. need_lib_prefix=no
  9729. fi
  9730. need_version=yes
  9731. ;;
  9732. sysv4 | sysv4.3*)
  9733. version_type=linux # correct to gnu/linux during the next big refactor
  9734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9735. soname_spec='$libname$release$shared_ext$major'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. case $host_vendor in
  9738. sni)
  9739. shlibpath_overrides_runpath=no
  9740. need_lib_prefix=no
  9741. runpath_var=LD_RUN_PATH
  9742. ;;
  9743. siemens)
  9744. need_lib_prefix=no
  9745. ;;
  9746. motorola)
  9747. need_lib_prefix=no
  9748. need_version=no
  9749. shlibpath_overrides_runpath=no
  9750. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9751. ;;
  9752. esac
  9753. ;;
  9754. sysv4*MP*)
  9755. if test -d /usr/nec; then
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9758. soname_spec='$libname$shared_ext.$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. fi
  9761. ;;
  9762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9763. version_type=sco
  9764. need_lib_prefix=no
  9765. need_version=no
  9766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9767. soname_spec='$libname$release$shared_ext$major'
  9768. shlibpath_var=LD_LIBRARY_PATH
  9769. shlibpath_overrides_runpath=yes
  9770. hardcode_into_libs=yes
  9771. if test yes = "$with_gnu_ld"; then
  9772. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9773. else
  9774. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9775. case $host_os in
  9776. sco3.2v5*)
  9777. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9778. ;;
  9779. esac
  9780. fi
  9781. sys_lib_dlsearch_path_spec='/usr/lib'
  9782. ;;
  9783. tpf*)
  9784. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. shlibpath_overrides_runpath=no
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. uts4*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. soname_spec='$libname$release$shared_ext$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. ;;
  9799. *)
  9800. dynamic_linker=no
  9801. ;;
  9802. esac
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9804. $as_echo "$dynamic_linker" >&6; }
  9805. test no = "$dynamic_linker" && can_build_shared=no
  9806. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9807. if test yes = "$GCC"; then
  9808. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9809. fi
  9810. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9811. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9812. fi
  9813. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9814. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9815. fi
  9816. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9817. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9818. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9819. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9820. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9821. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9823. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9824. hardcode_action=
  9825. if test -n "$hardcode_libdir_flag_spec" ||
  9826. test -n "$runpath_var" ||
  9827. test yes = "$hardcode_automatic"; then
  9828. # We can hardcode non-existent directories.
  9829. if test no != "$hardcode_direct" &&
  9830. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9831. # have to relink, otherwise we might link with an installed library
  9832. # when we should be linking with a yet-to-be-installed one
  9833. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9834. test no != "$hardcode_minus_L"; then
  9835. # Linking always hardcodes the temporary library directory.
  9836. hardcode_action=relink
  9837. else
  9838. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9839. hardcode_action=immediate
  9840. fi
  9841. else
  9842. # We cannot hardcode anything, or else we can only hardcode existing
  9843. # directories.
  9844. hardcode_action=unsupported
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9847. $as_echo "$hardcode_action" >&6; }
  9848. if test relink = "$hardcode_action" ||
  9849. test yes = "$inherit_rpath"; then
  9850. # Fast installation is not supported
  9851. enable_fast_install=no
  9852. elif test yes = "$shlibpath_overrides_runpath" ||
  9853. test no = "$enable_shared"; then
  9854. # Fast installation is not necessary
  9855. enable_fast_install=needless
  9856. fi
  9857. if test yes != "$enable_dlopen"; then
  9858. enable_dlopen=unknown
  9859. enable_dlopen_self=unknown
  9860. enable_dlopen_self_static=unknown
  9861. else
  9862. lt_cv_dlopen=no
  9863. lt_cv_dlopen_libs=
  9864. case $host_os in
  9865. beos*)
  9866. lt_cv_dlopen=load_add_on
  9867. lt_cv_dlopen_libs=
  9868. lt_cv_dlopen_self=yes
  9869. ;;
  9870. mingw* | pw32* | cegcc*)
  9871. lt_cv_dlopen=LoadLibrary
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. cygwin*)
  9875. lt_cv_dlopen=dlopen
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. darwin*)
  9879. # if libdl is installed we need to link against it
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9881. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9882. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. ac_check_lib_save_LIBS=$LIBS
  9886. LIBS="-ldl $LIBS"
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. /* Override any GCC internal prototype to avoid an error.
  9890. Use char because int might match the return type of a GCC
  9891. builtin and then its argument prototype would still apply. */
  9892. #ifdef __cplusplus
  9893. extern "C"
  9894. #endif
  9895. char dlopen ();
  9896. int
  9897. main ()
  9898. {
  9899. return dlopen ();
  9900. ;
  9901. return 0;
  9902. }
  9903. _ACEOF
  9904. if ac_fn_c_try_link "$LINENO"; then :
  9905. ac_cv_lib_dl_dlopen=yes
  9906. else
  9907. ac_cv_lib_dl_dlopen=no
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. LIBS=$ac_check_lib_save_LIBS
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9914. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9915. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9916. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9917. else
  9918. lt_cv_dlopen=dyld
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. fi
  9922. ;;
  9923. tpf*)
  9924. # Don't try to run any link tests for TPF. We know it's impossible
  9925. # because TPF is a cross-compiler, and we know how we open DSOs.
  9926. lt_cv_dlopen=dlopen
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=no
  9929. ;;
  9930. *)
  9931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9932. if test "x$ac_cv_func_shl_load" = xyes; then :
  9933. lt_cv_dlopen=shl_load
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9937. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. ac_check_lib_save_LIBS=$LIBS
  9941. LIBS="-ldld $LIBS"
  9942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9943. /* end confdefs.h. */
  9944. /* Override any GCC internal prototype to avoid an error.
  9945. Use char because int might match the return type of a GCC
  9946. builtin and then its argument prototype would still apply. */
  9947. #ifdef __cplusplus
  9948. extern "C"
  9949. #endif
  9950. char shl_load ();
  9951. int
  9952. main ()
  9953. {
  9954. return shl_load ();
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. if ac_fn_c_try_link "$LINENO"; then :
  9960. ac_cv_lib_dld_shl_load=yes
  9961. else
  9962. ac_cv_lib_dld_shl_load=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext \
  9965. conftest$ac_exeext conftest.$ac_ext
  9966. LIBS=$ac_check_lib_save_LIBS
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9970. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9971. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9972. else
  9973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9974. if test "x$ac_cv_func_dlopen" = xyes; then :
  9975. lt_cv_dlopen=dlopen
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9979. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. ac_check_lib_save_LIBS=$LIBS
  9983. LIBS="-ldl $LIBS"
  9984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9985. /* end confdefs.h. */
  9986. /* Override any GCC internal prototype to avoid an error.
  9987. Use char because int might match the return type of a GCC
  9988. builtin and then its argument prototype would still apply. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. #endif
  9992. char dlopen ();
  9993. int
  9994. main ()
  9995. {
  9996. return dlopen ();
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. if ac_fn_c_try_link "$LINENO"; then :
  10002. ac_cv_lib_dl_dlopen=yes
  10003. else
  10004. ac_cv_lib_dl_dlopen=no
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. LIBS=$ac_check_lib_save_LIBS
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10012. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10013. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10014. else
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10017. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. ac_check_lib_save_LIBS=$LIBS
  10021. LIBS="-lsvld $LIBS"
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. /* Override any GCC internal prototype to avoid an error.
  10025. Use char because int might match the return type of a GCC
  10026. builtin and then its argument prototype would still apply. */
  10027. #ifdef __cplusplus
  10028. extern "C"
  10029. #endif
  10030. char dlopen ();
  10031. int
  10032. main ()
  10033. {
  10034. return dlopen ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. ac_cv_lib_svld_dlopen=yes
  10041. else
  10042. ac_cv_lib_svld_dlopen=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10050. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10051. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10055. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10056. $as_echo_n "(cached) " >&6
  10057. else
  10058. ac_check_lib_save_LIBS=$LIBS
  10059. LIBS="-ldld $LIBS"
  10060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10061. /* end confdefs.h. */
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char dld_link ();
  10069. int
  10070. main ()
  10071. {
  10072. return dld_link ();
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. if ac_fn_c_try_link "$LINENO"; then :
  10078. ac_cv_lib_dld_dld_link=yes
  10079. else
  10080. ac_cv_lib_dld_dld_link=no
  10081. fi
  10082. rm -f core conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. LIBS=$ac_check_lib_save_LIBS
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10088. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10089. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10090. fi
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. ;;
  10097. esac
  10098. if test no = "$lt_cv_dlopen"; then
  10099. enable_dlopen=no
  10100. else
  10101. enable_dlopen=yes
  10102. fi
  10103. case $lt_cv_dlopen in
  10104. dlopen)
  10105. save_CPPFLAGS=$CPPFLAGS
  10106. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10107. save_LDFLAGS=$LDFLAGS
  10108. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10109. save_LIBS=$LIBS
  10110. LIBS="$lt_cv_dlopen_libs $LIBS"
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10113. if ${lt_cv_dlopen_self+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test yes = "$cross_compiling"; then :
  10117. lt_cv_dlopen_self=cross
  10118. else
  10119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10120. lt_status=$lt_dlunknown
  10121. cat > conftest.$ac_ext <<_LT_EOF
  10122. #line $LINENO "configure"
  10123. #include "confdefs.h"
  10124. #if HAVE_DLFCN_H
  10125. #include <dlfcn.h>
  10126. #endif
  10127. #include <stdio.h>
  10128. #ifdef RTLD_GLOBAL
  10129. # define LT_DLGLOBAL RTLD_GLOBAL
  10130. #else
  10131. # ifdef DL_GLOBAL
  10132. # define LT_DLGLOBAL DL_GLOBAL
  10133. # else
  10134. # define LT_DLGLOBAL 0
  10135. # endif
  10136. #endif
  10137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10138. find out it does not work in some platform. */
  10139. #ifndef LT_DLLAZY_OR_NOW
  10140. # ifdef RTLD_LAZY
  10141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10142. # else
  10143. # ifdef DL_LAZY
  10144. # define LT_DLLAZY_OR_NOW DL_LAZY
  10145. # else
  10146. # ifdef RTLD_NOW
  10147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10148. # else
  10149. # ifdef DL_NOW
  10150. # define LT_DLLAZY_OR_NOW DL_NOW
  10151. # else
  10152. # define LT_DLLAZY_OR_NOW 0
  10153. # endif
  10154. # endif
  10155. # endif
  10156. # endif
  10157. #endif
  10158. /* When -fvisibility=hidden is used, assume the code has been annotated
  10159. correspondingly for the symbols needed. */
  10160. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10161. int fnord () __attribute__((visibility("default")));
  10162. #endif
  10163. int fnord () { return 42; }
  10164. int main ()
  10165. {
  10166. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10167. int status = $lt_dlunknown;
  10168. if (self)
  10169. {
  10170. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10171. else
  10172. {
  10173. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10174. else puts (dlerror ());
  10175. }
  10176. /* dlclose (self); */
  10177. }
  10178. else
  10179. puts (dlerror ());
  10180. return status;
  10181. }
  10182. _LT_EOF
  10183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10184. (eval $ac_link) 2>&5
  10185. ac_status=$?
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10187. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10188. (./conftest; exit; ) >&5 2>/dev/null
  10189. lt_status=$?
  10190. case x$lt_status in
  10191. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10192. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10194. esac
  10195. else :
  10196. # compilation failed
  10197. lt_cv_dlopen_self=no
  10198. fi
  10199. fi
  10200. rm -fr conftest*
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10203. $as_echo "$lt_cv_dlopen_self" >&6; }
  10204. if test yes = "$lt_cv_dlopen_self"; then
  10205. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10207. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10208. if ${lt_cv_dlopen_self_static+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test yes = "$cross_compiling"; then :
  10212. lt_cv_dlopen_self_static=cross
  10213. else
  10214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10215. lt_status=$lt_dlunknown
  10216. cat > conftest.$ac_ext <<_LT_EOF
  10217. #line $LINENO "configure"
  10218. #include "confdefs.h"
  10219. #if HAVE_DLFCN_H
  10220. #include <dlfcn.h>
  10221. #endif
  10222. #include <stdio.h>
  10223. #ifdef RTLD_GLOBAL
  10224. # define LT_DLGLOBAL RTLD_GLOBAL
  10225. #else
  10226. # ifdef DL_GLOBAL
  10227. # define LT_DLGLOBAL DL_GLOBAL
  10228. # else
  10229. # define LT_DLGLOBAL 0
  10230. # endif
  10231. #endif
  10232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10233. find out it does not work in some platform. */
  10234. #ifndef LT_DLLAZY_OR_NOW
  10235. # ifdef RTLD_LAZY
  10236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10237. # else
  10238. # ifdef DL_LAZY
  10239. # define LT_DLLAZY_OR_NOW DL_LAZY
  10240. # else
  10241. # ifdef RTLD_NOW
  10242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10243. # else
  10244. # ifdef DL_NOW
  10245. # define LT_DLLAZY_OR_NOW DL_NOW
  10246. # else
  10247. # define LT_DLLAZY_OR_NOW 0
  10248. # endif
  10249. # endif
  10250. # endif
  10251. # endif
  10252. #endif
  10253. /* When -fvisibility=hidden is used, assume the code has been annotated
  10254. correspondingly for the symbols needed. */
  10255. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10256. int fnord () __attribute__((visibility("default")));
  10257. #endif
  10258. int fnord () { return 42; }
  10259. int main ()
  10260. {
  10261. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10262. int status = $lt_dlunknown;
  10263. if (self)
  10264. {
  10265. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10266. else
  10267. {
  10268. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10269. else puts (dlerror ());
  10270. }
  10271. /* dlclose (self); */
  10272. }
  10273. else
  10274. puts (dlerror ());
  10275. return status;
  10276. }
  10277. _LT_EOF
  10278. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10279. (eval $ac_link) 2>&5
  10280. ac_status=$?
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10282. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10283. (./conftest; exit; ) >&5 2>/dev/null
  10284. lt_status=$?
  10285. case x$lt_status in
  10286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10289. esac
  10290. else :
  10291. # compilation failed
  10292. lt_cv_dlopen_self_static=no
  10293. fi
  10294. fi
  10295. rm -fr conftest*
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10298. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10299. fi
  10300. CPPFLAGS=$save_CPPFLAGS
  10301. LDFLAGS=$save_LDFLAGS
  10302. LIBS=$save_LIBS
  10303. ;;
  10304. esac
  10305. case $lt_cv_dlopen_self in
  10306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10307. *) enable_dlopen_self=unknown ;;
  10308. esac
  10309. case $lt_cv_dlopen_self_static in
  10310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10311. *) enable_dlopen_self_static=unknown ;;
  10312. esac
  10313. fi
  10314. striplib=
  10315. old_striplib=
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10317. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10318. if test -z "$STRIP"; then
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10320. $as_echo "no" >&6; }
  10321. else
  10322. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10323. old_striplib="$STRIP --strip-debug"
  10324. striplib="$STRIP --strip-unneeded"
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10326. $as_echo "yes" >&6; }
  10327. else
  10328. case $host_os in
  10329. darwin*)
  10330. # FIXME - insert some real tests, host_os isn't really good enough
  10331. striplib="$STRIP -x"
  10332. old_striplib="$STRIP -S"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. ;;
  10336. freebsd*)
  10337. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10338. old_striplib="$STRIP --strip-debug"
  10339. striplib="$STRIP --strip-unneeded"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. ;;
  10347. *)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. ;;
  10351. esac
  10352. fi
  10353. fi
  10354. # Report what library types will actually be built
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10356. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10358. $as_echo "$can_build_shared" >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10360. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10361. test no = "$can_build_shared" && enable_shared=no
  10362. # On AIX, shared libraries and static libraries use the same namespace, and
  10363. # are all built from PIC.
  10364. case $host_os in
  10365. aix3*)
  10366. test yes = "$enable_shared" && enable_static=no
  10367. if test -n "$RANLIB"; then
  10368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10369. postinstall_cmds='$RANLIB $lib'
  10370. fi
  10371. ;;
  10372. aix[4-9]*)
  10373. if test ia64 != "$host_cpu"; then
  10374. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10375. yes,aix,yes) ;; # shared object as lib.so file only
  10376. yes,svr4,*) ;; # shared object as lib.so archive member only
  10377. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10378. esac
  10379. fi
  10380. ;;
  10381. esac
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10383. $as_echo "$enable_shared" >&6; }
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10385. $as_echo_n "checking whether to build static libraries... " >&6; }
  10386. # Make sure either enable_shared or enable_static is yes.
  10387. test yes = "$enable_shared" || enable_static=yes
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10389. $as_echo "$enable_static" >&6; }
  10390. fi
  10391. ac_ext=c
  10392. ac_cpp='$CPP $CPPFLAGS'
  10393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10396. CC=$lt_save_CC
  10397. ac_config_commands="$ac_config_commands libtool"
  10398. # Only expand once:
  10399. if test -n "$ac_tool_prefix"; then
  10400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10403. $as_echo_n "checking for $ac_word... " >&6; }
  10404. if ${ac_cv_prog_RC+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test -n "$RC"; then
  10408. ac_cv_prog_RC="$RC" # Let the user override the test.
  10409. else
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. fi
  10425. fi
  10426. RC=$ac_cv_prog_RC
  10427. if test -n "$RC"; then
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10429. $as_echo "$RC" >&6; }
  10430. else
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10432. $as_echo "no" >&6; }
  10433. fi
  10434. fi
  10435. if test -z "$ac_cv_prog_RC"; then
  10436. ac_ct_RC=$RC
  10437. # Extract the first word of "windres", so it can be a program name with args.
  10438. set dummy windres; ac_word=$2
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10440. $as_echo_n "checking for $ac_word... " >&6; }
  10441. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. if test -n "$ac_ct_RC"; then
  10445. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10446. else
  10447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10448. for as_dir in $PATH
  10449. do
  10450. IFS=$as_save_IFS
  10451. test -z "$as_dir" && as_dir=.
  10452. for ac_exec_ext in '' $ac_executable_extensions; do
  10453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10454. ac_cv_prog_ac_ct_RC="windres"
  10455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10456. break 2
  10457. fi
  10458. done
  10459. done
  10460. IFS=$as_save_IFS
  10461. fi
  10462. fi
  10463. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10464. if test -n "$ac_ct_RC"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10466. $as_echo "$ac_ct_RC" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. if test "x$ac_ct_RC" = x; then
  10472. RC=""
  10473. else
  10474. case $cross_compiling:$ac_tool_warned in
  10475. yes:)
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10478. ac_tool_warned=yes ;;
  10479. esac
  10480. RC=$ac_ct_RC
  10481. fi
  10482. else
  10483. RC="$ac_cv_prog_RC"
  10484. fi
  10485. # Source file extension for RC test sources.
  10486. ac_ext=rc
  10487. # Object file extension for compiled RC test sources.
  10488. objext=o
  10489. objext_RC=$objext
  10490. # Code to be used in simple compile tests
  10491. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10492. # Code to be used in simple link tests
  10493. lt_simple_link_test_code=$lt_simple_compile_test_code
  10494. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10495. # If no C compiler was specified, use CC.
  10496. LTCC=${LTCC-"$CC"}
  10497. # If no C compiler flags were specified, use CFLAGS.
  10498. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10499. # Allow CC to be a program name with arguments.
  10500. compiler=$CC
  10501. # save warnings/boilerplate of simple test code
  10502. ac_outfile=conftest.$ac_objext
  10503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10505. _lt_compiler_boilerplate=`cat conftest.err`
  10506. $RM conftest*
  10507. ac_outfile=conftest.$ac_objext
  10508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10510. _lt_linker_boilerplate=`cat conftest.err`
  10511. $RM -r conftest*
  10512. # Allow CC to be a program name with arguments.
  10513. lt_save_CC=$CC
  10514. lt_save_CFLAGS=$CFLAGS
  10515. lt_save_GCC=$GCC
  10516. GCC=
  10517. CC=${RC-"windres"}
  10518. CFLAGS=
  10519. compiler=$CC
  10520. compiler_RC=$CC
  10521. func_cc_basename $compiler
  10522. cc_basename=$func_cc_basename_result
  10523. lt_cv_prog_compiler_c_o_RC=yes
  10524. if test -n "$compiler"; then
  10525. :
  10526. fi
  10527. GCC=$lt_save_GCC
  10528. ac_ext=c
  10529. ac_cpp='$CPP $CPPFLAGS'
  10530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10533. CC=$lt_save_CC
  10534. CFLAGS=$lt_save_CFLAGS
  10535. # For historical reasons, the library name redundantly includes the major
  10536. # version twice: libSDL2-2.0.so.0.
  10537. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10538. LT_RELEASE=2.0
  10539. # Increment this if there is an incompatible change - but if that happens,
  10540. # we should rename the library from SDL2 to SDL3, at which point this would
  10541. # reset to 0 anyway.
  10542. LT_MAJOR=0
  10543. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10544. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10545. LT_REVISION=$SDL_INTERFACE_AGE
  10546. ac_ext=c
  10547. ac_cpp='$CPP $CPPFLAGS'
  10548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10551. if test -n "$ac_tool_prefix"; then
  10552. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10553. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10555. $as_echo_n "checking for $ac_word... " >&6; }
  10556. if ${ac_cv_prog_CC+:} false; then :
  10557. $as_echo_n "(cached) " >&6
  10558. else
  10559. if test -n "$CC"; then
  10560. ac_cv_prog_CC="$CC" # Let the user override the test.
  10561. else
  10562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10563. for as_dir in $PATH
  10564. do
  10565. IFS=$as_save_IFS
  10566. test -z "$as_dir" && as_dir=.
  10567. for ac_exec_ext in '' $ac_executable_extensions; do
  10568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10569. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10571. break 2
  10572. fi
  10573. done
  10574. done
  10575. IFS=$as_save_IFS
  10576. fi
  10577. fi
  10578. CC=$ac_cv_prog_CC
  10579. if test -n "$CC"; then
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10581. $as_echo "$CC" >&6; }
  10582. else
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10584. $as_echo "no" >&6; }
  10585. fi
  10586. fi
  10587. if test -z "$ac_cv_prog_CC"; then
  10588. ac_ct_CC=$CC
  10589. # Extract the first word of "gcc", so it can be a program name with args.
  10590. set dummy gcc; ac_word=$2
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10592. $as_echo_n "checking for $ac_word... " >&6; }
  10593. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. if test -n "$ac_ct_CC"; then
  10597. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10598. else
  10599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10600. for as_dir in $PATH
  10601. do
  10602. IFS=$as_save_IFS
  10603. test -z "$as_dir" && as_dir=.
  10604. for ac_exec_ext in '' $ac_executable_extensions; do
  10605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10606. ac_cv_prog_ac_ct_CC="gcc"
  10607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10608. break 2
  10609. fi
  10610. done
  10611. done
  10612. IFS=$as_save_IFS
  10613. fi
  10614. fi
  10615. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10616. if test -n "$ac_ct_CC"; then
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10618. $as_echo "$ac_ct_CC" >&6; }
  10619. else
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10621. $as_echo "no" >&6; }
  10622. fi
  10623. if test "x$ac_ct_CC" = x; then
  10624. CC=""
  10625. else
  10626. case $cross_compiling:$ac_tool_warned in
  10627. yes:)
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10630. ac_tool_warned=yes ;;
  10631. esac
  10632. CC=$ac_ct_CC
  10633. fi
  10634. else
  10635. CC="$ac_cv_prog_CC"
  10636. fi
  10637. if test -z "$CC"; then
  10638. if test -n "$ac_tool_prefix"; then
  10639. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10640. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10642. $as_echo_n "checking for $ac_word... " >&6; }
  10643. if ${ac_cv_prog_CC+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. if test -n "$CC"; then
  10647. ac_cv_prog_CC="$CC" # Let the user override the test.
  10648. else
  10649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10650. for as_dir in $PATH
  10651. do
  10652. IFS=$as_save_IFS
  10653. test -z "$as_dir" && as_dir=.
  10654. for ac_exec_ext in '' $ac_executable_extensions; do
  10655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10656. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10658. break 2
  10659. fi
  10660. done
  10661. done
  10662. IFS=$as_save_IFS
  10663. fi
  10664. fi
  10665. CC=$ac_cv_prog_CC
  10666. if test -n "$CC"; then
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10668. $as_echo "$CC" >&6; }
  10669. else
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10671. $as_echo "no" >&6; }
  10672. fi
  10673. fi
  10674. fi
  10675. if test -z "$CC"; then
  10676. # Extract the first word of "cc", so it can be a program name with args.
  10677. set dummy cc; ac_word=$2
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10679. $as_echo_n "checking for $ac_word... " >&6; }
  10680. if ${ac_cv_prog_CC+:} false; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. if test -n "$CC"; then
  10684. ac_cv_prog_CC="$CC" # Let the user override the test.
  10685. else
  10686. ac_prog_rejected=no
  10687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10688. for as_dir in $PATH
  10689. do
  10690. IFS=$as_save_IFS
  10691. test -z "$as_dir" && as_dir=.
  10692. for ac_exec_ext in '' $ac_executable_extensions; do
  10693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10694. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10695. ac_prog_rejected=yes
  10696. continue
  10697. fi
  10698. ac_cv_prog_CC="cc"
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10700. break 2
  10701. fi
  10702. done
  10703. done
  10704. IFS=$as_save_IFS
  10705. if test $ac_prog_rejected = yes; then
  10706. # We found a bogon in the path, so make sure we never use it.
  10707. set dummy $ac_cv_prog_CC
  10708. shift
  10709. if test $# != 0; then
  10710. # We chose a different compiler from the bogus one.
  10711. # However, it has the same basename, so the bogon will be chosen
  10712. # first if we set CC to just the basename; use the full file name.
  10713. shift
  10714. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10715. fi
  10716. fi
  10717. fi
  10718. fi
  10719. CC=$ac_cv_prog_CC
  10720. if test -n "$CC"; then
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10722. $as_echo "$CC" >&6; }
  10723. else
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10725. $as_echo "no" >&6; }
  10726. fi
  10727. fi
  10728. if test -z "$CC"; then
  10729. if test -n "$ac_tool_prefix"; then
  10730. for ac_prog in cl.exe
  10731. do
  10732. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10733. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10735. $as_echo_n "checking for $ac_word... " >&6; }
  10736. if ${ac_cv_prog_CC+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. if test -n "$CC"; then
  10740. ac_cv_prog_CC="$CC" # Let the user override the test.
  10741. else
  10742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10743. for as_dir in $PATH
  10744. do
  10745. IFS=$as_save_IFS
  10746. test -z "$as_dir" && as_dir=.
  10747. for ac_exec_ext in '' $ac_executable_extensions; do
  10748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10749. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10751. break 2
  10752. fi
  10753. done
  10754. done
  10755. IFS=$as_save_IFS
  10756. fi
  10757. fi
  10758. CC=$ac_cv_prog_CC
  10759. if test -n "$CC"; then
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10761. $as_echo "$CC" >&6; }
  10762. else
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10764. $as_echo "no" >&6; }
  10765. fi
  10766. test -n "$CC" && break
  10767. done
  10768. fi
  10769. if test -z "$CC"; then
  10770. ac_ct_CC=$CC
  10771. for ac_prog in cl.exe
  10772. do
  10773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10774. set dummy $ac_prog; ac_word=$2
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10776. $as_echo_n "checking for $ac_word... " >&6; }
  10777. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -n "$ac_ct_CC"; then
  10781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10782. else
  10783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10784. for as_dir in $PATH
  10785. do
  10786. IFS=$as_save_IFS
  10787. test -z "$as_dir" && as_dir=.
  10788. for ac_exec_ext in '' $ac_executable_extensions; do
  10789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10790. ac_cv_prog_ac_ct_CC="$ac_prog"
  10791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10792. break 2
  10793. fi
  10794. done
  10795. done
  10796. IFS=$as_save_IFS
  10797. fi
  10798. fi
  10799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10800. if test -n "$ac_ct_CC"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10802. $as_echo "$ac_ct_CC" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. test -n "$ac_ct_CC" && break
  10808. done
  10809. if test "x$ac_ct_CC" = x; then
  10810. CC=""
  10811. else
  10812. case $cross_compiling:$ac_tool_warned in
  10813. yes:)
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10815. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10816. ac_tool_warned=yes ;;
  10817. esac
  10818. CC=$ac_ct_CC
  10819. fi
  10820. fi
  10821. fi
  10822. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10824. as_fn_error $? "no acceptable C compiler found in \$PATH
  10825. See \`config.log' for more details" "$LINENO" 5; }
  10826. # Provide some information about the compiler.
  10827. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10828. set X $ac_compile
  10829. ac_compiler=$2
  10830. for ac_option in --version -v -V -qversion; do
  10831. { { ac_try="$ac_compiler $ac_option >&5"
  10832. case "(($ac_try" in
  10833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10834. *) ac_try_echo=$ac_try;;
  10835. esac
  10836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10837. $as_echo "$ac_try_echo"; } >&5
  10838. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10839. ac_status=$?
  10840. if test -s conftest.err; then
  10841. sed '10a\
  10842. ... rest of stderr output deleted ...
  10843. 10q' conftest.err >conftest.er1
  10844. cat conftest.er1 >&5
  10845. fi
  10846. rm -f conftest.er1 conftest.err
  10847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10848. test $ac_status = 0; }
  10849. done
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10851. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10852. if ${ac_cv_c_compiler_gnu+:} false; then :
  10853. $as_echo_n "(cached) " >&6
  10854. else
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. int
  10858. main ()
  10859. {
  10860. #ifndef __GNUC__
  10861. choke me
  10862. #endif
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_c_try_compile "$LINENO"; then :
  10868. ac_compiler_gnu=yes
  10869. else
  10870. ac_compiler_gnu=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10873. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10874. fi
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10876. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10877. if test $ac_compiler_gnu = yes; then
  10878. GCC=yes
  10879. else
  10880. GCC=
  10881. fi
  10882. ac_test_CFLAGS=${CFLAGS+set}
  10883. ac_save_CFLAGS=$CFLAGS
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10885. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10886. if ${ac_cv_prog_cc_g+:} false; then :
  10887. $as_echo_n "(cached) " >&6
  10888. else
  10889. ac_save_c_werror_flag=$ac_c_werror_flag
  10890. ac_c_werror_flag=yes
  10891. ac_cv_prog_cc_g=no
  10892. CFLAGS="-g"
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. int
  10896. main ()
  10897. {
  10898. ;
  10899. return 0;
  10900. }
  10901. _ACEOF
  10902. if ac_fn_c_try_compile "$LINENO"; then :
  10903. ac_cv_prog_cc_g=yes
  10904. else
  10905. CFLAGS=""
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. int
  10909. main ()
  10910. {
  10911. ;
  10912. return 0;
  10913. }
  10914. _ACEOF
  10915. if ac_fn_c_try_compile "$LINENO"; then :
  10916. else
  10917. ac_c_werror_flag=$ac_save_c_werror_flag
  10918. CFLAGS="-g"
  10919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10920. /* end confdefs.h. */
  10921. int
  10922. main ()
  10923. {
  10924. ;
  10925. return 0;
  10926. }
  10927. _ACEOF
  10928. if ac_fn_c_try_compile "$LINENO"; then :
  10929. ac_cv_prog_cc_g=yes
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. ac_c_werror_flag=$ac_save_c_werror_flag
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10939. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10940. if test "$ac_test_CFLAGS" = set; then
  10941. CFLAGS=$ac_save_CFLAGS
  10942. elif test $ac_cv_prog_cc_g = yes; then
  10943. if test "$GCC" = yes; then
  10944. CFLAGS="-g -O2"
  10945. else
  10946. CFLAGS="-g"
  10947. fi
  10948. else
  10949. if test "$GCC" = yes; then
  10950. CFLAGS="-O2"
  10951. else
  10952. CFLAGS=
  10953. fi
  10954. fi
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10956. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10957. if ${ac_cv_prog_cc_c89+:} false; then :
  10958. $as_echo_n "(cached) " >&6
  10959. else
  10960. ac_cv_prog_cc_c89=no
  10961. ac_save_CC=$CC
  10962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10963. /* end confdefs.h. */
  10964. #include <stdarg.h>
  10965. #include <stdio.h>
  10966. struct stat;
  10967. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10968. struct buf { int x; };
  10969. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10970. static char *e (p, i)
  10971. char **p;
  10972. int i;
  10973. {
  10974. return p[i];
  10975. }
  10976. static char *f (char * (*g) (char **, int), char **p, ...)
  10977. {
  10978. char *s;
  10979. va_list v;
  10980. va_start (v,p);
  10981. s = g (p, va_arg (v,int));
  10982. va_end (v);
  10983. return s;
  10984. }
  10985. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10986. function prototypes and stuff, but not '\xHH' hex character constants.
  10987. These don't provoke an error unfortunately, instead are silently treated
  10988. as 'x'. The following induces an error, until -std is added to get
  10989. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10990. array size at least. It's necessary to write '\x00'==0 to get something
  10991. that's true only with -std. */
  10992. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10993. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10994. inside strings and character constants. */
  10995. #define FOO(x) 'x'
  10996. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10997. int test (int i, double x);
  10998. struct s1 {int (*f) (int a);};
  10999. struct s2 {int (*f) (double a);};
  11000. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11001. int argc;
  11002. char **argv;
  11003. int
  11004. main ()
  11005. {
  11006. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11007. ;
  11008. return 0;
  11009. }
  11010. _ACEOF
  11011. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11012. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11013. do
  11014. CC="$ac_save_CC $ac_arg"
  11015. if ac_fn_c_try_compile "$LINENO"; then :
  11016. ac_cv_prog_cc_c89=$ac_arg
  11017. fi
  11018. rm -f core conftest.err conftest.$ac_objext
  11019. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11020. done
  11021. rm -f conftest.$ac_ext
  11022. CC=$ac_save_CC
  11023. fi
  11024. # AC_CACHE_VAL
  11025. case "x$ac_cv_prog_cc_c89" in
  11026. x)
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11028. $as_echo "none needed" >&6; } ;;
  11029. xno)
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11031. $as_echo "unsupported" >&6; } ;;
  11032. *)
  11033. CC="$CC $ac_cv_prog_cc_c89"
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11035. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11036. esac
  11037. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11038. fi
  11039. ac_ext=c
  11040. ac_cpp='$CPP $CPPFLAGS'
  11041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11044. ac_ext=cpp
  11045. ac_cpp='$CXXCPP $CPPFLAGS'
  11046. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11047. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11048. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11049. if test -z "$CXX"; then
  11050. if test -n "$CCC"; then
  11051. CXX=$CCC
  11052. else
  11053. if test -n "$ac_tool_prefix"; then
  11054. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11055. do
  11056. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11057. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11059. $as_echo_n "checking for $ac_word... " >&6; }
  11060. if ${ac_cv_prog_CXX+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. if test -n "$CXX"; then
  11064. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11065. else
  11066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11067. for as_dir in $PATH
  11068. do
  11069. IFS=$as_save_IFS
  11070. test -z "$as_dir" && as_dir=.
  11071. for ac_exec_ext in '' $ac_executable_extensions; do
  11072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11073. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11075. break 2
  11076. fi
  11077. done
  11078. done
  11079. IFS=$as_save_IFS
  11080. fi
  11081. fi
  11082. CXX=$ac_cv_prog_CXX
  11083. if test -n "$CXX"; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11085. $as_echo "$CXX" >&6; }
  11086. else
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11088. $as_echo "no" >&6; }
  11089. fi
  11090. test -n "$CXX" && break
  11091. done
  11092. fi
  11093. if test -z "$CXX"; then
  11094. ac_ct_CXX=$CXX
  11095. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11096. do
  11097. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11098. set dummy $ac_prog; ac_word=$2
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11100. $as_echo_n "checking for $ac_word... " >&6; }
  11101. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. if test -n "$ac_ct_CXX"; then
  11105. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11106. else
  11107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11108. for as_dir in $PATH
  11109. do
  11110. IFS=$as_save_IFS
  11111. test -z "$as_dir" && as_dir=.
  11112. for ac_exec_ext in '' $ac_executable_extensions; do
  11113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11114. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11116. break 2
  11117. fi
  11118. done
  11119. done
  11120. IFS=$as_save_IFS
  11121. fi
  11122. fi
  11123. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11124. if test -n "$ac_ct_CXX"; then
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11126. $as_echo "$ac_ct_CXX" >&6; }
  11127. else
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. $as_echo "no" >&6; }
  11130. fi
  11131. test -n "$ac_ct_CXX" && break
  11132. done
  11133. if test "x$ac_ct_CXX" = x; then
  11134. CXX="g++"
  11135. else
  11136. case $cross_compiling:$ac_tool_warned in
  11137. yes:)
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11140. ac_tool_warned=yes ;;
  11141. esac
  11142. CXX=$ac_ct_CXX
  11143. fi
  11144. fi
  11145. fi
  11146. fi
  11147. # Provide some information about the compiler.
  11148. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11149. set X $ac_compile
  11150. ac_compiler=$2
  11151. for ac_option in --version -v -V -qversion; do
  11152. { { ac_try="$ac_compiler $ac_option >&5"
  11153. case "(($ac_try" in
  11154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11155. *) ac_try_echo=$ac_try;;
  11156. esac
  11157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11158. $as_echo "$ac_try_echo"; } >&5
  11159. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11160. ac_status=$?
  11161. if test -s conftest.err; then
  11162. sed '10a\
  11163. ... rest of stderr output deleted ...
  11164. 10q' conftest.err >conftest.er1
  11165. cat conftest.er1 >&5
  11166. fi
  11167. rm -f conftest.er1 conftest.err
  11168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11169. test $ac_status = 0; }
  11170. done
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11172. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11173. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11174. $as_echo_n "(cached) " >&6
  11175. else
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. int
  11179. main ()
  11180. {
  11181. #ifndef __GNUC__
  11182. choke me
  11183. #endif
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_cxx_try_compile "$LINENO"; then :
  11189. ac_compiler_gnu=yes
  11190. else
  11191. ac_compiler_gnu=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11194. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11197. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11198. if test $ac_compiler_gnu = yes; then
  11199. GXX=yes
  11200. else
  11201. GXX=
  11202. fi
  11203. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11204. ac_save_CXXFLAGS=$CXXFLAGS
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11206. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11207. if ${ac_cv_prog_cxx_g+:} false; then :
  11208. $as_echo_n "(cached) " >&6
  11209. else
  11210. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11211. ac_cxx_werror_flag=yes
  11212. ac_cv_prog_cxx_g=no
  11213. CXXFLAGS="-g"
  11214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11215. /* end confdefs.h. */
  11216. int
  11217. main ()
  11218. {
  11219. ;
  11220. return 0;
  11221. }
  11222. _ACEOF
  11223. if ac_fn_cxx_try_compile "$LINENO"; then :
  11224. ac_cv_prog_cxx_g=yes
  11225. else
  11226. CXXFLAGS=""
  11227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11228. /* end confdefs.h. */
  11229. int
  11230. main ()
  11231. {
  11232. ;
  11233. return 0;
  11234. }
  11235. _ACEOF
  11236. if ac_fn_cxx_try_compile "$LINENO"; then :
  11237. else
  11238. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11239. CXXFLAGS="-g"
  11240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11241. /* end confdefs.h. */
  11242. int
  11243. main ()
  11244. {
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. if ac_fn_cxx_try_compile "$LINENO"; then :
  11250. ac_cv_prog_cxx_g=yes
  11251. fi
  11252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11257. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11258. fi
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11260. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11261. if test "$ac_test_CXXFLAGS" = set; then
  11262. CXXFLAGS=$ac_save_CXXFLAGS
  11263. elif test $ac_cv_prog_cxx_g = yes; then
  11264. if test "$GXX" = yes; then
  11265. CXXFLAGS="-g -O2"
  11266. else
  11267. CXXFLAGS="-g"
  11268. fi
  11269. else
  11270. if test "$GXX" = yes; then
  11271. CXXFLAGS="-O2"
  11272. else
  11273. CXXFLAGS=
  11274. fi
  11275. fi
  11276. ac_ext=c
  11277. ac_cpp='$CPP $CPPFLAGS'
  11278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11281. func_stripname_cnf ()
  11282. {
  11283. case $2 in
  11284. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11285. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11286. esac
  11287. } # func_stripname_cnf
  11288. if test -n "$CXX" && ( test no != "$CXX" &&
  11289. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11290. (test g++ != "$CXX"))); then
  11291. ac_ext=cpp
  11292. ac_cpp='$CXXCPP $CPPFLAGS'
  11293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11297. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11298. if test -z "$CXXCPP"; then
  11299. if ${ac_cv_prog_CXXCPP+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. # Double quotes because CXXCPP needs to be expanded
  11303. for CXXCPP in "$CXX -E" "/lib/cpp"
  11304. do
  11305. ac_preproc_ok=false
  11306. for ac_cxx_preproc_warn_flag in '' yes
  11307. do
  11308. # Use a header file that comes with gcc, so configuring glibc
  11309. # with a fresh cross-compiler works.
  11310. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11311. # <limits.h> exists even on freestanding compilers.
  11312. # On the NeXT, cc -E runs the code through the compiler's parser,
  11313. # not just through cpp. "Syntax error" is here to catch this case.
  11314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11315. /* end confdefs.h. */
  11316. #ifdef __STDC__
  11317. # include <limits.h>
  11318. #else
  11319. # include <assert.h>
  11320. #endif
  11321. Syntax error
  11322. _ACEOF
  11323. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11324. else
  11325. # Broken: fails on valid input.
  11326. continue
  11327. fi
  11328. rm -f conftest.err conftest.i conftest.$ac_ext
  11329. # OK, works on sane cases. Now check whether nonexistent headers
  11330. # can be detected and how.
  11331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11332. /* end confdefs.h. */
  11333. #include <ac_nonexistent.h>
  11334. _ACEOF
  11335. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11336. # Broken: success on invalid input.
  11337. continue
  11338. else
  11339. # Passes both tests.
  11340. ac_preproc_ok=:
  11341. break
  11342. fi
  11343. rm -f conftest.err conftest.i conftest.$ac_ext
  11344. done
  11345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11346. rm -f conftest.i conftest.err conftest.$ac_ext
  11347. if $ac_preproc_ok; then :
  11348. break
  11349. fi
  11350. done
  11351. ac_cv_prog_CXXCPP=$CXXCPP
  11352. fi
  11353. CXXCPP=$ac_cv_prog_CXXCPP
  11354. else
  11355. ac_cv_prog_CXXCPP=$CXXCPP
  11356. fi
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11358. $as_echo "$CXXCPP" >&6; }
  11359. ac_preproc_ok=false
  11360. for ac_cxx_preproc_warn_flag in '' yes
  11361. do
  11362. # Use a header file that comes with gcc, so configuring glibc
  11363. # with a fresh cross-compiler works.
  11364. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11365. # <limits.h> exists even on freestanding compilers.
  11366. # On the NeXT, cc -E runs the code through the compiler's parser,
  11367. # not just through cpp. "Syntax error" is here to catch this case.
  11368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11369. /* end confdefs.h. */
  11370. #ifdef __STDC__
  11371. # include <limits.h>
  11372. #else
  11373. # include <assert.h>
  11374. #endif
  11375. Syntax error
  11376. _ACEOF
  11377. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11378. else
  11379. # Broken: fails on valid input.
  11380. continue
  11381. fi
  11382. rm -f conftest.err conftest.i conftest.$ac_ext
  11383. # OK, works on sane cases. Now check whether nonexistent headers
  11384. # can be detected and how.
  11385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11386. /* end confdefs.h. */
  11387. #include <ac_nonexistent.h>
  11388. _ACEOF
  11389. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11390. # Broken: success on invalid input.
  11391. continue
  11392. else
  11393. # Passes both tests.
  11394. ac_preproc_ok=:
  11395. break
  11396. fi
  11397. rm -f conftest.err conftest.i conftest.$ac_ext
  11398. done
  11399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11400. rm -f conftest.i conftest.err conftest.$ac_ext
  11401. if $ac_preproc_ok; then :
  11402. else
  11403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11405. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11406. See \`config.log' for more details" "$LINENO" 5; }
  11407. fi
  11408. ac_ext=c
  11409. ac_cpp='$CPP $CPPFLAGS'
  11410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11413. else
  11414. _lt_caught_CXX_error=yes
  11415. fi
  11416. ac_ext=cpp
  11417. ac_cpp='$CXXCPP $CPPFLAGS'
  11418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11421. archive_cmds_need_lc_CXX=no
  11422. allow_undefined_flag_CXX=
  11423. always_export_symbols_CXX=no
  11424. archive_expsym_cmds_CXX=
  11425. compiler_needs_object_CXX=no
  11426. export_dynamic_flag_spec_CXX=
  11427. hardcode_direct_CXX=no
  11428. hardcode_direct_absolute_CXX=no
  11429. hardcode_libdir_flag_spec_CXX=
  11430. hardcode_libdir_separator_CXX=
  11431. hardcode_minus_L_CXX=no
  11432. hardcode_shlibpath_var_CXX=unsupported
  11433. hardcode_automatic_CXX=no
  11434. inherit_rpath_CXX=no
  11435. module_cmds_CXX=
  11436. module_expsym_cmds_CXX=
  11437. link_all_deplibs_CXX=unknown
  11438. old_archive_cmds_CXX=$old_archive_cmds
  11439. reload_flag_CXX=$reload_flag
  11440. reload_cmds_CXX=$reload_cmds
  11441. no_undefined_flag_CXX=
  11442. whole_archive_flag_spec_CXX=
  11443. enable_shared_with_static_runtimes_CXX=no
  11444. # Source file extension for C++ test sources.
  11445. ac_ext=cpp
  11446. # Object file extension for compiled C++ test sources.
  11447. objext=o
  11448. objext_CXX=$objext
  11449. # No sense in running all these tests if we already determined that
  11450. # the CXX compiler isn't working. Some variables (like enable_shared)
  11451. # are currently assumed to apply to all compilers on this platform,
  11452. # and will be corrupted by setting them based on a non-working compiler.
  11453. if test yes != "$_lt_caught_CXX_error"; then
  11454. # Code to be used in simple compile tests
  11455. lt_simple_compile_test_code="int some_variable = 0;"
  11456. # Code to be used in simple link tests
  11457. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11458. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11459. # If no C compiler was specified, use CC.
  11460. LTCC=${LTCC-"$CC"}
  11461. # If no C compiler flags were specified, use CFLAGS.
  11462. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11463. # Allow CC to be a program name with arguments.
  11464. compiler=$CC
  11465. # save warnings/boilerplate of simple test code
  11466. ac_outfile=conftest.$ac_objext
  11467. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11468. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11469. _lt_compiler_boilerplate=`cat conftest.err`
  11470. $RM conftest*
  11471. ac_outfile=conftest.$ac_objext
  11472. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11473. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11474. _lt_linker_boilerplate=`cat conftest.err`
  11475. $RM -r conftest*
  11476. # Allow CC to be a program name with arguments.
  11477. lt_save_CC=$CC
  11478. lt_save_CFLAGS=$CFLAGS
  11479. lt_save_LD=$LD
  11480. lt_save_GCC=$GCC
  11481. GCC=$GXX
  11482. lt_save_with_gnu_ld=$with_gnu_ld
  11483. lt_save_path_LD=$lt_cv_path_LD
  11484. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11485. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11486. else
  11487. $as_unset lt_cv_prog_gnu_ld
  11488. fi
  11489. if test -n "${lt_cv_path_LDCXX+set}"; then
  11490. lt_cv_path_LD=$lt_cv_path_LDCXX
  11491. else
  11492. $as_unset lt_cv_path_LD
  11493. fi
  11494. test -z "${LDCXX+set}" || LD=$LDCXX
  11495. CC=${CXX-"c++"}
  11496. CFLAGS=$CXXFLAGS
  11497. compiler=$CC
  11498. compiler_CXX=$CC
  11499. func_cc_basename $compiler
  11500. cc_basename=$func_cc_basename_result
  11501. if test -n "$compiler"; then
  11502. # We don't want -fno-exception when compiling C++ code, so set the
  11503. # no_builtin_flag separately
  11504. if test yes = "$GXX"; then
  11505. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11506. else
  11507. lt_prog_compiler_no_builtin_flag_CXX=
  11508. fi
  11509. if test yes = "$GXX"; then
  11510. # Set up default GNU C++ configuration
  11511. # Check whether --with-gnu-ld was given.
  11512. if test "${with_gnu_ld+set}" = set; then :
  11513. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11514. else
  11515. with_gnu_ld=no
  11516. fi
  11517. ac_prog=ld
  11518. if test yes = "$GCC"; then
  11519. # Check if gcc -print-prog-name=ld gives a path.
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11521. $as_echo_n "checking for ld used by $CC... " >&6; }
  11522. case $host in
  11523. *-*-mingw*)
  11524. # gcc leaves a trailing carriage return, which upsets mingw
  11525. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11526. *)
  11527. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11528. esac
  11529. case $ac_prog in
  11530. # Accept absolute paths.
  11531. [\\/]* | ?:[\\/]*)
  11532. re_direlt='/[^/][^/]*/\.\./'
  11533. # Canonicalize the pathname of ld
  11534. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11535. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11536. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11537. done
  11538. test -z "$LD" && LD=$ac_prog
  11539. ;;
  11540. "")
  11541. # If it fails, then pretend we aren't using GCC.
  11542. ac_prog=ld
  11543. ;;
  11544. *)
  11545. # If it is relative, then search for the first ld in PATH.
  11546. with_gnu_ld=unknown
  11547. ;;
  11548. esac
  11549. elif test yes = "$with_gnu_ld"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11551. $as_echo_n "checking for GNU ld... " >&6; }
  11552. else
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11554. $as_echo_n "checking for non-GNU ld... " >&6; }
  11555. fi
  11556. if ${lt_cv_path_LD+:} false; then :
  11557. $as_echo_n "(cached) " >&6
  11558. else
  11559. if test -z "$LD"; then
  11560. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11561. for ac_dir in $PATH; do
  11562. IFS=$lt_save_ifs
  11563. test -z "$ac_dir" && ac_dir=.
  11564. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11565. lt_cv_path_LD=$ac_dir/$ac_prog
  11566. # Check to see if the program is GNU ld. I'd rather use --version,
  11567. # but apparently some variants of GNU ld only accept -v.
  11568. # Break only if it was the GNU/non-GNU ld that we prefer.
  11569. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11570. *GNU* | *'with BFD'*)
  11571. test no != "$with_gnu_ld" && break
  11572. ;;
  11573. *)
  11574. test yes != "$with_gnu_ld" && break
  11575. ;;
  11576. esac
  11577. fi
  11578. done
  11579. IFS=$lt_save_ifs
  11580. else
  11581. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11582. fi
  11583. fi
  11584. LD=$lt_cv_path_LD
  11585. if test -n "$LD"; then
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11587. $as_echo "$LD" >&6; }
  11588. else
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11590. $as_echo "no" >&6; }
  11591. fi
  11592. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11594. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11595. if ${lt_cv_prog_gnu_ld+:} false; then :
  11596. $as_echo_n "(cached) " >&6
  11597. else
  11598. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11599. case `$LD -v 2>&1 </dev/null` in
  11600. *GNU* | *'with BFD'*)
  11601. lt_cv_prog_gnu_ld=yes
  11602. ;;
  11603. *)
  11604. lt_cv_prog_gnu_ld=no
  11605. ;;
  11606. esac
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11609. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11610. with_gnu_ld=$lt_cv_prog_gnu_ld
  11611. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11612. # archiving commands below assume that GNU ld is being used.
  11613. if test yes = "$with_gnu_ld"; then
  11614. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11615. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11616. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11617. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11618. # If archive_cmds runs LD, not CC, wlarc should be empty
  11619. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11620. # investigate it a little bit more. (MM)
  11621. wlarc='$wl'
  11622. # ancient GNU ld didn't support --whole-archive et. al.
  11623. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11624. $GREP 'no-whole-archive' > /dev/null; then
  11625. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11626. else
  11627. whole_archive_flag_spec_CXX=
  11628. fi
  11629. else
  11630. with_gnu_ld=no
  11631. wlarc=
  11632. # A generic and very simple default shared library creation
  11633. # command for GNU C++ for the case where it uses the native
  11634. # linker, instead of GNU ld. If possible, this setting should
  11635. # overridden to take advantage of the native linker features on
  11636. # the platform it is being used on.
  11637. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11638. fi
  11639. # Commands to make compiler produce verbose output that lists
  11640. # what "hidden" libraries, object files and flags are used when
  11641. # linking a shared library.
  11642. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11643. else
  11644. GXX=no
  11645. with_gnu_ld=no
  11646. wlarc=
  11647. fi
  11648. # PORTME: fill in a description of your system's C++ link characteristics
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11650. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11651. ld_shlibs_CXX=yes
  11652. case $host_os in
  11653. aix3*)
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. aix[4-9]*)
  11658. if test ia64 = "$host_cpu"; then
  11659. # On IA64, the linker does run time linking by default, so we don't
  11660. # have to do anything special.
  11661. aix_use_runtimelinking=no
  11662. exp_sym_flag='-Bexport'
  11663. no_entry_flag=
  11664. else
  11665. aix_use_runtimelinking=no
  11666. # Test if we are trying to use run time linking or normal
  11667. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11668. # have runtime linking enabled, and use it for executables.
  11669. # For shared libraries, we enable/disable runtime linking
  11670. # depending on the kind of the shared library created -
  11671. # when "with_aix_soname,aix_use_runtimelinking" is:
  11672. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11673. # "aix,yes" lib.so shared, rtl:yes, for executables
  11674. # lib.a static archive
  11675. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11676. # lib.a(lib.so.V) shared, rtl:no, for executables
  11677. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11678. # lib.a(lib.so.V) shared, rtl:no
  11679. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11680. # lib.a static archive
  11681. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11682. for ld_flag in $LDFLAGS; do
  11683. case $ld_flag in
  11684. *-brtl*)
  11685. aix_use_runtimelinking=yes
  11686. break
  11687. ;;
  11688. esac
  11689. done
  11690. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11691. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11692. # so we don't have lib.a shared libs to link our executables.
  11693. # We have to force runtime linking in this case.
  11694. aix_use_runtimelinking=yes
  11695. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11696. fi
  11697. ;;
  11698. esac
  11699. exp_sym_flag='-bexport'
  11700. no_entry_flag='-bnoentry'
  11701. fi
  11702. # When large executables or shared objects are built, AIX ld can
  11703. # have problems creating the table of contents. If linking a library
  11704. # or program results in "error TOC overflow" add -mminimal-toc to
  11705. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11706. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11707. archive_cmds_CXX=''
  11708. hardcode_direct_CXX=yes
  11709. hardcode_direct_absolute_CXX=yes
  11710. hardcode_libdir_separator_CXX=':'
  11711. link_all_deplibs_CXX=yes
  11712. file_list_spec_CXX='$wl-f,'
  11713. case $with_aix_soname,$aix_use_runtimelinking in
  11714. aix,*) ;; # no import file
  11715. svr4,* | *,yes) # use import file
  11716. # The Import File defines what to hardcode.
  11717. hardcode_direct_CXX=no
  11718. hardcode_direct_absolute_CXX=no
  11719. ;;
  11720. esac
  11721. if test yes = "$GXX"; then
  11722. case $host_os in aix4.[012]|aix4.[012].*)
  11723. # We only want to do this on AIX 4.2 and lower, the check
  11724. # below for broken collect2 doesn't work under 4.3+
  11725. collect2name=`$CC -print-prog-name=collect2`
  11726. if test -f "$collect2name" &&
  11727. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11728. then
  11729. # We have reworked collect2
  11730. :
  11731. else
  11732. # We have old collect2
  11733. hardcode_direct_CXX=unsupported
  11734. # It fails to find uninstalled libraries when the uninstalled
  11735. # path is not listed in the libpath. Setting hardcode_minus_L
  11736. # to unsupported forces relinking
  11737. hardcode_minus_L_CXX=yes
  11738. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11739. hardcode_libdir_separator_CXX=
  11740. fi
  11741. esac
  11742. shared_flag='-shared'
  11743. if test yes = "$aix_use_runtimelinking"; then
  11744. shared_flag=$shared_flag' $wl-G'
  11745. fi
  11746. # Need to ensure runtime linking is disabled for the traditional
  11747. # shared library, or the linker may eventually find shared libraries
  11748. # /with/ Import File - we do not want to mix them.
  11749. shared_flag_aix='-shared'
  11750. shared_flag_svr4='-shared $wl-G'
  11751. else
  11752. # not using gcc
  11753. if test ia64 = "$host_cpu"; then
  11754. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11755. # chokes on -Wl,-G. The following line is correct:
  11756. shared_flag='-G'
  11757. else
  11758. if test yes = "$aix_use_runtimelinking"; then
  11759. shared_flag='$wl-G'
  11760. else
  11761. shared_flag='$wl-bM:SRE'
  11762. fi
  11763. shared_flag_aix='$wl-bM:SRE'
  11764. shared_flag_svr4='$wl-G'
  11765. fi
  11766. fi
  11767. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11768. # It seems that -bexpall does not export symbols beginning with
  11769. # underscore (_), so it is better to generate a list of symbols to
  11770. # export.
  11771. always_export_symbols_CXX=yes
  11772. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11773. # Warning - without using the other runtime loading flags (-brtl),
  11774. # -berok will link without error, but may produce a broken library.
  11775. # The "-G" linker flag allows undefined symbols.
  11776. no_undefined_flag_CXX='-bernotok'
  11777. # Determine the default libpath from the value encoded in an empty
  11778. # executable.
  11779. if test set = "${lt_cv_aix_libpath+set}"; then
  11780. aix_libpath=$lt_cv_aix_libpath
  11781. else
  11782. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. int
  11788. main ()
  11789. {
  11790. ;
  11791. return 0;
  11792. }
  11793. _ACEOF
  11794. if ac_fn_cxx_try_link "$LINENO"; then :
  11795. lt_aix_libpath_sed='
  11796. /Import File Strings/,/^$/ {
  11797. /^0/ {
  11798. s/^0 *\([^ ]*\) *$/\1/
  11799. p
  11800. }
  11801. }'
  11802. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11803. # Check for a 64-bit object if we didn't find anything.
  11804. if test -z "$lt_cv_aix_libpath__CXX"; then
  11805. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11806. fi
  11807. fi
  11808. rm -f core conftest.err conftest.$ac_objext \
  11809. conftest$ac_exeext conftest.$ac_ext
  11810. if test -z "$lt_cv_aix_libpath__CXX"; then
  11811. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11812. fi
  11813. fi
  11814. aix_libpath=$lt_cv_aix_libpath__CXX
  11815. fi
  11816. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11817. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11818. else
  11819. if test ia64 = "$host_cpu"; then
  11820. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11821. allow_undefined_flag_CXX="-z nodefs"
  11822. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  11823. else
  11824. # Determine the default libpath from the value encoded in an
  11825. # empty executable.
  11826. if test set = "${lt_cv_aix_libpath+set}"; then
  11827. aix_libpath=$lt_cv_aix_libpath
  11828. else
  11829. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11830. $as_echo_n "(cached) " >&6
  11831. else
  11832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11833. /* end confdefs.h. */
  11834. int
  11835. main ()
  11836. {
  11837. ;
  11838. return 0;
  11839. }
  11840. _ACEOF
  11841. if ac_fn_cxx_try_link "$LINENO"; then :
  11842. lt_aix_libpath_sed='
  11843. /Import File Strings/,/^$/ {
  11844. /^0/ {
  11845. s/^0 *\([^ ]*\) *$/\1/
  11846. p
  11847. }
  11848. }'
  11849. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11850. # Check for a 64-bit object if we didn't find anything.
  11851. if test -z "$lt_cv_aix_libpath__CXX"; then
  11852. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11853. fi
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. if test -z "$lt_cv_aix_libpath__CXX"; then
  11858. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11859. fi
  11860. fi
  11861. aix_libpath=$lt_cv_aix_libpath__CXX
  11862. fi
  11863. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11864. # Warning - without using the other run time loading flags,
  11865. # -berok will link without error, but may produce a broken library.
  11866. no_undefined_flag_CXX=' $wl-bernotok'
  11867. allow_undefined_flag_CXX=' $wl-berok'
  11868. if test yes = "$with_gnu_ld"; then
  11869. # We only use this code for GNU lds that support --whole-archive.
  11870. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11871. else
  11872. # Exported symbols can be pulled into shared objects from archives
  11873. whole_archive_flag_spec_CXX='$convenience'
  11874. fi
  11875. archive_cmds_need_lc_CXX=yes
  11876. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11877. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11878. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11879. if test svr4 != "$with_aix_soname"; then
  11880. # This is similar to how AIX traditionally builds its shared
  11881. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11882. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11883. fi
  11884. if test aix != "$with_aix_soname"; then
  11885. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11886. else
  11887. # used by -dlpreopen to get the symbols
  11888. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11889. fi
  11890. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11891. fi
  11892. fi
  11893. ;;
  11894. beos*)
  11895. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11896. allow_undefined_flag_CXX=unsupported
  11897. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11898. # support --undefined. This deserves some investigation. FIXME
  11899. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11900. else
  11901. ld_shlibs_CXX=no
  11902. fi
  11903. ;;
  11904. chorus*)
  11905. case $cc_basename in
  11906. *)
  11907. # FIXME: insert proper C++ library support
  11908. ld_shlibs_CXX=no
  11909. ;;
  11910. esac
  11911. ;;
  11912. cygwin* | mingw* | pw32* | cegcc*)
  11913. case $GXX,$cc_basename in
  11914. ,cl* | no,cl*)
  11915. # Native MSVC
  11916. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11917. # no search path for DLLs.
  11918. hardcode_libdir_flag_spec_CXX=' '
  11919. allow_undefined_flag_CXX=unsupported
  11920. always_export_symbols_CXX=yes
  11921. file_list_spec_CXX='@'
  11922. # Tell ltmain to make .lib files, not .a files.
  11923. libext=lib
  11924. # Tell ltmain to make .dll files, not .so files.
  11925. shrext_cmds=.dll
  11926. # FIXME: Setting linknames here is a bad hack.
  11927. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11928. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11929. cp "$export_symbols" "$output_objdir/$soname.def";
  11930. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11931. else
  11932. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11933. fi~
  11934. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11935. linknames='
  11936. # The linker will not automatically build a static lib if we build a DLL.
  11937. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11938. enable_shared_with_static_runtimes_CXX=yes
  11939. # Don't use ranlib
  11940. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11941. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11942. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11943. case $lt_outputfile in
  11944. *.exe|*.EXE) ;;
  11945. *)
  11946. lt_outputfile=$lt_outputfile.exe
  11947. lt_tool_outputfile=$lt_tool_outputfile.exe
  11948. ;;
  11949. esac~
  11950. func_to_tool_file "$lt_outputfile"~
  11951. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11952. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11953. $RM "$lt_outputfile.manifest";
  11954. fi'
  11955. ;;
  11956. *)
  11957. # g++
  11958. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11959. # as there is no search path for DLLs.
  11960. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11961. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11962. allow_undefined_flag_CXX=unsupported
  11963. always_export_symbols_CXX=no
  11964. enable_shared_with_static_runtimes_CXX=yes
  11965. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11966. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11967. # If the export-symbols file already is a .def file, use it as
  11968. # is; otherwise, prepend EXPORTS...
  11969. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11970. cp $export_symbols $output_objdir/$soname.def;
  11971. else
  11972. echo EXPORTS > $output_objdir/$soname.def;
  11973. cat $export_symbols >> $output_objdir/$soname.def;
  11974. fi~
  11975. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11976. else
  11977. ld_shlibs_CXX=no
  11978. fi
  11979. ;;
  11980. esac
  11981. ;;
  11982. darwin* | rhapsody*)
  11983. archive_cmds_need_lc_CXX=no
  11984. hardcode_direct_CXX=no
  11985. hardcode_automatic_CXX=yes
  11986. hardcode_shlibpath_var_CXX=unsupported
  11987. if test yes = "$lt_cv_ld_force_load"; then
  11988. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11989. else
  11990. whole_archive_flag_spec_CXX=''
  11991. fi
  11992. link_all_deplibs_CXX=yes
  11993. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11994. case $cc_basename in
  11995. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11996. *) _lt_dar_can_shared=$GCC ;;
  11997. esac
  11998. if test yes = "$_lt_dar_can_shared"; then
  11999. output_verbose_link_cmd=func_echo_all
  12000. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12001. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12002. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  12003. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  12004. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12005. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  12006. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  12007. fi
  12008. else
  12009. ld_shlibs_CXX=no
  12010. fi
  12011. ;;
  12012. os2*)
  12013. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12014. hardcode_minus_L_CXX=yes
  12015. allow_undefined_flag_CXX=unsupported
  12016. shrext_cmds=.dll
  12017. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12021. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12022. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12023. emximp -o $lib $output_objdir/$libname.def'
  12024. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12025. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12026. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12027. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12028. prefix_cmds="$SED"~
  12029. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12030. prefix_cmds="$prefix_cmds -e 1d";
  12031. fi~
  12032. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12033. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12034. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12035. emximp -o $lib $output_objdir/$libname.def'
  12036. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12037. enable_shared_with_static_runtimes_CXX=yes
  12038. file_list_spec_CXX='@'
  12039. ;;
  12040. dgux*)
  12041. case $cc_basename in
  12042. ec++*)
  12043. # FIXME: insert proper C++ library support
  12044. ld_shlibs_CXX=no
  12045. ;;
  12046. ghcx*)
  12047. # Green Hills C++ Compiler
  12048. # FIXME: insert proper C++ library support
  12049. ld_shlibs_CXX=no
  12050. ;;
  12051. *)
  12052. # FIXME: insert proper C++ library support
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. esac
  12056. ;;
  12057. freebsd2.*)
  12058. # C++ shared libraries reported to be fairly broken before
  12059. # switch to ELF
  12060. ld_shlibs_CXX=no
  12061. ;;
  12062. freebsd-elf*)
  12063. archive_cmds_need_lc_CXX=no
  12064. ;;
  12065. freebsd* | dragonfly* | midnightbsd*)
  12066. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12067. # conventions
  12068. ld_shlibs_CXX=yes
  12069. ;;
  12070. haiku*)
  12071. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12072. link_all_deplibs_CXX=yes
  12073. ;;
  12074. hpux9*)
  12075. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12076. hardcode_libdir_separator_CXX=:
  12077. export_dynamic_flag_spec_CXX='$wl-E'
  12078. hardcode_direct_CXX=yes
  12079. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12080. # but as the default
  12081. # location of the library.
  12082. case $cc_basename in
  12083. CC*)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. aCC*)
  12088. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12089. # Commands to make compiler produce verbose output that lists
  12090. # what "hidden" libraries, object files and flags are used when
  12091. # linking a shared library.
  12092. #
  12093. # There doesn't appear to be a way to prevent this compiler from
  12094. # explicitly linking system object files so we need to strip them
  12095. # from the output so that they don't get included in the library
  12096. # dependencies.
  12097. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12098. ;;
  12099. *)
  12100. if test yes = "$GXX"; then
  12101. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12102. else
  12103. # FIXME: insert proper C++ library support
  12104. ld_shlibs_CXX=no
  12105. fi
  12106. ;;
  12107. esac
  12108. ;;
  12109. hpux10*|hpux11*)
  12110. if test no = "$with_gnu_ld"; then
  12111. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12112. hardcode_libdir_separator_CXX=:
  12113. case $host_cpu in
  12114. hppa*64*|ia64*)
  12115. ;;
  12116. *)
  12117. export_dynamic_flag_spec_CXX='$wl-E'
  12118. ;;
  12119. esac
  12120. fi
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. hardcode_direct_CXX=no
  12124. hardcode_shlibpath_var_CXX=no
  12125. ;;
  12126. *)
  12127. hardcode_direct_CXX=yes
  12128. hardcode_direct_absolute_CXX=yes
  12129. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12130. # but as the default
  12131. # location of the library.
  12132. ;;
  12133. esac
  12134. case $cc_basename in
  12135. CC*)
  12136. # FIXME: insert proper C++ library support
  12137. ld_shlibs_CXX=no
  12138. ;;
  12139. aCC*)
  12140. case $host_cpu in
  12141. hppa*64*)
  12142. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12143. ;;
  12144. ia64*)
  12145. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12146. ;;
  12147. *)
  12148. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12149. ;;
  12150. esac
  12151. # Commands to make compiler produce verbose output that lists
  12152. # what "hidden" libraries, object files and flags are used when
  12153. # linking a shared library.
  12154. #
  12155. # There doesn't appear to be a way to prevent this compiler from
  12156. # explicitly linking system object files so we need to strip them
  12157. # from the output so that they don't get included in the library
  12158. # dependencies.
  12159. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12160. ;;
  12161. *)
  12162. if test yes = "$GXX"; then
  12163. if test no = "$with_gnu_ld"; then
  12164. case $host_cpu in
  12165. hppa*64*)
  12166. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12167. ;;
  12168. ia64*)
  12169. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12170. ;;
  12171. *)
  12172. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12173. ;;
  12174. esac
  12175. fi
  12176. else
  12177. # FIXME: insert proper C++ library support
  12178. ld_shlibs_CXX=no
  12179. fi
  12180. ;;
  12181. esac
  12182. ;;
  12183. interix[3-9]*)
  12184. hardcode_direct_CXX=no
  12185. hardcode_shlibpath_var_CXX=no
  12186. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12187. export_dynamic_flag_spec_CXX='$wl-E'
  12188. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12189. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12190. # default) and relocated if they conflict, which is a slow very memory
  12191. # consuming and fragmenting process. To avoid this, we pick a random,
  12192. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12193. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12194. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12195. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12196. ;;
  12197. irix5* | irix6*)
  12198. case $cc_basename in
  12199. CC*)
  12200. # SGI C++
  12201. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12202. # Archives containing C++ object files must be created using
  12203. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12204. # necessary to make sure instantiated templates are included
  12205. # in the archive.
  12206. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12207. ;;
  12208. *)
  12209. if test yes = "$GXX"; then
  12210. if test no = "$with_gnu_ld"; then
  12211. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12212. else
  12213. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12214. fi
  12215. fi
  12216. link_all_deplibs_CXX=yes
  12217. ;;
  12218. esac
  12219. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12220. hardcode_libdir_separator_CXX=:
  12221. inherit_rpath_CXX=yes
  12222. ;;
  12223. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12224. case $cc_basename in
  12225. KCC*)
  12226. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12227. # KCC will only create a shared library if the output file
  12228. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12229. # to its proper name (with version) after linking.
  12230. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12231. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  12232. # Commands to make compiler produce verbose output that lists
  12233. # what "hidden" libraries, object files and flags are used when
  12234. # linking a shared library.
  12235. #
  12236. # There doesn't appear to be a way to prevent this compiler from
  12237. # explicitly linking system object files so we need to strip them
  12238. # from the output so that they don't get included in the library
  12239. # dependencies.
  12240. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12241. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12242. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12243. # Archives containing C++ object files must be created using
  12244. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12245. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12246. ;;
  12247. icpc* | ecpc* )
  12248. # Intel C++
  12249. with_gnu_ld=yes
  12250. # version 8.0 and above of icpc choke on multiply defined symbols
  12251. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12252. # earlier do not add the objects themselves.
  12253. case `$CC -V 2>&1` in
  12254. *"Version 7."*)
  12255. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12256. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12257. ;;
  12258. *) # Version 8.0 or newer
  12259. tmp_idyn=
  12260. case $host_cpu in
  12261. ia64*) tmp_idyn=' -i_dynamic';;
  12262. esac
  12263. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12264. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12265. ;;
  12266. esac
  12267. archive_cmds_need_lc_CXX=no
  12268. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12269. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12270. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12271. ;;
  12272. pgCC* | pgcpp*)
  12273. # Portland Group C++ compiler
  12274. case `$CC -V` in
  12275. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12276. prelink_cmds_CXX='tpldir=Template.dir~
  12277. rm -rf $tpldir~
  12278. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12279. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12280. old_archive_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12283. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12284. $RANLIB $oldlib'
  12285. archive_cmds_CXX='tpldir=Template.dir~
  12286. rm -rf $tpldir~
  12287. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12288. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12289. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12290. rm -rf $tpldir~
  12291. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12292. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12293. ;;
  12294. *) # Version 6 and above use weak symbols
  12295. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12296. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12297. ;;
  12298. esac
  12299. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12300. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12301. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12302. ;;
  12303. cxx*)
  12304. # Compaq C++
  12305. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12306. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  12307. runpath_var=LD_RUN_PATH
  12308. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12309. hardcode_libdir_separator_CXX=:
  12310. # Commands to make compiler produce verbose output that lists
  12311. # what "hidden" libraries, object files and flags are used when
  12312. # linking a shared library.
  12313. #
  12314. # There doesn't appear to be a way to prevent this compiler from
  12315. # explicitly linking system object files so we need to strip them
  12316. # from the output so that they don't get included in the library
  12317. # dependencies.
  12318. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12319. ;;
  12320. xl* | mpixl* | bgxl*)
  12321. # IBM XL 8.0 on PPC, with GNU ld
  12322. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12323. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12324. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12325. if test yes = "$supports_anon_versioning"; then
  12326. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12327. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12328. echo "local: *; };" >> $output_objdir/$libname.ver~
  12329. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12330. fi
  12331. ;;
  12332. *)
  12333. case `$CC -V 2>&1 | sed 5q` in
  12334. *Sun\ C*)
  12335. # Sun C++ 5.9
  12336. no_undefined_flag_CXX=' -zdefs'
  12337. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12338. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  12339. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12340. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12341. compiler_needs_object_CXX=yes
  12342. # Not sure whether something based on
  12343. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12344. # would be better.
  12345. output_verbose_link_cmd='func_echo_all'
  12346. # Archives containing C++ object files must be created using
  12347. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12348. # necessary to make sure instantiated templates are included
  12349. # in the archive.
  12350. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12351. ;;
  12352. esac
  12353. ;;
  12354. esac
  12355. ;;
  12356. lynxos*)
  12357. # FIXME: insert proper C++ library support
  12358. ld_shlibs_CXX=no
  12359. ;;
  12360. m88k*)
  12361. # FIXME: insert proper C++ library support
  12362. ld_shlibs_CXX=no
  12363. ;;
  12364. mvs*)
  12365. case $cc_basename in
  12366. cxx*)
  12367. # FIXME: insert proper C++ library support
  12368. ld_shlibs_CXX=no
  12369. ;;
  12370. *)
  12371. # FIXME: insert proper C++ library support
  12372. ld_shlibs_CXX=no
  12373. ;;
  12374. esac
  12375. ;;
  12376. netbsd*)
  12377. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12378. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12379. wlarc=
  12380. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12381. hardcode_direct_CXX=yes
  12382. hardcode_shlibpath_var_CXX=no
  12383. fi
  12384. # Workaround some broken pre-1.5 toolchains
  12385. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12386. ;;
  12387. *nto* | *qnx*)
  12388. ld_shlibs_CXX=yes
  12389. ;;
  12390. openbsd* | bitrig*)
  12391. if test -f /usr/libexec/ld.so; then
  12392. hardcode_direct_CXX=yes
  12393. hardcode_shlibpath_var_CXX=no
  12394. hardcode_direct_absolute_CXX=yes
  12395. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12396. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12397. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12398. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12399. export_dynamic_flag_spec_CXX='$wl-E'
  12400. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12401. fi
  12402. output_verbose_link_cmd=func_echo_all
  12403. else
  12404. ld_shlibs_CXX=no
  12405. fi
  12406. ;;
  12407. osf3* | osf4* | osf5*)
  12408. case $cc_basename in
  12409. KCC*)
  12410. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12411. # KCC will only create a shared library if the output file
  12412. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12413. # to its proper name (with version) after linking.
  12414. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12415. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12416. hardcode_libdir_separator_CXX=:
  12417. # Archives containing C++ object files must be created using
  12418. # the KAI C++ compiler.
  12419. case $host in
  12420. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12421. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12422. esac
  12423. ;;
  12424. RCC*)
  12425. # Rational C++ 2.4.1
  12426. # FIXME: insert proper C++ library support
  12427. ld_shlibs_CXX=no
  12428. ;;
  12429. cxx*)
  12430. case $host in
  12431. osf3*)
  12432. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12433. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12434. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12435. ;;
  12436. *)
  12437. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12438. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12439. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12440. echo "-hidden">> $lib.exp~
  12441. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12442. $RM $lib.exp'
  12443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12444. ;;
  12445. esac
  12446. hardcode_libdir_separator_CXX=:
  12447. # Commands to make compiler produce verbose output that lists
  12448. # what "hidden" libraries, object files and flags are used when
  12449. # linking a shared library.
  12450. #
  12451. # There doesn't appear to be a way to prevent this compiler from
  12452. # explicitly linking system object files so we need to strip them
  12453. # from the output so that they don't get included in the library
  12454. # dependencies.
  12455. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12456. ;;
  12457. *)
  12458. if test yes,no = "$GXX,$with_gnu_ld"; then
  12459. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12460. case $host in
  12461. osf3*)
  12462. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12463. ;;
  12464. *)
  12465. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12466. ;;
  12467. esac
  12468. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12469. hardcode_libdir_separator_CXX=:
  12470. # Commands to make compiler produce verbose output that lists
  12471. # what "hidden" libraries, object files and flags are used when
  12472. # linking a shared library.
  12473. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12474. else
  12475. # FIXME: insert proper C++ library support
  12476. ld_shlibs_CXX=no
  12477. fi
  12478. ;;
  12479. esac
  12480. ;;
  12481. psos*)
  12482. # FIXME: insert proper C++ library support
  12483. ld_shlibs_CXX=no
  12484. ;;
  12485. sunos4*)
  12486. case $cc_basename in
  12487. CC*)
  12488. # Sun C++ 4.x
  12489. # FIXME: insert proper C++ library support
  12490. ld_shlibs_CXX=no
  12491. ;;
  12492. lcc*)
  12493. # Lucid
  12494. # FIXME: insert proper C++ library support
  12495. ld_shlibs_CXX=no
  12496. ;;
  12497. *)
  12498. # FIXME: insert proper C++ library support
  12499. ld_shlibs_CXX=no
  12500. ;;
  12501. esac
  12502. ;;
  12503. solaris*)
  12504. case $cc_basename in
  12505. CC* | sunCC*)
  12506. # Sun C++ 4.2, 5.x and Centerline C++
  12507. archive_cmds_need_lc_CXX=yes
  12508. no_undefined_flag_CXX=' -zdefs'
  12509. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12510. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12511. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12513. hardcode_shlibpath_var_CXX=no
  12514. case $host_os in
  12515. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12516. *)
  12517. # The compiler driver will combine and reorder linker options,
  12518. # but understands '-z linker_flag'.
  12519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12520. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12521. ;;
  12522. esac
  12523. link_all_deplibs_CXX=yes
  12524. output_verbose_link_cmd='func_echo_all'
  12525. # Archives containing C++ object files must be created using
  12526. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12527. # necessary to make sure instantiated templates are included
  12528. # in the archive.
  12529. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12530. ;;
  12531. gcx*)
  12532. # Green Hills C++ Compiler
  12533. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12534. # The C++ compiler must be used to create the archive.
  12535. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12536. ;;
  12537. *)
  12538. # GNU C++ compiler with Solaris linker
  12539. if test yes,no = "$GXX,$with_gnu_ld"; then
  12540. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12541. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12542. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12543. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12544. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12545. # Commands to make compiler produce verbose output that lists
  12546. # what "hidden" libraries, object files and flags are used when
  12547. # linking a shared library.
  12548. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12549. else
  12550. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12551. # platform.
  12552. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12553. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12554. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12555. # Commands to make compiler produce verbose output that lists
  12556. # what "hidden" libraries, object files and flags are used when
  12557. # linking a shared library.
  12558. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12559. fi
  12560. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12561. case $host_os in
  12562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12563. *)
  12564. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12565. ;;
  12566. esac
  12567. fi
  12568. ;;
  12569. esac
  12570. ;;
  12571. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12572. no_undefined_flag_CXX='$wl-z,text'
  12573. archive_cmds_need_lc_CXX=no
  12574. hardcode_shlibpath_var_CXX=no
  12575. runpath_var='LD_RUN_PATH'
  12576. case $cc_basename in
  12577. CC*)
  12578. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12579. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12580. ;;
  12581. *)
  12582. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12583. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. ;;
  12585. esac
  12586. ;;
  12587. sysv5* | sco3.2v5* | sco5v6*)
  12588. # Note: We CANNOT use -z defs as we might desire, because we do not
  12589. # link with -lc, and that would cause any symbols used from libc to
  12590. # always be unresolved, which means just about no library would
  12591. # ever link correctly. If we're not using GNU ld we use -z text
  12592. # though, which does catch some bad symbols but isn't as heavy-handed
  12593. # as -z defs.
  12594. no_undefined_flag_CXX='$wl-z,text'
  12595. allow_undefined_flag_CXX='$wl-z,nodefs'
  12596. archive_cmds_need_lc_CXX=no
  12597. hardcode_shlibpath_var_CXX=no
  12598. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12599. hardcode_libdir_separator_CXX=':'
  12600. link_all_deplibs_CXX=yes
  12601. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12602. runpath_var='LD_RUN_PATH'
  12603. case $cc_basename in
  12604. CC*)
  12605. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12606. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12608. '"$old_archive_cmds_CXX"
  12609. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12610. '"$reload_cmds_CXX"
  12611. ;;
  12612. *)
  12613. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12614. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. ;;
  12616. esac
  12617. ;;
  12618. tandem*)
  12619. case $cc_basename in
  12620. NCC*)
  12621. # NonStop-UX NCC 3.20
  12622. # FIXME: insert proper C++ library support
  12623. ld_shlibs_CXX=no
  12624. ;;
  12625. *)
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. ;;
  12629. esac
  12630. ;;
  12631. vxworks*)
  12632. # FIXME: insert proper C++ library support
  12633. ld_shlibs_CXX=no
  12634. ;;
  12635. *)
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. ;;
  12639. esac
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12641. $as_echo "$ld_shlibs_CXX" >&6; }
  12642. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12643. GCC_CXX=$GXX
  12644. LD_CXX=$LD
  12645. ## CAVEAT EMPTOR:
  12646. ## There is no encapsulation within the following macros, do not change
  12647. ## the running order or otherwise move them around unless you know exactly
  12648. ## what you are doing...
  12649. # Dependencies to place before and after the object being linked:
  12650. predep_objects_CXX=
  12651. postdep_objects_CXX=
  12652. predeps_CXX=
  12653. postdeps_CXX=
  12654. compiler_lib_search_path_CXX=
  12655. cat > conftest.$ac_ext <<_LT_EOF
  12656. class Foo
  12657. {
  12658. public:
  12659. Foo (void) { a = 0; }
  12660. private:
  12661. int a;
  12662. };
  12663. _LT_EOF
  12664. _lt_libdeps_save_CFLAGS=$CFLAGS
  12665. case "$CC $CFLAGS " in #(
  12666. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12667. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12668. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12669. esac
  12670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12671. (eval $ac_compile) 2>&5
  12672. ac_status=$?
  12673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12674. test $ac_status = 0; }; then
  12675. # Parse the compiler output and extract the necessary
  12676. # objects, libraries and library flags.
  12677. # Sentinel used to keep track of whether or not we are before
  12678. # the conftest object file.
  12679. pre_test_object_deps_done=no
  12680. for p in `eval "$output_verbose_link_cmd"`; do
  12681. case $prev$p in
  12682. -L* | -R* | -l*)
  12683. # Some compilers place space between "-{L,R}" and the path.
  12684. # Remove the space.
  12685. if test x-L = "x$p" ||
  12686. test x-R = "x$p" ||
  12687. test x-l = "x$p"; then
  12688. prev=$p
  12689. continue
  12690. fi
  12691. # Expand the sysroot to ease extracting the directories later.
  12692. if test -z "$prev"; then
  12693. case $p in
  12694. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12695. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12696. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12697. esac
  12698. fi
  12699. case $p in
  12700. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12701. esac
  12702. if test no = "$pre_test_object_deps_done"; then
  12703. case $prev in
  12704. -L | -R)
  12705. # Internal compiler library paths should come after those
  12706. # provided the user. The postdeps already come after the
  12707. # user supplied libs so there is no need to process them.
  12708. if test -z "$compiler_lib_search_path_CXX"; then
  12709. compiler_lib_search_path_CXX=$prev$p
  12710. else
  12711. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12712. fi
  12713. ;;
  12714. # The "-l" case would never come before the object being
  12715. # linked, so don't bother handling this case.
  12716. esac
  12717. else
  12718. if test -z "$postdeps_CXX"; then
  12719. postdeps_CXX=$prev$p
  12720. else
  12721. postdeps_CXX="${postdeps_CXX} $prev$p"
  12722. fi
  12723. fi
  12724. prev=
  12725. ;;
  12726. *.lto.$objext) ;; # Ignore GCC LTO objects
  12727. *.$objext)
  12728. # This assumes that the test object file only shows up
  12729. # once in the compiler output.
  12730. if test "$p" = "conftest.$objext"; then
  12731. pre_test_object_deps_done=yes
  12732. continue
  12733. fi
  12734. if test no = "$pre_test_object_deps_done"; then
  12735. if test -z "$predep_objects_CXX"; then
  12736. predep_objects_CXX=$p
  12737. else
  12738. predep_objects_CXX="$predep_objects_CXX $p"
  12739. fi
  12740. else
  12741. if test -z "$postdep_objects_CXX"; then
  12742. postdep_objects_CXX=$p
  12743. else
  12744. postdep_objects_CXX="$postdep_objects_CXX $p"
  12745. fi
  12746. fi
  12747. ;;
  12748. *) ;; # Ignore the rest.
  12749. esac
  12750. done
  12751. # Clean up.
  12752. rm -f a.out a.exe
  12753. else
  12754. echo "libtool.m4: error: problem compiling CXX test program"
  12755. fi
  12756. $RM -f confest.$objext
  12757. CFLAGS=$_lt_libdeps_save_CFLAGS
  12758. # PORTME: override above test on systems where it is broken
  12759. case $host_os in
  12760. interix[3-9]*)
  12761. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12762. # hack all around it, let's just trust "g++" to DTRT.
  12763. predep_objects_CXX=
  12764. postdep_objects_CXX=
  12765. postdeps_CXX=
  12766. ;;
  12767. esac
  12768. case " $postdeps_CXX " in
  12769. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12770. esac
  12771. compiler_lib_search_dirs_CXX=
  12772. if test -n "${compiler_lib_search_path_CXX}"; then
  12773. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12774. fi
  12775. lt_prog_compiler_wl_CXX=
  12776. lt_prog_compiler_pic_CXX=
  12777. lt_prog_compiler_static_CXX=
  12778. # C++ specific cases for pic, static, wl, etc.
  12779. if test yes = "$GXX"; then
  12780. lt_prog_compiler_wl_CXX='-Wl,'
  12781. lt_prog_compiler_static_CXX='-static'
  12782. case $host_os in
  12783. aix*)
  12784. # All AIX code is PIC.
  12785. if test ia64 = "$host_cpu"; then
  12786. # AIX 5 now supports IA64 processor
  12787. lt_prog_compiler_static_CXX='-Bstatic'
  12788. fi
  12789. lt_prog_compiler_pic_CXX='-fPIC'
  12790. ;;
  12791. amigaos*)
  12792. case $host_cpu in
  12793. powerpc)
  12794. # see comment about AmigaOS4 .so support
  12795. lt_prog_compiler_pic_CXX='-fPIC'
  12796. ;;
  12797. m68k)
  12798. # FIXME: we need at least 68020 code to build shared libraries, but
  12799. # adding the '-m68020' flag to GCC prevents building anything better,
  12800. # like '-m68040'.
  12801. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12802. ;;
  12803. esac
  12804. ;;
  12805. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12806. # PIC is the default for these OSes.
  12807. ;;
  12808. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12809. # This hack is so that the source file can tell whether it is being
  12810. # built for inclusion in a dll (and should export symbols for example).
  12811. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12812. # (--disable-auto-import) libraries
  12813. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12814. case $host_os in
  12815. os2*)
  12816. lt_prog_compiler_static_CXX='$wl-static'
  12817. ;;
  12818. esac
  12819. ;;
  12820. darwin* | rhapsody*)
  12821. # PIC is the default on this platform
  12822. # Common symbols not allowed in MH_DYLIB files
  12823. lt_prog_compiler_pic_CXX='-fno-common'
  12824. ;;
  12825. *djgpp*)
  12826. # DJGPP does not support shared libraries at all
  12827. lt_prog_compiler_pic_CXX=
  12828. ;;
  12829. haiku*)
  12830. # PIC is the default for Haiku.
  12831. # The "-static" flag exists, but is broken.
  12832. lt_prog_compiler_static_CXX=
  12833. ;;
  12834. interix[3-9]*)
  12835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12836. # Instead, we relocate shared libraries at runtime.
  12837. ;;
  12838. sysv4*MP*)
  12839. if test -d /usr/nec; then
  12840. lt_prog_compiler_pic_CXX=-Kconform_pic
  12841. fi
  12842. ;;
  12843. hpux*)
  12844. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12845. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12846. # sets the default TLS model and affects inlining.
  12847. case $host_cpu in
  12848. hppa*64*)
  12849. ;;
  12850. *)
  12851. lt_prog_compiler_pic_CXX='-fPIC'
  12852. ;;
  12853. esac
  12854. ;;
  12855. *qnx* | *nto*)
  12856. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12857. # it will coredump.
  12858. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12859. ;;
  12860. *)
  12861. lt_prog_compiler_pic_CXX='-fPIC'
  12862. ;;
  12863. esac
  12864. else
  12865. case $host_os in
  12866. aix[4-9]*)
  12867. # All AIX code is PIC.
  12868. if test ia64 = "$host_cpu"; then
  12869. # AIX 5 now supports IA64 processor
  12870. lt_prog_compiler_static_CXX='-Bstatic'
  12871. else
  12872. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12873. fi
  12874. ;;
  12875. chorus*)
  12876. case $cc_basename in
  12877. cxch68*)
  12878. # Green Hills C++ Compiler
  12879. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12880. ;;
  12881. esac
  12882. ;;
  12883. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12884. # This hack is so that the source file can tell whether it is being
  12885. # built for inclusion in a dll (and should export symbols for example).
  12886. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12887. ;;
  12888. dgux*)
  12889. case $cc_basename in
  12890. ec++*)
  12891. lt_prog_compiler_pic_CXX='-KPIC'
  12892. ;;
  12893. ghcx*)
  12894. # Green Hills C++ Compiler
  12895. lt_prog_compiler_pic_CXX='-pic'
  12896. ;;
  12897. *)
  12898. ;;
  12899. esac
  12900. ;;
  12901. freebsd* | dragonfly* | midnightbsd*)
  12902. # FreeBSD uses GNU C++
  12903. ;;
  12904. hpux9* | hpux10* | hpux11*)
  12905. case $cc_basename in
  12906. CC*)
  12907. lt_prog_compiler_wl_CXX='-Wl,'
  12908. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12909. if test ia64 != "$host_cpu"; then
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. fi
  12912. ;;
  12913. aCC*)
  12914. lt_prog_compiler_wl_CXX='-Wl,'
  12915. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12916. case $host_cpu in
  12917. hppa*64*|ia64*)
  12918. # +Z the default
  12919. ;;
  12920. *)
  12921. lt_prog_compiler_pic_CXX='+Z'
  12922. ;;
  12923. esac
  12924. ;;
  12925. *)
  12926. ;;
  12927. esac
  12928. ;;
  12929. interix*)
  12930. # This is c89, which is MS Visual C++ (no shared libs)
  12931. # Anyone wants to do a port?
  12932. ;;
  12933. irix5* | irix6* | nonstopux*)
  12934. case $cc_basename in
  12935. CC*)
  12936. lt_prog_compiler_wl_CXX='-Wl,'
  12937. lt_prog_compiler_static_CXX='-non_shared'
  12938. # CC pic flag -KPIC is the default.
  12939. ;;
  12940. *)
  12941. ;;
  12942. esac
  12943. ;;
  12944. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12945. case $cc_basename in
  12946. KCC*)
  12947. # KAI C++ Compiler
  12948. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12949. lt_prog_compiler_pic_CXX='-fPIC'
  12950. ;;
  12951. ecpc* )
  12952. # old Intel C++ for x86_64, which still supported -KPIC.
  12953. lt_prog_compiler_wl_CXX='-Wl,'
  12954. lt_prog_compiler_pic_CXX='-KPIC'
  12955. lt_prog_compiler_static_CXX='-static'
  12956. ;;
  12957. icpc* )
  12958. # Intel C++, used to be incompatible with GCC.
  12959. # ICC 10 doesn't accept -KPIC any more.
  12960. lt_prog_compiler_wl_CXX='-Wl,'
  12961. lt_prog_compiler_pic_CXX='-fPIC'
  12962. lt_prog_compiler_static_CXX='-static'
  12963. ;;
  12964. pgCC* | pgcpp*)
  12965. # Portland Group C++ compiler
  12966. lt_prog_compiler_wl_CXX='-Wl,'
  12967. lt_prog_compiler_pic_CXX='-fpic'
  12968. lt_prog_compiler_static_CXX='-Bstatic'
  12969. ;;
  12970. cxx*)
  12971. # Compaq C++
  12972. # Make sure the PIC flag is empty. It appears that all Alpha
  12973. # Linux and Compaq Tru64 Unix objects are PIC.
  12974. lt_prog_compiler_pic_CXX=
  12975. lt_prog_compiler_static_CXX='-non_shared'
  12976. ;;
  12977. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12978. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12979. lt_prog_compiler_wl_CXX='-Wl,'
  12980. lt_prog_compiler_pic_CXX='-qpic'
  12981. lt_prog_compiler_static_CXX='-qstaticlink'
  12982. ;;
  12983. *)
  12984. case `$CC -V 2>&1 | sed 5q` in
  12985. *Sun\ C*)
  12986. # Sun C++ 5.9
  12987. lt_prog_compiler_pic_CXX='-KPIC'
  12988. lt_prog_compiler_static_CXX='-Bstatic'
  12989. lt_prog_compiler_wl_CXX='-Qoption ld '
  12990. ;;
  12991. esac
  12992. ;;
  12993. esac
  12994. ;;
  12995. lynxos*)
  12996. ;;
  12997. m88k*)
  12998. ;;
  12999. mvs*)
  13000. case $cc_basename in
  13001. cxx*)
  13002. lt_prog_compiler_pic_CXX='-W c,exportall'
  13003. ;;
  13004. *)
  13005. ;;
  13006. esac
  13007. ;;
  13008. netbsd*)
  13009. ;;
  13010. *qnx* | *nto*)
  13011. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13012. # it will coredump.
  13013. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13014. ;;
  13015. osf3* | osf4* | osf5*)
  13016. case $cc_basename in
  13017. KCC*)
  13018. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13019. ;;
  13020. RCC*)
  13021. # Rational C++ 2.4.1
  13022. lt_prog_compiler_pic_CXX='-pic'
  13023. ;;
  13024. cxx*)
  13025. # Digital/Compaq C++
  13026. lt_prog_compiler_wl_CXX='-Wl,'
  13027. # Make sure the PIC flag is empty. It appears that all Alpha
  13028. # Linux and Compaq Tru64 Unix objects are PIC.
  13029. lt_prog_compiler_pic_CXX=
  13030. lt_prog_compiler_static_CXX='-non_shared'
  13031. ;;
  13032. *)
  13033. ;;
  13034. esac
  13035. ;;
  13036. psos*)
  13037. ;;
  13038. solaris*)
  13039. case $cc_basename in
  13040. CC* | sunCC*)
  13041. # Sun C++ 4.2, 5.x and Centerline C++
  13042. lt_prog_compiler_pic_CXX='-KPIC'
  13043. lt_prog_compiler_static_CXX='-Bstatic'
  13044. lt_prog_compiler_wl_CXX='-Qoption ld '
  13045. ;;
  13046. gcx*)
  13047. # Green Hills C++ Compiler
  13048. lt_prog_compiler_pic_CXX='-PIC'
  13049. ;;
  13050. *)
  13051. ;;
  13052. esac
  13053. ;;
  13054. sunos4*)
  13055. case $cc_basename in
  13056. CC*)
  13057. # Sun C++ 4.x
  13058. lt_prog_compiler_pic_CXX='-pic'
  13059. lt_prog_compiler_static_CXX='-Bstatic'
  13060. ;;
  13061. lcc*)
  13062. # Lucid
  13063. lt_prog_compiler_pic_CXX='-pic'
  13064. ;;
  13065. *)
  13066. ;;
  13067. esac
  13068. ;;
  13069. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13070. case $cc_basename in
  13071. CC*)
  13072. lt_prog_compiler_wl_CXX='-Wl,'
  13073. lt_prog_compiler_pic_CXX='-KPIC'
  13074. lt_prog_compiler_static_CXX='-Bstatic'
  13075. ;;
  13076. esac
  13077. ;;
  13078. tandem*)
  13079. case $cc_basename in
  13080. NCC*)
  13081. # NonStop-UX NCC 3.20
  13082. lt_prog_compiler_pic_CXX='-KPIC'
  13083. ;;
  13084. *)
  13085. ;;
  13086. esac
  13087. ;;
  13088. vxworks*)
  13089. ;;
  13090. *)
  13091. lt_prog_compiler_can_build_shared_CXX=no
  13092. ;;
  13093. esac
  13094. fi
  13095. case $host_os in
  13096. # For platforms that do not support PIC, -DPIC is meaningless:
  13097. *djgpp*)
  13098. lt_prog_compiler_pic_CXX=
  13099. ;;
  13100. *)
  13101. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13102. ;;
  13103. esac
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13105. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13106. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13107. $as_echo_n "(cached) " >&6
  13108. else
  13109. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13110. fi
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13112. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13113. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13114. #
  13115. # Check to make sure the PIC flag actually works.
  13116. #
  13117. if test -n "$lt_prog_compiler_pic_CXX"; then
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13119. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13120. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13121. $as_echo_n "(cached) " >&6
  13122. else
  13123. lt_cv_prog_compiler_pic_works_CXX=no
  13124. ac_outfile=conftest.$ac_objext
  13125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13126. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13127. # Insert the option either (1) after the last *FLAGS variable, or
  13128. # (2) before a word containing "conftest.", or (3) at the end.
  13129. # Note that $ac_compile itself does not contain backslashes and begins
  13130. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13131. # The option is referenced via a variable to avoid confusing sed.
  13132. lt_compile=`echo "$ac_compile" | $SED \
  13133. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13134. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13135. -e 's:$: $lt_compiler_flag:'`
  13136. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13137. (eval "$lt_compile" 2>conftest.err)
  13138. ac_status=$?
  13139. cat conftest.err >&5
  13140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13141. if (exit $ac_status) && test -s "$ac_outfile"; then
  13142. # The compiler can only warn and ignore the option if not recognized
  13143. # So say no if there are warnings other than the usual output.
  13144. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13146. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13147. lt_cv_prog_compiler_pic_works_CXX=yes
  13148. fi
  13149. fi
  13150. $RM conftest*
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13153. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13154. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13155. case $lt_prog_compiler_pic_CXX in
  13156. "" | " "*) ;;
  13157. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13158. esac
  13159. else
  13160. lt_prog_compiler_pic_CXX=
  13161. lt_prog_compiler_can_build_shared_CXX=no
  13162. fi
  13163. fi
  13164. #
  13165. # Check to make sure the static flag actually works.
  13166. #
  13167. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13169. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13170. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13171. $as_echo_n "(cached) " >&6
  13172. else
  13173. lt_cv_prog_compiler_static_works_CXX=no
  13174. save_LDFLAGS=$LDFLAGS
  13175. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13178. # The linker can only warn and ignore the option if not recognized
  13179. # So say no if there are warnings
  13180. if test -s conftest.err; then
  13181. # Append any errors to the config.log.
  13182. cat conftest.err 1>&5
  13183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13185. if diff conftest.exp conftest.er2 >/dev/null; then
  13186. lt_cv_prog_compiler_static_works_CXX=yes
  13187. fi
  13188. else
  13189. lt_cv_prog_compiler_static_works_CXX=yes
  13190. fi
  13191. fi
  13192. $RM -r conftest*
  13193. LDFLAGS=$save_LDFLAGS
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13196. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13197. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13198. :
  13199. else
  13200. lt_prog_compiler_static_CXX=
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13203. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13204. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13205. $as_echo_n "(cached) " >&6
  13206. else
  13207. lt_cv_prog_compiler_c_o_CXX=no
  13208. $RM -r conftest 2>/dev/null
  13209. mkdir conftest
  13210. cd conftest
  13211. mkdir out
  13212. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13213. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13214. # Insert the option either (1) after the last *FLAGS variable, or
  13215. # (2) before a word containing "conftest.", or (3) at the end.
  13216. # Note that $ac_compile itself does not contain backslashes and begins
  13217. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13218. lt_compile=`echo "$ac_compile" | $SED \
  13219. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13220. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13221. -e 's:$: $lt_compiler_flag:'`
  13222. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13223. (eval "$lt_compile" 2>out/conftest.err)
  13224. ac_status=$?
  13225. cat out/conftest.err >&5
  13226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13227. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13228. then
  13229. # The compiler can only warn and ignore the option if not recognized
  13230. # So say no if there are warnings
  13231. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13232. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13233. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13234. lt_cv_prog_compiler_c_o_CXX=yes
  13235. fi
  13236. fi
  13237. chmod u+w . 2>&5
  13238. $RM conftest*
  13239. # SGI C++ compiler will create directory out/ii_files/ for
  13240. # template instantiation
  13241. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13242. $RM out/* && rmdir out
  13243. cd ..
  13244. $RM -r conftest
  13245. $RM conftest*
  13246. fi
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13248. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13250. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13251. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13252. $as_echo_n "(cached) " >&6
  13253. else
  13254. lt_cv_prog_compiler_c_o_CXX=no
  13255. $RM -r conftest 2>/dev/null
  13256. mkdir conftest
  13257. cd conftest
  13258. mkdir out
  13259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13260. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13261. # Insert the option either (1) after the last *FLAGS variable, or
  13262. # (2) before a word containing "conftest.", or (3) at the end.
  13263. # Note that $ac_compile itself does not contain backslashes and begins
  13264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13265. lt_compile=`echo "$ac_compile" | $SED \
  13266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13268. -e 's:$: $lt_compiler_flag:'`
  13269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13270. (eval "$lt_compile" 2>out/conftest.err)
  13271. ac_status=$?
  13272. cat out/conftest.err >&5
  13273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13274. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13275. then
  13276. # The compiler can only warn and ignore the option if not recognized
  13277. # So say no if there are warnings
  13278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13279. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13280. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13281. lt_cv_prog_compiler_c_o_CXX=yes
  13282. fi
  13283. fi
  13284. chmod u+w . 2>&5
  13285. $RM conftest*
  13286. # SGI C++ compiler will create directory out/ii_files/ for
  13287. # template instantiation
  13288. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13289. $RM out/* && rmdir out
  13290. cd ..
  13291. $RM -r conftest
  13292. $RM conftest*
  13293. fi
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13295. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13296. hard_links=nottested
  13297. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13298. # do not overwrite the value of need_locks provided by the user
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13300. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13301. hard_links=yes
  13302. $RM conftest*
  13303. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13304. touch conftest.a
  13305. ln conftest.a conftest.b 2>&5 || hard_links=no
  13306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13308. $as_echo "$hard_links" >&6; }
  13309. if test no = "$hard_links"; then
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13311. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13312. need_locks=warn
  13313. fi
  13314. else
  13315. need_locks=no
  13316. fi
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13318. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13319. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13320. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13321. case $host_os in
  13322. aix[4-9]*)
  13323. # If we're using GNU nm, then we don't want the "-C" option.
  13324. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13325. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13326. # weak defined symbols like other global defined symbols, whereas
  13327. # GNU nm marks them as "W".
  13328. # While the 'weak' keyword is ignored in the Export File, we need
  13329. # it in the Import File for the 'aix-soname' feature, so we have
  13330. # to replace the "-B" option with "-P" for AIX nm.
  13331. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13332. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13333. else
  13334. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13335. fi
  13336. ;;
  13337. pw32*)
  13338. export_symbols_cmds_CXX=$ltdll_cmds
  13339. ;;
  13340. cygwin* | mingw* | cegcc*)
  13341. case $cc_basename in
  13342. cl*)
  13343. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13344. ;;
  13345. *)
  13346. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13347. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13348. ;;
  13349. esac
  13350. ;;
  13351. *)
  13352. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13353. ;;
  13354. esac
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13356. $as_echo "$ld_shlibs_CXX" >&6; }
  13357. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13358. with_gnu_ld_CXX=$with_gnu_ld
  13359. #
  13360. # Do we need to explicitly link libc?
  13361. #
  13362. case "x$archive_cmds_need_lc_CXX" in
  13363. x|xyes)
  13364. # Assume -lc should be added
  13365. archive_cmds_need_lc_CXX=yes
  13366. if test yes,yes = "$GCC,$enable_shared"; then
  13367. case $archive_cmds_CXX in
  13368. *'~'*)
  13369. # FIXME: we may have to deal with multi-command sequences.
  13370. ;;
  13371. '$CC '*)
  13372. # Test whether the compiler implicitly links with -lc since on some
  13373. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13374. # to ld, don't add -lc before -lgcc.
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13376. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13377. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13378. $as_echo_n "(cached) " >&6
  13379. else
  13380. $RM conftest*
  13381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13382. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13383. (eval $ac_compile) 2>&5
  13384. ac_status=$?
  13385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13386. test $ac_status = 0; } 2>conftest.err; then
  13387. soname=conftest
  13388. lib=conftest
  13389. libobjs=conftest.$ac_objext
  13390. deplibs=
  13391. wl=$lt_prog_compiler_wl_CXX
  13392. pic_flag=$lt_prog_compiler_pic_CXX
  13393. compiler_flags=-v
  13394. linker_flags=-v
  13395. verstring=
  13396. output_objdir=.
  13397. libname=conftest
  13398. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13399. allow_undefined_flag_CXX=
  13400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13401. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13402. ac_status=$?
  13403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13404. test $ac_status = 0; }
  13405. then
  13406. lt_cv_archive_cmds_need_lc_CXX=no
  13407. else
  13408. lt_cv_archive_cmds_need_lc_CXX=yes
  13409. fi
  13410. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13411. else
  13412. cat conftest.err 1>&5
  13413. fi
  13414. $RM conftest*
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13417. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13418. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13419. ;;
  13420. esac
  13421. fi
  13422. ;;
  13423. esac
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13425. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13426. library_names_spec=
  13427. libname_spec='lib$name'
  13428. soname_spec=
  13429. shrext_cmds=.so
  13430. postinstall_cmds=
  13431. postuninstall_cmds=
  13432. finish_cmds=
  13433. finish_eval=
  13434. shlibpath_var=
  13435. shlibpath_overrides_runpath=unknown
  13436. version_type=none
  13437. dynamic_linker="$host_os ld.so"
  13438. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13439. need_lib_prefix=unknown
  13440. hardcode_into_libs=no
  13441. # when you set need_version to no, make sure it does not cause -set_version
  13442. # flags to be left without arguments
  13443. need_version=unknown
  13444. case $host_os in
  13445. aix3*)
  13446. version_type=linux # correct to gnu/linux during the next big refactor
  13447. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13448. shlibpath_var=LIBPATH
  13449. # AIX 3 has no versioning support, so we append a major version to the name.
  13450. soname_spec='$libname$release$shared_ext$major'
  13451. ;;
  13452. aix[4-9]*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. need_lib_prefix=no
  13455. need_version=no
  13456. hardcode_into_libs=yes
  13457. if test ia64 = "$host_cpu"; then
  13458. # AIX 5 supports IA64
  13459. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13460. shlibpath_var=LD_LIBRARY_PATH
  13461. else
  13462. # With GCC up to 2.95.x, collect2 would create an import file
  13463. # for dependence libraries. The import file would start with
  13464. # the line '#! .'. This would cause the generated library to
  13465. # depend on '.', always an invalid library. This was fixed in
  13466. # development snapshots of GCC prior to 3.0.
  13467. case $host_os in
  13468. aix4 | aix4.[01] | aix4.[01].*)
  13469. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13470. echo ' yes '
  13471. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13472. :
  13473. else
  13474. can_build_shared=no
  13475. fi
  13476. ;;
  13477. esac
  13478. # Using Import Files as archive members, it is possible to support
  13479. # filename-based versioning of shared library archives on AIX. While
  13480. # this would work for both with and without runtime linking, it will
  13481. # prevent static linking of such archives. So we do filename-based
  13482. # shared library versioning with .so extension only, which is used
  13483. # when both runtime linking and shared linking is enabled.
  13484. # Unfortunately, runtime linking may impact performance, so we do
  13485. # not want this to be the default eventually. Also, we use the
  13486. # versioned .so libs for executables only if there is the -brtl
  13487. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13488. # To allow for filename-based versioning support, we need to create
  13489. # libNAME.so.V as an archive file, containing:
  13490. # *) an Import File, referring to the versioned filename of the
  13491. # archive as well as the shared archive member, telling the
  13492. # bitwidth (32 or 64) of that shared object, and providing the
  13493. # list of exported symbols of that shared object, eventually
  13494. # decorated with the 'weak' keyword
  13495. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13496. # it being seen by the linker.
  13497. # At run time we better use the real file rather than another symlink,
  13498. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13499. case $with_aix_soname,$aix_use_runtimelinking in
  13500. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13501. # soname into executable. Probably we can add versioning support to
  13502. # collect2, so additional links can be useful in future.
  13503. aix,yes) # traditional libtool
  13504. dynamic_linker='AIX unversionable lib.so'
  13505. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13506. # instead of lib<name>.a to let people know that these are not
  13507. # typical AIX shared libraries.
  13508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13509. ;;
  13510. aix,no) # traditional AIX only
  13511. dynamic_linker='AIX lib.a(lib.so.V)'
  13512. # We preserve .a as extension for shared libraries through AIX4.2
  13513. # and later when we are not doing run time linking.
  13514. library_names_spec='$libname$release.a $libname.a'
  13515. soname_spec='$libname$release$shared_ext$major'
  13516. ;;
  13517. svr4,*) # full svr4 only
  13518. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13519. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13520. # We do not specify a path in Import Files, so LIBPATH fires.
  13521. shlibpath_overrides_runpath=yes
  13522. ;;
  13523. *,yes) # both, prefer svr4
  13524. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13525. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13526. # unpreferred sharedlib libNAME.a needs extra handling
  13527. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13528. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13529. # We do not specify a path in Import Files, so LIBPATH fires.
  13530. shlibpath_overrides_runpath=yes
  13531. ;;
  13532. *,no) # both, prefer aix
  13533. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13534. library_names_spec='$libname$release.a $libname.a'
  13535. soname_spec='$libname$release$shared_ext$major'
  13536. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13537. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13538. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13539. ;;
  13540. esac
  13541. shlibpath_var=LIBPATH
  13542. fi
  13543. ;;
  13544. amigaos*)
  13545. case $host_cpu in
  13546. powerpc)
  13547. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13548. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13550. ;;
  13551. m68k)
  13552. library_names_spec='$libname.ixlibrary $libname.a'
  13553. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13554. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13555. ;;
  13556. esac
  13557. ;;
  13558. beos*)
  13559. library_names_spec='$libname$shared_ext'
  13560. dynamic_linker="$host_os ld.so"
  13561. shlibpath_var=LIBRARY_PATH
  13562. ;;
  13563. bsdi[45]*)
  13564. version_type=linux # correct to gnu/linux during the next big refactor
  13565. need_version=no
  13566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13567. soname_spec='$libname$release$shared_ext$major'
  13568. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13569. shlibpath_var=LD_LIBRARY_PATH
  13570. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13571. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13572. # the default ld.so.conf also contains /usr/contrib/lib and
  13573. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13574. # libtool to hard-code these into programs
  13575. ;;
  13576. cygwin* | mingw* | pw32* | cegcc*)
  13577. version_type=windows
  13578. shrext_cmds=.dll
  13579. need_version=no
  13580. need_lib_prefix=no
  13581. case $GCC,$cc_basename in
  13582. yes,*)
  13583. # gcc
  13584. library_names_spec='$libname.dll.a'
  13585. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13586. postinstall_cmds='base_file=`basename \$file`~
  13587. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13588. dldir=$destdir/`dirname \$dlpath`~
  13589. test -d \$dldir || mkdir -p \$dldir~
  13590. $install_prog $dir/$dlname \$dldir/$dlname~
  13591. chmod a+x \$dldir/$dlname~
  13592. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13593. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13594. fi'
  13595. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13596. dlpath=$dir/\$dldll~
  13597. $RM \$dlpath'
  13598. shlibpath_overrides_runpath=yes
  13599. case $host_os in
  13600. cygwin*)
  13601. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13602. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13603. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13604. ;;
  13605. mingw* | cegcc*)
  13606. # MinGW DLLs use traditional 'lib' prefix
  13607. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13608. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13609. ;;
  13610. pw32*)
  13611. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13612. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13613. ;;
  13614. esac
  13615. dynamic_linker='Win32 ld.exe'
  13616. ;;
  13617. *,cl*)
  13618. # Native MSVC
  13619. libname_spec='$name'
  13620. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13621. library_names_spec='$libname.dll.lib'
  13622. case $build_os in
  13623. mingw*)
  13624. sys_lib_search_path_spec=
  13625. lt_save_ifs=$IFS
  13626. IFS=';'
  13627. for lt_path in $LIB
  13628. do
  13629. IFS=$lt_save_ifs
  13630. # Let DOS variable expansion print the short 8.3 style file name.
  13631. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13632. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13633. done
  13634. IFS=$lt_save_ifs
  13635. # Convert to MSYS style.
  13636. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13637. ;;
  13638. cygwin*)
  13639. # Convert to unix form, then to dos form, then back to unix form
  13640. # but this time dos style (no spaces!) so that the unix form looks
  13641. # like /cygdrive/c/PROGRA~1:/cygdr...
  13642. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13643. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13644. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13645. ;;
  13646. *)
  13647. sys_lib_search_path_spec=$LIB
  13648. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13649. # It is most probably a Windows format PATH.
  13650. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13651. else
  13652. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13653. fi
  13654. # FIXME: find the short name or the path components, as spaces are
  13655. # common. (e.g. "Program Files" -> "PROGRA~1")
  13656. ;;
  13657. esac
  13658. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13659. postinstall_cmds='base_file=`basename \$file`~
  13660. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13661. dldir=$destdir/`dirname \$dlpath`~
  13662. test -d \$dldir || mkdir -p \$dldir~
  13663. $install_prog $dir/$dlname \$dldir/$dlname'
  13664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13665. dlpath=$dir/\$dldll~
  13666. $RM \$dlpath'
  13667. shlibpath_overrides_runpath=yes
  13668. dynamic_linker='Win32 link.exe'
  13669. ;;
  13670. *)
  13671. # Assume MSVC wrapper
  13672. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13673. dynamic_linker='Win32 ld.exe'
  13674. ;;
  13675. esac
  13676. # FIXME: first we should search . and the directory the executable is in
  13677. shlibpath_var=PATH
  13678. ;;
  13679. darwin* | rhapsody*)
  13680. dynamic_linker="$host_os dyld"
  13681. version_type=darwin
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13685. soname_spec='$libname$release$major$shared_ext'
  13686. shlibpath_overrides_runpath=yes
  13687. shlibpath_var=DYLD_LIBRARY_PATH
  13688. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13689. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13690. ;;
  13691. dgux*)
  13692. version_type=linux # correct to gnu/linux during the next big refactor
  13693. need_lib_prefix=no
  13694. need_version=no
  13695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13696. soname_spec='$libname$release$shared_ext$major'
  13697. shlibpath_var=LD_LIBRARY_PATH
  13698. ;;
  13699. freebsd* | dragonfly* | midnightbsd*)
  13700. # DragonFly does not have aout. When/if they implement a new
  13701. # versioning mechanism, adjust this.
  13702. if test -x /usr/bin/objformat; then
  13703. objformat=`/usr/bin/objformat`
  13704. else
  13705. case $host_os in
  13706. freebsd[23].*) objformat=aout ;;
  13707. *) objformat=elf ;;
  13708. esac
  13709. fi
  13710. version_type=freebsd-$objformat
  13711. case $version_type in
  13712. freebsd-elf*)
  13713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13714. soname_spec='$libname$release$shared_ext$major'
  13715. need_version=no
  13716. need_lib_prefix=no
  13717. ;;
  13718. freebsd-*)
  13719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13720. need_version=yes
  13721. ;;
  13722. esac
  13723. shlibpath_var=LD_LIBRARY_PATH
  13724. case $host_os in
  13725. freebsd2.*)
  13726. shlibpath_overrides_runpath=yes
  13727. ;;
  13728. freebsd3.[01]* | freebsdelf3.[01]*)
  13729. shlibpath_overrides_runpath=yes
  13730. hardcode_into_libs=yes
  13731. ;;
  13732. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13733. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13734. shlibpath_overrides_runpath=no
  13735. hardcode_into_libs=yes
  13736. ;;
  13737. *) # from 4.6 on, and DragonFly
  13738. shlibpath_overrides_runpath=yes
  13739. hardcode_into_libs=yes
  13740. ;;
  13741. esac
  13742. ;;
  13743. haiku*)
  13744. version_type=linux # correct to gnu/linux during the next big refactor
  13745. need_lib_prefix=no
  13746. need_version=no
  13747. dynamic_linker="$host_os runtime_loader"
  13748. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13749. soname_spec='$libname$release$shared_ext$major'
  13750. shlibpath_var=LIBRARY_PATH
  13751. shlibpath_overrides_runpath=no
  13752. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13753. hardcode_into_libs=yes
  13754. ;;
  13755. hpux9* | hpux10* | hpux11*)
  13756. # Give a soname corresponding to the major version so that dld.sl refuses to
  13757. # link against other versions.
  13758. version_type=sunos
  13759. need_lib_prefix=no
  13760. need_version=no
  13761. case $host_cpu in
  13762. ia64*)
  13763. shrext_cmds='.so'
  13764. hardcode_into_libs=yes
  13765. dynamic_linker="$host_os dld.so"
  13766. shlibpath_var=LD_LIBRARY_PATH
  13767. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13769. soname_spec='$libname$release$shared_ext$major'
  13770. if test 32 = "$HPUX_IA64_MODE"; then
  13771. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13772. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13773. else
  13774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13775. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13776. fi
  13777. ;;
  13778. hppa*64*)
  13779. shrext_cmds='.sl'
  13780. hardcode_into_libs=yes
  13781. dynamic_linker="$host_os dld.sl"
  13782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13785. soname_spec='$libname$release$shared_ext$major'
  13786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13788. ;;
  13789. *)
  13790. shrext_cmds='.sl'
  13791. dynamic_linker="$host_os dld.sl"
  13792. shlibpath_var=SHLIB_PATH
  13793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13795. soname_spec='$libname$release$shared_ext$major'
  13796. ;;
  13797. esac
  13798. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13799. postinstall_cmds='chmod 555 $lib'
  13800. # or fails outright, so override atomically:
  13801. install_override_mode=555
  13802. ;;
  13803. interix[3-9]*)
  13804. version_type=linux # correct to gnu/linux during the next big refactor
  13805. need_lib_prefix=no
  13806. need_version=no
  13807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13808. soname_spec='$libname$release$shared_ext$major'
  13809. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13810. shlibpath_var=LD_LIBRARY_PATH
  13811. shlibpath_overrides_runpath=no
  13812. hardcode_into_libs=yes
  13813. ;;
  13814. irix5* | irix6* | nonstopux*)
  13815. case $host_os in
  13816. nonstopux*) version_type=nonstopux ;;
  13817. *)
  13818. if test yes = "$lt_cv_prog_gnu_ld"; then
  13819. version_type=linux # correct to gnu/linux during the next big refactor
  13820. else
  13821. version_type=irix
  13822. fi ;;
  13823. esac
  13824. need_lib_prefix=no
  13825. need_version=no
  13826. soname_spec='$libname$release$shared_ext$major'
  13827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13828. case $host_os in
  13829. irix5* | nonstopux*)
  13830. libsuff= shlibsuff=
  13831. ;;
  13832. *)
  13833. case $LD in # libtool.m4 will add one of these switches to LD
  13834. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13835. libsuff= shlibsuff= libmagic=32-bit;;
  13836. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13837. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13838. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13839. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13840. *) libsuff= shlibsuff= libmagic=never-match;;
  13841. esac
  13842. ;;
  13843. esac
  13844. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13845. shlibpath_overrides_runpath=no
  13846. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13847. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13848. hardcode_into_libs=yes
  13849. ;;
  13850. # No shared lib support for Linux oldld, aout, or coff.
  13851. linux*oldld* | linux*aout* | linux*coff*)
  13852. dynamic_linker=no
  13853. ;;
  13854. linux*android*)
  13855. version_type=none # Android doesn't support versioned libraries.
  13856. need_lib_prefix=no
  13857. need_version=no
  13858. library_names_spec='$libname$release$shared_ext'
  13859. soname_spec='$libname$release$shared_ext'
  13860. finish_cmds=
  13861. shlibpath_var=LD_LIBRARY_PATH
  13862. shlibpath_overrides_runpath=yes
  13863. # This implies no fast_install, which is unacceptable.
  13864. # Some rework will be needed to allow for fast_install
  13865. # before this can be enabled.
  13866. hardcode_into_libs=yes
  13867. dynamic_linker='Android linker'
  13868. # Don't embed -rpath directories since the linker doesn't support them.
  13869. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13870. ;;
  13871. # This must be glibc/ELF.
  13872. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13873. version_type=linux # correct to gnu/linux during the next big refactor
  13874. need_lib_prefix=no
  13875. need_version=no
  13876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13877. soname_spec='$libname$release$shared_ext$major'
  13878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13879. shlibpath_var=LD_LIBRARY_PATH
  13880. shlibpath_overrides_runpath=no
  13881. # Some binutils ld are patched to set DT_RUNPATH
  13882. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13883. $as_echo_n "(cached) " >&6
  13884. else
  13885. lt_cv_shlibpath_overrides_runpath=no
  13886. save_LDFLAGS=$LDFLAGS
  13887. save_libdir=$libdir
  13888. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13889. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13891. /* end confdefs.h. */
  13892. int
  13893. main ()
  13894. {
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_cxx_try_link "$LINENO"; then :
  13900. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13901. lt_cv_shlibpath_overrides_runpath=yes
  13902. fi
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext \
  13905. conftest$ac_exeext conftest.$ac_ext
  13906. LDFLAGS=$save_LDFLAGS
  13907. libdir=$save_libdir
  13908. fi
  13909. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13910. # This implies no fast_install, which is unacceptable.
  13911. # Some rework will be needed to allow for fast_install
  13912. # before this can be enabled.
  13913. hardcode_into_libs=yes
  13914. # Add ABI-specific directories to the system library path.
  13915. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13916. # Ideally, we could use ldconfig to report *all* directores which are
  13917. # searched for libraries, however this is still not possible. Aside from not
  13918. # being certain /sbin/ldconfig is available, command
  13919. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13920. # even though it is searched at run-time. Try to do the best guess by
  13921. # appending ld.so.conf contents (and includes) to the search path.
  13922. if test -f /etc/ld.so.conf; then
  13923. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13924. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13925. fi
  13926. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13927. # powerpc, because MkLinux only supported shared libraries with the
  13928. # GNU dynamic linker. Since this was broken with cross compilers,
  13929. # most powerpc-linux boxes support dynamic linking these days and
  13930. # people can always --disable-shared, the test was removed, and we
  13931. # assume the GNU/Linux dynamic linker is in use.
  13932. dynamic_linker='GNU/Linux ld.so'
  13933. ;;
  13934. netbsd*)
  13935. version_type=sunos
  13936. need_lib_prefix=no
  13937. need_version=no
  13938. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13939. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13940. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13941. dynamic_linker='NetBSD (a.out) ld.so'
  13942. else
  13943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13944. soname_spec='$libname$release$shared_ext$major'
  13945. dynamic_linker='NetBSD ld.elf_so'
  13946. fi
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=yes
  13949. hardcode_into_libs=yes
  13950. ;;
  13951. newsos6)
  13952. version_type=linux # correct to gnu/linux during the next big refactor
  13953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. shlibpath_overrides_runpath=yes
  13956. ;;
  13957. *nto* | *qnx*)
  13958. version_type=qnx
  13959. need_lib_prefix=no
  13960. need_version=no
  13961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13962. soname_spec='$libname$release$shared_ext$major'
  13963. shlibpath_var=LD_LIBRARY_PATH
  13964. shlibpath_overrides_runpath=no
  13965. hardcode_into_libs=yes
  13966. dynamic_linker='ldqnx.so'
  13967. ;;
  13968. openbsd* | bitrig*)
  13969. version_type=sunos
  13970. sys_lib_dlsearch_path_spec=/usr/lib
  13971. need_lib_prefix=no
  13972. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13973. need_version=no
  13974. else
  13975. need_version=yes
  13976. fi
  13977. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13979. shlibpath_var=LD_LIBRARY_PATH
  13980. shlibpath_overrides_runpath=yes
  13981. ;;
  13982. os2*)
  13983. libname_spec='$name'
  13984. shrext_cmds=.dll
  13985. need_lib_prefix=no
  13986. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13987. # SDL customization: removed versioning support.
  13988. # version_type=windows
  13989. # need_version=no
  13990. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13991. # v=$($ECHO $release$versuffix | tr -d .-);
  13992. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13993. # $ECHO $n$v`$shared_ext'
  13994. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13995. library_names_spec='${libname}_dll.$libext'
  13996. dynamic_linker='OS/2 ld.exe'
  13997. shlibpath_var=BEGINLIBPATH
  13998. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13999. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14000. postinstall_cmds='base_file=`basename \$file`~
  14001. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14002. dldir=$destdir/`dirname \$dlpath`~
  14003. test -d \$dldir || mkdir -p \$dldir~
  14004. $install_prog $dir/$dlname \$dldir/$dlname~
  14005. chmod a+x \$dldir/$dlname~
  14006. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14007. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14008. fi'
  14009. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14010. dlpath=$dir/\$dldll~
  14011. $RM \$dlpath'
  14012. ;;
  14013. osf3* | osf4* | osf5*)
  14014. version_type=osf
  14015. need_lib_prefix=no
  14016. need_version=no
  14017. soname_spec='$libname$release$shared_ext$major'
  14018. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14019. shlibpath_var=LD_LIBRARY_PATH
  14020. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14021. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14022. ;;
  14023. rdos*)
  14024. dynamic_linker=no
  14025. ;;
  14026. solaris*)
  14027. version_type=linux # correct to gnu/linux during the next big refactor
  14028. need_lib_prefix=no
  14029. need_version=no
  14030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14031. soname_spec='$libname$release$shared_ext$major'
  14032. shlibpath_var=LD_LIBRARY_PATH
  14033. shlibpath_overrides_runpath=yes
  14034. hardcode_into_libs=yes
  14035. # ldd complains unless libraries are executable
  14036. postinstall_cmds='chmod +x $lib'
  14037. ;;
  14038. sunos4*)
  14039. version_type=sunos
  14040. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14041. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. shlibpath_overrides_runpath=yes
  14044. if test yes = "$with_gnu_ld"; then
  14045. need_lib_prefix=no
  14046. fi
  14047. need_version=yes
  14048. ;;
  14049. sysv4 | sysv4.3*)
  14050. version_type=linux # correct to gnu/linux during the next big refactor
  14051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14052. soname_spec='$libname$release$shared_ext$major'
  14053. shlibpath_var=LD_LIBRARY_PATH
  14054. case $host_vendor in
  14055. sni)
  14056. shlibpath_overrides_runpath=no
  14057. need_lib_prefix=no
  14058. runpath_var=LD_RUN_PATH
  14059. ;;
  14060. siemens)
  14061. need_lib_prefix=no
  14062. ;;
  14063. motorola)
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. shlibpath_overrides_runpath=no
  14067. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14068. ;;
  14069. esac
  14070. ;;
  14071. sysv4*MP*)
  14072. if test -d /usr/nec; then
  14073. version_type=linux # correct to gnu/linux during the next big refactor
  14074. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14075. soname_spec='$libname$shared_ext.$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. fi
  14078. ;;
  14079. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14080. version_type=sco
  14081. need_lib_prefix=no
  14082. need_version=no
  14083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14084. soname_spec='$libname$release$shared_ext$major'
  14085. shlibpath_var=LD_LIBRARY_PATH
  14086. shlibpath_overrides_runpath=yes
  14087. hardcode_into_libs=yes
  14088. if test yes = "$with_gnu_ld"; then
  14089. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14090. else
  14091. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14092. case $host_os in
  14093. sco3.2v5*)
  14094. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14095. ;;
  14096. esac
  14097. fi
  14098. sys_lib_dlsearch_path_spec='/usr/lib'
  14099. ;;
  14100. tpf*)
  14101. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14102. version_type=linux # correct to gnu/linux during the next big refactor
  14103. need_lib_prefix=no
  14104. need_version=no
  14105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14106. shlibpath_var=LD_LIBRARY_PATH
  14107. shlibpath_overrides_runpath=no
  14108. hardcode_into_libs=yes
  14109. ;;
  14110. uts4*)
  14111. version_type=linux # correct to gnu/linux during the next big refactor
  14112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14113. soname_spec='$libname$release$shared_ext$major'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. ;;
  14116. *)
  14117. dynamic_linker=no
  14118. ;;
  14119. esac
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14121. $as_echo "$dynamic_linker" >&6; }
  14122. test no = "$dynamic_linker" && can_build_shared=no
  14123. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14124. if test yes = "$GCC"; then
  14125. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14126. fi
  14127. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14128. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14129. fi
  14130. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14131. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14132. fi
  14133. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14134. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14135. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14136. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14137. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14138. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14140. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14141. hardcode_action_CXX=
  14142. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14143. test -n "$runpath_var_CXX" ||
  14144. test yes = "$hardcode_automatic_CXX"; then
  14145. # We can hardcode non-existent directories.
  14146. if test no != "$hardcode_direct_CXX" &&
  14147. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14148. # have to relink, otherwise we might link with an installed library
  14149. # when we should be linking with a yet-to-be-installed one
  14150. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14151. test no != "$hardcode_minus_L_CXX"; then
  14152. # Linking always hardcodes the temporary library directory.
  14153. hardcode_action_CXX=relink
  14154. else
  14155. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14156. hardcode_action_CXX=immediate
  14157. fi
  14158. else
  14159. # We cannot hardcode anything, or else we can only hardcode existing
  14160. # directories.
  14161. hardcode_action_CXX=unsupported
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14164. $as_echo "$hardcode_action_CXX" >&6; }
  14165. if test relink = "$hardcode_action_CXX" ||
  14166. test yes = "$inherit_rpath_CXX"; then
  14167. # Fast installation is not supported
  14168. enable_fast_install=no
  14169. elif test yes = "$shlibpath_overrides_runpath" ||
  14170. test no = "$enable_shared"; then
  14171. # Fast installation is not necessary
  14172. enable_fast_install=needless
  14173. fi
  14174. fi # test -n "$compiler"
  14175. CC=$lt_save_CC
  14176. CFLAGS=$lt_save_CFLAGS
  14177. LDCXX=$LD
  14178. LD=$lt_save_LD
  14179. GCC=$lt_save_GCC
  14180. with_gnu_ld=$lt_save_with_gnu_ld
  14181. lt_cv_path_LDCXX=$lt_cv_path_LD
  14182. lt_cv_path_LD=$lt_save_path_LD
  14183. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14184. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14185. fi # test yes != "$_lt_caught_CXX_error"
  14186. ac_ext=c
  14187. ac_cpp='$CPP $CPPFLAGS'
  14188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14191. # Find a good install program. We prefer a C program (faster),
  14192. # so one script is as good as another. But avoid the broken or
  14193. # incompatible versions:
  14194. # SysV /etc/install, /usr/sbin/install
  14195. # SunOS /usr/etc/install
  14196. # IRIX /sbin/install
  14197. # AIX /bin/install
  14198. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14199. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14200. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14201. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14202. # OS/2's system install, which has a completely different semantic
  14203. # ./install, which can be erroneously created by make from ./install.sh.
  14204. # Reject install programs that cannot install multiple files.
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14206. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14207. if test -z "$INSTALL"; then
  14208. if ${ac_cv_path_install+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14212. for as_dir in $PATH
  14213. do
  14214. IFS=$as_save_IFS
  14215. test -z "$as_dir" && as_dir=.
  14216. # Account for people who put trailing slashes in PATH elements.
  14217. case $as_dir/ in #((
  14218. ./ | .// | /[cC]/* | \
  14219. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14220. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14221. /usr/ucb/* ) ;;
  14222. *)
  14223. # OSF1 and SCO ODT 3.0 have their own names for install.
  14224. # Don't use installbsd from OSF since it installs stuff as root
  14225. # by default.
  14226. for ac_prog in ginstall scoinst install; do
  14227. for ac_exec_ext in '' $ac_executable_extensions; do
  14228. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14229. if test $ac_prog = install &&
  14230. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14231. # AIX install. It has an incompatible calling convention.
  14232. :
  14233. elif test $ac_prog = install &&
  14234. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14235. # program-specific install script used by HP pwplus--don't use.
  14236. :
  14237. else
  14238. rm -rf conftest.one conftest.two conftest.dir
  14239. echo one > conftest.one
  14240. echo two > conftest.two
  14241. mkdir conftest.dir
  14242. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14243. test -s conftest.one && test -s conftest.two &&
  14244. test -s conftest.dir/conftest.one &&
  14245. test -s conftest.dir/conftest.two
  14246. then
  14247. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14248. break 3
  14249. fi
  14250. fi
  14251. fi
  14252. done
  14253. done
  14254. ;;
  14255. esac
  14256. done
  14257. IFS=$as_save_IFS
  14258. rm -rf conftest.one conftest.two conftest.dir
  14259. fi
  14260. if test "${ac_cv_path_install+set}" = set; then
  14261. INSTALL=$ac_cv_path_install
  14262. else
  14263. # As a last resort, use the slow shell script. Don't cache a
  14264. # value for INSTALL within a source directory, because that will
  14265. # break other packages using the cache if that directory is
  14266. # removed, or if the value is a relative name.
  14267. INSTALL=$ac_install_sh
  14268. fi
  14269. fi
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14271. $as_echo "$INSTALL" >&6; }
  14272. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14273. # It thinks the first close brace ends the variable substitution.
  14274. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14275. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14276. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14278. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14279. set x ${MAKE-make}
  14280. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14281. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. cat >conftest.make <<\_ACEOF
  14285. SHELL = /bin/sh
  14286. all:
  14287. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14288. _ACEOF
  14289. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14290. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14291. *@@@%%%=?*=@@@%%%*)
  14292. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14293. *)
  14294. eval ac_cv_prog_make_${ac_make}_set=no;;
  14295. esac
  14296. rm -f conftest.make
  14297. fi
  14298. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14300. $as_echo "yes" >&6; }
  14301. SET_MAKE=
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14304. $as_echo "no" >&6; }
  14305. SET_MAKE="MAKE=${MAKE-make}"
  14306. fi
  14307. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14308. if test -n "$ac_tool_prefix"; then
  14309. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14310. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14312. $as_echo_n "checking for $ac_word... " >&6; }
  14313. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. case $PKG_CONFIG in
  14317. [\\/]* | ?:[\\/]*)
  14318. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14319. ;;
  14320. *)
  14321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14322. for as_dir in $PATH
  14323. do
  14324. IFS=$as_save_IFS
  14325. test -z "$as_dir" && as_dir=.
  14326. for ac_exec_ext in '' $ac_executable_extensions; do
  14327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14328. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14330. break 2
  14331. fi
  14332. done
  14333. done
  14334. IFS=$as_save_IFS
  14335. ;;
  14336. esac
  14337. fi
  14338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14339. if test -n "$PKG_CONFIG"; then
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14341. $as_echo "$PKG_CONFIG" >&6; }
  14342. else
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14344. $as_echo "no" >&6; }
  14345. fi
  14346. fi
  14347. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14348. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14349. # Extract the first word of "pkg-config", so it can be a program name with args.
  14350. set dummy pkg-config; ac_word=$2
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14352. $as_echo_n "checking for $ac_word... " >&6; }
  14353. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. case $ac_pt_PKG_CONFIG in
  14357. [\\/]* | ?:[\\/]*)
  14358. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14359. ;;
  14360. *)
  14361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14362. for as_dir in $PATH
  14363. do
  14364. IFS=$as_save_IFS
  14365. test -z "$as_dir" && as_dir=.
  14366. for ac_exec_ext in '' $ac_executable_extensions; do
  14367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14368. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14370. break 2
  14371. fi
  14372. done
  14373. done
  14374. IFS=$as_save_IFS
  14375. ;;
  14376. esac
  14377. fi
  14378. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14379. if test -n "$ac_pt_PKG_CONFIG"; then
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14381. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14382. else
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. fi
  14386. if test "x$ac_pt_PKG_CONFIG" = x; then
  14387. PKG_CONFIG=""
  14388. else
  14389. case $cross_compiling:$ac_tool_warned in
  14390. yes:)
  14391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14393. ac_tool_warned=yes ;;
  14394. esac
  14395. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14396. fi
  14397. else
  14398. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14399. fi
  14400. fi
  14401. if test -n "$PKG_CONFIG"; then
  14402. _pkg_min_version=0.9.0
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14404. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14405. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14407. $as_echo "yes" >&6; }
  14408. else
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14410. $as_echo "no" >&6; }
  14411. PKG_CONFIG=""
  14412. fi
  14413. fi
  14414. case "$host" in
  14415. *-*-mingw*)
  14416. # Except on msys, where make can't handle full pathnames (bug 1972)
  14417. ;;
  14418. *)
  14419. srcdir=`cd $srcdir && pwd`
  14420. ;;
  14421. esac
  14422. INCLUDE="-I$srcdir/include"
  14423. case "$host" in
  14424. *-*-nto-qnx*)
  14425. ;;
  14426. *)
  14427. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14428. ;;
  14429. esac
  14430. case "$host" in
  14431. *-*-haiku*)
  14432. LINKER='$(CXX)'
  14433. LIBTOOLLINKERTAG='CXX'
  14434. ;;
  14435. *)
  14436. LINKER='$(CC)'
  14437. LIBTOOLLINKERTAG='CC'
  14438. ;;
  14439. esac
  14440. if test x$srcdir != x.; then
  14441. INCLUDE="-Iinclude $INCLUDE"
  14442. elif test -d .git; then
  14443. as_fn_error $? "
  14444. *** When building from a git clone you should configure and build in a
  14445. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14446. " "$LINENO" 5
  14447. fi
  14448. BASE_CFLAGS=""
  14449. BASE_LDFLAGS=""
  14450. case "$host" in
  14451. *-*-cygwin*)
  14452. # We build SDL on cygwin without the UNIX emulation layer
  14453. save_CFLAGS="$CFLAGS"
  14454. have_no_cygwin=no
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14456. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14457. CFLAGS="$save_CFLAGS -mno-cygwin"
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. int
  14461. main ()
  14462. {
  14463. ;
  14464. return 0;
  14465. }
  14466. _ACEOF
  14467. if ac_fn_c_try_compile "$LINENO"; then :
  14468. have_no_cygwin=yes
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14472. $as_echo "$have_no_cygwin" >&6; }
  14473. CFLAGS="$save_CFLAGS"
  14474. if test x$have_no_cygwin = xyes; then
  14475. BASE_CFLAGS="-mno-cygwin"
  14476. BASE_LDFLAGS="-mno-cygwin"
  14477. fi
  14478. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14479. ;;
  14480. esac
  14481. # Uncomment the following line if you want to force SDL and applications
  14482. # built with it to be compiled for a particular architecture.
  14483. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14484. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14485. # The default optimization for SDL is -O3 (Bug #31)
  14486. if test "x$orig_CFLAGS" = x; then
  14487. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14488. fi
  14489. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14490. BUILD_LDFLAGS="$LDFLAGS"
  14491. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14492. ## These are common directories to find software packages
  14493. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14494. # if test -d $path/include; then
  14495. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14496. # fi
  14497. # if test -d $path/lib; then
  14498. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14499. # fi
  14500. #done
  14501. SDL_CFLAGS="$BASE_CFLAGS"
  14502. SDL_LIBS="-lSDL2"
  14503. if test "x$BASE_LDFLAGS" != x; then
  14504. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14505. fi
  14506. if test "x$EXTRA_CFLAGS" != x; then
  14507. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14508. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14509. fi
  14510. if test "x$EXTRA_LDFLAGS" != x; then
  14511. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14512. fi
  14513. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14514. find_lib()
  14515. {
  14516. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14517. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14518. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14519. if test "$cross_compiling" = yes; then
  14520. host_lib_path=""
  14521. else
  14522. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14523. fi
  14524. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14525. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14526. if test x$lib != x; then
  14527. echo $lib
  14528. return
  14529. fi
  14530. done
  14531. # Try again, this time allowing more than one version digit after the .so
  14532. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14533. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14534. if test x$lib != x; then
  14535. echo $lib
  14536. return
  14537. fi
  14538. done
  14539. }
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14541. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14542. if ${ac_cv_c_const+:} false; then :
  14543. $as_echo_n "(cached) " >&6
  14544. else
  14545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14546. /* end confdefs.h. */
  14547. int
  14548. main ()
  14549. {
  14550. #ifndef __cplusplus
  14551. /* Ultrix mips cc rejects this sort of thing. */
  14552. typedef int charset[2];
  14553. const charset cs = { 0, 0 };
  14554. /* SunOS 4.1.1 cc rejects this. */
  14555. char const *const *pcpcc;
  14556. char **ppc;
  14557. /* NEC SVR4.0.2 mips cc rejects this. */
  14558. struct point {int x, y;};
  14559. static struct point const zero = {0,0};
  14560. /* AIX XL C 1.02.0.0 rejects this.
  14561. It does not let you subtract one const X* pointer from another in
  14562. an arm of an if-expression whose if-part is not a constant
  14563. expression */
  14564. const char *g = "string";
  14565. pcpcc = &g + (g ? g-g : 0);
  14566. /* HPUX 7.0 cc rejects these. */
  14567. ++pcpcc;
  14568. ppc = (char**) pcpcc;
  14569. pcpcc = (char const *const *) ppc;
  14570. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14571. char tx;
  14572. char *t = &tx;
  14573. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14574. *t++ = 0;
  14575. if (s) return 0;
  14576. }
  14577. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14578. int x[] = {25, 17};
  14579. const int *foo = &x[0];
  14580. ++foo;
  14581. }
  14582. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14583. typedef const int *iptr;
  14584. iptr p = 0;
  14585. ++p;
  14586. }
  14587. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14588. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14589. struct s { int j; const int *ap[3]; } bx;
  14590. struct s *b = &bx; b->j = 5;
  14591. }
  14592. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14593. const int foo = 10;
  14594. if (!foo) return 0;
  14595. }
  14596. return !cs[0] && !zero.x;
  14597. #endif
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_compile "$LINENO"; then :
  14603. ac_cv_c_const=yes
  14604. else
  14605. ac_cv_c_const=no
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14610. $as_echo "$ac_cv_c_const" >&6; }
  14611. if test $ac_cv_c_const = no; then
  14612. $as_echo "#define const /**/" >>confdefs.h
  14613. fi
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14615. $as_echo_n "checking for inline... " >&6; }
  14616. if ${ac_cv_c_inline+:} false; then :
  14617. $as_echo_n "(cached) " >&6
  14618. else
  14619. ac_cv_c_inline=no
  14620. for ac_kw in inline __inline__ __inline; do
  14621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14622. /* end confdefs.h. */
  14623. #ifndef __cplusplus
  14624. typedef int foo_t;
  14625. static $ac_kw foo_t static_foo () {return 0; }
  14626. $ac_kw foo_t foo () {return 0; }
  14627. #endif
  14628. _ACEOF
  14629. if ac_fn_c_try_compile "$LINENO"; then :
  14630. ac_cv_c_inline=$ac_kw
  14631. fi
  14632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14633. test "$ac_cv_c_inline" != no && break
  14634. done
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14637. $as_echo "$ac_cv_c_inline" >&6; }
  14638. case $ac_cv_c_inline in
  14639. inline | yes) ;;
  14640. *)
  14641. case $ac_cv_c_inline in
  14642. no) ac_val=;;
  14643. *) ac_val=$ac_cv_c_inline;;
  14644. esac
  14645. cat >>confdefs.h <<_ACEOF
  14646. #ifndef __cplusplus
  14647. #define inline $ac_val
  14648. #endif
  14649. _ACEOF
  14650. ;;
  14651. esac
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14653. $as_echo_n "checking for working volatile... " >&6; }
  14654. if ${ac_cv_c_volatile+:} false; then :
  14655. $as_echo_n "(cached) " >&6
  14656. else
  14657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14658. /* end confdefs.h. */
  14659. int
  14660. main ()
  14661. {
  14662. volatile int x;
  14663. int * volatile y = (int *) 0;
  14664. return !x && !y;
  14665. ;
  14666. return 0;
  14667. }
  14668. _ACEOF
  14669. if ac_fn_c_try_compile "$LINENO"; then :
  14670. ac_cv_c_volatile=yes
  14671. else
  14672. ac_cv_c_volatile=no
  14673. fi
  14674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14675. fi
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14677. $as_echo "$ac_cv_c_volatile" >&6; }
  14678. if test $ac_cv_c_volatile = no; then
  14679. $as_echo "#define volatile /**/" >>confdefs.h
  14680. fi
  14681. # Check whether --enable-assertions was given.
  14682. if test "${enable_assertions+set}" = set; then :
  14683. enableval=$enable_assertions;
  14684. else
  14685. enable_assertions=auto
  14686. fi
  14687. case "$enable_assertions" in
  14688. auto) # Use optimization settings to determine assertion level
  14689. ;;
  14690. disabled)
  14691. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14692. ;;
  14693. release)
  14694. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14695. ;;
  14696. enabled)
  14697. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14698. ;;
  14699. paranoid)
  14700. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14701. ;;
  14702. *)
  14703. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14704. ;;
  14705. esac
  14706. cat >>confdefs.h <<_ACEOF
  14707. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14708. _ACEOF
  14709. cat >>confdefs.h <<_ACEOF
  14710. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14711. _ACEOF
  14712. cat >>confdefs.h <<_ACEOF
  14713. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14714. _ACEOF
  14715. # Check whether --enable-dependency-tracking was given.
  14716. if test "${enable_dependency_tracking+set}" = set; then :
  14717. enableval=$enable_dependency_tracking;
  14718. else
  14719. enable_dependency_tracking=yes
  14720. fi
  14721. if test x$enable_dependency_tracking = xyes; then
  14722. have_gcc_mmd_mt=no
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14724. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14726. /* end confdefs.h. */
  14727. #if !defined(__GNUC__) || __GNUC__ < 3
  14728. #error Dependency tracking requires GCC 3.0 or newer
  14729. #endif
  14730. int
  14731. main ()
  14732. {
  14733. ;
  14734. return 0;
  14735. }
  14736. _ACEOF
  14737. if ac_fn_c_try_compile "$LINENO"; then :
  14738. have_gcc_mmd_mt=yes
  14739. fi
  14740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14742. $as_echo "$have_gcc_mmd_mt" >&6; }
  14743. if test x$have_gcc_mmd_mt = xyes; then
  14744. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14745. fi
  14746. fi
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14748. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14749. have_no_undefined=no
  14750. case "$host" in
  14751. *-*-openbsd*)
  14752. ;;
  14753. *)
  14754. save_LDFLAGS="$LDFLAGS"
  14755. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14757. /* end confdefs.h. */
  14758. int
  14759. main ()
  14760. {
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_link "$LINENO"; then :
  14766. have_no_undefined=yes
  14767. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14768. fi
  14769. rm -f core conftest.err conftest.$ac_objext \
  14770. conftest$ac_exeext conftest.$ac_ext
  14771. LDFLAGS="$save_LDFLAGS"
  14772. ;;
  14773. esac
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14775. $as_echo "$have_no_undefined" >&6; }
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14777. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14778. have_dynamicbase=no
  14779. case "$host" in
  14780. *)
  14781. save_LDFLAGS="$LDFLAGS"
  14782. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14784. /* end confdefs.h. */
  14785. int
  14786. main ()
  14787. {
  14788. ;
  14789. return 0;
  14790. }
  14791. _ACEOF
  14792. if ac_fn_c_try_link "$LINENO"; then :
  14793. have_dynamicbase=yes
  14794. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14795. fi
  14796. rm -f core conftest.err conftest.$ac_objext \
  14797. conftest$ac_exeext conftest.$ac_ext
  14798. LDFLAGS="$save_LDFLAGS"
  14799. ;;
  14800. esac
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14802. $as_echo "$have_dynamicbase" >&6; }
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14804. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14805. have_nxcompat=no
  14806. case "$host" in
  14807. *)
  14808. save_LDFLAGS="$LDFLAGS"
  14809. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. int
  14813. main ()
  14814. {
  14815. ;
  14816. return 0;
  14817. }
  14818. _ACEOF
  14819. if ac_fn_c_try_link "$LINENO"; then :
  14820. have_nxcompat=yes
  14821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14822. fi
  14823. rm -f core conftest.err conftest.$ac_objext \
  14824. conftest$ac_exeext conftest.$ac_ext
  14825. LDFLAGS="$save_LDFLAGS"
  14826. ;;
  14827. esac
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14829. $as_echo "$have_nxcompat" >&6; }
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14831. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14832. have_high_entropy_va=no
  14833. case "$host" in
  14834. *)
  14835. save_LDFLAGS="$LDFLAGS"
  14836. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14838. /* end confdefs.h. */
  14839. int
  14840. main ()
  14841. {
  14842. ;
  14843. return 0;
  14844. }
  14845. _ACEOF
  14846. if ac_fn_c_try_link "$LINENO"; then :
  14847. have_high_entropy_va=yes
  14848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14849. fi
  14850. rm -f core conftest.err conftest.$ac_objext \
  14851. conftest$ac_exeext conftest.$ac_ext
  14852. LDFLAGS="$save_LDFLAGS"
  14853. ;;
  14854. esac
  14855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14856. $as_echo "$have_high_entropy_va" >&6; }
  14857. # Check whether --enable-libc was given.
  14858. if test "${enable_libc+set}" = set; then :
  14859. enableval=$enable_libc;
  14860. else
  14861. enable_libc=yes
  14862. fi
  14863. if test x$enable_libc = xyes; then
  14864. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14866. $as_echo_n "checking for ANSI C header files... " >&6; }
  14867. if ${ac_cv_header_stdc+:} false; then :
  14868. $as_echo_n "(cached) " >&6
  14869. else
  14870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14871. /* end confdefs.h. */
  14872. #include <stdlib.h>
  14873. #include <stdarg.h>
  14874. #include <string.h>
  14875. #include <float.h>
  14876. int
  14877. main ()
  14878. {
  14879. ;
  14880. return 0;
  14881. }
  14882. _ACEOF
  14883. if ac_fn_c_try_compile "$LINENO"; then :
  14884. ac_cv_header_stdc=yes
  14885. else
  14886. ac_cv_header_stdc=no
  14887. fi
  14888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14889. if test $ac_cv_header_stdc = yes; then
  14890. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14892. /* end confdefs.h. */
  14893. #include <string.h>
  14894. _ACEOF
  14895. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14896. $EGREP "memchr" >/dev/null 2>&1; then :
  14897. else
  14898. ac_cv_header_stdc=no
  14899. fi
  14900. rm -f conftest*
  14901. fi
  14902. if test $ac_cv_header_stdc = yes; then
  14903. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14905. /* end confdefs.h. */
  14906. #include <stdlib.h>
  14907. _ACEOF
  14908. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14909. $EGREP "free" >/dev/null 2>&1; then :
  14910. else
  14911. ac_cv_header_stdc=no
  14912. fi
  14913. rm -f conftest*
  14914. fi
  14915. if test $ac_cv_header_stdc = yes; then
  14916. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14917. if test "$cross_compiling" = yes; then :
  14918. :
  14919. else
  14920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14921. /* end confdefs.h. */
  14922. #include <ctype.h>
  14923. #include <stdlib.h>
  14924. #if ((' ' & 0x0FF) == 0x020)
  14925. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14926. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14927. #else
  14928. # define ISLOWER(c) \
  14929. (('a' <= (c) && (c) <= 'i') \
  14930. || ('j' <= (c) && (c) <= 'r') \
  14931. || ('s' <= (c) && (c) <= 'z'))
  14932. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14933. #endif
  14934. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14935. int
  14936. main ()
  14937. {
  14938. int i;
  14939. for (i = 0; i < 256; i++)
  14940. if (XOR (islower (i), ISLOWER (i))
  14941. || toupper (i) != TOUPPER (i))
  14942. return 2;
  14943. return 0;
  14944. }
  14945. _ACEOF
  14946. if ac_fn_c_try_run "$LINENO"; then :
  14947. else
  14948. ac_cv_header_stdc=no
  14949. fi
  14950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14952. fi
  14953. fi
  14954. fi
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14956. $as_echo "$ac_cv_header_stdc" >&6; }
  14957. if test $ac_cv_header_stdc = yes; then
  14958. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14959. fi
  14960. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14961. do :
  14962. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14963. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14964. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14965. cat >>confdefs.h <<_ACEOF
  14966. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14967. _ACEOF
  14968. fi
  14969. done
  14970. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14971. if test "x$ac_cv_type_size_t" = xyes; then :
  14972. else
  14973. cat >>confdefs.h <<_ACEOF
  14974. #define size_t unsigned int
  14975. _ACEOF
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14978. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14979. if ${ac_cv_define_M_PI+:} false; then :
  14980. $as_echo_n "(cached) " >&6
  14981. else
  14982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14983. /* end confdefs.h. */
  14984. #include <math.h>
  14985. #ifdef M_PI
  14986. YES_IS_DEFINED
  14987. #endif
  14988. _ACEOF
  14989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14990. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14991. ac_cv_define_M_PI=yes
  14992. else
  14993. ac_cv_define_M_PI=no
  14994. fi
  14995. rm -f conftest*
  14996. fi
  14997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14998. $as_echo "$ac_cv_define_M_PI" >&6; }
  14999. if test "$ac_cv_define_M_PI" = "yes" ; then
  15000. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15001. fi
  15002. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15003. # for constant arguments. Useless!
  15004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15005. $as_echo_n "checking for working alloca.h... " >&6; }
  15006. if ${ac_cv_working_alloca_h+:} false; then :
  15007. $as_echo_n "(cached) " >&6
  15008. else
  15009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15010. /* end confdefs.h. */
  15011. #include <alloca.h>
  15012. int
  15013. main ()
  15014. {
  15015. char *p = (char *) alloca (2 * sizeof (int));
  15016. if (p) return 0;
  15017. ;
  15018. return 0;
  15019. }
  15020. _ACEOF
  15021. if ac_fn_c_try_link "$LINENO"; then :
  15022. ac_cv_working_alloca_h=yes
  15023. else
  15024. ac_cv_working_alloca_h=no
  15025. fi
  15026. rm -f core conftest.err conftest.$ac_objext \
  15027. conftest$ac_exeext conftest.$ac_ext
  15028. fi
  15029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15030. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15031. if test $ac_cv_working_alloca_h = yes; then
  15032. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15033. fi
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15035. $as_echo_n "checking for alloca... " >&6; }
  15036. if ${ac_cv_func_alloca_works+:} false; then :
  15037. $as_echo_n "(cached) " >&6
  15038. else
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #ifdef __GNUC__
  15042. # define alloca __builtin_alloca
  15043. #else
  15044. # ifdef _MSC_VER
  15045. # include <malloc.h>
  15046. # define alloca _alloca
  15047. # else
  15048. # ifdef HAVE_ALLOCA_H
  15049. # include <alloca.h>
  15050. # else
  15051. # ifdef _AIX
  15052. #pragma alloca
  15053. # else
  15054. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15055. void *alloca (size_t);
  15056. # endif
  15057. # endif
  15058. # endif
  15059. # endif
  15060. #endif
  15061. int
  15062. main ()
  15063. {
  15064. char *p = (char *) alloca (1);
  15065. if (p) return 0;
  15066. ;
  15067. return 0;
  15068. }
  15069. _ACEOF
  15070. if ac_fn_c_try_link "$LINENO"; then :
  15071. ac_cv_func_alloca_works=yes
  15072. else
  15073. ac_cv_func_alloca_works=no
  15074. fi
  15075. rm -f core conftest.err conftest.$ac_objext \
  15076. conftest$ac_exeext conftest.$ac_ext
  15077. fi
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15079. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15080. if test $ac_cv_func_alloca_works = yes; then
  15081. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15082. else
  15083. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15084. # that cause trouble. Some versions do not even contain alloca or
  15085. # contain a buggy version. If you still want to use their alloca,
  15086. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15087. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15088. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15090. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15091. if ${ac_cv_os_cray+:} false; then :
  15092. $as_echo_n "(cached) " >&6
  15093. else
  15094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15095. /* end confdefs.h. */
  15096. #if defined CRAY && ! defined CRAY2
  15097. webecray
  15098. #else
  15099. wenotbecray
  15100. #endif
  15101. _ACEOF
  15102. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15103. $EGREP "webecray" >/dev/null 2>&1; then :
  15104. ac_cv_os_cray=yes
  15105. else
  15106. ac_cv_os_cray=no
  15107. fi
  15108. rm -f conftest*
  15109. fi
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15111. $as_echo "$ac_cv_os_cray" >&6; }
  15112. if test $ac_cv_os_cray = yes; then
  15113. for ac_func in _getb67 GETB67 getb67; do
  15114. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15115. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15116. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15117. cat >>confdefs.h <<_ACEOF
  15118. #define CRAY_STACKSEG_END $ac_func
  15119. _ACEOF
  15120. break
  15121. fi
  15122. done
  15123. fi
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15125. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15126. if ${ac_cv_c_stack_direction+:} false; then :
  15127. $as_echo_n "(cached) " >&6
  15128. else
  15129. if test "$cross_compiling" = yes; then :
  15130. ac_cv_c_stack_direction=0
  15131. else
  15132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15133. /* end confdefs.h. */
  15134. $ac_includes_default
  15135. int
  15136. find_stack_direction (int *addr, int depth)
  15137. {
  15138. int dir, dummy = 0;
  15139. if (! addr)
  15140. addr = &dummy;
  15141. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15142. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15143. return dir + dummy;
  15144. }
  15145. int
  15146. main (int argc, char **argv)
  15147. {
  15148. return find_stack_direction (0, argc + !argv + 20) < 0;
  15149. }
  15150. _ACEOF
  15151. if ac_fn_c_try_run "$LINENO"; then :
  15152. ac_cv_c_stack_direction=1
  15153. else
  15154. ac_cv_c_stack_direction=-1
  15155. fi
  15156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15157. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15158. fi
  15159. fi
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15161. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15162. cat >>confdefs.h <<_ACEOF
  15163. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15164. _ACEOF
  15165. fi
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15167. $as_echo_n "checking for working memcmp... " >&6; }
  15168. if ${ac_cv_func_memcmp_working+:} false; then :
  15169. $as_echo_n "(cached) " >&6
  15170. else
  15171. if test "$cross_compiling" = yes; then :
  15172. ac_cv_func_memcmp_working=no
  15173. else
  15174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15175. /* end confdefs.h. */
  15176. $ac_includes_default
  15177. int
  15178. main ()
  15179. {
  15180. /* Some versions of memcmp are not 8-bit clean. */
  15181. char c0 = '\100', c1 = '\200', c2 = '\201';
  15182. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15183. return 1;
  15184. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15185. or more and with at least one buffer not starting on a 4-byte boundary.
  15186. William Lewis provided this test program. */
  15187. {
  15188. char foo[21];
  15189. char bar[21];
  15190. int i;
  15191. for (i = 0; i < 4; i++)
  15192. {
  15193. char *a = foo + i;
  15194. char *b = bar + i;
  15195. strcpy (a, "--------01111111");
  15196. strcpy (b, "--------10000000");
  15197. if (memcmp (a, b, 16) >= 0)
  15198. return 1;
  15199. }
  15200. return 0;
  15201. }
  15202. ;
  15203. return 0;
  15204. }
  15205. _ACEOF
  15206. if ac_fn_c_try_run "$LINENO"; then :
  15207. ac_cv_func_memcmp_working=yes
  15208. else
  15209. ac_cv_func_memcmp_working=no
  15210. fi
  15211. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15212. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15213. fi
  15214. fi
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15216. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15217. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15218. *" memcmp.$ac_objext "* ) ;;
  15219. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15220. ;;
  15221. esac
  15222. if test x$ac_cv_func_memcmp_working = xyes; then
  15223. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15224. fi
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15226. $as_echo_n "checking for working strtod... " >&6; }
  15227. if ${ac_cv_func_strtod+:} false; then :
  15228. $as_echo_n "(cached) " >&6
  15229. else
  15230. if test "$cross_compiling" = yes; then :
  15231. ac_cv_func_strtod=no
  15232. else
  15233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15234. /* end confdefs.h. */
  15235. $ac_includes_default
  15236. #ifndef strtod
  15237. double strtod ();
  15238. #endif
  15239. int
  15240. main()
  15241. {
  15242. {
  15243. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15244. char *string = " +69";
  15245. char *term;
  15246. double value;
  15247. value = strtod (string, &term);
  15248. if (value != 69 || term != (string + 4))
  15249. return 1;
  15250. }
  15251. {
  15252. /* Under Solaris 2.4, strtod returns the wrong value for the
  15253. terminating character under some conditions. */
  15254. char *string = "NaN";
  15255. char *term;
  15256. strtod (string, &term);
  15257. if (term != string && *(term - 1) == 0)
  15258. return 1;
  15259. }
  15260. return 0;
  15261. }
  15262. _ACEOF
  15263. if ac_fn_c_try_run "$LINENO"; then :
  15264. ac_cv_func_strtod=yes
  15265. else
  15266. ac_cv_func_strtod=no
  15267. fi
  15268. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15269. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15270. fi
  15271. fi
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15273. $as_echo "$ac_cv_func_strtod" >&6; }
  15274. if test $ac_cv_func_strtod = no; then
  15275. case " $LIBOBJS " in
  15276. *" strtod.$ac_objext "* ) ;;
  15277. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15278. ;;
  15279. esac
  15280. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15281. if test "x$ac_cv_func_pow" = xyes; then :
  15282. fi
  15283. if test $ac_cv_func_pow = no; then
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15285. $as_echo_n "checking for pow in -lm... " >&6; }
  15286. if ${ac_cv_lib_m_pow+:} false; then :
  15287. $as_echo_n "(cached) " >&6
  15288. else
  15289. ac_check_lib_save_LIBS=$LIBS
  15290. LIBS="-lm $LIBS"
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. /* Override any GCC internal prototype to avoid an error.
  15294. Use char because int might match the return type of a GCC
  15295. builtin and then its argument prototype would still apply. */
  15296. #ifdef __cplusplus
  15297. extern "C"
  15298. #endif
  15299. char pow ();
  15300. int
  15301. main ()
  15302. {
  15303. return pow ();
  15304. ;
  15305. return 0;
  15306. }
  15307. _ACEOF
  15308. if ac_fn_c_try_link "$LINENO"; then :
  15309. ac_cv_lib_m_pow=yes
  15310. else
  15311. ac_cv_lib_m_pow=no
  15312. fi
  15313. rm -f core conftest.err conftest.$ac_objext \
  15314. conftest$ac_exeext conftest.$ac_ext
  15315. LIBS=$ac_check_lib_save_LIBS
  15316. fi
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15318. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15319. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15320. POW_LIB=-lm
  15321. else
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15323. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15324. fi
  15325. fi
  15326. fi
  15327. if test x$ac_cv_func_strtod = xyes; then
  15328. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15329. fi
  15330. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15331. if test "x$ac_cv_func_mprotect" = xyes; then :
  15332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15333. /* end confdefs.h. */
  15334. #include <sys/types.h>
  15335. #include <sys/mman.h>
  15336. int
  15337. main ()
  15338. {
  15339. ;
  15340. return 0;
  15341. }
  15342. _ACEOF
  15343. if ac_fn_c_try_compile "$LINENO"; then :
  15344. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15345. fi
  15346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15347. fi
  15348. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15349. do :
  15350. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15351. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15352. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15353. cat >>confdefs.h <<_ACEOF
  15354. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15355. _ACEOF
  15356. fi
  15357. done
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15359. $as_echo_n "checking for pow in -lm... " >&6; }
  15360. if ${ac_cv_lib_m_pow+:} false; then :
  15361. $as_echo_n "(cached) " >&6
  15362. else
  15363. ac_check_lib_save_LIBS=$LIBS
  15364. LIBS="-lm $LIBS"
  15365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15366. /* end confdefs.h. */
  15367. /* Override any GCC internal prototype to avoid an error.
  15368. Use char because int might match the return type of a GCC
  15369. builtin and then its argument prototype would still apply. */
  15370. #ifdef __cplusplus
  15371. extern "C"
  15372. #endif
  15373. char pow ();
  15374. int
  15375. main ()
  15376. {
  15377. return pow ();
  15378. ;
  15379. return 0;
  15380. }
  15381. _ACEOF
  15382. if ac_fn_c_try_link "$LINENO"; then :
  15383. ac_cv_lib_m_pow=yes
  15384. else
  15385. ac_cv_lib_m_pow=no
  15386. fi
  15387. rm -f core conftest.err conftest.$ac_objext \
  15388. conftest$ac_exeext conftest.$ac_ext
  15389. LIBS=$ac_check_lib_save_LIBS
  15390. fi
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15392. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15393. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15394. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15395. fi
  15396. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15397. do :
  15398. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15399. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15400. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15401. cat >>confdefs.h <<_ACEOF
  15402. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15403. _ACEOF
  15404. fi
  15405. done
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15407. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15408. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15409. $as_echo_n "(cached) " >&6
  15410. else
  15411. ac_check_lib_save_LIBS=$LIBS
  15412. LIBS="-liconv $LIBS"
  15413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15414. /* end confdefs.h. */
  15415. /* Override any GCC internal prototype to avoid an error.
  15416. Use char because int might match the return type of a GCC
  15417. builtin and then its argument prototype would still apply. */
  15418. #ifdef __cplusplus
  15419. extern "C"
  15420. #endif
  15421. char iconv_open ();
  15422. int
  15423. main ()
  15424. {
  15425. return iconv_open ();
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_link "$LINENO"; then :
  15431. ac_cv_lib_iconv_iconv_open=yes
  15432. else
  15433. ac_cv_lib_iconv_iconv_open=no
  15434. fi
  15435. rm -f core conftest.err conftest.$ac_objext \
  15436. conftest$ac_exeext conftest.$ac_ext
  15437. LIBS=$ac_check_lib_save_LIBS
  15438. fi
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15440. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15441. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15442. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15443. fi
  15444. for ac_func in iconv
  15445. do :
  15446. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15447. if test "x$ac_cv_func_iconv" = xyes; then :
  15448. cat >>confdefs.h <<_ACEOF
  15449. #define HAVE_ICONV 1
  15450. _ACEOF
  15451. fi
  15452. done
  15453. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15454. "
  15455. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15456. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15457. fi
  15458. for ac_header in libunwind.h
  15459. do :
  15460. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15461. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15462. cat >>confdefs.h <<_ACEOF
  15463. #define HAVE_LIBUNWIND_H 1
  15464. _ACEOF
  15465. fi
  15466. done
  15467. fi
  15468. # Check whether --enable-gcc-atomics was given.
  15469. if test "${enable_gcc_atomics+set}" = set; then :
  15470. enableval=$enable_gcc_atomics;
  15471. else
  15472. enable_gcc_atomics=yes
  15473. fi
  15474. if test x$enable_gcc_atomics = xyes; then
  15475. have_gcc_atomics=no
  15476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15477. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15479. /* end confdefs.h. */
  15480. int
  15481. main ()
  15482. {
  15483. int a;
  15484. void *x, *y, *z;
  15485. __sync_lock_test_and_set(&a, 4);
  15486. __sync_lock_test_and_set(&x, y);
  15487. __sync_fetch_and_add(&a, 1);
  15488. __sync_bool_compare_and_swap(&a, 5, 10);
  15489. __sync_bool_compare_and_swap(&x, y, z);
  15490. ;
  15491. return 0;
  15492. }
  15493. _ACEOF
  15494. if ac_fn_c_try_link "$LINENO"; then :
  15495. have_gcc_atomics=yes
  15496. fi
  15497. rm -f core conftest.err conftest.$ac_objext \
  15498. conftest$ac_exeext conftest.$ac_ext
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15500. $as_echo "$have_gcc_atomics" >&6; }
  15501. if test x$have_gcc_atomics = xyes; then
  15502. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15503. else
  15504. # See if we have the minimum operation needed for GCC atomics
  15505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15506. /* end confdefs.h. */
  15507. int
  15508. main ()
  15509. {
  15510. int a;
  15511. __sync_lock_test_and_set(&a, 1);
  15512. __sync_lock_release(&a);
  15513. ;
  15514. return 0;
  15515. }
  15516. _ACEOF
  15517. if ac_fn_c_try_link "$LINENO"; then :
  15518. have_gcc_sync_lock_test_and_set=yes
  15519. fi
  15520. rm -f core conftest.err conftest.$ac_objext \
  15521. conftest$ac_exeext conftest.$ac_ext
  15522. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15523. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15524. fi
  15525. fi
  15526. fi
  15527. # Standard C sources
  15528. SOURCES="$SOURCES $srcdir/src/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15537. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15538. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15539. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15540. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15541. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15542. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15543. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15544. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15545. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15546. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15547. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15548. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15549. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15550. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15551. case "$host" in
  15552. *-*-emscripten*)
  15553. default_atomic=no
  15554. ;;
  15555. *)
  15556. default_atomic=yes
  15557. ;;
  15558. esac
  15559. # Check whether --enable-atomic was given.
  15560. if test "${enable_atomic+set}" = set; then :
  15561. enableval=$enable_atomic;
  15562. else
  15563. enable_atomic=$default_atomic
  15564. fi
  15565. if test x$enable_atomic != xyes; then
  15566. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15567. else
  15568. SUMMARY_modules="${SUMMARY_modules} atomic"
  15569. fi
  15570. # Check whether --enable-audio was given.
  15571. if test "${enable_audio+set}" = set; then :
  15572. enableval=$enable_audio;
  15573. else
  15574. enable_audio=yes
  15575. fi
  15576. if test x$enable_audio != xyes; then
  15577. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15578. else
  15579. SUMMARY_modules="${SUMMARY_modules} audio"
  15580. fi
  15581. # Check whether --enable-video was given.
  15582. if test "${enable_video+set}" = set; then :
  15583. enableval=$enable_video;
  15584. else
  15585. enable_video=yes
  15586. fi
  15587. if test x$enable_video != xyes; then
  15588. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15589. else
  15590. SUMMARY_modules="${SUMMARY_modules} video"
  15591. fi
  15592. # Check whether --enable-render was given.
  15593. if test "${enable_render+set}" = set; then :
  15594. enableval=$enable_render;
  15595. else
  15596. enable_render=yes
  15597. fi
  15598. if test x$enable_render != xyes; then
  15599. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15600. else
  15601. SUMMARY_modules="${SUMMARY_modules} render"
  15602. fi
  15603. # Check whether --enable-events was given.
  15604. if test "${enable_events+set}" = set; then :
  15605. enableval=$enable_events;
  15606. else
  15607. enable_events=yes
  15608. fi
  15609. if test x$enable_events != xyes; then
  15610. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15611. else
  15612. SUMMARY_modules="${SUMMARY_modules} events"
  15613. fi
  15614. # Check whether --enable-joystick was given.
  15615. if test "${enable_joystick+set}" = set; then :
  15616. enableval=$enable_joystick;
  15617. else
  15618. enable_joystick=yes
  15619. fi
  15620. if test x$enable_joystick != xyes; then
  15621. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15622. else
  15623. SUMMARY_modules="${SUMMARY_modules} joystick"
  15624. fi
  15625. # Check whether --enable-haptic was given.
  15626. if test "${enable_haptic+set}" = set; then :
  15627. enableval=$enable_haptic;
  15628. else
  15629. enable_haptic=yes
  15630. fi
  15631. if test x$enable_haptic != xyes; then
  15632. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15633. else
  15634. SUMMARY_modules="${SUMMARY_modules} haptic"
  15635. fi
  15636. # Check whether --enable-hidapi was given.
  15637. if test "${enable_hidapi+set}" = set; then :
  15638. enableval=$enable_hidapi;
  15639. else
  15640. enable_hidapi=yes
  15641. fi
  15642. if test x$enable_hidapi != xyes; then
  15643. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15644. else
  15645. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15646. fi
  15647. # Check whether --enable-sensor was given.
  15648. if test "${enable_sensor+set}" = set; then :
  15649. enableval=$enable_sensor;
  15650. else
  15651. enable_sensor=yes
  15652. fi
  15653. if test x$enable_sensor != xyes; then
  15654. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15655. else
  15656. SUMMARY_modules="${SUMMARY_modules} sensor"
  15657. fi
  15658. # Check whether --enable-power was given.
  15659. if test "${enable_power+set}" = set; then :
  15660. enableval=$enable_power;
  15661. else
  15662. enable_power=yes
  15663. fi
  15664. if test x$enable_power != xyes; then
  15665. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15666. else
  15667. SUMMARY_modules="${SUMMARY_modules} power"
  15668. fi
  15669. # Check whether --enable-filesystem was given.
  15670. if test "${enable_filesystem+set}" = set; then :
  15671. enableval=$enable_filesystem;
  15672. else
  15673. enable_filesystem=yes
  15674. fi
  15675. if test x$enable_filesystem != xyes; then
  15676. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15677. else
  15678. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15679. fi
  15680. # Check whether --enable-threads was given.
  15681. if test "${enable_threads+set}" = set; then :
  15682. enableval=$enable_threads;
  15683. else
  15684. enable_threads=yes
  15685. fi
  15686. if test x$enable_threads != xyes; then
  15687. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15688. else
  15689. SUMMARY_modules="${SUMMARY_modules} threads"
  15690. fi
  15691. # Check whether --enable-timers was given.
  15692. if test "${enable_timers+set}" = set; then :
  15693. enableval=$enable_timers;
  15694. else
  15695. enable_timers=yes
  15696. fi
  15697. if test x$enable_timers != xyes; then
  15698. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15699. else
  15700. SUMMARY_modules="${SUMMARY_modules} timers"
  15701. fi
  15702. # Check whether --enable-file was given.
  15703. if test "${enable_file+set}" = set; then :
  15704. enableval=$enable_file;
  15705. else
  15706. enable_file=yes
  15707. fi
  15708. if test x$enable_file != xyes; then
  15709. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15710. else
  15711. SUMMARY_modules="${SUMMARY_modules} file"
  15712. fi
  15713. # Check whether --enable-misc was given.
  15714. if test "${enable_misc+set}" = set; then :
  15715. enableval=$enable_misc;
  15716. else
  15717. enable_misc=yes
  15718. fi
  15719. if test x$enable_misc != xyes; then
  15720. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15721. else
  15722. SUMMARY_modules="${SUMMARY_modules} misc"
  15723. fi
  15724. # Check whether --enable-locale was given.
  15725. if test "${enable_locale+set}" = set; then :
  15726. enableval=$enable_locale;
  15727. else
  15728. enable_locale=yes
  15729. fi
  15730. if test x$enable_locale != xyes; then
  15731. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15732. else
  15733. SUMMARY_modules="${SUMMARY_modules} locale"
  15734. fi
  15735. # Check whether --enable-loadso was given.
  15736. if test "${enable_loadso+set}" = set; then :
  15737. enableval=$enable_loadso;
  15738. else
  15739. enable_loadso=yes
  15740. fi
  15741. if test x$enable_loadso != xyes; then
  15742. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15743. else
  15744. SUMMARY_modules="${SUMMARY_modules} loadso"
  15745. fi
  15746. # Check whether --enable-cpuinfo was given.
  15747. if test "${enable_cpuinfo+set}" = set; then :
  15748. enableval=$enable_cpuinfo;
  15749. else
  15750. enable_cpuinfo=yes
  15751. fi
  15752. if test x$enable_cpuinfo != xyes; then
  15753. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15754. else
  15755. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15756. fi
  15757. # Check whether --enable-assembly was given.
  15758. if test "${enable_assembly+set}" = set; then :
  15759. enableval=$enable_assembly;
  15760. else
  15761. enable_assembly=yes
  15762. fi
  15763. if test x$enable_assembly = xyes; then
  15764. SUMMARY_modules="${SUMMARY_modules} assembly"
  15765. # Make sure that we don't generate floating point code that would
  15766. # cause illegal instruction exceptions on older processors
  15767. case "$host" in
  15768. *-*-darwin*)
  15769. # Don't need to worry about Apple hardware, it's all SSE capable
  15770. default_ssemath=yes
  15771. ;;
  15772. *64-*-*)
  15773. # x86 64-bit architectures all have SSE instructions
  15774. default_ssemath=yes
  15775. ;;
  15776. *)
  15777. default_ssemath=no
  15778. ;;
  15779. esac
  15780. # Check whether --enable-ssemath was given.
  15781. if test "${enable_ssemath+set}" = set; then :
  15782. enableval=$enable_ssemath;
  15783. else
  15784. enable_ssemath=$default_ssemath
  15785. fi
  15786. if test x$enable_ssemath = xno; then
  15787. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15788. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15789. fi
  15790. fi
  15791. # Check whether --enable-mmx was given.
  15792. if test "${enable_mmx+set}" = set; then :
  15793. enableval=$enable_mmx;
  15794. else
  15795. enable_mmx=yes
  15796. fi
  15797. if test x$enable_mmx = xyes; then
  15798. save_CFLAGS="$CFLAGS"
  15799. have_gcc_mmx=no
  15800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15801. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15802. mmx_CFLAGS="-mmmx"
  15803. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15805. /* end confdefs.h. */
  15806. #ifdef __MINGW32__
  15807. #include <_mingw.h>
  15808. #ifdef __MINGW64_VERSION_MAJOR
  15809. #include <intrin.h>
  15810. #else
  15811. #include <mmintrin.h>
  15812. #endif
  15813. #else
  15814. #include <mmintrin.h>
  15815. #endif
  15816. #ifndef __MMX__
  15817. #error Assembler CPP flag not enabled
  15818. #endif
  15819. int
  15820. main ()
  15821. {
  15822. ;
  15823. return 0;
  15824. }
  15825. _ACEOF
  15826. if ac_fn_c_try_compile "$LINENO"; then :
  15827. have_gcc_mmx=yes
  15828. fi
  15829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15831. $as_echo "$have_gcc_mmx" >&6; }
  15832. CFLAGS="$save_CFLAGS"
  15833. if test x$have_gcc_mmx = xyes; then
  15834. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15835. SUMMARY_math="${SUMMARY_math} mmx"
  15836. fi
  15837. fi
  15838. # Check whether --enable-3dnow was given.
  15839. if test "${enable_3dnow+set}" = set; then :
  15840. enableval=$enable_3dnow;
  15841. else
  15842. enable_3dnow=yes
  15843. fi
  15844. if test x$enable_3dnow = xyes; then
  15845. save_CFLAGS="$CFLAGS"
  15846. have_gcc_3dnow=no
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15848. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15849. amd3dnow_CFLAGS="-m3dnow"
  15850. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15852. /* end confdefs.h. */
  15853. #include <mm3dnow.h>
  15854. #ifndef __3dNOW__
  15855. #error Assembler CPP flag not enabled
  15856. #endif
  15857. int
  15858. main ()
  15859. {
  15860. void *p = 0;
  15861. _m_prefetch(p);
  15862. ;
  15863. return 0;
  15864. }
  15865. _ACEOF
  15866. if ac_fn_c_try_link "$LINENO"; then :
  15867. have_gcc_3dnow=yes
  15868. fi
  15869. rm -f core conftest.err conftest.$ac_objext \
  15870. conftest$ac_exeext conftest.$ac_ext
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15872. $as_echo "$have_gcc_3dnow" >&6; }
  15873. CFLAGS="$save_CFLAGS"
  15874. if test x$have_gcc_3dnow = xyes; then
  15875. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15876. SUMMARY_math="${SUMMARY_math} 3dnow"
  15877. fi
  15878. fi
  15879. # Check whether --enable-sse was given.
  15880. if test "${enable_sse+set}" = set; then :
  15881. enableval=$enable_sse;
  15882. else
  15883. enable_sse=yes
  15884. fi
  15885. if test x$enable_sse = xyes; then
  15886. save_CFLAGS="$CFLAGS"
  15887. have_gcc_sse=no
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15889. $as_echo_n "checking for GCC -msse option... " >&6; }
  15890. sse_CFLAGS="-msse"
  15891. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15893. /* end confdefs.h. */
  15894. #ifdef __MINGW32__
  15895. #include <_mingw.h>
  15896. #ifdef __MINGW64_VERSION_MAJOR
  15897. #include <intrin.h>
  15898. #else
  15899. #include <xmmintrin.h>
  15900. #endif
  15901. #else
  15902. #include <xmmintrin.h>
  15903. #endif
  15904. #ifndef __SSE__
  15905. #error Assembler CPP flag not enabled
  15906. #endif
  15907. int
  15908. main ()
  15909. {
  15910. ;
  15911. return 0;
  15912. }
  15913. _ACEOF
  15914. if ac_fn_c_try_compile "$LINENO"; then :
  15915. have_gcc_sse=yes
  15916. fi
  15917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15919. $as_echo "$have_gcc_sse" >&6; }
  15920. CFLAGS="$save_CFLAGS"
  15921. if test x$have_gcc_sse = xyes; then
  15922. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15923. SUMMARY_math="${SUMMARY_math} sse"
  15924. fi
  15925. fi
  15926. # Check whether --enable-sse2 was given.
  15927. if test "${enable_sse2+set}" = set; then :
  15928. enableval=$enable_sse2;
  15929. else
  15930. enable_sse2=$default_ssemath
  15931. fi
  15932. if test x$enable_sse2 = xyes; then
  15933. save_CFLAGS="$CFLAGS"
  15934. have_gcc_sse2=no
  15935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15936. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15937. sse2_CFLAGS="-msse2"
  15938. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15940. /* end confdefs.h. */
  15941. #ifdef __MINGW32__
  15942. #include <_mingw.h>
  15943. #ifdef __MINGW64_VERSION_MAJOR
  15944. #include <intrin.h>
  15945. #else
  15946. #include <emmintrin.h>
  15947. #endif
  15948. #else
  15949. #include <emmintrin.h>
  15950. #endif
  15951. #ifndef __SSE2__
  15952. #error Assembler CPP flag not enabled
  15953. #endif
  15954. int
  15955. main ()
  15956. {
  15957. ;
  15958. return 0;
  15959. }
  15960. _ACEOF
  15961. if ac_fn_c_try_compile "$LINENO"; then :
  15962. have_gcc_sse2=yes
  15963. fi
  15964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15966. $as_echo "$have_gcc_sse2" >&6; }
  15967. CFLAGS="$save_CFLAGS"
  15968. if test x$have_gcc_sse2 = xyes; then
  15969. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15970. SUMMARY_math="${SUMMARY_math} sse2"
  15971. fi
  15972. fi
  15973. # Check whether --enable-sse3 was given.
  15974. if test "${enable_sse3+set}" = set; then :
  15975. enableval=$enable_sse3;
  15976. else
  15977. enable_sse3=$default_ssemath
  15978. fi
  15979. if test x$enable_sse3 = xyes; then
  15980. save_CFLAGS="$CFLAGS"
  15981. have_gcc_sse3=no
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15983. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15984. sse3_CFLAGS="-msse3"
  15985. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15987. /* end confdefs.h. */
  15988. #ifdef __MINGW32__
  15989. #include <_mingw.h>
  15990. #ifdef __MINGW64_VERSION_MAJOR
  15991. #include <intrin.h>
  15992. #else
  15993. #include <pmmintrin.h>
  15994. #endif
  15995. #else
  15996. #include <pmmintrin.h>
  15997. #endif
  15998. #ifndef __SSE2__
  15999. #error Assembler CPP flag not enabled
  16000. #endif
  16001. int
  16002. main ()
  16003. {
  16004. ;
  16005. return 0;
  16006. }
  16007. _ACEOF
  16008. if ac_fn_c_try_compile "$LINENO"; then :
  16009. have_gcc_sse3=yes
  16010. fi
  16011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16013. $as_echo "$have_gcc_sse3" >&6; }
  16014. CFLAGS="$save_CFLAGS"
  16015. if test x$have_gcc_sse3 = xyes; then
  16016. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16017. SUMMARY_math="${SUMMARY_math} sse3"
  16018. fi
  16019. fi
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16021. $as_echo_n "checking for immintrin.h... " >&6; }
  16022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16023. /* end confdefs.h. */
  16024. #include <immintrin.h>
  16025. int
  16026. main ()
  16027. {
  16028. ;
  16029. return 0;
  16030. }
  16031. _ACEOF
  16032. if ac_fn_c_try_compile "$LINENO"; then :
  16033. have_immintrin_h_hdr=yes
  16034. else
  16035. have_immintrin_h_hdr=no
  16036. fi
  16037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16039. $as_echo "$have_immintrin_h_hdr" >&6; }
  16040. if test x$have_immintrin_h_hdr = xyes; then
  16041. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16042. fi
  16043. # Check whether --enable-altivec was given.
  16044. if test "${enable_altivec+set}" = set; then :
  16045. enableval=$enable_altivec;
  16046. else
  16047. enable_altivec=yes
  16048. fi
  16049. if test x$enable_altivec = xyes; then
  16050. save_CFLAGS="$CFLAGS"
  16051. have_gcc_altivec=no
  16052. have_altivec_h_hdr=no
  16053. altivec_CFLAGS="-maltivec"
  16054. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16056. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. #include <altivec.h>
  16060. vector unsigned int vzero() {
  16061. return vec_splat_u32(0);
  16062. }
  16063. int
  16064. main ()
  16065. {
  16066. ;
  16067. return 0;
  16068. }
  16069. _ACEOF
  16070. if ac_fn_c_try_compile "$LINENO"; then :
  16071. have_gcc_altivec=yes
  16072. have_altivec_h_hdr=yes
  16073. fi
  16074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16076. $as_echo "$have_gcc_altivec" >&6; }
  16077. if test x$have_gcc_altivec = xno; then
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16079. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16081. /* end confdefs.h. */
  16082. vector unsigned int vzero() {
  16083. return vec_splat_u32(0);
  16084. }
  16085. int
  16086. main ()
  16087. {
  16088. ;
  16089. return 0;
  16090. }
  16091. _ACEOF
  16092. if ac_fn_c_try_compile "$LINENO"; then :
  16093. have_gcc_altivec=yes
  16094. fi
  16095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16097. $as_echo "$have_gcc_altivec" >&6; }
  16098. fi
  16099. if test x$have_gcc_altivec = xno; then
  16100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16101. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16102. altivec_CFLAGS="-faltivec"
  16103. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16105. /* end confdefs.h. */
  16106. #include <altivec.h>
  16107. vector unsigned int vzero() {
  16108. return vec_splat_u32(0);
  16109. }
  16110. int
  16111. main ()
  16112. {
  16113. ;
  16114. return 0;
  16115. }
  16116. _ACEOF
  16117. if ac_fn_c_try_compile "$LINENO"; then :
  16118. have_gcc_altivec=yes
  16119. have_altivec_h_hdr=yes
  16120. fi
  16121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16123. $as_echo "$have_gcc_altivec" >&6; }
  16124. fi
  16125. if test x$have_gcc_altivec = xno; then
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16127. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16129. /* end confdefs.h. */
  16130. vector unsigned int vzero() {
  16131. return vec_splat_u32(0);
  16132. }
  16133. int
  16134. main ()
  16135. {
  16136. ;
  16137. return 0;
  16138. }
  16139. _ACEOF
  16140. if ac_fn_c_try_compile "$LINENO"; then :
  16141. have_gcc_altivec=yes
  16142. fi
  16143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16145. $as_echo "$have_gcc_altivec" >&6; }
  16146. fi
  16147. CFLAGS="$save_CFLAGS"
  16148. if test x$have_gcc_altivec = xyes; then
  16149. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16150. if test x$have_altivec_h_hdr = xyes; then
  16151. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16152. fi
  16153. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16154. SUMMARY_math="${SUMMARY_math} altivec"
  16155. fi
  16156. fi
  16157. fi
  16158. CheckOSS()
  16159. {
  16160. # Check whether --enable-oss was given.
  16161. if test "${enable_oss+set}" = set; then :
  16162. enableval=$enable_oss;
  16163. else
  16164. enable_oss=maybe
  16165. fi
  16166. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16167. # use sndio instead. So on there, we default to disabled. You can force
  16168. # it on if you really want, though.
  16169. if test x$enable_oss = xmaybe; then
  16170. enable_oss=yes
  16171. case "$host" in
  16172. *-*-openbsd*)
  16173. enable_oss=no;;
  16174. esac
  16175. fi
  16176. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16178. $as_echo_n "checking for OSS audio support... " >&6; }
  16179. have_oss=no
  16180. if test x$have_oss != xyes; then
  16181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16182. /* end confdefs.h. */
  16183. #include <sys/soundcard.h>
  16184. int
  16185. main ()
  16186. {
  16187. int arg = SNDCTL_DSP_SETFRAGMENT;
  16188. ;
  16189. return 0;
  16190. }
  16191. _ACEOF
  16192. if ac_fn_c_try_compile "$LINENO"; then :
  16193. have_oss=yes
  16194. fi
  16195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16196. fi
  16197. if test x$have_oss != xyes; then
  16198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16199. /* end confdefs.h. */
  16200. #include <soundcard.h>
  16201. int
  16202. main ()
  16203. {
  16204. int arg = SNDCTL_DSP_SETFRAGMENT;
  16205. ;
  16206. return 0;
  16207. }
  16208. _ACEOF
  16209. if ac_fn_c_try_compile "$LINENO"; then :
  16210. have_oss=yes
  16211. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16212. fi
  16213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16214. fi
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16216. $as_echo "$have_oss" >&6; }
  16217. if test x$have_oss = xyes; then
  16218. SUMMARY_audio="${SUMMARY_audio} oss"
  16219. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16220. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16221. have_audio=yes
  16222. # We may need to link with ossaudio emulation library
  16223. case "$host" in
  16224. *-*-openbsd*|*-*-netbsd*)
  16225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16226. esac
  16227. fi
  16228. fi
  16229. }
  16230. CheckALSA()
  16231. {
  16232. # Check whether --enable-alsa was given.
  16233. if test "${enable_alsa+set}" = set; then :
  16234. enableval=$enable_alsa;
  16235. else
  16236. enable_alsa=yes
  16237. fi
  16238. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16239. alsa_save_CFLAGS="$CFLAGS"
  16240. alsa_save_LDFLAGS="$LDFLAGS"
  16241. alsa_save_LIBS="$LIBS"
  16242. alsa_found=yes
  16243. # Check whether --with-alsa-prefix was given.
  16244. if test "${with_alsa_prefix+set}" = set; then :
  16245. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16246. else
  16247. alsa_prefix=""
  16248. fi
  16249. # Check whether --with-alsa-inc-prefix was given.
  16250. if test "${with_alsa_inc_prefix+set}" = set; then :
  16251. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16252. else
  16253. alsa_inc_prefix=""
  16254. fi
  16255. # Check whether --enable-alsatest was given.
  16256. if test "${enable_alsatest+set}" = set; then :
  16257. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16258. else
  16259. enable_alsatest=yes
  16260. fi
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16262. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16263. if test "$alsa_inc_prefix" != "" ; then
  16264. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16265. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16266. fi
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16268. $as_echo "$ALSA_CFLAGS" >&6; }
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16270. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16271. if test "$alsa_prefix" != "" ; then
  16272. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16273. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16274. fi
  16275. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16276. LIBS=`echo $LIBS | sed 's/-lm//'`
  16277. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16278. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16279. LIBS=`echo $LIBS | sed 's/ //'`
  16280. LIBS="$ALSA_LIBS $LIBS"
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16282. $as_echo "$ALSA_LIBS" >&6; }
  16283. min_alsa_version=1.0.11
  16284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16285. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16286. no_alsa=""
  16287. alsa_min_major_version=`echo $min_alsa_version | \
  16288. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16289. alsa_min_minor_version=`echo $min_alsa_version | \
  16290. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16291. alsa_min_micro_version=`echo $min_alsa_version | \
  16292. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16293. ac_ext=c
  16294. ac_cpp='$CPP $CPPFLAGS'
  16295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16299. /* end confdefs.h. */
  16300. #include <alsa/asoundlib.h>
  16301. int
  16302. main ()
  16303. {
  16304. /* ensure backward compatibility */
  16305. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16306. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16307. #endif
  16308. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16309. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16310. #endif
  16311. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16312. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16313. #endif
  16314. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16315. exit(0);
  16316. # else
  16317. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16318. # error not present
  16319. # endif
  16320. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16321. exit(0);
  16322. # else
  16323. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16324. # error not present
  16325. # endif
  16326. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16327. # error not present
  16328. # endif
  16329. # endif
  16330. # endif
  16331. exit(0);
  16332. ;
  16333. return 0;
  16334. }
  16335. _ACEOF
  16336. if ac_fn_c_try_compile "$LINENO"; then :
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16338. $as_echo "found." >&6; }
  16339. else
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16341. $as_echo "not present." >&6; }
  16342. alsa_found=no
  16343. fi
  16344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16345. ac_ext=c
  16346. ac_cpp='$CPP $CPPFLAGS'
  16347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16350. if test "x$enable_alsatest" = "xyes"; then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16352. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16353. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16354. $as_echo_n "(cached) " >&6
  16355. else
  16356. ac_check_lib_save_LIBS=$LIBS
  16357. LIBS="-lasound $LIBS"
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. /* Override any GCC internal prototype to avoid an error.
  16361. Use char because int might match the return type of a GCC
  16362. builtin and then its argument prototype would still apply. */
  16363. #ifdef __cplusplus
  16364. extern "C"
  16365. #endif
  16366. char snd_ctl_open ();
  16367. int
  16368. main ()
  16369. {
  16370. return snd_ctl_open ();
  16371. ;
  16372. return 0;
  16373. }
  16374. _ACEOF
  16375. if ac_fn_c_try_link "$LINENO"; then :
  16376. ac_cv_lib_asound_snd_ctl_open=yes
  16377. else
  16378. ac_cv_lib_asound_snd_ctl_open=no
  16379. fi
  16380. rm -f core conftest.err conftest.$ac_objext \
  16381. conftest$ac_exeext conftest.$ac_ext
  16382. LIBS=$ac_check_lib_save_LIBS
  16383. fi
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16385. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16386. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16387. cat >>confdefs.h <<_ACEOF
  16388. #define HAVE_LIBASOUND 1
  16389. _ACEOF
  16390. LIBS="-lasound $LIBS"
  16391. else
  16392. alsa_found=no
  16393. fi
  16394. fi
  16395. if test "x$alsa_found" = "xyes" ; then
  16396. have_alsa=yes
  16397. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16398. LIBS=`echo $LIBS | sed 's/ //'`
  16399. LIBS="-lasound $LIBS"
  16400. fi
  16401. if test "x$alsa_found" = "xno" ; then
  16402. have_alsa=no
  16403. CFLAGS="$alsa_save_CFLAGS"
  16404. LDFLAGS="$alsa_save_LDFLAGS"
  16405. LIBS="$alsa_save_LIBS"
  16406. ALSA_CFLAGS=""
  16407. ALSA_LIBS=""
  16408. fi
  16409. # Restore all flags from before the ALSA detection runs
  16410. CFLAGS="$alsa_save_CFLAGS"
  16411. LDFLAGS="$alsa_save_LDFLAGS"
  16412. LIBS="$alsa_save_LIBS"
  16413. if test x$have_alsa = xyes; then
  16414. # Check whether --enable-alsa-shared was given.
  16415. if test "${enable_alsa_shared+set}" = set; then :
  16416. enableval=$enable_alsa_shared;
  16417. else
  16418. enable_alsa_shared=yes
  16419. fi
  16420. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16421. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16422. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16423. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16424. if test x$have_loadso != xyes && \
  16425. test x$enable_alsa_shared = xyes; then
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16427. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16428. fi
  16429. if test x$have_loadso = xyes && \
  16430. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16431. echo "-- dynamic libasound -> $alsa_lib"
  16432. cat >>confdefs.h <<_ACEOF
  16433. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16434. _ACEOF
  16435. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16436. else
  16437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16438. SUMMARY_audio="${SUMMARY_audio} alsa"
  16439. fi
  16440. have_audio=yes
  16441. fi
  16442. fi
  16443. }
  16444. CheckJACK()
  16445. {
  16446. # Check whether --enable-jack was given.
  16447. if test "${enable_jack+set}" = set; then :
  16448. enableval=$enable_jack;
  16449. else
  16450. enable_jack=yes
  16451. fi
  16452. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16453. pkg_failed=no
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16455. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16456. if test -n "$JACK_CFLAGS"; then
  16457. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16458. elif test -n "$PKG_CONFIG"; then
  16459. if test -n "$PKG_CONFIG" && \
  16460. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16461. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16462. ac_status=$?
  16463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16464. test $ac_status = 0; }; then
  16465. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16466. test "x$?" != "x0" && pkg_failed=yes
  16467. else
  16468. pkg_failed=yes
  16469. fi
  16470. else
  16471. pkg_failed=untried
  16472. fi
  16473. if test -n "$JACK_LIBS"; then
  16474. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16475. elif test -n "$PKG_CONFIG"; then
  16476. if test -n "$PKG_CONFIG" && \
  16477. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16478. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16479. ac_status=$?
  16480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16481. test $ac_status = 0; }; then
  16482. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16483. test "x$?" != "x0" && pkg_failed=yes
  16484. else
  16485. pkg_failed=yes
  16486. fi
  16487. else
  16488. pkg_failed=untried
  16489. fi
  16490. if test $pkg_failed = yes; then
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16492. $as_echo "no" >&6; }
  16493. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16494. _pkg_short_errors_supported=yes
  16495. else
  16496. _pkg_short_errors_supported=no
  16497. fi
  16498. if test $_pkg_short_errors_supported = yes; then
  16499. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16500. else
  16501. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16502. fi
  16503. # Put the nasty error message in config.log where it belongs
  16504. echo "$JACK_PKG_ERRORS" >&5
  16505. audio_jack=no
  16506. elif test $pkg_failed = untried; then
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16508. $as_echo "no" >&6; }
  16509. audio_jack=no
  16510. else
  16511. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16512. JACK_LIBS=$pkg_cv_JACK_LIBS
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16514. $as_echo "yes" >&6; }
  16515. audio_jack=yes
  16516. fi
  16517. if test x$audio_jack = xyes; then
  16518. # Check whether --enable-jack-shared was given.
  16519. if test "${enable_jack_shared+set}" = set; then :
  16520. enableval=$enable_jack_shared;
  16521. else
  16522. enable_jack_shared=yes
  16523. fi
  16524. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16525. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16526. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16527. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16528. if test x$have_loadso != xyes && \
  16529. test x$enable_jack_shared = xyes; then
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16531. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16532. fi
  16533. if test x$have_loadso = xyes && \
  16534. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16535. echo "-- dynamic libjack -> $jack_lib"
  16536. cat >>confdefs.h <<_ACEOF
  16537. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16538. _ACEOF
  16539. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16540. case "$host" in
  16541. # On Solaris, jack must be linked deferred explicitly
  16542. # to prevent undefined symbol failures.
  16543. *-*-solaris*)
  16544. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16546. esac
  16547. else
  16548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16549. SUMMARY_audio="${SUMMARY_audio} jack"
  16550. fi
  16551. have_audio=yes
  16552. fi
  16553. fi
  16554. }
  16555. CheckESD()
  16556. {
  16557. # Check whether --enable-esd was given.
  16558. if test "${enable_esd+set}" = set; then :
  16559. enableval=$enable_esd;
  16560. else
  16561. enable_esd=yes
  16562. fi
  16563. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16564. # Check whether --with-esd-prefix was given.
  16565. if test "${with_esd_prefix+set}" = set; then :
  16566. withval=$with_esd_prefix; esd_prefix="$withval"
  16567. else
  16568. esd_prefix=""
  16569. fi
  16570. # Check whether --with-esd-exec-prefix was given.
  16571. if test "${with_esd_exec_prefix+set}" = set; then :
  16572. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16573. else
  16574. esd_exec_prefix=""
  16575. fi
  16576. # Check whether --enable-esdtest was given.
  16577. if test "${enable_esdtest+set}" = set; then :
  16578. enableval=$enable_esdtest;
  16579. else
  16580. enable_esdtest=yes
  16581. fi
  16582. if test x$esd_exec_prefix != x ; then
  16583. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16584. if test x${ESD_CONFIG+set} != xset ; then
  16585. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16586. fi
  16587. fi
  16588. if test x$esd_prefix != x ; then
  16589. esd_args="$esd_args --prefix=$esd_prefix"
  16590. if test x${ESD_CONFIG+set} != xset ; then
  16591. ESD_CONFIG=$esd_prefix/bin/esd-config
  16592. fi
  16593. fi
  16594. # Extract the first word of "esd-config", so it can be a program name with args.
  16595. set dummy esd-config; ac_word=$2
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16597. $as_echo_n "checking for $ac_word... " >&6; }
  16598. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16599. $as_echo_n "(cached) " >&6
  16600. else
  16601. case $ESD_CONFIG in
  16602. [\\/]* | ?:[\\/]*)
  16603. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16604. ;;
  16605. *)
  16606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16607. for as_dir in $PATH
  16608. do
  16609. IFS=$as_save_IFS
  16610. test -z "$as_dir" && as_dir=.
  16611. for ac_exec_ext in '' $ac_executable_extensions; do
  16612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16613. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16615. break 2
  16616. fi
  16617. done
  16618. done
  16619. IFS=$as_save_IFS
  16620. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16621. ;;
  16622. esac
  16623. fi
  16624. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16625. if test -n "$ESD_CONFIG"; then
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16627. $as_echo "$ESD_CONFIG" >&6; }
  16628. else
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16630. $as_echo "no" >&6; }
  16631. fi
  16632. min_esd_version=0.2.8
  16633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16634. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16635. no_esd=""
  16636. if test "$ESD_CONFIG" = "no" ; then
  16637. no_esd=yes
  16638. else
  16639. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16640. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16641. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16642. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16643. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16644. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16645. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16646. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16647. if test "x$enable_esdtest" = "xyes" ; then
  16648. ac_ext=c
  16649. ac_cpp='$CPP $CPPFLAGS'
  16650. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16651. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16652. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16653. ac_save_CFLAGS="$CFLAGS"
  16654. ac_save_LIBS="$LIBS"
  16655. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16656. LIBS="$LIBS $ESD_LIBS"
  16657. rm -f conf.esdtest
  16658. if test "$cross_compiling" = yes; then :
  16659. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16660. else
  16661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16662. /* end confdefs.h. */
  16663. #include <stdio.h>
  16664. #include <stdlib.h>
  16665. #include <esd.h>
  16666. int main (void)
  16667. {
  16668. int major, minor, micro;
  16669. FILE *fp = fopen("conf.esdtest", "w");
  16670. if (fp) fclose(fp);
  16671. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16672. printf("%s, bad version string\n", "$min_esd_version");
  16673. exit(1);
  16674. }
  16675. if (($esd_major_version > major) ||
  16676. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16677. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16678. {
  16679. return 0;
  16680. }
  16681. else
  16682. {
  16683. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16684. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16685. printf("*** best to upgrade to the required version.\n");
  16686. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16687. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16688. printf("*** config.cache before re-running configure\n");
  16689. return 1;
  16690. }
  16691. }
  16692. _ACEOF
  16693. if ac_fn_c_try_run "$LINENO"; then :
  16694. else
  16695. no_esd=yes
  16696. fi
  16697. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16698. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16699. fi
  16700. CFLAGS="$ac_save_CFLAGS"
  16701. LIBS="$ac_save_LIBS"
  16702. ac_ext=c
  16703. ac_cpp='$CPP $CPPFLAGS'
  16704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16707. fi
  16708. fi
  16709. if test "x$no_esd" = x ; then
  16710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16711. $as_echo "yes" >&6; }
  16712. have_esd=yes
  16713. else
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16715. $as_echo "no" >&6; }
  16716. if test "$ESD_CONFIG" = "no" ; then
  16717. echo "*** The esd-config script installed by ESD could not be found"
  16718. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16719. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16720. echo "*** full path to esd-config."
  16721. else
  16722. if test -f conf.esdtest ; then
  16723. :
  16724. else
  16725. echo "*** Could not run ESD test program, checking why..."
  16726. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16727. LIBS="$LIBS $ESD_LIBS"
  16728. ac_ext=c
  16729. ac_cpp='$CPP $CPPFLAGS'
  16730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16734. /* end confdefs.h. */
  16735. #include <stdio.h>
  16736. #include <esd.h>
  16737. int
  16738. main ()
  16739. {
  16740. return 0;
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. if ac_fn_c_try_link "$LINENO"; then :
  16746. echo "*** The test program compiled, but did not run. This usually means"
  16747. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16748. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16749. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16750. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16751. echo "*** is required on your system"
  16752. echo "***"
  16753. echo "*** If you have an old version installed, it is best to remove it, although"
  16754. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16755. else
  16756. echo "*** The test program failed to compile or link. See the file config.log for the"
  16757. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16758. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16759. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16760. fi
  16761. rm -f core conftest.err conftest.$ac_objext \
  16762. conftest$ac_exeext conftest.$ac_ext
  16763. CFLAGS="$ac_save_CFLAGS"
  16764. LIBS="$ac_save_LIBS"
  16765. ac_ext=c
  16766. ac_cpp='$CPP $CPPFLAGS'
  16767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16770. fi
  16771. fi
  16772. ESD_CFLAGS=""
  16773. ESD_LIBS=""
  16774. have_esd=no
  16775. fi
  16776. rm -f conf.esdtest
  16777. if test x$have_esd = xyes; then
  16778. # Check whether --enable-esd-shared was given.
  16779. if test "${enable_esd_shared+set}" = set; then :
  16780. enableval=$enable_esd_shared;
  16781. else
  16782. enable_esd_shared=yes
  16783. fi
  16784. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16785. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16786. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16787. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16788. if test x$have_loadso != xyes && \
  16789. test x$enable_esd_shared = xyes; then
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16791. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16792. fi
  16793. if test x$have_loadso = xyes && \
  16794. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16795. echo "-- dynamic libesd -> $esd_lib"
  16796. cat >>confdefs.h <<_ACEOF
  16797. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16798. _ACEOF
  16799. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16800. else
  16801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16802. SUMMARY_audio="${SUMMARY_audio} esd"
  16803. fi
  16804. have_audio=yes
  16805. fi
  16806. fi
  16807. }
  16808. CheckPipewire()
  16809. {
  16810. # Check whether --enable-pipewire was given.
  16811. if test "${enable_pipewire+set}" = set; then :
  16812. enableval=$enable_pipewire;
  16813. else
  16814. enable_pipewire=yes
  16815. fi
  16816. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16817. pkg_failed=no
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16819. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16820. if test -n "$PIPEWIRE_CFLAGS"; then
  16821. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16822. elif test -n "$PKG_CONFIG"; then
  16823. if test -n "$PKG_CONFIG" && \
  16824. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16825. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16826. ac_status=$?
  16827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16828. test $ac_status = 0; }; then
  16829. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16830. test "x$?" != "x0" && pkg_failed=yes
  16831. else
  16832. pkg_failed=yes
  16833. fi
  16834. else
  16835. pkg_failed=untried
  16836. fi
  16837. if test -n "$PIPEWIRE_LIBS"; then
  16838. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16839. elif test -n "$PKG_CONFIG"; then
  16840. if test -n "$PKG_CONFIG" && \
  16841. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16842. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16843. ac_status=$?
  16844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16845. test $ac_status = 0; }; then
  16846. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16847. test "x$?" != "x0" && pkg_failed=yes
  16848. else
  16849. pkg_failed=yes
  16850. fi
  16851. else
  16852. pkg_failed=untried
  16853. fi
  16854. if test $pkg_failed = yes; then
  16855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16856. $as_echo "no" >&6; }
  16857. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16858. _pkg_short_errors_supported=yes
  16859. else
  16860. _pkg_short_errors_supported=no
  16861. fi
  16862. if test $_pkg_short_errors_supported = yes; then
  16863. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16864. else
  16865. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16866. fi
  16867. # Put the nasty error message in config.log where it belongs
  16868. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16869. audio_pipewire=no
  16870. elif test $pkg_failed = untried; then
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16872. $as_echo "no" >&6; }
  16873. audio_pipewire=no
  16874. else
  16875. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16876. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16878. $as_echo "yes" >&6; }
  16879. audio_pipewire=yes
  16880. fi
  16881. if test x$audio_pipewire = xyes; then
  16882. # Check whether --enable-pipewire-shared was given.
  16883. if test "${enable_pipewire_shared+set}" = set; then :
  16884. enableval=$enable_pipewire_shared;
  16885. else
  16886. enable_pipewire_shared=yes
  16887. fi
  16888. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16889. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16890. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16891. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16892. if test x$have_loadso != xyes && \
  16893. test x$enable_pipewire_shared = xyes; then
  16894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16895. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16896. fi
  16897. if test x$have_loadso = xyes && \
  16898. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16899. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16900. cat >>confdefs.h <<_ACEOF
  16901. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16902. _ACEOF
  16903. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16904. else
  16905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16906. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16907. fi
  16908. have_audio=yes
  16909. fi
  16910. fi
  16911. }
  16912. CheckPulseAudio()
  16913. {
  16914. # Check whether --enable-pulseaudio was given.
  16915. if test "${enable_pulseaudio+set}" = set; then :
  16916. enableval=$enable_pulseaudio;
  16917. else
  16918. enable_pulseaudio=yes
  16919. fi
  16920. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16921. pkg_failed=no
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16923. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16924. if test -n "$PULSEAUDIO_CFLAGS"; then
  16925. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16926. elif test -n "$PKG_CONFIG"; then
  16927. if test -n "$PKG_CONFIG" && \
  16928. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16929. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16930. ac_status=$?
  16931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16932. test $ac_status = 0; }; then
  16933. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16934. test "x$?" != "x0" && pkg_failed=yes
  16935. else
  16936. pkg_failed=yes
  16937. fi
  16938. else
  16939. pkg_failed=untried
  16940. fi
  16941. if test -n "$PULSEAUDIO_LIBS"; then
  16942. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16943. elif test -n "$PKG_CONFIG"; then
  16944. if test -n "$PKG_CONFIG" && \
  16945. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16946. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16947. ac_status=$?
  16948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16949. test $ac_status = 0; }; then
  16950. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16951. test "x$?" != "x0" && pkg_failed=yes
  16952. else
  16953. pkg_failed=yes
  16954. fi
  16955. else
  16956. pkg_failed=untried
  16957. fi
  16958. if test $pkg_failed = yes; then
  16959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16960. $as_echo "no" >&6; }
  16961. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16962. _pkg_short_errors_supported=yes
  16963. else
  16964. _pkg_short_errors_supported=no
  16965. fi
  16966. if test $_pkg_short_errors_supported = yes; then
  16967. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16968. else
  16969. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16970. fi
  16971. # Put the nasty error message in config.log where it belongs
  16972. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16973. audio_pulseaudio=no
  16974. elif test $pkg_failed = untried; then
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16976. $as_echo "no" >&6; }
  16977. audio_pulseaudio=no
  16978. else
  16979. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16980. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16982. $as_echo "yes" >&6; }
  16983. audio_pulseaudio=yes
  16984. fi
  16985. if test x$audio_pulseaudio = xyes; then
  16986. # Check whether --enable-pulseaudio-shared was given.
  16987. if test "${enable_pulseaudio_shared+set}" = set; then :
  16988. enableval=$enable_pulseaudio_shared;
  16989. else
  16990. enable_pulseaudio_shared=yes
  16991. fi
  16992. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16993. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16994. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16995. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16996. if test x$have_loadso != xyes && \
  16997. test x$enable_pulseaudio_shared = xyes; then
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16999. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17000. fi
  17001. if test x$have_loadso = xyes && \
  17002. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17003. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17004. cat >>confdefs.h <<_ACEOF
  17005. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17006. _ACEOF
  17007. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17008. case "$host" in
  17009. # On Solaris, pulseaudio must be linked deferred explicitly
  17010. # to prevent undefined symbol failures.
  17011. *-*-solaris*)
  17012. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17013. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17014. esac
  17015. else
  17016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17017. SUMMARY_audio="${SUMMARY_audio} pulse"
  17018. fi
  17019. have_audio=yes
  17020. fi
  17021. fi
  17022. }
  17023. CheckARTSC()
  17024. {
  17025. # Check whether --enable-arts was given.
  17026. if test "${enable_arts+set}" = set; then :
  17027. enableval=$enable_arts;
  17028. else
  17029. enable_arts=yes
  17030. fi
  17031. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17032. # Extract the first word of "artsc-config", so it can be a program name with args.
  17033. set dummy artsc-config; ac_word=$2
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17035. $as_echo_n "checking for $ac_word... " >&6; }
  17036. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17037. $as_echo_n "(cached) " >&6
  17038. else
  17039. case $ARTSCONFIG in
  17040. [\\/]* | ?:[\\/]*)
  17041. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17042. ;;
  17043. *)
  17044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17045. for as_dir in $PATH
  17046. do
  17047. IFS=$as_save_IFS
  17048. test -z "$as_dir" && as_dir=.
  17049. for ac_exec_ext in '' $ac_executable_extensions; do
  17050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17051. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17053. break 2
  17054. fi
  17055. done
  17056. done
  17057. IFS=$as_save_IFS
  17058. ;;
  17059. esac
  17060. fi
  17061. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17062. if test -n "$ARTSCONFIG"; then
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17064. $as_echo "$ARTSCONFIG" >&6; }
  17065. else
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17067. $as_echo "no" >&6; }
  17068. fi
  17069. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17070. : # arts isn't installed
  17071. else
  17072. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17073. ARTS_LIBS=`$ARTSCONFIG --libs`
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17075. $as_echo_n "checking for aRts development environment... " >&6; }
  17076. audio_arts=no
  17077. save_CFLAGS="$CFLAGS"
  17078. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17080. /* end confdefs.h. */
  17081. #include <artsc.h>
  17082. int
  17083. main ()
  17084. {
  17085. arts_stream_t stream;
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. if ac_fn_c_try_compile "$LINENO"; then :
  17091. audio_arts=yes
  17092. fi
  17093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17094. CFLAGS="$save_CFLAGS"
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17096. $as_echo "$audio_arts" >&6; }
  17097. if test x$audio_arts = xyes; then
  17098. # Check whether --enable-arts-shared was given.
  17099. if test "${enable_arts_shared+set}" = set; then :
  17100. enableval=$enable_arts_shared;
  17101. else
  17102. enable_arts_shared=yes
  17103. fi
  17104. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17105. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17106. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17107. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17108. if test x$have_loadso != xyes && \
  17109. test x$enable_arts_shared = xyes; then
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17111. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17112. fi
  17113. if test x$have_loadso = xyes && \
  17114. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17115. echo "-- dynamic libartsc -> $arts_lib"
  17116. cat >>confdefs.h <<_ACEOF
  17117. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17118. _ACEOF
  17119. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17120. else
  17121. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17122. SUMMARY_audio="${SUMMARY_audio} arts"
  17123. fi
  17124. have_audio=yes
  17125. fi
  17126. fi
  17127. fi
  17128. }
  17129. CheckNAS()
  17130. {
  17131. # Check whether --enable-nas was given.
  17132. if test "${enable_nas+set}" = set; then :
  17133. enableval=$enable_nas;
  17134. else
  17135. enable_nas=yes
  17136. fi
  17137. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17138. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17139. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17140. have_nas_hdr=yes
  17141. fi
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17143. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17144. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17145. $as_echo_n "(cached) " >&6
  17146. else
  17147. ac_check_lib_save_LIBS=$LIBS
  17148. LIBS="-laudio $LIBS"
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. /* Override any GCC internal prototype to avoid an error.
  17152. Use char because int might match the return type of a GCC
  17153. builtin and then its argument prototype would still apply. */
  17154. #ifdef __cplusplus
  17155. extern "C"
  17156. #endif
  17157. char AuOpenServer ();
  17158. int
  17159. main ()
  17160. {
  17161. return AuOpenServer ();
  17162. ;
  17163. return 0;
  17164. }
  17165. _ACEOF
  17166. if ac_fn_c_try_link "$LINENO"; then :
  17167. ac_cv_lib_audio_AuOpenServer=yes
  17168. else
  17169. ac_cv_lib_audio_AuOpenServer=no
  17170. fi
  17171. rm -f core conftest.err conftest.$ac_objext \
  17172. conftest$ac_exeext conftest.$ac_ext
  17173. LIBS=$ac_check_lib_save_LIBS
  17174. fi
  17175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17176. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17177. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17178. have_nas_lib=yes
  17179. fi
  17180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17181. $as_echo_n "checking for NAS audio support... " >&6; }
  17182. have_nas=no
  17183. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17184. have_nas=yes
  17185. NAS_LIBS="-laudio"
  17186. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17187. have_nas=yes
  17188. NAS_CFLAGS="-I/usr/X11R6/include/"
  17189. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17190. fi
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17192. $as_echo "$have_nas" >&6; }
  17193. if test x$have_nas = xyes; then
  17194. # Check whether --enable-nas-shared was given.
  17195. if test "${enable_nas_shared+set}" = set; then :
  17196. enableval=$enable_nas_shared;
  17197. else
  17198. enable_nas_shared=yes
  17199. fi
  17200. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17201. if test x$have_loadso != xyes && \
  17202. test x$enable_nas_shared = xyes; then
  17203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17204. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17205. fi
  17206. if test x$have_loadso = xyes && \
  17207. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17208. echo "-- dynamic libaudio -> $nas_lib"
  17209. cat >>confdefs.h <<_ACEOF
  17210. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17211. _ACEOF
  17212. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17213. else
  17214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17215. SUMMARY_audio="${SUMMARY_audio} nas"
  17216. fi
  17217. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17218. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17219. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17220. have_audio=yes
  17221. fi
  17222. fi
  17223. }
  17224. CheckSNDIO()
  17225. {
  17226. # Check whether --enable-sndio was given.
  17227. if test "${enable_sndio+set}" = set; then :
  17228. enableval=$enable_sndio;
  17229. else
  17230. enable_sndio=yes
  17231. fi
  17232. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17233. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17234. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17235. have_sndio_hdr=yes
  17236. fi
  17237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17238. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17239. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17240. $as_echo_n "(cached) " >&6
  17241. else
  17242. ac_check_lib_save_LIBS=$LIBS
  17243. LIBS="-lsndio $LIBS"
  17244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17245. /* end confdefs.h. */
  17246. /* Override any GCC internal prototype to avoid an error.
  17247. Use char because int might match the return type of a GCC
  17248. builtin and then its argument prototype would still apply. */
  17249. #ifdef __cplusplus
  17250. extern "C"
  17251. #endif
  17252. char sio_open ();
  17253. int
  17254. main ()
  17255. {
  17256. return sio_open ();
  17257. ;
  17258. return 0;
  17259. }
  17260. _ACEOF
  17261. if ac_fn_c_try_link "$LINENO"; then :
  17262. ac_cv_lib_sndio_sio_open=yes
  17263. else
  17264. ac_cv_lib_sndio_sio_open=no
  17265. fi
  17266. rm -f core conftest.err conftest.$ac_objext \
  17267. conftest$ac_exeext conftest.$ac_ext
  17268. LIBS=$ac_check_lib_save_LIBS
  17269. fi
  17270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17271. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17272. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17273. have_sndio_lib=yes
  17274. fi
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17276. $as_echo_n "checking for sndio audio support... " >&6; }
  17277. have_sndio=no
  17278. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17279. have_sndio=yes
  17280. SNDIO_LIBS="-lsndio"
  17281. fi
  17282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17283. $as_echo "$have_sndio" >&6; }
  17284. if test x$have_sndio = xyes; then
  17285. # Check whether --enable-sndio-shared was given.
  17286. if test "${enable_sndio_shared+set}" = set; then :
  17287. enableval=$enable_sndio_shared;
  17288. else
  17289. enable_sndio_shared=yes
  17290. fi
  17291. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17292. if test x$have_loadso != xyes && \
  17293. test x$enable_sndio_shared = xyes; then
  17294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17295. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17296. fi
  17297. if test x$have_loadso = xyes && \
  17298. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17299. echo "-- dynamic libsndio -> $sndio_lib"
  17300. cat >>confdefs.h <<_ACEOF
  17301. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17302. _ACEOF
  17303. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17304. else
  17305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17306. SUMMARY_audio="${SUMMARY_audio} sndio"
  17307. fi
  17308. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17309. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17310. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17311. have_audio=yes
  17312. fi
  17313. fi
  17314. }
  17315. CheckFusionSound()
  17316. {
  17317. # Check whether --enable-fusionsound was given.
  17318. if test "${enable_fusionsound+set}" = set; then :
  17319. enableval=$enable_fusionsound;
  17320. else
  17321. enable_fusionsound=no
  17322. fi
  17323. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17324. pkg_failed=no
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17326. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17327. if test -n "$FUSIONSOUND_CFLAGS"; then
  17328. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17329. elif test -n "$PKG_CONFIG"; then
  17330. if test -n "$PKG_CONFIG" && \
  17331. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17332. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17333. ac_status=$?
  17334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17335. test $ac_status = 0; }; then
  17336. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17337. test "x$?" != "x0" && pkg_failed=yes
  17338. else
  17339. pkg_failed=yes
  17340. fi
  17341. else
  17342. pkg_failed=untried
  17343. fi
  17344. if test -n "$FUSIONSOUND_LIBS"; then
  17345. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17346. elif test -n "$PKG_CONFIG"; then
  17347. if test -n "$PKG_CONFIG" && \
  17348. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17349. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17350. ac_status=$?
  17351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17352. test $ac_status = 0; }; then
  17353. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17354. test "x$?" != "x0" && pkg_failed=yes
  17355. else
  17356. pkg_failed=yes
  17357. fi
  17358. else
  17359. pkg_failed=untried
  17360. fi
  17361. if test $pkg_failed = yes; then
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17363. $as_echo "no" >&6; }
  17364. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17365. _pkg_short_errors_supported=yes
  17366. else
  17367. _pkg_short_errors_supported=no
  17368. fi
  17369. if test $_pkg_short_errors_supported = yes; then
  17370. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17371. else
  17372. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17373. fi
  17374. # Put the nasty error message in config.log where it belongs
  17375. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17376. fusionsound=no
  17377. elif test $pkg_failed = untried; then
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17379. $as_echo "no" >&6; }
  17380. fusionsound=no
  17381. else
  17382. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17383. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17385. $as_echo "yes" >&6; }
  17386. fusionsound=yes
  17387. fi
  17388. if test x$fusionsound = xyes; then
  17389. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17390. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17391. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17392. # Check whether --enable-fusionsound-shared was given.
  17393. if test "${enable_fusionsound_shared+set}" = set; then :
  17394. enableval=$enable_fusionsound_shared;
  17395. else
  17396. enable_fusionsound_shared=yes
  17397. fi
  17398. fusionsound_shared=no
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17400. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17401. if test x$have_loadso != xyes && \
  17402. test x$enable_fusionsound_shared = xyes; then
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17404. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17405. fi
  17406. if test x$have_loadso = xyes && \
  17407. test x$enable_fusionsound_shared = xyes; then
  17408. cat >>confdefs.h <<_ACEOF
  17409. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17410. _ACEOF
  17411. fusionsound_shared=yes
  17412. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17413. else
  17414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17415. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17416. fi
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17418. $as_echo "$fusionsound_shared" >&6; }
  17419. have_audio=yes
  17420. fi
  17421. fi
  17422. }
  17423. CheckDiskAudio()
  17424. {
  17425. # Check whether --enable-diskaudio was given.
  17426. if test "${enable_diskaudio+set}" = set; then :
  17427. enableval=$enable_diskaudio;
  17428. else
  17429. enable_diskaudio=yes
  17430. fi
  17431. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17432. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17433. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17434. SUMMARY_audio="${SUMMARY_audio} disk"
  17435. have_audio=yes
  17436. fi
  17437. }
  17438. CheckDummyAudio()
  17439. {
  17440. # Check whether --enable-dummyaudio was given.
  17441. if test "${enable_dummyaudio+set}" = set; then :
  17442. enableval=$enable_dummyaudio;
  17443. else
  17444. enable_dummyaudio=yes
  17445. fi
  17446. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17447. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17448. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17449. SUMMARY_audio="${SUMMARY_audio} dummy"
  17450. have_audio=yes
  17451. fi
  17452. }
  17453. CheckLibSampleRate()
  17454. {
  17455. # Check whether --enable-libsamplerate was given.
  17456. if test "${enable_libsamplerate+set}" = set; then :
  17457. enableval=$enable_libsamplerate;
  17458. else
  17459. enable_libsamplerate=yes
  17460. fi
  17461. if test x$enable_libsamplerate = xyes; then
  17462. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17463. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17464. have_samplerate_h_hdr=yes
  17465. else
  17466. have_samplerate_h_hdr=no
  17467. fi
  17468. if test x$have_samplerate_h_hdr = xyes; then
  17469. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17470. # Check whether --enable-libsamplerate-shared was given.
  17471. if test "${enable_libsamplerate_shared+set}" = set; then :
  17472. enableval=$enable_libsamplerate_shared;
  17473. else
  17474. enable_libsamplerate_shared=yes
  17475. fi
  17476. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17477. if test x$have_loadso != xyes && \
  17478. test x$enable_libsamplerate_shared = xyes; then
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17480. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17481. fi
  17482. if test x$have_loadso = xyes && \
  17483. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17484. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17485. cat >>confdefs.h <<_ACEOF
  17486. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17487. _ACEOF
  17488. else
  17489. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17490. fi
  17491. fi
  17492. fi
  17493. }
  17494. CheckARM()
  17495. {
  17496. # Check whether --enable-arm-simd was given.
  17497. if test "${enable_arm_simd+set}" = set; then :
  17498. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17499. else
  17500. enable_arm_simd=no
  17501. fi
  17502. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17503. save_CFLAGS="$CFLAGS"
  17504. have_arm_simd=no
  17505. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17507. $as_echo_n "checking for ARM SIMD... " >&6; }
  17508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17509. /* end confdefs.h. */
  17510. .text
  17511. .arch armv6
  17512. .object_arch armv4
  17513. .arm
  17514. .altmacro
  17515. #ifndef __ARM_EABI__
  17516. #error EABI is required (to be sure that calling conventions are compatible)
  17517. #endif
  17518. pld [r0]
  17519. uqadd8 r0, r0, r0
  17520. _ACEOF
  17521. if ac_fn_c_try_compile "$LINENO"; then :
  17522. have_arm_simd=yes
  17523. fi
  17524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17526. $as_echo "$have_arm_simd" >&6; }
  17527. CFLAGS="$save_CFLAGS"
  17528. if test x$have_arm_simd = xyes; then
  17529. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17530. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17531. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17532. fi
  17533. fi
  17534. }
  17535. CheckNEON()
  17536. {
  17537. # Check whether --enable-arm-neon was given.
  17538. if test "${enable_arm_neon+set}" = set; then :
  17539. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17540. else
  17541. enable_arm_neon=no
  17542. fi
  17543. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17544. save_CFLAGS="$CFLAGS"
  17545. have_arm_neon=no
  17546. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17548. $as_echo_n "checking for ARM NEON... " >&6; }
  17549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17550. /* end confdefs.h. */
  17551. .text
  17552. .fpu neon
  17553. .arch armv7a
  17554. .object_arch armv4
  17555. .eabi_attribute 10, 0
  17556. .arm
  17557. .altmacro
  17558. #ifndef __ARM_EABI__
  17559. #error EABI is required (to be sure that calling conventions are compatible)
  17560. #endif
  17561. pld [r0]
  17562. vmovn.u16 d0, q0
  17563. _ACEOF
  17564. if ac_fn_c_try_compile "$LINENO"; then :
  17565. have_arm_neon=yes
  17566. fi
  17567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17569. $as_echo "$have_arm_neon" >&6; }
  17570. CFLAGS="$save_CFLAGS"
  17571. if test x$have_arm_neon = xyes; then
  17572. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17573. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17574. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17575. fi
  17576. fi
  17577. }
  17578. CheckObjectiveCARC()
  17579. {
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17581. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17582. have_clang_objc_arc=no
  17583. save_CFLAGS="$CFLAGS"
  17584. CFLAGS="$save_CFLAGS -fobjc-arc"
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. int x = 0;
  17588. int
  17589. main ()
  17590. {
  17591. ;
  17592. return 0;
  17593. }
  17594. _ACEOF
  17595. if ac_fn_c_try_compile "$LINENO"; then :
  17596. have_clang_objc_arc=yes
  17597. fi
  17598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17600. $as_echo "$have_clang_objc_arc" >&6; }
  17601. CFLAGS="$save_CFLAGS"
  17602. if test x$have_clang_objc_arc = xyes; then
  17603. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17604. fi
  17605. }
  17606. CheckVisibilityHidden()
  17607. {
  17608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17609. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17610. have_gcc_fvisibility=no
  17611. visibility_CFLAGS="-fvisibility=hidden"
  17612. save_CFLAGS="$CFLAGS"
  17613. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17615. /* end confdefs.h. */
  17616. #if !defined(__GNUC__) || __GNUC__ < 4
  17617. #error SDL only uses visibility attributes in GCC 4 or newer
  17618. #endif
  17619. int
  17620. main ()
  17621. {
  17622. ;
  17623. return 0;
  17624. }
  17625. _ACEOF
  17626. if ac_fn_c_try_compile "$LINENO"; then :
  17627. have_gcc_fvisibility=yes
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17631. $as_echo "$have_gcc_fvisibility" >&6; }
  17632. CFLAGS="$save_CFLAGS"
  17633. if test x$have_gcc_fvisibility = xyes; then
  17634. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17635. fi
  17636. }
  17637. CheckNoStrictAliasing()
  17638. {
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17640. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17641. have_gcc_no_strict_aliasing=no
  17642. save_CFLAGS="$CFLAGS"
  17643. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17645. /* end confdefs.h. */
  17646. int x = 0;
  17647. int
  17648. main ()
  17649. {
  17650. ;
  17651. return 0;
  17652. }
  17653. _ACEOF
  17654. if ac_fn_c_try_compile "$LINENO"; then :
  17655. have_gcc_no_strict_aliasing=yes
  17656. fi
  17657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17659. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17660. CFLAGS="$save_CFLAGS"
  17661. if test x$have_gcc_no_strict_aliasing = xyes; then
  17662. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17663. fi
  17664. }
  17665. CheckStackBoundary()
  17666. {
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17668. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17669. have_gcc_preferred_stack_boundary=no
  17670. save_CFLAGS="$CFLAGS"
  17671. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17673. /* end confdefs.h. */
  17674. int x = 0;
  17675. int
  17676. main ()
  17677. {
  17678. ;
  17679. return 0;
  17680. }
  17681. _ACEOF
  17682. if ac_fn_c_try_compile "$LINENO"; then :
  17683. have_gcc_preferred_stack_boundary=yes
  17684. fi
  17685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17687. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17688. CFLAGS="$save_CFLAGS"
  17689. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17690. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17691. fi
  17692. }
  17693. CheckDeclarationAfterStatement()
  17694. {
  17695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17696. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17697. have_gcc_declaration_after_statement=no
  17698. save_CFLAGS="$CFLAGS"
  17699. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17701. /* end confdefs.h. */
  17702. int x = 0;
  17703. int
  17704. main ()
  17705. {
  17706. ;
  17707. return 0;
  17708. }
  17709. _ACEOF
  17710. if ac_fn_c_try_compile "$LINENO"; then :
  17711. have_gcc_declaration_after_statement=yes
  17712. fi
  17713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17715. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17716. CFLAGS="$save_CFLAGS"
  17717. if test x$have_gcc_declaration_after_statement = xyes; then
  17718. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17719. fi
  17720. }
  17721. CheckWarnAll()
  17722. {
  17723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17724. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17725. have_gcc_Wall=no
  17726. save_CFLAGS="$CFLAGS"
  17727. CFLAGS="$save_CFLAGS -Wall"
  17728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17729. /* end confdefs.h. */
  17730. int x = 0;
  17731. int
  17732. main ()
  17733. {
  17734. ;
  17735. return 0;
  17736. }
  17737. _ACEOF
  17738. if ac_fn_c_try_compile "$LINENO"; then :
  17739. have_gcc_Wall=yes
  17740. fi
  17741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17743. $as_echo "$have_gcc_Wall" >&6; }
  17744. CFLAGS="$save_CFLAGS"
  17745. if test x$have_gcc_Wall = xyes; then
  17746. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17748. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17749. need_gcc_Wno_multichar=no
  17750. case "$host" in
  17751. *-*-haiku*)
  17752. need_gcc_Wno_multichar=yes
  17753. ;;
  17754. esac
  17755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17756. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17757. if test x$need_gcc_Wno_multichar = xyes; then
  17758. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17759. fi
  17760. fi
  17761. }
  17762. CheckWayland()
  17763. {
  17764. # Check whether --enable-video-wayland was given.
  17765. if test "${enable_video_wayland+set}" = set; then :
  17766. enableval=$enable_video_wayland;
  17767. else
  17768. enable_video_wayland=yes
  17769. fi
  17770. # Check whether --enable-video-wayland-qt-touch was given.
  17771. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17772. enableval=$enable_video_wayland_qt_touch;
  17773. else
  17774. enable_video_wayland_qt_touch=yes
  17775. fi
  17776. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17778. $as_echo_n "checking for Wayland support... " >&6; }
  17779. video_wayland=no
  17780. if test x$video_opengl_egl = xyes && \
  17781. test x$video_opengles_v2 = xyes; then
  17782. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17783. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17784. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17785. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17786. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17787. WAYLAND_SCANNER_CODE_MODE=private-code
  17788. else
  17789. WAYLAND_SCANNER_CODE_MODE=code
  17790. fi
  17791. video_wayland=yes
  17792. fi
  17793. fi
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17795. $as_echo "$video_wayland" >&6; }
  17796. if test x$video_wayland = xyes; then
  17797. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17798. if test x$enable_video_wayland_qt_touch = xyes; then
  17799. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17800. fi
  17801. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17802. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17803. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17804. # Check whether --enable-wayland-shared was given.
  17805. if test "${enable_wayland_shared+set}" = set; then :
  17806. enableval=$enable_wayland_shared;
  17807. else
  17808. enable_wayland_shared=maybe
  17809. fi
  17810. case "$host" in
  17811. *)
  17812. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17813. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17814. if test x$wayland_egl_lib = x; then
  17815. # This works in Ubuntu 13.10, maybe others
  17816. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17817. fi
  17818. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17819. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17820. ;;
  17821. esac
  17822. if test x$enable_wayland_shared = xmaybe; then
  17823. enable_wayland_shared=yes
  17824. fi
  17825. if test x$have_loadso != xyes && \
  17826. test x$enable_wayland_shared = xyes; then
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17828. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17829. enable_wayland_shared=no
  17830. fi
  17831. if test x$have_loadso = xyes && \
  17832. test x$enable_wayland_shared = xyes && \
  17833. test x$wayland_client_lib != x && \
  17834. test x$wayland_egl_lib != x && \
  17835. test x$wayland_cursor_lib != x && \
  17836. test x$xkbcommon_lib != x; then
  17837. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17838. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17839. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17840. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17841. cat >>confdefs.h <<_ACEOF
  17842. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17843. _ACEOF
  17844. cat >>confdefs.h <<_ACEOF
  17845. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17846. _ACEOF
  17847. cat >>confdefs.h <<_ACEOF
  17848. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17849. _ACEOF
  17850. cat >>confdefs.h <<_ACEOF
  17851. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17852. _ACEOF
  17853. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17854. else
  17855. enable_wayland_shared=no
  17856. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17857. SUMMARY_video="${SUMMARY_video} wayland"
  17858. fi
  17859. have_video=yes
  17860. # Check whether --enable-libdecor was given.
  17861. if test "${enable_libdecor+set}" = set; then :
  17862. enableval=$enable_libdecor;
  17863. else
  17864. enable_libdecor=yes
  17865. fi
  17866. if test x$enable_libdecor = xyes; then
  17867. pkg_failed=no
  17868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17869. $as_echo_n "checking for libdecor-0... " >&6; }
  17870. if test -n "$DECOR_CFLAGS"; then
  17871. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17872. elif test -n "$PKG_CONFIG"; then
  17873. if test -n "$PKG_CONFIG" && \
  17874. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17875. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17876. ac_status=$?
  17877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17878. test $ac_status = 0; }; then
  17879. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17880. test "x$?" != "x0" && pkg_failed=yes
  17881. else
  17882. pkg_failed=yes
  17883. fi
  17884. else
  17885. pkg_failed=untried
  17886. fi
  17887. if test -n "$DECOR_LIBS"; then
  17888. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17889. elif test -n "$PKG_CONFIG"; then
  17890. if test -n "$PKG_CONFIG" && \
  17891. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17892. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17893. ac_status=$?
  17894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17895. test $ac_status = 0; }; then
  17896. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17897. test "x$?" != "x0" && pkg_failed=yes
  17898. else
  17899. pkg_failed=yes
  17900. fi
  17901. else
  17902. pkg_failed=untried
  17903. fi
  17904. if test $pkg_failed = yes; then
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17906. $as_echo "no" >&6; }
  17907. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17908. _pkg_short_errors_supported=yes
  17909. else
  17910. _pkg_short_errors_supported=no
  17911. fi
  17912. if test $_pkg_short_errors_supported = yes; then
  17913. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17914. else
  17915. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17916. fi
  17917. # Put the nasty error message in config.log where it belongs
  17918. echo "$DECOR_PKG_ERRORS" >&5
  17919. video_libdecor=no
  17920. elif test $pkg_failed = untried; then
  17921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17922. $as_echo "no" >&6; }
  17923. video_libdecor=no
  17924. else
  17925. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17926. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17928. $as_echo "yes" >&6; }
  17929. video_libdecor=yes
  17930. fi
  17931. if test x$video_libdecor = xyes; then
  17932. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17933. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17934. # Check whether --enable-libdecor-shared was given.
  17935. if test "${enable_libdecor_shared+set}" = set; then :
  17936. enableval=$enable_libdecor_shared;
  17937. else
  17938. enable_libdecor_shared=yes
  17939. fi
  17940. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17941. if test x$enable_wayland_shared != xyes; then
  17942. enable_libdecor_shared=no
  17943. fi
  17944. if test x$have_loadso != xyes && \
  17945. test x$enable_libdecor_shared = xyes; then
  17946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17947. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17948. fi
  17949. if test x$have_loadso = xyes && \
  17950. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17951. echo "-- dynamic libdecor -> $decor_lib"
  17952. cat >>confdefs.h <<_ACEOF
  17953. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17954. _ACEOF
  17955. else
  17956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17957. fi
  17958. fi
  17959. fi
  17960. fi
  17961. fi
  17962. }
  17963. CheckNativeClient()
  17964. {
  17965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17966. /* end confdefs.h. */
  17967. #if !defined(__native_client__)
  17968. #error "NO NACL"
  17969. #endif
  17970. int
  17971. main ()
  17972. {
  17973. ;
  17974. return 0;
  17975. }
  17976. _ACEOF
  17977. if ac_fn_c_try_compile "$LINENO"; then :
  17978. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17979. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17980. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17981. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17982. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17983. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17984. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17985. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17986. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17987. SUMMARY_audio="${SUMMARY_audio} nacl"
  17988. have_audio=yes
  17989. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17990. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17991. have_video=yes
  17992. fi
  17993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17994. }
  17995. CheckRPI()
  17996. {
  17997. # Check whether --enable-video-rpi was given.
  17998. if test "${enable_video_rpi+set}" = set; then :
  17999. enableval=$enable_video_rpi;
  18000. else
  18001. enable_video_rpi=yes
  18002. fi
  18003. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18004. pkg_failed=no
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18006. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18007. if test -n "$RPI_CFLAGS"; then
  18008. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18009. elif test -n "$PKG_CONFIG"; then
  18010. if test -n "$PKG_CONFIG" && \
  18011. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18012. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18013. ac_status=$?
  18014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18015. test $ac_status = 0; }; then
  18016. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18017. test "x$?" != "x0" && pkg_failed=yes
  18018. else
  18019. pkg_failed=yes
  18020. fi
  18021. else
  18022. pkg_failed=untried
  18023. fi
  18024. if test -n "$RPI_LIBS"; then
  18025. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18026. elif test -n "$PKG_CONFIG"; then
  18027. if test -n "$PKG_CONFIG" && \
  18028. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18029. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18030. ac_status=$?
  18031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18032. test $ac_status = 0; }; then
  18033. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18034. test "x$?" != "x0" && pkg_failed=yes
  18035. else
  18036. pkg_failed=yes
  18037. fi
  18038. else
  18039. pkg_failed=untried
  18040. fi
  18041. if test $pkg_failed = yes; then
  18042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18043. $as_echo "no" >&6; }
  18044. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18045. _pkg_short_errors_supported=yes
  18046. else
  18047. _pkg_short_errors_supported=no
  18048. fi
  18049. if test $_pkg_short_errors_supported = yes; then
  18050. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18051. else
  18052. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18053. fi
  18054. # Put the nasty error message in config.log where it belongs
  18055. echo "$RPI_PKG_ERRORS" >&5
  18056. video_rpi=no
  18057. elif test $pkg_failed = untried; then
  18058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18059. $as_echo "no" >&6; }
  18060. video_rpi=no
  18061. else
  18062. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18063. RPI_LIBS=$pkg_cv_RPI_LIBS
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18065. $as_echo "yes" >&6; }
  18066. video_rpi=yes
  18067. fi
  18068. if test x$video_rpi = xno; then
  18069. if test x$ARCH = xnetbsd; then
  18070. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18071. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18072. else
  18073. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18074. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18075. fi
  18076. fi
  18077. # Save the original compiler flags and libraries
  18078. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18079. # Add the Raspberry Pi compiler flags and libraries
  18080. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18082. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18083. have_video_rpi=no
  18084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18085. /* end confdefs.h. */
  18086. #include <bcm_host.h>
  18087. #include <EGL/eglplatform.h>
  18088. int
  18089. main ()
  18090. {
  18091. EGL_DISPMANX_WINDOW_T window;
  18092. bcm_host_init();
  18093. ;
  18094. return 0;
  18095. }
  18096. _ACEOF
  18097. if ac_fn_c_try_link "$LINENO"; then :
  18098. have_video_rpi=yes
  18099. fi
  18100. rm -f core conftest.err conftest.$ac_objext \
  18101. conftest$ac_exeext conftest.$ac_ext
  18102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18103. $as_echo "$have_video_rpi" >&6; }
  18104. # Restore the compiler flags and libraries
  18105. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18106. if test x$have_video_rpi = xyes; then
  18107. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18108. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18109. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18111. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18112. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18113. SUMMARY_video="${SUMMARY_video} rpi"
  18114. have_video=yes
  18115. fi
  18116. fi
  18117. }
  18118. CheckX11()
  18119. {
  18120. # Check whether --enable-video-x11 was given.
  18121. if test "${enable_video_x11+set}" = set; then :
  18122. enableval=$enable_video_x11;
  18123. else
  18124. enable_video_x11=yes
  18125. fi
  18126. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18127. case "$host" in
  18128. *-*-darwin*)
  18129. # This isn't necessary for X11, but fixes GLX detection
  18130. if test "x$x_includes" = xNONE && \
  18131. test "x$x_libraries" = xNONE && \
  18132. test -d /opt/X11/include && \
  18133. test -d /opt/X11/lib; then
  18134. x_includes="/opt/X11/include"
  18135. x_libraries="/opt/X11/lib"
  18136. fi
  18137. ;;
  18138. esac
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18140. $as_echo_n "checking for X... " >&6; }
  18141. # Check whether --with-x was given.
  18142. if test "${with_x+set}" = set; then :
  18143. withval=$with_x;
  18144. fi
  18145. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18146. if test "x$with_x" = xno; then
  18147. # The user explicitly disabled X.
  18148. have_x=disabled
  18149. else
  18150. case $x_includes,$x_libraries in #(
  18151. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18152. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18153. $as_echo_n "(cached) " >&6
  18154. else
  18155. # One or both of the vars are not set, and there is no cached value.
  18156. ac_x_includes=no
  18157. ac_x_libraries=no
  18158. # Do we need to do anything special at all?
  18159. ac_save_LIBS=$LIBS
  18160. LIBS="-lX11 $LIBS"
  18161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18162. /* end confdefs.h. */
  18163. #include <X11/Xlib.h>
  18164. int
  18165. main ()
  18166. {
  18167. XrmInitialize ()
  18168. ;
  18169. return 0;
  18170. }
  18171. _ACEOF
  18172. if ac_fn_c_try_link "$LINENO"; then :
  18173. # We can compile and link X programs with no special options.
  18174. ac_x_includes=
  18175. ac_x_libraries=
  18176. fi
  18177. rm -f core conftest.err conftest.$ac_objext \
  18178. conftest$ac_exeext conftest.$ac_ext
  18179. LIBS="$ac_save_LIBS"
  18180. # If that didn't work, only try xmkmf and filesystem searches
  18181. # for native compilation.
  18182. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18183. rm -f -r conftest.dir
  18184. if mkdir conftest.dir; then
  18185. cd conftest.dir
  18186. cat >Imakefile <<'_ACEOF'
  18187. incroot:
  18188. @echo incroot='${INCROOT}'
  18189. usrlibdir:
  18190. @echo usrlibdir='${USRLIBDIR}'
  18191. libdir:
  18192. @echo libdir='${LIBDIR}'
  18193. _ACEOF
  18194. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18195. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18196. for ac_var in incroot usrlibdir libdir; do
  18197. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18198. done
  18199. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18200. for ac_extension in a so sl dylib la dll; do
  18201. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18202. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18203. ac_im_usrlibdir=$ac_im_libdir; break
  18204. fi
  18205. done
  18206. # Screen out bogus values from the imake configuration. They are
  18207. # bogus both because they are the default anyway, and because
  18208. # using them would break gcc on systems where it needs fixed includes.
  18209. case $ac_im_incroot in
  18210. /usr/include) ac_x_includes= ;;
  18211. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18212. esac
  18213. case $ac_im_usrlibdir in
  18214. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18215. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18216. esac
  18217. fi
  18218. cd ..
  18219. rm -f -r conftest.dir
  18220. fi
  18221. # Standard set of common directories for X headers.
  18222. # Check X11 before X11Rn because it is often a symlink to the current release.
  18223. ac_x_header_dirs='
  18224. /usr/X11/include
  18225. /usr/X11R7/include
  18226. /usr/X11R6/include
  18227. /usr/X11R5/include
  18228. /usr/X11R4/include
  18229. /usr/include/X11
  18230. /usr/include/X11R7
  18231. /usr/include/X11R6
  18232. /usr/include/X11R5
  18233. /usr/include/X11R4
  18234. /usr/local/X11/include
  18235. /usr/local/X11R7/include
  18236. /usr/local/X11R6/include
  18237. /usr/local/X11R5/include
  18238. /usr/local/X11R4/include
  18239. /usr/local/include/X11
  18240. /usr/local/include/X11R7
  18241. /usr/local/include/X11R6
  18242. /usr/local/include/X11R5
  18243. /usr/local/include/X11R4
  18244. /opt/X11/include
  18245. /usr/X386/include
  18246. /usr/x386/include
  18247. /usr/XFree86/include/X11
  18248. /usr/include
  18249. /usr/local/include
  18250. /usr/unsupported/include
  18251. /usr/athena/include
  18252. /usr/local/x11r5/include
  18253. /usr/lpp/Xamples/include
  18254. /usr/openwin/include
  18255. /usr/openwin/share/include'
  18256. if test "$ac_x_includes" = no; then
  18257. # Guess where to find include files, by looking for Xlib.h.
  18258. # First, try using that file with no special directory specified.
  18259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18260. /* end confdefs.h. */
  18261. #include <X11/Xlib.h>
  18262. _ACEOF
  18263. if ac_fn_c_try_cpp "$LINENO"; then :
  18264. # We can compile using X headers with no special include directory.
  18265. ac_x_includes=
  18266. else
  18267. for ac_dir in $ac_x_header_dirs; do
  18268. if test -r "$ac_dir/X11/Xlib.h"; then
  18269. ac_x_includes=$ac_dir
  18270. break
  18271. fi
  18272. done
  18273. fi
  18274. rm -f conftest.err conftest.i conftest.$ac_ext
  18275. fi # $ac_x_includes = no
  18276. if test "$ac_x_libraries" = no; then
  18277. # Check for the libraries.
  18278. # See if we find them without any special options.
  18279. # Don't add to $LIBS permanently.
  18280. ac_save_LIBS=$LIBS
  18281. LIBS="-lX11 $LIBS"
  18282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18283. /* end confdefs.h. */
  18284. #include <X11/Xlib.h>
  18285. int
  18286. main ()
  18287. {
  18288. XrmInitialize ()
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. if ac_fn_c_try_link "$LINENO"; then :
  18294. LIBS=$ac_save_LIBS
  18295. # We can link X programs with no special library path.
  18296. ac_x_libraries=
  18297. else
  18298. LIBS=$ac_save_LIBS
  18299. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18300. do
  18301. # Don't even attempt the hair of trying to link an X program!
  18302. for ac_extension in a so sl dylib la dll; do
  18303. if test -r "$ac_dir/libX11.$ac_extension"; then
  18304. ac_x_libraries=$ac_dir
  18305. break 2
  18306. fi
  18307. done
  18308. done
  18309. fi
  18310. rm -f core conftest.err conftest.$ac_objext \
  18311. conftest$ac_exeext conftest.$ac_ext
  18312. fi # $ac_x_libraries = no
  18313. fi
  18314. # Record the results.
  18315. case $ac_x_includes,$ac_x_libraries in #(
  18316. no,* | *,no | *\'*) :
  18317. # Didn't find X, or a directory has "'" in its name.
  18318. ac_cv_have_x="have_x=no" ;; #(
  18319. *) :
  18320. # Record where we found X for the cache.
  18321. ac_cv_have_x="have_x=yes\
  18322. ac_x_includes='$ac_x_includes'\
  18323. ac_x_libraries='$ac_x_libraries'" ;;
  18324. esac
  18325. fi
  18326. ;; #(
  18327. *) have_x=yes;;
  18328. esac
  18329. eval "$ac_cv_have_x"
  18330. fi # $with_x != no
  18331. if test "$have_x" != yes; then
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18333. $as_echo "$have_x" >&6; }
  18334. no_x=yes
  18335. else
  18336. # If each of the values was on the command line, it overrides each guess.
  18337. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18338. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18339. # Update the cache value to reflect the command line values.
  18340. ac_cv_have_x="have_x=yes\
  18341. ac_x_includes='$x_includes'\
  18342. ac_x_libraries='$x_libraries'"
  18343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18344. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18345. fi
  18346. if test "$no_x" = yes; then
  18347. # Not all programs may use this symbol, but it does not hurt to define it.
  18348. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18349. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18350. else
  18351. if test -n "$x_includes"; then
  18352. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18353. fi
  18354. # It would also be nice to do this for all -L options, not just this one.
  18355. if test -n "$x_libraries"; then
  18356. X_LIBS="$X_LIBS -L$x_libraries"
  18357. # For Solaris; some versions of Sun CC require a space after -R and
  18358. # others require no space. Words are not sufficient . . . .
  18359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18360. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18361. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18362. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18363. ac_c_werror_flag=yes
  18364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18365. /* end confdefs.h. */
  18366. int
  18367. main ()
  18368. {
  18369. ;
  18370. return 0;
  18371. }
  18372. _ACEOF
  18373. if ac_fn_c_try_link "$LINENO"; then :
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18375. $as_echo "no" >&6; }
  18376. X_LIBS="$X_LIBS -R$x_libraries"
  18377. else
  18378. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18380. /* end confdefs.h. */
  18381. int
  18382. main ()
  18383. {
  18384. ;
  18385. return 0;
  18386. }
  18387. _ACEOF
  18388. if ac_fn_c_try_link "$LINENO"; then :
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18390. $as_echo "yes" >&6; }
  18391. X_LIBS="$X_LIBS -R $x_libraries"
  18392. else
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18394. $as_echo "neither works" >&6; }
  18395. fi
  18396. rm -f core conftest.err conftest.$ac_objext \
  18397. conftest$ac_exeext conftest.$ac_ext
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext \
  18400. conftest$ac_exeext conftest.$ac_ext
  18401. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18402. LIBS=$ac_xsave_LIBS
  18403. fi
  18404. # Check for system-dependent libraries X programs must link with.
  18405. # Do this before checking for the system-independent R6 libraries
  18406. # (-lICE), since we may need -lsocket or whatever for X linking.
  18407. if test "$ISC" = yes; then
  18408. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18409. else
  18410. # Martyn Johnson says this is needed for Ultrix, if the X
  18411. # libraries were built with DECnet support. And Karl Berry says
  18412. # the Alpha needs dnet_stub (dnet does not exist).
  18413. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18415. /* end confdefs.h. */
  18416. /* Override any GCC internal prototype to avoid an error.
  18417. Use char because int might match the return type of a GCC
  18418. builtin and then its argument prototype would still apply. */
  18419. #ifdef __cplusplus
  18420. extern "C"
  18421. #endif
  18422. char XOpenDisplay ();
  18423. int
  18424. main ()
  18425. {
  18426. return XOpenDisplay ();
  18427. ;
  18428. return 0;
  18429. }
  18430. _ACEOF
  18431. if ac_fn_c_try_link "$LINENO"; then :
  18432. else
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18434. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18435. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18436. $as_echo_n "(cached) " >&6
  18437. else
  18438. ac_check_lib_save_LIBS=$LIBS
  18439. LIBS="-ldnet $LIBS"
  18440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18441. /* end confdefs.h. */
  18442. /* Override any GCC internal prototype to avoid an error.
  18443. Use char because int might match the return type of a GCC
  18444. builtin and then its argument prototype would still apply. */
  18445. #ifdef __cplusplus
  18446. extern "C"
  18447. #endif
  18448. char dnet_ntoa ();
  18449. int
  18450. main ()
  18451. {
  18452. return dnet_ntoa ();
  18453. ;
  18454. return 0;
  18455. }
  18456. _ACEOF
  18457. if ac_fn_c_try_link "$LINENO"; then :
  18458. ac_cv_lib_dnet_dnet_ntoa=yes
  18459. else
  18460. ac_cv_lib_dnet_dnet_ntoa=no
  18461. fi
  18462. rm -f core conftest.err conftest.$ac_objext \
  18463. conftest$ac_exeext conftest.$ac_ext
  18464. LIBS=$ac_check_lib_save_LIBS
  18465. fi
  18466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18467. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18468. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18469. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18470. fi
  18471. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18473. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18474. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18475. $as_echo_n "(cached) " >&6
  18476. else
  18477. ac_check_lib_save_LIBS=$LIBS
  18478. LIBS="-ldnet_stub $LIBS"
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. /* Override any GCC internal prototype to avoid an error.
  18482. Use char because int might match the return type of a GCC
  18483. builtin and then its argument prototype would still apply. */
  18484. #ifdef __cplusplus
  18485. extern "C"
  18486. #endif
  18487. char dnet_ntoa ();
  18488. int
  18489. main ()
  18490. {
  18491. return dnet_ntoa ();
  18492. ;
  18493. return 0;
  18494. }
  18495. _ACEOF
  18496. if ac_fn_c_try_link "$LINENO"; then :
  18497. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18498. else
  18499. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18500. fi
  18501. rm -f core conftest.err conftest.$ac_objext \
  18502. conftest$ac_exeext conftest.$ac_ext
  18503. LIBS=$ac_check_lib_save_LIBS
  18504. fi
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18506. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18507. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18508. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18509. fi
  18510. fi
  18511. fi
  18512. rm -f core conftest.err conftest.$ac_objext \
  18513. conftest$ac_exeext conftest.$ac_ext
  18514. LIBS="$ac_xsave_LIBS"
  18515. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18516. # to get the SysV transport functions.
  18517. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18518. # needs -lnsl.
  18519. # The nsl library prevents programs from opening the X display
  18520. # on Irix 5.2, according to T.E. Dickey.
  18521. # The functions gethostbyname, getservbyname, and inet_addr are
  18522. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18523. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18524. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18525. fi
  18526. if test $ac_cv_func_gethostbyname = no; then
  18527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18528. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18529. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18530. $as_echo_n "(cached) " >&6
  18531. else
  18532. ac_check_lib_save_LIBS=$LIBS
  18533. LIBS="-lnsl $LIBS"
  18534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18535. /* end confdefs.h. */
  18536. /* Override any GCC internal prototype to avoid an error.
  18537. Use char because int might match the return type of a GCC
  18538. builtin and then its argument prototype would still apply. */
  18539. #ifdef __cplusplus
  18540. extern "C"
  18541. #endif
  18542. char gethostbyname ();
  18543. int
  18544. main ()
  18545. {
  18546. return gethostbyname ();
  18547. ;
  18548. return 0;
  18549. }
  18550. _ACEOF
  18551. if ac_fn_c_try_link "$LINENO"; then :
  18552. ac_cv_lib_nsl_gethostbyname=yes
  18553. else
  18554. ac_cv_lib_nsl_gethostbyname=no
  18555. fi
  18556. rm -f core conftest.err conftest.$ac_objext \
  18557. conftest$ac_exeext conftest.$ac_ext
  18558. LIBS=$ac_check_lib_save_LIBS
  18559. fi
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18561. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18562. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18563. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18564. fi
  18565. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18567. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18568. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18569. $as_echo_n "(cached) " >&6
  18570. else
  18571. ac_check_lib_save_LIBS=$LIBS
  18572. LIBS="-lbsd $LIBS"
  18573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18574. /* end confdefs.h. */
  18575. /* Override any GCC internal prototype to avoid an error.
  18576. Use char because int might match the return type of a GCC
  18577. builtin and then its argument prototype would still apply. */
  18578. #ifdef __cplusplus
  18579. extern "C"
  18580. #endif
  18581. char gethostbyname ();
  18582. int
  18583. main ()
  18584. {
  18585. return gethostbyname ();
  18586. ;
  18587. return 0;
  18588. }
  18589. _ACEOF
  18590. if ac_fn_c_try_link "$LINENO"; then :
  18591. ac_cv_lib_bsd_gethostbyname=yes
  18592. else
  18593. ac_cv_lib_bsd_gethostbyname=no
  18594. fi
  18595. rm -f core conftest.err conftest.$ac_objext \
  18596. conftest$ac_exeext conftest.$ac_ext
  18597. LIBS=$ac_check_lib_save_LIBS
  18598. fi
  18599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18600. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18601. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18602. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18603. fi
  18604. fi
  18605. fi
  18606. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18607. # socket/setsockopt and other routines are undefined under SCO ODT
  18608. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18609. # on later versions), says Simon Leinen: it contains gethostby*
  18610. # variants that don't use the name server (or something). -lsocket
  18611. # must be given before -lnsl if both are needed. We assume that
  18612. # if connect needs -lnsl, so does gethostbyname.
  18613. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18614. if test "x$ac_cv_func_connect" = xyes; then :
  18615. fi
  18616. if test $ac_cv_func_connect = no; then
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18618. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18619. if ${ac_cv_lib_socket_connect+:} false; then :
  18620. $as_echo_n "(cached) " >&6
  18621. else
  18622. ac_check_lib_save_LIBS=$LIBS
  18623. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. /* Override any GCC internal prototype to avoid an error.
  18627. Use char because int might match the return type of a GCC
  18628. builtin and then its argument prototype would still apply. */
  18629. #ifdef __cplusplus
  18630. extern "C"
  18631. #endif
  18632. char connect ();
  18633. int
  18634. main ()
  18635. {
  18636. return connect ();
  18637. ;
  18638. return 0;
  18639. }
  18640. _ACEOF
  18641. if ac_fn_c_try_link "$LINENO"; then :
  18642. ac_cv_lib_socket_connect=yes
  18643. else
  18644. ac_cv_lib_socket_connect=no
  18645. fi
  18646. rm -f core conftest.err conftest.$ac_objext \
  18647. conftest$ac_exeext conftest.$ac_ext
  18648. LIBS=$ac_check_lib_save_LIBS
  18649. fi
  18650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18651. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18652. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18653. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18654. fi
  18655. fi
  18656. # Guillermo Gomez says -lposix is necessary on A/UX.
  18657. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18658. if test "x$ac_cv_func_remove" = xyes; then :
  18659. fi
  18660. if test $ac_cv_func_remove = no; then
  18661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18662. $as_echo_n "checking for remove in -lposix... " >&6; }
  18663. if ${ac_cv_lib_posix_remove+:} false; then :
  18664. $as_echo_n "(cached) " >&6
  18665. else
  18666. ac_check_lib_save_LIBS=$LIBS
  18667. LIBS="-lposix $LIBS"
  18668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18669. /* end confdefs.h. */
  18670. /* Override any GCC internal prototype to avoid an error.
  18671. Use char because int might match the return type of a GCC
  18672. builtin and then its argument prototype would still apply. */
  18673. #ifdef __cplusplus
  18674. extern "C"
  18675. #endif
  18676. char remove ();
  18677. int
  18678. main ()
  18679. {
  18680. return remove ();
  18681. ;
  18682. return 0;
  18683. }
  18684. _ACEOF
  18685. if ac_fn_c_try_link "$LINENO"; then :
  18686. ac_cv_lib_posix_remove=yes
  18687. else
  18688. ac_cv_lib_posix_remove=no
  18689. fi
  18690. rm -f core conftest.err conftest.$ac_objext \
  18691. conftest$ac_exeext conftest.$ac_ext
  18692. LIBS=$ac_check_lib_save_LIBS
  18693. fi
  18694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18695. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18696. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18697. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18698. fi
  18699. fi
  18700. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18701. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18702. if test "x$ac_cv_func_shmat" = xyes; then :
  18703. fi
  18704. if test $ac_cv_func_shmat = no; then
  18705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18706. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18707. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18708. $as_echo_n "(cached) " >&6
  18709. else
  18710. ac_check_lib_save_LIBS=$LIBS
  18711. LIBS="-lipc $LIBS"
  18712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18713. /* end confdefs.h. */
  18714. /* Override any GCC internal prototype to avoid an error.
  18715. Use char because int might match the return type of a GCC
  18716. builtin and then its argument prototype would still apply. */
  18717. #ifdef __cplusplus
  18718. extern "C"
  18719. #endif
  18720. char shmat ();
  18721. int
  18722. main ()
  18723. {
  18724. return shmat ();
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_c_try_link "$LINENO"; then :
  18730. ac_cv_lib_ipc_shmat=yes
  18731. else
  18732. ac_cv_lib_ipc_shmat=no
  18733. fi
  18734. rm -f core conftest.err conftest.$ac_objext \
  18735. conftest$ac_exeext conftest.$ac_ext
  18736. LIBS=$ac_check_lib_save_LIBS
  18737. fi
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18739. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18740. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18741. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18742. fi
  18743. fi
  18744. fi
  18745. # Check for libraries that X11R6 Xt/Xaw programs need.
  18746. ac_save_LDFLAGS=$LDFLAGS
  18747. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18748. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18749. # check for ICE first), but we must link in the order -lSM -lICE or
  18750. # we get undefined symbols. So assume we have SM if we have ICE.
  18751. # These have to be linked with before -lX11, unlike the other
  18752. # libraries we check for below, so use a different variable.
  18753. # John Interrante, Karl Berry
  18754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18755. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18756. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18757. $as_echo_n "(cached) " >&6
  18758. else
  18759. ac_check_lib_save_LIBS=$LIBS
  18760. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18762. /* end confdefs.h. */
  18763. /* Override any GCC internal prototype to avoid an error.
  18764. Use char because int might match the return type of a GCC
  18765. builtin and then its argument prototype would still apply. */
  18766. #ifdef __cplusplus
  18767. extern "C"
  18768. #endif
  18769. char IceConnectionNumber ();
  18770. int
  18771. main ()
  18772. {
  18773. return IceConnectionNumber ();
  18774. ;
  18775. return 0;
  18776. }
  18777. _ACEOF
  18778. if ac_fn_c_try_link "$LINENO"; then :
  18779. ac_cv_lib_ICE_IceConnectionNumber=yes
  18780. else
  18781. ac_cv_lib_ICE_IceConnectionNumber=no
  18782. fi
  18783. rm -f core conftest.err conftest.$ac_objext \
  18784. conftest$ac_exeext conftest.$ac_ext
  18785. LIBS=$ac_check_lib_save_LIBS
  18786. fi
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18788. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18789. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18790. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18791. fi
  18792. LDFLAGS=$ac_save_LDFLAGS
  18793. fi
  18794. if test x$have_x = xyes; then
  18795. # Check whether --enable-x11-shared was given.
  18796. if test "${enable_x11_shared+set}" = set; then :
  18797. enableval=$enable_x11_shared;
  18798. else
  18799. enable_x11_shared=maybe
  18800. fi
  18801. case "$host" in
  18802. *-*-darwin*)
  18803. # Apple now puts this in /opt/X11
  18804. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18805. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18806. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18807. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18808. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18809. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18810. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18811. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18812. ;;
  18813. *-*-openbsd*)
  18814. x11_lib='libX11.so'
  18815. x11ext_lib='libXext.so'
  18816. xcursor_lib='libXcursor.so'
  18817. xinput_lib='libXi.so'
  18818. xfixes_lib='libXfixes.so'
  18819. xrandr_lib='libXrandr.so'
  18820. xrender_lib='libXrender.so'
  18821. xss_lib='libXss.so'
  18822. ;;
  18823. *)
  18824. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18825. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18826. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18827. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18828. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18829. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18830. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18831. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18832. ;;
  18833. esac
  18834. if test x$ac_cv_func_shmat != xyes; then
  18835. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18836. fi
  18837. CFLAGS="$CFLAGS $X_CFLAGS"
  18838. LDFLAGS="$LDFLAGS $X_LIBS"
  18839. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18840. #include <X11/Xproto.h>
  18841. "
  18842. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18843. have_xext_h_hdr=yes
  18844. else
  18845. have_xext_h_hdr=no
  18846. fi
  18847. if test x$have_xext_h_hdr != xyes; then
  18848. as_fn_error $? "
  18849. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18850. " "$LINENO" 5
  18851. fi
  18852. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18853. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18854. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18855. # Needed so SDL applications can include SDL_syswm.h
  18856. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18857. if test x$enable_x11_shared = xmaybe; then
  18858. enable_x11_shared=yes
  18859. fi
  18860. if test x$have_loadso != xyes && \
  18861. test x$enable_x11_shared = xyes; then
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18863. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18864. enable_x11_shared=no
  18865. fi
  18866. if test x$have_loadso = xyes && \
  18867. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18868. echo "-- dynamic libX11 -> $x11_lib"
  18869. echo "-- dynamic libX11ext -> $x11ext_lib"
  18870. cat >>confdefs.h <<_ACEOF
  18871. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18872. _ACEOF
  18873. cat >>confdefs.h <<_ACEOF
  18874. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18875. _ACEOF
  18876. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18877. else
  18878. enable_x11_shared=no
  18879. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18880. SUMMARY_video="${SUMMARY_video} x11"
  18881. fi
  18882. have_video=yes
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18884. $as_echo_n "checking for XGenericEvent... " >&6; }
  18885. have_XGenericEvent=no
  18886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18887. /* end confdefs.h. */
  18888. #include <X11/Xlib.h>
  18889. int
  18890. main ()
  18891. {
  18892. Display *display;
  18893. XEvent event;
  18894. XGenericEventCookie *cookie = &event.xcookie;
  18895. XNextEvent(display, &event);
  18896. XGetEventData(display, cookie);
  18897. XFreeEventData(display, cookie);
  18898. ;
  18899. return 0;
  18900. }
  18901. _ACEOF
  18902. if ac_fn_c_try_compile "$LINENO"; then :
  18903. have_XGenericEvent=yes
  18904. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18905. fi
  18906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18908. $as_echo "$have_XGenericEvent" >&6; }
  18909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18910. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18911. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18912. $as_echo_n "(cached) " >&6
  18913. else
  18914. ac_check_lib_save_LIBS=$LIBS
  18915. LIBS="-lX11 $LIBS"
  18916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18917. /* end confdefs.h. */
  18918. /* Override any GCC internal prototype to avoid an error.
  18919. Use char because int might match the return type of a GCC
  18920. builtin and then its argument prototype would still apply. */
  18921. #ifdef __cplusplus
  18922. extern "C"
  18923. #endif
  18924. char XkbKeycodeToKeysym ();
  18925. int
  18926. main ()
  18927. {
  18928. return XkbKeycodeToKeysym ();
  18929. ;
  18930. return 0;
  18931. }
  18932. _ACEOF
  18933. if ac_fn_c_try_link "$LINENO"; then :
  18934. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18935. else
  18936. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18937. fi
  18938. rm -f core conftest.err conftest.$ac_objext \
  18939. conftest$ac_exeext conftest.$ac_ext
  18940. LIBS=$ac_check_lib_save_LIBS
  18941. fi
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18943. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18944. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18945. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18946. fi
  18947. # Check whether --enable-video-x11-xcursor was given.
  18948. if test "${enable_video_x11_xcursor+set}" = set; then :
  18949. enableval=$enable_video_x11_xcursor;
  18950. else
  18951. enable_video_x11_xcursor=yes
  18952. fi
  18953. if test x$enable_video_x11_xcursor = xyes; then
  18954. definitely_enable_video_x11_xcursor=no
  18955. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18956. "
  18957. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18958. have_xcursor_h_hdr=yes
  18959. else
  18960. have_xcursor_h_hdr=no
  18961. fi
  18962. if test x$have_xcursor_h_hdr = xyes; then
  18963. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18964. echo "-- dynamic libXcursor -> $xcursor_lib"
  18965. cat >>confdefs.h <<_ACEOF
  18966. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18967. _ACEOF
  18968. definitely_enable_video_x11_xcursor=yes
  18969. else
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18971. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18972. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18973. $as_echo_n "(cached) " >&6
  18974. else
  18975. ac_check_lib_save_LIBS=$LIBS
  18976. LIBS="-lXcursor $LIBS"
  18977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18978. /* end confdefs.h. */
  18979. /* Override any GCC internal prototype to avoid an error.
  18980. Use char because int might match the return type of a GCC
  18981. builtin and then its argument prototype would still apply. */
  18982. #ifdef __cplusplus
  18983. extern "C"
  18984. #endif
  18985. char XcursorImageCreate ();
  18986. int
  18987. main ()
  18988. {
  18989. return XcursorImageCreate ();
  18990. ;
  18991. return 0;
  18992. }
  18993. _ACEOF
  18994. if ac_fn_c_try_link "$LINENO"; then :
  18995. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18996. else
  18997. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18998. fi
  18999. rm -f core conftest.err conftest.$ac_objext \
  19000. conftest$ac_exeext conftest.$ac_ext
  19001. LIBS=$ac_check_lib_save_LIBS
  19002. fi
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19004. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19005. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19006. have_xcursor_lib=yes
  19007. fi
  19008. if test x$have_xcursor_lib = xyes ; then
  19009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19010. definitely_enable_video_x11_xcursor=yes
  19011. fi
  19012. fi
  19013. fi
  19014. fi
  19015. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19016. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19017. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19018. fi
  19019. # Check whether --enable-video-x11-xdbe was given.
  19020. if test "${enable_video_x11_xdbe+set}" = set; then :
  19021. enableval=$enable_video_x11_xdbe;
  19022. else
  19023. enable_video_x11_xdbe=yes
  19024. fi
  19025. if test x$enable_video_x11_xdbe = xyes; then
  19026. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19027. "
  19028. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19029. have_dbe_h_hdr=yes
  19030. else
  19031. have_dbe_h_hdr=no
  19032. fi
  19033. if test x$have_dbe_h_hdr = xyes; then
  19034. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19035. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19036. fi
  19037. fi
  19038. # Check whether --enable-video-x11-xinput was given.
  19039. if test "${enable_video_x11_xinput+set}" = set; then :
  19040. enableval=$enable_video_x11_xinput;
  19041. else
  19042. enable_video_x11_xinput=yes
  19043. fi
  19044. if test x$enable_video_x11_xinput = xyes; then
  19045. definitely_enable_video_x11_xinput=no
  19046. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19047. "
  19048. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19049. have_xinput_h_hdr=yes
  19050. else
  19051. have_xinput_h_hdr=no
  19052. fi
  19053. if test x$have_xinput_h_hdr = xyes; then
  19054. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19055. echo "-- dynamic libXi -> $xinput_lib"
  19056. cat >>confdefs.h <<_ACEOF
  19057. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19058. _ACEOF
  19059. definitely_enable_video_x11_xinput=yes
  19060. else
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19062. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19063. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19064. $as_echo_n "(cached) " >&6
  19065. else
  19066. ac_check_lib_save_LIBS=$LIBS
  19067. LIBS="-lXi $LIBS"
  19068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19069. /* end confdefs.h. */
  19070. /* Override any GCC internal prototype to avoid an error.
  19071. Use char because int might match the return type of a GCC
  19072. builtin and then its argument prototype would still apply. */
  19073. #ifdef __cplusplus
  19074. extern "C"
  19075. #endif
  19076. char XOpenDevice ();
  19077. int
  19078. main ()
  19079. {
  19080. return XOpenDevice ();
  19081. ;
  19082. return 0;
  19083. }
  19084. _ACEOF
  19085. if ac_fn_c_try_link "$LINENO"; then :
  19086. ac_cv_lib_Xi_XOpenDevice=yes
  19087. else
  19088. ac_cv_lib_Xi_XOpenDevice=no
  19089. fi
  19090. rm -f core conftest.err conftest.$ac_objext \
  19091. conftest$ac_exeext conftest.$ac_ext
  19092. LIBS=$ac_check_lib_save_LIBS
  19093. fi
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19095. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19096. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19097. have_xinput_lib=yes
  19098. fi
  19099. if test x$have_xinput_lib = xyes ; then
  19100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19101. definitely_enable_video_x11_xinput=yes
  19102. fi
  19103. fi
  19104. fi
  19105. fi
  19106. if test x$definitely_enable_video_x11_xinput = xyes; then
  19107. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19108. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19110. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19111. have_xinput2_multitouch=no
  19112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19113. /* end confdefs.h. */
  19114. #include <X11/Xlib.h>
  19115. #include <X11/Xproto.h>
  19116. #include <X11/extensions/XInput2.h>
  19117. int
  19118. main ()
  19119. {
  19120. int event_type = XI_TouchBegin;
  19121. XITouchClassInfo *t;
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. if ac_fn_c_try_compile "$LINENO"; then :
  19127. have_xinput2_multitouch=yes
  19128. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19129. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19130. fi
  19131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19133. $as_echo "$have_xinput2_multitouch" >&6; }
  19134. fi
  19135. # Check whether --enable-video-x11-xfixes was given.
  19136. if test "${enable_video_x11_xfixes+set}" = set; then :
  19137. enableval=$enable_video_x11_xfixes;
  19138. else
  19139. enable_video_x11_xfixes=yes
  19140. fi
  19141. if test x$enable_video_x11_xfixes = xyes; then
  19142. definitely_enable_video_x11_xfixes=no
  19143. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19145. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19147. /* end confdefs.h. */
  19148. #include <X11/Xlib.h>
  19149. #include <X11/Xproto.h>
  19150. #include <X11/extensions/XInput2.h>
  19151. #include <X11/extensions/Xfixes.h>
  19152. int
  19153. main ()
  19154. {
  19155. BarrierEventID b;
  19156. ;
  19157. return 0;
  19158. }
  19159. _ACEOF
  19160. if ac_fn_c_try_compile "$LINENO"; then :
  19161. have_xfixes_h_hdr=yes
  19162. else
  19163. have_xfixes_h_hdr=no
  19164. fi
  19165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19167. $as_echo "$have_xfixes_h_hdr" >&6; }
  19168. if test x$have_xfixes_h_hdr = xyes; then
  19169. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19170. echo "-- dynamic libXfixes -> $xfixes_lib"
  19171. cat >>confdefs.h <<_ACEOF
  19172. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19173. _ACEOF
  19174. definitely_enable_video_x11_xfixes=yes
  19175. else
  19176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19177. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19178. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19179. $as_echo_n "(cached) " >&6
  19180. else
  19181. ac_check_lib_save_LIBS=$LIBS
  19182. LIBS="-lXfixes $LIBS"
  19183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19184. /* end confdefs.h. */
  19185. /* Override any GCC internal prototype to avoid an error.
  19186. Use char because int might match the return type of a GCC
  19187. builtin and then its argument prototype would still apply. */
  19188. #ifdef __cplusplus
  19189. extern "C"
  19190. #endif
  19191. char XFixesCreatePointerBarrier ();
  19192. int
  19193. main ()
  19194. {
  19195. return XFixesCreatePointerBarrier ();
  19196. ;
  19197. return 0;
  19198. }
  19199. _ACEOF
  19200. if ac_fn_c_try_link "$LINENO"; then :
  19201. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19202. else
  19203. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19204. fi
  19205. rm -f core conftest.err conftest.$ac_objext \
  19206. conftest$ac_exeext conftest.$ac_ext
  19207. LIBS=$ac_check_lib_save_LIBS
  19208. fi
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19210. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19211. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19212. have_xfixes_lib=yes
  19213. fi
  19214. if test x$have_xfixes_lib = xyes ; then
  19215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19216. definitely_enable_video_x11_xfixes=yes
  19217. fi
  19218. fi
  19219. fi
  19220. fi
  19221. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19222. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19223. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19224. fi
  19225. # Check whether --enable-video-x11-xrandr was given.
  19226. if test "${enable_video_x11_xrandr+set}" = set; then :
  19227. enableval=$enable_video_x11_xrandr;
  19228. else
  19229. enable_video_x11_xrandr=yes
  19230. fi
  19231. if test x$enable_video_x11_xrandr = xyes; then
  19232. definitely_enable_video_x11_xrandr=no
  19233. have_xrandr_h_hdr=no
  19234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19235. /* end confdefs.h. */
  19236. #include <X11/Xlib.h>
  19237. #include <X11/extensions/Xrandr.h>
  19238. int
  19239. main ()
  19240. {
  19241. XRRScreenResources *res = NULL;
  19242. ;
  19243. return 0;
  19244. }
  19245. _ACEOF
  19246. if ac_fn_c_try_compile "$LINENO"; then :
  19247. have_xrandr_h_hdr=yes
  19248. fi
  19249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19250. if test x$have_xrandr_h_hdr = xyes; then
  19251. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19252. echo "-- dynamic libXrandr -> $xrandr_lib"
  19253. cat >>confdefs.h <<_ACEOF
  19254. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19255. _ACEOF
  19256. definitely_enable_video_x11_xrandr=yes
  19257. else
  19258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19259. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19260. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19261. $as_echo_n "(cached) " >&6
  19262. else
  19263. ac_check_lib_save_LIBS=$LIBS
  19264. LIBS="-lXrandr $LIBS"
  19265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19266. /* end confdefs.h. */
  19267. /* Override any GCC internal prototype to avoid an error.
  19268. Use char because int might match the return type of a GCC
  19269. builtin and then its argument prototype would still apply. */
  19270. #ifdef __cplusplus
  19271. extern "C"
  19272. #endif
  19273. char XRRQueryExtension ();
  19274. int
  19275. main ()
  19276. {
  19277. return XRRQueryExtension ();
  19278. ;
  19279. return 0;
  19280. }
  19281. _ACEOF
  19282. if ac_fn_c_try_link "$LINENO"; then :
  19283. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19284. else
  19285. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19286. fi
  19287. rm -f core conftest.err conftest.$ac_objext \
  19288. conftest$ac_exeext conftest.$ac_ext
  19289. LIBS=$ac_check_lib_save_LIBS
  19290. fi
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19292. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19293. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19294. have_xrandr_lib=yes
  19295. fi
  19296. if test x$have_xrandr_lib = xyes ; then
  19297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19298. definitely_enable_video_x11_xrandr=yes
  19299. fi
  19300. fi
  19301. fi
  19302. fi
  19303. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19304. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19305. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19306. fi
  19307. # Check whether --enable-video-x11-scrnsaver was given.
  19308. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19309. enableval=$enable_video_x11_scrnsaver;
  19310. else
  19311. enable_video_x11_scrnsaver=yes
  19312. fi
  19313. if test x$enable_video_x11_scrnsaver = xyes; then
  19314. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19315. "
  19316. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19317. have_scrnsaver_h_hdr=yes
  19318. else
  19319. have_scrnsaver_h_hdr=no
  19320. fi
  19321. if test x$have_scrnsaver_h_hdr = xyes; then
  19322. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19323. echo "-- dynamic libXss -> $xss_lib"
  19324. cat >>confdefs.h <<_ACEOF
  19325. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19326. _ACEOF
  19327. definitely_enable_video_x11_scrnsaver=yes
  19328. else
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19330. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19331. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19332. $as_echo_n "(cached) " >&6
  19333. else
  19334. ac_check_lib_save_LIBS=$LIBS
  19335. LIBS="-lXss $LIBS"
  19336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19337. /* end confdefs.h. */
  19338. /* Override any GCC internal prototype to avoid an error.
  19339. Use char because int might match the return type of a GCC
  19340. builtin and then its argument prototype would still apply. */
  19341. #ifdef __cplusplus
  19342. extern "C"
  19343. #endif
  19344. char XScreenSaverSuspend ();
  19345. int
  19346. main ()
  19347. {
  19348. return XScreenSaverSuspend ();
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. if ac_fn_c_try_link "$LINENO"; then :
  19354. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19355. else
  19356. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext \
  19359. conftest$ac_exeext conftest.$ac_ext
  19360. LIBS=$ac_check_lib_save_LIBS
  19361. fi
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19363. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19364. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19365. have_xss_lib=yes
  19366. fi
  19367. if test x$have_xss_lib = xyes ; then
  19368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19369. definitely_enable_video_x11_scrnsaver=yes
  19370. fi
  19371. fi
  19372. fi
  19373. fi
  19374. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19375. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19376. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19377. fi
  19378. # Check whether --enable-video-x11-xshape was given.
  19379. if test "${enable_video_x11_xshape+set}" = set; then :
  19380. enableval=$enable_video_x11_xshape;
  19381. else
  19382. enable_video_x11_xshape=yes
  19383. fi
  19384. if test x$enable_video_x11_xshape = xyes; then
  19385. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19386. "
  19387. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19388. have_shape_h_hdr=yes
  19389. else
  19390. have_shape_h_hdr=no
  19391. fi
  19392. if test x$have_shape_h_hdr = xyes; then
  19393. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19394. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19395. fi
  19396. fi
  19397. fi
  19398. fi
  19399. if test x$have_x != xyes; then
  19400. # Prevent Mesa from including X11 headers
  19401. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19402. fi
  19403. }
  19404. CheckVivanteVideo()
  19405. {
  19406. # Check whether --enable-video-vivante was given.
  19407. if test "${enable_video_vivante+set}" = set; then :
  19408. enableval=$enable_video_vivante;
  19409. else
  19410. enable_video_vivante=yes
  19411. fi
  19412. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19414. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19415. have_vivante_vdk=no
  19416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19417. /* end confdefs.h. */
  19418. #define LINUX
  19419. #define EGL_API_FB
  19420. #include <gc_vdk.h>
  19421. int
  19422. main ()
  19423. {
  19424. ;
  19425. return 0;
  19426. }
  19427. _ACEOF
  19428. if ac_fn_c_try_compile "$LINENO"; then :
  19429. have_vivante_vdk=yes
  19430. fi
  19431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19433. $as_echo "$have_vivante_vdk" >&6; }
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19435. $as_echo_n "checking for Vivante FB API... " >&6; }
  19436. have_vivante_egl=no
  19437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19438. /* end confdefs.h. */
  19439. #define LINUX
  19440. #define EGL_API_FB
  19441. #include <EGL/eglvivante.h>
  19442. int
  19443. main ()
  19444. {
  19445. ;
  19446. return 0;
  19447. }
  19448. _ACEOF
  19449. if ac_fn_c_try_compile "$LINENO"; then :
  19450. have_vivante_egl=yes
  19451. fi
  19452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19454. $as_echo "$have_vivante_egl" >&6; }
  19455. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19456. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19457. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19458. if test x$have_vivante_vdk = xyes; then
  19459. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19461. fi
  19462. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19463. SUMMARY_video="${SUMMARY_video} vivante"
  19464. have_video=yes
  19465. fi
  19466. fi
  19467. }
  19468. CheckHaikuVideo()
  19469. {
  19470. if test x$enable_video = xyes; then
  19471. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19472. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19473. have_video=yes
  19474. SUMMARY_video="${SUMMARY_video} haiku"
  19475. fi
  19476. }
  19477. CheckCOCOA()
  19478. {
  19479. # Check whether --enable-video-cocoa was given.
  19480. if test "${enable_video_cocoa+set}" = set; then :
  19481. enableval=$enable_video_cocoa;
  19482. else
  19483. enable_video_cocoa=yes
  19484. fi
  19485. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19486. save_CFLAGS="$CFLAGS"
  19487. CFLAGS="$CFLAGS -x objective-c"
  19488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19489. $as_echo_n "checking for Cocoa framework... " >&6; }
  19490. have_cocoa=no
  19491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19492. /* end confdefs.h. */
  19493. #import <Cocoa/Cocoa.h>
  19494. int
  19495. main ()
  19496. {
  19497. ;
  19498. return 0;
  19499. }
  19500. _ACEOF
  19501. if ac_fn_c_try_compile "$LINENO"; then :
  19502. have_cocoa=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_cocoa" >&5
  19506. $as_echo "$have_cocoa" >&6; }
  19507. CFLAGS="$save_CFLAGS"
  19508. if test x$have_cocoa = xyes; then
  19509. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19510. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19511. SUMMARY_video="${SUMMARY_video} cocoa"
  19512. have_video=yes
  19513. fi
  19514. fi
  19515. }
  19516. CheckMETAL()
  19517. {
  19518. # Check whether --enable-video-metal was given.
  19519. if test "${enable_video_metal+set}" = set; then :
  19520. enableval=$enable_video_metal;
  19521. else
  19522. enable_video_metal=yes
  19523. fi
  19524. # Check whether --enable-render-metal was given.
  19525. if test "${enable_render_metal+set}" = set; then :
  19526. enableval=$enable_render_metal;
  19527. else
  19528. enable_render_metal=yes
  19529. fi
  19530. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19531. save_CFLAGS="$CFLAGS"
  19532. CFLAGS="$CFLAGS -x objective-c"
  19533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19534. $as_echo_n "checking for Metal framework... " >&6; }
  19535. have_metal=no
  19536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19537. /* end confdefs.h. */
  19538. #import <Cocoa/Cocoa.h>
  19539. #import <Metal/Metal.h>
  19540. #import <QuartzCore/CAMetalLayer.h>
  19541. #if TARGET_CPU_X86
  19542. #error Metal doesn't work on this configuration
  19543. #endif
  19544. int
  19545. main ()
  19546. {
  19547. ;
  19548. return 0;
  19549. }
  19550. _ACEOF
  19551. if ac_fn_c_try_compile "$LINENO"; then :
  19552. have_metal=yes
  19553. fi
  19554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19555. CFLAGS="$save_CFLAGS"
  19556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19557. $as_echo "$have_metal" >&6; }
  19558. if test x$have_metal = xyes; then
  19559. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19560. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19561. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19562. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19563. fi
  19564. SUMMARY_video="${SUMMARY_video} metal"
  19565. else
  19566. enable_video_metal=no
  19567. enable_render_metal=no
  19568. fi
  19569. fi
  19570. }
  19571. CheckDirectFB()
  19572. {
  19573. # Check whether --enable-video-directfb was given.
  19574. if test "${enable_video_directfb+set}" = set; then :
  19575. enableval=$enable_video_directfb;
  19576. else
  19577. enable_video_directfb=no
  19578. fi
  19579. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19580. pkg_failed=no
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19582. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19583. if test -n "$DIRECTFB_CFLAGS"; then
  19584. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19585. elif test -n "$PKG_CONFIG"; then
  19586. if test -n "$PKG_CONFIG" && \
  19587. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19588. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19589. ac_status=$?
  19590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19591. test $ac_status = 0; }; then
  19592. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19593. test "x$?" != "x0" && pkg_failed=yes
  19594. else
  19595. pkg_failed=yes
  19596. fi
  19597. else
  19598. pkg_failed=untried
  19599. fi
  19600. if test -n "$DIRECTFB_LIBS"; then
  19601. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19602. elif test -n "$PKG_CONFIG"; then
  19603. if test -n "$PKG_CONFIG" && \
  19604. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19605. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19606. ac_status=$?
  19607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19608. test $ac_status = 0; }; then
  19609. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19610. test "x$?" != "x0" && pkg_failed=yes
  19611. else
  19612. pkg_failed=yes
  19613. fi
  19614. else
  19615. pkg_failed=untried
  19616. fi
  19617. if test $pkg_failed = yes; then
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19619. $as_echo "no" >&6; }
  19620. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19621. _pkg_short_errors_supported=yes
  19622. else
  19623. _pkg_short_errors_supported=no
  19624. fi
  19625. if test $_pkg_short_errors_supported = yes; then
  19626. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19627. else
  19628. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19629. fi
  19630. # Put the nasty error message in config.log where it belongs
  19631. echo "$DIRECTFB_PKG_ERRORS" >&5
  19632. video_directfb=no
  19633. elif test $pkg_failed = untried; then
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19635. $as_echo "no" >&6; }
  19636. video_directfb=no
  19637. else
  19638. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19639. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19641. $as_echo "yes" >&6; }
  19642. video_directfb=yes
  19643. fi
  19644. if test x$video_directfb = xyes; then
  19645. # SuSE 11.1 installs directfb-config without directfb-devel
  19646. save_CPPFLAGS="$CPPFLAGS"
  19647. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19648. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19649. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19650. have_directfb_hdr=yes
  19651. else
  19652. have_directfb_hdr=no
  19653. fi
  19654. CPPFLAGS="$save_CPPFLAGS"
  19655. video_directfb=$have_directfb_hdr
  19656. fi
  19657. if test x$video_directfb = xyes; then
  19658. # Check whether --enable-directfb-shared was given.
  19659. if test "${enable_directfb_shared+set}" = set; then :
  19660. enableval=$enable_directfb_shared;
  19661. else
  19662. enable_directfb_shared=yes
  19663. fi
  19664. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19665. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19666. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19667. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19668. directfb_shared=no
  19669. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19670. if test x$have_loadso != xyes && \
  19671. test x$enable_directfb_shared = xyes; then
  19672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19673. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19674. fi
  19675. if test x$have_loadso = xyes && \
  19676. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19677. directfb_shared=yes
  19678. echo "-- dynamic libdirectfb -> $directfb_lib"
  19679. cat >>confdefs.h <<_ACEOF
  19680. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19681. _ACEOF
  19682. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19683. else
  19684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19685. SUMMARY_video="${SUMMARY_video} directfb"
  19686. fi
  19687. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19688. have_video=yes
  19689. fi
  19690. fi
  19691. }
  19692. CheckKMSDRM()
  19693. {
  19694. # Check whether --enable-video-kmsdrm was given.
  19695. if test "${enable_video_kmsdrm+set}" = set; then :
  19696. enableval=$enable_video_kmsdrm;
  19697. else
  19698. enable_video_kmsdrm=yes
  19699. fi
  19700. if test x$enable_video = xyes && \
  19701. test x$enable_video_kmsdrm = xyes && \
  19702. test x$video_opengl_egl = xyes; then
  19703. video_kmsdrm=no
  19704. pkg_failed=no
  19705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19706. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19707. if test -n "$LIBDRM_CFLAGS"; then
  19708. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19709. elif test -n "$PKG_CONFIG"; then
  19710. if test -n "$PKG_CONFIG" && \
  19711. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19712. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19713. ac_status=$?
  19714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19715. test $ac_status = 0; }; then
  19716. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19717. test "x$?" != "x0" && pkg_failed=yes
  19718. else
  19719. pkg_failed=yes
  19720. fi
  19721. else
  19722. pkg_failed=untried
  19723. fi
  19724. if test -n "$LIBDRM_LIBS"; then
  19725. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19726. elif test -n "$PKG_CONFIG"; then
  19727. if test -n "$PKG_CONFIG" && \
  19728. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19729. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19730. ac_status=$?
  19731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19732. test $ac_status = 0; }; then
  19733. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19734. test "x$?" != "x0" && pkg_failed=yes
  19735. else
  19736. pkg_failed=yes
  19737. fi
  19738. else
  19739. pkg_failed=untried
  19740. fi
  19741. if test $pkg_failed = yes; then
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19743. $as_echo "no" >&6; }
  19744. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19745. _pkg_short_errors_supported=yes
  19746. else
  19747. _pkg_short_errors_supported=no
  19748. fi
  19749. if test $_pkg_short_errors_supported = yes; then
  19750. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19751. else
  19752. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19753. fi
  19754. # Put the nasty error message in config.log where it belongs
  19755. echo "$LIBDRM_PKG_ERRORS" >&5
  19756. libdrm_avail=no
  19757. elif test $pkg_failed = untried; then
  19758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19759. $as_echo "no" >&6; }
  19760. libdrm_avail=no
  19761. else
  19762. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19763. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19765. $as_echo "yes" >&6; }
  19766. libdrm_avail=yes
  19767. fi
  19768. pkg_failed=no
  19769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19770. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19771. if test -n "$LIBGBM_CFLAGS"; then
  19772. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19773. elif test -n "$PKG_CONFIG"; then
  19774. if test -n "$PKG_CONFIG" && \
  19775. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19776. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19777. ac_status=$?
  19778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19779. test $ac_status = 0; }; then
  19780. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19781. test "x$?" != "x0" && pkg_failed=yes
  19782. else
  19783. pkg_failed=yes
  19784. fi
  19785. else
  19786. pkg_failed=untried
  19787. fi
  19788. if test -n "$LIBGBM_LIBS"; then
  19789. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19790. elif test -n "$PKG_CONFIG"; then
  19791. if test -n "$PKG_CONFIG" && \
  19792. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19793. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19794. ac_status=$?
  19795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19796. test $ac_status = 0; }; then
  19797. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19798. test "x$?" != "x0" && pkg_failed=yes
  19799. else
  19800. pkg_failed=yes
  19801. fi
  19802. else
  19803. pkg_failed=untried
  19804. fi
  19805. if test $pkg_failed = yes; then
  19806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19807. $as_echo "no" >&6; }
  19808. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19809. _pkg_short_errors_supported=yes
  19810. else
  19811. _pkg_short_errors_supported=no
  19812. fi
  19813. if test $_pkg_short_errors_supported = yes; then
  19814. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19815. else
  19816. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19817. fi
  19818. # Put the nasty error message in config.log where it belongs
  19819. echo "$LIBGBM_PKG_ERRORS" >&5
  19820. libgbm_avail=no
  19821. elif test $pkg_failed = untried; then
  19822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19823. $as_echo "no" >&6; }
  19824. libgbm_avail=no
  19825. else
  19826. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19827. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19829. $as_echo "yes" >&6; }
  19830. libgbm_avail=yes
  19831. fi
  19832. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19833. video_kmsdrm=yes
  19834. fi
  19835. if test x$video_kmsdrm = xyes; then
  19836. # Check whether --enable-kmsdrm-shared was given.
  19837. if test "${enable_kmsdrm_shared+set}" = set; then :
  19838. enableval=$enable_kmsdrm_shared;
  19839. else
  19840. enable_kmsdrm_shared=yes
  19841. fi
  19842. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19843. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19844. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19846. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19847. kmsdrm_shared=no
  19848. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19849. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19850. if test x$have_loadso != xyes && \
  19851. test x$enable_kmsdrm_shared = xyes; then
  19852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19853. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19854. fi
  19855. if test x$have_loadso = xyes && \
  19856. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19857. kmsdrm_shared=yes
  19858. cat >>confdefs.h <<_ACEOF
  19859. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19860. _ACEOF
  19861. cat >>confdefs.h <<_ACEOF
  19862. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19863. _ACEOF
  19864. cat >>confdefs.h <<_ACEOF
  19865. #define HAVE_KMSDRM_SHARED "TRUE"
  19866. _ACEOF
  19867. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19868. else
  19869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19870. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19871. fi
  19872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19873. $as_echo "$kmsdrm_shared" >&6; }
  19874. if test x$kmsdrm_shared = xyes; then
  19875. echo "-- dynamic libdrm -> $drm_lib"
  19876. echo "-- dynamic libgbm -> $gbm_lib"
  19877. fi
  19878. have_video=yes
  19879. fi
  19880. fi
  19881. }
  19882. CheckDummyVideo()
  19883. {
  19884. # Check whether --enable-video-dummy was given.
  19885. if test "${enable_video_dummy+set}" = set; then :
  19886. enableval=$enable_video_dummy;
  19887. else
  19888. enable_video_dummy=yes
  19889. fi
  19890. if test x$enable_video_dummy = xyes; then
  19891. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19892. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19893. have_video=yes
  19894. SUMMARY_video="${SUMMARY_video} dummy"
  19895. fi
  19896. }
  19897. CheckOffscreenVideo()
  19898. {
  19899. # Check whether --enable-video-offscreen was given.
  19900. if test "${enable_video_offscreen+set}" = set; then :
  19901. enableval=$enable_video_offscreen;
  19902. else
  19903. enable_video_offscreen=no
  19904. fi
  19905. if test x$enable_video_offscreen = xyes; then
  19906. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19907. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19908. have_video=yes
  19909. SUMMARY_video="${SUMMARY_video} offscreen"
  19910. fi
  19911. }
  19912. CheckQNXVideo()
  19913. {
  19914. if test x$enable_video = xyes; then
  19915. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19916. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19917. have_video=yes
  19918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19919. SUMMARY_video="${SUMMARY_video} qnx"
  19920. fi
  19921. }
  19922. CheckQNXAudio()
  19923. {
  19924. if test x$enable_audio = xyes; then
  19925. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19926. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19927. have_audio=yes
  19928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19929. SUMMARY_audio="${SUMMARY_audio} qsa"
  19930. fi
  19931. }
  19932. # Check whether --enable-video-opengl was given.
  19933. if test "${enable_video_opengl+set}" = set; then :
  19934. enableval=$enable_video_opengl;
  19935. else
  19936. enable_video_opengl=yes
  19937. fi
  19938. CheckGLX()
  19939. {
  19940. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19942. $as_echo_n "checking for GLX support... " >&6; }
  19943. video_opengl_glx=no
  19944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19945. /* end confdefs.h. */
  19946. #include <GL/glx.h>
  19947. int
  19948. main ()
  19949. {
  19950. ;
  19951. return 0;
  19952. }
  19953. _ACEOF
  19954. if ac_fn_c_try_compile "$LINENO"; then :
  19955. video_opengl_glx=yes
  19956. fi
  19957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19959. $as_echo "$video_opengl_glx" >&6; }
  19960. if test x$video_opengl_glx = xyes; then
  19961. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19962. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19963. fi
  19964. fi
  19965. }
  19966. # Check whether --enable-video-opengles was given.
  19967. if test "${enable_video_opengles+set}" = set; then :
  19968. enableval=$enable_video_opengles;
  19969. else
  19970. enable_video_opengles=yes
  19971. fi
  19972. # Check whether --enable-video-opengles1 was given.
  19973. if test "${enable_video_opengles1+set}" = set; then :
  19974. enableval=$enable_video_opengles1;
  19975. else
  19976. enable_video_opengles1=yes
  19977. fi
  19978. # Check whether --enable-video-opengles2 was given.
  19979. if test "${enable_video_opengles2+set}" = set; then :
  19980. enableval=$enable_video_opengles2;
  19981. else
  19982. enable_video_opengles2=yes
  19983. fi
  19984. CheckEGL()
  19985. {
  19986. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19988. $as_echo_n "checking for EGL support... " >&6; }
  19989. video_opengl_egl=no
  19990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19991. /* end confdefs.h. */
  19992. #define LINUX
  19993. #define EGL_API_FB
  19994. #define MESA_EGL_NO_X11_HEADERS
  19995. #define EGL_NO_X11
  19996. #include <EGL/egl.h>
  19997. #include <EGL/eglext.h>
  19998. int
  19999. main ()
  20000. {
  20001. ;
  20002. return 0;
  20003. }
  20004. _ACEOF
  20005. if ac_fn_c_try_compile "$LINENO"; then :
  20006. video_opengl_egl=yes
  20007. fi
  20008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20010. $as_echo "$video_opengl_egl" >&6; }
  20011. if test x$video_opengl_egl = xyes; then
  20012. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20013. fi
  20014. fi
  20015. }
  20016. CheckOpenGL()
  20017. {
  20018. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20020. $as_echo_n "checking for OpenGL headers... " >&6; }
  20021. video_opengl=no
  20022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20023. /* end confdefs.h. */
  20024. #include <GL/gl.h>
  20025. #include <GL/glext.h>
  20026. int
  20027. main ()
  20028. {
  20029. ;
  20030. return 0;
  20031. }
  20032. _ACEOF
  20033. if ac_fn_c_try_compile "$LINENO"; then :
  20034. video_opengl=yes
  20035. fi
  20036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20038. $as_echo "$video_opengl" >&6; }
  20039. if test x$video_opengl = xyes; then
  20040. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20041. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20042. SUMMARY_video="${SUMMARY_video} opengl"
  20043. fi
  20044. fi
  20045. }
  20046. CheckOpenGLES()
  20047. {
  20048. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20049. if test x$enable_video_opengles1 = xyes; then
  20050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20051. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20052. video_opengles_v1=no
  20053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20054. /* end confdefs.h. */
  20055. #include <GLES/gl.h>
  20056. #include <GLES/glext.h>
  20057. int
  20058. main ()
  20059. {
  20060. ;
  20061. return 0;
  20062. }
  20063. _ACEOF
  20064. if ac_fn_c_try_compile "$LINENO"; then :
  20065. video_opengles_v1=yes
  20066. fi
  20067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20069. $as_echo "$video_opengles_v1" >&6; }
  20070. if test x$video_opengles_v1 = xyes; then
  20071. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20072. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20073. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20074. fi
  20075. fi
  20076. if test x$enable_video_opengles2 = xyes; then
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20078. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20079. video_opengles_v2=no
  20080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20081. /* end confdefs.h. */
  20082. #include <GLES2/gl2.h>
  20083. #include <GLES2/gl2ext.h>
  20084. int
  20085. main ()
  20086. {
  20087. ;
  20088. return 0;
  20089. }
  20090. _ACEOF
  20091. if ac_fn_c_try_compile "$LINENO"; then :
  20092. video_opengles_v2=yes
  20093. fi
  20094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20096. $as_echo "$video_opengles_v2" >&6; }
  20097. if test x$video_opengles_v2 = xyes; then
  20098. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20099. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20100. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20101. fi
  20102. fi
  20103. fi
  20104. }
  20105. CheckWINDOWSGL()
  20106. {
  20107. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20108. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20109. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20110. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20111. SUMMARY_video="${SUMMARY_video} opengl"
  20112. fi
  20113. }
  20114. CheckWINDOWSGLES()
  20115. {
  20116. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20118. $as_echo_n "checking for EGL support... " >&6; }
  20119. video_opengl_egl=no
  20120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20121. /* end confdefs.h. */
  20122. #include <EGL/egl.h>
  20123. int
  20124. main ()
  20125. {
  20126. ;
  20127. return 0;
  20128. }
  20129. _ACEOF
  20130. if ac_fn_c_try_compile "$LINENO"; then :
  20131. video_opengl_egl=yes
  20132. fi
  20133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20135. $as_echo "$video_opengl_egl" >&6; }
  20136. if test x$video_opengl_egl = xyes; then
  20137. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20138. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20139. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20140. fi
  20141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20142. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20143. video_opengles_v2=no
  20144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20145. /* end confdefs.h. */
  20146. #include <GLES2/gl2.h>
  20147. #include <GLES2/gl2ext.h>
  20148. int
  20149. main ()
  20150. {
  20151. ;
  20152. return 0;
  20153. }
  20154. _ACEOF
  20155. if ac_fn_c_try_compile "$LINENO"; then :
  20156. video_opengles_v2=yes
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20160. $as_echo "$video_opengles_v2" >&6; }
  20161. if test x$video_opengles_v2 = xyes; then
  20162. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20163. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20164. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20165. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20166. fi
  20167. fi
  20168. }
  20169. CheckHaikuGL()
  20170. {
  20171. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20172. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20173. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20174. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20175. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20176. SUMMARY_video="${SUMMARY_video} opengl"
  20177. fi
  20178. }
  20179. CheckMacGL()
  20180. {
  20181. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20182. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20183. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20184. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20185. SUMMARY_video="${SUMMARY_video} opengl"
  20186. fi
  20187. }
  20188. CheckMacGLES()
  20189. {
  20190. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20191. video_opengl_egl=yes
  20192. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20193. video_opengles_v2=yes
  20194. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20195. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20196. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20197. fi
  20198. }
  20199. CheckEmscriptenGLES()
  20200. {
  20201. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20203. $as_echo_n "checking for EGL support... " >&6; }
  20204. video_opengl_egl=no
  20205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20206. /* end confdefs.h. */
  20207. #include <EGL/egl.h>
  20208. int
  20209. main ()
  20210. {
  20211. ;
  20212. return 0;
  20213. }
  20214. _ACEOF
  20215. if ac_fn_c_try_compile "$LINENO"; then :
  20216. video_opengl_egl=yes
  20217. fi
  20218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20220. $as_echo "$video_opengl_egl" >&6; }
  20221. if test x$video_opengl_egl = xyes; then
  20222. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20223. fi
  20224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20225. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20226. video_opengles_v2=no
  20227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20228. /* end confdefs.h. */
  20229. #include <GLES2/gl2.h>
  20230. #include <GLES2/gl2ext.h>
  20231. int
  20232. main ()
  20233. {
  20234. ;
  20235. return 0;
  20236. }
  20237. _ACEOF
  20238. if ac_fn_c_try_compile "$LINENO"; then :
  20239. video_opengles_v2=yes
  20240. fi
  20241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20243. $as_echo "$video_opengles_v2" >&6; }
  20244. if test x$video_opengles_v2 = xyes; then
  20245. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20246. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20247. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20248. fi
  20249. fi
  20250. }
  20251. # Check whether --enable-video-vulkan was given.
  20252. if test "${enable_video_vulkan+set}" = set; then :
  20253. enableval=$enable_video_vulkan;
  20254. else
  20255. enable_video_vulkan=yes
  20256. fi
  20257. CheckVulkan()
  20258. {
  20259. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20260. case "$host" in
  20261. *-*-android*)
  20262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20263. /* end confdefs.h. */
  20264. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20265. #error Vulkan doesn't work on this configuration
  20266. #endif
  20267. int
  20268. main ()
  20269. {
  20270. ;
  20271. return 0;
  20272. }
  20273. _ACEOF
  20274. if ac_fn_c_try_compile "$LINENO"; then :
  20275. else
  20276. enable_video_vulkan=no
  20277. fi
  20278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20279. ;;
  20280. *-*-darwin*)
  20281. save_CFLAGS="$CFLAGS"
  20282. CFLAGS="$CFLAGS -x objective-c"
  20283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20284. /* end confdefs.h. */
  20285. #include <Cocoa/Cocoa.h>
  20286. #include <Metal/Metal.h>
  20287. #include <QuartzCore/CAMetalLayer.h>
  20288. #if TARGET_CPU_X86
  20289. #error Vulkan doesn't work on this configuration
  20290. #endif
  20291. int
  20292. main ()
  20293. {
  20294. ;
  20295. return 0;
  20296. }
  20297. _ACEOF
  20298. if ac_fn_c_try_compile "$LINENO"; then :
  20299. else
  20300. enable_video_vulkan=no
  20301. fi
  20302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20303. CFLAGS="$save_CFLAGS"
  20304. ;;
  20305. *)
  20306. ;;
  20307. esac
  20308. if test x$enable_video_vulkan = xno; then
  20309. # For reasons I am totally unable to see, I get an undefined macro error if
  20310. # I put this in the AC_TRY_COMPILE.
  20311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20312. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20313. fi
  20314. fi
  20315. if test x$have_loadso != xyes; then
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20317. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20318. enable_video_vulkan=no
  20319. fi
  20320. if test x$enable_video_vulkan = xyes; then
  20321. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20322. SUMMARY_video="${SUMMARY_video} vulkan"
  20323. fi
  20324. }
  20325. CheckInputEvents()
  20326. {
  20327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20328. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20329. use_input_events=no
  20330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20331. /* end confdefs.h. */
  20332. #include <linux/input.h>
  20333. int
  20334. main ()
  20335. {
  20336. #ifndef EVIOCGNAME
  20337. #error EVIOCGNAME() ioctl not available
  20338. #endif
  20339. ;
  20340. return 0;
  20341. }
  20342. _ACEOF
  20343. if ac_fn_c_try_compile "$LINENO"; then :
  20344. use_input_events=yes
  20345. fi
  20346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20348. $as_echo "$use_input_events" >&6; }
  20349. if test x$use_input_events = xyes; then
  20350. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20351. SUMMARY_input="${SUMMARY_input} linuxev"
  20352. fi
  20353. }
  20354. CheckInputKD()
  20355. {
  20356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20357. $as_echo_n "checking for Linux kd.h... " >&6; }
  20358. use_input_kd=no
  20359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20360. /* end confdefs.h. */
  20361. #include <linux/kd.h>
  20362. #include <linux/keyboard.h>
  20363. int
  20364. main ()
  20365. {
  20366. struct kbentry kbe;
  20367. kbe.kb_table = KG_CTRL;
  20368. ioctl(0, KDGKBENT, &kbe);
  20369. ;
  20370. return 0;
  20371. }
  20372. _ACEOF
  20373. if ac_fn_c_try_compile "$LINENO"; then :
  20374. use_input_kd=yes
  20375. fi
  20376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20378. $as_echo "$use_input_kd" >&6; }
  20379. if test x$use_input_kd = xyes; then
  20380. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20381. SUMMARY_input="${SUMMARY_input} linuxkd"
  20382. fi
  20383. }
  20384. CheckInputKBIO()
  20385. {
  20386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20387. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20388. use_input_kbio=no
  20389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20390. /* end confdefs.h. */
  20391. #include <sys/kbio.h>
  20392. #include <sys/ioctl.h>
  20393. int
  20394. main ()
  20395. {
  20396. accentmap_t accTable;
  20397. ioctl(0, KDENABIO, 1);
  20398. ;
  20399. return 0;
  20400. }
  20401. _ACEOF
  20402. if ac_fn_c_try_compile "$LINENO"; then :
  20403. use_input_kbio=yes
  20404. fi
  20405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20407. $as_echo "$use_input_kbio" >&6; }
  20408. if test x$use_input_kbio = xyes; then
  20409. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20410. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20411. fi
  20412. }
  20413. CheckInputWSCONS()
  20414. {
  20415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20416. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20417. use_input_wscons=no
  20418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20419. /* end confdefs.h. */
  20420. #include <sys/time.h>
  20421. #include <dev/wscons/wsconsio.h>
  20422. #include <dev/wscons/wsksymdef.h>
  20423. #include <dev/wscons/wsksymvar.h>
  20424. #include <sys/ioctl.h>
  20425. int
  20426. main ()
  20427. {
  20428. struct wskbd_map_data data;
  20429. ioctl(0, WSKBDIO_GETMAP, &data);
  20430. ;
  20431. return 0;
  20432. }
  20433. _ACEOF
  20434. if ac_fn_c_try_compile "$LINENO"; then :
  20435. use_input_wscons=yes
  20436. fi
  20437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20439. $as_echo "$use_input_wscons" >&6; }
  20440. if test x$use_input_wscons = xyes; then
  20441. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20442. SUMMARY_input="${SUMMARY_input} wscons"
  20443. fi
  20444. }
  20445. CheckLibUDev()
  20446. {
  20447. # Check whether --enable-libudev was given.
  20448. if test "${enable_libudev+set}" = set; then :
  20449. enableval=$enable_libudev;
  20450. else
  20451. enable_libudev=yes
  20452. fi
  20453. if test x$enable_libudev = xyes; then
  20454. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20455. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20456. have_libudev_h_hdr=yes
  20457. else
  20458. have_libudev_h_hdr=no
  20459. fi
  20460. if test x$have_libudev_h_hdr = xyes; then
  20461. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20462. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20463. if test x$udev_lib != x; then
  20464. echo "-- dynamic udev -> $udev_lib"
  20465. cat >>confdefs.h <<_ACEOF
  20466. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20467. _ACEOF
  20468. fi
  20469. fi
  20470. fi
  20471. }
  20472. CheckDBus()
  20473. {
  20474. # Check whether --enable-dbus was given.
  20475. if test "${enable_dbus+set}" = set; then :
  20476. enableval=$enable_dbus;
  20477. else
  20478. enable_dbus=yes
  20479. fi
  20480. if test x$enable_dbus = xyes; then
  20481. pkg_failed=no
  20482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20483. $as_echo_n "checking for dbus-1... " >&6; }
  20484. if test -n "$DBUS_CFLAGS"; then
  20485. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20486. elif test -n "$PKG_CONFIG"; then
  20487. if test -n "$PKG_CONFIG" && \
  20488. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20489. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20490. ac_status=$?
  20491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20492. test $ac_status = 0; }; then
  20493. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20494. test "x$?" != "x0" && pkg_failed=yes
  20495. else
  20496. pkg_failed=yes
  20497. fi
  20498. else
  20499. pkg_failed=untried
  20500. fi
  20501. if test -n "$DBUS_LIBS"; then
  20502. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20503. elif test -n "$PKG_CONFIG"; then
  20504. if test -n "$PKG_CONFIG" && \
  20505. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20506. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20507. ac_status=$?
  20508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20509. test $ac_status = 0; }; then
  20510. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20511. test "x$?" != "x0" && pkg_failed=yes
  20512. else
  20513. pkg_failed=yes
  20514. fi
  20515. else
  20516. pkg_failed=untried
  20517. fi
  20518. if test $pkg_failed = yes; then
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20520. $as_echo "no" >&6; }
  20521. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20522. _pkg_short_errors_supported=yes
  20523. else
  20524. _pkg_short_errors_supported=no
  20525. fi
  20526. if test $_pkg_short_errors_supported = yes; then
  20527. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20528. else
  20529. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20530. fi
  20531. # Put the nasty error message in config.log where it belongs
  20532. echo "$DBUS_PKG_ERRORS" >&5
  20533. have_dbus=no
  20534. elif test $pkg_failed = untried; then
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20536. $as_echo "no" >&6; }
  20537. have_dbus=no
  20538. else
  20539. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20540. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20542. $as_echo "yes" >&6; }
  20543. have_dbus=yes
  20544. fi
  20545. save_CPPFLAGS="$CPPFLAGS"
  20546. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20547. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20548. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20549. have_dbus_dbus_h_hdr=yes
  20550. else
  20551. have_dbus_dbus_h_hdr=no
  20552. fi
  20553. CPPFLAGS="$save_CPPFLAGS"
  20554. if test x$have_dbus_dbus_h_hdr = xyes; then
  20555. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20556. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20557. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20558. fi
  20559. fi
  20560. }
  20561. CheckIME()
  20562. {
  20563. # Check whether --enable-ime was given.
  20564. if test "${enable_ime+set}" = set; then :
  20565. enableval=$enable_ime;
  20566. else
  20567. enable_ime=yes
  20568. fi
  20569. if test x$enable_ime = xyes; then
  20570. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20571. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20572. fi
  20573. }
  20574. CheckInotify()
  20575. {
  20576. save_LIBS="$LIBS"
  20577. case "$host" in
  20578. *-*-freebsd*) LIBS="$LIBS -linotify"
  20579. ;;
  20580. esac
  20581. for ac_header in sys/inotify.h
  20582. do :
  20583. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20584. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20585. cat >>confdefs.h <<_ACEOF
  20586. #define HAVE_SYS_INOTIFY_H 1
  20587. _ACEOF
  20588. have_inotify_inotify_h_hdr=yes
  20589. fi
  20590. done
  20591. for ac_func in inotify_init
  20592. do :
  20593. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20594. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20595. cat >>confdefs.h <<_ACEOF
  20596. #define HAVE_INOTIFY_INIT 1
  20597. _ACEOF
  20598. have_inotify=yes
  20599. fi
  20600. done
  20601. for ac_func in inotify_init1
  20602. do :
  20603. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20604. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20605. cat >>confdefs.h <<_ACEOF
  20606. #define HAVE_INOTIFY_INIT1 1
  20607. _ACEOF
  20608. fi
  20609. done
  20610. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20611. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20612. case "$host" in
  20613. *-*-freebsd*)
  20614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20615. ;;
  20616. esac
  20617. fi
  20618. LIBS="$save_LIBS"
  20619. }
  20620. CheckIBus()
  20621. {
  20622. # Check whether --enable-ibus was given.
  20623. if test "${enable_ibus+set}" = set; then :
  20624. enableval=$enable_ibus;
  20625. else
  20626. enable_ibus=yes
  20627. fi
  20628. if test x$enable_ibus = xyes; then
  20629. pkg_failed=no
  20630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20631. $as_echo_n "checking for ibus-1.0... " >&6; }
  20632. if test -n "$IBUS_CFLAGS"; then
  20633. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20634. elif test -n "$PKG_CONFIG"; then
  20635. if test -n "$PKG_CONFIG" && \
  20636. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20637. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20638. ac_status=$?
  20639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20640. test $ac_status = 0; }; then
  20641. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20642. test "x$?" != "x0" && pkg_failed=yes
  20643. else
  20644. pkg_failed=yes
  20645. fi
  20646. else
  20647. pkg_failed=untried
  20648. fi
  20649. if test -n "$IBUS_LIBS"; then
  20650. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20651. elif test -n "$PKG_CONFIG"; then
  20652. if test -n "$PKG_CONFIG" && \
  20653. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20654. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20655. ac_status=$?
  20656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20657. test $ac_status = 0; }; then
  20658. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20659. test "x$?" != "x0" && pkg_failed=yes
  20660. else
  20661. pkg_failed=yes
  20662. fi
  20663. else
  20664. pkg_failed=untried
  20665. fi
  20666. if test $pkg_failed = yes; then
  20667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20668. $as_echo "no" >&6; }
  20669. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20670. _pkg_short_errors_supported=yes
  20671. else
  20672. _pkg_short_errors_supported=no
  20673. fi
  20674. if test $_pkg_short_errors_supported = yes; then
  20675. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20676. else
  20677. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20678. fi
  20679. # Put the nasty error message in config.log where it belongs
  20680. echo "$IBUS_PKG_ERRORS" >&5
  20681. have_ibus=no
  20682. elif test $pkg_failed = untried; then
  20683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20684. $as_echo "no" >&6; }
  20685. have_ibus=no
  20686. else
  20687. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20688. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20690. $as_echo "yes" >&6; }
  20691. have_ibus=yes
  20692. fi
  20693. save_CPPFLAGS="$CPPFLAGS"
  20694. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20695. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20696. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20697. have_ibus_ibus_h_hdr=yes
  20698. else
  20699. have_ibus_ibus_h_hdr=no
  20700. fi
  20701. CPPFLAGS="$save_CPPFLAGS"
  20702. if test x$have_ibus_ibus_h_hdr = xyes; then
  20703. if test x$enable_ime != xyes; then
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20705. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20706. have_ibus_ibus_h_hdr=no
  20707. elif test x$enable_dbus != xyes; then
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20709. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20710. have_ibus_ibus_h_hdr=no
  20711. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20713. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20714. have_ibus_ibus_h_hdr=no
  20715. else
  20716. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20717. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20718. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20719. fi
  20720. fi
  20721. fi
  20722. }
  20723. CheckFcitx()
  20724. {
  20725. # Check whether --enable-fcitx was given.
  20726. if test "${enable_fcitx+set}" = set; then :
  20727. enableval=$enable_fcitx;
  20728. else
  20729. enable_fcitx=yes
  20730. fi
  20731. if test x$enable_fcitx = xyes; then
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20733. $as_echo_n "checking for fcitx support... " >&6; }
  20734. have_fcitx=no
  20735. if test x$enable_ime != xyes; then
  20736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20737. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20738. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20740. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20741. else
  20742. have_fcitx=yes
  20743. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20744. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20745. fi
  20746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20747. $as_echo "$have_fcitx" >&6; }
  20748. fi
  20749. }
  20750. CheckJoystickMFI()
  20751. {
  20752. # Check whether --enable-joystick-mfi was given.
  20753. if test "${enable_joystick_mfi+set}" = set; then :
  20754. enableval=$enable_joystick_mfi;
  20755. else
  20756. enable_joystick_mfi=yes
  20757. fi
  20758. if test x$enable_joystick_mfi = xyes; then
  20759. save_CFLAGS="$CFLAGS"
  20760. save_LDFLAGS="$LDFLAGS"
  20761. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20762. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20764. $as_echo_n "checking for GameController framework... " >&6; }
  20765. enable_joystick_mfi=no
  20766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20767. /* end confdefs.h. */
  20768. #include <AvailabilityMacros.h>
  20769. #include <TargetConditionals.h>
  20770. #import <GameController/GameController.h>
  20771. int
  20772. main ()
  20773. {
  20774. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20775. #error GameController framework doesn't work on this configuration
  20776. #endif
  20777. #if TARGET_CPU_X86
  20778. #error GameController framework doesn't work on this configuration
  20779. #endif
  20780. ;
  20781. return 0;
  20782. }
  20783. _ACEOF
  20784. if ac_fn_c_try_link "$LINENO"; then :
  20785. enable_joystick_mfi=yes
  20786. fi
  20787. rm -f core conftest.err conftest.$ac_objext \
  20788. conftest$ac_exeext conftest.$ac_ext
  20789. CFLAGS="$save_CFLAGS"
  20790. LDFLAGS="$save_LDFLAGS"
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20792. $as_echo "$enable_joystick_mfi" >&6; }
  20793. if test x$enable_joystick_mfi = xyes; then
  20794. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20795. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20797. fi
  20798. fi
  20799. }
  20800. CheckPTHREAD()
  20801. {
  20802. case "$host" in
  20803. *-*-emscripten*)
  20804. enable_pthreads_default=no
  20805. ;;
  20806. *)
  20807. enable_pthreads_default=yes
  20808. ;;
  20809. esac
  20810. # Check whether --enable-pthreads was given.
  20811. if test "${enable_pthreads+set}" = set; then :
  20812. enableval=$enable_pthreads;
  20813. else
  20814. enable_pthreads=maybe
  20815. fi
  20816. # Check whether --enable-pthread-sem was given.
  20817. if test "${enable_pthread_sem+set}" = set; then :
  20818. enableval=$enable_pthread_sem;
  20819. else
  20820. enable_pthread_sem=maybe
  20821. fi
  20822. if test x$enable_pthreads = xmaybe; then
  20823. enable_pthreads=$enable_pthreads_default
  20824. fi
  20825. if test x$enable_pthread_sem = xmaybe; then
  20826. enable_pthread_sem=$enable_pthreads
  20827. fi
  20828. case "$host" in
  20829. *-*-android*)
  20830. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20831. pthread_lib=""
  20832. ;;
  20833. *-*-linux*|*-*-uclinux*)
  20834. pthread_cflags="-D_REENTRANT"
  20835. pthread_lib="-lpthread"
  20836. ;;
  20837. *-*-bsdi*)
  20838. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20839. pthread_lib=""
  20840. ;;
  20841. *-*-darwin*)
  20842. pthread_cflags="-D_THREAD_SAFE"
  20843. # causes Carbon.p complaints?
  20844. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20845. ;;
  20846. *-*-freebsd*|*-*-dragonfly*)
  20847. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20848. pthread_lib="-pthread"
  20849. ;;
  20850. *-*-netbsd*)
  20851. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20852. pthread_lib="-lpthread"
  20853. ;;
  20854. *-*-openbsd*)
  20855. pthread_cflags="-D_REENTRANT"
  20856. pthread_lib="-pthread"
  20857. ;;
  20858. *-*-solaris2.9)
  20859. # From Solaris 9+, posix4's preferred name is rt.
  20860. pthread_cflags="-D_REENTRANT"
  20861. pthread_lib="-lpthread -lrt"
  20862. ;;
  20863. *-*-solaris2.10)
  20864. # Solaris 10+ merged pthread into libc.
  20865. pthread_cflags="-D_REENTRANT"
  20866. pthread_lib="-lrt"
  20867. ;;
  20868. *-*-solaris*)
  20869. # Solaris 11+ merged rt into libc.
  20870. pthread_cflags="-D_REENTRANT"
  20871. pthread_lib=""
  20872. ;;
  20873. *-*-sysv5*)
  20874. pthread_cflags="-D_REENTRANT -Kthread"
  20875. pthread_lib=""
  20876. ;;
  20877. *-*-aix*)
  20878. pthread_cflags="-D_REENTRANT -mthreads"
  20879. pthread_lib="-lpthread"
  20880. ;;
  20881. *-*-hpux11*)
  20882. pthread_cflags="-D_REENTRANT"
  20883. pthread_lib="-L/usr/lib -lpthread"
  20884. ;;
  20885. *-*-haiku*)
  20886. pthread_cflags="-D_REENTRANT"
  20887. pthread_lib=""
  20888. ;;
  20889. *-*-nto*)
  20890. pthread_cflags="-D_REENTRANT"
  20891. pthread_lib=""
  20892. ;;
  20893. *-*-emscripten*)
  20894. pthread_cflags="-D_REENTRANT -pthread"
  20895. pthread_lib="-pthread"
  20896. ;;
  20897. *)
  20898. pthread_cflags="-D_REENTRANT"
  20899. pthread_lib="-lpthread"
  20900. ;;
  20901. esac
  20902. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20903. # Save the original compiler flags and libraries
  20904. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20905. # Add the pthread compiler flags and libraries
  20906. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20907. # Check to see if we have pthread support on this system
  20908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20909. $as_echo_n "checking for pthreads... " >&6; }
  20910. use_pthreads=no
  20911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20912. /* end confdefs.h. */
  20913. #include <pthread.h>
  20914. int
  20915. main ()
  20916. {
  20917. pthread_attr_t type;
  20918. pthread_attr_init(&type);
  20919. ;
  20920. return 0;
  20921. }
  20922. _ACEOF
  20923. if ac_fn_c_try_link "$LINENO"; then :
  20924. use_pthreads=yes
  20925. fi
  20926. rm -f core conftest.err conftest.$ac_objext \
  20927. conftest$ac_exeext conftest.$ac_ext
  20928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20929. $as_echo "$use_pthreads" >&6; }
  20930. # Restore the compiler flags and libraries
  20931. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20932. # Do futher testing if we have pthread support...
  20933. if test x$use_pthreads = xyes; then
  20934. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20935. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20937. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20938. # Save the original compiler flags and libraries
  20939. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20940. # Add the pthread compiler flags and libraries
  20941. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20942. # Check to see if recursive mutexes are available
  20943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20944. $as_echo_n "checking for recursive mutexes... " >&6; }
  20945. has_recursive_mutexes=no
  20946. if test x$has_recursive_mutexes = xno; then
  20947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20948. /* end confdefs.h. */
  20949. #define _GNU_SOURCE 1
  20950. #include <pthread.h>
  20951. int
  20952. main ()
  20953. {
  20954. pthread_mutexattr_t attr;
  20955. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20956. ;
  20957. return 0;
  20958. }
  20959. _ACEOF
  20960. if ac_fn_c_try_link "$LINENO"; then :
  20961. has_recursive_mutexes=yes
  20962. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20963. fi
  20964. rm -f core conftest.err conftest.$ac_objext \
  20965. conftest$ac_exeext conftest.$ac_ext
  20966. fi
  20967. if test x$has_recursive_mutexes = xno; then
  20968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20969. /* end confdefs.h. */
  20970. #define _GNU_SOURCE 1
  20971. #include <pthread.h>
  20972. int
  20973. main ()
  20974. {
  20975. pthread_mutexattr_t attr;
  20976. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20977. ;
  20978. return 0;
  20979. }
  20980. _ACEOF
  20981. if ac_fn_c_try_link "$LINENO"; then :
  20982. has_recursive_mutexes=yes
  20983. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20984. fi
  20985. rm -f core conftest.err conftest.$ac_objext \
  20986. conftest$ac_exeext conftest.$ac_ext
  20987. fi
  20988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20989. $as_echo "$has_recursive_mutexes" >&6; }
  20990. # Check to see if pthread semaphore support is missing
  20991. if test x$enable_pthread_sem = xyes; then
  20992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20993. $as_echo_n "checking for pthread semaphores... " >&6; }
  20994. have_pthread_sem=no
  20995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20996. /* end confdefs.h. */
  20997. #include <pthread.h>
  20998. #include <semaphore.h>
  20999. int
  21000. main ()
  21001. {
  21002. ;
  21003. return 0;
  21004. }
  21005. _ACEOF
  21006. if ac_fn_c_try_compile "$LINENO"; then :
  21007. have_pthread_sem=yes
  21008. fi
  21009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21011. $as_echo "$have_pthread_sem" >&6; }
  21012. fi
  21013. if test x$have_pthread_sem = xyes; then
  21014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21015. $as_echo_n "checking for sem_timedwait... " >&6; }
  21016. have_sem_timedwait=no
  21017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21018. /* end confdefs.h. */
  21019. #include <pthread.h>
  21020. #include <semaphore.h>
  21021. int
  21022. main ()
  21023. {
  21024. sem_timedwait(NULL, NULL);
  21025. ;
  21026. return 0;
  21027. }
  21028. _ACEOF
  21029. if ac_fn_c_try_link "$LINENO"; then :
  21030. have_sem_timedwait=yes
  21031. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21032. fi
  21033. rm -f core conftest.err conftest.$ac_objext \
  21034. conftest$ac_exeext conftest.$ac_ext
  21035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21036. $as_echo "$have_sem_timedwait" >&6; }
  21037. fi
  21038. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21039. "
  21040. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21041. have_pthread_np_h=yes
  21042. else
  21043. have_pthread_np_h=no
  21044. fi
  21045. if test x$have_pthread_np_h = xyes; then
  21046. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21047. fi
  21048. # Check to see if pthread naming is available
  21049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21050. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21052. /* end confdefs.h. */
  21053. /* Override any GCC internal prototype to avoid an error.
  21054. Use char because int might match the return type of a GCC
  21055. builtin and then its argument prototype would still apply. */
  21056. #ifdef __cplusplus
  21057. extern "C"
  21058. #endif
  21059. char pthread_setname_np ();
  21060. int
  21061. main ()
  21062. {
  21063. return pthread_setname_np ();
  21064. ;
  21065. return 0;
  21066. }
  21067. _ACEOF
  21068. if ac_fn_c_try_link "$LINENO"; then :
  21069. has_pthread_setname_np=yes
  21070. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21071. else
  21072. has_pthread_setname_np=no
  21073. fi
  21074. rm -f core conftest.err conftest.$ac_objext \
  21075. conftest$ac_exeext conftest.$ac_ext
  21076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21077. $as_echo "$has_pthread_setname_np" >&6; }
  21078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21079. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21081. /* end confdefs.h. */
  21082. /* Override any GCC internal prototype to avoid an error.
  21083. Use char because int might match the return type of a GCC
  21084. builtin and then its argument prototype would still apply. */
  21085. #ifdef __cplusplus
  21086. extern "C"
  21087. #endif
  21088. char pthread_set_name_np ();
  21089. int
  21090. main ()
  21091. {
  21092. return pthread_set_name_np ();
  21093. ;
  21094. return 0;
  21095. }
  21096. _ACEOF
  21097. if ac_fn_c_try_link "$LINENO"; then :
  21098. has_pthread_set_name_np=yes
  21099. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21100. else
  21101. has_pthread_set_name_np=no
  21102. fi
  21103. rm -f core conftest.err conftest.$ac_objext \
  21104. conftest$ac_exeext conftest.$ac_ext
  21105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21106. $as_echo "$has_pthread_set_name_np" >&6; }
  21107. # Restore the compiler flags and libraries
  21108. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21109. # Basic thread creation functions
  21110. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21111. # Semaphores
  21112. # We can fake these with mutexes and condition variables if necessary
  21113. if test x$have_pthread_sem = xyes; then
  21114. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21115. else
  21116. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21117. fi
  21118. # Mutexes
  21119. # We can fake these with semaphores if necessary
  21120. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21121. # Condition variables
  21122. # We can fake these with semaphores and mutexes if necessary
  21123. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21124. # Thread local storage
  21125. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21126. have_threads=yes
  21127. fi
  21128. fi
  21129. }
  21130. CheckWINDOWS()
  21131. {
  21132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21133. $as_echo_n "checking Windows compiler... " >&6; }
  21134. have_win32_gcc=no
  21135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21136. /* end confdefs.h. */
  21137. #include <windows.h>
  21138. int
  21139. main ()
  21140. {
  21141. ;
  21142. return 0;
  21143. }
  21144. _ACEOF
  21145. if ac_fn_c_try_compile "$LINENO"; then :
  21146. have_win32_gcc=yes
  21147. fi
  21148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21150. $as_echo "$have_win32_gcc" >&6; }
  21151. if test x$have_win32_gcc != xyes; then
  21152. as_fn_error $? "
  21153. *** Your compiler ($CC) does not produce Windows executables!
  21154. " "$LINENO" 5
  21155. fi
  21156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21157. $as_echo_n "checking Windows CE... " >&6; }
  21158. have_wince=no
  21159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21160. /* end confdefs.h. */
  21161. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21162. #error This is not Windows CE
  21163. #endif
  21164. int
  21165. main ()
  21166. {
  21167. ;
  21168. return 0;
  21169. }
  21170. _ACEOF
  21171. if ac_fn_c_try_compile "$LINENO"; then :
  21172. have_wince=yes
  21173. as_fn_error $? "
  21174. *** Sorry, Windows CE is no longer supported.
  21175. " "$LINENO" 5
  21176. fi
  21177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21179. $as_echo "$have_wince" >&6; }
  21180. # This fixes Windows stack alignment with newer GCC
  21181. CheckStackBoundary
  21182. # headers needed elsewhere
  21183. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21184. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21185. have_tpcshrd_h=yes
  21186. fi
  21187. if test x$have_tpcshrd_h = xyes; then
  21188. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21189. fi
  21190. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21191. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21192. have_roapi_h=yes
  21193. fi
  21194. if test x$have_roapi_h = xyes; then
  21195. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21196. fi
  21197. }
  21198. CheckOS2()
  21199. {
  21200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21201. $as_echo_n "checking OS/2 compiler... " >&6; }
  21202. have_os2_gcc=no
  21203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21204. /* end confdefs.h. */
  21205. #include <os2.h>
  21206. int
  21207. main ()
  21208. {
  21209. ;
  21210. return 0;
  21211. }
  21212. _ACEOF
  21213. if ac_fn_c_try_compile "$LINENO"; then :
  21214. have_os2_gcc=yes
  21215. fi
  21216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21218. $as_echo "$have_os2_gcc" >&6; }
  21219. if test x$have_os2_gcc != xyes; then
  21220. as_fn_error $? "
  21221. *** Your compiler ($CC) does not produce OS/2 executables!
  21222. " "$LINENO" 5
  21223. fi
  21224. }
  21225. CheckDIRECTX()
  21226. {
  21227. # Check whether --enable-directx was given.
  21228. if test "${enable_directx+set}" = set; then :
  21229. enableval=$enable_directx;
  21230. else
  21231. enable_directx=yes
  21232. fi
  21233. if test x$enable_directx = xyes; then
  21234. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21235. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21236. have_d3d=yes
  21237. fi
  21238. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21239. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21240. have_d3d11=yes
  21241. fi
  21242. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21243. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21244. have_ddraw=yes
  21245. fi
  21246. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21247. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21248. have_dsound=yes
  21249. fi
  21250. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21251. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21252. have_dinput=yes
  21253. fi
  21254. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21255. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21256. have_dxgi=yes
  21257. fi
  21258. if test x$have_ddraw = xyes; then
  21259. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21260. fi
  21261. if test x$have_dinput = xyes; then
  21262. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21263. fi
  21264. if test x$have_dsound = xyes; then
  21265. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21266. fi
  21267. if test x$have_dxgi = xyes; then
  21268. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21269. fi
  21270. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21271. # FIXME: ...so force it off for now.
  21272. case "$host" in
  21273. *-*-cygwin*)
  21274. have_dinput=false
  21275. ;;
  21276. esac
  21277. fi
  21278. # Check whether --enable-xinput was given.
  21279. if test "${enable_xinput+set}" = set; then :
  21280. enableval=$enable_xinput;
  21281. else
  21282. enable_xinput=yes
  21283. fi
  21284. if test x$enable_xinput = xyes; then
  21285. have_xinput_gamepadex=no
  21286. have_xinput_stateex=no
  21287. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21288. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21289. have_xinput=yes
  21290. fi
  21291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21292. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21294. /* end confdefs.h. */
  21295. #include <windows.h>
  21296. #include <xinput.h>
  21297. XINPUT_GAMEPAD_EX x1;
  21298. int
  21299. main ()
  21300. {
  21301. ;
  21302. return 0;
  21303. }
  21304. _ACEOF
  21305. if ac_fn_c_try_compile "$LINENO"; then :
  21306. have_xinput_gamepadex=yes
  21307. fi
  21308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21310. $as_echo "$have_xinput_gamepadex" >&6; }
  21311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21312. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21314. /* end confdefs.h. */
  21315. #include <windows.h>
  21316. #include <xinput.h>
  21317. XINPUT_STATE_EX s1;
  21318. int
  21319. main ()
  21320. {
  21321. ;
  21322. return 0;
  21323. }
  21324. _ACEOF
  21325. if ac_fn_c_try_compile "$LINENO"; then :
  21326. have_xinput_stateex=yes
  21327. fi
  21328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21330. $as_echo "$have_xinput_stateex" >&6; }
  21331. if test x$have_xinput = xyes; then
  21332. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21333. fi
  21334. if test x$have_xinput_gamepadex = xyes; then
  21335. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21336. fi
  21337. if test x$have_xinput_stateex = xyes; then
  21338. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21339. fi
  21340. fi
  21341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21342. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21344. /* end confdefs.h. */
  21345. #define COBJMACROS
  21346. #include <windows.gaming.input.h>
  21347. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21348. int
  21349. main ()
  21350. {
  21351. ;
  21352. return 0;
  21353. }
  21354. _ACEOF
  21355. if ac_fn_c_try_compile "$LINENO"; then :
  21356. have_wgi=yes
  21357. else
  21358. have_wgi=no
  21359. fi
  21360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21362. $as_echo "$have_wgi" >&6; }
  21363. if test x$have_wgi = xyes; then
  21364. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21365. fi
  21366. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21367. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21368. have_wasapi=yes
  21369. fi
  21370. if test x$have_wasapi = xyes; then
  21371. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21372. fi
  21373. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21374. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21375. else
  21376. have_wasapi=no
  21377. fi
  21378. if test x$have_wasapi = xyes; then
  21379. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21380. fi
  21381. # Check whether --enable-wasapi was given.
  21382. if test "${enable_wasapi+set}" = set; then :
  21383. enableval=$enable_wasapi;
  21384. else
  21385. enable_wasapi=yes
  21386. fi
  21387. }
  21388. CheckDLOPEN()
  21389. {
  21390. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21391. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21392. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21393. have_dlfcn_h=yes
  21394. else
  21395. have_dlfcn_h=no
  21396. fi
  21397. have_dlopen=no
  21398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21399. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21400. if ${ac_cv_lib_c_dlopen+:} false; then :
  21401. $as_echo_n "(cached) " >&6
  21402. else
  21403. ac_check_lib_save_LIBS=$LIBS
  21404. LIBS="-lc $LIBS"
  21405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21406. /* end confdefs.h. */
  21407. /* Override any GCC internal prototype to avoid an error.
  21408. Use char because int might match the return type of a GCC
  21409. builtin and then its argument prototype would still apply. */
  21410. #ifdef __cplusplus
  21411. extern "C"
  21412. #endif
  21413. char dlopen ();
  21414. int
  21415. main ()
  21416. {
  21417. return dlopen ();
  21418. ;
  21419. return 0;
  21420. }
  21421. _ACEOF
  21422. if ac_fn_c_try_link "$LINENO"; then :
  21423. ac_cv_lib_c_dlopen=yes
  21424. else
  21425. ac_cv_lib_c_dlopen=no
  21426. fi
  21427. rm -f core conftest.err conftest.$ac_objext \
  21428. conftest$ac_exeext conftest.$ac_ext
  21429. LIBS=$ac_check_lib_save_LIBS
  21430. fi
  21431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21432. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21433. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21434. have_dlopen=yes
  21435. else
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21437. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21438. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21439. $as_echo_n "(cached) " >&6
  21440. else
  21441. ac_check_lib_save_LIBS=$LIBS
  21442. LIBS="-ldl $LIBS"
  21443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21444. /* end confdefs.h. */
  21445. /* Override any GCC internal prototype to avoid an error.
  21446. Use char because int might match the return type of a GCC
  21447. builtin and then its argument prototype would still apply. */
  21448. #ifdef __cplusplus
  21449. extern "C"
  21450. #endif
  21451. char dlopen ();
  21452. int
  21453. main ()
  21454. {
  21455. return dlopen ();
  21456. ;
  21457. return 0;
  21458. }
  21459. _ACEOF
  21460. if ac_fn_c_try_link "$LINENO"; then :
  21461. ac_cv_lib_dl_dlopen=yes
  21462. else
  21463. ac_cv_lib_dl_dlopen=no
  21464. fi
  21465. rm -f core conftest.err conftest.$ac_objext \
  21466. conftest$ac_exeext conftest.$ac_ext
  21467. LIBS=$ac_check_lib_save_LIBS
  21468. fi
  21469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21470. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21471. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21472. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21473. fi
  21474. fi
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21476. $as_echo_n "checking for dlopen... " >&6; }
  21477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21478. $as_echo "$have_dlopen" >&6; }
  21479. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21480. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21481. if test x$enable_loadso = xyes; then
  21482. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21484. have_loadso=yes
  21485. fi
  21486. fi
  21487. }
  21488. CheckO_CLOEXEC()
  21489. {
  21490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21491. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21493. /* end confdefs.h. */
  21494. #include <fcntl.h>
  21495. int flag = O_CLOEXEC;
  21496. int
  21497. main ()
  21498. {
  21499. ;
  21500. return 0;
  21501. }
  21502. _ACEOF
  21503. if ac_fn_c_try_compile "$LINENO"; then :
  21504. have_o_cloexec=yes
  21505. else
  21506. have_o_cloexec=no
  21507. fi
  21508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21510. $as_echo "$have_o_cloexec" >&6; }
  21511. if test $have_o_cloexec = yes; then
  21512. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21513. fi
  21514. }
  21515. CheckUSBHID()
  21516. {
  21517. case "$host" in
  21518. *-*-*bsd*|*-*-dragonfly*)
  21519. if test x$enable_joystick = xyes; then
  21520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21521. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21522. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21523. $as_echo_n "(cached) " >&6
  21524. else
  21525. ac_check_lib_save_LIBS=$LIBS
  21526. LIBS="-lusbhid $LIBS"
  21527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21528. /* end confdefs.h. */
  21529. /* Override any GCC internal prototype to avoid an error.
  21530. Use char because int might match the return type of a GCC
  21531. builtin and then its argument prototype would still apply. */
  21532. #ifdef __cplusplus
  21533. extern "C"
  21534. #endif
  21535. char hid_init ();
  21536. int
  21537. main ()
  21538. {
  21539. return hid_init ();
  21540. ;
  21541. return 0;
  21542. }
  21543. _ACEOF
  21544. if ac_fn_c_try_link "$LINENO"; then :
  21545. ac_cv_lib_usbhid_hid_init=yes
  21546. else
  21547. ac_cv_lib_usbhid_hid_init=no
  21548. fi
  21549. rm -f core conftest.err conftest.$ac_objext \
  21550. conftest$ac_exeext conftest.$ac_ext
  21551. LIBS=$ac_check_lib_save_LIBS
  21552. fi
  21553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21554. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21555. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21556. have_libusbhid=yes
  21557. fi
  21558. if test x$have_libusbhid = xyes; then
  21559. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21560. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21561. USB_CFLAGS="-DHAVE_USBHID_H"
  21562. fi
  21563. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21564. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21565. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21566. fi
  21567. USB_LIBS="$USB_LIBS -lusbhid"
  21568. else
  21569. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21570. if test "x$ac_cv_header_usb_h" = xyes; then :
  21571. USB_CFLAGS="-DHAVE_USB_H"
  21572. fi
  21573. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21574. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21575. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21576. fi
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21578. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21579. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21580. $as_echo_n "(cached) " >&6
  21581. else
  21582. ac_check_lib_save_LIBS=$LIBS
  21583. LIBS="-lusb $LIBS"
  21584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21585. /* end confdefs.h. */
  21586. /* Override any GCC internal prototype to avoid an error.
  21587. Use char because int might match the return type of a GCC
  21588. builtin and then its argument prototype would still apply. */
  21589. #ifdef __cplusplus
  21590. extern "C"
  21591. #endif
  21592. char hid_init ();
  21593. int
  21594. main ()
  21595. {
  21596. return hid_init ();
  21597. ;
  21598. return 0;
  21599. }
  21600. _ACEOF
  21601. if ac_fn_c_try_link "$LINENO"; then :
  21602. ac_cv_lib_usb_hid_init=yes
  21603. else
  21604. ac_cv_lib_usb_hid_init=no
  21605. fi
  21606. rm -f core conftest.err conftest.$ac_objext \
  21607. conftest$ac_exeext conftest.$ac_ext
  21608. LIBS=$ac_check_lib_save_LIBS
  21609. fi
  21610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21611. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21612. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21613. USB_LIBS="$USB_LIBS -lusb"
  21614. fi
  21615. fi
  21616. save_CFLAGS="$CFLAGS"
  21617. CFLAGS="$CFLAGS $USB_CFLAGS"
  21618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21619. $as_echo_n "checking for usbhid... " >&6; }
  21620. have_usbhid=no
  21621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21622. /* end confdefs.h. */
  21623. #include <sys/types.h>
  21624. #if defined(HAVE_USB_H)
  21625. #include <usb.h>
  21626. #endif
  21627. #ifdef __DragonFly__
  21628. # include <bus/u4b/usb.h>
  21629. # include <bus/u4b/usbhid.h>
  21630. #else
  21631. # include <dev/usb/usb.h>
  21632. # include <dev/usb/usbhid.h>
  21633. #endif
  21634. #if defined(HAVE_USBHID_H)
  21635. #include <usbhid.h>
  21636. #elif defined(HAVE_LIBUSB_H)
  21637. #include <libusb.h>
  21638. #elif defined(HAVE_LIBUSBHID_H)
  21639. #include <libusbhid.h>
  21640. #endif
  21641. int
  21642. main ()
  21643. {
  21644. struct report_desc *repdesc;
  21645. struct usb_ctl_report *repbuf;
  21646. hid_kind_t hidkind;
  21647. ;
  21648. return 0;
  21649. }
  21650. _ACEOF
  21651. if ac_fn_c_try_compile "$LINENO"; then :
  21652. have_usbhid=yes
  21653. fi
  21654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21656. $as_echo "$have_usbhid" >&6; }
  21657. if test x$have_usbhid = xyes; then
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21659. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21660. have_usbhid_ucr_data=no
  21661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21662. /* end confdefs.h. */
  21663. #include <sys/types.h>
  21664. #if defined(HAVE_USB_H)
  21665. #include <usb.h>
  21666. #endif
  21667. #ifdef __DragonFly__
  21668. # include <bus/u4b/usb.h>
  21669. # include <bus/u4b/usbhid.h>
  21670. #else
  21671. # include <dev/usb/usb.h>
  21672. # include <dev/usb/usbhid.h>
  21673. #endif
  21674. #if defined(HAVE_USBHID_H)
  21675. #include <usbhid.h>
  21676. #elif defined(HAVE_LIBUSB_H)
  21677. #include <libusb.h>
  21678. #elif defined(HAVE_LIBUSBHID_H)
  21679. #include <libusbhid.h>
  21680. #endif
  21681. int
  21682. main ()
  21683. {
  21684. struct usb_ctl_report buf;
  21685. if (buf.ucr_data) { }
  21686. ;
  21687. return 0;
  21688. }
  21689. _ACEOF
  21690. if ac_fn_c_try_compile "$LINENO"; then :
  21691. have_usbhid_ucr_data=yes
  21692. fi
  21693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21694. if test x$have_usbhid_ucr_data = xyes; then
  21695. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21696. fi
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21698. $as_echo "$have_usbhid_ucr_data" >&6; }
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21700. $as_echo_n "checking for new usbhid API... " >&6; }
  21701. have_usbhid_new=no
  21702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21703. /* end confdefs.h. */
  21704. #include <sys/types.h>
  21705. #if defined(HAVE_USB_H)
  21706. #include <usb.h>
  21707. #endif
  21708. #ifdef __DragonFly__
  21709. #include <bus/u4b/usb.h>
  21710. #include <bus/u4b/usbhid.h>
  21711. #else
  21712. #include <dev/usb/usb.h>
  21713. #include <dev/usb/usbhid.h>
  21714. #endif
  21715. #if defined(HAVE_USBHID_H)
  21716. #include <usbhid.h>
  21717. #elif defined(HAVE_LIBUSB_H)
  21718. #include <libusb.h>
  21719. #elif defined(HAVE_LIBUSBHID_H)
  21720. #include <libusbhid.h>
  21721. #endif
  21722. int
  21723. main ()
  21724. {
  21725. report_desc_t d;
  21726. hid_start_parse(d, 1, 1);
  21727. ;
  21728. return 0;
  21729. }
  21730. _ACEOF
  21731. if ac_fn_c_try_compile "$LINENO"; then :
  21732. have_usbhid_new=yes
  21733. fi
  21734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21735. if test x$have_usbhid_new = xyes; then
  21736. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21737. fi
  21738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21739. $as_echo "$have_usbhid_new" >&6; }
  21740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21741. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21742. have_machine_joystick=no
  21743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21744. /* end confdefs.h. */
  21745. #include <machine/joystick.h>
  21746. int
  21747. main ()
  21748. {
  21749. struct joystick t;
  21750. ;
  21751. return 0;
  21752. }
  21753. _ACEOF
  21754. if ac_fn_c_try_compile "$LINENO"; then :
  21755. have_machine_joystick=yes
  21756. fi
  21757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21758. if test x$have_machine_joystick = xyes; then
  21759. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21760. fi
  21761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21762. $as_echo "$have_machine_joystick" >&6; }
  21763. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21765. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21767. have_joystick=yes
  21768. fi
  21769. CFLAGS="$save_CFLAGS"
  21770. fi
  21771. ;;
  21772. esac
  21773. }
  21774. CheckHIDAPI()
  21775. {
  21776. # Check whether --enable-hidapi-joystick was given.
  21777. if test "${enable_hidapi_joystick+set}" = set; then :
  21778. enableval=$enable_hidapi_joystick;
  21779. else
  21780. enable_hidapi_joystick=yes
  21781. fi
  21782. # Check whether --enable-hidapi-libusb was given.
  21783. if test "${enable_hidapi_libusb+set}" = set; then :
  21784. enableval=$enable_hidapi_libusb;
  21785. else
  21786. enable_hidapi_libusb=maybe
  21787. fi
  21788. if test x$enable_hidapi = xyes; then
  21789. case "$host" in
  21790. # libusb does not support iOS
  21791. *-ios-* )
  21792. enable_hidapi_libusb=no
  21793. ;;
  21794. # On the other hand, *BSD specifically uses libusb only
  21795. *-*-*bsd* )
  21796. enable_hidapi_libusb=yes
  21797. require_hidapi_libusb=yes
  21798. ;;
  21799. *-*-os2* )
  21800. enable_hidapi_libusb=yes
  21801. ;;
  21802. esac
  21803. hidapi_support=yes
  21804. if test x$enable_hidapi_libusb = xyes; then
  21805. pkg_failed=no
  21806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21807. $as_echo_n "checking for libusb-1.0... " >&6; }
  21808. if test -n "$LIBUSB_CFLAGS"; then
  21809. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21810. elif test -n "$PKG_CONFIG"; then
  21811. if test -n "$PKG_CONFIG" && \
  21812. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21813. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21814. ac_status=$?
  21815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21816. test $ac_status = 0; }; then
  21817. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21818. test "x$?" != "x0" && pkg_failed=yes
  21819. else
  21820. pkg_failed=yes
  21821. fi
  21822. else
  21823. pkg_failed=untried
  21824. fi
  21825. if test -n "$LIBUSB_LIBS"; then
  21826. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21827. elif test -n "$PKG_CONFIG"; then
  21828. if test -n "$PKG_CONFIG" && \
  21829. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21830. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21831. ac_status=$?
  21832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21833. test $ac_status = 0; }; then
  21834. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21835. test "x$?" != "x0" && pkg_failed=yes
  21836. else
  21837. pkg_failed=yes
  21838. fi
  21839. else
  21840. pkg_failed=untried
  21841. fi
  21842. if test $pkg_failed = yes; then
  21843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21844. $as_echo "no" >&6; }
  21845. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21846. _pkg_short_errors_supported=yes
  21847. else
  21848. _pkg_short_errors_supported=no
  21849. fi
  21850. if test $_pkg_short_errors_supported = yes; then
  21851. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21852. else
  21853. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21854. fi
  21855. # Put the nasty error message in config.log where it belongs
  21856. echo "$LIBUSB_PKG_ERRORS" >&5
  21857. have_libusb=no
  21858. elif test $pkg_failed = untried; then
  21859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21860. $as_echo "no" >&6; }
  21861. have_libusb=no
  21862. else
  21863. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21864. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21866. $as_echo "yes" >&6; }
  21867. have_libusb=yes
  21868. fi
  21869. save_CPPFLAGS="$CPPFLAGS"
  21870. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21871. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21872. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21873. have_libusb_h=yes
  21874. else
  21875. have_libusb_h=no
  21876. fi
  21877. CPPFLAGS="$save_CPPFLAGS"
  21878. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21879. hidapi_support=no
  21880. fi
  21881. fi
  21882. if test x$hidapi_support = xyes; then
  21883. if test x$have_libusb_h = xyes; then
  21884. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21885. if test x$require_hidapi_libusb = xyes; then
  21886. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21887. else
  21888. if test x$have_loadso != xyes; then
  21889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21890. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21891. fi
  21892. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21893. libusb_lib=""
  21894. case "$host" in
  21895. *-*-darwin* )
  21896. libusb_lib="libusb-1.0.0.dylib"
  21897. ;;
  21898. *-*-cygwin* | *-*-mingw* )
  21899. libusb_lib="libusb-1.0.dll"
  21900. ;;
  21901. *-*-os2* )
  21902. libusb_lib="usb100.dll"
  21903. ;;
  21904. esac
  21905. if test x$libusb_lib = x; then
  21906. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21907. fi
  21908. cat >>confdefs.h <<_ACEOF
  21909. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21910. _ACEOF
  21911. fi
  21912. fi
  21913. fi
  21914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21915. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21917. $as_echo "$hidapi_support" >&6; }
  21918. fi
  21919. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21920. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21921. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21922. fi
  21923. }
  21924. CheckClockGettime()
  21925. {
  21926. # Check whether --enable-clock_gettime was given.
  21927. if test "${enable_clock_gettime+set}" = set; then :
  21928. enableval=$enable_clock_gettime;
  21929. else
  21930. enable_clock_gettime=yes
  21931. fi
  21932. if test x$enable_clock_gettime = xyes; then
  21933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21934. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21935. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21936. $as_echo_n "(cached) " >&6
  21937. else
  21938. ac_check_lib_save_LIBS=$LIBS
  21939. LIBS="-lrt $LIBS"
  21940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21941. /* end confdefs.h. */
  21942. /* Override any GCC internal prototype to avoid an error.
  21943. Use char because int might match the return type of a GCC
  21944. builtin and then its argument prototype would still apply. */
  21945. #ifdef __cplusplus
  21946. extern "C"
  21947. #endif
  21948. char clock_gettime ();
  21949. int
  21950. main ()
  21951. {
  21952. return clock_gettime ();
  21953. ;
  21954. return 0;
  21955. }
  21956. _ACEOF
  21957. if ac_fn_c_try_link "$LINENO"; then :
  21958. ac_cv_lib_rt_clock_gettime=yes
  21959. else
  21960. ac_cv_lib_rt_clock_gettime=no
  21961. fi
  21962. rm -f core conftest.err conftest.$ac_objext \
  21963. conftest$ac_exeext conftest.$ac_ext
  21964. LIBS=$ac_check_lib_save_LIBS
  21965. fi
  21966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21967. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21968. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21969. have_clock_gettime=yes
  21970. fi
  21971. if test x$have_clock_gettime = xyes; then
  21972. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21974. else
  21975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21976. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21977. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21978. $as_echo_n "(cached) " >&6
  21979. else
  21980. ac_check_lib_save_LIBS=$LIBS
  21981. LIBS="-lc $LIBS"
  21982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21983. /* end confdefs.h. */
  21984. /* Override any GCC internal prototype to avoid an error.
  21985. Use char because int might match the return type of a GCC
  21986. builtin and then its argument prototype would still apply. */
  21987. #ifdef __cplusplus
  21988. extern "C"
  21989. #endif
  21990. char clock_gettime ();
  21991. int
  21992. main ()
  21993. {
  21994. return clock_gettime ();
  21995. ;
  21996. return 0;
  21997. }
  21998. _ACEOF
  21999. if ac_fn_c_try_link "$LINENO"; then :
  22000. ac_cv_lib_c_clock_gettime=yes
  22001. else
  22002. ac_cv_lib_c_clock_gettime=no
  22003. fi
  22004. rm -f core conftest.err conftest.$ac_objext \
  22005. conftest$ac_exeext conftest.$ac_ext
  22006. LIBS=$ac_check_lib_save_LIBS
  22007. fi
  22008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22009. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22010. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22011. have_clock_gettime=yes
  22012. fi
  22013. if test x$have_clock_gettime = xyes; then
  22014. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22016. fi
  22017. fi
  22018. fi
  22019. }
  22020. CheckLinuxVersion()
  22021. {
  22022. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22023. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22024. have_linux_version_h=yes
  22025. fi
  22026. if test x$have_linux_version_h = xyes; then
  22027. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22028. fi
  22029. }
  22030. CheckRPATH()
  22031. {
  22032. # Check whether --enable-rpath was given.
  22033. if test "${enable_rpath+set}" = set; then :
  22034. enableval=$enable_rpath;
  22035. else
  22036. enable_rpath=yes
  22037. fi
  22038. }
  22039. CheckEventSignals()
  22040. {
  22041. # Check whether --enable-backgrounding-signal was given.
  22042. if test "${enable_backgrounding_signal+set}" = set; then :
  22043. enableval=$enable_backgrounding_signal;
  22044. else
  22045. enable_backgrounding_signal=no
  22046. fi
  22047. if test x$enable_backgrounding_signal != xno; then
  22048. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22049. fi
  22050. # Check whether --enable-foregrounding-signal was given.
  22051. if test "${enable_foregrounding_signal+set}" = set; then :
  22052. enableval=$enable_foregrounding_signal;
  22053. else
  22054. enable_foregrounding_signal=no
  22055. fi
  22056. if test x$enable_foregrounding_signal != xno; then
  22057. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22058. fi
  22059. }
  22060. CheckVirtualJoystick()
  22061. {
  22062. # Check whether --enable-joystick-virtual was given.
  22063. if test "${enable_joystick_virtual+set}" = set; then :
  22064. enableval=$enable_joystick_virtual;
  22065. else
  22066. enable_joystick_virtual=yes
  22067. fi
  22068. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22069. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22070. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22071. have_joystick_virtual=yes
  22072. fi
  22073. }
  22074. CheckWarnAll
  22075. CheckNoStrictAliasing
  22076. CheckEventSignals
  22077. have_locale=no
  22078. case "$host" in
  22079. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22080. case "$host" in
  22081. *-*-android*)
  22082. # Android
  22083. ARCH=android
  22084. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22085. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22086. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22087. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22089. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22090. if test x$enable_video = xyes; then
  22091. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22092. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22093. SUMMARY_video="${SUMMARY_video} android"
  22094. have_video=yes
  22095. fi
  22096. ;;
  22097. *-*-linux*) ARCH=linux ;;
  22098. *-*-uclinux*) ARCH=linux ;;
  22099. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22100. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22101. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22102. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22103. *-*-bsdi*) ARCH=bsdi ;;
  22104. *-*-freebsd*) ARCH=freebsd ;;
  22105. *-*-dragonfly*) ARCH=freebsd ;;
  22106. *-*-netbsd*) ARCH=netbsd ;;
  22107. *-*-openbsd*) ARCH=openbsd ;;
  22108. *-*-sysv5*) ARCH=sysv5 ;;
  22109. *-*-solaris*) ARCH=solaris ;;
  22110. *-*-hpux*) ARCH=hpux ;;
  22111. *-*-aix*) ARCH=aix ;;
  22112. *-*-minix*) ARCH=minix ;;
  22113. *-*-nto*) ARCH=nto
  22114. CheckQNXVideo
  22115. ;;
  22116. esac
  22117. CheckVisibilityHidden
  22118. CheckDeclarationAfterStatement
  22119. CheckDummyVideo
  22120. CheckOffscreenVideo
  22121. CheckDiskAudio
  22122. CheckDummyAudio
  22123. CheckDLOPEN
  22124. CheckARM
  22125. CheckNEON
  22126. CheckO_CLOEXEC
  22127. CheckOSS
  22128. CheckALSA
  22129. CheckPipewire
  22130. CheckPulseAudio
  22131. CheckJACK
  22132. CheckARTSC
  22133. CheckESD
  22134. CheckNAS
  22135. CheckSNDIO
  22136. CheckFusionSound
  22137. CheckLibSampleRate
  22138. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22139. CheckRPI
  22140. CheckX11
  22141. CheckDirectFB
  22142. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22143. CheckEGL
  22144. CheckKMSDRM
  22145. CheckGLX
  22146. CheckOpenGL
  22147. CheckOpenGLES
  22148. CheckVulkan
  22149. CheckWayland
  22150. CheckInputEvents
  22151. CheckLibUDev
  22152. CheckDBus
  22153. CheckIME
  22154. CheckInotify
  22155. CheckIBus
  22156. CheckFcitx
  22157. case $ARCH in
  22158. linux)
  22159. CheckInputKD
  22160. ;;
  22161. freebsd)
  22162. CheckInputKBIO
  22163. ;;
  22164. openbsd|netbsd)
  22165. CheckInputWSCONS
  22166. ;;
  22167. esac
  22168. CheckUSBHID
  22169. CheckHIDAPI
  22170. CheckPTHREAD
  22171. CheckClockGettime
  22172. CheckLinuxVersion
  22173. CheckRPATH
  22174. CheckVivanteVideo
  22175. # Set up files for the misc library
  22176. if test x$enable_misc = xyes; then
  22177. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22178. have_misc=yes
  22179. fi
  22180. # Set up files for the locale library
  22181. if test x$enable_locale = xyes; then
  22182. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22183. have_locale=yes
  22184. fi
  22185. # Set up files for the audio library
  22186. if test x$enable_audio = xyes; then
  22187. case $ARCH in
  22188. sysv5|solaris|hpux)
  22189. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22190. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22191. SUMMARY_audio="${SUMMARY_audio} sun"
  22192. have_audio=yes
  22193. ;;
  22194. netbsd) # Don't use this on OpenBSD, it's busted.
  22195. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22196. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22197. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22198. have_audio=yes
  22199. ;;
  22200. aix)
  22201. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22202. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22203. SUMMARY_audio="${SUMMARY_audio} paudio"
  22204. have_audio=yes
  22205. ;;
  22206. android)
  22207. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22208. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22209. SUMMARY_audio="${SUMMARY_audio} android"
  22210. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22211. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22212. SUMMARY_audio="${SUMMARY_audio} openslES"
  22213. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22214. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22215. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22216. have_audio=yes
  22217. ;;
  22218. nto)
  22219. CheckQNXAudio
  22220. ;;
  22221. esac
  22222. fi
  22223. # Set up files for the joystick library
  22224. if test x$enable_joystick = xyes; then
  22225. case $ARCH in
  22226. linux)
  22227. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22228. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22229. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22230. have_joystick=yes
  22231. ;;
  22232. freebsd)
  22233. if test x$use_input_events = xyes; then
  22234. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22235. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22236. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22237. have_joystick=yes
  22238. fi
  22239. ;;
  22240. android)
  22241. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22242. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22243. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22244. have_joystick=yes
  22245. ;;
  22246. esac
  22247. fi
  22248. # Set up files for the haptic library
  22249. if test x$enable_haptic = xyes; then
  22250. case $ARCH in
  22251. linux|freebsd)
  22252. if test x$use_input_events = xyes; then
  22253. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22254. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22255. have_haptic=yes
  22256. fi
  22257. ;;
  22258. android)
  22259. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22260. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22261. have_haptic=yes
  22262. ;;
  22263. esac
  22264. fi
  22265. # Set up files for the sensor library
  22266. if test x$enable_sensor = xyes; then
  22267. case $ARCH in
  22268. android)
  22269. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22270. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22271. have_sensor=yes
  22272. ;;
  22273. esac
  22274. fi
  22275. # Set up files for the power library
  22276. if test x$enable_power = xyes; then
  22277. case $ARCH in
  22278. linux)
  22279. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22280. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22281. have_power=yes
  22282. ;;
  22283. android)
  22284. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22285. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22286. have_power=yes
  22287. ;;
  22288. esac
  22289. fi
  22290. # Set up files for the filesystem library
  22291. if test x$enable_filesystem = xyes; then
  22292. case $ARCH in
  22293. android)
  22294. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22295. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22296. have_filesystem=yes
  22297. ;;
  22298. *)
  22299. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22300. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22301. have_filesystem=yes
  22302. ;;
  22303. esac
  22304. fi
  22305. # Set up files for the timer library
  22306. if test x$enable_timers = xyes; then
  22307. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22308. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22309. have_timers=yes
  22310. fi
  22311. # Set up files for udev hotplugging support
  22312. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22313. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22314. fi
  22315. # Set up files for evdev input
  22316. if test x$use_input_events = xyes; then
  22317. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22318. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22319. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22320. fi
  22321. # Set up files for wscons input
  22322. if test x$use_input_wscons = xyes; then
  22323. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22324. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22325. fi
  22326. # Set up other core UNIX files
  22327. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22328. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22329. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22330. ;;
  22331. *-*-cygwin* | *-*-mingw*)
  22332. ARCH=win32
  22333. if test "$build" != "$host"; then # cross-compiling
  22334. # Default cross-compile location
  22335. ac_default_prefix=/usr/local/cross-tools/$host
  22336. else
  22337. # Look for the location of the tools and install there
  22338. if test "$BUILD_PREFIX" != ""; then
  22339. ac_default_prefix=$BUILD_PREFIX
  22340. fi
  22341. fi
  22342. if test x$enable_loadso = xyes; then
  22343. have_loadso=yes
  22344. fi
  22345. CheckDeclarationAfterStatement
  22346. CheckDummyVideo
  22347. CheckOffscreenVideo
  22348. CheckDiskAudio
  22349. CheckDummyAudio
  22350. CheckWINDOWS
  22351. CheckWINDOWSGL
  22352. CheckWINDOWSGLES
  22353. CheckVulkan
  22354. CheckDIRECTX
  22355. CheckHIDAPI
  22356. # Set up the core platform files
  22357. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22358. # Set up files for the misc library
  22359. if test x$enable_misc = xyes; then
  22360. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22361. have_misc=yes
  22362. fi
  22363. # Use the Windows locale APIs.
  22364. if test x$enable_locale = xyes; then
  22365. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22366. have_locale=yes
  22367. fi
  22368. # Set up files for the video library
  22369. if test x$enable_video = xyes; then
  22370. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22371. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22372. have_video=yes
  22373. # Check whether --enable-render-d3d was given.
  22374. if test "${enable_render_d3d+set}" = set; then :
  22375. enableval=$enable_render_d3d;
  22376. else
  22377. enable_render_d3d=yes
  22378. fi
  22379. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22380. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22381. SUMMARY_video="${SUMMARY_video} d3d9"
  22382. fi
  22383. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22384. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22385. SUMMARY_video="${SUMMARY_video} d3d11"
  22386. fi
  22387. fi
  22388. # Set up files for the audio library
  22389. if test x$enable_audio = xyes; then
  22390. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22391. SUMMARY_audio="${SUMMARY_audio} winmm"
  22392. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22393. if test x$have_dsound = xyes; then
  22394. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22395. SUMMARY_audio="${SUMMARY_audio} directsound"
  22396. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22397. fi
  22398. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22399. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22400. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22401. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22402. fi
  22403. have_audio=yes
  22404. fi
  22405. # Set up files for the joystick library
  22406. if test x$enable_joystick = xyes; then
  22407. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22408. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22409. if test x$have_xinput = xyes; then
  22410. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22411. fi
  22412. if test x$have_wgi = xyes; then
  22413. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22414. fi
  22415. if test x$have_dinput = xyes; then
  22416. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22418. fi
  22419. fi
  22420. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22421. have_joystick=yes
  22422. fi
  22423. if test x$enable_haptic = xyes; then
  22424. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22425. if test x$have_xinput = xyes; then
  22426. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22427. fi
  22428. if test x$have_dinput = xyes; then
  22429. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22430. fi
  22431. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22432. have_haptic=yes
  22433. fi
  22434. fi
  22435. # Set up files for the sensor library
  22436. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22437. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22438. have_winsensors=yes
  22439. else
  22440. have_winsensors=no
  22441. fi
  22442. if test x$have_winsensors = xyes; then
  22443. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22444. fi
  22445. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22446. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22447. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22448. have_sensor=yes
  22449. fi
  22450. # Set up files for the power library
  22451. if test x$enable_power = xyes; then
  22452. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22453. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22454. have_power=yes
  22455. fi
  22456. # Set up files for the filesystem library
  22457. if test x$enable_filesystem = xyes; then
  22458. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22459. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22460. have_filesystem=yes
  22461. fi
  22462. # Set up files for the thread library
  22463. if test x$enable_threads = xyes; then
  22464. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22465. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22466. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22467. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22468. have_threads=yes
  22469. fi
  22470. # Set up files for the timer library
  22471. if test x$enable_timers = xyes; then
  22472. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22473. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22474. have_timers=yes
  22475. fi
  22476. # Set up files for the shared object loading library
  22477. if test x$enable_loadso = xyes; then
  22478. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22479. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22480. fi
  22481. # Set up the system libraries we need
  22482. if test -f /lib/w32api/libuuid.a; then
  22483. LIBUUID=/lib/w32api/libuuid.a
  22484. else
  22485. LIBUUID=-luuid
  22486. fi
  22487. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22488. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22489. # The Windows platform requires special setup
  22490. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22491. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22492. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22493. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22494. # Check to see if this is a mingw or cygwin build
  22495. have_mingw32=
  22496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22497. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22498. if ${ac_cv_lib_mingw32_main+:} false; then :
  22499. $as_echo_n "(cached) " >&6
  22500. else
  22501. ac_check_lib_save_LIBS=$LIBS
  22502. LIBS="-lmingw32 $LIBS"
  22503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22504. /* end confdefs.h. */
  22505. int
  22506. main ()
  22507. {
  22508. return main ();
  22509. ;
  22510. return 0;
  22511. }
  22512. _ACEOF
  22513. if ac_fn_c_try_link "$LINENO"; then :
  22514. ac_cv_lib_mingw32_main=yes
  22515. else
  22516. ac_cv_lib_mingw32_main=no
  22517. fi
  22518. rm -f core conftest.err conftest.$ac_objext \
  22519. conftest$ac_exeext conftest.$ac_ext
  22520. LIBS=$ac_check_lib_save_LIBS
  22521. fi
  22522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22523. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22524. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22525. have_mingw32=yes
  22526. fi
  22527. if test x$have_mingw32 = xyes; then
  22528. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22529. else
  22530. SDL_LIBS="-lcygwin $SDL_LIBS"
  22531. fi
  22532. ;;
  22533. *-*-beos*)
  22534. as_fn_error $? "
  22535. *** BeOS support has been removed as of SDL 2.0.2.
  22536. " "$LINENO" 5
  22537. ;;
  22538. *-*-haiku*)
  22539. ARCH=haiku
  22540. ac_default_prefix=/boot/system
  22541. CheckDummyVideo
  22542. CheckOffscreenVideo
  22543. CheckDiskAudio
  22544. CheckDummyAudio
  22545. CheckDLOPEN
  22546. CheckO_CLOEXEC
  22547. CheckHaikuVideo
  22548. CheckHaikuGL
  22549. CheckPTHREAD
  22550. # Set up files for the audio library
  22551. if test x$enable_audio = xyes; then
  22552. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22553. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22554. SUMMARY_audio="${SUMMARY_audio} haiku"
  22555. have_audio=yes
  22556. fi
  22557. # Set up files for the joystick library
  22558. if test x$enable_joystick = xyes; then
  22559. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22560. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22561. have_joystick=yes
  22562. fi
  22563. # Set up files for the timer library
  22564. if test x$enable_timers = xyes; then
  22565. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22566. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22567. have_timers=yes
  22568. fi
  22569. # Set up files for the system power library
  22570. if test x$enable_power = xyes; then
  22571. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22572. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22573. have_power=yes
  22574. fi
  22575. # Set up files for the system filesystem library
  22576. if test x$enable_filesystem = xyes; then
  22577. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22578. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22579. have_filesystem=yes
  22580. fi
  22581. # Set up files for the misc library
  22582. if test x$enable_misc = xyes; then
  22583. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22584. have_misc=yes
  22585. fi
  22586. # Set up files for the locale library
  22587. if test x$enable_locale = xyes; then
  22588. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22589. have_locale=yes
  22590. fi
  22591. # The Haiku platform requires special setup.
  22592. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22593. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22594. ;;
  22595. *-ios-*)
  22596. ARCH=ios
  22597. CheckVisibilityHidden
  22598. CheckDeclarationAfterStatement
  22599. CheckDummyVideo
  22600. CheckOffscreenVideo
  22601. CheckDiskAudio
  22602. CheckDummyAudio
  22603. CheckDLOPEN
  22604. CheckO_CLOEXEC
  22605. CheckMETAL
  22606. CheckVulkan
  22607. CheckPTHREAD
  22608. # Set up files for the misc library
  22609. if test x$enable_misc = xyes; then
  22610. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22611. have_misc=yes
  22612. fi
  22613. # Set up files for the locale library
  22614. if test x$enable_locale = xyes; then
  22615. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22616. have_locale=yes
  22617. fi
  22618. # Set up files for the audio library
  22619. if test x$enable_audio = xyes; then
  22620. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22621. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22622. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22623. have_audio=yes
  22624. fi
  22625. # Set up files for the joystick library
  22626. if test x$enable_joystick = xyes; then
  22627. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22628. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22629. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22630. have_joystick=yes
  22631. else
  22632. # Need this code for accelerometer as joystick support
  22633. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22634. fi
  22635. # Set up files for the haptic library
  22636. #if test x$enable_haptic = xyes; then
  22637. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22638. # have_haptic=yes
  22639. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22640. #fi
  22641. # Set up files for the sensor library
  22642. if test x$enable_sensor = xyes; then
  22643. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22644. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22645. have_sensor=yes
  22646. fi
  22647. # Set up files for the power library
  22648. if test x$enable_power = xyes; then
  22649. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22650. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22651. have_power=yes
  22652. fi
  22653. # Set up files for the filesystem library
  22654. if test x$enable_filesystem = xyes; then
  22655. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22656. have_filesystem=yes
  22657. fi
  22658. # Set up additional files for the file library
  22659. if test x$enable_file = xyes; then
  22660. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22661. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22662. fi
  22663. # Set up files for the timer library
  22664. if test x$enable_timers = xyes; then
  22665. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22666. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22667. have_timers=yes
  22668. fi
  22669. # Set up other core UNIX files
  22670. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22671. # The iOS platform requires special setup.
  22672. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22673. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22674. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22675. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22676. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22677. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22678. SUMMARY_video="${SUMMARY_video} uikit"
  22679. have_video=yes
  22680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22691. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22693. fi
  22694. ;;
  22695. *-*-darwin* )
  22696. # This could be either full "Mac OS X", or plain "Darwin" which is
  22697. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22698. # Next line is broken, and a few files below require Mac OS X (full)
  22699. ARCH=macosx
  22700. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22701. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22702. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22703. CheckObjectiveCARC
  22704. CheckVisibilityHidden
  22705. CheckDeclarationAfterStatement
  22706. CheckDummyVideo
  22707. CheckOffscreenVideo
  22708. CheckDiskAudio
  22709. CheckDummyAudio
  22710. CheckDLOPEN
  22711. CheckO_CLOEXEC
  22712. CheckCOCOA
  22713. CheckMETAL
  22714. CheckX11
  22715. CheckMacGL
  22716. CheckMacGLES
  22717. CheckGLX
  22718. CheckOpenGL
  22719. CheckVulkan
  22720. CheckPTHREAD
  22721. CheckHIDAPI
  22722. # Set up files for the misc library
  22723. if test x$enable_misc = xyes; then
  22724. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22725. have_misc=yes
  22726. fi
  22727. # Set up files for the locale library
  22728. if test x$enable_locale = xyes; then
  22729. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22730. have_locale=yes
  22731. fi
  22732. # Set up files for the audio library
  22733. if test x$enable_audio = xyes; then
  22734. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22735. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22737. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22738. have_audio=yes
  22739. fi
  22740. # Set up files for the joystick library
  22741. if test x$enable_joystick = xyes; then
  22742. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22743. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22744. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22745. CheckJoystickMFI
  22746. have_joystick=yes
  22747. fi
  22748. # Set up files for the haptic library
  22749. if test x$enable_haptic = xyes; then
  22750. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22751. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22753. have_haptic=yes
  22754. fi
  22755. # Set up files for the power library
  22756. if test x$enable_power = xyes; then
  22757. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22758. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22759. have_power=yes
  22760. fi
  22761. # Set up files for the filesystem library
  22762. if test x$enable_filesystem = xyes; then
  22763. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22764. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22765. have_filesystem=yes
  22766. fi
  22767. # Set up files for the timer library
  22768. if test x$enable_timers = xyes; then
  22769. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22770. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22771. have_timers=yes
  22772. fi
  22773. # Set up additional files for the file library
  22774. if test x$enable_file = xyes; then
  22775. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22776. fi
  22777. # Set up other core UNIX files
  22778. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22779. # The Mac OS X platform requires special setup.
  22780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22781. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22785. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22787. fi
  22788. ;;
  22789. *-nacl|*-pnacl)
  22790. ARCH=nacl
  22791. CheckNativeClient
  22792. CheckDummyAudio
  22793. CheckDummyVideo
  22794. CheckOffscreenVideo
  22795. CheckInputEvents
  22796. CheckPTHREAD
  22797. CheckO_CLOEXEC
  22798. # Set up files for the timer library
  22799. if test x$enable_timers = xyes; then
  22800. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22801. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22802. have_timers=yes
  22803. fi
  22804. if test x$enable_filesystem = xyes; then
  22805. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22806. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22807. have_filesystem=yes
  22808. fi
  22809. ;;
  22810. *-*-emscripten* )
  22811. if test x$enable_video = xyes; then
  22812. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22813. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22814. have_video=yes
  22815. SUMMARY_video="${SUMMARY_video} emscripten"
  22816. fi
  22817. if test x$enable_audio = xyes; then
  22818. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22819. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22820. have_audio=yes
  22821. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22822. fi
  22823. CheckVisibilityHidden
  22824. CheckDeclarationAfterStatement
  22825. CheckDummyVideo
  22826. CheckOffscreenVideo
  22827. CheckDiskAudio
  22828. CheckDummyAudio
  22829. CheckPTHREAD
  22830. CheckDLOPEN
  22831. CheckClockGettime
  22832. CheckEmscriptenGLES
  22833. # Set up files for the misc library
  22834. if test x$enable_misc = xyes; then
  22835. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22836. have_misc=yes
  22837. fi
  22838. # Set up files for the power library
  22839. if test x$enable_power = xyes; then
  22840. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22841. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22842. have_power=yes
  22843. fi
  22844. # Set up files for the joystick library
  22845. if test x$enable_joystick = xyes; then
  22846. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22847. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22848. have_joystick=yes
  22849. fi
  22850. # Set up files for the filesystem library
  22851. if test x$enable_filesystem = xyes; then
  22852. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22853. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22854. have_filesystem=yes
  22855. fi
  22856. # Set up files for the timer library
  22857. if test x$enable_timers = xyes; then
  22858. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22860. have_timers=yes
  22861. fi
  22862. # Set up files for the locale library
  22863. if test x$enable_locale = xyes; then
  22864. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22865. have_locale=yes
  22866. fi
  22867. ;;
  22868. *-*-riscos*)
  22869. ARCH=riscos
  22870. CheckVisibilityHidden
  22871. CheckDeclarationAfterStatement
  22872. CheckDummyVideo
  22873. CheckOffscreenVideo
  22874. CheckDiskAudio
  22875. CheckDummyAudio
  22876. CheckDLOPEN
  22877. CheckO_CLOEXEC
  22878. CheckOSS
  22879. CheckPTHREAD
  22880. CheckClockGettime
  22881. # Set up files for the misc library
  22882. if test x$enable_misc = xyes; then
  22883. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22884. have_misc=yes
  22885. fi
  22886. # Set up files for the video library
  22887. if test x$enable_video = xyes; then
  22888. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22889. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22890. have_video=yes
  22891. SUMMARY_video="${SUMMARY_video} riscos"
  22892. fi
  22893. # Set up files for the filesystem library
  22894. if test x$enable_filesystem = xyes; then
  22895. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.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. ;;
  22906. *-*-os2*)
  22907. ARCH=os2
  22908. if test "$build" != "$host"; then # cross-compiling
  22909. # Default cross-compile location
  22910. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22911. else
  22912. # Look for the location of the tools and install there
  22913. if test "$BUILD_PREFIX" != ""; then
  22914. ac_default_prefix=$BUILD_PREFIX
  22915. fi
  22916. fi
  22917. enable_static=no # disable static builds
  22918. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22919. CheckOS2
  22920. CheckDeclarationAfterStatement
  22921. CheckDummyVideo
  22922. CheckDiskAudio
  22923. CheckDummyAudio
  22924. CheckHIDAPI
  22925. # Set up the core platform files
  22926. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22927. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22928. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22929. fi
  22930. # Use the Unix locale APIs.
  22931. if test x$enable_locale = xyes; then
  22932. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22933. have_locale=yes
  22934. fi
  22935. # Set up files for the video library
  22936. if test x$enable_video = xyes; then
  22937. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22938. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22939. have_video=yes
  22940. SUMMARY_video="${SUMMARY_video} os/2"
  22941. fi
  22942. # Set up files for the audio library
  22943. if test x$enable_audio = xyes; then
  22944. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22945. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22946. have_audio=yes
  22947. SUMMARY_audio="${SUMMARY_audio} os/2"
  22948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22949. fi
  22950. # Set up files for the thread library
  22951. if test x$enable_threads = xyes; then
  22952. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22953. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22954. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22955. have_threads=yes
  22956. fi
  22957. # Set up files for the timer library
  22958. if test x$enable_timers = xyes; then
  22959. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22960. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22961. have_timers=yes
  22962. fi
  22963. # Set up files for the shared object loading library
  22964. if test x$enable_loadso = xyes; then
  22965. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22966. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22967. have_loadso=yes
  22968. fi
  22969. # Set up files for the filesystem library
  22970. if test x$enable_filesystem = xyes; then
  22971. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22972. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22973. have_filesystem=yes
  22974. fi
  22975. # Set up files for the joystick library
  22976. if test x$enable_joystick = xyes; then
  22977. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22978. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22979. have_joystick=yes
  22980. fi
  22981. ;;
  22982. *)
  22983. as_fn_error $? "
  22984. *** Unsupported host: Please add to configure.ac
  22985. " "$LINENO" 5
  22986. ;;
  22987. esac
  22988. CheckVirtualJoystick
  22989. # Check whether to install sdl2-config
  22990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22991. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22992. # Check whether --enable-sdl2-config was given.
  22993. if test "${enable_sdl2_config+set}" = set; then :
  22994. enableval=$enable_sdl2_config; case "${enableval}" in
  22995. yes) enable_sdl2_config="TRUE" ;;
  22996. no) enable_sdl2_config="FALSE" ;;
  22997. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22998. esac
  22999. else
  23000. enable_sdl2_config="TRUE"
  23001. fi
  23002. if test "$enable_sdl2_config" = "TRUE"; then
  23003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23004. $as_echo "yes" >&6; }
  23005. else
  23006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23007. $as_echo "no" >&6; }
  23008. fi
  23009. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23010. # Verify that we have all the platform specific files we need
  23011. if test x$have_audio != xyes; then
  23012. if test x$enable_audio = xyes; then
  23013. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23014. fi
  23015. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23016. fi
  23017. if test x$have_video != xyes; then
  23018. if test x$enable_video = xyes; then
  23019. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23020. fi
  23021. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23022. fi
  23023. if test x$have_misc != xyes; then
  23024. if test x$enable_misc = xyes; then
  23025. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23026. fi
  23027. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23028. fi
  23029. if test x$have_locale != xyes; then
  23030. if test x$enable_locale = xyes; then
  23031. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23032. fi
  23033. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23034. fi
  23035. if test x$have_joystick != xyes; then
  23036. if test x$enable_joystick = xyes; then
  23037. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23038. fi
  23039. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23040. fi
  23041. if test x$have_haptic != xyes; then
  23042. if test x$enable_haptic = xyes; then
  23043. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23044. fi
  23045. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23046. fi
  23047. if test x$have_sensor != xyes; then
  23048. if test x$enable_sensor = xyes; then
  23049. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23050. fi
  23051. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23052. fi
  23053. if test x$have_threads != xyes; then
  23054. if test x$enable_threads = xyes; then
  23055. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23056. fi
  23057. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23058. fi
  23059. if test x$have_timers != xyes; then
  23060. if test x$enable_timers = xyes; then
  23061. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23062. fi
  23063. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23064. fi
  23065. if test x$have_filesystem != xyes; then
  23066. if test x$enable_filesystem = xyes; then
  23067. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23068. fi
  23069. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23070. fi
  23071. if test x$have_loadso != xyes; then
  23072. if test x$enable_loadso = xyes; then
  23073. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23074. fi
  23075. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23076. fi
  23077. if test x$SDLMAIN_SOURCES = x; then
  23078. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23079. fi
  23080. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23081. if test x$video_wayland = xyes; then
  23082. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23083. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23084. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23085. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23086. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23087. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23088. echo ;\
  23089. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23090. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23091. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23092. echo ;\
  23093. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23094. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23095. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23096. echo ;\
  23097. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23098. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23099. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23100. done ;\
  23101. echo ;\
  23102. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23103. fi
  23104. OBJECTS=`echo $SOURCES`
  23105. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23106. for EXT in asm cc m c S; do
  23107. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23108. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23109. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23110. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23111. done
  23112. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23113. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23114. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23115. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23116. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23117. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23118. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23119. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23120. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23121. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23122. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23123. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23124. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23125. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23126. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23127. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23128. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23129. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23130. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23131. # Set runtime shared library paths as needed
  23132. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23133. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23134. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23136. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23137. have_enable_new_dtags=no
  23138. save_LDFLAGS="$LDFLAGS"
  23139. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23141. /* end confdefs.h. */
  23142. int
  23143. main ()
  23144. {
  23145. ;
  23146. return 0;
  23147. }
  23148. _ACEOF
  23149. if ac_fn_c_try_link "$LINENO"; then :
  23150. have_enable_new_dtags=yes
  23151. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23152. fi
  23153. rm -f core conftest.err conftest.$ac_objext \
  23154. conftest$ac_exeext conftest.$ac_ext
  23155. LDFLAGS="$save_LDFLAGS"
  23156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23157. $as_echo "$have_enable_new_dtags" >&6; }
  23158. fi
  23159. if test $ARCH = solaris; then
  23160. SDL_RLD_FLAGS="-R\${libdir}"
  23161. fi
  23162. else
  23163. SDL_RLD_FLAGS=""
  23164. fi
  23165. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23166. if test x$enable_shared = xyes; then
  23167. PKGCONFIG_LIBS_PRIV="
  23168. Libs.private:"
  23169. ENABLE_SHARED_TRUE=
  23170. ENABLE_SHARED_FALSE="#"
  23171. else
  23172. PKGCONFIG_LIBS_PRIV=
  23173. ENABLE_SHARED_TRUE="#"
  23174. ENABLE_SHARED_FALSE=
  23175. fi
  23176. if test x$enable_static = xyes; then
  23177. ENABLE_STATIC_TRUE=
  23178. ENABLE_STATIC_FALSE="#"
  23179. else
  23180. ENABLE_STATIC_TRUE="#"
  23181. ENABLE_STATIC_FALSE=
  23182. fi
  23183. cat >Makefile.rules <<__EOF__
  23184. # Build rules for objects
  23185. -include \$(OBJECTS:.lo=.d)
  23186. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23187. $srcdir/src/SDL.c: update-revision
  23188. $DEPENDS
  23189. $VERSION_DEPENDS
  23190. $SDLMAIN_DEPENDS
  23191. $SDLTEST_DEPENDS
  23192. $WAYLAND_PROTOCOLS_DEPENDS
  23193. __EOF__
  23194. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23195. ac_config_commands="$ac_config_commands sdl2_config"
  23196. SUMMARY="SDL2 Configure Summary:\n"
  23197. if test x$enable_shared = xyes; then
  23198. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23199. fi
  23200. if test x$enable_static = xyes; then
  23201. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23202. fi
  23203. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23204. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23205. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23206. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23207. if test x$have_x = xyes; then
  23208. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23209. fi
  23210. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23211. if test x$have_joystick_virtual = xyes; then
  23212. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23213. else
  23214. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23215. fi
  23216. if test x$have_samplerate_h_hdr = xyes; then
  23217. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23218. else
  23219. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23220. fi
  23221. if test x$have_libudev_h_hdr = xyes; then
  23222. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23223. else
  23224. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23225. fi
  23226. if test x$have_dbus_dbus_h_hdr = xyes; then
  23227. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23228. else
  23229. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23230. fi
  23231. if test x$enable_ime = xyes; then
  23232. SUMMARY="${SUMMARY}Using ime : YES\n"
  23233. else
  23234. SUMMARY="${SUMMARY}Using ime : NO\n"
  23235. fi
  23236. if test x$have_ibus_ibus_h_hdr = xyes; then
  23237. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23238. else
  23239. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23240. fi
  23241. if test x$have_fcitx = xyes; then
  23242. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23243. else
  23244. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23245. fi
  23246. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23247. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23248. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23249. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23250. SUMMARY="${SUMMARY}configure script with:\n"
  23251. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23252. fi
  23253. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23254. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23255. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23256. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23257. SUMMARY="${SUMMARY}configure script with:\n"
  23258. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23259. fi
  23260. ac_config_commands="$ac_config_commands summary"
  23261. cat >confcache <<\_ACEOF
  23262. # This file is a shell script that caches the results of configure
  23263. # tests run on this system so they can be shared between configure
  23264. # scripts and configure runs, see configure's option --config-cache.
  23265. # It is not useful on other systems. If it contains results you don't
  23266. # want to keep, you may remove or edit it.
  23267. #
  23268. # config.status only pays attention to the cache file if you give it
  23269. # the --recheck option to rerun configure.
  23270. #
  23271. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23272. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23273. # following values.
  23274. _ACEOF
  23275. # The following way of writing the cache mishandles newlines in values,
  23276. # but we know of no workaround that is simple, portable, and efficient.
  23277. # So, we kill variables containing newlines.
  23278. # Ultrix sh set writes to stderr and can't be redirected directly,
  23279. # and sets the high bit in the cache file unless we assign to the vars.
  23280. (
  23281. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23282. eval ac_val=\$$ac_var
  23283. case $ac_val in #(
  23284. *${as_nl}*)
  23285. case $ac_var in #(
  23286. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23287. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23288. esac
  23289. case $ac_var in #(
  23290. _ | IFS | as_nl) ;; #(
  23291. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23292. *) { eval $ac_var=; unset $ac_var;} ;;
  23293. esac ;;
  23294. esac
  23295. done
  23296. (set) 2>&1 |
  23297. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23298. *${as_nl}ac_space=\ *)
  23299. # `set' does not quote correctly, so add quotes: double-quote
  23300. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23301. sed -n \
  23302. "s/'/'\\\\''/g;
  23303. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23304. ;; #(
  23305. *)
  23306. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23307. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23308. ;;
  23309. esac |
  23310. sort
  23311. ) |
  23312. sed '
  23313. /^ac_cv_env_/b end
  23314. t clear
  23315. :clear
  23316. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23317. t end
  23318. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23319. :end' >>confcache
  23320. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23321. if test -w "$cache_file"; then
  23322. if test "x$cache_file" != "x/dev/null"; then
  23323. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23324. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23325. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23326. cat confcache >"$cache_file"
  23327. else
  23328. case $cache_file in #(
  23329. */* | ?:*)
  23330. mv -f confcache "$cache_file"$$ &&
  23331. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23332. *)
  23333. mv -f confcache "$cache_file" ;;
  23334. esac
  23335. fi
  23336. fi
  23337. else
  23338. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23339. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23340. fi
  23341. fi
  23342. rm -f confcache
  23343. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23344. # Let make expand exec_prefix.
  23345. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23346. DEFS=-DHAVE_CONFIG_H
  23347. ac_libobjs=
  23348. ac_ltlibobjs=
  23349. U=
  23350. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23351. # 1. Remove the extension, and $U if already installed.
  23352. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23353. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23354. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23355. # will be set to the directory where LIBOBJS objects are built.
  23356. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23357. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23358. done
  23359. LIBOBJS=$ac_libobjs
  23360. LTLIBOBJS=$ac_ltlibobjs
  23361. : "${CONFIG_STATUS=./config.status}"
  23362. ac_write_fail=0
  23363. ac_clean_files_save=$ac_clean_files
  23364. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23365. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23366. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23367. as_write_fail=0
  23368. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23369. #! $SHELL
  23370. # Generated by $as_me.
  23371. # Run this file to recreate the current configuration.
  23372. # Compiler output produced by configure, useful for debugging
  23373. # configure, is in config.log if it exists.
  23374. debug=false
  23375. ac_cs_recheck=false
  23376. ac_cs_silent=false
  23377. SHELL=\${CONFIG_SHELL-$SHELL}
  23378. export SHELL
  23379. _ASEOF
  23380. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23381. ## -------------------- ##
  23382. ## M4sh Initialization. ##
  23383. ## -------------------- ##
  23384. # Be more Bourne compatible
  23385. DUALCASE=1; export DUALCASE # for MKS sh
  23386. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23387. emulate sh
  23388. NULLCMD=:
  23389. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23390. # is contrary to our usage. Disable this feature.
  23391. alias -g '${1+"$@"}'='"$@"'
  23392. setopt NO_GLOB_SUBST
  23393. else
  23394. case `(set -o) 2>/dev/null` in #(
  23395. *posix*) :
  23396. set -o posix ;; #(
  23397. *) :
  23398. ;;
  23399. esac
  23400. fi
  23401. as_nl='
  23402. '
  23403. export as_nl
  23404. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23405. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23406. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23407. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23408. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23409. # but without wasting forks for bash or zsh.
  23410. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23411. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23412. as_echo='print -r --'
  23413. as_echo_n='print -rn --'
  23414. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23415. as_echo='printf %s\n'
  23416. as_echo_n='printf %s'
  23417. else
  23418. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23419. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23420. as_echo_n='/usr/ucb/echo -n'
  23421. else
  23422. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23423. as_echo_n_body='eval
  23424. arg=$1;
  23425. case $arg in #(
  23426. *"$as_nl"*)
  23427. expr "X$arg" : "X\\(.*\\)$as_nl";
  23428. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23429. esac;
  23430. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23431. '
  23432. export as_echo_n_body
  23433. as_echo_n='sh -c $as_echo_n_body as_echo'
  23434. fi
  23435. export as_echo_body
  23436. as_echo='sh -c $as_echo_body as_echo'
  23437. fi
  23438. # The user is always right.
  23439. if test "${PATH_SEPARATOR+set}" != set; then
  23440. PATH_SEPARATOR=:
  23441. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23442. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23443. PATH_SEPARATOR=';'
  23444. }
  23445. fi
  23446. # IFS
  23447. # We need space, tab and new line, in precisely that order. Quoting is
  23448. # there to prevent editors from complaining about space-tab.
  23449. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23450. # splitting by setting IFS to empty value.)
  23451. IFS=" "" $as_nl"
  23452. # Find who we are. Look in the path if we contain no directory separator.
  23453. as_myself=
  23454. case $0 in #((
  23455. *[\\/]* ) as_myself=$0 ;;
  23456. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23457. for as_dir in $PATH
  23458. do
  23459. IFS=$as_save_IFS
  23460. test -z "$as_dir" && as_dir=.
  23461. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23462. done
  23463. IFS=$as_save_IFS
  23464. ;;
  23465. esac
  23466. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23467. # in which case we are not to be found in the path.
  23468. if test "x$as_myself" = x; then
  23469. as_myself=$0
  23470. fi
  23471. if test ! -f "$as_myself"; then
  23472. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23473. exit 1
  23474. fi
  23475. # Unset variables that we do not need and which cause bugs (e.g. in
  23476. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23477. # suppresses any "Segmentation fault" message there. '((' could
  23478. # trigger a bug in pdksh 5.2.14.
  23479. for as_var in BASH_ENV ENV MAIL MAILPATH
  23480. do eval test x\${$as_var+set} = xset \
  23481. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23482. done
  23483. PS1='$ '
  23484. PS2='> '
  23485. PS4='+ '
  23486. # NLS nuisances.
  23487. LC_ALL=C
  23488. export LC_ALL
  23489. LANGUAGE=C
  23490. export LANGUAGE
  23491. # CDPATH.
  23492. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23493. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23494. # ----------------------------------------
  23495. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23496. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23497. # script with STATUS, using 1 if that was 0.
  23498. as_fn_error ()
  23499. {
  23500. as_status=$1; test $as_status -eq 0 && as_status=1
  23501. if test "$4"; then
  23502. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23503. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23504. fi
  23505. $as_echo "$as_me: error: $2" >&2
  23506. as_fn_exit $as_status
  23507. } # as_fn_error
  23508. # as_fn_set_status STATUS
  23509. # -----------------------
  23510. # Set $? to STATUS, without forking.
  23511. as_fn_set_status ()
  23512. {
  23513. return $1
  23514. } # as_fn_set_status
  23515. # as_fn_exit STATUS
  23516. # -----------------
  23517. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23518. as_fn_exit ()
  23519. {
  23520. set +e
  23521. as_fn_set_status $1
  23522. exit $1
  23523. } # as_fn_exit
  23524. # as_fn_unset VAR
  23525. # ---------------
  23526. # Portably unset VAR.
  23527. as_fn_unset ()
  23528. {
  23529. { eval $1=; unset $1;}
  23530. }
  23531. as_unset=as_fn_unset
  23532. # as_fn_append VAR VALUE
  23533. # ----------------------
  23534. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23535. # advantage of any shell optimizations that allow amortized linear growth over
  23536. # repeated appends, instead of the typical quadratic growth present in naive
  23537. # implementations.
  23538. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23539. eval 'as_fn_append ()
  23540. {
  23541. eval $1+=\$2
  23542. }'
  23543. else
  23544. as_fn_append ()
  23545. {
  23546. eval $1=\$$1\$2
  23547. }
  23548. fi # as_fn_append
  23549. # as_fn_arith ARG...
  23550. # ------------------
  23551. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23552. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23553. # must be portable across $(()) and expr.
  23554. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23555. eval 'as_fn_arith ()
  23556. {
  23557. as_val=$(( $* ))
  23558. }'
  23559. else
  23560. as_fn_arith ()
  23561. {
  23562. as_val=`expr "$@" || test $? -eq 1`
  23563. }
  23564. fi # as_fn_arith
  23565. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23566. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23567. as_expr=expr
  23568. else
  23569. as_expr=false
  23570. fi
  23571. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23572. as_basename=basename
  23573. else
  23574. as_basename=false
  23575. fi
  23576. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23577. as_dirname=dirname
  23578. else
  23579. as_dirname=false
  23580. fi
  23581. as_me=`$as_basename -- "$0" ||
  23582. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23583. X"$0" : 'X\(//\)$' \| \
  23584. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23585. $as_echo X/"$0" |
  23586. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23587. s//\1/
  23588. q
  23589. }
  23590. /^X\/\(\/\/\)$/{
  23591. s//\1/
  23592. q
  23593. }
  23594. /^X\/\(\/\).*/{
  23595. s//\1/
  23596. q
  23597. }
  23598. s/.*/./; q'`
  23599. # Avoid depending upon Character Ranges.
  23600. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23601. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23602. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23603. as_cr_digits='0123456789'
  23604. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23605. ECHO_C= ECHO_N= ECHO_T=
  23606. case `echo -n x` in #(((((
  23607. -n*)
  23608. case `echo 'xy\c'` in
  23609. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23610. xy) ECHO_C='\c';;
  23611. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23612. ECHO_T=' ';;
  23613. esac;;
  23614. *)
  23615. ECHO_N='-n';;
  23616. esac
  23617. rm -f conf$$ conf$$.exe conf$$.file
  23618. if test -d conf$$.dir; then
  23619. rm -f conf$$.dir/conf$$.file
  23620. else
  23621. rm -f conf$$.dir
  23622. mkdir conf$$.dir 2>/dev/null
  23623. fi
  23624. if (echo >conf$$.file) 2>/dev/null; then
  23625. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23626. as_ln_s='ln -s'
  23627. # ... but there are two gotchas:
  23628. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23629. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23630. # In both cases, we have to default to `cp -pR'.
  23631. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23632. as_ln_s='cp -pR'
  23633. elif ln conf$$.file conf$$ 2>/dev/null; then
  23634. as_ln_s=ln
  23635. else
  23636. as_ln_s='cp -pR'
  23637. fi
  23638. else
  23639. as_ln_s='cp -pR'
  23640. fi
  23641. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23642. rmdir conf$$.dir 2>/dev/null
  23643. # as_fn_mkdir_p
  23644. # -------------
  23645. # Create "$as_dir" as a directory, including parents if necessary.
  23646. as_fn_mkdir_p ()
  23647. {
  23648. case $as_dir in #(
  23649. -*) as_dir=./$as_dir;;
  23650. esac
  23651. test -d "$as_dir" || eval $as_mkdir_p || {
  23652. as_dirs=
  23653. while :; do
  23654. case $as_dir in #(
  23655. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23656. *) as_qdir=$as_dir;;
  23657. esac
  23658. as_dirs="'$as_qdir' $as_dirs"
  23659. as_dir=`$as_dirname -- "$as_dir" ||
  23660. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23661. X"$as_dir" : 'X\(//\)[^/]' \| \
  23662. X"$as_dir" : 'X\(//\)$' \| \
  23663. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23664. $as_echo X"$as_dir" |
  23665. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23666. s//\1/
  23667. q
  23668. }
  23669. /^X\(\/\/\)[^/].*/{
  23670. s//\1/
  23671. q
  23672. }
  23673. /^X\(\/\/\)$/{
  23674. s//\1/
  23675. q
  23676. }
  23677. /^X\(\/\).*/{
  23678. s//\1/
  23679. q
  23680. }
  23681. s/.*/./; q'`
  23682. test -d "$as_dir" && break
  23683. done
  23684. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23685. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23686. } # as_fn_mkdir_p
  23687. if mkdir -p . 2>/dev/null; then
  23688. as_mkdir_p='mkdir -p "$as_dir"'
  23689. else
  23690. test -d ./-p && rmdir ./-p
  23691. as_mkdir_p=false
  23692. fi
  23693. # as_fn_executable_p FILE
  23694. # -----------------------
  23695. # Test if FILE is an executable regular file.
  23696. as_fn_executable_p ()
  23697. {
  23698. test -f "$1" && test -x "$1"
  23699. } # as_fn_executable_p
  23700. as_test_x='test -x'
  23701. as_executable_p=as_fn_executable_p
  23702. # Sed expression to map a string onto a valid CPP name.
  23703. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23704. # Sed expression to map a string onto a valid variable name.
  23705. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23706. exec 6>&1
  23707. ## ----------------------------------- ##
  23708. ## Main body of $CONFIG_STATUS script. ##
  23709. ## ----------------------------------- ##
  23710. _ASEOF
  23711. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23713. # Save the log message, to keep $0 and so on meaningful, and to
  23714. # report actual input values of CONFIG_FILES etc. instead of their
  23715. # values after options handling.
  23716. ac_log="
  23717. This file was extended by $as_me, which was
  23718. generated by GNU Autoconf 2.69. Invocation command line was
  23719. CONFIG_FILES = $CONFIG_FILES
  23720. CONFIG_HEADERS = $CONFIG_HEADERS
  23721. CONFIG_LINKS = $CONFIG_LINKS
  23722. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23723. $ $0 $@
  23724. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23725. "
  23726. _ACEOF
  23727. case $ac_config_files in *"
  23728. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23729. esac
  23730. case $ac_config_headers in *"
  23731. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23732. esac
  23733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23734. # Files that config.status was made for.
  23735. config_files="$ac_config_files"
  23736. config_headers="$ac_config_headers"
  23737. config_commands="$ac_config_commands"
  23738. _ACEOF
  23739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23740. ac_cs_usage="\
  23741. \`$as_me' instantiates files and other configuration actions
  23742. from templates according to the current configuration. Unless the files
  23743. and actions are specified as TAGs, all are instantiated by default.
  23744. Usage: $0 [OPTION]... [TAG]...
  23745. -h, --help print this help, then exit
  23746. -V, --version print version number and configuration settings, then exit
  23747. --config print configuration, then exit
  23748. -q, --quiet, --silent
  23749. do not print progress messages
  23750. -d, --debug don't remove temporary files
  23751. --recheck update $as_me by reconfiguring in the same conditions
  23752. --file=FILE[:TEMPLATE]
  23753. instantiate the configuration file FILE
  23754. --header=FILE[:TEMPLATE]
  23755. instantiate the configuration header FILE
  23756. Configuration files:
  23757. $config_files
  23758. Configuration headers:
  23759. $config_headers
  23760. Configuration commands:
  23761. $config_commands
  23762. Report bugs to the package provider."
  23763. _ACEOF
  23764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23765. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23766. ac_cs_version="\\
  23767. config.status
  23768. configured by $0, generated by GNU Autoconf 2.69,
  23769. with options \\"\$ac_cs_config\\"
  23770. Copyright (C) 2012 Free Software Foundation, Inc.
  23771. This config.status script is free software; the Free Software Foundation
  23772. gives unlimited permission to copy, distribute and modify it."
  23773. ac_pwd='$ac_pwd'
  23774. srcdir='$srcdir'
  23775. INSTALL='$INSTALL'
  23776. AWK='$AWK'
  23777. test -n "\$AWK" || AWK=awk
  23778. _ACEOF
  23779. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23780. # The default lists apply if the user does not specify any file.
  23781. ac_need_defaults=:
  23782. while test $# != 0
  23783. do
  23784. case $1 in
  23785. --*=?*)
  23786. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23787. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23788. ac_shift=:
  23789. ;;
  23790. --*=)
  23791. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23792. ac_optarg=
  23793. ac_shift=:
  23794. ;;
  23795. *)
  23796. ac_option=$1
  23797. ac_optarg=$2
  23798. ac_shift=shift
  23799. ;;
  23800. esac
  23801. case $ac_option in
  23802. # Handling of the options.
  23803. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23804. ac_cs_recheck=: ;;
  23805. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23806. $as_echo "$ac_cs_version"; exit ;;
  23807. --config | --confi | --conf | --con | --co | --c )
  23808. $as_echo "$ac_cs_config"; exit ;;
  23809. --debug | --debu | --deb | --de | --d | -d )
  23810. debug=: ;;
  23811. --file | --fil | --fi | --f )
  23812. $ac_shift
  23813. case $ac_optarg in
  23814. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23815. '') as_fn_error $? "missing file argument" ;;
  23816. esac
  23817. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23818. ac_need_defaults=false;;
  23819. --header | --heade | --head | --hea )
  23820. $ac_shift
  23821. case $ac_optarg in
  23822. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23823. esac
  23824. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23825. ac_need_defaults=false;;
  23826. --he | --h)
  23827. # Conflict between --help and --header
  23828. as_fn_error $? "ambiguous option: \`$1'
  23829. Try \`$0 --help' for more information.";;
  23830. --help | --hel | -h )
  23831. $as_echo "$ac_cs_usage"; exit ;;
  23832. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23833. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23834. ac_cs_silent=: ;;
  23835. # This is an error.
  23836. -*) as_fn_error $? "unrecognized option: \`$1'
  23837. Try \`$0 --help' for more information." ;;
  23838. *) as_fn_append ac_config_targets " $1"
  23839. ac_need_defaults=false ;;
  23840. esac
  23841. shift
  23842. done
  23843. ac_configure_extra_args=
  23844. if $ac_cs_silent; then
  23845. exec 6>/dev/null
  23846. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23847. fi
  23848. _ACEOF
  23849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23850. if \$ac_cs_recheck; then
  23851. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23852. shift
  23853. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23854. CONFIG_SHELL='$SHELL'
  23855. export CONFIG_SHELL
  23856. exec "\$@"
  23857. fi
  23858. _ACEOF
  23859. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23860. exec 5>>config.log
  23861. {
  23862. echo
  23863. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23864. ## Running $as_me. ##
  23865. _ASBOX
  23866. $as_echo "$ac_log"
  23867. } >&5
  23868. _ACEOF
  23869. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23870. #
  23871. # INIT-COMMANDS
  23872. #
  23873. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23874. # if CDPATH is set.
  23875. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23876. sed_quote_subst='$sed_quote_subst'
  23877. double_quote_subst='$double_quote_subst'
  23878. delay_variable_subst='$delay_variable_subst'
  23879. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23880. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23881. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23882. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23883. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23884. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23885. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23886. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23887. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23888. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23889. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23890. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23891. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23892. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23893. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23894. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23895. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23896. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23897. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23898. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23899. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23900. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23901. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23902. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23903. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23904. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23905. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23906. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23907. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23908. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23909. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23910. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23911. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23912. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23913. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23914. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23915. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23916. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23917. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23918. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23919. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23920. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23921. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23922. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23923. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23924. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23925. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23926. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23927. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23928. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23929. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23930. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23931. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23932. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23933. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23934. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23935. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23936. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23937. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23938. 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"`'
  23939. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23940. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23941. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23942. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23943. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23944. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23945. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23946. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23947. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23948. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23949. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23950. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23951. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23952. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23953. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23954. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23955. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23956. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23957. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23958. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23959. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23960. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23961. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23962. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23963. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23964. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23965. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23966. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23967. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23968. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23969. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23970. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23971. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23972. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23973. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23974. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23975. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23976. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23977. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23978. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23979. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23980. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23981. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23982. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23983. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23984. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23985. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23986. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23987. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23988. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23989. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23990. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23991. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23992. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23993. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23994. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23995. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23996. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23997. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23998. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23999. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24000. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24001. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24002. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24003. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24004. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24005. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24006. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24007. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24008. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24009. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24010. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24011. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24012. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24013. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24014. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24015. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24016. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24017. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24018. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24019. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24020. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24021. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24022. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24023. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24024. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24025. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24026. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24027. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24028. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24029. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24030. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24031. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24032. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24033. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24034. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24035. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24036. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24037. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24038. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24039. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24040. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24041. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24042. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24043. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24044. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24045. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24046. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24047. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24048. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24049. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24050. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24051. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24052. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24053. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24054. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24055. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24056. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24057. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24058. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24059. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24060. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24061. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24062. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24063. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24064. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24065. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24066. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24067. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24068. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24069. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24070. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24071. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24072. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24073. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24074. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24075. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24076. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24077. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24078. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24079. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24080. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24081. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24082. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24083. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24084. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24085. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24086. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24087. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24088. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24089. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24090. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24091. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24092. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24093. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24094. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24095. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24096. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24097. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24098. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24099. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24100. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24101. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24102. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24103. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24104. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24105. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24106. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24107. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24108. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24109. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24110. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24111. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24112. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24113. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24114. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24115. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24116. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24117. LTCC='$LTCC'
  24118. LTCFLAGS='$LTCFLAGS'
  24119. compiler='$compiler_DEFAULT'
  24120. # A function that is used when there is no print builtin or printf.
  24121. func_fallback_echo ()
  24122. {
  24123. eval 'cat <<_LTECHO_EOF
  24124. \$1
  24125. _LTECHO_EOF'
  24126. }
  24127. # Quote evaled strings.
  24128. for var in AS \
  24129. DLLTOOL \
  24130. OBJDUMP \
  24131. SHELL \
  24132. ECHO \
  24133. PATH_SEPARATOR \
  24134. SED \
  24135. GREP \
  24136. EGREP \
  24137. FGREP \
  24138. LD \
  24139. NM \
  24140. LN_S \
  24141. lt_SP2NL \
  24142. lt_NL2SP \
  24143. reload_flag \
  24144. deplibs_check_method \
  24145. file_magic_cmd \
  24146. file_magic_glob \
  24147. want_nocaseglob \
  24148. sharedlib_from_linklib_cmd \
  24149. AR \
  24150. AR_FLAGS \
  24151. archiver_list_spec \
  24152. STRIP \
  24153. RANLIB \
  24154. CC \
  24155. CFLAGS \
  24156. compiler \
  24157. lt_cv_sys_global_symbol_pipe \
  24158. lt_cv_sys_global_symbol_to_cdecl \
  24159. lt_cv_sys_global_symbol_to_import \
  24160. lt_cv_sys_global_symbol_to_c_name_address \
  24161. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24162. lt_cv_nm_interface \
  24163. nm_file_list_spec \
  24164. lt_cv_truncate_bin \
  24165. lt_prog_compiler_no_builtin_flag \
  24166. lt_prog_compiler_pic \
  24167. lt_prog_compiler_wl \
  24168. lt_prog_compiler_static \
  24169. lt_cv_prog_compiler_c_o \
  24170. need_locks \
  24171. MANIFEST_TOOL \
  24172. DSYMUTIL \
  24173. NMEDIT \
  24174. LIPO \
  24175. OTOOL \
  24176. OTOOL64 \
  24177. shrext_cmds \
  24178. export_dynamic_flag_spec \
  24179. whole_archive_flag_spec \
  24180. compiler_needs_object \
  24181. with_gnu_ld \
  24182. allow_undefined_flag \
  24183. no_undefined_flag \
  24184. hardcode_libdir_flag_spec \
  24185. hardcode_libdir_separator \
  24186. exclude_expsyms \
  24187. include_expsyms \
  24188. file_list_spec \
  24189. variables_saved_for_relink \
  24190. libname_spec \
  24191. library_names_spec \
  24192. soname_spec \
  24193. install_override_mode \
  24194. finish_eval \
  24195. old_striplib \
  24196. striplib \
  24197. compiler_lib_search_dirs \
  24198. predep_objects \
  24199. postdep_objects \
  24200. predeps \
  24201. postdeps \
  24202. compiler_lib_search_path \
  24203. LD_RC \
  24204. LD_CXX \
  24205. reload_flag_RC \
  24206. reload_flag_CXX \
  24207. compiler_RC \
  24208. compiler_CXX \
  24209. lt_prog_compiler_no_builtin_flag_RC \
  24210. lt_prog_compiler_no_builtin_flag_CXX \
  24211. lt_prog_compiler_pic_RC \
  24212. lt_prog_compiler_pic_CXX \
  24213. lt_prog_compiler_wl_RC \
  24214. lt_prog_compiler_wl_CXX \
  24215. lt_prog_compiler_static_RC \
  24216. lt_prog_compiler_static_CXX \
  24217. lt_cv_prog_compiler_c_o_RC \
  24218. lt_cv_prog_compiler_c_o_CXX \
  24219. export_dynamic_flag_spec_RC \
  24220. export_dynamic_flag_spec_CXX \
  24221. whole_archive_flag_spec_RC \
  24222. whole_archive_flag_spec_CXX \
  24223. compiler_needs_object_RC \
  24224. compiler_needs_object_CXX \
  24225. with_gnu_ld_RC \
  24226. with_gnu_ld_CXX \
  24227. allow_undefined_flag_RC \
  24228. allow_undefined_flag_CXX \
  24229. no_undefined_flag_RC \
  24230. no_undefined_flag_CXX \
  24231. hardcode_libdir_flag_spec_RC \
  24232. hardcode_libdir_flag_spec_CXX \
  24233. hardcode_libdir_separator_RC \
  24234. hardcode_libdir_separator_CXX \
  24235. exclude_expsyms_RC \
  24236. exclude_expsyms_CXX \
  24237. include_expsyms_RC \
  24238. include_expsyms_CXX \
  24239. file_list_spec_RC \
  24240. file_list_spec_CXX \
  24241. compiler_lib_search_dirs_RC \
  24242. compiler_lib_search_dirs_CXX \
  24243. predep_objects_RC \
  24244. predep_objects_CXX \
  24245. postdep_objects_RC \
  24246. postdep_objects_CXX \
  24247. predeps_RC \
  24248. predeps_CXX \
  24249. postdeps_RC \
  24250. postdeps_CXX \
  24251. compiler_lib_search_path_RC \
  24252. compiler_lib_search_path_CXX; do
  24253. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24254. *[\\\\\\\`\\"\\\$]*)
  24255. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24256. ;;
  24257. *)
  24258. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24259. ;;
  24260. esac
  24261. done
  24262. # Double-quote double-evaled strings.
  24263. for var in reload_cmds \
  24264. old_postinstall_cmds \
  24265. old_postuninstall_cmds \
  24266. old_archive_cmds \
  24267. extract_expsyms_cmds \
  24268. old_archive_from_new_cmds \
  24269. old_archive_from_expsyms_cmds \
  24270. archive_cmds \
  24271. archive_expsym_cmds \
  24272. module_cmds \
  24273. module_expsym_cmds \
  24274. export_symbols_cmds \
  24275. prelink_cmds \
  24276. postlink_cmds \
  24277. postinstall_cmds \
  24278. postuninstall_cmds \
  24279. finish_cmds \
  24280. sys_lib_search_path_spec \
  24281. configure_time_dlsearch_path \
  24282. configure_time_lt_sys_library_path \
  24283. reload_cmds_RC \
  24284. reload_cmds_CXX \
  24285. old_archive_cmds_RC \
  24286. old_archive_cmds_CXX \
  24287. old_archive_from_new_cmds_RC \
  24288. old_archive_from_new_cmds_CXX \
  24289. old_archive_from_expsyms_cmds_RC \
  24290. old_archive_from_expsyms_cmds_CXX \
  24291. archive_cmds_RC \
  24292. archive_cmds_CXX \
  24293. archive_expsym_cmds_RC \
  24294. archive_expsym_cmds_CXX \
  24295. module_cmds_RC \
  24296. module_cmds_CXX \
  24297. module_expsym_cmds_RC \
  24298. module_expsym_cmds_CXX \
  24299. export_symbols_cmds_RC \
  24300. export_symbols_cmds_CXX \
  24301. prelink_cmds_RC \
  24302. prelink_cmds_CXX \
  24303. postlink_cmds_RC \
  24304. postlink_cmds_CXX; do
  24305. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24306. *[\\\\\\\`\\"\\\$]*)
  24307. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24308. ;;
  24309. *)
  24310. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24311. ;;
  24312. esac
  24313. done
  24314. ac_aux_dir='$ac_aux_dir'
  24315. # See if we are running on zsh, and set the options that allow our
  24316. # commands through without removal of \ escapes INIT.
  24317. if test -n "\${ZSH_VERSION+set}"; then
  24318. setopt NO_GLOB_SUBST
  24319. fi
  24320. PACKAGE='$PACKAGE'
  24321. VERSION='$VERSION'
  24322. RM='$RM'
  24323. ofile='$ofile'
  24324. SUMMARY="$SUMMARY"
  24325. _ACEOF
  24326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24327. # Handling of arguments.
  24328. for ac_config_target in $ac_config_targets
  24329. do
  24330. case $ac_config_target in
  24331. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24332. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24333. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24334. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24335. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24336. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24337. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24338. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24339. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24340. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24341. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24342. esac
  24343. done
  24344. # If the user did not use the arguments to specify the items to instantiate,
  24345. # then the envvar interface is used. Set only those that are not.
  24346. # We use the long form for the default assignment because of an extremely
  24347. # bizarre bug on SunOS 4.1.3.
  24348. if $ac_need_defaults; then
  24349. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24350. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24351. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24352. fi
  24353. # Have a temporary directory for convenience. Make it in the build tree
  24354. # simply because there is no reason against having it here, and in addition,
  24355. # creating and moving files from /tmp can sometimes cause problems.
  24356. # Hook for its removal unless debugging.
  24357. # Note that there is a small window in which the directory will not be cleaned:
  24358. # after its creation but before its name has been assigned to `$tmp'.
  24359. $debug ||
  24360. {
  24361. tmp= ac_tmp=
  24362. trap 'exit_status=$?
  24363. : "${ac_tmp:=$tmp}"
  24364. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24365. ' 0
  24366. trap 'as_fn_exit 1' 1 2 13 15
  24367. }
  24368. # Create a (secure) tmp directory for tmp files.
  24369. {
  24370. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24371. test -d "$tmp"
  24372. } ||
  24373. {
  24374. tmp=./conf$$-$RANDOM
  24375. (umask 077 && mkdir "$tmp")
  24376. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24377. ac_tmp=$tmp
  24378. # Set up the scripts for CONFIG_FILES section.
  24379. # No need to generate them if there are no CONFIG_FILES.
  24380. # This happens for instance with `./config.status config.h'.
  24381. if test -n "$CONFIG_FILES"; then
  24382. ac_cr=`echo X | tr X '\015'`
  24383. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24384. # But we know of no other shell where ac_cr would be empty at this
  24385. # point, so we can use a bashism as a fallback.
  24386. if test "x$ac_cr" = x; then
  24387. eval ac_cr=\$\'\\r\'
  24388. fi
  24389. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24390. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24391. ac_cs_awk_cr='\\r'
  24392. else
  24393. ac_cs_awk_cr=$ac_cr
  24394. fi
  24395. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24396. _ACEOF
  24397. {
  24398. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24399. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24400. echo "_ACEOF"
  24401. } >conf$$subs.sh ||
  24402. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24403. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24404. ac_delim='%!_!# '
  24405. for ac_last_try in false false false false false :; do
  24406. . ./conf$$subs.sh ||
  24407. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24408. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24409. if test $ac_delim_n = $ac_delim_num; then
  24410. break
  24411. elif $ac_last_try; then
  24412. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24413. else
  24414. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24415. fi
  24416. done
  24417. rm -f conf$$subs.sh
  24418. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24419. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24420. _ACEOF
  24421. sed -n '
  24422. h
  24423. s/^/S["/; s/!.*/"]=/
  24424. p
  24425. g
  24426. s/^[^!]*!//
  24427. :repl
  24428. t repl
  24429. s/'"$ac_delim"'$//
  24430. t delim
  24431. :nl
  24432. h
  24433. s/\(.\{148\}\)..*/\1/
  24434. t more1
  24435. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24436. p
  24437. n
  24438. b repl
  24439. :more1
  24440. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24441. p
  24442. g
  24443. s/.\{148\}//
  24444. t nl
  24445. :delim
  24446. h
  24447. s/\(.\{148\}\)..*/\1/
  24448. t more2
  24449. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24450. p
  24451. b
  24452. :more2
  24453. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24454. p
  24455. g
  24456. s/.\{148\}//
  24457. t delim
  24458. ' <conf$$subs.awk | sed '
  24459. /^[^""]/{
  24460. N
  24461. s/\n//
  24462. }
  24463. ' >>$CONFIG_STATUS || ac_write_fail=1
  24464. rm -f conf$$subs.awk
  24465. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24466. _ACAWK
  24467. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24468. for (key in S) S_is_set[key] = 1
  24469. FS = ""
  24470. }
  24471. {
  24472. line = $ 0
  24473. nfields = split(line, field, "@")
  24474. substed = 0
  24475. len = length(field[1])
  24476. for (i = 2; i < nfields; i++) {
  24477. key = field[i]
  24478. keylen = length(key)
  24479. if (S_is_set[key]) {
  24480. value = S[key]
  24481. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24482. len += length(value) + length(field[++i])
  24483. substed = 1
  24484. } else
  24485. len += 1 + keylen
  24486. }
  24487. print line
  24488. }
  24489. _ACAWK
  24490. _ACEOF
  24491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24492. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24493. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24494. else
  24495. cat
  24496. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24497. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24498. _ACEOF
  24499. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24500. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24501. # trailing colons and then remove the whole line if VPATH becomes empty
  24502. # (actually we leave an empty line to preserve line numbers).
  24503. if test "x$srcdir" = x.; then
  24504. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24505. h
  24506. s///
  24507. s/^/:/
  24508. s/[ ]*$/:/
  24509. s/:\$(srcdir):/:/g
  24510. s/:\${srcdir}:/:/g
  24511. s/:@srcdir@:/:/g
  24512. s/^:*//
  24513. s/:*$//
  24514. x
  24515. s/\(=[ ]*\).*/\1/
  24516. G
  24517. s/\n//
  24518. s/^[^=]*=[ ]*$//
  24519. }'
  24520. fi
  24521. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24522. fi # test -n "$CONFIG_FILES"
  24523. # Set up the scripts for CONFIG_HEADERS section.
  24524. # No need to generate them if there are no CONFIG_HEADERS.
  24525. # This happens for instance with `./config.status Makefile'.
  24526. if test -n "$CONFIG_HEADERS"; then
  24527. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24528. BEGIN {
  24529. _ACEOF
  24530. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24531. # here-document in config.status, that substitutes the proper values into
  24532. # config.h.in to produce config.h.
  24533. # Create a delimiter string that does not exist in confdefs.h, to ease
  24534. # handling of long lines.
  24535. ac_delim='%!_!# '
  24536. for ac_last_try in false false :; do
  24537. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24538. if test -z "$ac_tt"; then
  24539. break
  24540. elif $ac_last_try; then
  24541. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24542. else
  24543. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24544. fi
  24545. done
  24546. # For the awk script, D is an array of macro values keyed by name,
  24547. # likewise P contains macro parameters if any. Preserve backslash
  24548. # newline sequences.
  24549. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24550. sed -n '
  24551. s/.\{148\}/&'"$ac_delim"'/g
  24552. t rset
  24553. :rset
  24554. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24555. t def
  24556. d
  24557. :def
  24558. s/\\$//
  24559. t bsnl
  24560. s/["\\]/\\&/g
  24561. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24562. D["\1"]=" \3"/p
  24563. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24564. d
  24565. :bsnl
  24566. s/["\\]/\\&/g
  24567. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24568. D["\1"]=" \3\\\\\\n"\\/p
  24569. t cont
  24570. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24571. t cont
  24572. d
  24573. :cont
  24574. n
  24575. s/.\{148\}/&'"$ac_delim"'/g
  24576. t clear
  24577. :clear
  24578. s/\\$//
  24579. t bsnlc
  24580. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24581. d
  24582. :bsnlc
  24583. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24584. b cont
  24585. ' <confdefs.h | sed '
  24586. s/'"$ac_delim"'/"\\\
  24587. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24589. for (key in D) D_is_set[key] = 1
  24590. FS = ""
  24591. }
  24592. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24593. line = \$ 0
  24594. split(line, arg, " ")
  24595. if (arg[1] == "#") {
  24596. defundef = arg[2]
  24597. mac1 = arg[3]
  24598. } else {
  24599. defundef = substr(arg[1], 2)
  24600. mac1 = arg[2]
  24601. }
  24602. split(mac1, mac2, "(") #)
  24603. macro = mac2[1]
  24604. prefix = substr(line, 1, index(line, defundef) - 1)
  24605. if (D_is_set[macro]) {
  24606. # Preserve the white space surrounding the "#".
  24607. print prefix "define", macro P[macro] D[macro]
  24608. next
  24609. } else {
  24610. # Replace #undef with comments. This is necessary, for example,
  24611. # in the case of _POSIX_SOURCE, which is predefined and required
  24612. # on some systems where configure will not decide to define it.
  24613. if (defundef == "undef") {
  24614. print "/*", prefix defundef, macro, "*/"
  24615. next
  24616. }
  24617. }
  24618. }
  24619. { print }
  24620. _ACAWK
  24621. _ACEOF
  24622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24623. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24624. fi # test -n "$CONFIG_HEADERS"
  24625. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24626. shift
  24627. for ac_tag
  24628. do
  24629. case $ac_tag in
  24630. :[FHLC]) ac_mode=$ac_tag; continue;;
  24631. esac
  24632. case $ac_mode$ac_tag in
  24633. :[FHL]*:*);;
  24634. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24635. :[FH]-) ac_tag=-:-;;
  24636. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24637. esac
  24638. ac_save_IFS=$IFS
  24639. IFS=:
  24640. set x $ac_tag
  24641. IFS=$ac_save_IFS
  24642. shift
  24643. ac_file=$1
  24644. shift
  24645. case $ac_mode in
  24646. :L) ac_source=$1;;
  24647. :[FH])
  24648. ac_file_inputs=
  24649. for ac_f
  24650. do
  24651. case $ac_f in
  24652. -) ac_f="$ac_tmp/stdin";;
  24653. *) # Look for the file first in the build tree, then in the source tree
  24654. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24655. # because $ac_f cannot contain `:'.
  24656. test -f "$ac_f" ||
  24657. case $ac_f in
  24658. [\\/$]*) false;;
  24659. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24660. esac ||
  24661. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24662. esac
  24663. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24664. as_fn_append ac_file_inputs " '$ac_f'"
  24665. done
  24666. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24667. # use $as_me), people would be surprised to read:
  24668. # /* config.h. Generated by config.status. */
  24669. configure_input='Generated from '`
  24670. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24671. `' by configure.'
  24672. if test x"$ac_file" != x-; then
  24673. configure_input="$ac_file. $configure_input"
  24674. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24675. $as_echo "$as_me: creating $ac_file" >&6;}
  24676. fi
  24677. # Neutralize special characters interpreted by sed in replacement strings.
  24678. case $configure_input in #(
  24679. *\&* | *\|* | *\\* )
  24680. ac_sed_conf_input=`$as_echo "$configure_input" |
  24681. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24682. *) ac_sed_conf_input=$configure_input;;
  24683. esac
  24684. case $ac_tag in
  24685. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24686. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24687. esac
  24688. ;;
  24689. esac
  24690. ac_dir=`$as_dirname -- "$ac_file" ||
  24691. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24692. X"$ac_file" : 'X\(//\)[^/]' \| \
  24693. X"$ac_file" : 'X\(//\)$' \| \
  24694. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24695. $as_echo X"$ac_file" |
  24696. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24697. s//\1/
  24698. q
  24699. }
  24700. /^X\(\/\/\)[^/].*/{
  24701. s//\1/
  24702. q
  24703. }
  24704. /^X\(\/\/\)$/{
  24705. s//\1/
  24706. q
  24707. }
  24708. /^X\(\/\).*/{
  24709. s//\1/
  24710. q
  24711. }
  24712. s/.*/./; q'`
  24713. as_dir="$ac_dir"; as_fn_mkdir_p
  24714. ac_builddir=.
  24715. case "$ac_dir" in
  24716. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24717. *)
  24718. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24719. # A ".." for each directory in $ac_dir_suffix.
  24720. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24721. case $ac_top_builddir_sub in
  24722. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24723. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24724. esac ;;
  24725. esac
  24726. ac_abs_top_builddir=$ac_pwd
  24727. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24728. # for backward compatibility:
  24729. ac_top_builddir=$ac_top_build_prefix
  24730. case $srcdir in
  24731. .) # We are building in place.
  24732. ac_srcdir=.
  24733. ac_top_srcdir=$ac_top_builddir_sub
  24734. ac_abs_top_srcdir=$ac_pwd ;;
  24735. [\\/]* | ?:[\\/]* ) # Absolute name.
  24736. ac_srcdir=$srcdir$ac_dir_suffix;
  24737. ac_top_srcdir=$srcdir
  24738. ac_abs_top_srcdir=$srcdir ;;
  24739. *) # Relative name.
  24740. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24741. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24742. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24743. esac
  24744. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24745. case $ac_mode in
  24746. :F)
  24747. #
  24748. # CONFIG_FILE
  24749. #
  24750. case $INSTALL in
  24751. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24752. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24753. esac
  24754. _ACEOF
  24755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24756. # If the template does not know about datarootdir, expand it.
  24757. # FIXME: This hack should be removed a few years after 2.60.
  24758. ac_datarootdir_hack=; ac_datarootdir_seen=
  24759. ac_sed_dataroot='
  24760. /datarootdir/ {
  24761. p
  24762. q
  24763. }
  24764. /@datadir@/p
  24765. /@docdir@/p
  24766. /@infodir@/p
  24767. /@localedir@/p
  24768. /@mandir@/p'
  24769. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24770. *datarootdir*) ac_datarootdir_seen=yes;;
  24771. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24773. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24774. _ACEOF
  24775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24776. ac_datarootdir_hack='
  24777. s&@datadir@&$datadir&g
  24778. s&@docdir@&$docdir&g
  24779. s&@infodir@&$infodir&g
  24780. s&@localedir@&$localedir&g
  24781. s&@mandir@&$mandir&g
  24782. s&\\\${datarootdir}&$datarootdir&g' ;;
  24783. esac
  24784. _ACEOF
  24785. # Neutralize VPATH when `$srcdir' = `.'.
  24786. # Shell code in configure.ac might set extrasub.
  24787. # FIXME: do we really want to maintain this feature?
  24788. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24789. ac_sed_extra="$ac_vpsub
  24790. $extrasub
  24791. _ACEOF
  24792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24793. :t
  24794. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24795. s|@configure_input@|$ac_sed_conf_input|;t t
  24796. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24797. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24798. s&@srcdir@&$ac_srcdir&;t t
  24799. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24800. s&@top_srcdir@&$ac_top_srcdir&;t t
  24801. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24802. s&@builddir@&$ac_builddir&;t t
  24803. s&@abs_builddir@&$ac_abs_builddir&;t t
  24804. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24805. s&@INSTALL@&$ac_INSTALL&;t t
  24806. $ac_datarootdir_hack
  24807. "
  24808. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24809. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24810. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24811. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24812. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24813. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24815. which seems to be undefined. Please make sure it is defined" >&5
  24816. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24817. which seems to be undefined. Please make sure it is defined" >&2;}
  24818. rm -f "$ac_tmp/stdin"
  24819. case $ac_file in
  24820. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24821. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24822. esac \
  24823. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24824. ;;
  24825. :H)
  24826. #
  24827. # CONFIG_HEADER
  24828. #
  24829. if test x"$ac_file" != x-; then
  24830. {
  24831. $as_echo "/* $configure_input */" \
  24832. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24833. } >"$ac_tmp/config.h" \
  24834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24835. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24836. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24837. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24838. else
  24839. rm -f "$ac_file"
  24840. mv "$ac_tmp/config.h" "$ac_file" \
  24841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24842. fi
  24843. else
  24844. $as_echo "/* $configure_input */" \
  24845. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24846. || as_fn_error $? "could not create -" "$LINENO" 5
  24847. fi
  24848. ;;
  24849. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24850. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24851. ;;
  24852. esac
  24853. case $ac_file$ac_mode in
  24854. "libtool":C)
  24855. # See if we are running on zsh, and set the options that allow our
  24856. # commands through without removal of \ escapes.
  24857. if test -n "${ZSH_VERSION+set}"; then
  24858. setopt NO_GLOB_SUBST
  24859. fi
  24860. cfgfile=${ofile}T
  24861. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24862. $RM "$cfgfile"
  24863. cat <<_LT_EOF >> "$cfgfile"
  24864. #! $SHELL
  24865. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24866. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24867. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24868. # Provide generalized library-building support services.
  24869. # Written by Gordon Matzigkeit, 1996
  24870. # Copyright (C) 2014 Free Software Foundation, Inc.
  24871. # This is free software; see the source for copying conditions. There is NO
  24872. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24873. # GNU Libtool is free software; you can redistribute it and/or modify
  24874. # it under the terms of the GNU General Public License as published by
  24875. # the Free Software Foundation; either version 2 of of the License, or
  24876. # (at your option) any later version.
  24877. #
  24878. # As a special exception to the GNU General Public License, if you
  24879. # distribute this file as part of a program or library that is built
  24880. # using GNU Libtool, you may include this file under the same
  24881. # distribution terms that you use for the rest of that program.
  24882. #
  24883. # GNU Libtool is distributed in the hope that it will be useful, but
  24884. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24885. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24886. # GNU General Public License for more details.
  24887. #
  24888. # You should have received a copy of the GNU General Public License
  24889. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24890. # The names of the tagged configurations supported by this script.
  24891. available_tags='RC CXX '
  24892. # Configured defaults for sys_lib_dlsearch_path munging.
  24893. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24894. # ### BEGIN LIBTOOL CONFIG
  24895. # Which release of libtool.m4 was used?
  24896. macro_version=$macro_version
  24897. macro_revision=$macro_revision
  24898. # Assembler program.
  24899. AS=$lt_AS
  24900. # DLL creation program.
  24901. DLLTOOL=$lt_DLLTOOL
  24902. # Object dumper program.
  24903. OBJDUMP=$lt_OBJDUMP
  24904. # Whether or not to build shared libraries.
  24905. build_libtool_libs=$enable_shared
  24906. # Whether or not to build static libraries.
  24907. build_old_libs=$enable_static
  24908. # What type of objects to build.
  24909. pic_mode=$pic_mode
  24910. # Whether or not to optimize for fast installation.
  24911. fast_install=$enable_fast_install
  24912. # Shared archive member basename,for filename based shared library versioning on AIX.
  24913. shared_archive_member_spec=$shared_archive_member_spec
  24914. # Shell to use when invoking shell scripts.
  24915. SHELL=$lt_SHELL
  24916. # An echo program that protects backslashes.
  24917. ECHO=$lt_ECHO
  24918. # The PATH separator for the build system.
  24919. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24920. # The host system.
  24921. host_alias=$host_alias
  24922. host=$host
  24923. host_os=$host_os
  24924. # The build system.
  24925. build_alias=$build_alias
  24926. build=$build
  24927. build_os=$build_os
  24928. # A sed program that does not truncate output.
  24929. SED=$lt_SED
  24930. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24931. Xsed="\$SED -e 1s/^X//"
  24932. # A grep program that handles long lines.
  24933. GREP=$lt_GREP
  24934. # An ERE matcher.
  24935. EGREP=$lt_EGREP
  24936. # A literal string matcher.
  24937. FGREP=$lt_FGREP
  24938. # A BSD- or MS-compatible name lister.
  24939. NM=$lt_NM
  24940. # Whether we need soft or hard links.
  24941. LN_S=$lt_LN_S
  24942. # What is the maximum length of a command?
  24943. max_cmd_len=$max_cmd_len
  24944. # Object file suffix (normally "o").
  24945. objext=$ac_objext
  24946. # Executable file suffix (normally "").
  24947. exeext=$exeext
  24948. # whether the shell understands "unset".
  24949. lt_unset=$lt_unset
  24950. # turn spaces into newlines.
  24951. SP2NL=$lt_lt_SP2NL
  24952. # turn newlines into spaces.
  24953. NL2SP=$lt_lt_NL2SP
  24954. # convert \$build file names to \$host format.
  24955. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24956. # convert \$build files to toolchain format.
  24957. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24958. # Method to check whether dependent libraries are shared objects.
  24959. deplibs_check_method=$lt_deplibs_check_method
  24960. # Command to use when deplibs_check_method = "file_magic".
  24961. file_magic_cmd=$lt_file_magic_cmd
  24962. # How to find potential files when deplibs_check_method = "file_magic".
  24963. file_magic_glob=$lt_file_magic_glob
  24964. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24965. want_nocaseglob=$lt_want_nocaseglob
  24966. # Command to associate shared and link libraries.
  24967. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24968. # The archiver.
  24969. AR=$lt_AR
  24970. # Flags to create an archive.
  24971. AR_FLAGS=$lt_AR_FLAGS
  24972. # How to feed a file listing to the archiver.
  24973. archiver_list_spec=$lt_archiver_list_spec
  24974. # A symbol stripping program.
  24975. STRIP=$lt_STRIP
  24976. # Commands used to install an old-style archive.
  24977. RANLIB=$lt_RANLIB
  24978. old_postinstall_cmds=$lt_old_postinstall_cmds
  24979. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24980. # Whether to use a lock for old archive extraction.
  24981. lock_old_archive_extraction=$lock_old_archive_extraction
  24982. # A C compiler.
  24983. LTCC=$lt_CC
  24984. # LTCC compiler flags.
  24985. LTCFLAGS=$lt_CFLAGS
  24986. # Take the output of nm and produce a listing of raw symbols and C names.
  24987. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24988. # Transform the output of nm in a proper C declaration.
  24989. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24990. # Transform the output of nm into a list of symbols to manually relocate.
  24991. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24992. # Transform the output of nm in a C name address pair.
  24993. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24994. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24995. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24996. # The name lister interface.
  24997. nm_interface=$lt_lt_cv_nm_interface
  24998. # Specify filename containing input files for \$NM.
  24999. nm_file_list_spec=$lt_nm_file_list_spec
  25000. # The root where to search for dependent libraries,and where our libraries should be installed.
  25001. lt_sysroot=$lt_sysroot
  25002. # Command to truncate a binary pipe.
  25003. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25004. # The name of the directory that contains temporary libtool files.
  25005. objdir=$objdir
  25006. # Used to examine libraries when file_magic_cmd begins with "file".
  25007. MAGIC_CMD=$MAGIC_CMD
  25008. # Must we lock files when doing compilation?
  25009. need_locks=$lt_need_locks
  25010. # Manifest tool.
  25011. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25012. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25013. DSYMUTIL=$lt_DSYMUTIL
  25014. # Tool to change global to local symbols on Mac OS X.
  25015. NMEDIT=$lt_NMEDIT
  25016. # Tool to manipulate fat objects and archives on Mac OS X.
  25017. LIPO=$lt_LIPO
  25018. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25019. OTOOL=$lt_OTOOL
  25020. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25021. OTOOL64=$lt_OTOOL64
  25022. # Old archive suffix (normally "a").
  25023. libext=$libext
  25024. # Shared library suffix (normally ".so").
  25025. shrext_cmds=$lt_shrext_cmds
  25026. # The commands to extract the exported symbol list from a shared archive.
  25027. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25028. # Variables whose values should be saved in libtool wrapper scripts and
  25029. # restored at link time.
  25030. variables_saved_for_relink=$lt_variables_saved_for_relink
  25031. # Do we need the "lib" prefix for modules?
  25032. need_lib_prefix=$need_lib_prefix
  25033. # Do we need a version for libraries?
  25034. need_version=$need_version
  25035. # Library versioning type.
  25036. version_type=$version_type
  25037. # Shared library runtime path variable.
  25038. runpath_var=$runpath_var
  25039. # Shared library path variable.
  25040. shlibpath_var=$shlibpath_var
  25041. # Is shlibpath searched before the hard-coded library search path?
  25042. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25043. # Format of library name prefix.
  25044. libname_spec=$lt_libname_spec
  25045. # List of archive names. First name is the real one, the rest are links.
  25046. # The last name is the one that the linker finds with -lNAME
  25047. library_names_spec=$lt_library_names_spec
  25048. # The coded name of the library, if different from the real name.
  25049. soname_spec=$lt_soname_spec
  25050. # Permission mode override for installation of shared libraries.
  25051. install_override_mode=$lt_install_override_mode
  25052. # Command to use after installation of a shared archive.
  25053. postinstall_cmds=$lt_postinstall_cmds
  25054. # Command to use after uninstallation of a shared archive.
  25055. postuninstall_cmds=$lt_postuninstall_cmds
  25056. # Commands used to finish a libtool library installation in a directory.
  25057. finish_cmds=$lt_finish_cmds
  25058. # As "finish_cmds", except a single script fragment to be evaled but
  25059. # not shown.
  25060. finish_eval=$lt_finish_eval
  25061. # Whether we should hardcode library paths into libraries.
  25062. hardcode_into_libs=$hardcode_into_libs
  25063. # Compile-time system search path for libraries.
  25064. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25065. # Detected run-time system search path for libraries.
  25066. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25067. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25068. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25069. # Whether dlopen is supported.
  25070. dlopen_support=$enable_dlopen
  25071. # Whether dlopen of programs is supported.
  25072. dlopen_self=$enable_dlopen_self
  25073. # Whether dlopen of statically linked programs is supported.
  25074. dlopen_self_static=$enable_dlopen_self_static
  25075. # Commands to strip libraries.
  25076. old_striplib=$lt_old_striplib
  25077. striplib=$lt_striplib
  25078. # The linker used to build libraries.
  25079. LD=$lt_LD
  25080. # How to create reloadable object files.
  25081. reload_flag=$lt_reload_flag
  25082. reload_cmds=$lt_reload_cmds
  25083. # Commands used to build an old-style archive.
  25084. old_archive_cmds=$lt_old_archive_cmds
  25085. # A language specific compiler.
  25086. CC=$lt_compiler
  25087. # Is the compiler the GNU compiler?
  25088. with_gcc=$GCC
  25089. # Compiler flag to turn off builtin functions.
  25090. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25091. # Additional compiler flags for building library objects.
  25092. pic_flag=$lt_lt_prog_compiler_pic
  25093. # How to pass a linker flag through the compiler.
  25094. wl=$lt_lt_prog_compiler_wl
  25095. # Compiler flag to prevent dynamic linking.
  25096. link_static_flag=$lt_lt_prog_compiler_static
  25097. # Does compiler simultaneously support -c and -o options?
  25098. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25099. # Whether or not to add -lc for building shared libraries.
  25100. build_libtool_need_lc=$archive_cmds_need_lc
  25101. # Whether or not to disallow shared libs when runtime libs are static.
  25102. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25103. # Compiler flag to allow reflexive dlopens.
  25104. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25105. # Compiler flag to generate shared objects directly from archives.
  25106. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25107. # Whether the compiler copes with passing no objects directly.
  25108. compiler_needs_object=$lt_compiler_needs_object
  25109. # Create an old-style archive from a shared archive.
  25110. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25111. # Create a temporary old-style archive to link instead of a shared archive.
  25112. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25113. # Commands used to build a shared archive.
  25114. archive_cmds=$lt_archive_cmds
  25115. archive_expsym_cmds=$lt_archive_expsym_cmds
  25116. # Commands used to build a loadable module if different from building
  25117. # a shared archive.
  25118. module_cmds=$lt_module_cmds
  25119. module_expsym_cmds=$lt_module_expsym_cmds
  25120. # Whether we are building with GNU ld or not.
  25121. with_gnu_ld=$lt_with_gnu_ld
  25122. # Flag that allows shared libraries with undefined symbols to be built.
  25123. allow_undefined_flag=$lt_allow_undefined_flag
  25124. # Flag that enforces no undefined symbols.
  25125. no_undefined_flag=$lt_no_undefined_flag
  25126. # Flag to hardcode \$libdir into a binary during linking.
  25127. # This must work even if \$libdir does not exist
  25128. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25129. # Whether we need a single "-rpath" flag with a separated argument.
  25130. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25131. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25132. # DIR into the resulting binary.
  25133. hardcode_direct=$hardcode_direct
  25134. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25135. # DIR into the resulting binary and the resulting library dependency is
  25136. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25137. # library is relocated.
  25138. hardcode_direct_absolute=$hardcode_direct_absolute
  25139. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25140. # into the resulting binary.
  25141. hardcode_minus_L=$hardcode_minus_L
  25142. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25143. # into the resulting binary.
  25144. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25145. # Set to "yes" if building a shared library automatically hardcodes DIR
  25146. # into the library and all subsequent libraries and executables linked
  25147. # against it.
  25148. hardcode_automatic=$hardcode_automatic
  25149. # Set to yes if linker adds runtime paths of dependent libraries
  25150. # to runtime path list.
  25151. inherit_rpath=$inherit_rpath
  25152. # Whether libtool must link a program against all its dependency libraries.
  25153. link_all_deplibs=$link_all_deplibs
  25154. # Set to "yes" if exported symbols are required.
  25155. always_export_symbols=$always_export_symbols
  25156. # The commands to list exported symbols.
  25157. export_symbols_cmds=$lt_export_symbols_cmds
  25158. # Symbols that should not be listed in the preloaded symbols.
  25159. exclude_expsyms=$lt_exclude_expsyms
  25160. # Symbols that must always be exported.
  25161. include_expsyms=$lt_include_expsyms
  25162. # Commands necessary for linking programs (against libraries) with templates.
  25163. prelink_cmds=$lt_prelink_cmds
  25164. # Commands necessary for finishing linking programs.
  25165. postlink_cmds=$lt_postlink_cmds
  25166. # Specify filename containing input files.
  25167. file_list_spec=$lt_file_list_spec
  25168. # How to hardcode a shared library path into an executable.
  25169. hardcode_action=$hardcode_action
  25170. # The directories searched by this compiler when creating a shared library.
  25171. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25172. # Dependencies to place before and after the objects being linked to
  25173. # create a shared library.
  25174. predep_objects=$lt_predep_objects
  25175. postdep_objects=$lt_postdep_objects
  25176. predeps=$lt_predeps
  25177. postdeps=$lt_postdeps
  25178. # The library search path used internally by the compiler when linking
  25179. # a shared library.
  25180. compiler_lib_search_path=$lt_compiler_lib_search_path
  25181. # ### END LIBTOOL CONFIG
  25182. _LT_EOF
  25183. cat <<'_LT_EOF' >> "$cfgfile"
  25184. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25185. # func_munge_path_list VARIABLE PATH
  25186. # -----------------------------------
  25187. # VARIABLE is name of variable containing _space_ separated list of
  25188. # directories to be munged by the contents of PATH, which is string
  25189. # having a format:
  25190. # "DIR[:DIR]:"
  25191. # string "DIR[ DIR]" will be prepended to VARIABLE
  25192. # ":DIR[:DIR]"
  25193. # string "DIR[ DIR]" will be appended to VARIABLE
  25194. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25195. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25196. # "DIRA[ DIRA]" will be appended to VARIABLE
  25197. # "DIR[:DIR]"
  25198. # VARIABLE will be replaced by "DIR[ DIR]"
  25199. func_munge_path_list ()
  25200. {
  25201. case x$2 in
  25202. x)
  25203. ;;
  25204. *:)
  25205. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25206. ;;
  25207. x:*)
  25208. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25209. ;;
  25210. *::*)
  25211. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25212. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25213. ;;
  25214. *)
  25215. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25216. ;;
  25217. esac
  25218. }
  25219. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25220. func_cc_basename ()
  25221. {
  25222. for cc_temp in $*""; do
  25223. case $cc_temp in
  25224. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25225. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25226. \-*) ;;
  25227. *) break;;
  25228. esac
  25229. done
  25230. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25231. }
  25232. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25233. _LT_EOF
  25234. case $host_os in
  25235. aix3*)
  25236. cat <<\_LT_EOF >> "$cfgfile"
  25237. # AIX sometimes has problems with the GCC collect2 program. For some
  25238. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25239. # vanish in a puff of smoke.
  25240. if test set != "${COLLECT_NAMES+set}"; then
  25241. COLLECT_NAMES=
  25242. export COLLECT_NAMES
  25243. fi
  25244. _LT_EOF
  25245. ;;
  25246. esac
  25247. ltmain=$ac_aux_dir/ltmain.sh
  25248. # We use sed instead of cat because bash on DJGPP gets confused if
  25249. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25250. # text mode, it properly converts lines to CR/LF. This bash problem
  25251. # is reportedly fixed, but why not run on old versions too?
  25252. sed '$q' "$ltmain" >> "$cfgfile" \
  25253. || (rm -f "$cfgfile"; exit 1)
  25254. mv -f "$cfgfile" "$ofile" ||
  25255. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25256. chmod +x "$ofile"
  25257. cat <<_LT_EOF >> "$ofile"
  25258. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25259. # The linker used to build libraries.
  25260. LD=$lt_LD_RC
  25261. # How to create reloadable object files.
  25262. reload_flag=$lt_reload_flag_RC
  25263. reload_cmds=$lt_reload_cmds_RC
  25264. # Commands used to build an old-style archive.
  25265. old_archive_cmds=$lt_old_archive_cmds_RC
  25266. # A language specific compiler.
  25267. CC=$lt_compiler_RC
  25268. # Is the compiler the GNU compiler?
  25269. with_gcc=$GCC_RC
  25270. # Compiler flag to turn off builtin functions.
  25271. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25272. # Additional compiler flags for building library objects.
  25273. pic_flag=$lt_lt_prog_compiler_pic_RC
  25274. # How to pass a linker flag through the compiler.
  25275. wl=$lt_lt_prog_compiler_wl_RC
  25276. # Compiler flag to prevent dynamic linking.
  25277. link_static_flag=$lt_lt_prog_compiler_static_RC
  25278. # Does compiler simultaneously support -c and -o options?
  25279. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25280. # Whether or not to add -lc for building shared libraries.
  25281. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25282. # Whether or not to disallow shared libs when runtime libs are static.
  25283. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25284. # Compiler flag to allow reflexive dlopens.
  25285. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25286. # Compiler flag to generate shared objects directly from archives.
  25287. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25288. # Whether the compiler copes with passing no objects directly.
  25289. compiler_needs_object=$lt_compiler_needs_object_RC
  25290. # Create an old-style archive from a shared archive.
  25291. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25292. # Create a temporary old-style archive to link instead of a shared archive.
  25293. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25294. # Commands used to build a shared archive.
  25295. archive_cmds=$lt_archive_cmds_RC
  25296. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25297. # Commands used to build a loadable module if different from building
  25298. # a shared archive.
  25299. module_cmds=$lt_module_cmds_RC
  25300. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25301. # Whether we are building with GNU ld or not.
  25302. with_gnu_ld=$lt_with_gnu_ld_RC
  25303. # Flag that allows shared libraries with undefined symbols to be built.
  25304. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25305. # Flag that enforces no undefined symbols.
  25306. no_undefined_flag=$lt_no_undefined_flag_RC
  25307. # Flag to hardcode \$libdir into a binary during linking.
  25308. # This must work even if \$libdir does not exist
  25309. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25310. # Whether we need a single "-rpath" flag with a separated argument.
  25311. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25312. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25313. # DIR into the resulting binary.
  25314. hardcode_direct=$hardcode_direct_RC
  25315. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25316. # DIR into the resulting binary and the resulting library dependency is
  25317. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25318. # library is relocated.
  25319. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25320. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25321. # into the resulting binary.
  25322. hardcode_minus_L=$hardcode_minus_L_RC
  25323. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25324. # into the resulting binary.
  25325. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25326. # Set to "yes" if building a shared library automatically hardcodes DIR
  25327. # into the library and all subsequent libraries and executables linked
  25328. # against it.
  25329. hardcode_automatic=$hardcode_automatic_RC
  25330. # Set to yes if linker adds runtime paths of dependent libraries
  25331. # to runtime path list.
  25332. inherit_rpath=$inherit_rpath_RC
  25333. # Whether libtool must link a program against all its dependency libraries.
  25334. link_all_deplibs=$link_all_deplibs_RC
  25335. # Set to "yes" if exported symbols are required.
  25336. always_export_symbols=$always_export_symbols_RC
  25337. # The commands to list exported symbols.
  25338. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25339. # Symbols that should not be listed in the preloaded symbols.
  25340. exclude_expsyms=$lt_exclude_expsyms_RC
  25341. # Symbols that must always be exported.
  25342. include_expsyms=$lt_include_expsyms_RC
  25343. # Commands necessary for linking programs (against libraries) with templates.
  25344. prelink_cmds=$lt_prelink_cmds_RC
  25345. # Commands necessary for finishing linking programs.
  25346. postlink_cmds=$lt_postlink_cmds_RC
  25347. # Specify filename containing input files.
  25348. file_list_spec=$lt_file_list_spec_RC
  25349. # How to hardcode a shared library path into an executable.
  25350. hardcode_action=$hardcode_action_RC
  25351. # The directories searched by this compiler when creating a shared library.
  25352. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25353. # Dependencies to place before and after the objects being linked to
  25354. # create a shared library.
  25355. predep_objects=$lt_predep_objects_RC
  25356. postdep_objects=$lt_postdep_objects_RC
  25357. predeps=$lt_predeps_RC
  25358. postdeps=$lt_postdeps_RC
  25359. # The library search path used internally by the compiler when linking
  25360. # a shared library.
  25361. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25362. # ### END LIBTOOL TAG CONFIG: RC
  25363. _LT_EOF
  25364. cat <<_LT_EOF >> "$ofile"
  25365. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25366. # The linker used to build libraries.
  25367. LD=$lt_LD_CXX
  25368. # How to create reloadable object files.
  25369. reload_flag=$lt_reload_flag_CXX
  25370. reload_cmds=$lt_reload_cmds_CXX
  25371. # Commands used to build an old-style archive.
  25372. old_archive_cmds=$lt_old_archive_cmds_CXX
  25373. # A language specific compiler.
  25374. CC=$lt_compiler_CXX
  25375. # Is the compiler the GNU compiler?
  25376. with_gcc=$GCC_CXX
  25377. # Compiler flag to turn off builtin functions.
  25378. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25379. # Additional compiler flags for building library objects.
  25380. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25381. # How to pass a linker flag through the compiler.
  25382. wl=$lt_lt_prog_compiler_wl_CXX
  25383. # Compiler flag to prevent dynamic linking.
  25384. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25385. # Does compiler simultaneously support -c and -o options?
  25386. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25387. # Whether or not to add -lc for building shared libraries.
  25388. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25389. # Whether or not to disallow shared libs when runtime libs are static.
  25390. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25391. # Compiler flag to allow reflexive dlopens.
  25392. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25393. # Compiler flag to generate shared objects directly from archives.
  25394. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25395. # Whether the compiler copes with passing no objects directly.
  25396. compiler_needs_object=$lt_compiler_needs_object_CXX
  25397. # Create an old-style archive from a shared archive.
  25398. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25399. # Create a temporary old-style archive to link instead of a shared archive.
  25400. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25401. # Commands used to build a shared archive.
  25402. archive_cmds=$lt_archive_cmds_CXX
  25403. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25404. # Commands used to build a loadable module if different from building
  25405. # a shared archive.
  25406. module_cmds=$lt_module_cmds_CXX
  25407. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25408. # Whether we are building with GNU ld or not.
  25409. with_gnu_ld=$lt_with_gnu_ld_CXX
  25410. # Flag that allows shared libraries with undefined symbols to be built.
  25411. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25412. # Flag that enforces no undefined symbols.
  25413. no_undefined_flag=$lt_no_undefined_flag_CXX
  25414. # Flag to hardcode \$libdir into a binary during linking.
  25415. # This must work even if \$libdir does not exist
  25416. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25417. # Whether we need a single "-rpath" flag with a separated argument.
  25418. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25419. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25420. # DIR into the resulting binary.
  25421. hardcode_direct=$hardcode_direct_CXX
  25422. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25423. # DIR into the resulting binary and the resulting library dependency is
  25424. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25425. # library is relocated.
  25426. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25427. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25428. # into the resulting binary.
  25429. hardcode_minus_L=$hardcode_minus_L_CXX
  25430. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25431. # into the resulting binary.
  25432. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25433. # Set to "yes" if building a shared library automatically hardcodes DIR
  25434. # into the library and all subsequent libraries and executables linked
  25435. # against it.
  25436. hardcode_automatic=$hardcode_automatic_CXX
  25437. # Set to yes if linker adds runtime paths of dependent libraries
  25438. # to runtime path list.
  25439. inherit_rpath=$inherit_rpath_CXX
  25440. # Whether libtool must link a program against all its dependency libraries.
  25441. link_all_deplibs=$link_all_deplibs_CXX
  25442. # Set to "yes" if exported symbols are required.
  25443. always_export_symbols=$always_export_symbols_CXX
  25444. # The commands to list exported symbols.
  25445. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25446. # Symbols that should not be listed in the preloaded symbols.
  25447. exclude_expsyms=$lt_exclude_expsyms_CXX
  25448. # Symbols that must always be exported.
  25449. include_expsyms=$lt_include_expsyms_CXX
  25450. # Commands necessary for linking programs (against libraries) with templates.
  25451. prelink_cmds=$lt_prelink_cmds_CXX
  25452. # Commands necessary for finishing linking programs.
  25453. postlink_cmds=$lt_postlink_cmds_CXX
  25454. # Specify filename containing input files.
  25455. file_list_spec=$lt_file_list_spec_CXX
  25456. # How to hardcode a shared library path into an executable.
  25457. hardcode_action=$hardcode_action_CXX
  25458. # The directories searched by this compiler when creating a shared library.
  25459. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25460. # Dependencies to place before and after the objects being linked to
  25461. # create a shared library.
  25462. predep_objects=$lt_predep_objects_CXX
  25463. postdep_objects=$lt_postdep_objects_CXX
  25464. predeps=$lt_predeps_CXX
  25465. postdeps=$lt_postdeps_CXX
  25466. # The library search path used internally by the compiler when linking
  25467. # a shared library.
  25468. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25469. # ### END LIBTOOL TAG CONFIG: CXX
  25470. _LT_EOF
  25471. ;;
  25472. "sdl2_config":C) chmod a+x sdl2-config ;;
  25473. "summary":C) printf "$SUMMARY" ;;
  25474. esac
  25475. done # for ac_tag
  25476. as_fn_exit 0
  25477. _ACEOF
  25478. ac_clean_files=$ac_clean_files_save
  25479. test $ac_write_fail = 0 ||
  25480. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25481. # configure is writing to config.log, and then calls config.status.
  25482. # config.status does its own redirection, appending to config.log.
  25483. # Unfortunately, on DOS this fails, as config.log is still kept open
  25484. # by configure, so config.status won't be able to write to it; its
  25485. # output is simply discarded. So we exec the FD to /dev/null,
  25486. # effectively closing config.log, so it can be properly (re)opened and
  25487. # appended to by config.status. When coming back to configure, we
  25488. # need to make the FD available again.
  25489. if test "$no_create" != yes; then
  25490. ac_cs_success=:
  25491. ac_config_status_args=
  25492. test "$silent" = yes &&
  25493. ac_config_status_args="$ac_config_status_args --quiet"
  25494. exec 5>/dev/null
  25495. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25496. exec 5>>config.log
  25497. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25498. # would make configure fail if this is the last instruction.
  25499. $ac_cs_success || as_fn_exit 1
  25500. fi
  25501. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25503. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25504. fi