configure 815 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917
  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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. LIBUSB_LIBS
  603. LIBUSB_CFLAGS
  604. FCITX_LIBS
  605. FCITX_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. WINDRES
  642. SET_MAKE
  643. INSTALL_DATA
  644. INSTALL_SCRIPT
  645. INSTALL_PROGRAM
  646. CXXCPP
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. LT_AGE
  651. LT_REVISION
  652. LT_CURRENT
  653. LT_RELEASE
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. localstatedir
  720. sharedstatedir
  721. sysconfdir
  722. datadir
  723. datarootdir
  724. libexecdir
  725. sbindir
  726. bindir
  727. program_transform_name
  728. prefix
  729. exec_prefix
  730. PACKAGE_URL
  731. PACKAGE_BUGREPORT
  732. PACKAGE_STRING
  733. PACKAGE_VERSION
  734. PACKAGE_TARNAME
  735. PACKAGE_NAME
  736. PATH_SEPARATOR
  737. SHELL'
  738. ac_subst_files=''
  739. ac_user_opts='
  740. enable_option_checking
  741. enable_shared
  742. enable_static
  743. with_pic
  744. enable_fast_install
  745. with_gnu_ld
  746. with_sysroot
  747. enable_libtool_lock
  748. enable_assertions
  749. enable_dependency_tracking
  750. enable_libc
  751. enable_gcc_atomics
  752. enable_atomic
  753. enable_audio
  754. enable_video
  755. enable_render
  756. enable_events
  757. enable_joystick
  758. enable_haptic
  759. enable_sensor
  760. enable_power
  761. enable_filesystem
  762. enable_threads
  763. enable_timers
  764. enable_file
  765. enable_loadso
  766. enable_cpuinfo
  767. enable_assembly
  768. enable_ssemath
  769. enable_mmx
  770. enable_3dnow
  771. enable_sse
  772. enable_sse2
  773. enable_sse3
  774. enable_altivec
  775. enable_oss
  776. enable_alsa
  777. with_alsa_prefix
  778. with_alsa_inc_prefix
  779. enable_alsatest
  780. enable_alsa_shared
  781. enable_jack
  782. enable_jack_shared
  783. enable_esd
  784. with_esd_prefix
  785. with_esd_exec_prefix
  786. enable_esdtest
  787. enable_esd_shared
  788. enable_pulseaudio
  789. enable_pulseaudio_shared
  790. enable_arts
  791. enable_arts_shared
  792. enable_nas
  793. enable_nas_shared
  794. enable_sndio
  795. enable_sndio_shared
  796. enable_fusionsound
  797. enable_fusionsound_shared
  798. enable_diskaudio
  799. enable_dummyaudio
  800. enable_libsamplerate
  801. enable_libsamplerate_shared
  802. enable_video_wayland
  803. enable_video_wayland_qt_touch
  804. enable_wayland_shared
  805. enable_video_rpi
  806. enable_video_x11
  807. with_x
  808. enable_x11_shared
  809. enable_video_x11_xcursor
  810. enable_video_x11_xdbe
  811. enable_video_x11_xinerama
  812. enable_video_x11_xinput
  813. enable_video_x11_xrandr
  814. enable_video_x11_scrnsaver
  815. enable_video_x11_xshape
  816. enable_video_x11_vm
  817. enable_video_vivante
  818. enable_video_cocoa
  819. enable_render_metal
  820. enable_video_directfb
  821. enable_directfb_shared
  822. enable_video_kmsdrm
  823. enable_kmsdrm_shared
  824. enable_video_dummy
  825. enable_video_opengl
  826. enable_video_opengles
  827. enable_video_opengles1
  828. enable_video_opengles2
  829. enable_video_vulkan
  830. enable_libudev
  831. enable_dbus
  832. enable_ime
  833. enable_ibus
  834. enable_fcitx
  835. enable_input_tslib
  836. enable_pthreads
  837. enable_pthread_sem
  838. enable_directx
  839. enable_wasapi
  840. enable_sdl_dlopen
  841. enable_hidapi
  842. enable_clock_gettime
  843. enable_rpath
  844. enable_backgrounding_signal
  845. enable_foregrounding_signal
  846. enable_render_d3d
  847. '
  848. ac_precious_vars='build_alias
  849. host_alias
  850. target_alias
  851. CC
  852. CFLAGS
  853. LDFLAGS
  854. LIBS
  855. CPPFLAGS
  856. CPP
  857. CXX
  858. CXXFLAGS
  859. CCC
  860. CXXCPP
  861. PKG_CONFIG
  862. PKG_CONFIG_PATH
  863. PKG_CONFIG_LIBDIR
  864. JACK_CFLAGS
  865. JACK_LIBS
  866. PULSEAUDIO_CFLAGS
  867. PULSEAUDIO_LIBS
  868. FUSIONSOUND_CFLAGS
  869. FUSIONSOUND_LIBS
  870. RPI_CFLAGS
  871. RPI_LIBS
  872. XMKMF
  873. DIRECTFB_CFLAGS
  874. DIRECTFB_LIBS
  875. LIBDRM_CFLAGS
  876. LIBDRM_LIBS
  877. LIBGBM_CFLAGS
  878. LIBGBM_LIBS
  879. DBUS_CFLAGS
  880. DBUS_LIBS
  881. IBUS_CFLAGS
  882. IBUS_LIBS
  883. FCITX_CFLAGS
  884. FCITX_LIBS
  885. LIBUSB_CFLAGS
  886. LIBUSB_LIBS'
  887. # Initialize some variables set by options.
  888. ac_init_help=
  889. ac_init_version=false
  890. ac_unrecognized_opts=
  891. ac_unrecognized_sep=
  892. # The variables have the same names as the options, with
  893. # dashes changed to underlines.
  894. cache_file=/dev/null
  895. exec_prefix=NONE
  896. no_create=
  897. no_recursion=
  898. prefix=NONE
  899. program_prefix=NONE
  900. program_suffix=NONE
  901. program_transform_name=s,x,x,
  902. silent=
  903. site=
  904. srcdir=
  905. verbose=
  906. x_includes=NONE
  907. x_libraries=NONE
  908. # Installation directory options.
  909. # These are left unexpanded so users can "make install exec_prefix=/foo"
  910. # and all the variables that are supposed to be based on exec_prefix
  911. # by default will actually change.
  912. # Use braces instead of parens because sh, perl, etc. also accept them.
  913. # (The list follows the same order as the GNU Coding Standards.)
  914. bindir='${exec_prefix}/bin'
  915. sbindir='${exec_prefix}/sbin'
  916. libexecdir='${exec_prefix}/libexec'
  917. datarootdir='${prefix}/share'
  918. datadir='${datarootdir}'
  919. sysconfdir='${prefix}/etc'
  920. sharedstatedir='${prefix}/com'
  921. localstatedir='${prefix}/var'
  922. includedir='${prefix}/include'
  923. oldincludedir='/usr/include'
  924. docdir='${datarootdir}/doc/${PACKAGE}'
  925. infodir='${datarootdir}/info'
  926. htmldir='${docdir}'
  927. dvidir='${docdir}'
  928. pdfdir='${docdir}'
  929. psdir='${docdir}'
  930. libdir='${exec_prefix}/lib'
  931. localedir='${datarootdir}/locale'
  932. mandir='${datarootdir}/man'
  933. ac_prev=
  934. ac_dashdash=
  935. for ac_option
  936. do
  937. # If the previous option needs an argument, assign it.
  938. if test -n "$ac_prev"; then
  939. eval $ac_prev=\$ac_option
  940. ac_prev=
  941. continue
  942. fi
  943. case $ac_option in
  944. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  945. *=) ac_optarg= ;;
  946. *) ac_optarg=yes ;;
  947. esac
  948. # Accept the important Cygnus configure options, so we can diagnose typos.
  949. case $ac_dashdash$ac_option in
  950. --)
  951. ac_dashdash=yes ;;
  952. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  953. ac_prev=bindir ;;
  954. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  955. bindir=$ac_optarg ;;
  956. -build | --build | --buil | --bui | --bu)
  957. ac_prev=build_alias ;;
  958. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  959. build_alias=$ac_optarg ;;
  960. -cache-file | --cache-file | --cache-fil | --cache-fi \
  961. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  962. ac_prev=cache_file ;;
  963. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  964. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  965. cache_file=$ac_optarg ;;
  966. --config-cache | -C)
  967. cache_file=config.cache ;;
  968. -datadir | --datadir | --datadi | --datad)
  969. ac_prev=datadir ;;
  970. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  971. datadir=$ac_optarg ;;
  972. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  973. | --dataroo | --dataro | --datar)
  974. ac_prev=datarootdir ;;
  975. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  976. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  977. datarootdir=$ac_optarg ;;
  978. -disable-* | --disable-*)
  979. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  980. # Reject names that are not valid shell variable names.
  981. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  982. as_fn_error $? "invalid feature name: $ac_useropt"
  983. ac_useropt_orig=$ac_useropt
  984. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  985. case $ac_user_opts in
  986. *"
  987. "enable_$ac_useropt"
  988. "*) ;;
  989. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  990. ac_unrecognized_sep=', ';;
  991. esac
  992. eval enable_$ac_useropt=no ;;
  993. -docdir | --docdir | --docdi | --doc | --do)
  994. ac_prev=docdir ;;
  995. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  996. docdir=$ac_optarg ;;
  997. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  998. ac_prev=dvidir ;;
  999. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1000. dvidir=$ac_optarg ;;
  1001. -enable-* | --enable-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid feature name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "enable_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval enable_$ac_useropt=\$ac_optarg ;;
  1016. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1017. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1018. | --exec | --exe | --ex)
  1019. ac_prev=exec_prefix ;;
  1020. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1021. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1022. | --exec=* | --exe=* | --ex=*)
  1023. exec_prefix=$ac_optarg ;;
  1024. -gas | --gas | --ga | --g)
  1025. # Obsolete; use --with-gas.
  1026. with_gas=yes ;;
  1027. -help | --help | --hel | --he | -h)
  1028. ac_init_help=long ;;
  1029. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1030. ac_init_help=recursive ;;
  1031. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1032. ac_init_help=short ;;
  1033. -host | --host | --hos | --ho)
  1034. ac_prev=host_alias ;;
  1035. -host=* | --host=* | --hos=* | --ho=*)
  1036. host_alias=$ac_optarg ;;
  1037. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1038. ac_prev=htmldir ;;
  1039. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1040. | --ht=*)
  1041. htmldir=$ac_optarg ;;
  1042. -includedir | --includedir | --includedi | --included | --include \
  1043. | --includ | --inclu | --incl | --inc)
  1044. ac_prev=includedir ;;
  1045. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1046. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1047. includedir=$ac_optarg ;;
  1048. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1049. ac_prev=infodir ;;
  1050. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1051. infodir=$ac_optarg ;;
  1052. -libdir | --libdir | --libdi | --libd)
  1053. ac_prev=libdir ;;
  1054. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1055. libdir=$ac_optarg ;;
  1056. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1057. | --libexe | --libex | --libe)
  1058. ac_prev=libexecdir ;;
  1059. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1060. | --libexe=* | --libex=* | --libe=*)
  1061. libexecdir=$ac_optarg ;;
  1062. -localedir | --localedir | --localedi | --localed | --locale)
  1063. ac_prev=localedir ;;
  1064. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1065. localedir=$ac_optarg ;;
  1066. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1067. | --localstate | --localstat | --localsta | --localst | --locals)
  1068. ac_prev=localstatedir ;;
  1069. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1070. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1071. localstatedir=$ac_optarg ;;
  1072. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1073. ac_prev=mandir ;;
  1074. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1075. mandir=$ac_optarg ;;
  1076. -nfp | --nfp | --nf)
  1077. # Obsolete; use --without-fp.
  1078. with_fp=no ;;
  1079. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1080. | --no-cr | --no-c | -n)
  1081. no_create=yes ;;
  1082. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1083. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1084. no_recursion=yes ;;
  1085. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1086. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1087. | --oldin | --oldi | --old | --ol | --o)
  1088. ac_prev=oldincludedir ;;
  1089. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1090. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1091. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1092. oldincludedir=$ac_optarg ;;
  1093. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1094. ac_prev=prefix ;;
  1095. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1096. prefix=$ac_optarg ;;
  1097. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1098. | --program-pre | --program-pr | --program-p)
  1099. ac_prev=program_prefix ;;
  1100. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1101. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1102. program_prefix=$ac_optarg ;;
  1103. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1104. | --program-suf | --program-su | --program-s)
  1105. ac_prev=program_suffix ;;
  1106. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1107. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1108. program_suffix=$ac_optarg ;;
  1109. -program-transform-name | --program-transform-name \
  1110. | --program-transform-nam | --program-transform-na \
  1111. | --program-transform-n | --program-transform- \
  1112. | --program-transform | --program-transfor \
  1113. | --program-transfo | --program-transf \
  1114. | --program-trans | --program-tran \
  1115. | --progr-tra | --program-tr | --program-t)
  1116. ac_prev=program_transform_name ;;
  1117. -program-transform-name=* | --program-transform-name=* \
  1118. | --program-transform-nam=* | --program-transform-na=* \
  1119. | --program-transform-n=* | --program-transform-=* \
  1120. | --program-transform=* | --program-transfor=* \
  1121. | --program-transfo=* | --program-transf=* \
  1122. | --program-trans=* | --program-tran=* \
  1123. | --progr-tra=* | --program-tr=* | --program-t=*)
  1124. program_transform_name=$ac_optarg ;;
  1125. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1126. ac_prev=pdfdir ;;
  1127. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1128. pdfdir=$ac_optarg ;;
  1129. -psdir | --psdir | --psdi | --psd | --ps)
  1130. ac_prev=psdir ;;
  1131. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1132. psdir=$ac_optarg ;;
  1133. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1134. | -silent | --silent | --silen | --sile | --sil)
  1135. silent=yes ;;
  1136. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1137. ac_prev=sbindir ;;
  1138. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1139. | --sbi=* | --sb=*)
  1140. sbindir=$ac_optarg ;;
  1141. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1142. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1143. | --sharedst | --shareds | --shared | --share | --shar \
  1144. | --sha | --sh)
  1145. ac_prev=sharedstatedir ;;
  1146. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1147. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1148. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1149. | --sha=* | --sh=*)
  1150. sharedstatedir=$ac_optarg ;;
  1151. -site | --site | --sit)
  1152. ac_prev=site ;;
  1153. -site=* | --site=* | --sit=*)
  1154. site=$ac_optarg ;;
  1155. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1156. ac_prev=srcdir ;;
  1157. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1158. srcdir=$ac_optarg ;;
  1159. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1160. | --syscon | --sysco | --sysc | --sys | --sy)
  1161. ac_prev=sysconfdir ;;
  1162. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1163. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1164. sysconfdir=$ac_optarg ;;
  1165. -target | --target | --targe | --targ | --tar | --ta | --t)
  1166. ac_prev=target_alias ;;
  1167. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1168. target_alias=$ac_optarg ;;
  1169. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1170. verbose=yes ;;
  1171. -version | --version | --versio | --versi | --vers | -V)
  1172. ac_init_version=: ;;
  1173. -with-* | --with-*)
  1174. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1175. # Reject names that are not valid shell variable names.
  1176. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1177. as_fn_error $? "invalid package name: $ac_useropt"
  1178. ac_useropt_orig=$ac_useropt
  1179. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1180. case $ac_user_opts in
  1181. *"
  1182. "with_$ac_useropt"
  1183. "*) ;;
  1184. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1185. ac_unrecognized_sep=', ';;
  1186. esac
  1187. eval with_$ac_useropt=\$ac_optarg ;;
  1188. -without-* | --without-*)
  1189. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1190. # Reject names that are not valid shell variable names.
  1191. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1192. as_fn_error $? "invalid package name: $ac_useropt"
  1193. ac_useropt_orig=$ac_useropt
  1194. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1195. case $ac_user_opts in
  1196. *"
  1197. "with_$ac_useropt"
  1198. "*) ;;
  1199. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1200. ac_unrecognized_sep=', ';;
  1201. esac
  1202. eval with_$ac_useropt=no ;;
  1203. --x)
  1204. # Obsolete; use --with-x.
  1205. with_x=yes ;;
  1206. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1207. | --x-incl | --x-inc | --x-in | --x-i)
  1208. ac_prev=x_includes ;;
  1209. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1210. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1211. x_includes=$ac_optarg ;;
  1212. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1213. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1214. ac_prev=x_libraries ;;
  1215. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1216. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1217. x_libraries=$ac_optarg ;;
  1218. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1219. Try \`$0 --help' for more information"
  1220. ;;
  1221. *=*)
  1222. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1223. # Reject names that are not valid shell variable names.
  1224. case $ac_envvar in #(
  1225. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1226. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1227. esac
  1228. eval $ac_envvar=\$ac_optarg
  1229. export $ac_envvar ;;
  1230. *)
  1231. # FIXME: should be removed in autoconf 3.0.
  1232. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1233. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1234. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1235. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1236. ;;
  1237. esac
  1238. done
  1239. if test -n "$ac_prev"; then
  1240. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1241. as_fn_error $? "missing argument to $ac_option"
  1242. fi
  1243. if test -n "$ac_unrecognized_opts"; then
  1244. case $enable_option_checking in
  1245. no) ;;
  1246. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1247. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1248. esac
  1249. fi
  1250. # Check all directory arguments for consistency.
  1251. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1252. datadir sysconfdir sharedstatedir localstatedir includedir \
  1253. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1254. libdir localedir mandir
  1255. do
  1256. eval ac_val=\$$ac_var
  1257. # Remove trailing slashes.
  1258. case $ac_val in
  1259. */ )
  1260. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1261. eval $ac_var=\$ac_val;;
  1262. esac
  1263. # Be sure to have absolute directory names.
  1264. case $ac_val in
  1265. [\\/$]* | ?:[\\/]* ) continue;;
  1266. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1267. esac
  1268. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1269. done
  1270. # There might be people who depend on the old broken behavior: `$host'
  1271. # used to hold the argument of --host etc.
  1272. # FIXME: To remove some day.
  1273. build=$build_alias
  1274. host=$host_alias
  1275. target=$target_alias
  1276. # FIXME: To remove some day.
  1277. if test "x$host_alias" != x; then
  1278. if test "x$build_alias" = x; then
  1279. cross_compiling=maybe
  1280. elif test "x$build_alias" != "x$host_alias"; then
  1281. cross_compiling=yes
  1282. fi
  1283. fi
  1284. ac_tool_prefix=
  1285. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1286. test "$silent" = yes && exec 6>/dev/null
  1287. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1288. ac_ls_di=`ls -di .` &&
  1289. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1290. as_fn_error $? "working directory cannot be determined"
  1291. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1292. as_fn_error $? "pwd does not report name of working directory"
  1293. # Find the source files, if location was not specified.
  1294. if test -z "$srcdir"; then
  1295. ac_srcdir_defaulted=yes
  1296. # Try the directory containing this script, then the parent directory.
  1297. ac_confdir=`$as_dirname -- "$as_myself" ||
  1298. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1299. X"$as_myself" : 'X\(//\)[^/]' \| \
  1300. X"$as_myself" : 'X\(//\)$' \| \
  1301. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1302. $as_echo X"$as_myself" |
  1303. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1304. s//\1/
  1305. q
  1306. }
  1307. /^X\(\/\/\)[^/].*/{
  1308. s//\1/
  1309. q
  1310. }
  1311. /^X\(\/\/\)$/{
  1312. s//\1/
  1313. q
  1314. }
  1315. /^X\(\/\).*/{
  1316. s//\1/
  1317. q
  1318. }
  1319. s/.*/./; q'`
  1320. srcdir=$ac_confdir
  1321. if test ! -r "$srcdir/$ac_unique_file"; then
  1322. srcdir=..
  1323. fi
  1324. else
  1325. ac_srcdir_defaulted=no
  1326. fi
  1327. if test ! -r "$srcdir/$ac_unique_file"; then
  1328. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1329. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1330. fi
  1331. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1332. ac_abs_confdir=`(
  1333. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1334. pwd)`
  1335. # When building in place, set srcdir=.
  1336. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1337. srcdir=.
  1338. fi
  1339. # Remove unnecessary trailing slashes from srcdir.
  1340. # Double slashes in file names in object file debugging info
  1341. # mess up M-x gdb in Emacs.
  1342. case $srcdir in
  1343. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1344. esac
  1345. for ac_var in $ac_precious_vars; do
  1346. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1347. eval ac_env_${ac_var}_value=\$${ac_var}
  1348. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1349. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1350. done
  1351. #
  1352. # Report the --help message.
  1353. #
  1354. if test "$ac_init_help" = "long"; then
  1355. # Omit some internal or obsolete options to make the list less imposing.
  1356. # This message is too long to be a string in the A/UX 3.1 sh.
  1357. cat <<_ACEOF
  1358. \`configure' configures this package to adapt to many kinds of systems.
  1359. Usage: $0 [OPTION]... [VAR=VALUE]...
  1360. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1361. VAR=VALUE. See below for descriptions of some of the useful variables.
  1362. Defaults for the options are specified in brackets.
  1363. Configuration:
  1364. -h, --help display this help and exit
  1365. --help=short display options specific to this package
  1366. --help=recursive display the short help of all the included packages
  1367. -V, --version display version information and exit
  1368. -q, --quiet, --silent do not print \`checking ...' messages
  1369. --cache-file=FILE cache test results in FILE [disabled]
  1370. -C, --config-cache alias for \`--cache-file=config.cache'
  1371. -n, --no-create do not create output files
  1372. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1373. Installation directories:
  1374. --prefix=PREFIX install architecture-independent files in PREFIX
  1375. [$ac_default_prefix]
  1376. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1377. [PREFIX]
  1378. By default, \`make install' will install all the files in
  1379. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1380. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1381. for instance \`--prefix=\$HOME'.
  1382. For better control, use the options below.
  1383. Fine tuning of the installation directories:
  1384. --bindir=DIR user executables [EPREFIX/bin]
  1385. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1386. --libexecdir=DIR program executables [EPREFIX/libexec]
  1387. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1388. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1389. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1390. --libdir=DIR object code libraries [EPREFIX/lib]
  1391. --includedir=DIR C header files [PREFIX/include]
  1392. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1393. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1394. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1395. --infodir=DIR info documentation [DATAROOTDIR/info]
  1396. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1397. --mandir=DIR man documentation [DATAROOTDIR/man]
  1398. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1399. --htmldir=DIR html documentation [DOCDIR]
  1400. --dvidir=DIR dvi documentation [DOCDIR]
  1401. --pdfdir=DIR pdf documentation [DOCDIR]
  1402. --psdir=DIR ps documentation [DOCDIR]
  1403. _ACEOF
  1404. cat <<\_ACEOF
  1405. X features:
  1406. --x-includes=DIR X include files are in DIR
  1407. --x-libraries=DIR X library files are in DIR
  1408. System types:
  1409. --build=BUILD configure for building on BUILD [guessed]
  1410. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1411. _ACEOF
  1412. fi
  1413. if test -n "$ac_init_help"; then
  1414. cat <<\_ACEOF
  1415. Optional Features:
  1416. --disable-option-checking ignore unrecognized --enable/--with options
  1417. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1418. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1419. --enable-shared[=PKGS] build shared libraries [default=yes]
  1420. --enable-static[=PKGS] build static libraries [default=yes]
  1421. --enable-fast-install[=PKGS]
  1422. optimize for fast installation [default=yes]
  1423. --disable-libtool-lock avoid locking (might break parallel builds)
  1424. --enable-assertions Enable internal sanity checks
  1425. (auto/disabled/release/enabled/paranoid)
  1426. [[default=auto]]
  1427. --enable-dependency-tracking
  1428. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1429. --enable-libc Use the system C library [[default=yes]]
  1430. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1431. --enable-atomic Enable the atomic operations subsystem
  1432. [[default=yes]]
  1433. --enable-audio Enable the audio subsystem [[default=yes]]
  1434. --enable-video Enable the video subsystem [[default=yes]]
  1435. --enable-render Enable the render subsystem [[default=yes]]
  1436. --enable-events Enable the events subsystem [[default=yes]]
  1437. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1438. --enable-haptic Enable the haptic (force feedback) subsystem
  1439. [[default=yes]]
  1440. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1441. --enable-power Enable the power subsystem [[default=yes]]
  1442. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1443. --enable-threads Enable the threading subsystem [[default=yes]]
  1444. --enable-timers Enable the timer subsystem [[default=yes]]
  1445. --enable-file Enable the file subsystem [[default=yes]]
  1446. --enable-loadso Enable the shared object loading subsystem
  1447. [[default=yes]]
  1448. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1449. --enable-assembly Enable assembly routines [[default=yes]]
  1450. --enable-ssemath Allow GCC to use SSE floating point math
  1451. [[default=maybe]]
  1452. --enable-mmx use MMX assembly routines [[default=yes]]
  1453. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1454. --enable-sse use SSE assembly routines [[default=yes]]
  1455. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1456. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1457. --enable-altivec use Altivec assembly routines [[default=yes]]
  1458. --enable-oss support the OSS audio API [[default=maybe]]
  1459. --enable-alsa support the ALSA audio API [[default=yes]]
  1460. --disable-alsatest Do not try to compile and run a test Alsa program
  1461. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1462. --enable-jack use JACK audio [[default=yes]]
  1463. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1464. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1465. --disable-esdtest Do not try to compile and run a test ESD program
  1466. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1467. --enable-pulseaudio use PulseAudio [[default=yes]]
  1468. --enable-pulseaudio-shared
  1469. dynamically load PulseAudio support [[default=yes]]
  1470. --enable-arts support the Analog Real Time Synthesizer
  1471. [[default=yes]]
  1472. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1473. --enable-nas support the NAS audio API [[default=yes]]
  1474. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1475. --enable-sndio support the sndio audio API [[default=yes]]
  1476. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1477. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1478. --enable-fusionsound-shared
  1479. dynamically load fusionsound audio support
  1480. [[default=yes]]
  1481. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1482. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1483. --enable-libsamplerate use libsamplerate for audio rate conversion
  1484. [[default=yes]]
  1485. --enable-libsamplerate-shared
  1486. dynamically load libsamplerate [[default=yes]]
  1487. --enable-video-wayland use Wayland video driver [[default=yes]]
  1488. --enable-video-wayland-qt-touch
  1489. QtWayland server support for Wayland video driver
  1490. [[default=yes]]
  1491. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1492. --enable-video-rpi use Raspberry Pi video driver [[default=no]]
  1493. --enable-video-x11 use X11 video driver [[default=yes]]
  1494. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1495. --enable-video-x11-xcursor
  1496. enable X11 Xcursor support [[default=yes]]
  1497. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1498. --enable-video-x11-xinerama
  1499. enable X11 Xinerama support [[default=yes]]
  1500. --enable-video-x11-xinput
  1501. enable X11 XInput extension for manymouse, tablets,
  1502. etc [[default=yes]]
  1503. --enable-video-x11-xrandr
  1504. enable X11 Xrandr extension for fullscreen
  1505. [[default=yes]]
  1506. --enable-video-x11-scrnsaver
  1507. enable X11 screensaver extension [[default=yes]]
  1508. --enable-video-x11-xshape
  1509. enable X11 XShape support [[default=yes]]
  1510. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1511. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1512. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1513. --enable-render-metal enable the Metal render driver [[default=yes]]
  1514. --enable-video-directfb use DirectFB video driver [[default=no]]
  1515. --enable-directfb-shared
  1516. dynamically load directfb support [[default=yes]]
  1517. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1518. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1519. --enable-video-dummy use dummy video driver [[default=yes]]
  1520. --enable-video-opengl include OpenGL support [[default=yes]]
  1521. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1522. --enable-video-opengles1
  1523. include OpenGL ES 1.1 support [[default=yes]]
  1524. --enable-video-opengles2
  1525. include OpenGL ES 2.0 support [[default=yes]]
  1526. --enable-video-vulkan include Vulkan support [[default=yes]]
  1527. --enable-libudev enable libudev support [[default=yes]]
  1528. --enable-dbus enable D-Bus support [[default=yes]]
  1529. --enable-ime enable IME support [[default=yes]]
  1530. --enable-ibus enable IBus support [[default=yes]]
  1531. --enable-fcitx enable fcitx support [[default=yes]]
  1532. --enable-input-tslib use the Touchscreen library for input
  1533. [[default=yes]]
  1534. --enable-pthreads use POSIX threads for multi-threading
  1535. [[default=yes]]
  1536. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1537. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1538. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1539. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1540. --enable-hidapi use HIDAPI for low level joystick drivers
  1541. [[default=no]]
  1542. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1543. UNIX [[default=yes]]
  1544. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1545. --enable-backgrounding-signal
  1546. number to use for magic backgrounding signal or 'no'
  1547. [[default=no]]
  1548. --enable-foregrounding-signal
  1549. number to use for magic foregrounding signal or 'no'
  1550. [[default=no]]
  1551. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1552. Optional Packages:
  1553. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1554. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1555. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1556. both]
  1557. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1558. --with-sysroot=DIR Search for dependent libraries within DIR
  1559. (or the compiler's sysroot if not specified).
  1560. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1561. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1562. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1563. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1564. --with-x use the X Window System
  1565. Some influential environment variables:
  1566. CC C compiler command
  1567. CFLAGS C compiler flags
  1568. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1569. nonstandard directory <lib dir>
  1570. LIBS libraries to pass to the linker, e.g. -l<library>
  1571. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1572. you have headers in a nonstandard directory <include dir>
  1573. CPP C preprocessor
  1574. CXX C++ compiler command
  1575. CXXFLAGS C++ compiler flags
  1576. CXXCPP C++ preprocessor
  1577. PKG_CONFIG path to pkg-config utility
  1578. PKG_CONFIG_PATH
  1579. directories to add to pkg-config's search path
  1580. PKG_CONFIG_LIBDIR
  1581. path overriding pkg-config's built-in search path
  1582. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1583. JACK_LIBS linker flags for JACK, overriding pkg-config
  1584. PULSEAUDIO_CFLAGS
  1585. C compiler flags for PULSEAUDIO, overriding pkg-config
  1586. PULSEAUDIO_LIBS
  1587. linker flags for PULSEAUDIO, overriding pkg-config
  1588. FUSIONSOUND_CFLAGS
  1589. C compiler flags for FUSIONSOUND, overriding pkg-config
  1590. FUSIONSOUND_LIBS
  1591. linker flags for FUSIONSOUND, overriding pkg-config
  1592. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1593. RPI_LIBS linker flags for RPI, overriding pkg-config
  1594. XMKMF Path to xmkmf, Makefile generator for X Window System
  1595. DIRECTFB_CFLAGS
  1596. C compiler flags for DIRECTFB, overriding pkg-config
  1597. DIRECTFB_LIBS
  1598. linker flags for DIRECTFB, overriding pkg-config
  1599. LIBDRM_CFLAGS
  1600. C compiler flags for LIBDRM, overriding pkg-config
  1601. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1602. LIBGBM_CFLAGS
  1603. C compiler flags for LIBGBM, overriding pkg-config
  1604. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1605. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1606. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1607. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1608. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1609. FCITX_CFLAGS
  1610. C compiler flags for FCITX, overriding pkg-config
  1611. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1612. LIBUSB_CFLAGS
  1613. C compiler flags for LIBUSB, overriding pkg-config
  1614. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1615. Use these variables to override the choices made by `configure' or to help
  1616. it to find libraries and programs with nonstandard names/locations.
  1617. Report bugs to the package provider.
  1618. _ACEOF
  1619. ac_status=$?
  1620. fi
  1621. if test "$ac_init_help" = "recursive"; then
  1622. # If there are subdirs, report their specific --help.
  1623. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1624. test -d "$ac_dir" ||
  1625. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1626. continue
  1627. ac_builddir=.
  1628. case "$ac_dir" in
  1629. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1630. *)
  1631. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1632. # A ".." for each directory in $ac_dir_suffix.
  1633. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1634. case $ac_top_builddir_sub in
  1635. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1636. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1637. esac ;;
  1638. esac
  1639. ac_abs_top_builddir=$ac_pwd
  1640. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1641. # for backward compatibility:
  1642. ac_top_builddir=$ac_top_build_prefix
  1643. case $srcdir in
  1644. .) # We are building in place.
  1645. ac_srcdir=.
  1646. ac_top_srcdir=$ac_top_builddir_sub
  1647. ac_abs_top_srcdir=$ac_pwd ;;
  1648. [\\/]* | ?:[\\/]* ) # Absolute name.
  1649. ac_srcdir=$srcdir$ac_dir_suffix;
  1650. ac_top_srcdir=$srcdir
  1651. ac_abs_top_srcdir=$srcdir ;;
  1652. *) # Relative name.
  1653. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1654. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1655. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1656. esac
  1657. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1658. cd "$ac_dir" || { ac_status=$?; continue; }
  1659. # Check for guested configure.
  1660. if test -f "$ac_srcdir/configure.gnu"; then
  1661. echo &&
  1662. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1663. elif test -f "$ac_srcdir/configure"; then
  1664. echo &&
  1665. $SHELL "$ac_srcdir/configure" --help=recursive
  1666. else
  1667. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1668. fi || ac_status=$?
  1669. cd "$ac_pwd" || { ac_status=$?; break; }
  1670. done
  1671. fi
  1672. test -n "$ac_init_help" && exit $ac_status
  1673. if $ac_init_version; then
  1674. cat <<\_ACEOF
  1675. configure
  1676. generated by GNU Autoconf 2.69
  1677. Copyright (C) 2012 Free Software Foundation, Inc.
  1678. This configure script is free software; the Free Software Foundation
  1679. gives unlimited permission to copy, distribute and modify it.
  1680. _ACEOF
  1681. exit
  1682. fi
  1683. ## ------------------------ ##
  1684. ## Autoconf initialization. ##
  1685. ## ------------------------ ##
  1686. # ac_fn_c_try_compile LINENO
  1687. # --------------------------
  1688. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1689. ac_fn_c_try_compile ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. rm -f conftest.$ac_objext
  1693. if { { ac_try="$ac_compile"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_compile") 2>conftest.err
  1701. ac_status=$?
  1702. if test -s conftest.err; then
  1703. grep -v '^ *+' conftest.err >conftest.er1
  1704. cat conftest.er1 >&5
  1705. mv -f conftest.er1 conftest.err
  1706. fi
  1707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; } && {
  1709. test -z "$ac_c_werror_flag" ||
  1710. test ! -s conftest.err
  1711. } && test -s conftest.$ac_objext; then :
  1712. ac_retval=0
  1713. else
  1714. $as_echo "$as_me: failed program was:" >&5
  1715. sed 's/^/| /' conftest.$ac_ext >&5
  1716. ac_retval=1
  1717. fi
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. as_fn_set_status $ac_retval
  1720. } # ac_fn_c_try_compile
  1721. # ac_fn_c_try_link LINENO
  1722. # -----------------------
  1723. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1724. ac_fn_c_try_link ()
  1725. {
  1726. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1727. rm -f conftest.$ac_objext conftest$ac_exeext
  1728. if { { ac_try="$ac_link"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_link") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } && {
  1744. test -z "$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. } && test -s conftest$ac_exeext && {
  1747. test "$cross_compiling" = yes ||
  1748. test -x conftest$ac_exeext
  1749. }; then :
  1750. ac_retval=0
  1751. else
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1757. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1758. # interfere with the next link command; also delete a directory that is
  1759. # left behind by Apple's compiler. We do this before executing the actions.
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_c_try_link
  1764. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1765. # -------------------------------------------------------
  1766. # Tests whether HEADER exists and can be compiled using the include files in
  1767. # INCLUDES, setting the cache variable VAR accordingly.
  1768. ac_fn_c_check_header_compile ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. $as_echo_n "checking for $2... " >&6; }
  1773. if eval \${$3+:} false; then :
  1774. $as_echo_n "(cached) " >&6
  1775. else
  1776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1777. /* end confdefs.h. */
  1778. $4
  1779. #include <$2>
  1780. _ACEOF
  1781. if ac_fn_c_try_compile "$LINENO"; then :
  1782. eval "$3=yes"
  1783. else
  1784. eval "$3=no"
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. fi
  1788. eval ac_res=\$$3
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1790. $as_echo "$ac_res" >&6; }
  1791. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1792. } # ac_fn_c_check_header_compile
  1793. # ac_fn_c_try_cpp LINENO
  1794. # ----------------------
  1795. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_c_try_cpp ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1800. case "(($ac_try" in
  1801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1802. *) ac_try_echo=$ac_try;;
  1803. esac
  1804. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1805. $as_echo "$ac_try_echo"; } >&5
  1806. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1807. ac_status=$?
  1808. if test -s conftest.err; then
  1809. grep -v '^ *+' conftest.err >conftest.er1
  1810. cat conftest.er1 >&5
  1811. mv -f conftest.er1 conftest.err
  1812. fi
  1813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1814. test $ac_status = 0; } > conftest.i && {
  1815. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1816. test ! -s conftest.err
  1817. }; then :
  1818. ac_retval=0
  1819. else
  1820. $as_echo "$as_me: failed program was:" >&5
  1821. sed 's/^/| /' conftest.$ac_ext >&5
  1822. ac_retval=1
  1823. fi
  1824. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1825. as_fn_set_status $ac_retval
  1826. } # ac_fn_c_try_cpp
  1827. # ac_fn_c_try_run LINENO
  1828. # ----------------------
  1829. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1830. # that executables *can* be run.
  1831. ac_fn_c_try_run ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. if { { ac_try="$ac_link"
  1835. case "(($ac_try" in
  1836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1837. *) ac_try_echo=$ac_try;;
  1838. esac
  1839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1840. $as_echo "$ac_try_echo"; } >&5
  1841. (eval "$ac_link") 2>&5
  1842. ac_status=$?
  1843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1844. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1845. { { case "(($ac_try" in
  1846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1847. *) ac_try_echo=$ac_try;;
  1848. esac
  1849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1850. $as_echo "$ac_try_echo"; } >&5
  1851. (eval "$ac_try") 2>&5
  1852. ac_status=$?
  1853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1854. test $ac_status = 0; }; }; then :
  1855. ac_retval=0
  1856. else
  1857. $as_echo "$as_me: program exited with status $ac_status" >&5
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=$ac_status
  1861. fi
  1862. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1863. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1864. as_fn_set_status $ac_retval
  1865. } # ac_fn_c_try_run
  1866. # ac_fn_c_check_func LINENO FUNC VAR
  1867. # ----------------------------------
  1868. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1869. ac_fn_c_check_func ()
  1870. {
  1871. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1873. $as_echo_n "checking for $2... " >&6; }
  1874. if eval \${$3+:} false; then :
  1875. $as_echo_n "(cached) " >&6
  1876. else
  1877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1878. /* end confdefs.h. */
  1879. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1880. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1881. #define $2 innocuous_$2
  1882. /* System header to define __stub macros and hopefully few prototypes,
  1883. which can conflict with char $2 (); below.
  1884. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1885. <limits.h> exists even on freestanding compilers. */
  1886. #ifdef __STDC__
  1887. # include <limits.h>
  1888. #else
  1889. # include <assert.h>
  1890. #endif
  1891. #undef $2
  1892. /* Override any GCC internal prototype to avoid an error.
  1893. Use char because int might match the return type of a GCC
  1894. builtin and then its argument prototype would still apply. */
  1895. #ifdef __cplusplus
  1896. extern "C"
  1897. #endif
  1898. char $2 ();
  1899. /* The GNU C library defines this for functions which it implements
  1900. to always fail with ENOSYS. Some functions are actually named
  1901. something starting with __ and the normal name is an alias. */
  1902. #if defined __stub_$2 || defined __stub___$2
  1903. choke me
  1904. #endif
  1905. int
  1906. main ()
  1907. {
  1908. return $2 ();
  1909. ;
  1910. return 0;
  1911. }
  1912. _ACEOF
  1913. if ac_fn_c_try_link "$LINENO"; then :
  1914. eval "$3=yes"
  1915. else
  1916. eval "$3=no"
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext \
  1919. conftest$ac_exeext conftest.$ac_ext
  1920. fi
  1921. eval ac_res=\$$3
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1923. $as_echo "$ac_res" >&6; }
  1924. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1925. } # ac_fn_c_check_func
  1926. # ac_fn_cxx_try_compile LINENO
  1927. # ----------------------------
  1928. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1929. ac_fn_cxx_try_compile ()
  1930. {
  1931. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1932. rm -f conftest.$ac_objext
  1933. if { { ac_try="$ac_compile"
  1934. case "(($ac_try" in
  1935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1936. *) ac_try_echo=$ac_try;;
  1937. esac
  1938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1939. $as_echo "$ac_try_echo"; } >&5
  1940. (eval "$ac_compile") 2>conftest.err
  1941. ac_status=$?
  1942. if test -s conftest.err; then
  1943. grep -v '^ *+' conftest.err >conftest.er1
  1944. cat conftest.er1 >&5
  1945. mv -f conftest.er1 conftest.err
  1946. fi
  1947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1948. test $ac_status = 0; } && {
  1949. test -z "$ac_cxx_werror_flag" ||
  1950. test ! -s conftest.err
  1951. } && test -s conftest.$ac_objext; then :
  1952. ac_retval=0
  1953. else
  1954. $as_echo "$as_me: failed program was:" >&5
  1955. sed 's/^/| /' conftest.$ac_ext >&5
  1956. ac_retval=1
  1957. fi
  1958. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1959. as_fn_set_status $ac_retval
  1960. } # ac_fn_cxx_try_compile
  1961. # ac_fn_cxx_try_cpp LINENO
  1962. # ------------------------
  1963. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_cpp ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1973. $as_echo "$ac_try_echo"; } >&5
  1974. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1975. ac_status=$?
  1976. if test -s conftest.err; then
  1977. grep -v '^ *+' conftest.err >conftest.er1
  1978. cat conftest.er1 >&5
  1979. mv -f conftest.er1 conftest.err
  1980. fi
  1981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1982. test $ac_status = 0; } > conftest.i && {
  1983. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1984. test ! -s conftest.err
  1985. }; then :
  1986. ac_retval=0
  1987. else
  1988. $as_echo "$as_me: failed program was:" >&5
  1989. sed 's/^/| /' conftest.$ac_ext >&5
  1990. ac_retval=1
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. as_fn_set_status $ac_retval
  1994. } # ac_fn_cxx_try_cpp
  1995. # ac_fn_cxx_try_link LINENO
  1996. # -------------------------
  1997. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1998. ac_fn_cxx_try_link ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. rm -f conftest.$ac_objext conftest$ac_exeext
  2002. if { { ac_try="$ac_link"
  2003. case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2008. $as_echo "$ac_try_echo"; } >&5
  2009. (eval "$ac_link") 2>conftest.err
  2010. ac_status=$?
  2011. if test -s conftest.err; then
  2012. grep -v '^ *+' conftest.err >conftest.er1
  2013. cat conftest.er1 >&5
  2014. mv -f conftest.er1 conftest.err
  2015. fi
  2016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2017. test $ac_status = 0; } && {
  2018. test -z "$ac_cxx_werror_flag" ||
  2019. test ! -s conftest.err
  2020. } && test -s conftest$ac_exeext && {
  2021. test "$cross_compiling" = yes ||
  2022. test -x conftest$ac_exeext
  2023. }; then :
  2024. ac_retval=0
  2025. else
  2026. $as_echo "$as_me: failed program was:" >&5
  2027. sed 's/^/| /' conftest.$ac_ext >&5
  2028. ac_retval=1
  2029. fi
  2030. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2031. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2032. # interfere with the next link command; also delete a directory that is
  2033. # left behind by Apple's compiler. We do this before executing the actions.
  2034. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2035. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2036. as_fn_set_status $ac_retval
  2037. } # ac_fn_cxx_try_link
  2038. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2039. # -------------------------------------------------------
  2040. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2041. # the include files in INCLUDES and setting the cache variable VAR
  2042. # accordingly.
  2043. ac_fn_c_check_header_mongrel ()
  2044. {
  2045. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2046. if eval \${$3+:} false; then :
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2048. $as_echo_n "checking for $2... " >&6; }
  2049. if eval \${$3+:} false; then :
  2050. $as_echo_n "(cached) " >&6
  2051. fi
  2052. eval ac_res=\$$3
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2054. $as_echo "$ac_res" >&6; }
  2055. else
  2056. # Is the header compilable?
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2058. $as_echo_n "checking $2 usability... " >&6; }
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. #include <$2>
  2063. _ACEOF
  2064. if ac_fn_c_try_compile "$LINENO"; then :
  2065. ac_header_compiler=yes
  2066. else
  2067. ac_header_compiler=no
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2071. $as_echo "$ac_header_compiler" >&6; }
  2072. # Is the header present?
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2074. $as_echo_n "checking $2 presence... " >&6; }
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_c_try_cpp "$LINENO"; then :
  2080. ac_header_preproc=yes
  2081. else
  2082. ac_header_preproc=no
  2083. fi
  2084. rm -f conftest.err conftest.i conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2086. $as_echo "$ac_header_preproc" >&6; }
  2087. # So? What about this header?
  2088. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2089. yes:no: )
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2091. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2093. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2094. ;;
  2095. no:yes:* )
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2097. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2099. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2101. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2103. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2105. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2106. ;;
  2107. esac
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2109. $as_echo_n "checking for $2... " >&6; }
  2110. if eval \${$3+:} false; then :
  2111. $as_echo_n "(cached) " >&6
  2112. else
  2113. eval "$3=\$ac_header_compiler"
  2114. fi
  2115. eval ac_res=\$$3
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2117. $as_echo "$ac_res" >&6; }
  2118. fi
  2119. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2120. } # ac_fn_c_check_header_mongrel
  2121. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2122. # -------------------------------------------
  2123. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2124. # variable VAR accordingly.
  2125. ac_fn_c_check_type ()
  2126. {
  2127. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2129. $as_echo_n "checking for $2... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=no"
  2134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2135. /* end confdefs.h. */
  2136. $4
  2137. int
  2138. main ()
  2139. {
  2140. if (sizeof ($2))
  2141. return 0;
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_c_try_compile "$LINENO"; then :
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. if (sizeof (($2)))
  2154. return 0;
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_c_try_compile "$LINENO"; then :
  2160. else
  2161. eval "$3=yes"
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. fi
  2165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2171. } # ac_fn_c_check_type
  2172. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2173. # ----------------------------------------------------
  2174. # Tries to find if the field MEMBER exists in type AGGR, after including
  2175. # INCLUDES, setting cache variable VAR accordingly.
  2176. ac_fn_c_check_member ()
  2177. {
  2178. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2180. $as_echo_n "checking for $2.$3... " >&6; }
  2181. if eval \${$4+:} false; then :
  2182. $as_echo_n "(cached) " >&6
  2183. else
  2184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2185. /* end confdefs.h. */
  2186. $5
  2187. int
  2188. main ()
  2189. {
  2190. static $2 ac_aggr;
  2191. if (ac_aggr.$3)
  2192. return 0;
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. if ac_fn_c_try_compile "$LINENO"; then :
  2198. eval "$4=yes"
  2199. else
  2200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2201. /* end confdefs.h. */
  2202. $5
  2203. int
  2204. main ()
  2205. {
  2206. static $2 ac_aggr;
  2207. if (sizeof ac_aggr.$3)
  2208. return 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_c_try_compile "$LINENO"; then :
  2214. eval "$4=yes"
  2215. else
  2216. eval "$4=no"
  2217. fi
  2218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2219. fi
  2220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2221. fi
  2222. eval ac_res=\$$4
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2224. $as_echo "$ac_res" >&6; }
  2225. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2226. } # ac_fn_c_check_member
  2227. cat >config.log <<_ACEOF
  2228. This file contains any messages produced by compilers while
  2229. running configure, to aid debugging if configure makes a mistake.
  2230. It was created by $as_me, which was
  2231. generated by GNU Autoconf 2.69. Invocation command line was
  2232. $ $0 $@
  2233. _ACEOF
  2234. exec 5>>config.log
  2235. {
  2236. cat <<_ASUNAME
  2237. ## --------- ##
  2238. ## Platform. ##
  2239. ## --------- ##
  2240. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2241. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2242. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2243. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2244. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2245. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2246. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2247. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2248. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2249. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2250. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2251. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2252. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2253. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2254. _ASUNAME
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. test -z "$as_dir" && as_dir=.
  2260. $as_echo "PATH: $as_dir"
  2261. done
  2262. IFS=$as_save_IFS
  2263. } >&5
  2264. cat >&5 <<_ACEOF
  2265. ## ----------- ##
  2266. ## Core tests. ##
  2267. ## ----------- ##
  2268. _ACEOF
  2269. # Keep a trace of the command line.
  2270. # Strip out --no-create and --no-recursion so they do not pile up.
  2271. # Strip out --silent because we don't want to record it for future runs.
  2272. # Also quote any args containing shell meta-characters.
  2273. # Make two passes to allow for proper duplicate-argument suppression.
  2274. ac_configure_args=
  2275. ac_configure_args0=
  2276. ac_configure_args1=
  2277. ac_must_keep_next=false
  2278. for ac_pass in 1 2
  2279. do
  2280. for ac_arg
  2281. do
  2282. case $ac_arg in
  2283. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2284. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2285. | -silent | --silent | --silen | --sile | --sil)
  2286. continue ;;
  2287. *\'*)
  2288. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2289. esac
  2290. case $ac_pass in
  2291. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2292. 2)
  2293. as_fn_append ac_configure_args1 " '$ac_arg'"
  2294. if test $ac_must_keep_next = true; then
  2295. ac_must_keep_next=false # Got value, back to normal.
  2296. else
  2297. case $ac_arg in
  2298. *=* | --config-cache | -C | -disable-* | --disable-* \
  2299. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2300. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2301. | -with-* | --with-* | -without-* | --without-* | --x)
  2302. case "$ac_configure_args0 " in
  2303. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2304. esac
  2305. ;;
  2306. -* ) ac_must_keep_next=true ;;
  2307. esac
  2308. fi
  2309. as_fn_append ac_configure_args " '$ac_arg'"
  2310. ;;
  2311. esac
  2312. done
  2313. done
  2314. { ac_configure_args0=; unset ac_configure_args0;}
  2315. { ac_configure_args1=; unset ac_configure_args1;}
  2316. # When interrupted or exit'd, cleanup temporary files, and complete
  2317. # config.log. We remove comments because anyway the quotes in there
  2318. # would cause problems or look ugly.
  2319. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2320. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2321. trap 'exit_status=$?
  2322. # Save into config.log some information that might help in debugging.
  2323. {
  2324. echo
  2325. $as_echo "## ---------------- ##
  2326. ## Cache variables. ##
  2327. ## ---------------- ##"
  2328. echo
  2329. # The following way of writing the cache mishandles newlines in values,
  2330. (
  2331. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2332. eval ac_val=\$$ac_var
  2333. case $ac_val in #(
  2334. *${as_nl}*)
  2335. case $ac_var in #(
  2336. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2337. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2338. esac
  2339. case $ac_var in #(
  2340. _ | IFS | as_nl) ;; #(
  2341. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2342. *) { eval $ac_var=; unset $ac_var;} ;;
  2343. esac ;;
  2344. esac
  2345. done
  2346. (set) 2>&1 |
  2347. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2348. *${as_nl}ac_space=\ *)
  2349. sed -n \
  2350. "s/'\''/'\''\\\\'\'''\''/g;
  2351. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2352. ;; #(
  2353. *)
  2354. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2355. ;;
  2356. esac |
  2357. sort
  2358. )
  2359. echo
  2360. $as_echo "## ----------------- ##
  2361. ## Output variables. ##
  2362. ## ----------------- ##"
  2363. echo
  2364. for ac_var in $ac_subst_vars
  2365. do
  2366. eval ac_val=\$$ac_var
  2367. case $ac_val in
  2368. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2369. esac
  2370. $as_echo "$ac_var='\''$ac_val'\''"
  2371. done | sort
  2372. echo
  2373. if test -n "$ac_subst_files"; then
  2374. $as_echo "## ------------------- ##
  2375. ## File substitutions. ##
  2376. ## ------------------- ##"
  2377. echo
  2378. for ac_var in $ac_subst_files
  2379. do
  2380. eval ac_val=\$$ac_var
  2381. case $ac_val in
  2382. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2383. esac
  2384. $as_echo "$ac_var='\''$ac_val'\''"
  2385. done | sort
  2386. echo
  2387. fi
  2388. if test -s confdefs.h; then
  2389. $as_echo "## ----------- ##
  2390. ## confdefs.h. ##
  2391. ## ----------- ##"
  2392. echo
  2393. cat confdefs.h
  2394. echo
  2395. fi
  2396. test "$ac_signal" != 0 &&
  2397. $as_echo "$as_me: caught signal $ac_signal"
  2398. $as_echo "$as_me: exit $exit_status"
  2399. } >&5
  2400. rm -f core *.core core.conftest.* &&
  2401. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2402. exit $exit_status
  2403. ' 0
  2404. for ac_signal in 1 2 13 15; do
  2405. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2406. done
  2407. ac_signal=0
  2408. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2409. rm -f -r conftest* confdefs.h
  2410. $as_echo "/* confdefs.h */" > confdefs.h
  2411. # Predefined preprocessor variables.
  2412. cat >>confdefs.h <<_ACEOF
  2413. #define PACKAGE_NAME "$PACKAGE_NAME"
  2414. _ACEOF
  2415. cat >>confdefs.h <<_ACEOF
  2416. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2417. _ACEOF
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2420. _ACEOF
  2421. cat >>confdefs.h <<_ACEOF
  2422. #define PACKAGE_STRING "$PACKAGE_STRING"
  2423. _ACEOF
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_URL "$PACKAGE_URL"
  2429. _ACEOF
  2430. # Let the site file select an alternate cache file if it wants to.
  2431. # Prefer an explicitly selected file to automatically selected ones.
  2432. ac_site_file1=NONE
  2433. ac_site_file2=NONE
  2434. if test -n "$CONFIG_SITE"; then
  2435. # We do not want a PATH search for config.site.
  2436. case $CONFIG_SITE in #((
  2437. -*) ac_site_file1=./$CONFIG_SITE;;
  2438. */*) ac_site_file1=$CONFIG_SITE;;
  2439. *) ac_site_file1=./$CONFIG_SITE;;
  2440. esac
  2441. elif test "x$prefix" != xNONE; then
  2442. ac_site_file1=$prefix/share/config.site
  2443. ac_site_file2=$prefix/etc/config.site
  2444. else
  2445. ac_site_file1=$ac_default_prefix/share/config.site
  2446. ac_site_file2=$ac_default_prefix/etc/config.site
  2447. fi
  2448. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2449. do
  2450. test "x$ac_site_file" = xNONE && continue
  2451. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2453. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2454. sed 's/^/| /' "$ac_site_file" >&5
  2455. . "$ac_site_file" \
  2456. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2457. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2458. as_fn_error $? "failed to load site script $ac_site_file
  2459. See \`config.log' for more details" "$LINENO" 5; }
  2460. fi
  2461. done
  2462. if test -r "$cache_file"; then
  2463. # Some versions of bash will fail to source /dev/null (special files
  2464. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2465. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2467. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2468. case $cache_file in
  2469. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2470. *) . "./$cache_file";;
  2471. esac
  2472. fi
  2473. else
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2475. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2476. >$cache_file
  2477. fi
  2478. # Check that the precious variables saved in the cache have kept the same
  2479. # value.
  2480. ac_cache_corrupted=false
  2481. for ac_var in $ac_precious_vars; do
  2482. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2483. eval ac_new_set=\$ac_env_${ac_var}_set
  2484. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2485. eval ac_new_val=\$ac_env_${ac_var}_value
  2486. case $ac_old_set,$ac_new_set in
  2487. set,)
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2489. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2490. ac_cache_corrupted=: ;;
  2491. ,set)
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2493. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2494. ac_cache_corrupted=: ;;
  2495. ,);;
  2496. *)
  2497. if test "x$ac_old_val" != "x$ac_new_val"; then
  2498. # differences in whitespace do not lead to failure.
  2499. ac_old_val_w=`echo x $ac_old_val`
  2500. ac_new_val_w=`echo x $ac_new_val`
  2501. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2503. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2504. ac_cache_corrupted=:
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2507. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2508. eval $ac_var=\$ac_old_val
  2509. fi
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2511. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2513. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2514. fi;;
  2515. esac
  2516. # Pass precious variables to config.status.
  2517. if test "$ac_new_set" = set; then
  2518. case $ac_new_val in
  2519. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2520. *) ac_arg=$ac_var=$ac_new_val ;;
  2521. esac
  2522. case " $ac_configure_args " in
  2523. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2524. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2525. esac
  2526. fi
  2527. done
  2528. if $ac_cache_corrupted; then
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2532. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2533. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2534. fi
  2535. ## -------------------- ##
  2536. ## Main body of script. ##
  2537. ## -------------------- ##
  2538. ac_ext=c
  2539. ac_cpp='$CPP $CPPFLAGS'
  2540. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2541. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2542. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2543. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2544. ac_aux_dir=
  2545. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2546. if test -f "$ac_dir/install-sh"; then
  2547. ac_aux_dir=$ac_dir
  2548. ac_install_sh="$ac_aux_dir/install-sh -c"
  2549. break
  2550. elif test -f "$ac_dir/install.sh"; then
  2551. ac_aux_dir=$ac_dir
  2552. ac_install_sh="$ac_aux_dir/install.sh -c"
  2553. break
  2554. elif test -f "$ac_dir/shtool"; then
  2555. ac_aux_dir=$ac_dir
  2556. ac_install_sh="$ac_aux_dir/shtool install -c"
  2557. break
  2558. fi
  2559. done
  2560. if test -z "$ac_aux_dir"; then
  2561. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2562. fi
  2563. # These three variables are undocumented and unsupported,
  2564. # and are intended to be withdrawn in a future Autoconf release.
  2565. # They can cause serious problems if a builder's source tree is in a directory
  2566. # whose full name contains unusual characters.
  2567. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2568. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2569. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2570. orig_CFLAGS="$CFLAGS"
  2571. #
  2572. # Making releases:
  2573. # Edit include/SDL_version.h and change the version, then:
  2574. # SDL_MICRO_VERSION += 1;
  2575. # SDL_INTERFACE_AGE += 1;
  2576. # SDL_BINARY_AGE += 1;
  2577. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2578. # if backwards compatibility has been broken,
  2579. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2580. #
  2581. SDL_MAJOR_VERSION=2
  2582. SDL_MINOR_VERSION=0
  2583. SDL_MICRO_VERSION=9
  2584. SDL_INTERFACE_AGE=0
  2585. SDL_BINARY_AGE=9
  2586. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2587. # libtool versioning
  2588. case `pwd` in
  2589. *\ * | *\ *)
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2591. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2592. esac
  2593. macro_version='2.4.2'
  2594. macro_revision='1.3337'
  2595. ltmain="$ac_aux_dir/ltmain.sh"
  2596. # Make sure we can run config.sub.
  2597. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2598. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2600. $as_echo_n "checking build system type... " >&6; }
  2601. if ${ac_cv_build+:} false; then :
  2602. $as_echo_n "(cached) " >&6
  2603. else
  2604. ac_build_alias=$build_alias
  2605. test "x$ac_build_alias" = x &&
  2606. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2607. test "x$ac_build_alias" = x &&
  2608. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2609. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2610. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2611. fi
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2613. $as_echo "$ac_cv_build" >&6; }
  2614. case $ac_cv_build in
  2615. *-*-*) ;;
  2616. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2617. esac
  2618. build=$ac_cv_build
  2619. ac_save_IFS=$IFS; IFS='-'
  2620. set x $ac_cv_build
  2621. shift
  2622. build_cpu=$1
  2623. build_vendor=$2
  2624. shift; shift
  2625. # Remember, the first character of IFS is used to create $*,
  2626. # except with old shells:
  2627. build_os=$*
  2628. IFS=$ac_save_IFS
  2629. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2631. $as_echo_n "checking host system type... " >&6; }
  2632. if ${ac_cv_host+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test "x$host_alias" = x; then
  2636. ac_cv_host=$ac_cv_build
  2637. else
  2638. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2639. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2640. fi
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2643. $as_echo "$ac_cv_host" >&6; }
  2644. case $ac_cv_host in
  2645. *-*-*) ;;
  2646. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2647. esac
  2648. host=$ac_cv_host
  2649. ac_save_IFS=$IFS; IFS='-'
  2650. set x $ac_cv_host
  2651. shift
  2652. host_cpu=$1
  2653. host_vendor=$2
  2654. shift; shift
  2655. # Remember, the first character of IFS is used to create $*,
  2656. # except with old shells:
  2657. host_os=$*
  2658. IFS=$ac_save_IFS
  2659. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2660. # Backslashify metacharacters that are still active within
  2661. # double-quoted strings.
  2662. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2663. # Same as above, but do not quote variable references.
  2664. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2665. # Sed substitution to delay expansion of an escaped shell variable in a
  2666. # double_quote_subst'ed string.
  2667. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2668. # Sed substitution to delay expansion of an escaped single quote.
  2669. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2670. # Sed substitution to avoid accidental globbing in evaled expressions
  2671. no_glob_subst='s/\*/\\\*/g'
  2672. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2673. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2674. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2676. $as_echo_n "checking how to print strings... " >&6; }
  2677. # Test print first, because it will be a builtin if present.
  2678. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2679. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2680. ECHO='print -r --'
  2681. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2682. ECHO='printf %s\n'
  2683. else
  2684. # Use this function as a fallback that always works.
  2685. func_fallback_echo ()
  2686. {
  2687. eval 'cat <<_LTECHO_EOF
  2688. $1
  2689. _LTECHO_EOF'
  2690. }
  2691. ECHO='func_fallback_echo'
  2692. fi
  2693. # func_echo_all arg...
  2694. # Invoke $ECHO with all args, space-separated.
  2695. func_echo_all ()
  2696. {
  2697. $ECHO ""
  2698. }
  2699. case "$ECHO" in
  2700. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2701. $as_echo "printf" >&6; } ;;
  2702. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2703. $as_echo "print -r" >&6; } ;;
  2704. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2705. $as_echo "cat" >&6; } ;;
  2706. esac
  2707. ac_ext=c
  2708. ac_cpp='$CPP $CPPFLAGS'
  2709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2712. if test -n "$ac_tool_prefix"; then
  2713. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2714. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if ${ac_cv_prog_CC+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$CC"; then
  2721. ac_cv_prog_CC="$CC" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. CC=$ac_cv_prog_CC
  2740. if test -n "$CC"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2742. $as_echo "$CC" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. fi
  2748. if test -z "$ac_cv_prog_CC"; then
  2749. ac_ct_CC=$CC
  2750. # Extract the first word of "gcc", so it can be a program name with args.
  2751. set dummy gcc; ac_word=$2
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2753. $as_echo_n "checking for $ac_word... " >&6; }
  2754. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. if test -n "$ac_ct_CC"; then
  2758. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2759. else
  2760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2761. for as_dir in $PATH
  2762. do
  2763. IFS=$as_save_IFS
  2764. test -z "$as_dir" && as_dir=.
  2765. for ac_exec_ext in '' $ac_executable_extensions; do
  2766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2767. ac_cv_prog_ac_ct_CC="gcc"
  2768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2769. break 2
  2770. fi
  2771. done
  2772. done
  2773. IFS=$as_save_IFS
  2774. fi
  2775. fi
  2776. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2777. if test -n "$ac_ct_CC"; then
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2779. $as_echo "$ac_ct_CC" >&6; }
  2780. else
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2782. $as_echo "no" >&6; }
  2783. fi
  2784. if test "x$ac_ct_CC" = x; then
  2785. CC=""
  2786. else
  2787. case $cross_compiling:$ac_tool_warned in
  2788. yes:)
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2791. ac_tool_warned=yes ;;
  2792. esac
  2793. CC=$ac_ct_CC
  2794. fi
  2795. else
  2796. CC="$ac_cv_prog_CC"
  2797. fi
  2798. if test -z "$CC"; then
  2799. if test -n "$ac_tool_prefix"; then
  2800. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2801. set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$CC"; then
  2808. ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
  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. CC=$ac_cv_prog_CC
  2827. if test -n "$CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2829. $as_echo "$CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. fi
  2835. fi
  2836. if test -z "$CC"; then
  2837. # Extract the first word of "cc", so it can be a program name with args.
  2838. set dummy cc; ac_word=$2
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2840. $as_echo_n "checking for $ac_word... " >&6; }
  2841. if ${ac_cv_prog_CC+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. if test -n "$CC"; then
  2845. ac_cv_prog_CC="$CC" # Let the user override the test.
  2846. else
  2847. ac_prog_rejected=no
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. test -z "$as_dir" && as_dir=.
  2853. for ac_exec_ext in '' $ac_executable_extensions; do
  2854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2855. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2856. ac_prog_rejected=yes
  2857. continue
  2858. fi
  2859. ac_cv_prog_CC="cc"
  2860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2861. break 2
  2862. fi
  2863. done
  2864. done
  2865. IFS=$as_save_IFS
  2866. if test $ac_prog_rejected = yes; then
  2867. # We found a bogon in the path, so make sure we never use it.
  2868. set dummy $ac_cv_prog_CC
  2869. shift
  2870. if test $# != 0; then
  2871. # We chose a different compiler from the bogus one.
  2872. # However, it has the same basename, so the bogon will be chosen
  2873. # first if we set CC to just the basename; use the full file name.
  2874. shift
  2875. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2876. fi
  2877. fi
  2878. fi
  2879. fi
  2880. CC=$ac_cv_prog_CC
  2881. if test -n "$CC"; then
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2883. $as_echo "$CC" >&6; }
  2884. else
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. fi
  2888. fi
  2889. if test -z "$CC"; then
  2890. if test -n "$ac_tool_prefix"; then
  2891. for ac_prog in cl.exe
  2892. do
  2893. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2894. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2896. $as_echo_n "checking for $ac_word... " >&6; }
  2897. if ${ac_cv_prog_CC+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. if test -n "$CC"; then
  2901. ac_cv_prog_CC="$CC" # Let the user override the test.
  2902. else
  2903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2904. for as_dir in $PATH
  2905. do
  2906. IFS=$as_save_IFS
  2907. test -z "$as_dir" && as_dir=.
  2908. for ac_exec_ext in '' $ac_executable_extensions; do
  2909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2910. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2912. break 2
  2913. fi
  2914. done
  2915. done
  2916. IFS=$as_save_IFS
  2917. fi
  2918. fi
  2919. CC=$ac_cv_prog_CC
  2920. if test -n "$CC"; then
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2922. $as_echo "$CC" >&6; }
  2923. else
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2925. $as_echo "no" >&6; }
  2926. fi
  2927. test -n "$CC" && break
  2928. done
  2929. fi
  2930. if test -z "$CC"; then
  2931. ac_ct_CC=$CC
  2932. for ac_prog in cl.exe
  2933. do
  2934. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2935. set dummy $ac_prog; ac_word=$2
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2937. $as_echo_n "checking for $ac_word... " >&6; }
  2938. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2939. $as_echo_n "(cached) " >&6
  2940. else
  2941. if test -n "$ac_ct_CC"; then
  2942. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2943. else
  2944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2945. for as_dir in $PATH
  2946. do
  2947. IFS=$as_save_IFS
  2948. test -z "$as_dir" && as_dir=.
  2949. for ac_exec_ext in '' $ac_executable_extensions; do
  2950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2951. ac_cv_prog_ac_ct_CC="$ac_prog"
  2952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2953. break 2
  2954. fi
  2955. done
  2956. done
  2957. IFS=$as_save_IFS
  2958. fi
  2959. fi
  2960. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2961. if test -n "$ac_ct_CC"; then
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2963. $as_echo "$ac_ct_CC" >&6; }
  2964. else
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2966. $as_echo "no" >&6; }
  2967. fi
  2968. test -n "$ac_ct_CC" && break
  2969. done
  2970. if test "x$ac_ct_CC" = x; then
  2971. CC=""
  2972. else
  2973. case $cross_compiling:$ac_tool_warned in
  2974. yes:)
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2977. ac_tool_warned=yes ;;
  2978. esac
  2979. CC=$ac_ct_CC
  2980. fi
  2981. fi
  2982. fi
  2983. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2985. as_fn_error $? "no acceptable C compiler found in \$PATH
  2986. See \`config.log' for more details" "$LINENO" 5; }
  2987. # Provide some information about the compiler.
  2988. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2989. set X $ac_compile
  2990. ac_compiler=$2
  2991. for ac_option in --version -v -V -qversion; do
  2992. { { ac_try="$ac_compiler $ac_option >&5"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo"; } >&5
  2999. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3000. ac_status=$?
  3001. if test -s conftest.err; then
  3002. sed '10a\
  3003. ... rest of stderr output deleted ...
  3004. 10q' conftest.err >conftest.er1
  3005. cat conftest.er1 >&5
  3006. fi
  3007. rm -f conftest.er1 conftest.err
  3008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3009. test $ac_status = 0; }
  3010. done
  3011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3012. /* end confdefs.h. */
  3013. int
  3014. main ()
  3015. {
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. ac_clean_files_save=$ac_clean_files
  3021. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3022. # Try to create an executable without -o first, disregard a.out.
  3023. # It will help us diagnose broken compilers, and finding out an intuition
  3024. # of exeext.
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3026. $as_echo_n "checking whether the C compiler works... " >&6; }
  3027. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3028. # The possible output files:
  3029. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3030. ac_rmfiles=
  3031. for ac_file in $ac_files
  3032. do
  3033. case $ac_file in
  3034. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3035. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3036. esac
  3037. done
  3038. rm -f $ac_rmfiles
  3039. if { { ac_try="$ac_link_default"
  3040. case "(($ac_try" in
  3041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3042. *) ac_try_echo=$ac_try;;
  3043. esac
  3044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3045. $as_echo "$ac_try_echo"; } >&5
  3046. (eval "$ac_link_default") 2>&5
  3047. ac_status=$?
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3049. test $ac_status = 0; }; then :
  3050. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3051. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3052. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3053. # so that the user can short-circuit this test for compilers unknown to
  3054. # Autoconf.
  3055. for ac_file in $ac_files ''
  3056. do
  3057. test -f "$ac_file" || continue
  3058. case $ac_file in
  3059. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3060. ;;
  3061. [ab].out )
  3062. # We found the default executable, but exeext='' is most
  3063. # certainly right.
  3064. break;;
  3065. *.* )
  3066. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3067. then :; else
  3068. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3069. fi
  3070. # We set ac_cv_exeext here because the later test for it is not
  3071. # safe: cross compilers may not add the suffix if given an `-o'
  3072. # argument, so we may need to know it at that point already.
  3073. # Even if this section looks crufty: it has the advantage of
  3074. # actually working.
  3075. break;;
  3076. * )
  3077. break;;
  3078. esac
  3079. done
  3080. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3081. else
  3082. ac_file=''
  3083. fi
  3084. if test -z "$ac_file"; then :
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. $as_echo "$as_me: failed program was:" >&5
  3088. sed 's/^/| /' conftest.$ac_ext >&5
  3089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3091. as_fn_error 77 "C compiler cannot create executables
  3092. See \`config.log' for more details" "$LINENO" 5; }
  3093. else
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3095. $as_echo "yes" >&6; }
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3098. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3100. $as_echo "$ac_file" >&6; }
  3101. ac_exeext=$ac_cv_exeext
  3102. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3103. ac_clean_files=$ac_clean_files_save
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3105. $as_echo_n "checking for suffix of executables... " >&6; }
  3106. if { { ac_try="$ac_link"
  3107. case "(($ac_try" in
  3108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3109. *) ac_try_echo=$ac_try;;
  3110. esac
  3111. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3112. $as_echo "$ac_try_echo"; } >&5
  3113. (eval "$ac_link") 2>&5
  3114. ac_status=$?
  3115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3116. test $ac_status = 0; }; then :
  3117. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3118. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3119. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3120. # `rm'.
  3121. for ac_file in conftest.exe conftest conftest.*; do
  3122. test -f "$ac_file" || continue
  3123. case $ac_file in
  3124. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3125. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3126. break;;
  3127. * ) break;;
  3128. esac
  3129. done
  3130. else
  3131. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3133. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3134. See \`config.log' for more details" "$LINENO" 5; }
  3135. fi
  3136. rm -f conftest conftest$ac_cv_exeext
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3138. $as_echo "$ac_cv_exeext" >&6; }
  3139. rm -f conftest.$ac_ext
  3140. EXEEXT=$ac_cv_exeext
  3141. ac_exeext=$EXEEXT
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. #include <stdio.h>
  3145. int
  3146. main ()
  3147. {
  3148. FILE *f = fopen ("conftest.out", "w");
  3149. return ferror (f) || fclose (f) != 0;
  3150. ;
  3151. return 0;
  3152. }
  3153. _ACEOF
  3154. ac_clean_files="$ac_clean_files conftest.out"
  3155. # Check that the compiler produces executables we can run. If not, either
  3156. # the compiler is broken, or we cross compile.
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3158. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3159. if test "$cross_compiling" != yes; then
  3160. { { ac_try="$ac_link"
  3161. case "(($ac_try" in
  3162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3163. *) ac_try_echo=$ac_try;;
  3164. esac
  3165. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3166. $as_echo "$ac_try_echo"; } >&5
  3167. (eval "$ac_link") 2>&5
  3168. ac_status=$?
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3170. test $ac_status = 0; }
  3171. if { ac_try='./conftest$ac_cv_exeext'
  3172. { { case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo"; } >&5
  3178. (eval "$ac_try") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3181. test $ac_status = 0; }; }; then
  3182. cross_compiling=no
  3183. else
  3184. if test "$cross_compiling" = maybe; then
  3185. cross_compiling=yes
  3186. else
  3187. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3188. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3189. as_fn_error $? "cannot run C compiled programs.
  3190. If you meant to cross compile, use \`--host'.
  3191. See \`config.log' for more details" "$LINENO" 5; }
  3192. fi
  3193. fi
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3196. $as_echo "$cross_compiling" >&6; }
  3197. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3198. ac_clean_files=$ac_clean_files_save
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3200. $as_echo_n "checking for suffix of object files... " >&6; }
  3201. if ${ac_cv_objext+:} false; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. rm -f conftest.o conftest.obj
  3214. if { { ac_try="$ac_compile"
  3215. case "(($ac_try" in
  3216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3217. *) ac_try_echo=$ac_try;;
  3218. esac
  3219. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3220. $as_echo "$ac_try_echo"; } >&5
  3221. (eval "$ac_compile") 2>&5
  3222. ac_status=$?
  3223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3224. test $ac_status = 0; }; then :
  3225. for ac_file in conftest.o conftest.obj conftest.*; do
  3226. test -f "$ac_file" || continue;
  3227. case $ac_file in
  3228. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3229. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3230. break;;
  3231. esac
  3232. done
  3233. else
  3234. $as_echo "$as_me: failed program was:" >&5
  3235. sed 's/^/| /' conftest.$ac_ext >&5
  3236. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3238. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3239. See \`config.log' for more details" "$LINENO" 5; }
  3240. fi
  3241. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3244. $as_echo "$ac_cv_objext" >&6; }
  3245. OBJEXT=$ac_cv_objext
  3246. ac_objext=$OBJEXT
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3248. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3249. if ${ac_cv_c_compiler_gnu+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. int
  3255. main ()
  3256. {
  3257. #ifndef __GNUC__
  3258. choke me
  3259. #endif
  3260. ;
  3261. return 0;
  3262. }
  3263. _ACEOF
  3264. if ac_fn_c_try_compile "$LINENO"; then :
  3265. ac_compiler_gnu=yes
  3266. else
  3267. ac_compiler_gnu=no
  3268. fi
  3269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3270. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3271. fi
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3273. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3274. if test $ac_compiler_gnu = yes; then
  3275. GCC=yes
  3276. else
  3277. GCC=
  3278. fi
  3279. ac_test_CFLAGS=${CFLAGS+set}
  3280. ac_save_CFLAGS=$CFLAGS
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3282. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3283. if ${ac_cv_prog_cc_g+:} false; then :
  3284. $as_echo_n "(cached) " >&6
  3285. else
  3286. ac_save_c_werror_flag=$ac_c_werror_flag
  3287. ac_c_werror_flag=yes
  3288. ac_cv_prog_cc_g=no
  3289. CFLAGS="-g"
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. int
  3293. main ()
  3294. {
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. if ac_fn_c_try_compile "$LINENO"; then :
  3300. ac_cv_prog_cc_g=yes
  3301. else
  3302. CFLAGS=""
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. int
  3306. main ()
  3307. {
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. if ac_fn_c_try_compile "$LINENO"; then :
  3313. else
  3314. ac_c_werror_flag=$ac_save_c_werror_flag
  3315. CFLAGS="-g"
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. if ac_fn_c_try_compile "$LINENO"; then :
  3326. ac_cv_prog_cc_g=yes
  3327. fi
  3328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3329. fi
  3330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3331. fi
  3332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3333. ac_c_werror_flag=$ac_save_c_werror_flag
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3336. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3337. if test "$ac_test_CFLAGS" = set; then
  3338. CFLAGS=$ac_save_CFLAGS
  3339. elif test $ac_cv_prog_cc_g = yes; then
  3340. if test "$GCC" = yes; then
  3341. CFLAGS="-g -O2"
  3342. else
  3343. CFLAGS="-g"
  3344. fi
  3345. else
  3346. if test "$GCC" = yes; then
  3347. CFLAGS="-O2"
  3348. else
  3349. CFLAGS=
  3350. fi
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3353. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3354. if ${ac_cv_prog_cc_c89+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. ac_cv_prog_cc_c89=no
  3358. ac_save_CC=$CC
  3359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3360. /* end confdefs.h. */
  3361. #include <stdarg.h>
  3362. #include <stdio.h>
  3363. struct stat;
  3364. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3365. struct buf { int x; };
  3366. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3367. static char *e (p, i)
  3368. char **p;
  3369. int i;
  3370. {
  3371. return p[i];
  3372. }
  3373. static char *f (char * (*g) (char **, int), char **p, ...)
  3374. {
  3375. char *s;
  3376. va_list v;
  3377. va_start (v,p);
  3378. s = g (p, va_arg (v,int));
  3379. va_end (v);
  3380. return s;
  3381. }
  3382. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3383. function prototypes and stuff, but not '\xHH' hex character constants.
  3384. These don't provoke an error unfortunately, instead are silently treated
  3385. as 'x'. The following induces an error, until -std is added to get
  3386. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3387. array size at least. It's necessary to write '\x00'==0 to get something
  3388. that's true only with -std. */
  3389. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3390. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3391. inside strings and character constants. */
  3392. #define FOO(x) 'x'
  3393. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3394. int test (int i, double x);
  3395. struct s1 {int (*f) (int a);};
  3396. struct s2 {int (*f) (double a);};
  3397. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3398. int argc;
  3399. char **argv;
  3400. int
  3401. main ()
  3402. {
  3403. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3404. ;
  3405. return 0;
  3406. }
  3407. _ACEOF
  3408. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3409. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3410. do
  3411. CC="$ac_save_CC $ac_arg"
  3412. if ac_fn_c_try_compile "$LINENO"; then :
  3413. ac_cv_prog_cc_c89=$ac_arg
  3414. fi
  3415. rm -f core conftest.err conftest.$ac_objext
  3416. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3417. done
  3418. rm -f conftest.$ac_ext
  3419. CC=$ac_save_CC
  3420. fi
  3421. # AC_CACHE_VAL
  3422. case "x$ac_cv_prog_cc_c89" in
  3423. x)
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3425. $as_echo "none needed" >&6; } ;;
  3426. xno)
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3428. $as_echo "unsupported" >&6; } ;;
  3429. *)
  3430. CC="$CC $ac_cv_prog_cc_c89"
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3432. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3433. esac
  3434. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3435. fi
  3436. ac_ext=c
  3437. ac_cpp='$CPP $CPPFLAGS'
  3438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3442. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3443. if ${ac_cv_path_SED+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3447. for ac_i in 1 2 3 4 5 6 7; do
  3448. ac_script="$ac_script$as_nl$ac_script"
  3449. done
  3450. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3451. { ac_script=; unset ac_script;}
  3452. if test -z "$SED"; then
  3453. ac_path_SED_found=false
  3454. # Loop through the user's path and test for each of PROGNAME-LIST
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. test -z "$as_dir" && as_dir=.
  3460. for ac_prog in sed gsed; do
  3461. for ac_exec_ext in '' $ac_executable_extensions; do
  3462. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3463. as_fn_executable_p "$ac_path_SED" || continue
  3464. # Check for GNU ac_path_SED and select it if it is found.
  3465. # Check for GNU $ac_path_SED
  3466. case `"$ac_path_SED" --version 2>&1` in
  3467. *GNU*)
  3468. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3469. *)
  3470. ac_count=0
  3471. $as_echo_n 0123456789 >"conftest.in"
  3472. while :
  3473. do
  3474. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3475. mv "conftest.tmp" "conftest.in"
  3476. cp "conftest.in" "conftest.nl"
  3477. $as_echo '' >> "conftest.nl"
  3478. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3479. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3480. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3481. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3482. # Best one so far, save it but keep looking for a better one
  3483. ac_cv_path_SED="$ac_path_SED"
  3484. ac_path_SED_max=$ac_count
  3485. fi
  3486. # 10*(2^10) chars as input seems more than enough
  3487. test $ac_count -gt 10 && break
  3488. done
  3489. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3490. esac
  3491. $ac_path_SED_found && break 3
  3492. done
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. if test -z "$ac_cv_path_SED"; then
  3497. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3498. fi
  3499. else
  3500. ac_cv_path_SED=$SED
  3501. fi
  3502. fi
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3504. $as_echo "$ac_cv_path_SED" >&6; }
  3505. SED="$ac_cv_path_SED"
  3506. rm -f conftest.sed
  3507. test -z "$SED" && SED=sed
  3508. Xsed="$SED -e 1s/^X//"
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3510. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3511. if ${ac_cv_path_GREP+:} false; then :
  3512. $as_echo_n "(cached) " >&6
  3513. else
  3514. if test -z "$GREP"; then
  3515. ac_path_GREP_found=false
  3516. # Loop through the user's path and test for each of PROGNAME-LIST
  3517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3518. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3519. do
  3520. IFS=$as_save_IFS
  3521. test -z "$as_dir" && as_dir=.
  3522. for ac_prog in grep ggrep; do
  3523. for ac_exec_ext in '' $ac_executable_extensions; do
  3524. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3525. as_fn_executable_p "$ac_path_GREP" || continue
  3526. # Check for GNU ac_path_GREP and select it if it is found.
  3527. # Check for GNU $ac_path_GREP
  3528. case `"$ac_path_GREP" --version 2>&1` in
  3529. *GNU*)
  3530. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3531. *)
  3532. ac_count=0
  3533. $as_echo_n 0123456789 >"conftest.in"
  3534. while :
  3535. do
  3536. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3537. mv "conftest.tmp" "conftest.in"
  3538. cp "conftest.in" "conftest.nl"
  3539. $as_echo 'GREP' >> "conftest.nl"
  3540. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3541. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3542. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3543. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3544. # Best one so far, save it but keep looking for a better one
  3545. ac_cv_path_GREP="$ac_path_GREP"
  3546. ac_path_GREP_max=$ac_count
  3547. fi
  3548. # 10*(2^10) chars as input seems more than enough
  3549. test $ac_count -gt 10 && break
  3550. done
  3551. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3552. esac
  3553. $ac_path_GREP_found && break 3
  3554. done
  3555. done
  3556. done
  3557. IFS=$as_save_IFS
  3558. if test -z "$ac_cv_path_GREP"; then
  3559. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3560. fi
  3561. else
  3562. ac_cv_path_GREP=$GREP
  3563. fi
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3566. $as_echo "$ac_cv_path_GREP" >&6; }
  3567. GREP="$ac_cv_path_GREP"
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3569. $as_echo_n "checking for egrep... " >&6; }
  3570. if ${ac_cv_path_EGREP+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3574. then ac_cv_path_EGREP="$GREP -E"
  3575. else
  3576. if test -z "$EGREP"; then
  3577. ac_path_EGREP_found=false
  3578. # Loop through the user's path and test for each of PROGNAME-LIST
  3579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3580. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3581. do
  3582. IFS=$as_save_IFS
  3583. test -z "$as_dir" && as_dir=.
  3584. for ac_prog in egrep; do
  3585. for ac_exec_ext in '' $ac_executable_extensions; do
  3586. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3587. as_fn_executable_p "$ac_path_EGREP" || continue
  3588. # Check for GNU ac_path_EGREP and select it if it is found.
  3589. # Check for GNU $ac_path_EGREP
  3590. case `"$ac_path_EGREP" --version 2>&1` in
  3591. *GNU*)
  3592. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3593. *)
  3594. ac_count=0
  3595. $as_echo_n 0123456789 >"conftest.in"
  3596. while :
  3597. do
  3598. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3599. mv "conftest.tmp" "conftest.in"
  3600. cp "conftest.in" "conftest.nl"
  3601. $as_echo 'EGREP' >> "conftest.nl"
  3602. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3603. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3604. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3605. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3606. # Best one so far, save it but keep looking for a better one
  3607. ac_cv_path_EGREP="$ac_path_EGREP"
  3608. ac_path_EGREP_max=$ac_count
  3609. fi
  3610. # 10*(2^10) chars as input seems more than enough
  3611. test $ac_count -gt 10 && break
  3612. done
  3613. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3614. esac
  3615. $ac_path_EGREP_found && break 3
  3616. done
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. if test -z "$ac_cv_path_EGREP"; then
  3621. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3622. fi
  3623. else
  3624. ac_cv_path_EGREP=$EGREP
  3625. fi
  3626. fi
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3629. $as_echo "$ac_cv_path_EGREP" >&6; }
  3630. EGREP="$ac_cv_path_EGREP"
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3632. $as_echo_n "checking for fgrep... " >&6; }
  3633. if ${ac_cv_path_FGREP+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3637. then ac_cv_path_FGREP="$GREP -F"
  3638. else
  3639. if test -z "$FGREP"; then
  3640. ac_path_FGREP_found=false
  3641. # Loop through the user's path and test for each of PROGNAME-LIST
  3642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3644. do
  3645. IFS=$as_save_IFS
  3646. test -z "$as_dir" && as_dir=.
  3647. for ac_prog in fgrep; do
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3650. as_fn_executable_p "$ac_path_FGREP" || continue
  3651. # Check for GNU ac_path_FGREP and select it if it is found.
  3652. # Check for GNU $ac_path_FGREP
  3653. case `"$ac_path_FGREP" --version 2>&1` in
  3654. *GNU*)
  3655. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3656. *)
  3657. ac_count=0
  3658. $as_echo_n 0123456789 >"conftest.in"
  3659. while :
  3660. do
  3661. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3662. mv "conftest.tmp" "conftest.in"
  3663. cp "conftest.in" "conftest.nl"
  3664. $as_echo 'FGREP' >> "conftest.nl"
  3665. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3666. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3667. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3668. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3669. # Best one so far, save it but keep looking for a better one
  3670. ac_cv_path_FGREP="$ac_path_FGREP"
  3671. ac_path_FGREP_max=$ac_count
  3672. fi
  3673. # 10*(2^10) chars as input seems more than enough
  3674. test $ac_count -gt 10 && break
  3675. done
  3676. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3677. esac
  3678. $ac_path_FGREP_found && break 3
  3679. done
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. if test -z "$ac_cv_path_FGREP"; then
  3684. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3685. fi
  3686. else
  3687. ac_cv_path_FGREP=$FGREP
  3688. fi
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3692. $as_echo "$ac_cv_path_FGREP" >&6; }
  3693. FGREP="$ac_cv_path_FGREP"
  3694. test -z "$GREP" && GREP=grep
  3695. # Check whether --with-gnu-ld was given.
  3696. if test "${with_gnu_ld+set}" = set; then :
  3697. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3698. else
  3699. with_gnu_ld=no
  3700. fi
  3701. ac_prog=ld
  3702. if test "$GCC" = yes; then
  3703. # Check if gcc -print-prog-name=ld gives a path.
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3705. $as_echo_n "checking for ld used by $CC... " >&6; }
  3706. case $host in
  3707. *-*-mingw*)
  3708. # gcc leaves a trailing carriage return which upsets mingw
  3709. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3710. *)
  3711. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3712. esac
  3713. case $ac_prog in
  3714. # Accept absolute paths.
  3715. [\\/]* | ?:[\\/]*)
  3716. re_direlt='/[^/][^/]*/\.\./'
  3717. # Canonicalize the pathname of ld
  3718. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3719. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3720. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3721. done
  3722. test -z "$LD" && LD="$ac_prog"
  3723. ;;
  3724. "")
  3725. # If it fails, then pretend we aren't using GCC.
  3726. ac_prog=ld
  3727. ;;
  3728. *)
  3729. # If it is relative, then search for the first ld in PATH.
  3730. with_gnu_ld=unknown
  3731. ;;
  3732. esac
  3733. elif test "$with_gnu_ld" = yes; then
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3735. $as_echo_n "checking for GNU ld... " >&6; }
  3736. else
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3738. $as_echo_n "checking for non-GNU ld... " >&6; }
  3739. fi
  3740. if ${lt_cv_path_LD+:} false; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if test -z "$LD"; then
  3744. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3745. for ac_dir in $PATH; do
  3746. IFS="$lt_save_ifs"
  3747. test -z "$ac_dir" && ac_dir=.
  3748. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3749. lt_cv_path_LD="$ac_dir/$ac_prog"
  3750. # Check to see if the program is GNU ld. I'd rather use --version,
  3751. # but apparently some variants of GNU ld only accept -v.
  3752. # Break only if it was the GNU/non-GNU ld that we prefer.
  3753. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3754. *GNU* | *'with BFD'*)
  3755. test "$with_gnu_ld" != no && break
  3756. ;;
  3757. *)
  3758. test "$with_gnu_ld" != yes && break
  3759. ;;
  3760. esac
  3761. fi
  3762. done
  3763. IFS="$lt_save_ifs"
  3764. else
  3765. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3766. fi
  3767. fi
  3768. LD="$lt_cv_path_LD"
  3769. if test -n "$LD"; then
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3771. $as_echo "$LD" >&6; }
  3772. else
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3774. $as_echo "no" >&6; }
  3775. fi
  3776. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3778. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3779. if ${lt_cv_prog_gnu_ld+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3783. case `$LD -v 2>&1 </dev/null` in
  3784. *GNU* | *'with BFD'*)
  3785. lt_cv_prog_gnu_ld=yes
  3786. ;;
  3787. *)
  3788. lt_cv_prog_gnu_ld=no
  3789. ;;
  3790. esac
  3791. fi
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3793. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3794. with_gnu_ld=$lt_cv_prog_gnu_ld
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3796. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3797. if ${lt_cv_path_NM+:} false; then :
  3798. $as_echo_n "(cached) " >&6
  3799. else
  3800. if test -n "$NM"; then
  3801. # Let the user override the test.
  3802. lt_cv_path_NM="$NM"
  3803. else
  3804. lt_nm_to_check="${ac_tool_prefix}nm"
  3805. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3806. lt_nm_to_check="$lt_nm_to_check nm"
  3807. fi
  3808. for lt_tmp_nm in $lt_nm_to_check; do
  3809. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3810. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3811. IFS="$lt_save_ifs"
  3812. test -z "$ac_dir" && ac_dir=.
  3813. tmp_nm="$ac_dir/$lt_tmp_nm"
  3814. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3815. # Check to see if the nm accepts a BSD-compat flag.
  3816. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3817. # nm: unknown option "B" ignored
  3818. # Tru64's nm complains that /dev/null is an invalid object file
  3819. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3820. */dev/null* | *'Invalid file or object type'*)
  3821. lt_cv_path_NM="$tmp_nm -B"
  3822. break
  3823. ;;
  3824. *)
  3825. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3826. */dev/null*)
  3827. lt_cv_path_NM="$tmp_nm -p"
  3828. break
  3829. ;;
  3830. *)
  3831. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3832. continue # so that we can try to find one that supports BSD flags
  3833. ;;
  3834. esac
  3835. ;;
  3836. esac
  3837. fi
  3838. done
  3839. IFS="$lt_save_ifs"
  3840. done
  3841. : ${lt_cv_path_NM=no}
  3842. fi
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3845. $as_echo "$lt_cv_path_NM" >&6; }
  3846. if test "$lt_cv_path_NM" != "no"; then
  3847. NM="$lt_cv_path_NM"
  3848. else
  3849. # Didn't find any BSD compatible name lister, look for dumpbin.
  3850. if test -n "$DUMPBIN"; then :
  3851. # Let the user override the test.
  3852. else
  3853. if test -n "$ac_tool_prefix"; then
  3854. for ac_prog in dumpbin "link -dump"
  3855. do
  3856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3859. $as_echo_n "checking for $ac_word... " >&6; }
  3860. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. if test -n "$DUMPBIN"; then
  3864. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3865. else
  3866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3867. for as_dir in $PATH
  3868. do
  3869. IFS=$as_save_IFS
  3870. test -z "$as_dir" && as_dir=.
  3871. for ac_exec_ext in '' $ac_executable_extensions; do
  3872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3873. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3875. break 2
  3876. fi
  3877. done
  3878. done
  3879. IFS=$as_save_IFS
  3880. fi
  3881. fi
  3882. DUMPBIN=$ac_cv_prog_DUMPBIN
  3883. if test -n "$DUMPBIN"; then
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3885. $as_echo "$DUMPBIN" >&6; }
  3886. else
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3888. $as_echo "no" >&6; }
  3889. fi
  3890. test -n "$DUMPBIN" && break
  3891. done
  3892. fi
  3893. if test -z "$DUMPBIN"; then
  3894. ac_ct_DUMPBIN=$DUMPBIN
  3895. for ac_prog in dumpbin "link -dump"
  3896. do
  3897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3898. set dummy $ac_prog; ac_word=$2
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3900. $as_echo_n "checking for $ac_word... " >&6; }
  3901. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. if test -n "$ac_ct_DUMPBIN"; then
  3905. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3906. else
  3907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3908. for as_dir in $PATH
  3909. do
  3910. IFS=$as_save_IFS
  3911. test -z "$as_dir" && as_dir=.
  3912. for ac_exec_ext in '' $ac_executable_extensions; do
  3913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3914. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3916. break 2
  3917. fi
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. fi
  3922. fi
  3923. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3924. if test -n "$ac_ct_DUMPBIN"; then
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3926. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3927. else
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3929. $as_echo "no" >&6; }
  3930. fi
  3931. test -n "$ac_ct_DUMPBIN" && break
  3932. done
  3933. if test "x$ac_ct_DUMPBIN" = x; then
  3934. DUMPBIN=":"
  3935. else
  3936. case $cross_compiling:$ac_tool_warned in
  3937. yes:)
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3940. ac_tool_warned=yes ;;
  3941. esac
  3942. DUMPBIN=$ac_ct_DUMPBIN
  3943. fi
  3944. fi
  3945. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3946. *COFF*)
  3947. DUMPBIN="$DUMPBIN -symbols"
  3948. ;;
  3949. *)
  3950. DUMPBIN=:
  3951. ;;
  3952. esac
  3953. fi
  3954. if test "$DUMPBIN" != ":"; then
  3955. NM="$DUMPBIN"
  3956. fi
  3957. fi
  3958. test -z "$NM" && NM=nm
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3960. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3961. if ${lt_cv_nm_interface+:} false; then :
  3962. $as_echo_n "(cached) " >&6
  3963. else
  3964. lt_cv_nm_interface="BSD nm"
  3965. echo "int some_variable = 0;" > conftest.$ac_ext
  3966. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3967. (eval "$ac_compile" 2>conftest.err)
  3968. cat conftest.err >&5
  3969. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3970. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3971. cat conftest.err >&5
  3972. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3973. cat conftest.out >&5
  3974. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3975. lt_cv_nm_interface="MS dumpbin"
  3976. fi
  3977. rm -f conftest*
  3978. fi
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3980. $as_echo "$lt_cv_nm_interface" >&6; }
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3982. $as_echo_n "checking whether ln -s works... " >&6; }
  3983. LN_S=$as_ln_s
  3984. if test "$LN_S" = "ln -s"; then
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3986. $as_echo "yes" >&6; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3989. $as_echo "no, using $LN_S" >&6; }
  3990. fi
  3991. # find the maximum length of command line arguments
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3993. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3994. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3995. $as_echo_n "(cached) " >&6
  3996. else
  3997. i=0
  3998. teststring="ABCD"
  3999. case $build_os in
  4000. msdosdjgpp*)
  4001. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4002. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4003. # during glob expansion). Even if it were fixed, the result of this
  4004. # check would be larger than it should be.
  4005. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4006. ;;
  4007. gnu*)
  4008. # Under GNU Hurd, this test is not required because there is
  4009. # no limit to the length of command line arguments.
  4010. # Libtool will interpret -1 as no limit whatsoever
  4011. lt_cv_sys_max_cmd_len=-1;
  4012. ;;
  4013. cygwin* | mingw* | cegcc*)
  4014. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4015. # about 5 minutes as the teststring grows exponentially.
  4016. # Worse, since 9x/ME are not pre-emptively multitasking,
  4017. # you end up with a "frozen" computer, even though with patience
  4018. # the test eventually succeeds (with a max line length of 256k).
  4019. # Instead, let's just punt: use the minimum linelength reported by
  4020. # all of the supported platforms: 8192 (on NT/2K/XP).
  4021. lt_cv_sys_max_cmd_len=8192;
  4022. ;;
  4023. mint*)
  4024. # On MiNT this can take a long time and run out of memory.
  4025. lt_cv_sys_max_cmd_len=8192;
  4026. ;;
  4027. amigaos*)
  4028. # On AmigaOS with pdksh, this test takes hours, literally.
  4029. # So we just punt and use a minimum line length of 8192.
  4030. lt_cv_sys_max_cmd_len=8192;
  4031. ;;
  4032. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4033. # This has been around since 386BSD, at least. Likely further.
  4034. if test -x /sbin/sysctl; then
  4035. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4036. elif test -x /usr/sbin/sysctl; then
  4037. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4038. else
  4039. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4040. fi
  4041. # And add a safety zone
  4042. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4043. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4044. ;;
  4045. interix*)
  4046. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4047. lt_cv_sys_max_cmd_len=196608
  4048. ;;
  4049. os2*)
  4050. # The test takes a long time on OS/2.
  4051. lt_cv_sys_max_cmd_len=8192
  4052. ;;
  4053. osf*)
  4054. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4055. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4056. # nice to cause kernel panics so lets avoid the loop below.
  4057. # First set a reasonable default.
  4058. lt_cv_sys_max_cmd_len=16384
  4059. #
  4060. if test -x /sbin/sysconfig; then
  4061. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4062. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4063. esac
  4064. fi
  4065. ;;
  4066. sco3.2v5*)
  4067. lt_cv_sys_max_cmd_len=102400
  4068. ;;
  4069. sysv5* | sco5v6* | sysv4.2uw2*)
  4070. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4071. if test -n "$kargmax"; then
  4072. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4073. else
  4074. lt_cv_sys_max_cmd_len=32768
  4075. fi
  4076. ;;
  4077. *)
  4078. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4079. if test -n "$lt_cv_sys_max_cmd_len"; then
  4080. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4081. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4082. else
  4083. # Make teststring a little bigger before we do anything with it.
  4084. # a 1K string should be a reasonable start.
  4085. for i in 1 2 3 4 5 6 7 8 ; do
  4086. teststring=$teststring$teststring
  4087. done
  4088. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4089. # If test is not a shell built-in, we'll probably end up computing a
  4090. # maximum length that is only half of the actual maximum length, but
  4091. # we can't tell.
  4092. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4093. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4094. test $i != 17 # 1/2 MB should be enough
  4095. do
  4096. i=`expr $i + 1`
  4097. teststring=$teststring$teststring
  4098. done
  4099. # Only check the string length outside the loop.
  4100. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4101. teststring=
  4102. # Add a significant safety factor because C++ compilers can tack on
  4103. # massive amounts of additional arguments before passing them to the
  4104. # linker. It appears as though 1/2 is a usable value.
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4106. fi
  4107. ;;
  4108. esac
  4109. fi
  4110. if test -n $lt_cv_sys_max_cmd_len ; then
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4112. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4113. else
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4115. $as_echo "none" >&6; }
  4116. fi
  4117. max_cmd_len=$lt_cv_sys_max_cmd_len
  4118. : ${CP="cp -f"}
  4119. : ${MV="mv -f"}
  4120. : ${RM="rm -f"}
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4122. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4123. # Try some XSI features
  4124. xsi_shell=no
  4125. ( _lt_dummy="a/b/c"
  4126. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4127. = c,a/b,b/c, \
  4128. && eval 'test $(( 1 + 1 )) -eq 2 \
  4129. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4130. && xsi_shell=yes
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4132. $as_echo "$xsi_shell" >&6; }
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4134. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4135. lt_shell_append=no
  4136. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4137. >/dev/null 2>&1 \
  4138. && lt_shell_append=yes
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4140. $as_echo "$lt_shell_append" >&6; }
  4141. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4142. lt_unset=unset
  4143. else
  4144. lt_unset=false
  4145. fi
  4146. # test EBCDIC or ASCII
  4147. case `echo X|tr X '\101'` in
  4148. A) # ASCII based system
  4149. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4150. lt_SP2NL='tr \040 \012'
  4151. lt_NL2SP='tr \015\012 \040\040'
  4152. ;;
  4153. *) # EBCDIC based system
  4154. lt_SP2NL='tr \100 \n'
  4155. lt_NL2SP='tr \r\n \100\100'
  4156. ;;
  4157. esac
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4159. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4160. if ${lt_cv_to_host_file_cmd+:} false; then :
  4161. $as_echo_n "(cached) " >&6
  4162. else
  4163. case $host in
  4164. *-*-mingw* )
  4165. case $build in
  4166. *-*-mingw* ) # actually msys
  4167. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4168. ;;
  4169. *-*-cygwin* )
  4170. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4171. ;;
  4172. * ) # otherwise, assume *nix
  4173. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4174. ;;
  4175. esac
  4176. ;;
  4177. *-*-cygwin* )
  4178. case $build in
  4179. *-*-mingw* ) # actually msys
  4180. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4181. ;;
  4182. *-*-cygwin* )
  4183. lt_cv_to_host_file_cmd=func_convert_file_noop
  4184. ;;
  4185. * ) # otherwise, assume *nix
  4186. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4187. ;;
  4188. esac
  4189. ;;
  4190. * ) # unhandled hosts (and "normal" native builds)
  4191. lt_cv_to_host_file_cmd=func_convert_file_noop
  4192. ;;
  4193. esac
  4194. fi
  4195. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4197. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4199. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4200. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. #assume ordinary cross tools, or native build.
  4204. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4205. case $host in
  4206. *-*-mingw* )
  4207. case $build in
  4208. *-*-mingw* ) # actually msys
  4209. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4210. ;;
  4211. esac
  4212. ;;
  4213. esac
  4214. fi
  4215. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4217. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4219. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4220. if ${lt_cv_ld_reload_flag+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. lt_cv_ld_reload_flag='-r'
  4224. fi
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4226. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4227. reload_flag=$lt_cv_ld_reload_flag
  4228. case $reload_flag in
  4229. "" | " "*) ;;
  4230. *) reload_flag=" $reload_flag" ;;
  4231. esac
  4232. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4233. case $host_os in
  4234. cygwin* | mingw* | pw32* | cegcc*)
  4235. if test "$GCC" != yes; then
  4236. reload_cmds=false
  4237. fi
  4238. ;;
  4239. darwin*)
  4240. if test "$GCC" = yes; then
  4241. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4242. else
  4243. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4244. fi
  4245. ;;
  4246. esac
  4247. if test -n "$ac_tool_prefix"; then
  4248. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4249. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4251. $as_echo_n "checking for $ac_word... " >&6; }
  4252. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. if test -n "$OBJDUMP"; then
  4256. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4257. else
  4258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4259. for as_dir in $PATH
  4260. do
  4261. IFS=$as_save_IFS
  4262. test -z "$as_dir" && as_dir=.
  4263. for ac_exec_ext in '' $ac_executable_extensions; do
  4264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4265. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4267. break 2
  4268. fi
  4269. done
  4270. done
  4271. IFS=$as_save_IFS
  4272. fi
  4273. fi
  4274. OBJDUMP=$ac_cv_prog_OBJDUMP
  4275. if test -n "$OBJDUMP"; then
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4277. $as_echo "$OBJDUMP" >&6; }
  4278. else
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4280. $as_echo "no" >&6; }
  4281. fi
  4282. fi
  4283. if test -z "$ac_cv_prog_OBJDUMP"; then
  4284. ac_ct_OBJDUMP=$OBJDUMP
  4285. # Extract the first word of "objdump", so it can be a program name with args.
  4286. set dummy objdump; ac_word=$2
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4288. $as_echo_n "checking for $ac_word... " >&6; }
  4289. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. if test -n "$ac_ct_OBJDUMP"; then
  4293. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4294. else
  4295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4296. for as_dir in $PATH
  4297. do
  4298. IFS=$as_save_IFS
  4299. test -z "$as_dir" && as_dir=.
  4300. for ac_exec_ext in '' $ac_executable_extensions; do
  4301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4302. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4304. break 2
  4305. fi
  4306. done
  4307. done
  4308. IFS=$as_save_IFS
  4309. fi
  4310. fi
  4311. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4312. if test -n "$ac_ct_OBJDUMP"; then
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4314. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4315. else
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4317. $as_echo "no" >&6; }
  4318. fi
  4319. if test "x$ac_ct_OBJDUMP" = x; then
  4320. OBJDUMP="false"
  4321. else
  4322. case $cross_compiling:$ac_tool_warned in
  4323. yes:)
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4326. ac_tool_warned=yes ;;
  4327. esac
  4328. OBJDUMP=$ac_ct_OBJDUMP
  4329. fi
  4330. else
  4331. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4332. fi
  4333. test -z "$OBJDUMP" && OBJDUMP=objdump
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4335. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4336. if ${lt_cv_deplibs_check_method+:} false; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4340. lt_cv_file_magic_test_file=
  4341. lt_cv_deplibs_check_method='unknown'
  4342. # Need to set the preceding variable on all platforms that support
  4343. # interlibrary dependencies.
  4344. # 'none' -- dependencies not supported.
  4345. # `unknown' -- same as none, but documents that we really don't know.
  4346. # 'pass_all' -- all dependencies passed with no checks.
  4347. # 'test_compile' -- check by making test program.
  4348. # 'file_magic [[regex]]' -- check by looking for files in library path
  4349. # which responds to the $file_magic_cmd with a given extended regex.
  4350. # If you have `file' or equivalent on your system and you're not sure
  4351. # whether `pass_all' will *always* work, you probably want this one.
  4352. case $host_os in
  4353. aix[4-9]*)
  4354. lt_cv_deplibs_check_method=pass_all
  4355. ;;
  4356. beos*)
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. bsdi[45]*)
  4360. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4361. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4362. lt_cv_file_magic_test_file=/shlib/libc.so
  4363. ;;
  4364. cygwin*)
  4365. # func_win32_libid is a shell function defined in ltmain.sh
  4366. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4367. lt_cv_file_magic_cmd='func_win32_libid'
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. mingw* | pw32*)
  4371. # Base MSYS/MinGW do not provide the 'file' command needed by
  4372. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4373. # unless we find 'file', for example because we are cross-compiling.
  4374. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4375. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4376. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4377. lt_cv_file_magic_cmd='func_win32_libid'
  4378. else
  4379. # Keep this pattern in sync with the one in func_win32_libid.
  4380. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4381. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4382. fi
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. cegcc*)
  4386. # use the weaker test based on 'objdump'. See mingw*.
  4387. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4388. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4389. ;;
  4390. darwin* | rhapsody*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. freebsd* | dragonfly*)
  4394. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4395. case $host_cpu in
  4396. i*86 )
  4397. # Not sure whether the presence of OpenBSD here was a mistake.
  4398. # Let's accept both of them until this is cleared up.
  4399. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4400. lt_cv_file_magic_cmd=/usr/bin/file
  4401. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4402. ;;
  4403. esac
  4404. else
  4405. lt_cv_deplibs_check_method=pass_all
  4406. fi
  4407. ;;
  4408. gnu*)
  4409. lt_cv_deplibs_check_method=pass_all
  4410. ;;
  4411. haiku*)
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. hpux10.20* | hpux11*)
  4415. lt_cv_file_magic_cmd=/usr/bin/file
  4416. case $host_cpu in
  4417. ia64*)
  4418. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4419. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4420. ;;
  4421. hppa*64*)
  4422. 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]'
  4423. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4424. ;;
  4425. *)
  4426. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4427. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4428. ;;
  4429. esac
  4430. ;;
  4431. interix[3-9]*)
  4432. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4433. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4434. ;;
  4435. irix5* | irix6* | nonstopux*)
  4436. case $LD in
  4437. *-32|*"-32 ") libmagic=32-bit;;
  4438. *-n32|*"-n32 ") libmagic=N32;;
  4439. *-64|*"-64 ") libmagic=64-bit;;
  4440. *) libmagic=never-match;;
  4441. esac
  4442. lt_cv_deplibs_check_method=pass_all
  4443. ;;
  4444. # This must be glibc/ELF.
  4445. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. netbsd*)
  4449. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4450. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4451. else
  4452. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4453. fi
  4454. ;;
  4455. newos6*)
  4456. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4457. lt_cv_file_magic_cmd=/usr/bin/file
  4458. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4459. ;;
  4460. *nto* | *qnx*)
  4461. lt_cv_deplibs_check_method=pass_all
  4462. ;;
  4463. openbsd*)
  4464. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4466. else
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4468. fi
  4469. ;;
  4470. osf3* | osf4* | osf5*)
  4471. lt_cv_deplibs_check_method=pass_all
  4472. ;;
  4473. rdos*)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. solaris*)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. sysv4 | sysv4.3*)
  4483. case $host_vendor in
  4484. motorola)
  4485. 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]'
  4486. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4487. ;;
  4488. ncr)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. sequent)
  4492. lt_cv_file_magic_cmd='/bin/file'
  4493. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4494. ;;
  4495. sni)
  4496. lt_cv_file_magic_cmd='/bin/file'
  4497. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4498. lt_cv_file_magic_test_file=/lib/libc.so
  4499. ;;
  4500. siemens)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. pc)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. esac
  4507. ;;
  4508. tpf*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. esac
  4512. fi
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4514. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4515. file_magic_glob=
  4516. want_nocaseglob=no
  4517. if test "$build" = "$host"; then
  4518. case $host_os in
  4519. mingw* | pw32*)
  4520. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4521. want_nocaseglob=yes
  4522. else
  4523. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4524. fi
  4525. ;;
  4526. esac
  4527. fi
  4528. file_magic_cmd=$lt_cv_file_magic_cmd
  4529. deplibs_check_method=$lt_cv_deplibs_check_method
  4530. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4531. if test -n "$ac_tool_prefix"; then
  4532. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4533. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. if test -n "$DLLTOOL"; then
  4540. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4541. else
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH
  4544. do
  4545. IFS=$as_save_IFS
  4546. test -z "$as_dir" && as_dir=.
  4547. for ac_exec_ext in '' $ac_executable_extensions; do
  4548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4549. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. break 2
  4552. fi
  4553. done
  4554. done
  4555. IFS=$as_save_IFS
  4556. fi
  4557. fi
  4558. DLLTOOL=$ac_cv_prog_DLLTOOL
  4559. if test -n "$DLLTOOL"; then
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4561. $as_echo "$DLLTOOL" >&6; }
  4562. else
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. $as_echo "no" >&6; }
  4565. fi
  4566. fi
  4567. if test -z "$ac_cv_prog_DLLTOOL"; then
  4568. ac_ct_DLLTOOL=$DLLTOOL
  4569. # Extract the first word of "dlltool", so it can be a program name with args.
  4570. set dummy dlltool; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$ac_ct_DLLTOOL"; then
  4577. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4586. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4596. if test -n "$ac_ct_DLLTOOL"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4598. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. if test "x$ac_ct_DLLTOOL" = x; then
  4604. DLLTOOL="false"
  4605. else
  4606. case $cross_compiling:$ac_tool_warned in
  4607. yes:)
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4610. ac_tool_warned=yes ;;
  4611. esac
  4612. DLLTOOL=$ac_ct_DLLTOOL
  4613. fi
  4614. else
  4615. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4616. fi
  4617. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4619. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4620. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4624. case $host_os in
  4625. cygwin* | mingw* | pw32* | cegcc*)
  4626. # two different shell functions defined in ltmain.sh
  4627. # decide which to use based on capabilities of $DLLTOOL
  4628. case `$DLLTOOL --help 2>&1` in
  4629. *--identify-strict*)
  4630. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4631. ;;
  4632. *)
  4633. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4634. ;;
  4635. esac
  4636. ;;
  4637. *)
  4638. # fallback: assume linklib IS sharedlib
  4639. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4640. ;;
  4641. esac
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4644. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4645. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4646. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4647. if test -n "$ac_tool_prefix"; then
  4648. for ac_prog in ar
  4649. do
  4650. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4651. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4653. $as_echo_n "checking for $ac_word... " >&6; }
  4654. if ${ac_cv_prog_AR+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. if test -n "$AR"; then
  4658. ac_cv_prog_AR="$AR" # Let the user override the test.
  4659. else
  4660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4661. for as_dir in $PATH
  4662. do
  4663. IFS=$as_save_IFS
  4664. test -z "$as_dir" && as_dir=.
  4665. for ac_exec_ext in '' $ac_executable_extensions; do
  4666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4667. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4669. break 2
  4670. fi
  4671. done
  4672. done
  4673. IFS=$as_save_IFS
  4674. fi
  4675. fi
  4676. AR=$ac_cv_prog_AR
  4677. if test -n "$AR"; then
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4679. $as_echo "$AR" >&6; }
  4680. else
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4682. $as_echo "no" >&6; }
  4683. fi
  4684. test -n "$AR" && break
  4685. done
  4686. fi
  4687. if test -z "$AR"; then
  4688. ac_ct_AR=$AR
  4689. for ac_prog in ar
  4690. do
  4691. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4692. set dummy $ac_prog; ac_word=$2
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4694. $as_echo_n "checking for $ac_word... " >&6; }
  4695. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. if test -n "$ac_ct_AR"; then
  4699. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4700. else
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH
  4703. do
  4704. IFS=$as_save_IFS
  4705. test -z "$as_dir" && as_dir=.
  4706. for ac_exec_ext in '' $ac_executable_extensions; do
  4707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4708. ac_cv_prog_ac_ct_AR="$ac_prog"
  4709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4710. break 2
  4711. fi
  4712. done
  4713. done
  4714. IFS=$as_save_IFS
  4715. fi
  4716. fi
  4717. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4718. if test -n "$ac_ct_AR"; then
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4720. $as_echo "$ac_ct_AR" >&6; }
  4721. else
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4723. $as_echo "no" >&6; }
  4724. fi
  4725. test -n "$ac_ct_AR" && break
  4726. done
  4727. if test "x$ac_ct_AR" = x; then
  4728. AR="false"
  4729. else
  4730. case $cross_compiling:$ac_tool_warned in
  4731. yes:)
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4734. ac_tool_warned=yes ;;
  4735. esac
  4736. AR=$ac_ct_AR
  4737. fi
  4738. fi
  4739. : ${AR=ar}
  4740. : ${AR_FLAGS=cru}
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4742. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4743. if ${lt_cv_ar_at_file+:} false; then :
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. lt_cv_ar_at_file=no
  4747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4748. /* end confdefs.h. */
  4749. int
  4750. main ()
  4751. {
  4752. ;
  4753. return 0;
  4754. }
  4755. _ACEOF
  4756. if ac_fn_c_try_compile "$LINENO"; then :
  4757. echo conftest.$ac_objext > conftest.lst
  4758. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4759. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4760. (eval $lt_ar_try) 2>&5
  4761. ac_status=$?
  4762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4763. test $ac_status = 0; }
  4764. if test "$ac_status" -eq 0; then
  4765. # Ensure the archiver fails upon bogus file names.
  4766. rm -f conftest.$ac_objext libconftest.a
  4767. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4768. (eval $lt_ar_try) 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4771. test $ac_status = 0; }
  4772. if test "$ac_status" -ne 0; then
  4773. lt_cv_ar_at_file=@
  4774. fi
  4775. fi
  4776. rm -f conftest.* libconftest.a
  4777. fi
  4778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4779. fi
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4781. $as_echo "$lt_cv_ar_at_file" >&6; }
  4782. if test "x$lt_cv_ar_at_file" = xno; then
  4783. archiver_list_spec=
  4784. else
  4785. archiver_list_spec=$lt_cv_ar_at_file
  4786. fi
  4787. if test -n "$ac_tool_prefix"; then
  4788. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4789. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4791. $as_echo_n "checking for $ac_word... " >&6; }
  4792. if ${ac_cv_prog_STRIP+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$STRIP"; then
  4796. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4797. else
  4798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. for as_dir in $PATH
  4800. do
  4801. IFS=$as_save_IFS
  4802. test -z "$as_dir" && as_dir=.
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4805. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4807. break 2
  4808. fi
  4809. done
  4810. done
  4811. IFS=$as_save_IFS
  4812. fi
  4813. fi
  4814. STRIP=$ac_cv_prog_STRIP
  4815. if test -n "$STRIP"; then
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4817. $as_echo "$STRIP" >&6; }
  4818. else
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4820. $as_echo "no" >&6; }
  4821. fi
  4822. fi
  4823. if test -z "$ac_cv_prog_STRIP"; then
  4824. ac_ct_STRIP=$STRIP
  4825. # Extract the first word of "strip", so it can be a program name with args.
  4826. set dummy strip; ac_word=$2
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4828. $as_echo_n "checking for $ac_word... " >&6; }
  4829. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$ac_ct_STRIP"; then
  4833. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4842. ac_cv_prog_ac_ct_STRIP="strip"
  4843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. IFS=$as_save_IFS
  4849. fi
  4850. fi
  4851. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4852. if test -n "$ac_ct_STRIP"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4854. $as_echo "$ac_ct_STRIP" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. if test "x$ac_ct_STRIP" = x; then
  4860. STRIP=":"
  4861. else
  4862. case $cross_compiling:$ac_tool_warned in
  4863. yes:)
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4866. ac_tool_warned=yes ;;
  4867. esac
  4868. STRIP=$ac_ct_STRIP
  4869. fi
  4870. else
  4871. STRIP="$ac_cv_prog_STRIP"
  4872. fi
  4873. test -z "$STRIP" && STRIP=:
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_RANLIB+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$RANLIB"; then
  4883. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4892. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. RANLIB=$ac_cv_prog_RANLIB
  4902. if test -n "$RANLIB"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4904. $as_echo "$RANLIB" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. fi
  4910. if test -z "$ac_cv_prog_RANLIB"; then
  4911. ac_ct_RANLIB=$RANLIB
  4912. # Extract the first word of "ranlib", so it can be a program name with args.
  4913. set dummy ranlib; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$ac_ct_RANLIB"; then
  4920. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4939. if test -n "$ac_ct_RANLIB"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4941. $as_echo "$ac_ct_RANLIB" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. if test "x$ac_ct_RANLIB" = x; then
  4947. RANLIB=":"
  4948. else
  4949. case $cross_compiling:$ac_tool_warned in
  4950. yes:)
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4953. ac_tool_warned=yes ;;
  4954. esac
  4955. RANLIB=$ac_ct_RANLIB
  4956. fi
  4957. else
  4958. RANLIB="$ac_cv_prog_RANLIB"
  4959. fi
  4960. test -z "$RANLIB" && RANLIB=:
  4961. # Determine commands to create old-style static archives.
  4962. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4963. old_postinstall_cmds='chmod 644 $oldlib'
  4964. old_postuninstall_cmds=
  4965. if test -n "$RANLIB"; then
  4966. case $host_os in
  4967. openbsd*)
  4968. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4969. ;;
  4970. *)
  4971. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4972. ;;
  4973. esac
  4974. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4975. fi
  4976. case $host_os in
  4977. darwin*)
  4978. lock_old_archive_extraction=yes ;;
  4979. *)
  4980. lock_old_archive_extraction=no ;;
  4981. esac
  4982. for ac_prog in gawk mawk nawk awk
  4983. do
  4984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4985. set dummy $ac_prog; ac_word=$2
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4987. $as_echo_n "checking for $ac_word... " >&6; }
  4988. if ${ac_cv_prog_AWK+:} false; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. if test -n "$AWK"; then
  4992. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4993. else
  4994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995. for as_dir in $PATH
  4996. do
  4997. IFS=$as_save_IFS
  4998. test -z "$as_dir" && as_dir=.
  4999. for ac_exec_ext in '' $ac_executable_extensions; do
  5000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5001. ac_cv_prog_AWK="$ac_prog"
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5003. break 2
  5004. fi
  5005. done
  5006. done
  5007. IFS=$as_save_IFS
  5008. fi
  5009. fi
  5010. AWK=$ac_cv_prog_AWK
  5011. if test -n "$AWK"; then
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5013. $as_echo "$AWK" >&6; }
  5014. else
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5016. $as_echo "no" >&6; }
  5017. fi
  5018. test -n "$AWK" && break
  5019. done
  5020. # If no C compiler was specified, use CC.
  5021. LTCC=${LTCC-"$CC"}
  5022. # If no C compiler flags were specified, use CFLAGS.
  5023. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5024. # Allow CC to be a program name with arguments.
  5025. compiler=$CC
  5026. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5028. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5029. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5030. $as_echo_n "(cached) " >&6
  5031. else
  5032. # These are sane defaults that work on at least a few old systems.
  5033. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5034. # Character class describing NM global symbol codes.
  5035. symcode='[BCDEGRST]'
  5036. # Regexp to match symbols that can be accessed directly from C.
  5037. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5038. # Define system-specific variables.
  5039. case $host_os in
  5040. aix*)
  5041. symcode='[BCDT]'
  5042. ;;
  5043. cygwin* | mingw* | pw32* | cegcc*)
  5044. symcode='[ABCDGISTW]'
  5045. ;;
  5046. hpux*)
  5047. if test "$host_cpu" = ia64; then
  5048. symcode='[ABCDEGRST]'
  5049. fi
  5050. ;;
  5051. irix* | nonstopux*)
  5052. symcode='[BCDEGRST]'
  5053. ;;
  5054. osf*)
  5055. symcode='[BCDEGQRST]'
  5056. ;;
  5057. solaris*)
  5058. symcode='[BDRT]'
  5059. ;;
  5060. sco3.2v5*)
  5061. symcode='[DT]'
  5062. ;;
  5063. sysv4.2uw2*)
  5064. symcode='[DT]'
  5065. ;;
  5066. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5067. symcode='[ABDT]'
  5068. ;;
  5069. sysv4)
  5070. symcode='[DFNSTU]'
  5071. ;;
  5072. esac
  5073. # If we're using GNU nm, then use its standard symbol codes.
  5074. case `$NM -V 2>&1` in
  5075. *GNU* | *'with BFD'*)
  5076. symcode='[ABCDGIRSTW]' ;;
  5077. esac
  5078. # Transform an extracted symbol line into a proper C declaration.
  5079. # Some systems (esp. on ia64) link data and code symbols differently,
  5080. # so use this general approach.
  5081. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5082. # Transform an extracted symbol line into symbol name and symbol address
  5083. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5084. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5085. # Handle CRLF in mingw tool chain
  5086. opt_cr=
  5087. case $build_os in
  5088. mingw*)
  5089. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5090. ;;
  5091. esac
  5092. # Try without a prefix underscore, then with it.
  5093. for ac_symprfx in "" "_"; do
  5094. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5095. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5096. # Write the raw and C identifiers.
  5097. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5098. # Fake it for dumpbin and say T for any non-static function
  5099. # and D for any global variable.
  5100. # Also find C++ and __fastcall symbols from MSVC++,
  5101. # which start with @ or ?.
  5102. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5103. " {last_section=section; section=\$ 3};"\
  5104. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5105. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5106. " \$ 0!~/External *\|/{next};"\
  5107. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5108. " {if(hide[section]) next};"\
  5109. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5110. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5111. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5112. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5113. " ' prfx=^$ac_symprfx"
  5114. else
  5115. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5116. fi
  5117. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5118. # Check to see that the pipe works correctly.
  5119. pipe_works=no
  5120. rm -f conftest*
  5121. cat > conftest.$ac_ext <<_LT_EOF
  5122. #ifdef __cplusplus
  5123. extern "C" {
  5124. #endif
  5125. char nm_test_var;
  5126. void nm_test_func(void);
  5127. void nm_test_func(void){}
  5128. #ifdef __cplusplus
  5129. }
  5130. #endif
  5131. int main(){nm_test_var='a';nm_test_func();return(0);}
  5132. _LT_EOF
  5133. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5134. (eval $ac_compile) 2>&5
  5135. ac_status=$?
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5137. test $ac_status = 0; }; then
  5138. # Now try to grab the symbols.
  5139. nlist=conftest.nm
  5140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5141. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5142. ac_status=$?
  5143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5144. test $ac_status = 0; } && test -s "$nlist"; then
  5145. # Try sorting and uniquifying the output.
  5146. if sort "$nlist" | uniq > "$nlist"T; then
  5147. mv -f "$nlist"T "$nlist"
  5148. else
  5149. rm -f "$nlist"T
  5150. fi
  5151. # Make sure that we snagged all the symbols we need.
  5152. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5153. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5154. cat <<_LT_EOF > conftest.$ac_ext
  5155. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5156. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5157. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5158. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5159. # define LT_DLSYM_CONST
  5160. #elif defined(__osf__)
  5161. /* This system does not cope well with relocations in const data. */
  5162. # define LT_DLSYM_CONST
  5163. #else
  5164. # define LT_DLSYM_CONST const
  5165. #endif
  5166. #ifdef __cplusplus
  5167. extern "C" {
  5168. #endif
  5169. _LT_EOF
  5170. # Now generate the symbol file.
  5171. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5172. cat <<_LT_EOF >> conftest.$ac_ext
  5173. /* The mapping between symbol names and symbols. */
  5174. LT_DLSYM_CONST struct {
  5175. const char *name;
  5176. void *address;
  5177. }
  5178. lt__PROGRAM__LTX_preloaded_symbols[] =
  5179. {
  5180. { "@PROGRAM@", (void *) 0 },
  5181. _LT_EOF
  5182. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5183. cat <<\_LT_EOF >> conftest.$ac_ext
  5184. {0, (void *) 0}
  5185. };
  5186. /* This works around a problem in FreeBSD linker */
  5187. #ifdef FREEBSD_WORKAROUND
  5188. static const void *lt_preloaded_setup() {
  5189. return lt__PROGRAM__LTX_preloaded_symbols;
  5190. }
  5191. #endif
  5192. #ifdef __cplusplus
  5193. }
  5194. #endif
  5195. _LT_EOF
  5196. # Now try linking the two files.
  5197. mv conftest.$ac_objext conftstm.$ac_objext
  5198. lt_globsym_save_LIBS=$LIBS
  5199. lt_globsym_save_CFLAGS=$CFLAGS
  5200. LIBS="conftstm.$ac_objext"
  5201. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5203. (eval $ac_link) 2>&5
  5204. ac_status=$?
  5205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5206. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5207. pipe_works=yes
  5208. fi
  5209. LIBS=$lt_globsym_save_LIBS
  5210. CFLAGS=$lt_globsym_save_CFLAGS
  5211. else
  5212. echo "cannot find nm_test_func in $nlist" >&5
  5213. fi
  5214. else
  5215. echo "cannot find nm_test_var in $nlist" >&5
  5216. fi
  5217. else
  5218. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5219. fi
  5220. else
  5221. echo "$progname: failed program was:" >&5
  5222. cat conftest.$ac_ext >&5
  5223. fi
  5224. rm -rf conftest* conftst*
  5225. # Do not use the global_symbol_pipe unless it works.
  5226. if test "$pipe_works" = yes; then
  5227. break
  5228. else
  5229. lt_cv_sys_global_symbol_pipe=
  5230. fi
  5231. done
  5232. fi
  5233. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5234. lt_cv_sys_global_symbol_to_cdecl=
  5235. fi
  5236. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5238. $as_echo "failed" >&6; }
  5239. else
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5241. $as_echo "ok" >&6; }
  5242. fi
  5243. # Response file support.
  5244. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5245. nm_file_list_spec='@'
  5246. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5247. nm_file_list_spec='@'
  5248. fi
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5250. $as_echo_n "checking for sysroot... " >&6; }
  5251. # Check whether --with-sysroot was given.
  5252. if test "${with_sysroot+set}" = set; then :
  5253. withval=$with_sysroot;
  5254. else
  5255. with_sysroot=no
  5256. fi
  5257. lt_sysroot=
  5258. case ${with_sysroot} in #(
  5259. yes)
  5260. if test "$GCC" = yes; then
  5261. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5262. fi
  5263. ;; #(
  5264. /*)
  5265. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5266. ;; #(
  5267. no|'')
  5268. ;; #(
  5269. *)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5271. $as_echo "${with_sysroot}" >&6; }
  5272. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5273. ;;
  5274. esac
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5276. $as_echo "${lt_sysroot:-no}" >&6; }
  5277. # Check whether --enable-libtool-lock was given.
  5278. if test "${enable_libtool_lock+set}" = set; then :
  5279. enableval=$enable_libtool_lock;
  5280. fi
  5281. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5282. # Some flags need to be propagated to the compiler or linker for good
  5283. # libtool support.
  5284. case $host in
  5285. ia64-*-hpux*)
  5286. # Find out which ABI we are using.
  5287. echo 'int i;' > conftest.$ac_ext
  5288. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5289. (eval $ac_compile) 2>&5
  5290. ac_status=$?
  5291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5292. test $ac_status = 0; }; then
  5293. case `/usr/bin/file conftest.$ac_objext` in
  5294. *ELF-32*)
  5295. HPUX_IA64_MODE="32"
  5296. ;;
  5297. *ELF-64*)
  5298. HPUX_IA64_MODE="64"
  5299. ;;
  5300. esac
  5301. fi
  5302. rm -rf conftest*
  5303. ;;
  5304. *-*-irix6*)
  5305. # Find out which ABI we are using.
  5306. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5307. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5308. (eval $ac_compile) 2>&5
  5309. ac_status=$?
  5310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5311. test $ac_status = 0; }; then
  5312. if test "$lt_cv_prog_gnu_ld" = yes; then
  5313. case `/usr/bin/file conftest.$ac_objext` in
  5314. *32-bit*)
  5315. LD="${LD-ld} -melf32bsmip"
  5316. ;;
  5317. *N32*)
  5318. LD="${LD-ld} -melf32bmipn32"
  5319. ;;
  5320. *64-bit*)
  5321. LD="${LD-ld} -melf64bmip"
  5322. ;;
  5323. esac
  5324. else
  5325. case `/usr/bin/file conftest.$ac_objext` in
  5326. *32-bit*)
  5327. LD="${LD-ld} -32"
  5328. ;;
  5329. *N32*)
  5330. LD="${LD-ld} -n32"
  5331. ;;
  5332. *64-bit*)
  5333. LD="${LD-ld} -64"
  5334. ;;
  5335. esac
  5336. fi
  5337. fi
  5338. rm -rf conftest*
  5339. ;;
  5340. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5341. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5342. # Find out which ABI we are using.
  5343. echo 'int i;' > conftest.$ac_ext
  5344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5345. (eval $ac_compile) 2>&5
  5346. ac_status=$?
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5348. test $ac_status = 0; }; then
  5349. case `/usr/bin/file conftest.o` in
  5350. *32-bit*)
  5351. case $host in
  5352. x86_64-*kfreebsd*-gnu)
  5353. LD="${LD-ld} -m elf_i386_fbsd"
  5354. ;;
  5355. x86_64-*linux*)
  5356. LD="${LD-ld} -m elf_i386"
  5357. ;;
  5358. ppc64-*linux*|powerpc64-*linux*)
  5359. LD="${LD-ld} -m elf32ppclinux"
  5360. ;;
  5361. s390x-*linux*)
  5362. LD="${LD-ld} -m elf_s390"
  5363. ;;
  5364. sparc64-*linux*)
  5365. LD="${LD-ld} -m elf32_sparc"
  5366. ;;
  5367. esac
  5368. ;;
  5369. *64-bit*)
  5370. case $host in
  5371. x86_64-*kfreebsd*-gnu)
  5372. LD="${LD-ld} -m elf_x86_64_fbsd"
  5373. ;;
  5374. x86_64-*linux*)
  5375. LD="${LD-ld} -m elf_x86_64"
  5376. ;;
  5377. powerpc64le-*linux*)
  5378. LD="${LD-ld} -m elf64lppc"
  5379. ;;
  5380. powerpc64-*linux*)
  5381. LD="${LD-ld} -m elf64ppc"
  5382. ;;
  5383. s390*-*linux*|s390*-*tpf*)
  5384. LD="${LD-ld} -m elf64_s390"
  5385. ;;
  5386. sparc*-*linux*)
  5387. LD="${LD-ld} -m elf64_sparc"
  5388. ;;
  5389. esac
  5390. ;;
  5391. esac
  5392. fi
  5393. rm -rf conftest*
  5394. ;;
  5395. *-*-sco3.2v5*)
  5396. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5397. SAVE_CFLAGS="$CFLAGS"
  5398. CFLAGS="$CFLAGS -belf"
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5400. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5401. if ${lt_cv_cc_needs_belf+:} false; then :
  5402. $as_echo_n "(cached) " >&6
  5403. else
  5404. ac_ext=c
  5405. ac_cpp='$CPP $CPPFLAGS'
  5406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5410. /* end confdefs.h. */
  5411. int
  5412. main ()
  5413. {
  5414. ;
  5415. return 0;
  5416. }
  5417. _ACEOF
  5418. if ac_fn_c_try_link "$LINENO"; then :
  5419. lt_cv_cc_needs_belf=yes
  5420. else
  5421. lt_cv_cc_needs_belf=no
  5422. fi
  5423. rm -f core conftest.err conftest.$ac_objext \
  5424. conftest$ac_exeext conftest.$ac_ext
  5425. ac_ext=c
  5426. ac_cpp='$CPP $CPPFLAGS'
  5427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5430. fi
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5432. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5433. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5434. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5435. CFLAGS="$SAVE_CFLAGS"
  5436. fi
  5437. ;;
  5438. *-*solaris*)
  5439. # Find out which ABI we are using.
  5440. echo 'int i;' > conftest.$ac_ext
  5441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5442. (eval $ac_compile) 2>&5
  5443. ac_status=$?
  5444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5445. test $ac_status = 0; }; then
  5446. case `/usr/bin/file conftest.o` in
  5447. *64-bit*)
  5448. case $lt_cv_prog_gnu_ld in
  5449. yes*)
  5450. case $host in
  5451. i?86-*-solaris*)
  5452. LD="${LD-ld} -m elf_x86_64"
  5453. ;;
  5454. sparc*-*-solaris*)
  5455. LD="${LD-ld} -m elf64_sparc"
  5456. ;;
  5457. esac
  5458. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5459. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5460. LD="${LD-ld}_sol2"
  5461. fi
  5462. ;;
  5463. *)
  5464. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5465. LD="${LD-ld} -64"
  5466. fi
  5467. ;;
  5468. esac
  5469. ;;
  5470. esac
  5471. fi
  5472. rm -rf conftest*
  5473. ;;
  5474. esac
  5475. need_locks="$enable_libtool_lock"
  5476. if test -n "$ac_tool_prefix"; then
  5477. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5478. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5480. $as_echo_n "checking for $ac_word... " >&6; }
  5481. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. if test -n "$MANIFEST_TOOL"; then
  5485. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5486. else
  5487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5488. for as_dir in $PATH
  5489. do
  5490. IFS=$as_save_IFS
  5491. test -z "$as_dir" && as_dir=.
  5492. for ac_exec_ext in '' $ac_executable_extensions; do
  5493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5494. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5496. break 2
  5497. fi
  5498. done
  5499. done
  5500. IFS=$as_save_IFS
  5501. fi
  5502. fi
  5503. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5504. if test -n "$MANIFEST_TOOL"; then
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5506. $as_echo "$MANIFEST_TOOL" >&6; }
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5509. $as_echo "no" >&6; }
  5510. fi
  5511. fi
  5512. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5513. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5514. # Extract the first word of "mt", so it can be a program name with args.
  5515. set dummy mt; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5522. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5531. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. fi
  5539. fi
  5540. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5541. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5543. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi
  5548. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5549. MANIFEST_TOOL=":"
  5550. else
  5551. case $cross_compiling:$ac_tool_warned in
  5552. yes:)
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5555. ac_tool_warned=yes ;;
  5556. esac
  5557. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5558. fi
  5559. else
  5560. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5561. fi
  5562. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5564. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5565. if ${lt_cv_path_mainfest_tool+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. lt_cv_path_mainfest_tool=no
  5569. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5570. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5571. cat conftest.err >&5
  5572. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5573. lt_cv_path_mainfest_tool=yes
  5574. fi
  5575. rm -f conftest*
  5576. fi
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5578. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5579. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5580. MANIFEST_TOOL=:
  5581. fi
  5582. case $host_os in
  5583. rhapsody* | darwin*)
  5584. if test -n "$ac_tool_prefix"; then
  5585. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5586. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5588. $as_echo_n "checking for $ac_word... " >&6; }
  5589. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. if test -n "$DSYMUTIL"; then
  5593. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5594. else
  5595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5596. for as_dir in $PATH
  5597. do
  5598. IFS=$as_save_IFS
  5599. test -z "$as_dir" && as_dir=.
  5600. for ac_exec_ext in '' $ac_executable_extensions; do
  5601. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5602. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5604. break 2
  5605. fi
  5606. done
  5607. done
  5608. IFS=$as_save_IFS
  5609. fi
  5610. fi
  5611. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5612. if test -n "$DSYMUTIL"; then
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5614. $as_echo "$DSYMUTIL" >&6; }
  5615. else
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5617. $as_echo "no" >&6; }
  5618. fi
  5619. fi
  5620. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5621. ac_ct_DSYMUTIL=$DSYMUTIL
  5622. # Extract the first word of "dsymutil", so it can be a program name with args.
  5623. set dummy dsymutil; ac_word=$2
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5625. $as_echo_n "checking for $ac_word... " >&6; }
  5626. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. if test -n "$ac_ct_DSYMUTIL"; then
  5630. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5631. else
  5632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5633. for as_dir in $PATH
  5634. do
  5635. IFS=$as_save_IFS
  5636. test -z "$as_dir" && as_dir=.
  5637. for ac_exec_ext in '' $ac_executable_extensions; do
  5638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5639. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5641. break 2
  5642. fi
  5643. done
  5644. done
  5645. IFS=$as_save_IFS
  5646. fi
  5647. fi
  5648. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5649. if test -n "$ac_ct_DSYMUTIL"; then
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5651. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5652. else
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5654. $as_echo "no" >&6; }
  5655. fi
  5656. if test "x$ac_ct_DSYMUTIL" = x; then
  5657. DSYMUTIL=":"
  5658. else
  5659. case $cross_compiling:$ac_tool_warned in
  5660. yes:)
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5662. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5663. ac_tool_warned=yes ;;
  5664. esac
  5665. DSYMUTIL=$ac_ct_DSYMUTIL
  5666. fi
  5667. else
  5668. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5669. fi
  5670. if test -n "$ac_tool_prefix"; then
  5671. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5672. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if ${ac_cv_prog_NMEDIT+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$NMEDIT"; then
  5679. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5688. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. NMEDIT=$ac_cv_prog_NMEDIT
  5698. if test -n "$NMEDIT"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5700. $as_echo "$NMEDIT" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. fi
  5706. if test -z "$ac_cv_prog_NMEDIT"; then
  5707. ac_ct_NMEDIT=$NMEDIT
  5708. # Extract the first word of "nmedit", so it can be a program name with args.
  5709. set dummy nmedit; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_NMEDIT"; then
  5716. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5735. if test -n "$ac_ct_NMEDIT"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5737. $as_echo "$ac_ct_NMEDIT" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_NMEDIT" = x; then
  5743. NMEDIT=":"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. NMEDIT=$ac_ct_NMEDIT
  5752. fi
  5753. else
  5754. NMEDIT="$ac_cv_prog_NMEDIT"
  5755. fi
  5756. if test -n "$ac_tool_prefix"; then
  5757. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5758. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. $as_echo_n "checking for $ac_word... " >&6; }
  5761. if ${ac_cv_prog_LIPO+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. if test -n "$LIPO"; then
  5765. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5766. else
  5767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5768. for as_dir in $PATH
  5769. do
  5770. IFS=$as_save_IFS
  5771. test -z "$as_dir" && as_dir=.
  5772. for ac_exec_ext in '' $ac_executable_extensions; do
  5773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5774. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5776. break 2
  5777. fi
  5778. done
  5779. done
  5780. IFS=$as_save_IFS
  5781. fi
  5782. fi
  5783. LIPO=$ac_cv_prog_LIPO
  5784. if test -n "$LIPO"; then
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5786. $as_echo "$LIPO" >&6; }
  5787. else
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5789. $as_echo "no" >&6; }
  5790. fi
  5791. fi
  5792. if test -z "$ac_cv_prog_LIPO"; then
  5793. ac_ct_LIPO=$LIPO
  5794. # Extract the first word of "lipo", so it can be a program name with args.
  5795. set dummy lipo; ac_word=$2
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$ac_ct_LIPO"; then
  5802. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5811. ac_cv_prog_ac_ct_LIPO="lipo"
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5821. if test -n "$ac_ct_LIPO"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5823. $as_echo "$ac_ct_LIPO" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. if test "x$ac_ct_LIPO" = x; then
  5829. LIPO=":"
  5830. else
  5831. case $cross_compiling:$ac_tool_warned in
  5832. yes:)
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5835. ac_tool_warned=yes ;;
  5836. esac
  5837. LIPO=$ac_ct_LIPO
  5838. fi
  5839. else
  5840. LIPO="$ac_cv_prog_LIPO"
  5841. fi
  5842. if test -n "$ac_tool_prefix"; then
  5843. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5844. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5846. $as_echo_n "checking for $ac_word... " >&6; }
  5847. if ${ac_cv_prog_OTOOL+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. if test -n "$OTOOL"; then
  5851. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5852. else
  5853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5854. for as_dir in $PATH
  5855. do
  5856. IFS=$as_save_IFS
  5857. test -z "$as_dir" && as_dir=.
  5858. for ac_exec_ext in '' $ac_executable_extensions; do
  5859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5860. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5862. break 2
  5863. fi
  5864. done
  5865. done
  5866. IFS=$as_save_IFS
  5867. fi
  5868. fi
  5869. OTOOL=$ac_cv_prog_OTOOL
  5870. if test -n "$OTOOL"; then
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5872. $as_echo "$OTOOL" >&6; }
  5873. else
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5875. $as_echo "no" >&6; }
  5876. fi
  5877. fi
  5878. if test -z "$ac_cv_prog_OTOOL"; then
  5879. ac_ct_OTOOL=$OTOOL
  5880. # Extract the first word of "otool", so it can be a program name with args.
  5881. set dummy otool; ac_word=$2
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$ac_ct_OTOOL"; then
  5888. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5897. ac_cv_prog_ac_ct_OTOOL="otool"
  5898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5907. if test -n "$ac_ct_OTOOL"; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5909. $as_echo "$ac_ct_OTOOL" >&6; }
  5910. else
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. if test "x$ac_ct_OTOOL" = x; then
  5915. OTOOL=":"
  5916. else
  5917. case $cross_compiling:$ac_tool_warned in
  5918. yes:)
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5921. ac_tool_warned=yes ;;
  5922. esac
  5923. OTOOL=$ac_ct_OTOOL
  5924. fi
  5925. else
  5926. OTOOL="$ac_cv_prog_OTOOL"
  5927. fi
  5928. if test -n "$ac_tool_prefix"; then
  5929. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5930. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5932. $as_echo_n "checking for $ac_word... " >&6; }
  5933. if ${ac_cv_prog_OTOOL64+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -n "$OTOOL64"; then
  5937. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5938. else
  5939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5940. for as_dir in $PATH
  5941. do
  5942. IFS=$as_save_IFS
  5943. test -z "$as_dir" && as_dir=.
  5944. for ac_exec_ext in '' $ac_executable_extensions; do
  5945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5946. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5948. break 2
  5949. fi
  5950. done
  5951. done
  5952. IFS=$as_save_IFS
  5953. fi
  5954. fi
  5955. OTOOL64=$ac_cv_prog_OTOOL64
  5956. if test -n "$OTOOL64"; then
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5958. $as_echo "$OTOOL64" >&6; }
  5959. else
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5961. $as_echo "no" >&6; }
  5962. fi
  5963. fi
  5964. if test -z "$ac_cv_prog_OTOOL64"; then
  5965. ac_ct_OTOOL64=$OTOOL64
  5966. # Extract the first word of "otool64", so it can be a program name with args.
  5967. set dummy otool64; ac_word=$2
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5969. $as_echo_n "checking for $ac_word... " >&6; }
  5970. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. if test -n "$ac_ct_OTOOL64"; then
  5974. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5975. else
  5976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5977. for as_dir in $PATH
  5978. do
  5979. IFS=$as_save_IFS
  5980. test -z "$as_dir" && as_dir=.
  5981. for ac_exec_ext in '' $ac_executable_extensions; do
  5982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5983. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5985. break 2
  5986. fi
  5987. done
  5988. done
  5989. IFS=$as_save_IFS
  5990. fi
  5991. fi
  5992. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5993. if test -n "$ac_ct_OTOOL64"; then
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5995. $as_echo "$ac_ct_OTOOL64" >&6; }
  5996. else
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. if test "x$ac_ct_OTOOL64" = x; then
  6001. OTOOL64=":"
  6002. else
  6003. case $cross_compiling:$ac_tool_warned in
  6004. yes:)
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6007. ac_tool_warned=yes ;;
  6008. esac
  6009. OTOOL64=$ac_ct_OTOOL64
  6010. fi
  6011. else
  6012. OTOOL64="$ac_cv_prog_OTOOL64"
  6013. fi
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6015. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6016. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6017. $as_echo_n "(cached) " >&6
  6018. else
  6019. lt_cv_apple_cc_single_mod=no
  6020. if test -z "${LT_MULTI_MODULE}"; then
  6021. # By default we will add the -single_module flag. You can override
  6022. # by either setting the environment variable LT_MULTI_MODULE
  6023. # non-empty at configure time, or by adding -multi_module to the
  6024. # link flags.
  6025. rm -rf libconftest.dylib*
  6026. echo "int foo(void){return 1;}" > conftest.c
  6027. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6028. -dynamiclib -Wl,-single_module conftest.c" >&5
  6029. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6030. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6031. _lt_result=$?
  6032. # If there is a non-empty error log, and "single_module"
  6033. # appears in it, assume the flag caused a linker warning
  6034. if test -s conftest.err && $GREP single_module conftest.err; then
  6035. cat conftest.err >&5
  6036. # Otherwise, if the output was created with a 0 exit code from
  6037. # the compiler, it worked.
  6038. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6039. lt_cv_apple_cc_single_mod=yes
  6040. else
  6041. cat conftest.err >&5
  6042. fi
  6043. rm -rf libconftest.dylib*
  6044. rm -f conftest.*
  6045. fi
  6046. fi
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6048. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6050. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6051. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. lt_cv_ld_exported_symbols_list=no
  6055. save_LDFLAGS=$LDFLAGS
  6056. echo "_main" > conftest.sym
  6057. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6059. /* end confdefs.h. */
  6060. int
  6061. main ()
  6062. {
  6063. ;
  6064. return 0;
  6065. }
  6066. _ACEOF
  6067. if ac_fn_c_try_link "$LINENO"; then :
  6068. lt_cv_ld_exported_symbols_list=yes
  6069. else
  6070. lt_cv_ld_exported_symbols_list=no
  6071. fi
  6072. rm -f core conftest.err conftest.$ac_objext \
  6073. conftest$ac_exeext conftest.$ac_ext
  6074. LDFLAGS="$save_LDFLAGS"
  6075. fi
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6077. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6079. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6080. if ${lt_cv_ld_force_load+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. lt_cv_ld_force_load=no
  6084. cat > conftest.c << _LT_EOF
  6085. int forced_loaded() { return 2;}
  6086. _LT_EOF
  6087. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6088. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6089. echo "$AR cru libconftest.a conftest.o" >&5
  6090. $AR cru libconftest.a conftest.o 2>&5
  6091. echo "$RANLIB libconftest.a" >&5
  6092. $RANLIB libconftest.a 2>&5
  6093. cat > conftest.c << _LT_EOF
  6094. int main() { return 0;}
  6095. _LT_EOF
  6096. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6097. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6098. _lt_result=$?
  6099. if test -s conftest.err && $GREP force_load conftest.err; then
  6100. cat conftest.err >&5
  6101. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6102. lt_cv_ld_force_load=yes
  6103. else
  6104. cat conftest.err >&5
  6105. fi
  6106. rm -f conftest.err libconftest.a conftest conftest.c
  6107. rm -rf conftest.dSYM
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6110. $as_echo "$lt_cv_ld_force_load" >&6; }
  6111. case $host_os in
  6112. rhapsody* | darwin1.[012])
  6113. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6114. darwin1.*)
  6115. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6116. darwin*) # darwin 5.x on
  6117. # if running on 10.5 or later, the deployment target defaults
  6118. # to the OS version, if on x86, and 10.4, the deployment
  6119. # target defaults to 10.4. Don't you love it?
  6120. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6121. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6122. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6123. 10.[012]*)
  6124. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6125. 10.*)
  6126. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6127. esac
  6128. ;;
  6129. esac
  6130. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6131. _lt_dar_single_mod='$single_module'
  6132. fi
  6133. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6134. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6135. else
  6136. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6137. fi
  6138. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6139. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6140. else
  6141. _lt_dsymutil=
  6142. fi
  6143. ;;
  6144. esac
  6145. ac_ext=c
  6146. ac_cpp='$CPP $CPPFLAGS'
  6147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6151. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6152. # On Suns, sometimes $CPP names a directory.
  6153. if test -n "$CPP" && test -d "$CPP"; then
  6154. CPP=
  6155. fi
  6156. if test -z "$CPP"; then
  6157. if ${ac_cv_prog_CPP+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. # Double quotes because CPP needs to be expanded
  6161. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6162. do
  6163. ac_preproc_ok=false
  6164. for ac_c_preproc_warn_flag in '' yes
  6165. do
  6166. # Use a header file that comes with gcc, so configuring glibc
  6167. # with a fresh cross-compiler works.
  6168. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6169. # <limits.h> exists even on freestanding compilers.
  6170. # On the NeXT, cc -E runs the code through the compiler's parser,
  6171. # not just through cpp. "Syntax error" is here to catch this case.
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. #ifdef __STDC__
  6175. # include <limits.h>
  6176. #else
  6177. # include <assert.h>
  6178. #endif
  6179. Syntax error
  6180. _ACEOF
  6181. if ac_fn_c_try_cpp "$LINENO"; then :
  6182. else
  6183. # Broken: fails on valid input.
  6184. continue
  6185. fi
  6186. rm -f conftest.err conftest.i conftest.$ac_ext
  6187. # OK, works on sane cases. Now check whether nonexistent headers
  6188. # can be detected and how.
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #include <ac_nonexistent.h>
  6192. _ACEOF
  6193. if ac_fn_c_try_cpp "$LINENO"; then :
  6194. # Broken: success on invalid input.
  6195. continue
  6196. else
  6197. # Passes both tests.
  6198. ac_preproc_ok=:
  6199. break
  6200. fi
  6201. rm -f conftest.err conftest.i conftest.$ac_ext
  6202. done
  6203. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6204. rm -f conftest.i conftest.err conftest.$ac_ext
  6205. if $ac_preproc_ok; then :
  6206. break
  6207. fi
  6208. done
  6209. ac_cv_prog_CPP=$CPP
  6210. fi
  6211. CPP=$ac_cv_prog_CPP
  6212. else
  6213. ac_cv_prog_CPP=$CPP
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6216. $as_echo "$CPP" >&6; }
  6217. ac_preproc_ok=false
  6218. for ac_c_preproc_warn_flag in '' yes
  6219. do
  6220. # Use a header file that comes with gcc, so configuring glibc
  6221. # with a fresh cross-compiler works.
  6222. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6223. # <limits.h> exists even on freestanding compilers.
  6224. # On the NeXT, cc -E runs the code through the compiler's parser,
  6225. # not just through cpp. "Syntax error" is here to catch this case.
  6226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6227. /* end confdefs.h. */
  6228. #ifdef __STDC__
  6229. # include <limits.h>
  6230. #else
  6231. # include <assert.h>
  6232. #endif
  6233. Syntax error
  6234. _ACEOF
  6235. if ac_fn_c_try_cpp "$LINENO"; then :
  6236. else
  6237. # Broken: fails on valid input.
  6238. continue
  6239. fi
  6240. rm -f conftest.err conftest.i conftest.$ac_ext
  6241. # OK, works on sane cases. Now check whether nonexistent headers
  6242. # can be detected and how.
  6243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6244. /* end confdefs.h. */
  6245. #include <ac_nonexistent.h>
  6246. _ACEOF
  6247. if ac_fn_c_try_cpp "$LINENO"; then :
  6248. # Broken: success on invalid input.
  6249. continue
  6250. else
  6251. # Passes both tests.
  6252. ac_preproc_ok=:
  6253. break
  6254. fi
  6255. rm -f conftest.err conftest.i conftest.$ac_ext
  6256. done
  6257. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6258. rm -f conftest.i conftest.err conftest.$ac_ext
  6259. if $ac_preproc_ok; then :
  6260. else
  6261. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6262. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6263. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6264. See \`config.log' for more details" "$LINENO" 5; }
  6265. fi
  6266. ac_ext=c
  6267. ac_cpp='$CPP $CPPFLAGS'
  6268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6272. $as_echo_n "checking for ANSI C header files... " >&6; }
  6273. if ${ac_cv_header_stdc+:} false; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <stdlib.h>
  6279. #include <stdarg.h>
  6280. #include <string.h>
  6281. #include <float.h>
  6282. int
  6283. main ()
  6284. {
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. if ac_fn_c_try_compile "$LINENO"; then :
  6290. ac_cv_header_stdc=yes
  6291. else
  6292. ac_cv_header_stdc=no
  6293. fi
  6294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6295. if test $ac_cv_header_stdc = yes; then
  6296. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6298. /* end confdefs.h. */
  6299. #include <string.h>
  6300. _ACEOF
  6301. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6302. $EGREP "memchr" >/dev/null 2>&1; then :
  6303. else
  6304. ac_cv_header_stdc=no
  6305. fi
  6306. rm -f conftest*
  6307. fi
  6308. if test $ac_cv_header_stdc = yes; then
  6309. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. #include <stdlib.h>
  6313. _ACEOF
  6314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6315. $EGREP "free" >/dev/null 2>&1; then :
  6316. else
  6317. ac_cv_header_stdc=no
  6318. fi
  6319. rm -f conftest*
  6320. fi
  6321. if test $ac_cv_header_stdc = yes; then
  6322. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6323. if test "$cross_compiling" = yes; then :
  6324. :
  6325. else
  6326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6327. /* end confdefs.h. */
  6328. #include <ctype.h>
  6329. #include <stdlib.h>
  6330. #if ((' ' & 0x0FF) == 0x020)
  6331. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6332. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6333. #else
  6334. # define ISLOWER(c) \
  6335. (('a' <= (c) && (c) <= 'i') \
  6336. || ('j' <= (c) && (c) <= 'r') \
  6337. || ('s' <= (c) && (c) <= 'z'))
  6338. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6339. #endif
  6340. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6341. int
  6342. main ()
  6343. {
  6344. int i;
  6345. for (i = 0; i < 256; i++)
  6346. if (XOR (islower (i), ISLOWER (i))
  6347. || toupper (i) != TOUPPER (i))
  6348. return 2;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. if ac_fn_c_try_run "$LINENO"; then :
  6353. else
  6354. ac_cv_header_stdc=no
  6355. fi
  6356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6357. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6358. fi
  6359. fi
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6362. $as_echo "$ac_cv_header_stdc" >&6; }
  6363. if test $ac_cv_header_stdc = yes; then
  6364. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6365. fi
  6366. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6367. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6368. inttypes.h stdint.h unistd.h
  6369. do :
  6370. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6371. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6372. "
  6373. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6374. cat >>confdefs.h <<_ACEOF
  6375. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6376. _ACEOF
  6377. fi
  6378. done
  6379. for ac_header in dlfcn.h
  6380. do :
  6381. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6382. "
  6383. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6384. cat >>confdefs.h <<_ACEOF
  6385. #define HAVE_DLFCN_H 1
  6386. _ACEOF
  6387. fi
  6388. done
  6389. # Set options
  6390. enable_win32_dll=yes
  6391. case $host in
  6392. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6393. if test -n "$ac_tool_prefix"; then
  6394. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6395. set dummy ${ac_tool_prefix}as; ac_word=$2
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6397. $as_echo_n "checking for $ac_word... " >&6; }
  6398. if ${ac_cv_prog_AS+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. if test -n "$AS"; then
  6402. ac_cv_prog_AS="$AS" # Let the user override the test.
  6403. else
  6404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6405. for as_dir in $PATH
  6406. do
  6407. IFS=$as_save_IFS
  6408. test -z "$as_dir" && as_dir=.
  6409. for ac_exec_ext in '' $ac_executable_extensions; do
  6410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6411. ac_cv_prog_AS="${ac_tool_prefix}as"
  6412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6413. break 2
  6414. fi
  6415. done
  6416. done
  6417. IFS=$as_save_IFS
  6418. fi
  6419. fi
  6420. AS=$ac_cv_prog_AS
  6421. if test -n "$AS"; then
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6423. $as_echo "$AS" >&6; }
  6424. else
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6426. $as_echo "no" >&6; }
  6427. fi
  6428. fi
  6429. if test -z "$ac_cv_prog_AS"; then
  6430. ac_ct_AS=$AS
  6431. # Extract the first word of "as", so it can be a program name with args.
  6432. set dummy as; ac_word=$2
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6434. $as_echo_n "checking for $ac_word... " >&6; }
  6435. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6436. $as_echo_n "(cached) " >&6
  6437. else
  6438. if test -n "$ac_ct_AS"; then
  6439. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6440. else
  6441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6442. for as_dir in $PATH
  6443. do
  6444. IFS=$as_save_IFS
  6445. test -z "$as_dir" && as_dir=.
  6446. for ac_exec_ext in '' $ac_executable_extensions; do
  6447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6448. ac_cv_prog_ac_ct_AS="as"
  6449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6450. break 2
  6451. fi
  6452. done
  6453. done
  6454. IFS=$as_save_IFS
  6455. fi
  6456. fi
  6457. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6458. if test -n "$ac_ct_AS"; then
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6460. $as_echo "$ac_ct_AS" >&6; }
  6461. else
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6463. $as_echo "no" >&6; }
  6464. fi
  6465. if test "x$ac_ct_AS" = x; then
  6466. AS="false"
  6467. else
  6468. case $cross_compiling:$ac_tool_warned in
  6469. yes:)
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6471. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6472. ac_tool_warned=yes ;;
  6473. esac
  6474. AS=$ac_ct_AS
  6475. fi
  6476. else
  6477. AS="$ac_cv_prog_AS"
  6478. fi
  6479. if test -n "$ac_tool_prefix"; then
  6480. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6481. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6483. $as_echo_n "checking for $ac_word... " >&6; }
  6484. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6485. $as_echo_n "(cached) " >&6
  6486. else
  6487. if test -n "$DLLTOOL"; then
  6488. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6489. else
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. test -z "$as_dir" && as_dir=.
  6495. for ac_exec_ext in '' $ac_executable_extensions; do
  6496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6497. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6499. break 2
  6500. fi
  6501. done
  6502. done
  6503. IFS=$as_save_IFS
  6504. fi
  6505. fi
  6506. DLLTOOL=$ac_cv_prog_DLLTOOL
  6507. if test -n "$DLLTOOL"; then
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6509. $as_echo "$DLLTOOL" >&6; }
  6510. else
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6512. $as_echo "no" >&6; }
  6513. fi
  6514. fi
  6515. if test -z "$ac_cv_prog_DLLTOOL"; then
  6516. ac_ct_DLLTOOL=$DLLTOOL
  6517. # Extract the first word of "dlltool", so it can be a program name with args.
  6518. set dummy dlltool; ac_word=$2
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6520. $as_echo_n "checking for $ac_word... " >&6; }
  6521. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6522. $as_echo_n "(cached) " >&6
  6523. else
  6524. if test -n "$ac_ct_DLLTOOL"; then
  6525. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6526. else
  6527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6528. for as_dir in $PATH
  6529. do
  6530. IFS=$as_save_IFS
  6531. test -z "$as_dir" && as_dir=.
  6532. for ac_exec_ext in '' $ac_executable_extensions; do
  6533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6534. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6536. break 2
  6537. fi
  6538. done
  6539. done
  6540. IFS=$as_save_IFS
  6541. fi
  6542. fi
  6543. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6544. if test -n "$ac_ct_DLLTOOL"; then
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6546. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6547. else
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6549. $as_echo "no" >&6; }
  6550. fi
  6551. if test "x$ac_ct_DLLTOOL" = x; then
  6552. DLLTOOL="false"
  6553. else
  6554. case $cross_compiling:$ac_tool_warned in
  6555. yes:)
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6557. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6558. ac_tool_warned=yes ;;
  6559. esac
  6560. DLLTOOL=$ac_ct_DLLTOOL
  6561. fi
  6562. else
  6563. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6564. fi
  6565. if test -n "$ac_tool_prefix"; then
  6566. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6567. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6569. $as_echo_n "checking for $ac_word... " >&6; }
  6570. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6571. $as_echo_n "(cached) " >&6
  6572. else
  6573. if test -n "$OBJDUMP"; then
  6574. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6575. else
  6576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6577. for as_dir in $PATH
  6578. do
  6579. IFS=$as_save_IFS
  6580. test -z "$as_dir" && as_dir=.
  6581. for ac_exec_ext in '' $ac_executable_extensions; do
  6582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6583. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6585. break 2
  6586. fi
  6587. done
  6588. done
  6589. IFS=$as_save_IFS
  6590. fi
  6591. fi
  6592. OBJDUMP=$ac_cv_prog_OBJDUMP
  6593. if test -n "$OBJDUMP"; then
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6595. $as_echo "$OBJDUMP" >&6; }
  6596. else
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6598. $as_echo "no" >&6; }
  6599. fi
  6600. fi
  6601. if test -z "$ac_cv_prog_OBJDUMP"; then
  6602. ac_ct_OBJDUMP=$OBJDUMP
  6603. # Extract the first word of "objdump", so it can be a program name with args.
  6604. set dummy objdump; ac_word=$2
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. $as_echo_n "checking for $ac_word... " >&6; }
  6607. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. if test -n "$ac_ct_OBJDUMP"; then
  6611. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. test -z "$as_dir" && as_dir=.
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6620. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6630. if test -n "$ac_ct_OBJDUMP"; then
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6632. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6633. else
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637. if test "x$ac_ct_OBJDUMP" = x; then
  6638. OBJDUMP="false"
  6639. else
  6640. case $cross_compiling:$ac_tool_warned in
  6641. yes:)
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6643. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6644. ac_tool_warned=yes ;;
  6645. esac
  6646. OBJDUMP=$ac_ct_OBJDUMP
  6647. fi
  6648. else
  6649. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6650. fi
  6651. ;;
  6652. esac
  6653. test -z "$AS" && AS=as
  6654. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6655. test -z "$OBJDUMP" && OBJDUMP=objdump
  6656. enable_dlopen=no
  6657. # Check whether --enable-shared was given.
  6658. if test "${enable_shared+set}" = set; then :
  6659. enableval=$enable_shared; p=${PACKAGE-default}
  6660. case $enableval in
  6661. yes) enable_shared=yes ;;
  6662. no) enable_shared=no ;;
  6663. *)
  6664. enable_shared=no
  6665. # Look at the argument we got. We use all the common list separators.
  6666. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6667. for pkg in $enableval; do
  6668. IFS="$lt_save_ifs"
  6669. if test "X$pkg" = "X$p"; then
  6670. enable_shared=yes
  6671. fi
  6672. done
  6673. IFS="$lt_save_ifs"
  6674. ;;
  6675. esac
  6676. else
  6677. enable_shared=yes
  6678. fi
  6679. # Check whether --enable-static was given.
  6680. if test "${enable_static+set}" = set; then :
  6681. enableval=$enable_static; p=${PACKAGE-default}
  6682. case $enableval in
  6683. yes) enable_static=yes ;;
  6684. no) enable_static=no ;;
  6685. *)
  6686. enable_static=no
  6687. # Look at the argument we got. We use all the common list separators.
  6688. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6689. for pkg in $enableval; do
  6690. IFS="$lt_save_ifs"
  6691. if test "X$pkg" = "X$p"; then
  6692. enable_static=yes
  6693. fi
  6694. done
  6695. IFS="$lt_save_ifs"
  6696. ;;
  6697. esac
  6698. else
  6699. enable_static=yes
  6700. fi
  6701. # Check whether --with-pic was given.
  6702. if test "${with_pic+set}" = set; then :
  6703. withval=$with_pic; lt_p=${PACKAGE-default}
  6704. case $withval in
  6705. yes|no) pic_mode=$withval ;;
  6706. *)
  6707. pic_mode=default
  6708. # Look at the argument we got. We use all the common list separators.
  6709. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6710. for lt_pkg in $withval; do
  6711. IFS="$lt_save_ifs"
  6712. if test "X$lt_pkg" = "X$lt_p"; then
  6713. pic_mode=yes
  6714. fi
  6715. done
  6716. IFS="$lt_save_ifs"
  6717. ;;
  6718. esac
  6719. else
  6720. pic_mode=default
  6721. fi
  6722. test -z "$pic_mode" && pic_mode=default
  6723. # Check whether --enable-fast-install was given.
  6724. if test "${enable_fast_install+set}" = set; then :
  6725. enableval=$enable_fast_install; p=${PACKAGE-default}
  6726. case $enableval in
  6727. yes) enable_fast_install=yes ;;
  6728. no) enable_fast_install=no ;;
  6729. *)
  6730. enable_fast_install=no
  6731. # Look at the argument we got. We use all the common list separators.
  6732. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6733. for pkg in $enableval; do
  6734. IFS="$lt_save_ifs"
  6735. if test "X$pkg" = "X$p"; then
  6736. enable_fast_install=yes
  6737. fi
  6738. done
  6739. IFS="$lt_save_ifs"
  6740. ;;
  6741. esac
  6742. else
  6743. enable_fast_install=yes
  6744. fi
  6745. # This can be used to rebuild libtool when needed
  6746. LIBTOOL_DEPS="$ltmain"
  6747. # Always use our own libtool.
  6748. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6749. test -z "$LN_S" && LN_S="ln -s"
  6750. if test -n "${ZSH_VERSION+set}" ; then
  6751. setopt NO_GLOB_SUBST
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6754. $as_echo_n "checking for objdir... " >&6; }
  6755. if ${lt_cv_objdir+:} false; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. rm -f .libs 2>/dev/null
  6759. mkdir .libs 2>/dev/null
  6760. if test -d .libs; then
  6761. lt_cv_objdir=.libs
  6762. else
  6763. # MS-DOS does not allow filenames that begin with a dot.
  6764. lt_cv_objdir=_libs
  6765. fi
  6766. rmdir .libs 2>/dev/null
  6767. fi
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6769. $as_echo "$lt_cv_objdir" >&6; }
  6770. objdir=$lt_cv_objdir
  6771. cat >>confdefs.h <<_ACEOF
  6772. #define LT_OBJDIR "$lt_cv_objdir/"
  6773. _ACEOF
  6774. case $host_os in
  6775. aix3*)
  6776. # AIX sometimes has problems with the GCC collect2 program. For some
  6777. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6778. # vanish in a puff of smoke.
  6779. if test "X${COLLECT_NAMES+set}" != Xset; then
  6780. COLLECT_NAMES=
  6781. export COLLECT_NAMES
  6782. fi
  6783. ;;
  6784. esac
  6785. # Global variables:
  6786. ofile=libtool
  6787. can_build_shared=yes
  6788. # All known linkers require a `.a' archive for static linking (except MSVC,
  6789. # which needs '.lib').
  6790. libext=a
  6791. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6792. old_CC="$CC"
  6793. old_CFLAGS="$CFLAGS"
  6794. # Set sane defaults for various variables
  6795. test -z "$CC" && CC=cc
  6796. test -z "$LTCC" && LTCC=$CC
  6797. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6798. test -z "$LD" && LD=ld
  6799. test -z "$ac_objext" && ac_objext=o
  6800. for cc_temp in $compiler""; do
  6801. case $cc_temp in
  6802. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6803. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6804. \-*) ;;
  6805. *) break;;
  6806. esac
  6807. done
  6808. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6809. # Only perform the check for file, if the check method requires it
  6810. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6811. case $deplibs_check_method in
  6812. file_magic*)
  6813. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6815. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6816. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. case $MAGIC_CMD in
  6820. [\\/*] | ?:[\\/]*)
  6821. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6822. ;;
  6823. *)
  6824. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6825. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6826. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6827. for ac_dir in $ac_dummy; do
  6828. IFS="$lt_save_ifs"
  6829. test -z "$ac_dir" && ac_dir=.
  6830. if test -f $ac_dir/${ac_tool_prefix}file; then
  6831. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6832. if test -n "$file_magic_test_file"; then
  6833. case $deplibs_check_method in
  6834. "file_magic "*)
  6835. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6836. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6837. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6838. $EGREP "$file_magic_regex" > /dev/null; then
  6839. :
  6840. else
  6841. cat <<_LT_EOF 1>&2
  6842. *** Warning: the command libtool uses to detect shared libraries,
  6843. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6844. *** The result is that libtool may fail to recognize shared libraries
  6845. *** as such. This will affect the creation of libtool libraries that
  6846. *** depend on shared libraries, but programs linked with such libtool
  6847. *** libraries will work regardless of this problem. Nevertheless, you
  6848. *** may want to report the problem to your system manager and/or to
  6849. *** bug-libtool@gnu.org
  6850. _LT_EOF
  6851. fi ;;
  6852. esac
  6853. fi
  6854. break
  6855. fi
  6856. done
  6857. IFS="$lt_save_ifs"
  6858. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6859. ;;
  6860. esac
  6861. fi
  6862. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6863. if test -n "$MAGIC_CMD"; then
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6865. $as_echo "$MAGIC_CMD" >&6; }
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6871. if test -n "$ac_tool_prefix"; then
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6873. $as_echo_n "checking for file... " >&6; }
  6874. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. case $MAGIC_CMD in
  6878. [\\/*] | ?:[\\/]*)
  6879. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6880. ;;
  6881. *)
  6882. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6883. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6884. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6885. for ac_dir in $ac_dummy; do
  6886. IFS="$lt_save_ifs"
  6887. test -z "$ac_dir" && ac_dir=.
  6888. if test -f $ac_dir/file; then
  6889. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6890. if test -n "$file_magic_test_file"; then
  6891. case $deplibs_check_method in
  6892. "file_magic "*)
  6893. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6894. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6895. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6896. $EGREP "$file_magic_regex" > /dev/null; then
  6897. :
  6898. else
  6899. cat <<_LT_EOF 1>&2
  6900. *** Warning: the command libtool uses to detect shared libraries,
  6901. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6902. *** The result is that libtool may fail to recognize shared libraries
  6903. *** as such. This will affect the creation of libtool libraries that
  6904. *** depend on shared libraries, but programs linked with such libtool
  6905. *** libraries will work regardless of this problem. Nevertheless, you
  6906. *** may want to report the problem to your system manager and/or to
  6907. *** bug-libtool@gnu.org
  6908. _LT_EOF
  6909. fi ;;
  6910. esac
  6911. fi
  6912. break
  6913. fi
  6914. done
  6915. IFS="$lt_save_ifs"
  6916. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6917. ;;
  6918. esac
  6919. fi
  6920. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6921. if test -n "$MAGIC_CMD"; then
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6923. $as_echo "$MAGIC_CMD" >&6; }
  6924. else
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. $as_echo "no" >&6; }
  6927. fi
  6928. else
  6929. MAGIC_CMD=:
  6930. fi
  6931. fi
  6932. fi
  6933. ;;
  6934. esac
  6935. # Use C for the default configuration in the libtool script
  6936. lt_save_CC="$CC"
  6937. ac_ext=c
  6938. ac_cpp='$CPP $CPPFLAGS'
  6939. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6940. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6941. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6942. # Source file extension for C test sources.
  6943. ac_ext=c
  6944. # Object file extension for compiled C test sources.
  6945. objext=o
  6946. objext=$objext
  6947. # Code to be used in simple compile tests
  6948. lt_simple_compile_test_code="int some_variable = 0;"
  6949. # Code to be used in simple link tests
  6950. lt_simple_link_test_code='int main(){return(0);}'
  6951. # If no C compiler was specified, use CC.
  6952. LTCC=${LTCC-"$CC"}
  6953. # If no C compiler flags were specified, use CFLAGS.
  6954. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6955. # Allow CC to be a program name with arguments.
  6956. compiler=$CC
  6957. # Save the default compiler, since it gets overwritten when the other
  6958. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6959. compiler_DEFAULT=$CC
  6960. # save warnings/boilerplate of simple test code
  6961. ac_outfile=conftest.$ac_objext
  6962. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6963. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6964. _lt_compiler_boilerplate=`cat conftest.err`
  6965. $RM conftest*
  6966. ac_outfile=conftest.$ac_objext
  6967. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6968. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6969. _lt_linker_boilerplate=`cat conftest.err`
  6970. $RM -r conftest*
  6971. ## CAVEAT EMPTOR:
  6972. ## There is no encapsulation within the following macros, do not change
  6973. ## the running order or otherwise move them around unless you know exactly
  6974. ## what you are doing...
  6975. if test -n "$compiler"; then
  6976. lt_prog_compiler_no_builtin_flag=
  6977. if test "$GCC" = yes; then
  6978. case $cc_basename in
  6979. nvcc*)
  6980. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6981. *)
  6982. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6983. esac
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6985. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6986. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6987. $as_echo_n "(cached) " >&6
  6988. else
  6989. lt_cv_prog_compiler_rtti_exceptions=no
  6990. ac_outfile=conftest.$ac_objext
  6991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6992. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6993. # Insert the option either (1) after the last *FLAGS variable, or
  6994. # (2) before a word containing "conftest.", or (3) at the end.
  6995. # Note that $ac_compile itself does not contain backslashes and begins
  6996. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6997. # The option is referenced via a variable to avoid confusing sed.
  6998. lt_compile=`echo "$ac_compile" | $SED \
  6999. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7000. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7001. -e 's:$: $lt_compiler_flag:'`
  7002. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7003. (eval "$lt_compile" 2>conftest.err)
  7004. ac_status=$?
  7005. cat conftest.err >&5
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. if (exit $ac_status) && test -s "$ac_outfile"; then
  7008. # The compiler can only warn and ignore the option if not recognized
  7009. # So say no if there are warnings other than the usual output.
  7010. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7011. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7012. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7013. lt_cv_prog_compiler_rtti_exceptions=yes
  7014. fi
  7015. fi
  7016. $RM conftest*
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7019. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7020. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7021. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7022. else
  7023. :
  7024. fi
  7025. fi
  7026. lt_prog_compiler_wl=
  7027. lt_prog_compiler_pic=
  7028. lt_prog_compiler_static=
  7029. if test "$GCC" = yes; then
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_static='-static'
  7032. case $host_os in
  7033. aix*)
  7034. # All AIX code is PIC.
  7035. if test "$host_cpu" = ia64; then
  7036. # AIX 5 now supports IA64 processor
  7037. lt_prog_compiler_static='-Bstatic'
  7038. fi
  7039. ;;
  7040. amigaos*)
  7041. case $host_cpu in
  7042. powerpc)
  7043. # see comment about AmigaOS4 .so support
  7044. lt_prog_compiler_pic='-fPIC'
  7045. ;;
  7046. m68k)
  7047. # FIXME: we need at least 68020 code to build shared libraries, but
  7048. # adding the `-m68020' flag to GCC prevents building anything better,
  7049. # like `-m68040'.
  7050. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7051. ;;
  7052. esac
  7053. ;;
  7054. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7055. # PIC is the default for these OSes.
  7056. ;;
  7057. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7058. # This hack is so that the source file can tell whether it is being
  7059. # built for inclusion in a dll (and should export symbols for example).
  7060. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7061. # (--disable-auto-import) libraries
  7062. lt_prog_compiler_pic='-DDLL_EXPORT'
  7063. ;;
  7064. darwin* | rhapsody*)
  7065. # PIC is the default on this platform
  7066. # Common symbols not allowed in MH_DYLIB files
  7067. lt_prog_compiler_pic='-fno-common'
  7068. ;;
  7069. haiku*)
  7070. # PIC is the default for Haiku.
  7071. # The "-static" flag exists, but is broken.
  7072. lt_prog_compiler_static=
  7073. ;;
  7074. hpux*)
  7075. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7076. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7077. # sets the default TLS model and affects inlining.
  7078. case $host_cpu in
  7079. hppa*64*)
  7080. # +Z the default
  7081. ;;
  7082. *)
  7083. lt_prog_compiler_pic='-fPIC'
  7084. ;;
  7085. esac
  7086. ;;
  7087. interix[3-9]*)
  7088. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7089. # Instead, we relocate shared libraries at runtime.
  7090. ;;
  7091. msdosdjgpp*)
  7092. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7093. # on systems that don't support them.
  7094. lt_prog_compiler_can_build_shared=no
  7095. enable_shared=no
  7096. ;;
  7097. *nto* | *qnx*)
  7098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7099. # it will coredump.
  7100. lt_prog_compiler_pic='-fPIC -shared'
  7101. ;;
  7102. sysv4*MP*)
  7103. if test -d /usr/nec; then
  7104. lt_prog_compiler_pic=-Kconform_pic
  7105. fi
  7106. ;;
  7107. *)
  7108. lt_prog_compiler_pic='-fPIC'
  7109. ;;
  7110. esac
  7111. case $cc_basename in
  7112. nvcc*) # Cuda Compiler Driver 2.2
  7113. lt_prog_compiler_wl='-Xlinker '
  7114. if test -n "$lt_prog_compiler_pic"; then
  7115. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7116. fi
  7117. ;;
  7118. esac
  7119. else
  7120. # PORTME Check for flag to pass linker flags through the system compiler.
  7121. case $host_os in
  7122. aix*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. if test "$host_cpu" = ia64; then
  7125. # AIX 5 now supports IA64 processor
  7126. lt_prog_compiler_static='-Bstatic'
  7127. else
  7128. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7129. fi
  7130. ;;
  7131. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7132. # This hack is so that the source file can tell whether it is being
  7133. # built for inclusion in a dll (and should export symbols for example).
  7134. lt_prog_compiler_pic='-DDLL_EXPORT'
  7135. ;;
  7136. hpux9* | hpux10* | hpux11*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7139. # not for PA HP-UX.
  7140. case $host_cpu in
  7141. hppa*64*|ia64*)
  7142. # +Z the default
  7143. ;;
  7144. *)
  7145. lt_prog_compiler_pic='+Z'
  7146. ;;
  7147. esac
  7148. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7149. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7150. ;;
  7151. irix5* | irix6* | nonstopux*)
  7152. lt_prog_compiler_wl='-Wl,'
  7153. # PIC (with -KPIC) is the default.
  7154. lt_prog_compiler_static='-non_shared'
  7155. ;;
  7156. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7157. case $cc_basename in
  7158. # old Intel for x86_64 which still supported -KPIC.
  7159. ecc*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. lt_prog_compiler_pic='-KPIC'
  7162. lt_prog_compiler_static='-static'
  7163. ;;
  7164. # icc used to be incompatible with GCC.
  7165. # ICC 10 doesn't accept -KPIC any more.
  7166. icc* | ifort*)
  7167. lt_prog_compiler_wl='-Wl,'
  7168. lt_prog_compiler_pic='-fPIC'
  7169. lt_prog_compiler_static='-static'
  7170. ;;
  7171. # Lahey Fortran 8.1.
  7172. lf95*)
  7173. lt_prog_compiler_wl='-Wl,'
  7174. lt_prog_compiler_pic='--shared'
  7175. lt_prog_compiler_static='--static'
  7176. ;;
  7177. nagfor*)
  7178. # NAG Fortran compiler
  7179. lt_prog_compiler_wl='-Wl,-Wl,,'
  7180. lt_prog_compiler_pic='-PIC'
  7181. lt_prog_compiler_static='-Bstatic'
  7182. ;;
  7183. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7184. # Portland Group compilers (*not* the Pentium gcc compiler,
  7185. # which looks to be a dead project)
  7186. lt_prog_compiler_wl='-Wl,'
  7187. lt_prog_compiler_pic='-fpic'
  7188. lt_prog_compiler_static='-Bstatic'
  7189. ;;
  7190. ccc*)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. # All Alpha code is PIC.
  7193. lt_prog_compiler_static='-non_shared'
  7194. ;;
  7195. xl* | bgxl* | bgf* | mpixl*)
  7196. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7197. lt_prog_compiler_wl='-Wl,'
  7198. lt_prog_compiler_pic='-qpic'
  7199. lt_prog_compiler_static='-qstaticlink'
  7200. ;;
  7201. *)
  7202. case `$CC -V 2>&1 | sed 5q` in
  7203. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7204. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7205. lt_prog_compiler_pic='-KPIC'
  7206. lt_prog_compiler_static='-Bstatic'
  7207. lt_prog_compiler_wl=''
  7208. ;;
  7209. *Sun\ F* | *Sun*Fortran*)
  7210. lt_prog_compiler_pic='-KPIC'
  7211. lt_prog_compiler_static='-Bstatic'
  7212. lt_prog_compiler_wl='-Qoption ld '
  7213. ;;
  7214. *Sun\ C*)
  7215. # Sun C 5.9
  7216. lt_prog_compiler_pic='-KPIC'
  7217. lt_prog_compiler_static='-Bstatic'
  7218. lt_prog_compiler_wl='-Wl,'
  7219. ;;
  7220. *Intel*\ [CF]*Compiler*)
  7221. lt_prog_compiler_wl='-Wl,'
  7222. lt_prog_compiler_pic='-fPIC'
  7223. lt_prog_compiler_static='-static'
  7224. ;;
  7225. *Portland\ Group*)
  7226. lt_prog_compiler_wl='-Wl,'
  7227. lt_prog_compiler_pic='-fpic'
  7228. lt_prog_compiler_static='-Bstatic'
  7229. ;;
  7230. esac
  7231. ;;
  7232. esac
  7233. ;;
  7234. newsos6)
  7235. lt_prog_compiler_pic='-KPIC'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. ;;
  7238. *nto* | *qnx*)
  7239. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7240. # it will coredump.
  7241. lt_prog_compiler_pic='-fPIC -shared'
  7242. ;;
  7243. osf3* | osf4* | osf5*)
  7244. lt_prog_compiler_wl='-Wl,'
  7245. # All OSF/1 code is PIC.
  7246. lt_prog_compiler_static='-non_shared'
  7247. ;;
  7248. rdos*)
  7249. lt_prog_compiler_static='-non_shared'
  7250. ;;
  7251. solaris*)
  7252. lt_prog_compiler_pic='-KPIC'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. case $cc_basename in
  7255. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7256. lt_prog_compiler_wl='-Qoption ld ';;
  7257. *)
  7258. lt_prog_compiler_wl='-Wl,';;
  7259. esac
  7260. ;;
  7261. sunos4*)
  7262. lt_prog_compiler_wl='-Qoption ld '
  7263. lt_prog_compiler_pic='-PIC'
  7264. lt_prog_compiler_static='-Bstatic'
  7265. ;;
  7266. sysv4 | sysv4.2uw2* | sysv4.3*)
  7267. lt_prog_compiler_wl='-Wl,'
  7268. lt_prog_compiler_pic='-KPIC'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. ;;
  7271. sysv4*MP*)
  7272. if test -d /usr/nec ;then
  7273. lt_prog_compiler_pic='-Kconform_pic'
  7274. lt_prog_compiler_static='-Bstatic'
  7275. fi
  7276. ;;
  7277. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7278. lt_prog_compiler_wl='-Wl,'
  7279. lt_prog_compiler_pic='-KPIC'
  7280. lt_prog_compiler_static='-Bstatic'
  7281. ;;
  7282. unicos*)
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_can_build_shared=no
  7285. ;;
  7286. uts4*)
  7287. lt_prog_compiler_pic='-pic'
  7288. lt_prog_compiler_static='-Bstatic'
  7289. ;;
  7290. *)
  7291. lt_prog_compiler_can_build_shared=no
  7292. ;;
  7293. esac
  7294. fi
  7295. case $host_os in
  7296. # For platforms which do not support PIC, -DPIC is meaningless:
  7297. *djgpp*)
  7298. lt_prog_compiler_pic=
  7299. ;;
  7300. *)
  7301. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7302. ;;
  7303. esac
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7305. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7306. if ${lt_cv_prog_compiler_pic+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7312. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7313. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7314. #
  7315. # Check to make sure the PIC flag actually works.
  7316. #
  7317. if test -n "$lt_prog_compiler_pic"; then
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7319. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7320. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7321. $as_echo_n "(cached) " >&6
  7322. else
  7323. lt_cv_prog_compiler_pic_works=no
  7324. ac_outfile=conftest.$ac_objext
  7325. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7326. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7327. # Insert the option either (1) after the last *FLAGS variable, or
  7328. # (2) before a word containing "conftest.", or (3) at the end.
  7329. # Note that $ac_compile itself does not contain backslashes and begins
  7330. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7331. # The option is referenced via a variable to avoid confusing sed.
  7332. lt_compile=`echo "$ac_compile" | $SED \
  7333. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7334. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7335. -e 's:$: $lt_compiler_flag:'`
  7336. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7337. (eval "$lt_compile" 2>conftest.err)
  7338. ac_status=$?
  7339. cat conftest.err >&5
  7340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7341. if (exit $ac_status) && test -s "$ac_outfile"; then
  7342. # The compiler can only warn and ignore the option if not recognized
  7343. # So say no if there are warnings other than the usual output.
  7344. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7345. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7346. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7347. lt_cv_prog_compiler_pic_works=yes
  7348. fi
  7349. fi
  7350. $RM conftest*
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7353. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7354. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7355. case $lt_prog_compiler_pic in
  7356. "" | " "*) ;;
  7357. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7358. esac
  7359. else
  7360. lt_prog_compiler_pic=
  7361. lt_prog_compiler_can_build_shared=no
  7362. fi
  7363. fi
  7364. #
  7365. # Check to make sure the static flag actually works.
  7366. #
  7367. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7369. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7370. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. lt_cv_prog_compiler_static_works=no
  7374. save_LDFLAGS="$LDFLAGS"
  7375. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7376. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7377. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7378. # The linker can only warn and ignore the option if not recognized
  7379. # So say no if there are warnings
  7380. if test -s conftest.err; then
  7381. # Append any errors to the config.log.
  7382. cat conftest.err 1>&5
  7383. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7385. if diff conftest.exp conftest.er2 >/dev/null; then
  7386. lt_cv_prog_compiler_static_works=yes
  7387. fi
  7388. else
  7389. lt_cv_prog_compiler_static_works=yes
  7390. fi
  7391. fi
  7392. $RM -r conftest*
  7393. LDFLAGS="$save_LDFLAGS"
  7394. fi
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7396. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7397. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7398. :
  7399. else
  7400. lt_prog_compiler_static=
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7403. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7404. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7405. $as_echo_n "(cached) " >&6
  7406. else
  7407. lt_cv_prog_compiler_c_o=no
  7408. $RM -r conftest 2>/dev/null
  7409. mkdir conftest
  7410. cd conftest
  7411. mkdir out
  7412. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7413. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7414. # Insert the option either (1) after the last *FLAGS variable, or
  7415. # (2) before a word containing "conftest.", or (3) at the end.
  7416. # Note that $ac_compile itself does not contain backslashes and begins
  7417. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7418. lt_compile=`echo "$ac_compile" | $SED \
  7419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7421. -e 's:$: $lt_compiler_flag:'`
  7422. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7423. (eval "$lt_compile" 2>out/conftest.err)
  7424. ac_status=$?
  7425. cat out/conftest.err >&5
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7428. then
  7429. # The compiler can only warn and ignore the option if not recognized
  7430. # So say no if there are warnings
  7431. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7432. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7433. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7434. lt_cv_prog_compiler_c_o=yes
  7435. fi
  7436. fi
  7437. chmod u+w . 2>&5
  7438. $RM conftest*
  7439. # SGI C++ compiler will create directory out/ii_files/ for
  7440. # template instantiation
  7441. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7442. $RM out/* && rmdir out
  7443. cd ..
  7444. $RM -r conftest
  7445. $RM conftest*
  7446. fi
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7448. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7450. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7451. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. lt_cv_prog_compiler_c_o=no
  7455. $RM -r conftest 2>/dev/null
  7456. mkdir conftest
  7457. cd conftest
  7458. mkdir out
  7459. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7460. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7461. # Insert the option either (1) after the last *FLAGS variable, or
  7462. # (2) before a word containing "conftest.", or (3) at the end.
  7463. # Note that $ac_compile itself does not contain backslashes and begins
  7464. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7465. lt_compile=`echo "$ac_compile" | $SED \
  7466. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7467. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7468. -e 's:$: $lt_compiler_flag:'`
  7469. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7470. (eval "$lt_compile" 2>out/conftest.err)
  7471. ac_status=$?
  7472. cat out/conftest.err >&5
  7473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7475. then
  7476. # The compiler can only warn and ignore the option if not recognized
  7477. # So say no if there are warnings
  7478. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7479. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7480. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7481. lt_cv_prog_compiler_c_o=yes
  7482. fi
  7483. fi
  7484. chmod u+w . 2>&5
  7485. $RM conftest*
  7486. # SGI C++ compiler will create directory out/ii_files/ for
  7487. # template instantiation
  7488. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7489. $RM out/* && rmdir out
  7490. cd ..
  7491. $RM -r conftest
  7492. $RM conftest*
  7493. fi
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7495. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7496. hard_links="nottested"
  7497. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7498. # do not overwrite the value of need_locks provided by the user
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7500. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7501. hard_links=yes
  7502. $RM conftest*
  7503. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7504. touch conftest.a
  7505. ln conftest.a conftest.b 2>&5 || hard_links=no
  7506. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7508. $as_echo "$hard_links" >&6; }
  7509. if test "$hard_links" = no; then
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7511. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7512. need_locks=warn
  7513. fi
  7514. else
  7515. need_locks=no
  7516. fi
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7518. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7519. runpath_var=
  7520. allow_undefined_flag=
  7521. always_export_symbols=no
  7522. archive_cmds=
  7523. archive_expsym_cmds=
  7524. compiler_needs_object=no
  7525. enable_shared_with_static_runtimes=no
  7526. export_dynamic_flag_spec=
  7527. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7528. hardcode_automatic=no
  7529. hardcode_direct=no
  7530. hardcode_direct_absolute=no
  7531. hardcode_libdir_flag_spec=
  7532. hardcode_libdir_separator=
  7533. hardcode_minus_L=no
  7534. hardcode_shlibpath_var=unsupported
  7535. inherit_rpath=no
  7536. link_all_deplibs=unknown
  7537. module_cmds=
  7538. module_expsym_cmds=
  7539. old_archive_from_new_cmds=
  7540. old_archive_from_expsyms_cmds=
  7541. thread_safe_flag_spec=
  7542. whole_archive_flag_spec=
  7543. # include_expsyms should be a list of space-separated symbols to be *always*
  7544. # included in the symbol list
  7545. include_expsyms=
  7546. # exclude_expsyms can be an extended regexp of symbols to exclude
  7547. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7548. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7549. # as well as any symbol that contains `d'.
  7550. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7551. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7552. # platforms (ab)use it in PIC code, but their linkers get confused if
  7553. # the symbol is explicitly referenced. Since portable code cannot
  7554. # rely on this symbol name, it's probably fine to never include it in
  7555. # preloaded symbol tables.
  7556. # Exclude shared library initialization/finalization symbols.
  7557. extract_expsyms_cmds=
  7558. case $host_os in
  7559. cygwin* | mingw* | pw32* | cegcc*)
  7560. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7561. # When not using gcc, we currently assume that we are using
  7562. # Microsoft Visual C++.
  7563. if test "$GCC" != yes; then
  7564. with_gnu_ld=no
  7565. fi
  7566. ;;
  7567. interix*)
  7568. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7569. with_gnu_ld=yes
  7570. ;;
  7571. openbsd*)
  7572. with_gnu_ld=no
  7573. ;;
  7574. esac
  7575. ld_shlibs=yes
  7576. # On some targets, GNU ld is compatible enough with the native linker
  7577. # that we're better off using the native interface for both.
  7578. lt_use_gnu_ld_interface=no
  7579. if test "$with_gnu_ld" = yes; then
  7580. case $host_os in
  7581. aix*)
  7582. # The AIX port of GNU ld has always aspired to compatibility
  7583. # with the native linker. However, as the warning in the GNU ld
  7584. # block says, versions before 2.19.5* couldn't really create working
  7585. # shared libraries, regardless of the interface used.
  7586. case `$LD -v 2>&1` in
  7587. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7588. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7589. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7590. *)
  7591. lt_use_gnu_ld_interface=yes
  7592. ;;
  7593. esac
  7594. ;;
  7595. *)
  7596. lt_use_gnu_ld_interface=yes
  7597. ;;
  7598. esac
  7599. fi
  7600. if test "$lt_use_gnu_ld_interface" = yes; then
  7601. # If archive_cmds runs LD, not CC, wlarc should be empty
  7602. wlarc='${wl}'
  7603. # Set some defaults for GNU ld with shared library support. These
  7604. # are reset later if shared libraries are not supported. Putting them
  7605. # here allows them to be overridden if necessary.
  7606. runpath_var=LD_RUN_PATH
  7607. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7608. export_dynamic_flag_spec='${wl}--export-dynamic'
  7609. # ancient GNU ld didn't support --whole-archive et. al.
  7610. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7611. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7612. else
  7613. whole_archive_flag_spec=
  7614. fi
  7615. supports_anon_versioning=no
  7616. case `$LD -v 2>&1` in
  7617. *GNU\ gold*) supports_anon_versioning=yes ;;
  7618. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7619. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7620. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7621. *\ 2.11.*) ;; # other 2.11 versions
  7622. *) supports_anon_versioning=yes ;;
  7623. esac
  7624. # See if GNU ld supports shared libraries.
  7625. case $host_os in
  7626. aix[3-9]*)
  7627. # On AIX/PPC, the GNU linker is very broken
  7628. if test "$host_cpu" != ia64; then
  7629. ld_shlibs=no
  7630. cat <<_LT_EOF 1>&2
  7631. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7632. *** to be unable to reliably create shared libraries on AIX.
  7633. *** Therefore, libtool is disabling shared libraries support. If you
  7634. *** really care for shared libraries, you may want to install binutils
  7635. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7636. *** You will then need to restart the configuration process.
  7637. _LT_EOF
  7638. fi
  7639. ;;
  7640. amigaos*)
  7641. case $host_cpu in
  7642. powerpc)
  7643. # see comment about AmigaOS4 .so support
  7644. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7645. archive_expsym_cmds=''
  7646. ;;
  7647. m68k)
  7648. 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)'
  7649. hardcode_libdir_flag_spec='-L$libdir'
  7650. hardcode_minus_L=yes
  7651. ;;
  7652. esac
  7653. ;;
  7654. beos*)
  7655. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7656. allow_undefined_flag=unsupported
  7657. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7658. # support --undefined. This deserves some investigation. FIXME
  7659. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7660. else
  7661. ld_shlibs=no
  7662. fi
  7663. ;;
  7664. cygwin* | mingw* | pw32* | cegcc*)
  7665. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7666. # as there is no search path for DLLs.
  7667. hardcode_libdir_flag_spec='-L$libdir'
  7668. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7669. allow_undefined_flag=unsupported
  7670. always_export_symbols=no
  7671. enable_shared_with_static_runtimes=yes
  7672. 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'
  7673. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7674. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7675. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7676. # If the export-symbols file already is a .def file (1st line
  7677. # is EXPORTS), use it as is; otherwise, prepend...
  7678. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7679. cp $export_symbols $output_objdir/$soname.def;
  7680. else
  7681. echo EXPORTS > $output_objdir/$soname.def;
  7682. cat $export_symbols >> $output_objdir/$soname.def;
  7683. fi~
  7684. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. haiku*)
  7690. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7691. link_all_deplibs=yes
  7692. ;;
  7693. interix[3-9]*)
  7694. hardcode_direct=no
  7695. hardcode_shlibpath_var=no
  7696. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7697. export_dynamic_flag_spec='${wl}-E'
  7698. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7699. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7700. # default) and relocated if they conflict, which is a slow very memory
  7701. # consuming and fragmenting process. To avoid this, we pick a random,
  7702. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7703. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7704. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7705. 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'
  7706. ;;
  7707. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7708. tmp_diet=no
  7709. if test "$host_os" = linux-dietlibc; then
  7710. case $cc_basename in
  7711. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7712. esac
  7713. fi
  7714. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7715. && test "$tmp_diet" = no
  7716. then
  7717. tmp_addflag=' $pic_flag'
  7718. tmp_sharedflag='-shared'
  7719. case $cc_basename,$host_cpu in
  7720. pgcc*) # Portland Group C compiler
  7721. 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'
  7722. tmp_addflag=' $pic_flag'
  7723. ;;
  7724. pgf77* | pgf90* | pgf95* | pgfortran*)
  7725. # Portland Group f77 and f90 compilers
  7726. 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'
  7727. tmp_addflag=' $pic_flag -Mnomain' ;;
  7728. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7729. tmp_addflag=' -i_dynamic' ;;
  7730. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7731. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7732. ifc* | ifort*) # Intel Fortran compiler
  7733. tmp_addflag=' -nofor_main' ;;
  7734. lf95*) # Lahey Fortran 8.1
  7735. whole_archive_flag_spec=
  7736. tmp_sharedflag='--shared' ;;
  7737. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7738. tmp_sharedflag='-qmkshrobj'
  7739. tmp_addflag= ;;
  7740. nvcc*) # Cuda Compiler Driver 2.2
  7741. 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'
  7742. compiler_needs_object=yes
  7743. ;;
  7744. esac
  7745. case `$CC -V 2>&1 | sed 5q` in
  7746. *Sun\ C*) # Sun C 5.9
  7747. 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'
  7748. compiler_needs_object=yes
  7749. tmp_sharedflag='-G' ;;
  7750. *Sun\ F*) # Sun Fortran 8.3
  7751. tmp_sharedflag='-G' ;;
  7752. esac
  7753. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7754. if test "x$supports_anon_versioning" = xyes; then
  7755. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7756. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7757. echo "local: *; };" >> $output_objdir/$libname.ver~
  7758. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7759. fi
  7760. case $cc_basename in
  7761. xlf* | bgf* | bgxlf* | mpixlf*)
  7762. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7763. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7764. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7765. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7766. if test "x$supports_anon_versioning" = xyes; then
  7767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7769. echo "local: *; };" >> $output_objdir/$libname.ver~
  7770. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7771. fi
  7772. ;;
  7773. esac
  7774. else
  7775. ld_shlibs=no
  7776. fi
  7777. ;;
  7778. netbsd*)
  7779. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7780. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7781. wlarc=
  7782. else
  7783. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7784. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7785. fi
  7786. ;;
  7787. solaris*)
  7788. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7789. ld_shlibs=no
  7790. cat <<_LT_EOF 1>&2
  7791. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7792. *** create shared libraries on Solaris systems. Therefore, libtool
  7793. *** is disabling shared libraries support. We urge you to upgrade GNU
  7794. *** binutils to release 2.9.1 or newer. Another option is to modify
  7795. *** your PATH or compiler configuration so that the native linker is
  7796. *** used, and then restart.
  7797. _LT_EOF
  7798. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7799. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7800. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7801. else
  7802. ld_shlibs=no
  7803. fi
  7804. ;;
  7805. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7806. case `$LD -v 2>&1` in
  7807. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7808. ld_shlibs=no
  7809. cat <<_LT_EOF 1>&2
  7810. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7811. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7812. *** is disabling shared libraries support. We urge you to upgrade GNU
  7813. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7814. *** your PATH or compiler configuration so that the native linker is
  7815. *** used, and then restart.
  7816. _LT_EOF
  7817. ;;
  7818. *)
  7819. # For security reasons, it is highly recommended that you always
  7820. # use absolute paths for naming shared libraries, and exclude the
  7821. # DT_RUNPATH tag from executables and libraries. But doing so
  7822. # requires that you compile everything twice, which is a pain.
  7823. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7824. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7825. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7826. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7827. else
  7828. ld_shlibs=no
  7829. fi
  7830. ;;
  7831. esac
  7832. ;;
  7833. sunos4*)
  7834. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7835. wlarc=
  7836. hardcode_direct=yes
  7837. hardcode_shlibpath_var=no
  7838. ;;
  7839. *)
  7840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7841. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7842. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7843. else
  7844. ld_shlibs=no
  7845. fi
  7846. ;;
  7847. esac
  7848. if test "$ld_shlibs" = no; then
  7849. runpath_var=
  7850. hardcode_libdir_flag_spec=
  7851. export_dynamic_flag_spec=
  7852. whole_archive_flag_spec=
  7853. fi
  7854. else
  7855. # PORTME fill in a description of your system's linker (not GNU ld)
  7856. case $host_os in
  7857. aix3*)
  7858. allow_undefined_flag=unsupported
  7859. always_export_symbols=yes
  7860. 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'
  7861. # Note: this linker hardcodes the directories in LIBPATH if there
  7862. # are no directories specified by -L.
  7863. hardcode_minus_L=yes
  7864. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7865. # Neither direct hardcoding nor static linking is supported with a
  7866. # broken collect2.
  7867. hardcode_direct=unsupported
  7868. fi
  7869. ;;
  7870. aix[4-9]*)
  7871. if test "$host_cpu" = ia64; then
  7872. # On IA64, the linker does run time linking by default, so we don't
  7873. # have to do anything special.
  7874. aix_use_runtimelinking=no
  7875. exp_sym_flag='-Bexport'
  7876. no_entry_flag=""
  7877. else
  7878. # If we're using GNU nm, then we don't want the "-C" option.
  7879. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7880. # Also, AIX nm treats weak defined symbols like other global
  7881. # defined symbols, whereas GNU nm marks them as "W".
  7882. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7883. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7884. else
  7885. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7886. fi
  7887. aix_use_runtimelinking=no
  7888. # Test if we are trying to use run time linking or normal
  7889. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7890. # need to do runtime linking.
  7891. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7892. for ld_flag in $LDFLAGS; do
  7893. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7894. aix_use_runtimelinking=yes
  7895. break
  7896. fi
  7897. done
  7898. ;;
  7899. esac
  7900. exp_sym_flag='-bexport'
  7901. no_entry_flag='-bnoentry'
  7902. fi
  7903. # When large executables or shared objects are built, AIX ld can
  7904. # have problems creating the table of contents. If linking a library
  7905. # or program results in "error TOC overflow" add -mminimal-toc to
  7906. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7907. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7908. archive_cmds=''
  7909. hardcode_direct=yes
  7910. hardcode_direct_absolute=yes
  7911. hardcode_libdir_separator=':'
  7912. link_all_deplibs=yes
  7913. file_list_spec='${wl}-f,'
  7914. if test "$GCC" = yes; then
  7915. case $host_os in aix4.[012]|aix4.[012].*)
  7916. # We only want to do this on AIX 4.2 and lower, the check
  7917. # below for broken collect2 doesn't work under 4.3+
  7918. collect2name=`${CC} -print-prog-name=collect2`
  7919. if test -f "$collect2name" &&
  7920. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7921. then
  7922. # We have reworked collect2
  7923. :
  7924. else
  7925. # We have old collect2
  7926. hardcode_direct=unsupported
  7927. # It fails to find uninstalled libraries when the uninstalled
  7928. # path is not listed in the libpath. Setting hardcode_minus_L
  7929. # to unsupported forces relinking
  7930. hardcode_minus_L=yes
  7931. hardcode_libdir_flag_spec='-L$libdir'
  7932. hardcode_libdir_separator=
  7933. fi
  7934. ;;
  7935. esac
  7936. shared_flag='-shared'
  7937. if test "$aix_use_runtimelinking" = yes; then
  7938. shared_flag="$shared_flag "'${wl}-G'
  7939. fi
  7940. else
  7941. # not using gcc
  7942. if test "$host_cpu" = ia64; then
  7943. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7944. # chokes on -Wl,-G. The following line is correct:
  7945. shared_flag='-G'
  7946. else
  7947. if test "$aix_use_runtimelinking" = yes; then
  7948. shared_flag='${wl}-G'
  7949. else
  7950. shared_flag='${wl}-bM:SRE'
  7951. fi
  7952. fi
  7953. fi
  7954. export_dynamic_flag_spec='${wl}-bexpall'
  7955. # It seems that -bexpall does not export symbols beginning with
  7956. # underscore (_), so it is better to generate a list of symbols to export.
  7957. always_export_symbols=yes
  7958. if test "$aix_use_runtimelinking" = yes; then
  7959. # Warning - without using the other runtime loading flags (-brtl),
  7960. # -berok will link without error, but may produce a broken library.
  7961. allow_undefined_flag='-berok'
  7962. # Determine the default libpath from the value encoded in an
  7963. # empty executable.
  7964. if test "${lt_cv_aix_libpath+set}" = set; then
  7965. aix_libpath=$lt_cv_aix_libpath
  7966. else
  7967. if ${lt_cv_aix_libpath_+:} false; then :
  7968. $as_echo_n "(cached) " >&6
  7969. else
  7970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7971. /* end confdefs.h. */
  7972. int
  7973. main ()
  7974. {
  7975. ;
  7976. return 0;
  7977. }
  7978. _ACEOF
  7979. if ac_fn_c_try_link "$LINENO"; then :
  7980. lt_aix_libpath_sed='
  7981. /Import File Strings/,/^$/ {
  7982. /^0/ {
  7983. s/^0 *\([^ ]*\) *$/\1/
  7984. p
  7985. }
  7986. }'
  7987. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7988. # Check for a 64-bit object if we didn't find anything.
  7989. if test -z "$lt_cv_aix_libpath_"; then
  7990. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7991. fi
  7992. fi
  7993. rm -f core conftest.err conftest.$ac_objext \
  7994. conftest$ac_exeext conftest.$ac_ext
  7995. if test -z "$lt_cv_aix_libpath_"; then
  7996. lt_cv_aix_libpath_="/usr/lib:/lib"
  7997. fi
  7998. fi
  7999. aix_libpath=$lt_cv_aix_libpath_
  8000. fi
  8001. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8002. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8003. else
  8004. if test "$host_cpu" = ia64; then
  8005. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8006. allow_undefined_flag="-z nodefs"
  8007. 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"
  8008. else
  8009. # Determine the default libpath from the value encoded in an
  8010. # empty executable.
  8011. if test "${lt_cv_aix_libpath+set}" = set; then
  8012. aix_libpath=$lt_cv_aix_libpath
  8013. else
  8014. if ${lt_cv_aix_libpath_+:} false; then :
  8015. $as_echo_n "(cached) " >&6
  8016. else
  8017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8018. /* end confdefs.h. */
  8019. int
  8020. main ()
  8021. {
  8022. ;
  8023. return 0;
  8024. }
  8025. _ACEOF
  8026. if ac_fn_c_try_link "$LINENO"; then :
  8027. lt_aix_libpath_sed='
  8028. /Import File Strings/,/^$/ {
  8029. /^0/ {
  8030. s/^0 *\([^ ]*\) *$/\1/
  8031. p
  8032. }
  8033. }'
  8034. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8035. # Check for a 64-bit object if we didn't find anything.
  8036. if test -z "$lt_cv_aix_libpath_"; then
  8037. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8038. fi
  8039. fi
  8040. rm -f core conftest.err conftest.$ac_objext \
  8041. conftest$ac_exeext conftest.$ac_ext
  8042. if test -z "$lt_cv_aix_libpath_"; then
  8043. lt_cv_aix_libpath_="/usr/lib:/lib"
  8044. fi
  8045. fi
  8046. aix_libpath=$lt_cv_aix_libpath_
  8047. fi
  8048. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8049. # Warning - without using the other run time loading flags,
  8050. # -berok will link without error, but may produce a broken library.
  8051. no_undefined_flag=' ${wl}-bernotok'
  8052. allow_undefined_flag=' ${wl}-berok'
  8053. if test "$with_gnu_ld" = yes; then
  8054. # We only use this code for GNU lds that support --whole-archive.
  8055. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8056. else
  8057. # Exported symbols can be pulled into shared objects from archives
  8058. whole_archive_flag_spec='$convenience'
  8059. fi
  8060. archive_cmds_need_lc=yes
  8061. # This is similar to how AIX traditionally builds its shared libraries.
  8062. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8063. fi
  8064. fi
  8065. ;;
  8066. amigaos*)
  8067. case $host_cpu in
  8068. powerpc)
  8069. # see comment about AmigaOS4 .so support
  8070. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8071. archive_expsym_cmds=''
  8072. ;;
  8073. m68k)
  8074. 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)'
  8075. hardcode_libdir_flag_spec='-L$libdir'
  8076. hardcode_minus_L=yes
  8077. ;;
  8078. esac
  8079. ;;
  8080. bsdi[45]*)
  8081. export_dynamic_flag_spec=-rdynamic
  8082. ;;
  8083. cygwin* | mingw* | pw32* | cegcc*)
  8084. # When not using gcc, we currently assume that we are using
  8085. # Microsoft Visual C++.
  8086. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8087. # no search path for DLLs.
  8088. case $cc_basename in
  8089. cl*)
  8090. # Native MSVC
  8091. hardcode_libdir_flag_spec=' '
  8092. allow_undefined_flag=unsupported
  8093. always_export_symbols=yes
  8094. file_list_spec='@'
  8095. # Tell ltmain to make .lib files, not .a files.
  8096. libext=lib
  8097. # Tell ltmain to make .dll files, not .so files.
  8098. shrext_cmds=".dll"
  8099. # FIXME: Setting linknames here is a bad hack.
  8100. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8101. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8102. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8103. else
  8104. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8105. fi~
  8106. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8107. linknames='
  8108. # The linker will not automatically build a static lib if we build a DLL.
  8109. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8110. enable_shared_with_static_runtimes=yes
  8111. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8112. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8113. # Don't use ranlib
  8114. old_postinstall_cmds='chmod 644 $oldlib'
  8115. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8116. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8117. case $lt_outputfile in
  8118. *.exe|*.EXE) ;;
  8119. *)
  8120. lt_outputfile="$lt_outputfile.exe"
  8121. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8122. ;;
  8123. esac~
  8124. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8125. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8126. $RM "$lt_outputfile.manifest";
  8127. fi'
  8128. ;;
  8129. *)
  8130. # Assume MSVC wrapper
  8131. hardcode_libdir_flag_spec=' '
  8132. allow_undefined_flag=unsupported
  8133. # Tell ltmain to make .lib files, not .a files.
  8134. libext=lib
  8135. # Tell ltmain to make .dll files, not .so files.
  8136. shrext_cmds=".dll"
  8137. # FIXME: Setting linknames here is a bad hack.
  8138. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8139. # The linker will automatically build a .lib file if we build a DLL.
  8140. old_archive_from_new_cmds='true'
  8141. # FIXME: Should let the user specify the lib program.
  8142. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8143. enable_shared_with_static_runtimes=yes
  8144. ;;
  8145. esac
  8146. ;;
  8147. darwin* | rhapsody*)
  8148. archive_cmds_need_lc=no
  8149. hardcode_direct=no
  8150. hardcode_automatic=yes
  8151. hardcode_shlibpath_var=unsupported
  8152. if test "$lt_cv_ld_force_load" = "yes"; then
  8153. 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\"`'
  8154. else
  8155. whole_archive_flag_spec=''
  8156. fi
  8157. link_all_deplibs=yes
  8158. allow_undefined_flag="$_lt_dar_allow_undefined"
  8159. case $cc_basename in
  8160. ifort*) _lt_dar_can_shared=yes ;;
  8161. *) _lt_dar_can_shared=$GCC ;;
  8162. esac
  8163. if test "$_lt_dar_can_shared" = "yes"; then
  8164. output_verbose_link_cmd=func_echo_all
  8165. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8166. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8167. 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}"
  8168. 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}"
  8169. else
  8170. ld_shlibs=no
  8171. fi
  8172. ;;
  8173. dgux*)
  8174. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8175. hardcode_libdir_flag_spec='-L$libdir'
  8176. hardcode_shlibpath_var=no
  8177. ;;
  8178. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8179. # support. Future versions do this automatically, but an explicit c++rt0.o
  8180. # does not break anything, and helps significantly (at the cost of a little
  8181. # extra space).
  8182. freebsd2.2*)
  8183. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8184. hardcode_libdir_flag_spec='-R$libdir'
  8185. hardcode_direct=yes
  8186. hardcode_shlibpath_var=no
  8187. ;;
  8188. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8189. freebsd2.*)
  8190. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8191. hardcode_direct=yes
  8192. hardcode_minus_L=yes
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8196. freebsd* | dragonfly*)
  8197. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8198. hardcode_libdir_flag_spec='-R$libdir'
  8199. hardcode_direct=yes
  8200. hardcode_shlibpath_var=no
  8201. ;;
  8202. hpux9*)
  8203. if test "$GCC" = yes; then
  8204. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8205. else
  8206. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8207. fi
  8208. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8209. hardcode_libdir_separator=:
  8210. hardcode_direct=yes
  8211. # hardcode_minus_L: Not really in the search PATH,
  8212. # but as the default location of the library.
  8213. hardcode_minus_L=yes
  8214. export_dynamic_flag_spec='${wl}-E'
  8215. ;;
  8216. hpux10*)
  8217. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8218. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8219. else
  8220. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8221. fi
  8222. if test "$with_gnu_ld" = no; then
  8223. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8224. hardcode_libdir_separator=:
  8225. hardcode_direct=yes
  8226. hardcode_direct_absolute=yes
  8227. export_dynamic_flag_spec='${wl}-E'
  8228. # hardcode_minus_L: Not really in the search PATH,
  8229. # but as the default location of the library.
  8230. hardcode_minus_L=yes
  8231. fi
  8232. ;;
  8233. hpux11*)
  8234. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8235. case $host_cpu in
  8236. hppa*64*)
  8237. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8238. ;;
  8239. ia64*)
  8240. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8241. ;;
  8242. *)
  8243. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. esac
  8246. else
  8247. case $host_cpu in
  8248. hppa*64*)
  8249. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. ia64*)
  8252. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. *)
  8255. # Older versions of the 11.00 compiler do not understand -b yet
  8256. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8258. $as_echo_n "checking if $CC understands -b... " >&6; }
  8259. if ${lt_cv_prog_compiler__b+:} false; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. lt_cv_prog_compiler__b=no
  8263. save_LDFLAGS="$LDFLAGS"
  8264. LDFLAGS="$LDFLAGS -b"
  8265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8267. # The linker can only warn and ignore the option if not recognized
  8268. # So say no if there are warnings
  8269. if test -s conftest.err; then
  8270. # Append any errors to the config.log.
  8271. cat conftest.err 1>&5
  8272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8274. if diff conftest.exp conftest.er2 >/dev/null; then
  8275. lt_cv_prog_compiler__b=yes
  8276. fi
  8277. else
  8278. lt_cv_prog_compiler__b=yes
  8279. fi
  8280. fi
  8281. $RM -r conftest*
  8282. LDFLAGS="$save_LDFLAGS"
  8283. fi
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8285. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8286. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8287. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8288. else
  8289. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8290. fi
  8291. ;;
  8292. esac
  8293. fi
  8294. if test "$with_gnu_ld" = no; then
  8295. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8296. hardcode_libdir_separator=:
  8297. case $host_cpu in
  8298. hppa*64*|ia64*)
  8299. hardcode_direct=no
  8300. hardcode_shlibpath_var=no
  8301. ;;
  8302. *)
  8303. hardcode_direct=yes
  8304. hardcode_direct_absolute=yes
  8305. export_dynamic_flag_spec='${wl}-E'
  8306. # hardcode_minus_L: Not really in the search PATH,
  8307. # but as the default location of the library.
  8308. hardcode_minus_L=yes
  8309. ;;
  8310. esac
  8311. fi
  8312. ;;
  8313. irix5* | irix6* | nonstopux*)
  8314. if test "$GCC" = yes; then
  8315. 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'
  8316. # Try to use the -exported_symbol ld option, if it does not
  8317. # work, assume that -exports_file does not work either and
  8318. # implicitly export all symbols.
  8319. # This should be the same for all languages, so no per-tag cache variable.
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8321. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8322. if ${lt_cv_irix_exported_symbol+:} false; then :
  8323. $as_echo_n "(cached) " >&6
  8324. else
  8325. save_LDFLAGS="$LDFLAGS"
  8326. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8328. /* end confdefs.h. */
  8329. int foo (void) { return 0; }
  8330. _ACEOF
  8331. if ac_fn_c_try_link "$LINENO"; then :
  8332. lt_cv_irix_exported_symbol=yes
  8333. else
  8334. lt_cv_irix_exported_symbol=no
  8335. fi
  8336. rm -f core conftest.err conftest.$ac_objext \
  8337. conftest$ac_exeext conftest.$ac_ext
  8338. LDFLAGS="$save_LDFLAGS"
  8339. fi
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8341. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8342. if test "$lt_cv_irix_exported_symbol" = yes; then
  8343. 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'
  8344. fi
  8345. else
  8346. 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'
  8347. 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'
  8348. fi
  8349. archive_cmds_need_lc='no'
  8350. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8351. hardcode_libdir_separator=:
  8352. inherit_rpath=yes
  8353. link_all_deplibs=yes
  8354. ;;
  8355. netbsd*)
  8356. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8357. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8358. else
  8359. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8360. fi
  8361. hardcode_libdir_flag_spec='-R$libdir'
  8362. hardcode_direct=yes
  8363. hardcode_shlibpath_var=no
  8364. ;;
  8365. newsos6)
  8366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_direct=yes
  8368. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8369. hardcode_libdir_separator=:
  8370. hardcode_shlibpath_var=no
  8371. ;;
  8372. *nto* | *qnx*)
  8373. ;;
  8374. openbsd*)
  8375. if test -f /usr/libexec/ld.so; then
  8376. hardcode_direct=yes
  8377. hardcode_shlibpath_var=no
  8378. hardcode_direct_absolute=yes
  8379. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8380. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8381. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8382. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8383. export_dynamic_flag_spec='${wl}-E'
  8384. else
  8385. case $host_os in
  8386. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8387. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8388. hardcode_libdir_flag_spec='-R$libdir'
  8389. ;;
  8390. *)
  8391. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8392. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8393. ;;
  8394. esac
  8395. fi
  8396. else
  8397. ld_shlibs=no
  8398. fi
  8399. ;;
  8400. os2*)
  8401. hardcode_libdir_flag_spec='-L$libdir'
  8402. hardcode_minus_L=yes
  8403. allow_undefined_flag=unsupported
  8404. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8405. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8406. ;;
  8407. osf3*)
  8408. if test "$GCC" = yes; then
  8409. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8410. 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'
  8411. else
  8412. allow_undefined_flag=' -expect_unresolved \*'
  8413. 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'
  8414. fi
  8415. archive_cmds_need_lc='no'
  8416. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8417. hardcode_libdir_separator=:
  8418. ;;
  8419. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8420. if test "$GCC" = yes; then
  8421. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8422. 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'
  8423. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8424. else
  8425. allow_undefined_flag=' -expect_unresolved \*'
  8426. 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'
  8427. 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~
  8428. $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'
  8429. # Both c and cxx compiler support -rpath directly
  8430. hardcode_libdir_flag_spec='-rpath $libdir'
  8431. fi
  8432. archive_cmds_need_lc='no'
  8433. hardcode_libdir_separator=:
  8434. ;;
  8435. solaris*)
  8436. no_undefined_flag=' -z defs'
  8437. if test "$GCC" = yes; then
  8438. wlarc='${wl}'
  8439. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8440. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8441. $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'
  8442. else
  8443. case `$CC -V 2>&1` in
  8444. *"Compilers 5.0"*)
  8445. wlarc=''
  8446. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8447. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8448. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8449. ;;
  8450. *)
  8451. wlarc='${wl}'
  8452. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8454. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8455. ;;
  8456. esac
  8457. fi
  8458. hardcode_libdir_flag_spec='-R$libdir'
  8459. hardcode_shlibpath_var=no
  8460. case $host_os in
  8461. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8462. *)
  8463. # The compiler driver will combine and reorder linker options,
  8464. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8465. # but is careful enough not to reorder.
  8466. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8467. if test "$GCC" = yes; then
  8468. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8469. else
  8470. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8471. fi
  8472. ;;
  8473. esac
  8474. link_all_deplibs=yes
  8475. ;;
  8476. sunos4*)
  8477. if test "x$host_vendor" = xsequent; then
  8478. # Use $CC to link under sequent, because it throws in some extra .o
  8479. # files that make .init and .fini sections work.
  8480. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8481. else
  8482. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8483. fi
  8484. hardcode_libdir_flag_spec='-L$libdir'
  8485. hardcode_direct=yes
  8486. hardcode_minus_L=yes
  8487. hardcode_shlibpath_var=no
  8488. ;;
  8489. sysv4)
  8490. case $host_vendor in
  8491. sni)
  8492. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8493. hardcode_direct=yes # is this really true???
  8494. ;;
  8495. siemens)
  8496. ## LD is ld it makes a PLAMLIB
  8497. ## CC just makes a GrossModule.
  8498. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8499. reload_cmds='$CC -r -o $output$reload_objs'
  8500. hardcode_direct=no
  8501. ;;
  8502. motorola)
  8503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8504. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8505. ;;
  8506. esac
  8507. runpath_var='LD_RUN_PATH'
  8508. hardcode_shlibpath_var=no
  8509. ;;
  8510. sysv4.3*)
  8511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8512. hardcode_shlibpath_var=no
  8513. export_dynamic_flag_spec='-Bexport'
  8514. ;;
  8515. sysv4*MP*)
  8516. if test -d /usr/nec; then
  8517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8518. hardcode_shlibpath_var=no
  8519. runpath_var=LD_RUN_PATH
  8520. hardcode_runpath_var=yes
  8521. ld_shlibs=yes
  8522. fi
  8523. ;;
  8524. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8525. no_undefined_flag='${wl}-z,text'
  8526. archive_cmds_need_lc=no
  8527. hardcode_shlibpath_var=no
  8528. runpath_var='LD_RUN_PATH'
  8529. if test "$GCC" = yes; then
  8530. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8531. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8532. else
  8533. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8535. fi
  8536. ;;
  8537. sysv5* | sco3.2v5* | sco5v6*)
  8538. # Note: We can NOT use -z defs as we might desire, because we do not
  8539. # link with -lc, and that would cause any symbols used from libc to
  8540. # always be unresolved, which means just about no library would
  8541. # ever link correctly. If we're not using GNU ld we use -z text
  8542. # though, which does catch some bad symbols but isn't as heavy-handed
  8543. # as -z defs.
  8544. no_undefined_flag='${wl}-z,text'
  8545. allow_undefined_flag='${wl}-z,nodefs'
  8546. archive_cmds_need_lc=no
  8547. hardcode_shlibpath_var=no
  8548. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8549. hardcode_libdir_separator=':'
  8550. link_all_deplibs=yes
  8551. export_dynamic_flag_spec='${wl}-Bexport'
  8552. runpath_var='LD_RUN_PATH'
  8553. if test "$GCC" = yes; then
  8554. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8556. else
  8557. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. fi
  8560. ;;
  8561. uts4*)
  8562. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8563. hardcode_libdir_flag_spec='-L$libdir'
  8564. hardcode_shlibpath_var=no
  8565. ;;
  8566. *)
  8567. ld_shlibs=no
  8568. ;;
  8569. esac
  8570. if test x$host_vendor = xsni; then
  8571. case $host in
  8572. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8573. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8574. ;;
  8575. esac
  8576. fi
  8577. fi
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8579. $as_echo "$ld_shlibs" >&6; }
  8580. test "$ld_shlibs" = no && can_build_shared=no
  8581. with_gnu_ld=$with_gnu_ld
  8582. #
  8583. # Do we need to explicitly link libc?
  8584. #
  8585. case "x$archive_cmds_need_lc" in
  8586. x|xyes)
  8587. # Assume -lc should be added
  8588. archive_cmds_need_lc=yes
  8589. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8590. case $archive_cmds in
  8591. *'~'*)
  8592. # FIXME: we may have to deal with multi-command sequences.
  8593. ;;
  8594. '$CC '*)
  8595. # Test whether the compiler implicitly links with -lc since on some
  8596. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8597. # to ld, don't add -lc before -lgcc.
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8599. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8600. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8601. $as_echo_n "(cached) " >&6
  8602. else
  8603. $RM conftest*
  8604. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8605. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8606. (eval $ac_compile) 2>&5
  8607. ac_status=$?
  8608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8609. test $ac_status = 0; } 2>conftest.err; then
  8610. soname=conftest
  8611. lib=conftest
  8612. libobjs=conftest.$ac_objext
  8613. deplibs=
  8614. wl=$lt_prog_compiler_wl
  8615. pic_flag=$lt_prog_compiler_pic
  8616. compiler_flags=-v
  8617. linker_flags=-v
  8618. verstring=
  8619. output_objdir=.
  8620. libname=conftest
  8621. lt_save_allow_undefined_flag=$allow_undefined_flag
  8622. allow_undefined_flag=
  8623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8624. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8625. ac_status=$?
  8626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8627. test $ac_status = 0; }
  8628. then
  8629. lt_cv_archive_cmds_need_lc=no
  8630. else
  8631. lt_cv_archive_cmds_need_lc=yes
  8632. fi
  8633. allow_undefined_flag=$lt_save_allow_undefined_flag
  8634. else
  8635. cat conftest.err 1>&5
  8636. fi
  8637. $RM conftest*
  8638. fi
  8639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8640. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8641. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8642. ;;
  8643. esac
  8644. fi
  8645. ;;
  8646. esac
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8648. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8649. if test "$GCC" = yes; then
  8650. case $host_os in
  8651. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8652. *) lt_awk_arg="/^libraries:/" ;;
  8653. esac
  8654. case $host_os in
  8655. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8656. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8657. esac
  8658. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8659. case $lt_search_path_spec in
  8660. *\;*)
  8661. # if the path contains ";" then we assume it to be the separator
  8662. # otherwise default to the standard path separator (i.e. ":") - it is
  8663. # assumed that no part of a normal pathname contains ";" but that should
  8664. # okay in the real world where ";" in dirpaths is itself problematic.
  8665. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8666. ;;
  8667. *)
  8668. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8669. ;;
  8670. esac
  8671. # Ok, now we have the path, separated by spaces, we can step through it
  8672. # and add multilib dir if necessary...
  8673. lt_tmp_lt_search_path_spec=
  8674. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8675. # ...but if some path already ends with the multilib dir we assume
  8676. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8677. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8678. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8679. lt_multi_os_dir=
  8680. ;;
  8681. esac
  8682. for lt_sys_path in $lt_search_path_spec; do
  8683. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8684. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8685. elif test -n "$lt_multi_os_dir"; then
  8686. test -d "$lt_sys_path" && \
  8687. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8688. fi
  8689. done
  8690. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8691. BEGIN {RS=" "; FS="/|\n";} {
  8692. lt_foo="";
  8693. lt_count=0;
  8694. for (lt_i = NF; lt_i > 0; lt_i--) {
  8695. if ($lt_i != "" && $lt_i != ".") {
  8696. if ($lt_i == "..") {
  8697. lt_count++;
  8698. } else {
  8699. if (lt_count == 0) {
  8700. lt_foo="/" $lt_i lt_foo;
  8701. } else {
  8702. lt_count--;
  8703. }
  8704. }
  8705. }
  8706. }
  8707. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8708. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8709. }'`
  8710. # AWK program above erroneously prepends '/' to C:/dos/paths
  8711. # for these hosts.
  8712. case $host_os in
  8713. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8714. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8715. esac
  8716. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8717. else
  8718. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8719. fi
  8720. library_names_spec=
  8721. libname_spec='lib$name'
  8722. soname_spec=
  8723. shrext_cmds=".so"
  8724. postinstall_cmds=
  8725. postuninstall_cmds=
  8726. finish_cmds=
  8727. finish_eval=
  8728. shlibpath_var=
  8729. shlibpath_overrides_runpath=unknown
  8730. version_type=none
  8731. dynamic_linker="$host_os ld.so"
  8732. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8733. need_lib_prefix=unknown
  8734. hardcode_into_libs=no
  8735. # when you set need_version to no, make sure it does not cause -set_version
  8736. # flags to be left without arguments
  8737. need_version=unknown
  8738. case $host_os in
  8739. aix3*)
  8740. version_type=linux # correct to gnu/linux during the next big refactor
  8741. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8742. shlibpath_var=LIBPATH
  8743. # AIX 3 has no versioning support, so we append a major version to the name.
  8744. soname_spec='${libname}${release}${shared_ext}$major'
  8745. ;;
  8746. aix[4-9]*)
  8747. version_type=linux # correct to gnu/linux during the next big refactor
  8748. need_lib_prefix=no
  8749. need_version=no
  8750. hardcode_into_libs=yes
  8751. if test "$host_cpu" = ia64; then
  8752. # AIX 5 supports IA64
  8753. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8754. shlibpath_var=LD_LIBRARY_PATH
  8755. else
  8756. # With GCC up to 2.95.x, collect2 would create an import file
  8757. # for dependence libraries. The import file would start with
  8758. # the line `#! .'. This would cause the generated library to
  8759. # depend on `.', always an invalid library. This was fixed in
  8760. # development snapshots of GCC prior to 3.0.
  8761. case $host_os in
  8762. aix4 | aix4.[01] | aix4.[01].*)
  8763. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8764. echo ' yes '
  8765. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8766. :
  8767. else
  8768. can_build_shared=no
  8769. fi
  8770. ;;
  8771. esac
  8772. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8773. # soname into executable. Probably we can add versioning support to
  8774. # collect2, so additional links can be useful in future.
  8775. if test "$aix_use_runtimelinking" = yes; then
  8776. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8777. # instead of lib<name>.a to let people know that these are not
  8778. # typical AIX shared libraries.
  8779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8780. else
  8781. # We preserve .a as extension for shared libraries through AIX4.2
  8782. # and later when we are not doing run time linking.
  8783. library_names_spec='${libname}${release}.a $libname.a'
  8784. soname_spec='${libname}${release}${shared_ext}$major'
  8785. fi
  8786. shlibpath_var=LIBPATH
  8787. fi
  8788. ;;
  8789. amigaos*)
  8790. case $host_cpu in
  8791. powerpc)
  8792. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8793. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8795. ;;
  8796. m68k)
  8797. library_names_spec='$libname.ixlibrary $libname.a'
  8798. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8799. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8800. ;;
  8801. esac
  8802. ;;
  8803. beos*)
  8804. library_names_spec='${libname}${shared_ext}'
  8805. dynamic_linker="$host_os ld.so"
  8806. shlibpath_var=LIBRARY_PATH
  8807. ;;
  8808. bsdi[45]*)
  8809. version_type=linux # correct to gnu/linux during the next big refactor
  8810. need_version=no
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8812. soname_spec='${libname}${release}${shared_ext}$major'
  8813. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8814. shlibpath_var=LD_LIBRARY_PATH
  8815. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8816. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8817. # the default ld.so.conf also contains /usr/contrib/lib and
  8818. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8819. # libtool to hard-code these into programs
  8820. ;;
  8821. cygwin* | mingw* | pw32* | cegcc*)
  8822. version_type=windows
  8823. shrext_cmds=".dll"
  8824. need_version=no
  8825. need_lib_prefix=no
  8826. case $GCC,$cc_basename in
  8827. yes,*)
  8828. # gcc
  8829. library_names_spec='$libname.dll.a'
  8830. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8831. postinstall_cmds='base_file=`basename \${file}`~
  8832. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8833. dldir=$destdir/`dirname \$dlpath`~
  8834. test -d \$dldir || mkdir -p \$dldir~
  8835. $install_prog $dir/$dlname \$dldir/$dlname~
  8836. chmod a+x \$dldir/$dlname~
  8837. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8838. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8839. fi'
  8840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8841. dlpath=$dir/\$dldll~
  8842. $RM \$dlpath'
  8843. shlibpath_overrides_runpath=yes
  8844. case $host_os in
  8845. cygwin*)
  8846. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8847. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8848. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8849. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8850. ;;
  8851. mingw* | cegcc*)
  8852. # MinGW DLLs use traditional 'lib' prefix
  8853. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8854. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8855. ;;
  8856. pw32*)
  8857. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8858. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8859. ;;
  8860. esac
  8861. dynamic_linker='Win32 ld.exe'
  8862. ;;
  8863. *,cl*)
  8864. # Native MSVC
  8865. libname_spec='$name'
  8866. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8867. library_names_spec='${libname}.dll.lib'
  8868. case $build_os in
  8869. mingw*)
  8870. sys_lib_search_path_spec=
  8871. lt_save_ifs=$IFS
  8872. IFS=';'
  8873. for lt_path in $LIB
  8874. do
  8875. IFS=$lt_save_ifs
  8876. # Let DOS variable expansion print the short 8.3 style file name.
  8877. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8878. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8879. done
  8880. IFS=$lt_save_ifs
  8881. # Convert to MSYS style.
  8882. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8883. ;;
  8884. cygwin*)
  8885. # Convert to unix form, then to dos form, then back to unix form
  8886. # but this time dos style (no spaces!) so that the unix form looks
  8887. # like /cygdrive/c/PROGRA~1:/cygdr...
  8888. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8889. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8890. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8891. ;;
  8892. *)
  8893. sys_lib_search_path_spec="$LIB"
  8894. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8895. # It is most probably a Windows format PATH.
  8896. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8897. else
  8898. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8899. fi
  8900. # FIXME: find the short name or the path components, as spaces are
  8901. # common. (e.g. "Program Files" -> "PROGRA~1")
  8902. ;;
  8903. esac
  8904. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8905. postinstall_cmds='base_file=`basename \${file}`~
  8906. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8907. dldir=$destdir/`dirname \$dlpath`~
  8908. test -d \$dldir || mkdir -p \$dldir~
  8909. $install_prog $dir/$dlname \$dldir/$dlname'
  8910. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8911. dlpath=$dir/\$dldll~
  8912. $RM \$dlpath'
  8913. shlibpath_overrides_runpath=yes
  8914. dynamic_linker='Win32 link.exe'
  8915. ;;
  8916. *)
  8917. # Assume MSVC wrapper
  8918. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8919. dynamic_linker='Win32 ld.exe'
  8920. ;;
  8921. esac
  8922. # FIXME: first we should search . and the directory the executable is in
  8923. shlibpath_var=PATH
  8924. ;;
  8925. darwin* | rhapsody*)
  8926. dynamic_linker="$host_os dyld"
  8927. version_type=darwin
  8928. need_lib_prefix=no
  8929. need_version=no
  8930. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8931. soname_spec='${libname}${release}${major}$shared_ext'
  8932. shlibpath_overrides_runpath=yes
  8933. shlibpath_var=DYLD_LIBRARY_PATH
  8934. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8935. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8936. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8937. ;;
  8938. dgux*)
  8939. version_type=linux # correct to gnu/linux during the next big refactor
  8940. need_lib_prefix=no
  8941. need_version=no
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8943. soname_spec='${libname}${release}${shared_ext}$major'
  8944. shlibpath_var=LD_LIBRARY_PATH
  8945. ;;
  8946. freebsd* | dragonfly*)
  8947. # DragonFly does not have aout. When/if they implement a new
  8948. # versioning mechanism, adjust this.
  8949. if test -x /usr/bin/objformat; then
  8950. objformat=`/usr/bin/objformat`
  8951. else
  8952. case $host_os in
  8953. freebsd[23].*) objformat=aout ;;
  8954. *) objformat=elf ;;
  8955. esac
  8956. fi
  8957. version_type=freebsd-$objformat
  8958. case $version_type in
  8959. freebsd-elf*)
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8961. need_version=no
  8962. need_lib_prefix=no
  8963. ;;
  8964. freebsd-*)
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8966. need_version=yes
  8967. ;;
  8968. esac
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. case $host_os in
  8971. freebsd2.*)
  8972. shlibpath_overrides_runpath=yes
  8973. ;;
  8974. freebsd3.[01]* | freebsdelf3.[01]*)
  8975. shlibpath_overrides_runpath=yes
  8976. hardcode_into_libs=yes
  8977. ;;
  8978. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8979. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8980. shlibpath_overrides_runpath=no
  8981. hardcode_into_libs=yes
  8982. ;;
  8983. *) # from 4.6 on, and DragonFly
  8984. shlibpath_overrides_runpath=yes
  8985. hardcode_into_libs=yes
  8986. ;;
  8987. esac
  8988. ;;
  8989. gnu*)
  8990. version_type=linux # correct to gnu/linux during the next big refactor
  8991. need_lib_prefix=no
  8992. need_version=no
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8994. soname_spec='${libname}${release}${shared_ext}$major'
  8995. shlibpath_var=LD_LIBRARY_PATH
  8996. shlibpath_overrides_runpath=no
  8997. hardcode_into_libs=yes
  8998. ;;
  8999. haiku*)
  9000. version_type=linux # correct to gnu/linux during the next big refactor
  9001. need_lib_prefix=no
  9002. need_version=no
  9003. dynamic_linker="$host_os runtime_loader"
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9005. soname_spec='${libname}${release}${shared_ext}$major'
  9006. shlibpath_var=LIBRARY_PATH
  9007. shlibpath_overrides_runpath=yes
  9008. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. hpux9* | hpux10* | hpux11*)
  9012. # Give a soname corresponding to the major version so that dld.sl refuses to
  9013. # link against other versions.
  9014. version_type=sunos
  9015. need_lib_prefix=no
  9016. need_version=no
  9017. case $host_cpu in
  9018. ia64*)
  9019. shrext_cmds='.so'
  9020. hardcode_into_libs=yes
  9021. dynamic_linker="$host_os dld.so"
  9022. shlibpath_var=LD_LIBRARY_PATH
  9023. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9025. soname_spec='${libname}${release}${shared_ext}$major'
  9026. if test "X$HPUX_IA64_MODE" = X32; then
  9027. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9028. else
  9029. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9030. fi
  9031. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9032. ;;
  9033. hppa*64*)
  9034. shrext_cmds='.sl'
  9035. hardcode_into_libs=yes
  9036. dynamic_linker="$host_os dld.sl"
  9037. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9038. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9040. soname_spec='${libname}${release}${shared_ext}$major'
  9041. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9042. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9043. ;;
  9044. *)
  9045. shrext_cmds='.sl'
  9046. dynamic_linker="$host_os dld.sl"
  9047. shlibpath_var=SHLIB_PATH
  9048. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. ;;
  9052. esac
  9053. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9054. postinstall_cmds='chmod 555 $lib'
  9055. # or fails outright, so override atomically:
  9056. install_override_mode=555
  9057. ;;
  9058. interix[3-9]*)
  9059. version_type=linux # correct to gnu/linux during the next big refactor
  9060. need_lib_prefix=no
  9061. need_version=no
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9065. shlibpath_var=LD_LIBRARY_PATH
  9066. shlibpath_overrides_runpath=no
  9067. hardcode_into_libs=yes
  9068. ;;
  9069. irix5* | irix6* | nonstopux*)
  9070. case $host_os in
  9071. nonstopux*) version_type=nonstopux ;;
  9072. *)
  9073. if test "$lt_cv_prog_gnu_ld" = yes; then
  9074. version_type=linux # correct to gnu/linux during the next big refactor
  9075. else
  9076. version_type=irix
  9077. fi ;;
  9078. esac
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9083. case $host_os in
  9084. irix5* | nonstopux*)
  9085. libsuff= shlibsuff=
  9086. ;;
  9087. *)
  9088. case $LD in # libtool.m4 will add one of these switches to LD
  9089. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9090. libsuff= shlibsuff= libmagic=32-bit;;
  9091. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9092. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9093. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9094. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9095. *) libsuff= shlibsuff= libmagic=never-match;;
  9096. esac
  9097. ;;
  9098. esac
  9099. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9100. shlibpath_overrides_runpath=no
  9101. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9102. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9103. hardcode_into_libs=yes
  9104. ;;
  9105. # No shared lib support for Linux oldld, aout, or coff.
  9106. linux*oldld* | linux*aout* | linux*coff*)
  9107. dynamic_linker=no
  9108. ;;
  9109. # This must be glibc/ELF.
  9110. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9111. version_type=linux # correct to gnu/linux during the next big refactor
  9112. need_lib_prefix=no
  9113. need_version=no
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9115. soname_spec='${libname}${release}${shared_ext}$major'
  9116. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. shlibpath_overrides_runpath=no
  9119. # Some binutils ld are patched to set DT_RUNPATH
  9120. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9121. $as_echo_n "(cached) " >&6
  9122. else
  9123. lt_cv_shlibpath_overrides_runpath=no
  9124. save_LDFLAGS=$LDFLAGS
  9125. save_libdir=$libdir
  9126. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9127. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9129. /* end confdefs.h. */
  9130. int
  9131. main ()
  9132. {
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. if ac_fn_c_try_link "$LINENO"; then :
  9138. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9139. lt_cv_shlibpath_overrides_runpath=yes
  9140. fi
  9141. fi
  9142. rm -f core conftest.err conftest.$ac_objext \
  9143. conftest$ac_exeext conftest.$ac_ext
  9144. LDFLAGS=$save_LDFLAGS
  9145. libdir=$save_libdir
  9146. fi
  9147. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9148. # This implies no fast_install, which is unacceptable.
  9149. # Some rework will be needed to allow for fast_install
  9150. # before this can be enabled.
  9151. hardcode_into_libs=yes
  9152. # Append ld.so.conf contents to the search path
  9153. if test -f /etc/ld.so.conf; then
  9154. 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' ' '`
  9155. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9156. fi
  9157. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9158. # powerpc, because MkLinux only supported shared libraries with the
  9159. # GNU dynamic linker. Since this was broken with cross compilers,
  9160. # most powerpc-linux boxes support dynamic linking these days and
  9161. # people can always --disable-shared, the test was removed, and we
  9162. # assume the GNU/Linux dynamic linker is in use.
  9163. dynamic_linker='GNU/Linux ld.so'
  9164. ;;
  9165. netbsd*)
  9166. version_type=sunos
  9167. need_lib_prefix=no
  9168. need_version=no
  9169. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9172. dynamic_linker='NetBSD (a.out) ld.so'
  9173. else
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9175. soname_spec='${libname}${release}${shared_ext}$major'
  9176. dynamic_linker='NetBSD ld.elf_so'
  9177. fi
  9178. shlibpath_var=LD_LIBRARY_PATH
  9179. shlibpath_overrides_runpath=yes
  9180. hardcode_into_libs=yes
  9181. ;;
  9182. newsos6)
  9183. version_type=linux # correct to gnu/linux during the next big refactor
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9185. shlibpath_var=LD_LIBRARY_PATH
  9186. shlibpath_overrides_runpath=yes
  9187. ;;
  9188. *nto* | *qnx*)
  9189. version_type=qnx
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9193. soname_spec='${libname}${release}${shared_ext}$major'
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. shlibpath_overrides_runpath=no
  9196. hardcode_into_libs=yes
  9197. dynamic_linker='ldqnx.so'
  9198. ;;
  9199. openbsd*)
  9200. version_type=sunos
  9201. sys_lib_dlsearch_path_spec="/usr/lib"
  9202. need_lib_prefix=no
  9203. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9204. case $host_os in
  9205. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9206. *) need_version=no ;;
  9207. esac
  9208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9212. case $host_os in
  9213. openbsd2.[89] | openbsd2.[89].*)
  9214. shlibpath_overrides_runpath=no
  9215. ;;
  9216. *)
  9217. shlibpath_overrides_runpath=yes
  9218. ;;
  9219. esac
  9220. else
  9221. shlibpath_overrides_runpath=yes
  9222. fi
  9223. ;;
  9224. os2*)
  9225. libname_spec='$name'
  9226. shrext_cmds=".dll"
  9227. need_lib_prefix=no
  9228. library_names_spec='$libname${shared_ext} $libname.a'
  9229. dynamic_linker='OS/2 ld.exe'
  9230. shlibpath_var=LIBPATH
  9231. ;;
  9232. osf3* | osf4* | osf5*)
  9233. version_type=osf
  9234. need_lib_prefix=no
  9235. need_version=no
  9236. soname_spec='${libname}${release}${shared_ext}$major'
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9238. shlibpath_var=LD_LIBRARY_PATH
  9239. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9240. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9241. ;;
  9242. rdos*)
  9243. dynamic_linker=no
  9244. ;;
  9245. solaris*)
  9246. version_type=linux # correct to gnu/linux during the next big refactor
  9247. need_lib_prefix=no
  9248. need_version=no
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9250. soname_spec='${libname}${release}${shared_ext}$major'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. shlibpath_overrides_runpath=yes
  9253. hardcode_into_libs=yes
  9254. # ldd complains unless libraries are executable
  9255. postinstall_cmds='chmod +x $lib'
  9256. ;;
  9257. sunos4*)
  9258. version_type=sunos
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9260. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9261. shlibpath_var=LD_LIBRARY_PATH
  9262. shlibpath_overrides_runpath=yes
  9263. if test "$with_gnu_ld" = yes; then
  9264. need_lib_prefix=no
  9265. fi
  9266. need_version=yes
  9267. ;;
  9268. sysv4 | sysv4.3*)
  9269. version_type=linux # correct to gnu/linux during the next big refactor
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. case $host_vendor in
  9274. sni)
  9275. shlibpath_overrides_runpath=no
  9276. need_lib_prefix=no
  9277. runpath_var=LD_RUN_PATH
  9278. ;;
  9279. siemens)
  9280. need_lib_prefix=no
  9281. ;;
  9282. motorola)
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. shlibpath_overrides_runpath=no
  9286. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9287. ;;
  9288. esac
  9289. ;;
  9290. sysv4*MP*)
  9291. if test -d /usr/nec ;then
  9292. version_type=linux # correct to gnu/linux during the next big refactor
  9293. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9294. soname_spec='$libname${shared_ext}.$major'
  9295. shlibpath_var=LD_LIBRARY_PATH
  9296. fi
  9297. ;;
  9298. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9299. version_type=freebsd-elf
  9300. need_lib_prefix=no
  9301. need_version=no
  9302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9303. soname_spec='${libname}${release}${shared_ext}$major'
  9304. shlibpath_var=LD_LIBRARY_PATH
  9305. shlibpath_overrides_runpath=yes
  9306. hardcode_into_libs=yes
  9307. if test "$with_gnu_ld" = yes; then
  9308. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9309. else
  9310. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9311. case $host_os in
  9312. sco3.2v5*)
  9313. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9314. ;;
  9315. esac
  9316. fi
  9317. sys_lib_dlsearch_path_spec='/usr/lib'
  9318. ;;
  9319. tpf*)
  9320. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9321. version_type=linux # correct to gnu/linux during the next big refactor
  9322. need_lib_prefix=no
  9323. need_version=no
  9324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9325. shlibpath_var=LD_LIBRARY_PATH
  9326. shlibpath_overrides_runpath=no
  9327. hardcode_into_libs=yes
  9328. ;;
  9329. uts4*)
  9330. version_type=linux # correct to gnu/linux during the next big refactor
  9331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. shlibpath_var=LD_LIBRARY_PATH
  9334. ;;
  9335. *)
  9336. dynamic_linker=no
  9337. ;;
  9338. esac
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9340. $as_echo "$dynamic_linker" >&6; }
  9341. test "$dynamic_linker" = no && can_build_shared=no
  9342. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9343. if test "$GCC" = yes; then
  9344. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9345. fi
  9346. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9347. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9348. fi
  9349. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9350. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9351. fi
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9353. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9354. hardcode_action=
  9355. if test -n "$hardcode_libdir_flag_spec" ||
  9356. test -n "$runpath_var" ||
  9357. test "X$hardcode_automatic" = "Xyes" ; then
  9358. # We can hardcode non-existent directories.
  9359. if test "$hardcode_direct" != no &&
  9360. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9361. # have to relink, otherwise we might link with an installed library
  9362. # when we should be linking with a yet-to-be-installed one
  9363. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9364. test "$hardcode_minus_L" != no; then
  9365. # Linking always hardcodes the temporary library directory.
  9366. hardcode_action=relink
  9367. else
  9368. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9369. hardcode_action=immediate
  9370. fi
  9371. else
  9372. # We cannot hardcode anything, or else we can only hardcode existing
  9373. # directories.
  9374. hardcode_action=unsupported
  9375. fi
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9377. $as_echo "$hardcode_action" >&6; }
  9378. if test "$hardcode_action" = relink ||
  9379. test "$inherit_rpath" = yes; then
  9380. # Fast installation is not supported
  9381. enable_fast_install=no
  9382. elif test "$shlibpath_overrides_runpath" = yes ||
  9383. test "$enable_shared" = no; then
  9384. # Fast installation is not necessary
  9385. enable_fast_install=needless
  9386. fi
  9387. if test "x$enable_dlopen" != xyes; then
  9388. enable_dlopen=unknown
  9389. enable_dlopen_self=unknown
  9390. enable_dlopen_self_static=unknown
  9391. else
  9392. lt_cv_dlopen=no
  9393. lt_cv_dlopen_libs=
  9394. case $host_os in
  9395. beos*)
  9396. lt_cv_dlopen="load_add_on"
  9397. lt_cv_dlopen_libs=
  9398. lt_cv_dlopen_self=yes
  9399. ;;
  9400. mingw* | pw32* | cegcc*)
  9401. lt_cv_dlopen="LoadLibrary"
  9402. lt_cv_dlopen_libs=
  9403. ;;
  9404. cygwin*)
  9405. lt_cv_dlopen="dlopen"
  9406. lt_cv_dlopen_libs=
  9407. ;;
  9408. darwin*)
  9409. # if libdl is installed we need to link against it
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9411. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9412. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9413. $as_echo_n "(cached) " >&6
  9414. else
  9415. ac_check_lib_save_LIBS=$LIBS
  9416. LIBS="-ldl $LIBS"
  9417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9418. /* end confdefs.h. */
  9419. /* Override any GCC internal prototype to avoid an error.
  9420. Use char because int might match the return type of a GCC
  9421. builtin and then its argument prototype would still apply. */
  9422. #ifdef __cplusplus
  9423. extern "C"
  9424. #endif
  9425. char dlopen ();
  9426. int
  9427. main ()
  9428. {
  9429. return dlopen ();
  9430. ;
  9431. return 0;
  9432. }
  9433. _ACEOF
  9434. if ac_fn_c_try_link "$LINENO"; then :
  9435. ac_cv_lib_dl_dlopen=yes
  9436. else
  9437. ac_cv_lib_dl_dlopen=no
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext \
  9440. conftest$ac_exeext conftest.$ac_ext
  9441. LIBS=$ac_check_lib_save_LIBS
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9444. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9445. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9446. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9447. else
  9448. lt_cv_dlopen="dyld"
  9449. lt_cv_dlopen_libs=
  9450. lt_cv_dlopen_self=yes
  9451. fi
  9452. ;;
  9453. *)
  9454. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9455. if test "x$ac_cv_func_shl_load" = xyes; then :
  9456. lt_cv_dlopen="shl_load"
  9457. else
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9459. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9460. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9461. $as_echo_n "(cached) " >&6
  9462. else
  9463. ac_check_lib_save_LIBS=$LIBS
  9464. LIBS="-ldld $LIBS"
  9465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9466. /* end confdefs.h. */
  9467. /* Override any GCC internal prototype to avoid an error.
  9468. Use char because int might match the return type of a GCC
  9469. builtin and then its argument prototype would still apply. */
  9470. #ifdef __cplusplus
  9471. extern "C"
  9472. #endif
  9473. char shl_load ();
  9474. int
  9475. main ()
  9476. {
  9477. return shl_load ();
  9478. ;
  9479. return 0;
  9480. }
  9481. _ACEOF
  9482. if ac_fn_c_try_link "$LINENO"; then :
  9483. ac_cv_lib_dld_shl_load=yes
  9484. else
  9485. ac_cv_lib_dld_shl_load=no
  9486. fi
  9487. rm -f core conftest.err conftest.$ac_objext \
  9488. conftest$ac_exeext conftest.$ac_ext
  9489. LIBS=$ac_check_lib_save_LIBS
  9490. fi
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9492. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9493. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9494. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9495. else
  9496. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9497. if test "x$ac_cv_func_dlopen" = xyes; then :
  9498. lt_cv_dlopen="dlopen"
  9499. else
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9501. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9502. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9503. $as_echo_n "(cached) " >&6
  9504. else
  9505. ac_check_lib_save_LIBS=$LIBS
  9506. LIBS="-ldl $LIBS"
  9507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9508. /* end confdefs.h. */
  9509. /* Override any GCC internal prototype to avoid an error.
  9510. Use char because int might match the return type of a GCC
  9511. builtin and then its argument prototype would still apply. */
  9512. #ifdef __cplusplus
  9513. extern "C"
  9514. #endif
  9515. char dlopen ();
  9516. int
  9517. main ()
  9518. {
  9519. return dlopen ();
  9520. ;
  9521. return 0;
  9522. }
  9523. _ACEOF
  9524. if ac_fn_c_try_link "$LINENO"; then :
  9525. ac_cv_lib_dl_dlopen=yes
  9526. else
  9527. ac_cv_lib_dl_dlopen=no
  9528. fi
  9529. rm -f core conftest.err conftest.$ac_objext \
  9530. conftest$ac_exeext conftest.$ac_ext
  9531. LIBS=$ac_check_lib_save_LIBS
  9532. fi
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9534. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9535. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9536. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9537. else
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9539. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9540. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. ac_check_lib_save_LIBS=$LIBS
  9544. LIBS="-lsvld $LIBS"
  9545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9546. /* end confdefs.h. */
  9547. /* Override any GCC internal prototype to avoid an error.
  9548. Use char because int might match the return type of a GCC
  9549. builtin and then its argument prototype would still apply. */
  9550. #ifdef __cplusplus
  9551. extern "C"
  9552. #endif
  9553. char dlopen ();
  9554. int
  9555. main ()
  9556. {
  9557. return dlopen ();
  9558. ;
  9559. return 0;
  9560. }
  9561. _ACEOF
  9562. if ac_fn_c_try_link "$LINENO"; then :
  9563. ac_cv_lib_svld_dlopen=yes
  9564. else
  9565. ac_cv_lib_svld_dlopen=no
  9566. fi
  9567. rm -f core conftest.err conftest.$ac_objext \
  9568. conftest$ac_exeext conftest.$ac_ext
  9569. LIBS=$ac_check_lib_save_LIBS
  9570. fi
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9572. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9573. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9574. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9575. else
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9577. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9578. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9579. $as_echo_n "(cached) " >&6
  9580. else
  9581. ac_check_lib_save_LIBS=$LIBS
  9582. LIBS="-ldld $LIBS"
  9583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9584. /* end confdefs.h. */
  9585. /* Override any GCC internal prototype to avoid an error.
  9586. Use char because int might match the return type of a GCC
  9587. builtin and then its argument prototype would still apply. */
  9588. #ifdef __cplusplus
  9589. extern "C"
  9590. #endif
  9591. char dld_link ();
  9592. int
  9593. main ()
  9594. {
  9595. return dld_link ();
  9596. ;
  9597. return 0;
  9598. }
  9599. _ACEOF
  9600. if ac_fn_c_try_link "$LINENO"; then :
  9601. ac_cv_lib_dld_dld_link=yes
  9602. else
  9603. ac_cv_lib_dld_dld_link=no
  9604. fi
  9605. rm -f core conftest.err conftest.$ac_objext \
  9606. conftest$ac_exeext conftest.$ac_ext
  9607. LIBS=$ac_check_lib_save_LIBS
  9608. fi
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9610. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9611. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9612. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9613. fi
  9614. fi
  9615. fi
  9616. fi
  9617. fi
  9618. fi
  9619. ;;
  9620. esac
  9621. if test "x$lt_cv_dlopen" != xno; then
  9622. enable_dlopen=yes
  9623. else
  9624. enable_dlopen=no
  9625. fi
  9626. case $lt_cv_dlopen in
  9627. dlopen)
  9628. save_CPPFLAGS="$CPPFLAGS"
  9629. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9630. save_LDFLAGS="$LDFLAGS"
  9631. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9632. save_LIBS="$LIBS"
  9633. LIBS="$lt_cv_dlopen_libs $LIBS"
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9635. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9636. if ${lt_cv_dlopen_self+:} false; then :
  9637. $as_echo_n "(cached) " >&6
  9638. else
  9639. if test "$cross_compiling" = yes; then :
  9640. lt_cv_dlopen_self=cross
  9641. else
  9642. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9643. lt_status=$lt_dlunknown
  9644. cat > conftest.$ac_ext <<_LT_EOF
  9645. #line $LINENO "configure"
  9646. #include "confdefs.h"
  9647. #if HAVE_DLFCN_H
  9648. #include <dlfcn.h>
  9649. #endif
  9650. #include <stdio.h>
  9651. #ifdef RTLD_GLOBAL
  9652. # define LT_DLGLOBAL RTLD_GLOBAL
  9653. #else
  9654. # ifdef DL_GLOBAL
  9655. # define LT_DLGLOBAL DL_GLOBAL
  9656. # else
  9657. # define LT_DLGLOBAL 0
  9658. # endif
  9659. #endif
  9660. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9661. find out it does not work in some platform. */
  9662. #ifndef LT_DLLAZY_OR_NOW
  9663. # ifdef RTLD_LAZY
  9664. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9665. # else
  9666. # ifdef DL_LAZY
  9667. # define LT_DLLAZY_OR_NOW DL_LAZY
  9668. # else
  9669. # ifdef RTLD_NOW
  9670. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9671. # else
  9672. # ifdef DL_NOW
  9673. # define LT_DLLAZY_OR_NOW DL_NOW
  9674. # else
  9675. # define LT_DLLAZY_OR_NOW 0
  9676. # endif
  9677. # endif
  9678. # endif
  9679. # endif
  9680. #endif
  9681. /* When -fvisbility=hidden is used, assume the code has been annotated
  9682. correspondingly for the symbols needed. */
  9683. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9684. int fnord () __attribute__((visibility("default")));
  9685. #endif
  9686. int fnord () { return 42; }
  9687. int main ()
  9688. {
  9689. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9690. int status = $lt_dlunknown;
  9691. if (self)
  9692. {
  9693. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9694. else
  9695. {
  9696. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9697. else puts (dlerror ());
  9698. }
  9699. /* dlclose (self); */
  9700. }
  9701. else
  9702. puts (dlerror ());
  9703. return status;
  9704. }
  9705. _LT_EOF
  9706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9707. (eval $ac_link) 2>&5
  9708. ac_status=$?
  9709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9710. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9711. (./conftest; exit; ) >&5 2>/dev/null
  9712. lt_status=$?
  9713. case x$lt_status in
  9714. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9715. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9716. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9717. esac
  9718. else :
  9719. # compilation failed
  9720. lt_cv_dlopen_self=no
  9721. fi
  9722. fi
  9723. rm -fr conftest*
  9724. fi
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9726. $as_echo "$lt_cv_dlopen_self" >&6; }
  9727. if test "x$lt_cv_dlopen_self" = xyes; then
  9728. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9730. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9731. if ${lt_cv_dlopen_self_static+:} false; then :
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. if test "$cross_compiling" = yes; then :
  9735. lt_cv_dlopen_self_static=cross
  9736. else
  9737. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9738. lt_status=$lt_dlunknown
  9739. cat > conftest.$ac_ext <<_LT_EOF
  9740. #line $LINENO "configure"
  9741. #include "confdefs.h"
  9742. #if HAVE_DLFCN_H
  9743. #include <dlfcn.h>
  9744. #endif
  9745. #include <stdio.h>
  9746. #ifdef RTLD_GLOBAL
  9747. # define LT_DLGLOBAL RTLD_GLOBAL
  9748. #else
  9749. # ifdef DL_GLOBAL
  9750. # define LT_DLGLOBAL DL_GLOBAL
  9751. # else
  9752. # define LT_DLGLOBAL 0
  9753. # endif
  9754. #endif
  9755. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9756. find out it does not work in some platform. */
  9757. #ifndef LT_DLLAZY_OR_NOW
  9758. # ifdef RTLD_LAZY
  9759. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9760. # else
  9761. # ifdef DL_LAZY
  9762. # define LT_DLLAZY_OR_NOW DL_LAZY
  9763. # else
  9764. # ifdef RTLD_NOW
  9765. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9766. # else
  9767. # ifdef DL_NOW
  9768. # define LT_DLLAZY_OR_NOW DL_NOW
  9769. # else
  9770. # define LT_DLLAZY_OR_NOW 0
  9771. # endif
  9772. # endif
  9773. # endif
  9774. # endif
  9775. #endif
  9776. /* When -fvisbility=hidden is used, assume the code has been annotated
  9777. correspondingly for the symbols needed. */
  9778. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9779. int fnord () __attribute__((visibility("default")));
  9780. #endif
  9781. int fnord () { return 42; }
  9782. int main ()
  9783. {
  9784. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9785. int status = $lt_dlunknown;
  9786. if (self)
  9787. {
  9788. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9789. else
  9790. {
  9791. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9792. else puts (dlerror ());
  9793. }
  9794. /* dlclose (self); */
  9795. }
  9796. else
  9797. puts (dlerror ());
  9798. return status;
  9799. }
  9800. _LT_EOF
  9801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9802. (eval $ac_link) 2>&5
  9803. ac_status=$?
  9804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9805. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9806. (./conftest; exit; ) >&5 2>/dev/null
  9807. lt_status=$?
  9808. case x$lt_status in
  9809. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9810. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9811. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9812. esac
  9813. else :
  9814. # compilation failed
  9815. lt_cv_dlopen_self_static=no
  9816. fi
  9817. fi
  9818. rm -fr conftest*
  9819. fi
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9821. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9822. fi
  9823. CPPFLAGS="$save_CPPFLAGS"
  9824. LDFLAGS="$save_LDFLAGS"
  9825. LIBS="$save_LIBS"
  9826. ;;
  9827. esac
  9828. case $lt_cv_dlopen_self in
  9829. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9830. *) enable_dlopen_self=unknown ;;
  9831. esac
  9832. case $lt_cv_dlopen_self_static in
  9833. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9834. *) enable_dlopen_self_static=unknown ;;
  9835. esac
  9836. fi
  9837. striplib=
  9838. old_striplib=
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9840. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9841. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9842. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9843. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9845. $as_echo "yes" >&6; }
  9846. else
  9847. # FIXME - insert some real tests, host_os isn't really good enough
  9848. case $host_os in
  9849. darwin*)
  9850. if test -n "$STRIP" ; then
  9851. striplib="$STRIP -x"
  9852. old_striplib="$STRIP -S"
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9854. $as_echo "yes" >&6; }
  9855. else
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9857. $as_echo "no" >&6; }
  9858. fi
  9859. ;;
  9860. *)
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9862. $as_echo "no" >&6; }
  9863. ;;
  9864. esac
  9865. fi
  9866. # Report which library types will actually be built
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9868. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9870. $as_echo "$can_build_shared" >&6; }
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9872. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9873. test "$can_build_shared" = "no" && enable_shared=no
  9874. # On AIX, shared libraries and static libraries use the same namespace, and
  9875. # are all built from PIC.
  9876. case $host_os in
  9877. aix3*)
  9878. test "$enable_shared" = yes && enable_static=no
  9879. if test -n "$RANLIB"; then
  9880. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9881. postinstall_cmds='$RANLIB $lib'
  9882. fi
  9883. ;;
  9884. aix[4-9]*)
  9885. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9886. test "$enable_shared" = yes && enable_static=no
  9887. fi
  9888. ;;
  9889. esac
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9891. $as_echo "$enable_shared" >&6; }
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9893. $as_echo_n "checking whether to build static libraries... " >&6; }
  9894. # Make sure either enable_shared or enable_static is yes.
  9895. test "$enable_shared" = yes || enable_static=yes
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9897. $as_echo "$enable_static" >&6; }
  9898. fi
  9899. ac_ext=c
  9900. ac_cpp='$CPP $CPPFLAGS'
  9901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9904. CC="$lt_save_CC"
  9905. ac_config_commands="$ac_config_commands libtool"
  9906. # Only expand once:
  9907. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9908. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9909. LT_REVISION=$SDL_INTERFACE_AGE
  9910. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9911. ac_ext=c
  9912. ac_cpp='$CPP $CPPFLAGS'
  9913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9916. if test -n "$ac_tool_prefix"; then
  9917. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9918. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9920. $as_echo_n "checking for $ac_word... " >&6; }
  9921. if ${ac_cv_prog_CC+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. if test -n "$CC"; then
  9925. ac_cv_prog_CC="$CC" # Let the user override the test.
  9926. else
  9927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9928. for as_dir in $PATH
  9929. do
  9930. IFS=$as_save_IFS
  9931. test -z "$as_dir" && as_dir=.
  9932. for ac_exec_ext in '' $ac_executable_extensions; do
  9933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9934. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9936. break 2
  9937. fi
  9938. done
  9939. done
  9940. IFS=$as_save_IFS
  9941. fi
  9942. fi
  9943. CC=$ac_cv_prog_CC
  9944. if test -n "$CC"; then
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9946. $as_echo "$CC" >&6; }
  9947. else
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9949. $as_echo "no" >&6; }
  9950. fi
  9951. fi
  9952. if test -z "$ac_cv_prog_CC"; then
  9953. ac_ct_CC=$CC
  9954. # Extract the first word of "gcc", so it can be a program name with args.
  9955. set dummy gcc; ac_word=$2
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9957. $as_echo_n "checking for $ac_word... " >&6; }
  9958. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9959. $as_echo_n "(cached) " >&6
  9960. else
  9961. if test -n "$ac_ct_CC"; then
  9962. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9963. else
  9964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9965. for as_dir in $PATH
  9966. do
  9967. IFS=$as_save_IFS
  9968. test -z "$as_dir" && as_dir=.
  9969. for ac_exec_ext in '' $ac_executable_extensions; do
  9970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9971. ac_cv_prog_ac_ct_CC="gcc"
  9972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9973. break 2
  9974. fi
  9975. done
  9976. done
  9977. IFS=$as_save_IFS
  9978. fi
  9979. fi
  9980. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9981. if test -n "$ac_ct_CC"; then
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9983. $as_echo "$ac_ct_CC" >&6; }
  9984. else
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9986. $as_echo "no" >&6; }
  9987. fi
  9988. if test "x$ac_ct_CC" = x; then
  9989. CC=""
  9990. else
  9991. case $cross_compiling:$ac_tool_warned in
  9992. yes:)
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9995. ac_tool_warned=yes ;;
  9996. esac
  9997. CC=$ac_ct_CC
  9998. fi
  9999. else
  10000. CC="$ac_cv_prog_CC"
  10001. fi
  10002. if test -z "$CC"; then
  10003. if test -n "$ac_tool_prefix"; then
  10004. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10005. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10007. $as_echo_n "checking for $ac_word... " >&6; }
  10008. if ${ac_cv_prog_CC+:} false; then :
  10009. $as_echo_n "(cached) " >&6
  10010. else
  10011. if test -n "$CC"; then
  10012. ac_cv_prog_CC="$CC" # Let the user override the test.
  10013. else
  10014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10015. for as_dir in $PATH
  10016. do
  10017. IFS=$as_save_IFS
  10018. test -z "$as_dir" && as_dir=.
  10019. for ac_exec_ext in '' $ac_executable_extensions; do
  10020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10021. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10023. break 2
  10024. fi
  10025. done
  10026. done
  10027. IFS=$as_save_IFS
  10028. fi
  10029. fi
  10030. CC=$ac_cv_prog_CC
  10031. if test -n "$CC"; then
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10033. $as_echo "$CC" >&6; }
  10034. else
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10036. $as_echo "no" >&6; }
  10037. fi
  10038. fi
  10039. fi
  10040. if test -z "$CC"; then
  10041. # Extract the first word of "cc", so it can be a program name with args.
  10042. set dummy cc; ac_word=$2
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10044. $as_echo_n "checking for $ac_word... " >&6; }
  10045. if ${ac_cv_prog_CC+:} false; then :
  10046. $as_echo_n "(cached) " >&6
  10047. else
  10048. if test -n "$CC"; then
  10049. ac_cv_prog_CC="$CC" # Let the user override the test.
  10050. else
  10051. ac_prog_rejected=no
  10052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10053. for as_dir in $PATH
  10054. do
  10055. IFS=$as_save_IFS
  10056. test -z "$as_dir" && as_dir=.
  10057. for ac_exec_ext in '' $ac_executable_extensions; do
  10058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10059. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10060. ac_prog_rejected=yes
  10061. continue
  10062. fi
  10063. ac_cv_prog_CC="cc"
  10064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10065. break 2
  10066. fi
  10067. done
  10068. done
  10069. IFS=$as_save_IFS
  10070. if test $ac_prog_rejected = yes; then
  10071. # We found a bogon in the path, so make sure we never use it.
  10072. set dummy $ac_cv_prog_CC
  10073. shift
  10074. if test $# != 0; then
  10075. # We chose a different compiler from the bogus one.
  10076. # However, it has the same basename, so the bogon will be chosen
  10077. # first if we set CC to just the basename; use the full file name.
  10078. shift
  10079. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10080. fi
  10081. fi
  10082. fi
  10083. fi
  10084. CC=$ac_cv_prog_CC
  10085. if test -n "$CC"; then
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10087. $as_echo "$CC" >&6; }
  10088. else
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10090. $as_echo "no" >&6; }
  10091. fi
  10092. fi
  10093. if test -z "$CC"; then
  10094. if test -n "$ac_tool_prefix"; then
  10095. for ac_prog in cl.exe
  10096. do
  10097. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10098. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10100. $as_echo_n "checking for $ac_word... " >&6; }
  10101. if ${ac_cv_prog_CC+:} false; then :
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. if test -n "$CC"; then
  10105. ac_cv_prog_CC="$CC" # Let the user override the test.
  10106. else
  10107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10108. for as_dir in $PATH
  10109. do
  10110. IFS=$as_save_IFS
  10111. test -z "$as_dir" && as_dir=.
  10112. for ac_exec_ext in '' $ac_executable_extensions; do
  10113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10114. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10116. break 2
  10117. fi
  10118. done
  10119. done
  10120. IFS=$as_save_IFS
  10121. fi
  10122. fi
  10123. CC=$ac_cv_prog_CC
  10124. if test -n "$CC"; then
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10126. $as_echo "$CC" >&6; }
  10127. else
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10129. $as_echo "no" >&6; }
  10130. fi
  10131. test -n "$CC" && break
  10132. done
  10133. fi
  10134. if test -z "$CC"; then
  10135. ac_ct_CC=$CC
  10136. for ac_prog in cl.exe
  10137. do
  10138. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10139. set dummy $ac_prog; ac_word=$2
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10141. $as_echo_n "checking for $ac_word... " >&6; }
  10142. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10143. $as_echo_n "(cached) " >&6
  10144. else
  10145. if test -n "$ac_ct_CC"; then
  10146. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10147. else
  10148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10149. for as_dir in $PATH
  10150. do
  10151. IFS=$as_save_IFS
  10152. test -z "$as_dir" && as_dir=.
  10153. for ac_exec_ext in '' $ac_executable_extensions; do
  10154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10155. ac_cv_prog_ac_ct_CC="$ac_prog"
  10156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10157. break 2
  10158. fi
  10159. done
  10160. done
  10161. IFS=$as_save_IFS
  10162. fi
  10163. fi
  10164. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10165. if test -n "$ac_ct_CC"; then
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10167. $as_echo "$ac_ct_CC" >&6; }
  10168. else
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10170. $as_echo "no" >&6; }
  10171. fi
  10172. test -n "$ac_ct_CC" && break
  10173. done
  10174. if test "x$ac_ct_CC" = x; then
  10175. CC=""
  10176. else
  10177. case $cross_compiling:$ac_tool_warned in
  10178. yes:)
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10180. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10181. ac_tool_warned=yes ;;
  10182. esac
  10183. CC=$ac_ct_CC
  10184. fi
  10185. fi
  10186. fi
  10187. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10188. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10189. as_fn_error $? "no acceptable C compiler found in \$PATH
  10190. See \`config.log' for more details" "$LINENO" 5; }
  10191. # Provide some information about the compiler.
  10192. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10193. set X $ac_compile
  10194. ac_compiler=$2
  10195. for ac_option in --version -v -V -qversion; do
  10196. { { ac_try="$ac_compiler $ac_option >&5"
  10197. case "(($ac_try" in
  10198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10199. *) ac_try_echo=$ac_try;;
  10200. esac
  10201. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10202. $as_echo "$ac_try_echo"; } >&5
  10203. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10204. ac_status=$?
  10205. if test -s conftest.err; then
  10206. sed '10a\
  10207. ... rest of stderr output deleted ...
  10208. 10q' conftest.err >conftest.er1
  10209. cat conftest.er1 >&5
  10210. fi
  10211. rm -f conftest.er1 conftest.err
  10212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10213. test $ac_status = 0; }
  10214. done
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10216. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10217. if ${ac_cv_c_compiler_gnu+:} false; then :
  10218. $as_echo_n "(cached) " >&6
  10219. else
  10220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10221. /* end confdefs.h. */
  10222. int
  10223. main ()
  10224. {
  10225. #ifndef __GNUC__
  10226. choke me
  10227. #endif
  10228. ;
  10229. return 0;
  10230. }
  10231. _ACEOF
  10232. if ac_fn_c_try_compile "$LINENO"; then :
  10233. ac_compiler_gnu=yes
  10234. else
  10235. ac_compiler_gnu=no
  10236. fi
  10237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10238. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10239. fi
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10241. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10242. if test $ac_compiler_gnu = yes; then
  10243. GCC=yes
  10244. else
  10245. GCC=
  10246. fi
  10247. ac_test_CFLAGS=${CFLAGS+set}
  10248. ac_save_CFLAGS=$CFLAGS
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10250. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10251. if ${ac_cv_prog_cc_g+:} false; then :
  10252. $as_echo_n "(cached) " >&6
  10253. else
  10254. ac_save_c_werror_flag=$ac_c_werror_flag
  10255. ac_c_werror_flag=yes
  10256. ac_cv_prog_cc_g=no
  10257. CFLAGS="-g"
  10258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10259. /* end confdefs.h. */
  10260. int
  10261. main ()
  10262. {
  10263. ;
  10264. return 0;
  10265. }
  10266. _ACEOF
  10267. if ac_fn_c_try_compile "$LINENO"; then :
  10268. ac_cv_prog_cc_g=yes
  10269. else
  10270. CFLAGS=""
  10271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10272. /* end confdefs.h. */
  10273. int
  10274. main ()
  10275. {
  10276. ;
  10277. return 0;
  10278. }
  10279. _ACEOF
  10280. if ac_fn_c_try_compile "$LINENO"; then :
  10281. else
  10282. ac_c_werror_flag=$ac_save_c_werror_flag
  10283. CFLAGS="-g"
  10284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10285. /* end confdefs.h. */
  10286. int
  10287. main ()
  10288. {
  10289. ;
  10290. return 0;
  10291. }
  10292. _ACEOF
  10293. if ac_fn_c_try_compile "$LINENO"; then :
  10294. ac_cv_prog_cc_g=yes
  10295. fi
  10296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10297. fi
  10298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10299. fi
  10300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10301. ac_c_werror_flag=$ac_save_c_werror_flag
  10302. fi
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10304. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10305. if test "$ac_test_CFLAGS" = set; then
  10306. CFLAGS=$ac_save_CFLAGS
  10307. elif test $ac_cv_prog_cc_g = yes; then
  10308. if test "$GCC" = yes; then
  10309. CFLAGS="-g -O2"
  10310. else
  10311. CFLAGS="-g"
  10312. fi
  10313. else
  10314. if test "$GCC" = yes; then
  10315. CFLAGS="-O2"
  10316. else
  10317. CFLAGS=
  10318. fi
  10319. fi
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10321. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10322. if ${ac_cv_prog_cc_c89+:} false; then :
  10323. $as_echo_n "(cached) " >&6
  10324. else
  10325. ac_cv_prog_cc_c89=no
  10326. ac_save_CC=$CC
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. #include <stdarg.h>
  10330. #include <stdio.h>
  10331. struct stat;
  10332. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10333. struct buf { int x; };
  10334. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10335. static char *e (p, i)
  10336. char **p;
  10337. int i;
  10338. {
  10339. return p[i];
  10340. }
  10341. static char *f (char * (*g) (char **, int), char **p, ...)
  10342. {
  10343. char *s;
  10344. va_list v;
  10345. va_start (v,p);
  10346. s = g (p, va_arg (v,int));
  10347. va_end (v);
  10348. return s;
  10349. }
  10350. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10351. function prototypes and stuff, but not '\xHH' hex character constants.
  10352. These don't provoke an error unfortunately, instead are silently treated
  10353. as 'x'. The following induces an error, until -std is added to get
  10354. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10355. array size at least. It's necessary to write '\x00'==0 to get something
  10356. that's true only with -std. */
  10357. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10358. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10359. inside strings and character constants. */
  10360. #define FOO(x) 'x'
  10361. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10362. int test (int i, double x);
  10363. struct s1 {int (*f) (int a);};
  10364. struct s2 {int (*f) (double a);};
  10365. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10366. int argc;
  10367. char **argv;
  10368. int
  10369. main ()
  10370. {
  10371. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10372. ;
  10373. return 0;
  10374. }
  10375. _ACEOF
  10376. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10377. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10378. do
  10379. CC="$ac_save_CC $ac_arg"
  10380. if ac_fn_c_try_compile "$LINENO"; then :
  10381. ac_cv_prog_cc_c89=$ac_arg
  10382. fi
  10383. rm -f core conftest.err conftest.$ac_objext
  10384. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10385. done
  10386. rm -f conftest.$ac_ext
  10387. CC=$ac_save_CC
  10388. fi
  10389. # AC_CACHE_VAL
  10390. case "x$ac_cv_prog_cc_c89" in
  10391. x)
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10393. $as_echo "none needed" >&6; } ;;
  10394. xno)
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10396. $as_echo "unsupported" >&6; } ;;
  10397. *)
  10398. CC="$CC $ac_cv_prog_cc_c89"
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10400. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10401. esac
  10402. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10403. fi
  10404. ac_ext=c
  10405. ac_cpp='$CPP $CPPFLAGS'
  10406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10409. ac_ext=cpp
  10410. ac_cpp='$CXXCPP $CPPFLAGS'
  10411. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10412. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10413. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10414. if test -z "$CXX"; then
  10415. if test -n "$CCC"; then
  10416. CXX=$CCC
  10417. else
  10418. if test -n "$ac_tool_prefix"; then
  10419. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10420. do
  10421. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10422. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10424. $as_echo_n "checking for $ac_word... " >&6; }
  10425. if ${ac_cv_prog_CXX+:} false; then :
  10426. $as_echo_n "(cached) " >&6
  10427. else
  10428. if test -n "$CXX"; then
  10429. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10430. else
  10431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10432. for as_dir in $PATH
  10433. do
  10434. IFS=$as_save_IFS
  10435. test -z "$as_dir" && as_dir=.
  10436. for ac_exec_ext in '' $ac_executable_extensions; do
  10437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10438. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10440. break 2
  10441. fi
  10442. done
  10443. done
  10444. IFS=$as_save_IFS
  10445. fi
  10446. fi
  10447. CXX=$ac_cv_prog_CXX
  10448. if test -n "$CXX"; then
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10450. $as_echo "$CXX" >&6; }
  10451. else
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10453. $as_echo "no" >&6; }
  10454. fi
  10455. test -n "$CXX" && break
  10456. done
  10457. fi
  10458. if test -z "$CXX"; then
  10459. ac_ct_CXX=$CXX
  10460. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10461. do
  10462. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10463. set dummy $ac_prog; ac_word=$2
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10465. $as_echo_n "checking for $ac_word... " >&6; }
  10466. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. if test -n "$ac_ct_CXX"; then
  10470. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10471. else
  10472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10473. for as_dir in $PATH
  10474. do
  10475. IFS=$as_save_IFS
  10476. test -z "$as_dir" && as_dir=.
  10477. for ac_exec_ext in '' $ac_executable_extensions; do
  10478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10479. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10481. break 2
  10482. fi
  10483. done
  10484. done
  10485. IFS=$as_save_IFS
  10486. fi
  10487. fi
  10488. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10489. if test -n "$ac_ct_CXX"; then
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10491. $as_echo "$ac_ct_CXX" >&6; }
  10492. else
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10494. $as_echo "no" >&6; }
  10495. fi
  10496. test -n "$ac_ct_CXX" && break
  10497. done
  10498. if test "x$ac_ct_CXX" = x; then
  10499. CXX="g++"
  10500. else
  10501. case $cross_compiling:$ac_tool_warned in
  10502. yes:)
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10504. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10505. ac_tool_warned=yes ;;
  10506. esac
  10507. CXX=$ac_ct_CXX
  10508. fi
  10509. fi
  10510. fi
  10511. fi
  10512. # Provide some information about the compiler.
  10513. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10514. set X $ac_compile
  10515. ac_compiler=$2
  10516. for ac_option in --version -v -V -qversion; do
  10517. { { ac_try="$ac_compiler $ac_option >&5"
  10518. case "(($ac_try" in
  10519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10520. *) ac_try_echo=$ac_try;;
  10521. esac
  10522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10523. $as_echo "$ac_try_echo"; } >&5
  10524. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10525. ac_status=$?
  10526. if test -s conftest.err; then
  10527. sed '10a\
  10528. ... rest of stderr output deleted ...
  10529. 10q' conftest.err >conftest.er1
  10530. cat conftest.er1 >&5
  10531. fi
  10532. rm -f conftest.er1 conftest.err
  10533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10534. test $ac_status = 0; }
  10535. done
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10537. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10538. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10539. $as_echo_n "(cached) " >&6
  10540. else
  10541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10542. /* end confdefs.h. */
  10543. int
  10544. main ()
  10545. {
  10546. #ifndef __GNUC__
  10547. choke me
  10548. #endif
  10549. ;
  10550. return 0;
  10551. }
  10552. _ACEOF
  10553. if ac_fn_cxx_try_compile "$LINENO"; then :
  10554. ac_compiler_gnu=yes
  10555. else
  10556. ac_compiler_gnu=no
  10557. fi
  10558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10559. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10560. fi
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10562. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10563. if test $ac_compiler_gnu = yes; then
  10564. GXX=yes
  10565. else
  10566. GXX=
  10567. fi
  10568. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10569. ac_save_CXXFLAGS=$CXXFLAGS
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10571. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10572. if ${ac_cv_prog_cxx_g+:} false; then :
  10573. $as_echo_n "(cached) " >&6
  10574. else
  10575. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10576. ac_cxx_werror_flag=yes
  10577. ac_cv_prog_cxx_g=no
  10578. CXXFLAGS="-g"
  10579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10580. /* end confdefs.h. */
  10581. int
  10582. main ()
  10583. {
  10584. ;
  10585. return 0;
  10586. }
  10587. _ACEOF
  10588. if ac_fn_cxx_try_compile "$LINENO"; then :
  10589. ac_cv_prog_cxx_g=yes
  10590. else
  10591. CXXFLAGS=""
  10592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10593. /* end confdefs.h. */
  10594. int
  10595. main ()
  10596. {
  10597. ;
  10598. return 0;
  10599. }
  10600. _ACEOF
  10601. if ac_fn_cxx_try_compile "$LINENO"; then :
  10602. else
  10603. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10604. CXXFLAGS="-g"
  10605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10606. /* end confdefs.h. */
  10607. int
  10608. main ()
  10609. {
  10610. ;
  10611. return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_cxx_try_compile "$LINENO"; then :
  10615. ac_cv_prog_cxx_g=yes
  10616. fi
  10617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10618. fi
  10619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10620. fi
  10621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10622. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10625. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10626. if test "$ac_test_CXXFLAGS" = set; then
  10627. CXXFLAGS=$ac_save_CXXFLAGS
  10628. elif test $ac_cv_prog_cxx_g = yes; then
  10629. if test "$GXX" = yes; then
  10630. CXXFLAGS="-g -O2"
  10631. else
  10632. CXXFLAGS="-g"
  10633. fi
  10634. else
  10635. if test "$GXX" = yes; then
  10636. CXXFLAGS="-O2"
  10637. else
  10638. CXXFLAGS=
  10639. fi
  10640. fi
  10641. ac_ext=c
  10642. ac_cpp='$CPP $CPPFLAGS'
  10643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10646. func_stripname_cnf ()
  10647. {
  10648. case ${2} in
  10649. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10650. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10651. esac
  10652. } # func_stripname_cnf
  10653. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10654. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10655. (test "X$CXX" != "Xg++"))) ; then
  10656. ac_ext=cpp
  10657. ac_cpp='$CXXCPP $CPPFLAGS'
  10658. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10659. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10660. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10662. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10663. if test -z "$CXXCPP"; then
  10664. if ${ac_cv_prog_CXXCPP+:} false; then :
  10665. $as_echo_n "(cached) " >&6
  10666. else
  10667. # Double quotes because CXXCPP needs to be expanded
  10668. for CXXCPP in "$CXX -E" "/lib/cpp"
  10669. do
  10670. ac_preproc_ok=false
  10671. for ac_cxx_preproc_warn_flag in '' yes
  10672. do
  10673. # Use a header file that comes with gcc, so configuring glibc
  10674. # with a fresh cross-compiler works.
  10675. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10676. # <limits.h> exists even on freestanding compilers.
  10677. # On the NeXT, cc -E runs the code through the compiler's parser,
  10678. # not just through cpp. "Syntax error" is here to catch this case.
  10679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10680. /* end confdefs.h. */
  10681. #ifdef __STDC__
  10682. # include <limits.h>
  10683. #else
  10684. # include <assert.h>
  10685. #endif
  10686. Syntax error
  10687. _ACEOF
  10688. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10689. else
  10690. # Broken: fails on valid input.
  10691. continue
  10692. fi
  10693. rm -f conftest.err conftest.i conftest.$ac_ext
  10694. # OK, works on sane cases. Now check whether nonexistent headers
  10695. # can be detected and how.
  10696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10697. /* end confdefs.h. */
  10698. #include <ac_nonexistent.h>
  10699. _ACEOF
  10700. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10701. # Broken: success on invalid input.
  10702. continue
  10703. else
  10704. # Passes both tests.
  10705. ac_preproc_ok=:
  10706. break
  10707. fi
  10708. rm -f conftest.err conftest.i conftest.$ac_ext
  10709. done
  10710. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10711. rm -f conftest.i conftest.err conftest.$ac_ext
  10712. if $ac_preproc_ok; then :
  10713. break
  10714. fi
  10715. done
  10716. ac_cv_prog_CXXCPP=$CXXCPP
  10717. fi
  10718. CXXCPP=$ac_cv_prog_CXXCPP
  10719. else
  10720. ac_cv_prog_CXXCPP=$CXXCPP
  10721. fi
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10723. $as_echo "$CXXCPP" >&6; }
  10724. ac_preproc_ok=false
  10725. for ac_cxx_preproc_warn_flag in '' yes
  10726. do
  10727. # Use a header file that comes with gcc, so configuring glibc
  10728. # with a fresh cross-compiler works.
  10729. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10730. # <limits.h> exists even on freestanding compilers.
  10731. # On the NeXT, cc -E runs the code through the compiler's parser,
  10732. # not just through cpp. "Syntax error" is here to catch this case.
  10733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10734. /* end confdefs.h. */
  10735. #ifdef __STDC__
  10736. # include <limits.h>
  10737. #else
  10738. # include <assert.h>
  10739. #endif
  10740. Syntax error
  10741. _ACEOF
  10742. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10743. else
  10744. # Broken: fails on valid input.
  10745. continue
  10746. fi
  10747. rm -f conftest.err conftest.i conftest.$ac_ext
  10748. # OK, works on sane cases. Now check whether nonexistent headers
  10749. # can be detected and how.
  10750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10751. /* end confdefs.h. */
  10752. #include <ac_nonexistent.h>
  10753. _ACEOF
  10754. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10755. # Broken: success on invalid input.
  10756. continue
  10757. else
  10758. # Passes both tests.
  10759. ac_preproc_ok=:
  10760. break
  10761. fi
  10762. rm -f conftest.err conftest.i conftest.$ac_ext
  10763. done
  10764. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10765. rm -f conftest.i conftest.err conftest.$ac_ext
  10766. if $ac_preproc_ok; then :
  10767. else
  10768. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10769. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10770. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10771. See \`config.log' for more details" "$LINENO" 5; }
  10772. fi
  10773. ac_ext=c
  10774. ac_cpp='$CPP $CPPFLAGS'
  10775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10778. else
  10779. _lt_caught_CXX_error=yes
  10780. fi
  10781. ac_ext=cpp
  10782. ac_cpp='$CXXCPP $CPPFLAGS'
  10783. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10784. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10785. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10786. archive_cmds_need_lc_CXX=no
  10787. allow_undefined_flag_CXX=
  10788. always_export_symbols_CXX=no
  10789. archive_expsym_cmds_CXX=
  10790. compiler_needs_object_CXX=no
  10791. export_dynamic_flag_spec_CXX=
  10792. hardcode_direct_CXX=no
  10793. hardcode_direct_absolute_CXX=no
  10794. hardcode_libdir_flag_spec_CXX=
  10795. hardcode_libdir_separator_CXX=
  10796. hardcode_minus_L_CXX=no
  10797. hardcode_shlibpath_var_CXX=unsupported
  10798. hardcode_automatic_CXX=no
  10799. inherit_rpath_CXX=no
  10800. module_cmds_CXX=
  10801. module_expsym_cmds_CXX=
  10802. link_all_deplibs_CXX=unknown
  10803. old_archive_cmds_CXX=$old_archive_cmds
  10804. reload_flag_CXX=$reload_flag
  10805. reload_cmds_CXX=$reload_cmds
  10806. no_undefined_flag_CXX=
  10807. whole_archive_flag_spec_CXX=
  10808. enable_shared_with_static_runtimes_CXX=no
  10809. # Source file extension for C++ test sources.
  10810. ac_ext=cpp
  10811. # Object file extension for compiled C++ test sources.
  10812. objext=o
  10813. objext_CXX=$objext
  10814. # No sense in running all these tests if we already determined that
  10815. # the CXX compiler isn't working. Some variables (like enable_shared)
  10816. # are currently assumed to apply to all compilers on this platform,
  10817. # and will be corrupted by setting them based on a non-working compiler.
  10818. if test "$_lt_caught_CXX_error" != yes; then
  10819. # Code to be used in simple compile tests
  10820. lt_simple_compile_test_code="int some_variable = 0;"
  10821. # Code to be used in simple link tests
  10822. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10823. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10824. # If no C compiler was specified, use CC.
  10825. LTCC=${LTCC-"$CC"}
  10826. # If no C compiler flags were specified, use CFLAGS.
  10827. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10828. # Allow CC to be a program name with arguments.
  10829. compiler=$CC
  10830. # save warnings/boilerplate of simple test code
  10831. ac_outfile=conftest.$ac_objext
  10832. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10833. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10834. _lt_compiler_boilerplate=`cat conftest.err`
  10835. $RM conftest*
  10836. ac_outfile=conftest.$ac_objext
  10837. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10838. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10839. _lt_linker_boilerplate=`cat conftest.err`
  10840. $RM -r conftest*
  10841. # Allow CC to be a program name with arguments.
  10842. lt_save_CC=$CC
  10843. lt_save_CFLAGS=$CFLAGS
  10844. lt_save_LD=$LD
  10845. lt_save_GCC=$GCC
  10846. GCC=$GXX
  10847. lt_save_with_gnu_ld=$with_gnu_ld
  10848. lt_save_path_LD=$lt_cv_path_LD
  10849. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10850. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10851. else
  10852. $as_unset lt_cv_prog_gnu_ld
  10853. fi
  10854. if test -n "${lt_cv_path_LDCXX+set}"; then
  10855. lt_cv_path_LD=$lt_cv_path_LDCXX
  10856. else
  10857. $as_unset lt_cv_path_LD
  10858. fi
  10859. test -z "${LDCXX+set}" || LD=$LDCXX
  10860. CC=${CXX-"c++"}
  10861. CFLAGS=$CXXFLAGS
  10862. compiler=$CC
  10863. compiler_CXX=$CC
  10864. for cc_temp in $compiler""; do
  10865. case $cc_temp in
  10866. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10867. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10868. \-*) ;;
  10869. *) break;;
  10870. esac
  10871. done
  10872. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10873. if test -n "$compiler"; then
  10874. # We don't want -fno-exception when compiling C++ code, so set the
  10875. # no_builtin_flag separately
  10876. if test "$GXX" = yes; then
  10877. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10878. else
  10879. lt_prog_compiler_no_builtin_flag_CXX=
  10880. fi
  10881. if test "$GXX" = yes; then
  10882. # Set up default GNU C++ configuration
  10883. # Check whether --with-gnu-ld was given.
  10884. if test "${with_gnu_ld+set}" = set; then :
  10885. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10886. else
  10887. with_gnu_ld=no
  10888. fi
  10889. ac_prog=ld
  10890. if test "$GCC" = yes; then
  10891. # Check if gcc -print-prog-name=ld gives a path.
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10893. $as_echo_n "checking for ld used by $CC... " >&6; }
  10894. case $host in
  10895. *-*-mingw*)
  10896. # gcc leaves a trailing carriage return which upsets mingw
  10897. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10898. *)
  10899. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10900. esac
  10901. case $ac_prog in
  10902. # Accept absolute paths.
  10903. [\\/]* | ?:[\\/]*)
  10904. re_direlt='/[^/][^/]*/\.\./'
  10905. # Canonicalize the pathname of ld
  10906. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10907. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10908. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10909. done
  10910. test -z "$LD" && LD="$ac_prog"
  10911. ;;
  10912. "")
  10913. # If it fails, then pretend we aren't using GCC.
  10914. ac_prog=ld
  10915. ;;
  10916. *)
  10917. # If it is relative, then search for the first ld in PATH.
  10918. with_gnu_ld=unknown
  10919. ;;
  10920. esac
  10921. elif test "$with_gnu_ld" = yes; then
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10923. $as_echo_n "checking for GNU ld... " >&6; }
  10924. else
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10926. $as_echo_n "checking for non-GNU ld... " >&6; }
  10927. fi
  10928. if ${lt_cv_path_LD+:} false; then :
  10929. $as_echo_n "(cached) " >&6
  10930. else
  10931. if test -z "$LD"; then
  10932. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10933. for ac_dir in $PATH; do
  10934. IFS="$lt_save_ifs"
  10935. test -z "$ac_dir" && ac_dir=.
  10936. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10937. lt_cv_path_LD="$ac_dir/$ac_prog"
  10938. # Check to see if the program is GNU ld. I'd rather use --version,
  10939. # but apparently some variants of GNU ld only accept -v.
  10940. # Break only if it was the GNU/non-GNU ld that we prefer.
  10941. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10942. *GNU* | *'with BFD'*)
  10943. test "$with_gnu_ld" != no && break
  10944. ;;
  10945. *)
  10946. test "$with_gnu_ld" != yes && break
  10947. ;;
  10948. esac
  10949. fi
  10950. done
  10951. IFS="$lt_save_ifs"
  10952. else
  10953. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10954. fi
  10955. fi
  10956. LD="$lt_cv_path_LD"
  10957. if test -n "$LD"; then
  10958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10959. $as_echo "$LD" >&6; }
  10960. else
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10962. $as_echo "no" >&6; }
  10963. fi
  10964. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10966. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10967. if ${lt_cv_prog_gnu_ld+:} false; then :
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10971. case `$LD -v 2>&1 </dev/null` in
  10972. *GNU* | *'with BFD'*)
  10973. lt_cv_prog_gnu_ld=yes
  10974. ;;
  10975. *)
  10976. lt_cv_prog_gnu_ld=no
  10977. ;;
  10978. esac
  10979. fi
  10980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10981. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10982. with_gnu_ld=$lt_cv_prog_gnu_ld
  10983. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10984. # archiving commands below assume that GNU ld is being used.
  10985. if test "$with_gnu_ld" = yes; then
  10986. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10987. 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'
  10988. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10989. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10990. # If archive_cmds runs LD, not CC, wlarc should be empty
  10991. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10992. # investigate it a little bit more. (MM)
  10993. wlarc='${wl}'
  10994. # ancient GNU ld didn't support --whole-archive et. al.
  10995. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10996. $GREP 'no-whole-archive' > /dev/null; then
  10997. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10998. else
  10999. whole_archive_flag_spec_CXX=
  11000. fi
  11001. else
  11002. with_gnu_ld=no
  11003. wlarc=
  11004. # A generic and very simple default shared library creation
  11005. # command for GNU C++ for the case where it uses the native
  11006. # linker, instead of GNU ld. If possible, this setting should
  11007. # overridden to take advantage of the native linker features on
  11008. # the platform it is being used on.
  11009. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11010. fi
  11011. # Commands to make compiler produce verbose output that lists
  11012. # what "hidden" libraries, object files and flags are used when
  11013. # linking a shared library.
  11014. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11015. else
  11016. GXX=no
  11017. with_gnu_ld=no
  11018. wlarc=
  11019. fi
  11020. # PORTME: fill in a description of your system's C++ link characteristics
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11022. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11023. ld_shlibs_CXX=yes
  11024. case $host_os in
  11025. aix3*)
  11026. # FIXME: insert proper C++ library support
  11027. ld_shlibs_CXX=no
  11028. ;;
  11029. aix[4-9]*)
  11030. if test "$host_cpu" = ia64; then
  11031. # On IA64, the linker does run time linking by default, so we don't
  11032. # have to do anything special.
  11033. aix_use_runtimelinking=no
  11034. exp_sym_flag='-Bexport'
  11035. no_entry_flag=""
  11036. else
  11037. aix_use_runtimelinking=no
  11038. # Test if we are trying to use run time linking or normal
  11039. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11040. # need to do runtime linking.
  11041. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11042. for ld_flag in $LDFLAGS; do
  11043. case $ld_flag in
  11044. *-brtl*)
  11045. aix_use_runtimelinking=yes
  11046. break
  11047. ;;
  11048. esac
  11049. done
  11050. ;;
  11051. esac
  11052. exp_sym_flag='-bexport'
  11053. no_entry_flag='-bnoentry'
  11054. fi
  11055. # When large executables or shared objects are built, AIX ld can
  11056. # have problems creating the table of contents. If linking a library
  11057. # or program results in "error TOC overflow" add -mminimal-toc to
  11058. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11059. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11060. archive_cmds_CXX=''
  11061. hardcode_direct_CXX=yes
  11062. hardcode_direct_absolute_CXX=yes
  11063. hardcode_libdir_separator_CXX=':'
  11064. link_all_deplibs_CXX=yes
  11065. file_list_spec_CXX='${wl}-f,'
  11066. if test "$GXX" = yes; then
  11067. case $host_os in aix4.[012]|aix4.[012].*)
  11068. # We only want to do this on AIX 4.2 and lower, the check
  11069. # below for broken collect2 doesn't work under 4.3+
  11070. collect2name=`${CC} -print-prog-name=collect2`
  11071. if test -f "$collect2name" &&
  11072. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11073. then
  11074. # We have reworked collect2
  11075. :
  11076. else
  11077. # We have old collect2
  11078. hardcode_direct_CXX=unsupported
  11079. # It fails to find uninstalled libraries when the uninstalled
  11080. # path is not listed in the libpath. Setting hardcode_minus_L
  11081. # to unsupported forces relinking
  11082. hardcode_minus_L_CXX=yes
  11083. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11084. hardcode_libdir_separator_CXX=
  11085. fi
  11086. esac
  11087. shared_flag='-shared'
  11088. if test "$aix_use_runtimelinking" = yes; then
  11089. shared_flag="$shared_flag "'${wl}-G'
  11090. fi
  11091. else
  11092. # not using gcc
  11093. if test "$host_cpu" = ia64; then
  11094. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11095. # chokes on -Wl,-G. The following line is correct:
  11096. shared_flag='-G'
  11097. else
  11098. if test "$aix_use_runtimelinking" = yes; then
  11099. shared_flag='${wl}-G'
  11100. else
  11101. shared_flag='${wl}-bM:SRE'
  11102. fi
  11103. fi
  11104. fi
  11105. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11106. # It seems that -bexpall does not export symbols beginning with
  11107. # underscore (_), so it is better to generate a list of symbols to
  11108. # export.
  11109. always_export_symbols_CXX=yes
  11110. if test "$aix_use_runtimelinking" = yes; then
  11111. # Warning - without using the other runtime loading flags (-brtl),
  11112. # -berok will link without error, but may produce a broken library.
  11113. allow_undefined_flag_CXX='-berok'
  11114. # Determine the default libpath from the value encoded in an empty
  11115. # executable.
  11116. if test "${lt_cv_aix_libpath+set}" = set; then
  11117. aix_libpath=$lt_cv_aix_libpath
  11118. else
  11119. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11120. $as_echo_n "(cached) " >&6
  11121. else
  11122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11123. /* end confdefs.h. */
  11124. int
  11125. main ()
  11126. {
  11127. ;
  11128. return 0;
  11129. }
  11130. _ACEOF
  11131. if ac_fn_cxx_try_link "$LINENO"; then :
  11132. lt_aix_libpath_sed='
  11133. /Import File Strings/,/^$/ {
  11134. /^0/ {
  11135. s/^0 *\([^ ]*\) *$/\1/
  11136. p
  11137. }
  11138. }'
  11139. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11140. # Check for a 64-bit object if we didn't find anything.
  11141. if test -z "$lt_cv_aix_libpath__CXX"; then
  11142. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11143. fi
  11144. fi
  11145. rm -f core conftest.err conftest.$ac_objext \
  11146. conftest$ac_exeext conftest.$ac_ext
  11147. if test -z "$lt_cv_aix_libpath__CXX"; then
  11148. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11149. fi
  11150. fi
  11151. aix_libpath=$lt_cv_aix_libpath__CXX
  11152. fi
  11153. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11154. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11155. else
  11156. if test "$host_cpu" = ia64; then
  11157. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11158. allow_undefined_flag_CXX="-z nodefs"
  11159. 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"
  11160. else
  11161. # Determine the default libpath from the value encoded in an
  11162. # empty executable.
  11163. if test "${lt_cv_aix_libpath+set}" = set; then
  11164. aix_libpath=$lt_cv_aix_libpath
  11165. else
  11166. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. int
  11172. main ()
  11173. {
  11174. ;
  11175. return 0;
  11176. }
  11177. _ACEOF
  11178. if ac_fn_cxx_try_link "$LINENO"; then :
  11179. lt_aix_libpath_sed='
  11180. /Import File Strings/,/^$/ {
  11181. /^0/ {
  11182. s/^0 *\([^ ]*\) *$/\1/
  11183. p
  11184. }
  11185. }'
  11186. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11187. # Check for a 64-bit object if we didn't find anything.
  11188. if test -z "$lt_cv_aix_libpath__CXX"; then
  11189. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11190. fi
  11191. fi
  11192. rm -f core conftest.err conftest.$ac_objext \
  11193. conftest$ac_exeext conftest.$ac_ext
  11194. if test -z "$lt_cv_aix_libpath__CXX"; then
  11195. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11196. fi
  11197. fi
  11198. aix_libpath=$lt_cv_aix_libpath__CXX
  11199. fi
  11200. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11201. # Warning - without using the other run time loading flags,
  11202. # -berok will link without error, but may produce a broken library.
  11203. no_undefined_flag_CXX=' ${wl}-bernotok'
  11204. allow_undefined_flag_CXX=' ${wl}-berok'
  11205. if test "$with_gnu_ld" = yes; then
  11206. # We only use this code for GNU lds that support --whole-archive.
  11207. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11208. else
  11209. # Exported symbols can be pulled into shared objects from archives
  11210. whole_archive_flag_spec_CXX='$convenience'
  11211. fi
  11212. archive_cmds_need_lc_CXX=yes
  11213. # This is similar to how AIX traditionally builds its shared
  11214. # libraries.
  11215. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11216. fi
  11217. fi
  11218. ;;
  11219. beos*)
  11220. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11221. allow_undefined_flag_CXX=unsupported
  11222. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11223. # support --undefined. This deserves some investigation. FIXME
  11224. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11225. else
  11226. ld_shlibs_CXX=no
  11227. fi
  11228. ;;
  11229. chorus*)
  11230. case $cc_basename in
  11231. *)
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. esac
  11236. ;;
  11237. cygwin* | mingw* | pw32* | cegcc*)
  11238. case $GXX,$cc_basename in
  11239. ,cl* | no,cl*)
  11240. # Native MSVC
  11241. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11242. # no search path for DLLs.
  11243. hardcode_libdir_flag_spec_CXX=' '
  11244. allow_undefined_flag_CXX=unsupported
  11245. always_export_symbols_CXX=yes
  11246. file_list_spec_CXX='@'
  11247. # Tell ltmain to make .lib files, not .a files.
  11248. libext=lib
  11249. # Tell ltmain to make .dll files, not .so files.
  11250. shrext_cmds=".dll"
  11251. # FIXME: Setting linknames here is a bad hack.
  11252. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11253. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11254. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11255. else
  11256. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11257. fi~
  11258. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11259. linknames='
  11260. # The linker will not automatically build a static lib if we build a DLL.
  11261. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11262. enable_shared_with_static_runtimes_CXX=yes
  11263. # Don't use ranlib
  11264. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11265. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11266. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11267. case $lt_outputfile in
  11268. *.exe|*.EXE) ;;
  11269. *)
  11270. lt_outputfile="$lt_outputfile.exe"
  11271. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11272. ;;
  11273. esac~
  11274. func_to_tool_file "$lt_outputfile"~
  11275. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11276. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11277. $RM "$lt_outputfile.manifest";
  11278. fi'
  11279. ;;
  11280. *)
  11281. # g++
  11282. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11283. # as there is no search path for DLLs.
  11284. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11285. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11286. allow_undefined_flag_CXX=unsupported
  11287. always_export_symbols_CXX=no
  11288. enable_shared_with_static_runtimes_CXX=yes
  11289. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11290. 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'
  11291. # If the export-symbols file already is a .def file (1st line
  11292. # is EXPORTS), use it as is; otherwise, prepend...
  11293. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11294. cp $export_symbols $output_objdir/$soname.def;
  11295. else
  11296. echo EXPORTS > $output_objdir/$soname.def;
  11297. cat $export_symbols >> $output_objdir/$soname.def;
  11298. fi~
  11299. $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'
  11300. else
  11301. ld_shlibs_CXX=no
  11302. fi
  11303. ;;
  11304. esac
  11305. ;;
  11306. darwin* | rhapsody*)
  11307. archive_cmds_need_lc_CXX=no
  11308. hardcode_direct_CXX=no
  11309. hardcode_automatic_CXX=yes
  11310. hardcode_shlibpath_var_CXX=unsupported
  11311. if test "$lt_cv_ld_force_load" = "yes"; then
  11312. 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\"`'
  11313. else
  11314. whole_archive_flag_spec_CXX=''
  11315. fi
  11316. link_all_deplibs_CXX=yes
  11317. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11318. case $cc_basename in
  11319. ifort*) _lt_dar_can_shared=yes ;;
  11320. *) _lt_dar_can_shared=$GCC ;;
  11321. esac
  11322. if test "$_lt_dar_can_shared" = "yes"; then
  11323. output_verbose_link_cmd=func_echo_all
  11324. 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}"
  11325. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11326. 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}"
  11327. 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}"
  11328. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11329. 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}"
  11330. 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}"
  11331. fi
  11332. else
  11333. ld_shlibs_CXX=no
  11334. fi
  11335. ;;
  11336. dgux*)
  11337. case $cc_basename in
  11338. ec++*)
  11339. # FIXME: insert proper C++ library support
  11340. ld_shlibs_CXX=no
  11341. ;;
  11342. ghcx*)
  11343. # Green Hills C++ Compiler
  11344. # FIXME: insert proper C++ library support
  11345. ld_shlibs_CXX=no
  11346. ;;
  11347. *)
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. esac
  11352. ;;
  11353. freebsd2.*)
  11354. # C++ shared libraries reported to be fairly broken before
  11355. # switch to ELF
  11356. ld_shlibs_CXX=no
  11357. ;;
  11358. freebsd-elf*)
  11359. archive_cmds_need_lc_CXX=no
  11360. ;;
  11361. freebsd* | dragonfly*)
  11362. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11363. # conventions
  11364. ld_shlibs_CXX=yes
  11365. ;;
  11366. gnu*)
  11367. ;;
  11368. haiku*)
  11369. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11370. link_all_deplibs_CXX=yes
  11371. ;;
  11372. hpux9*)
  11373. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11374. hardcode_libdir_separator_CXX=:
  11375. export_dynamic_flag_spec_CXX='${wl}-E'
  11376. hardcode_direct_CXX=yes
  11377. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11378. # but as the default
  11379. # location of the library.
  11380. case $cc_basename in
  11381. CC*)
  11382. # FIXME: insert proper C++ library support
  11383. ld_shlibs_CXX=no
  11384. ;;
  11385. aCC*)
  11386. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11387. # Commands to make compiler produce verbose output that lists
  11388. # what "hidden" libraries, object files and flags are used when
  11389. # linking a shared library.
  11390. #
  11391. # There doesn't appear to be a way to prevent this compiler from
  11392. # explicitly linking system object files so we need to strip them
  11393. # from the output so that they don't get included in the library
  11394. # dependencies.
  11395. 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"'
  11396. ;;
  11397. *)
  11398. if test "$GXX" = yes; then
  11399. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11400. else
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. fi
  11404. ;;
  11405. esac
  11406. ;;
  11407. hpux10*|hpux11*)
  11408. if test $with_gnu_ld = no; then
  11409. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11410. hardcode_libdir_separator_CXX=:
  11411. case $host_cpu in
  11412. hppa*64*|ia64*)
  11413. ;;
  11414. *)
  11415. export_dynamic_flag_spec_CXX='${wl}-E'
  11416. ;;
  11417. esac
  11418. fi
  11419. case $host_cpu in
  11420. hppa*64*|ia64*)
  11421. hardcode_direct_CXX=no
  11422. hardcode_shlibpath_var_CXX=no
  11423. ;;
  11424. *)
  11425. hardcode_direct_CXX=yes
  11426. hardcode_direct_absolute_CXX=yes
  11427. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11428. # but as the default
  11429. # location of the library.
  11430. ;;
  11431. esac
  11432. case $cc_basename in
  11433. CC*)
  11434. # FIXME: insert proper C++ library support
  11435. ld_shlibs_CXX=no
  11436. ;;
  11437. aCC*)
  11438. case $host_cpu in
  11439. hppa*64*)
  11440. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11441. ;;
  11442. ia64*)
  11443. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11444. ;;
  11445. *)
  11446. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11447. ;;
  11448. esac
  11449. # Commands to make compiler produce verbose output that lists
  11450. # what "hidden" libraries, object files and flags are used when
  11451. # linking a shared library.
  11452. #
  11453. # There doesn't appear to be a way to prevent this compiler from
  11454. # explicitly linking system object files so we need to strip them
  11455. # from the output so that they don't get included in the library
  11456. # dependencies.
  11457. 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"'
  11458. ;;
  11459. *)
  11460. if test "$GXX" = yes; then
  11461. if test $with_gnu_ld = no; then
  11462. case $host_cpu in
  11463. hppa*64*)
  11464. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11465. ;;
  11466. ia64*)
  11467. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11468. ;;
  11469. *)
  11470. 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'
  11471. ;;
  11472. esac
  11473. fi
  11474. else
  11475. # FIXME: insert proper C++ library support
  11476. ld_shlibs_CXX=no
  11477. fi
  11478. ;;
  11479. esac
  11480. ;;
  11481. interix[3-9]*)
  11482. hardcode_direct_CXX=no
  11483. hardcode_shlibpath_var_CXX=no
  11484. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11485. export_dynamic_flag_spec_CXX='${wl}-E'
  11486. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11487. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11488. # default) and relocated if they conflict, which is a slow very memory
  11489. # consuming and fragmenting process. To avoid this, we pick a random,
  11490. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11491. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11492. 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'
  11493. 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'
  11494. ;;
  11495. irix5* | irix6*)
  11496. case $cc_basename in
  11497. CC*)
  11498. # SGI C++
  11499. 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'
  11500. # Archives containing C++ object files must be created using
  11501. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11502. # necessary to make sure instantiated templates are included
  11503. # in the archive.
  11504. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11505. ;;
  11506. *)
  11507. if test "$GXX" = yes; then
  11508. if test "$with_gnu_ld" = no; then
  11509. 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'
  11510. else
  11511. 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'
  11512. fi
  11513. fi
  11514. link_all_deplibs_CXX=yes
  11515. ;;
  11516. esac
  11517. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11518. hardcode_libdir_separator_CXX=:
  11519. inherit_rpath_CXX=yes
  11520. ;;
  11521. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11522. case $cc_basename in
  11523. KCC*)
  11524. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11525. # KCC will only create a shared library if the output file
  11526. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11527. # to its proper name (with version) after linking.
  11528. 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'
  11529. 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'
  11530. # Commands to make compiler produce verbose output that lists
  11531. # what "hidden" libraries, object files and flags are used when
  11532. # linking a shared library.
  11533. #
  11534. # There doesn't appear to be a way to prevent this compiler from
  11535. # explicitly linking system object files so we need to strip them
  11536. # from the output so that they don't get included in the library
  11537. # dependencies.
  11538. 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"'
  11539. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11540. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11541. # Archives containing C++ object files must be created using
  11542. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11543. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11544. ;;
  11545. icpc* | ecpc* )
  11546. # Intel C++
  11547. with_gnu_ld=yes
  11548. # version 8.0 and above of icpc choke on multiply defined symbols
  11549. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11550. # earlier do not add the objects themselves.
  11551. case `$CC -V 2>&1` in
  11552. *"Version 7."*)
  11553. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11554. 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'
  11555. ;;
  11556. *) # Version 8.0 or newer
  11557. tmp_idyn=
  11558. case $host_cpu in
  11559. ia64*) tmp_idyn=' -i_dynamic';;
  11560. esac
  11561. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11562. 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'
  11563. ;;
  11564. esac
  11565. archive_cmds_need_lc_CXX=no
  11566. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11567. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11568. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11569. ;;
  11570. pgCC* | pgcpp*)
  11571. # Portland Group C++ compiler
  11572. case `$CC -V` in
  11573. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11574. prelink_cmds_CXX='tpldir=Template.dir~
  11575. rm -rf $tpldir~
  11576. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11577. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11578. old_archive_cmds_CXX='tpldir=Template.dir~
  11579. rm -rf $tpldir~
  11580. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11581. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11582. $RANLIB $oldlib'
  11583. archive_cmds_CXX='tpldir=Template.dir~
  11584. rm -rf $tpldir~
  11585. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11586. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11587. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11588. rm -rf $tpldir~
  11589. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11590. $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'
  11591. ;;
  11592. *) # Version 6 and above use weak symbols
  11593. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11594. 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'
  11595. ;;
  11596. esac
  11597. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11598. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11599. 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'
  11600. ;;
  11601. cxx*)
  11602. # Compaq C++
  11603. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11604. 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'
  11605. runpath_var=LD_RUN_PATH
  11606. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11607. hardcode_libdir_separator_CXX=:
  11608. # Commands to make compiler produce verbose output that lists
  11609. # what "hidden" libraries, object files and flags are used when
  11610. # linking a shared library.
  11611. #
  11612. # There doesn't appear to be a way to prevent this compiler from
  11613. # explicitly linking system object files so we need to strip them
  11614. # from the output so that they don't get included in the library
  11615. # dependencies.
  11616. 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'
  11617. ;;
  11618. xl* | mpixl* | bgxl*)
  11619. # IBM XL 8.0 on PPC, with GNU ld
  11620. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11621. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11622. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11623. if test "x$supports_anon_versioning" = xyes; then
  11624. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11625. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11626. echo "local: *; };" >> $output_objdir/$libname.ver~
  11627. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11628. fi
  11629. ;;
  11630. *)
  11631. case `$CC -V 2>&1 | sed 5q` in
  11632. *Sun\ C*)
  11633. # Sun C++ 5.9
  11634. no_undefined_flag_CXX=' -zdefs'
  11635. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11636. 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'
  11637. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11638. 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'
  11639. compiler_needs_object_CXX=yes
  11640. # Not sure whether something based on
  11641. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11642. # would be better.
  11643. output_verbose_link_cmd='func_echo_all'
  11644. # Archives containing C++ object files must be created using
  11645. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11646. # necessary to make sure instantiated templates are included
  11647. # in the archive.
  11648. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11649. ;;
  11650. esac
  11651. ;;
  11652. esac
  11653. ;;
  11654. lynxos*)
  11655. # FIXME: insert proper C++ library support
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. m88k*)
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. ;;
  11662. mvs*)
  11663. case $cc_basename in
  11664. cxx*)
  11665. # FIXME: insert proper C++ library support
  11666. ld_shlibs_CXX=no
  11667. ;;
  11668. *)
  11669. # FIXME: insert proper C++ library support
  11670. ld_shlibs_CXX=no
  11671. ;;
  11672. esac
  11673. ;;
  11674. netbsd*)
  11675. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11676. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11677. wlarc=
  11678. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11679. hardcode_direct_CXX=yes
  11680. hardcode_shlibpath_var_CXX=no
  11681. fi
  11682. # Workaround some broken pre-1.5 toolchains
  11683. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11684. ;;
  11685. *nto* | *qnx*)
  11686. ld_shlibs_CXX=yes
  11687. ;;
  11688. openbsd2*)
  11689. # C++ shared libraries are fairly broken
  11690. ld_shlibs_CXX=no
  11691. ;;
  11692. openbsd*)
  11693. if test -f /usr/libexec/ld.so; then
  11694. hardcode_direct_CXX=yes
  11695. hardcode_shlibpath_var_CXX=no
  11696. hardcode_direct_absolute_CXX=yes
  11697. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11698. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11699. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11700. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11701. export_dynamic_flag_spec_CXX='${wl}-E'
  11702. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11703. fi
  11704. output_verbose_link_cmd=func_echo_all
  11705. else
  11706. ld_shlibs_CXX=no
  11707. fi
  11708. ;;
  11709. osf3* | osf4* | osf5*)
  11710. case $cc_basename in
  11711. KCC*)
  11712. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11713. # KCC will only create a shared library if the output file
  11714. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11715. # to its proper name (with version) after linking.
  11716. 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'
  11717. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11718. hardcode_libdir_separator_CXX=:
  11719. # Archives containing C++ object files must be created using
  11720. # the KAI C++ compiler.
  11721. case $host in
  11722. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11723. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11724. esac
  11725. ;;
  11726. RCC*)
  11727. # Rational C++ 2.4.1
  11728. # FIXME: insert proper C++ library support
  11729. ld_shlibs_CXX=no
  11730. ;;
  11731. cxx*)
  11732. case $host in
  11733. osf3*)
  11734. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11735. 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'
  11736. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11737. ;;
  11738. *)
  11739. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11740. 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'
  11741. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11742. echo "-hidden">> $lib.exp~
  11743. $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~
  11744. $RM $lib.exp'
  11745. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11746. ;;
  11747. esac
  11748. hardcode_libdir_separator_CXX=:
  11749. # Commands to make compiler produce verbose output that lists
  11750. # what "hidden" libraries, object files and flags are used when
  11751. # linking a shared library.
  11752. #
  11753. # There doesn't appear to be a way to prevent this compiler from
  11754. # explicitly linking system object files so we need to strip them
  11755. # from the output so that they don't get included in the library
  11756. # dependencies.
  11757. 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"'
  11758. ;;
  11759. *)
  11760. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11761. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11762. case $host in
  11763. osf3*)
  11764. 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'
  11765. ;;
  11766. *)
  11767. 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'
  11768. ;;
  11769. esac
  11770. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11771. hardcode_libdir_separator_CXX=:
  11772. # Commands to make compiler produce verbose output that lists
  11773. # what "hidden" libraries, object files and flags are used when
  11774. # linking a shared library.
  11775. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11776. else
  11777. # FIXME: insert proper C++ library support
  11778. ld_shlibs_CXX=no
  11779. fi
  11780. ;;
  11781. esac
  11782. ;;
  11783. psos*)
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. ;;
  11787. sunos4*)
  11788. case $cc_basename in
  11789. CC*)
  11790. # Sun C++ 4.x
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. lcc*)
  11795. # Lucid
  11796. # FIXME: insert proper C++ library support
  11797. ld_shlibs_CXX=no
  11798. ;;
  11799. *)
  11800. # FIXME: insert proper C++ library support
  11801. ld_shlibs_CXX=no
  11802. ;;
  11803. esac
  11804. ;;
  11805. solaris*)
  11806. case $cc_basename in
  11807. CC* | sunCC*)
  11808. # Sun C++ 4.2, 5.x and Centerline C++
  11809. archive_cmds_need_lc_CXX=yes
  11810. no_undefined_flag_CXX=' -zdefs'
  11811. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11812. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11813. $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'
  11814. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11815. hardcode_shlibpath_var_CXX=no
  11816. case $host_os in
  11817. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11818. *)
  11819. # The compiler driver will combine and reorder linker options,
  11820. # but understands `-z linker_flag'.
  11821. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11822. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11823. ;;
  11824. esac
  11825. link_all_deplibs_CXX=yes
  11826. output_verbose_link_cmd='func_echo_all'
  11827. # Archives containing C++ object files must be created using
  11828. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11829. # necessary to make sure instantiated templates are included
  11830. # in the archive.
  11831. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11832. ;;
  11833. gcx*)
  11834. # Green Hills C++ Compiler
  11835. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11836. # The C++ compiler must be used to create the archive.
  11837. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11838. ;;
  11839. *)
  11840. # GNU C++ compiler with Solaris linker
  11841. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11842. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11843. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11844. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11845. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11846. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11847. # Commands to make compiler produce verbose output that lists
  11848. # what "hidden" libraries, object files and flags are used when
  11849. # linking a shared library.
  11850. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11851. else
  11852. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11853. # platform.
  11854. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11855. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11856. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11857. # Commands to make compiler produce verbose output that lists
  11858. # what "hidden" libraries, object files and flags are used when
  11859. # linking a shared library.
  11860. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11861. fi
  11862. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11863. case $host_os in
  11864. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11865. *)
  11866. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11867. ;;
  11868. esac
  11869. fi
  11870. ;;
  11871. esac
  11872. ;;
  11873. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11874. no_undefined_flag_CXX='${wl}-z,text'
  11875. archive_cmds_need_lc_CXX=no
  11876. hardcode_shlibpath_var_CXX=no
  11877. runpath_var='LD_RUN_PATH'
  11878. case $cc_basename in
  11879. CC*)
  11880. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11881. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11882. ;;
  11883. *)
  11884. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11885. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11886. ;;
  11887. esac
  11888. ;;
  11889. sysv5* | sco3.2v5* | sco5v6*)
  11890. # Note: We can NOT use -z defs as we might desire, because we do not
  11891. # link with -lc, and that would cause any symbols used from libc to
  11892. # always be unresolved, which means just about no library would
  11893. # ever link correctly. If we're not using GNU ld we use -z text
  11894. # though, which does catch some bad symbols but isn't as heavy-handed
  11895. # as -z defs.
  11896. no_undefined_flag_CXX='${wl}-z,text'
  11897. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11898. archive_cmds_need_lc_CXX=no
  11899. hardcode_shlibpath_var_CXX=no
  11900. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11901. hardcode_libdir_separator_CXX=':'
  11902. link_all_deplibs_CXX=yes
  11903. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11904. runpath_var='LD_RUN_PATH'
  11905. case $cc_basename in
  11906. CC*)
  11907. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11908. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11909. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11910. '"$old_archive_cmds_CXX"
  11911. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11912. '"$reload_cmds_CXX"
  11913. ;;
  11914. *)
  11915. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11916. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11917. ;;
  11918. esac
  11919. ;;
  11920. tandem*)
  11921. case $cc_basename in
  11922. NCC*)
  11923. # NonStop-UX NCC 3.20
  11924. # FIXME: insert proper C++ library support
  11925. ld_shlibs_CXX=no
  11926. ;;
  11927. *)
  11928. # FIXME: insert proper C++ library support
  11929. ld_shlibs_CXX=no
  11930. ;;
  11931. esac
  11932. ;;
  11933. vxworks*)
  11934. # FIXME: insert proper C++ library support
  11935. ld_shlibs_CXX=no
  11936. ;;
  11937. *)
  11938. # FIXME: insert proper C++ library support
  11939. ld_shlibs_CXX=no
  11940. ;;
  11941. esac
  11942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11943. $as_echo "$ld_shlibs_CXX" >&6; }
  11944. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11945. GCC_CXX="$GXX"
  11946. LD_CXX="$LD"
  11947. ## CAVEAT EMPTOR:
  11948. ## There is no encapsulation within the following macros, do not change
  11949. ## the running order or otherwise move them around unless you know exactly
  11950. ## what you are doing...
  11951. # Dependencies to place before and after the object being linked:
  11952. predep_objects_CXX=
  11953. postdep_objects_CXX=
  11954. predeps_CXX=
  11955. postdeps_CXX=
  11956. compiler_lib_search_path_CXX=
  11957. cat > conftest.$ac_ext <<_LT_EOF
  11958. class Foo
  11959. {
  11960. public:
  11961. Foo (void) { a = 0; }
  11962. private:
  11963. int a;
  11964. };
  11965. _LT_EOF
  11966. _lt_libdeps_save_CFLAGS=$CFLAGS
  11967. case "$CC $CFLAGS " in #(
  11968. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11969. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11970. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11971. esac
  11972. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11973. (eval $ac_compile) 2>&5
  11974. ac_status=$?
  11975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11976. test $ac_status = 0; }; then
  11977. # Parse the compiler output and extract the necessary
  11978. # objects, libraries and library flags.
  11979. # Sentinel used to keep track of whether or not we are before
  11980. # the conftest object file.
  11981. pre_test_object_deps_done=no
  11982. for p in `eval "$output_verbose_link_cmd"`; do
  11983. case ${prev}${p} in
  11984. -L* | -R* | -l*)
  11985. # Some compilers place space between "-{L,R}" and the path.
  11986. # Remove the space.
  11987. if test $p = "-L" ||
  11988. test $p = "-R"; then
  11989. prev=$p
  11990. continue
  11991. fi
  11992. # Expand the sysroot to ease extracting the directories later.
  11993. if test -z "$prev"; then
  11994. case $p in
  11995. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11996. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11997. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11998. esac
  11999. fi
  12000. case $p in
  12001. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12002. esac
  12003. if test "$pre_test_object_deps_done" = no; then
  12004. case ${prev} in
  12005. -L | -R)
  12006. # Internal compiler library paths should come after those
  12007. # provided the user. The postdeps already come after the
  12008. # user supplied libs so there is no need to process them.
  12009. if test -z "$compiler_lib_search_path_CXX"; then
  12010. compiler_lib_search_path_CXX="${prev}${p}"
  12011. else
  12012. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12013. fi
  12014. ;;
  12015. # The "-l" case would never come before the object being
  12016. # linked, so don't bother handling this case.
  12017. esac
  12018. else
  12019. if test -z "$postdeps_CXX"; then
  12020. postdeps_CXX="${prev}${p}"
  12021. else
  12022. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12023. fi
  12024. fi
  12025. prev=
  12026. ;;
  12027. *.lto.$objext) ;; # Ignore GCC LTO objects
  12028. *.$objext)
  12029. # This assumes that the test object file only shows up
  12030. # once in the compiler output.
  12031. if test "$p" = "conftest.$objext"; then
  12032. pre_test_object_deps_done=yes
  12033. continue
  12034. fi
  12035. if test "$pre_test_object_deps_done" = no; then
  12036. if test -z "$predep_objects_CXX"; then
  12037. predep_objects_CXX="$p"
  12038. else
  12039. predep_objects_CXX="$predep_objects_CXX $p"
  12040. fi
  12041. else
  12042. if test -z "$postdep_objects_CXX"; then
  12043. postdep_objects_CXX="$p"
  12044. else
  12045. postdep_objects_CXX="$postdep_objects_CXX $p"
  12046. fi
  12047. fi
  12048. ;;
  12049. *) ;; # Ignore the rest.
  12050. esac
  12051. done
  12052. # Clean up.
  12053. rm -f a.out a.exe
  12054. else
  12055. echo "libtool.m4: error: problem compiling CXX test program"
  12056. fi
  12057. $RM -f confest.$objext
  12058. CFLAGS=$_lt_libdeps_save_CFLAGS
  12059. # PORTME: override above test on systems where it is broken
  12060. case $host_os in
  12061. interix[3-9]*)
  12062. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12063. # hack all around it, let's just trust "g++" to DTRT.
  12064. predep_objects_CXX=
  12065. postdep_objects_CXX=
  12066. postdeps_CXX=
  12067. ;;
  12068. linux*)
  12069. case `$CC -V 2>&1 | sed 5q` in
  12070. *Sun\ C*)
  12071. # Sun C++ 5.9
  12072. # The more standards-conforming stlport4 library is
  12073. # incompatible with the Cstd library. Avoid specifying
  12074. # it if it's in CXXFLAGS. Ignore libCrun as
  12075. # -library=stlport4 depends on it.
  12076. case " $CXX $CXXFLAGS " in
  12077. *" -library=stlport4 "*)
  12078. solaris_use_stlport4=yes
  12079. ;;
  12080. esac
  12081. if test "$solaris_use_stlport4" != yes; then
  12082. postdeps_CXX='-library=Cstd -library=Crun'
  12083. fi
  12084. ;;
  12085. esac
  12086. ;;
  12087. solaris*)
  12088. case $cc_basename in
  12089. CC* | sunCC*)
  12090. # The more standards-conforming stlport4 library is
  12091. # incompatible with the Cstd library. Avoid specifying
  12092. # it if it's in CXXFLAGS. Ignore libCrun as
  12093. # -library=stlport4 depends on it.
  12094. case " $CXX $CXXFLAGS " in
  12095. *" -library=stlport4 "*)
  12096. solaris_use_stlport4=yes
  12097. ;;
  12098. esac
  12099. # Adding this requires a known-good setup of shared libraries for
  12100. # Sun compiler versions before 5.6, else PIC objects from an old
  12101. # archive will be linked into the output, leading to subtle bugs.
  12102. if test "$solaris_use_stlport4" != yes; then
  12103. postdeps_CXX='-library=Cstd -library=Crun'
  12104. fi
  12105. ;;
  12106. esac
  12107. ;;
  12108. esac
  12109. case " $postdeps_CXX " in
  12110. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12111. esac
  12112. compiler_lib_search_dirs_CXX=
  12113. if test -n "${compiler_lib_search_path_CXX}"; then
  12114. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12115. fi
  12116. lt_prog_compiler_wl_CXX=
  12117. lt_prog_compiler_pic_CXX=
  12118. lt_prog_compiler_static_CXX=
  12119. # C++ specific cases for pic, static, wl, etc.
  12120. if test "$GXX" = yes; then
  12121. lt_prog_compiler_wl_CXX='-Wl,'
  12122. lt_prog_compiler_static_CXX='-static'
  12123. case $host_os in
  12124. aix*)
  12125. # All AIX code is PIC.
  12126. if test "$host_cpu" = ia64; then
  12127. # AIX 5 now supports IA64 processor
  12128. lt_prog_compiler_static_CXX='-Bstatic'
  12129. fi
  12130. ;;
  12131. amigaos*)
  12132. case $host_cpu in
  12133. powerpc)
  12134. # see comment about AmigaOS4 .so support
  12135. lt_prog_compiler_pic_CXX='-fPIC'
  12136. ;;
  12137. m68k)
  12138. # FIXME: we need at least 68020 code to build shared libraries, but
  12139. # adding the `-m68020' flag to GCC prevents building anything better,
  12140. # like `-m68040'.
  12141. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12142. ;;
  12143. esac
  12144. ;;
  12145. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12146. # PIC is the default for these OSes.
  12147. ;;
  12148. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12149. # This hack is so that the source file can tell whether it is being
  12150. # built for inclusion in a dll (and should export symbols for example).
  12151. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12152. # (--disable-auto-import) libraries
  12153. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12154. ;;
  12155. darwin* | rhapsody*)
  12156. # PIC is the default on this platform
  12157. # Common symbols not allowed in MH_DYLIB files
  12158. lt_prog_compiler_pic_CXX='-fno-common'
  12159. ;;
  12160. *djgpp*)
  12161. # DJGPP does not support shared libraries at all
  12162. lt_prog_compiler_pic_CXX=
  12163. ;;
  12164. haiku*)
  12165. # PIC is the default for Haiku.
  12166. # The "-static" flag exists, but is broken.
  12167. lt_prog_compiler_static_CXX=
  12168. ;;
  12169. interix[3-9]*)
  12170. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12171. # Instead, we relocate shared libraries at runtime.
  12172. ;;
  12173. sysv4*MP*)
  12174. if test -d /usr/nec; then
  12175. lt_prog_compiler_pic_CXX=-Kconform_pic
  12176. fi
  12177. ;;
  12178. hpux*)
  12179. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12180. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12181. # sets the default TLS model and affects inlining.
  12182. case $host_cpu in
  12183. hppa*64*)
  12184. ;;
  12185. *)
  12186. lt_prog_compiler_pic_CXX='-fPIC'
  12187. ;;
  12188. esac
  12189. ;;
  12190. *qnx* | *nto*)
  12191. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12192. # it will coredump.
  12193. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12194. ;;
  12195. *)
  12196. lt_prog_compiler_pic_CXX='-fPIC'
  12197. ;;
  12198. esac
  12199. else
  12200. case $host_os in
  12201. aix[4-9]*)
  12202. # All AIX code is PIC.
  12203. if test "$host_cpu" = ia64; then
  12204. # AIX 5 now supports IA64 processor
  12205. lt_prog_compiler_static_CXX='-Bstatic'
  12206. else
  12207. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12208. fi
  12209. ;;
  12210. chorus*)
  12211. case $cc_basename in
  12212. cxch68*)
  12213. # Green Hills C++ Compiler
  12214. # _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"
  12215. ;;
  12216. esac
  12217. ;;
  12218. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12219. # This hack is so that the source file can tell whether it is being
  12220. # built for inclusion in a dll (and should export symbols for example).
  12221. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12222. ;;
  12223. dgux*)
  12224. case $cc_basename in
  12225. ec++*)
  12226. lt_prog_compiler_pic_CXX='-KPIC'
  12227. ;;
  12228. ghcx*)
  12229. # Green Hills C++ Compiler
  12230. lt_prog_compiler_pic_CXX='-pic'
  12231. ;;
  12232. *)
  12233. ;;
  12234. esac
  12235. ;;
  12236. freebsd* | dragonfly*)
  12237. # FreeBSD uses GNU C++
  12238. ;;
  12239. hpux9* | hpux10* | hpux11*)
  12240. case $cc_basename in
  12241. CC*)
  12242. lt_prog_compiler_wl_CXX='-Wl,'
  12243. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12244. if test "$host_cpu" != ia64; then
  12245. lt_prog_compiler_pic_CXX='+Z'
  12246. fi
  12247. ;;
  12248. aCC*)
  12249. lt_prog_compiler_wl_CXX='-Wl,'
  12250. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12251. case $host_cpu in
  12252. hppa*64*|ia64*)
  12253. # +Z the default
  12254. ;;
  12255. *)
  12256. lt_prog_compiler_pic_CXX='+Z'
  12257. ;;
  12258. esac
  12259. ;;
  12260. *)
  12261. ;;
  12262. esac
  12263. ;;
  12264. interix*)
  12265. # This is c89, which is MS Visual C++ (no shared libs)
  12266. # Anyone wants to do a port?
  12267. ;;
  12268. irix5* | irix6* | nonstopux*)
  12269. case $cc_basename in
  12270. CC*)
  12271. lt_prog_compiler_wl_CXX='-Wl,'
  12272. lt_prog_compiler_static_CXX='-non_shared'
  12273. # CC pic flag -KPIC is the default.
  12274. ;;
  12275. *)
  12276. ;;
  12277. esac
  12278. ;;
  12279. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12280. case $cc_basename in
  12281. KCC*)
  12282. # KAI C++ Compiler
  12283. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12284. lt_prog_compiler_pic_CXX='-fPIC'
  12285. ;;
  12286. ecpc* )
  12287. # old Intel C++ for x86_64 which still supported -KPIC.
  12288. lt_prog_compiler_wl_CXX='-Wl,'
  12289. lt_prog_compiler_pic_CXX='-KPIC'
  12290. lt_prog_compiler_static_CXX='-static'
  12291. ;;
  12292. icpc* )
  12293. # Intel C++, used to be incompatible with GCC.
  12294. # ICC 10 doesn't accept -KPIC any more.
  12295. lt_prog_compiler_wl_CXX='-Wl,'
  12296. lt_prog_compiler_pic_CXX='-fPIC'
  12297. lt_prog_compiler_static_CXX='-static'
  12298. ;;
  12299. pgCC* | pgcpp*)
  12300. # Portland Group C++ compiler
  12301. lt_prog_compiler_wl_CXX='-Wl,'
  12302. lt_prog_compiler_pic_CXX='-fpic'
  12303. lt_prog_compiler_static_CXX='-Bstatic'
  12304. ;;
  12305. cxx*)
  12306. # Compaq C++
  12307. # Make sure the PIC flag is empty. It appears that all Alpha
  12308. # Linux and Compaq Tru64 Unix objects are PIC.
  12309. lt_prog_compiler_pic_CXX=
  12310. lt_prog_compiler_static_CXX='-non_shared'
  12311. ;;
  12312. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12313. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12314. lt_prog_compiler_wl_CXX='-Wl,'
  12315. lt_prog_compiler_pic_CXX='-qpic'
  12316. lt_prog_compiler_static_CXX='-qstaticlink'
  12317. ;;
  12318. *)
  12319. case `$CC -V 2>&1 | sed 5q` in
  12320. *Sun\ C*)
  12321. # Sun C++ 5.9
  12322. lt_prog_compiler_pic_CXX='-KPIC'
  12323. lt_prog_compiler_static_CXX='-Bstatic'
  12324. lt_prog_compiler_wl_CXX='-Qoption ld '
  12325. ;;
  12326. esac
  12327. ;;
  12328. esac
  12329. ;;
  12330. lynxos*)
  12331. ;;
  12332. m88k*)
  12333. ;;
  12334. mvs*)
  12335. case $cc_basename in
  12336. cxx*)
  12337. lt_prog_compiler_pic_CXX='-W c,exportall'
  12338. ;;
  12339. *)
  12340. ;;
  12341. esac
  12342. ;;
  12343. netbsd*)
  12344. ;;
  12345. *qnx* | *nto*)
  12346. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12347. # it will coredump.
  12348. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12349. ;;
  12350. osf3* | osf4* | osf5*)
  12351. case $cc_basename in
  12352. KCC*)
  12353. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12354. ;;
  12355. RCC*)
  12356. # Rational C++ 2.4.1
  12357. lt_prog_compiler_pic_CXX='-pic'
  12358. ;;
  12359. cxx*)
  12360. # Digital/Compaq C++
  12361. lt_prog_compiler_wl_CXX='-Wl,'
  12362. # Make sure the PIC flag is empty. It appears that all Alpha
  12363. # Linux and Compaq Tru64 Unix objects are PIC.
  12364. lt_prog_compiler_pic_CXX=
  12365. lt_prog_compiler_static_CXX='-non_shared'
  12366. ;;
  12367. *)
  12368. ;;
  12369. esac
  12370. ;;
  12371. psos*)
  12372. ;;
  12373. solaris*)
  12374. case $cc_basename in
  12375. CC* | sunCC*)
  12376. # Sun C++ 4.2, 5.x and Centerline C++
  12377. lt_prog_compiler_pic_CXX='-KPIC'
  12378. lt_prog_compiler_static_CXX='-Bstatic'
  12379. lt_prog_compiler_wl_CXX='-Qoption ld '
  12380. ;;
  12381. gcx*)
  12382. # Green Hills C++ Compiler
  12383. lt_prog_compiler_pic_CXX='-PIC'
  12384. ;;
  12385. *)
  12386. ;;
  12387. esac
  12388. ;;
  12389. sunos4*)
  12390. case $cc_basename in
  12391. CC*)
  12392. # Sun C++ 4.x
  12393. lt_prog_compiler_pic_CXX='-pic'
  12394. lt_prog_compiler_static_CXX='-Bstatic'
  12395. ;;
  12396. lcc*)
  12397. # Lucid
  12398. lt_prog_compiler_pic_CXX='-pic'
  12399. ;;
  12400. *)
  12401. ;;
  12402. esac
  12403. ;;
  12404. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12405. case $cc_basename in
  12406. CC*)
  12407. lt_prog_compiler_wl_CXX='-Wl,'
  12408. lt_prog_compiler_pic_CXX='-KPIC'
  12409. lt_prog_compiler_static_CXX='-Bstatic'
  12410. ;;
  12411. esac
  12412. ;;
  12413. tandem*)
  12414. case $cc_basename in
  12415. NCC*)
  12416. # NonStop-UX NCC 3.20
  12417. lt_prog_compiler_pic_CXX='-KPIC'
  12418. ;;
  12419. *)
  12420. ;;
  12421. esac
  12422. ;;
  12423. vxworks*)
  12424. ;;
  12425. *)
  12426. lt_prog_compiler_can_build_shared_CXX=no
  12427. ;;
  12428. esac
  12429. fi
  12430. case $host_os in
  12431. # For platforms which do not support PIC, -DPIC is meaningless:
  12432. *djgpp*)
  12433. lt_prog_compiler_pic_CXX=
  12434. ;;
  12435. *)
  12436. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12437. ;;
  12438. esac
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12440. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12441. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12447. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12448. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12449. #
  12450. # Check to make sure the PIC flag actually works.
  12451. #
  12452. if test -n "$lt_prog_compiler_pic_CXX"; then
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12454. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12455. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12456. $as_echo_n "(cached) " >&6
  12457. else
  12458. lt_cv_prog_compiler_pic_works_CXX=no
  12459. ac_outfile=conftest.$ac_objext
  12460. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12461. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12462. # Insert the option either (1) after the last *FLAGS variable, or
  12463. # (2) before a word containing "conftest.", or (3) at the end.
  12464. # Note that $ac_compile itself does not contain backslashes and begins
  12465. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12466. # The option is referenced via a variable to avoid confusing sed.
  12467. lt_compile=`echo "$ac_compile" | $SED \
  12468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12470. -e 's:$: $lt_compiler_flag:'`
  12471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12472. (eval "$lt_compile" 2>conftest.err)
  12473. ac_status=$?
  12474. cat conftest.err >&5
  12475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12476. if (exit $ac_status) && test -s "$ac_outfile"; then
  12477. # The compiler can only warn and ignore the option if not recognized
  12478. # So say no if there are warnings other than the usual output.
  12479. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12480. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12481. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12482. lt_cv_prog_compiler_pic_works_CXX=yes
  12483. fi
  12484. fi
  12485. $RM conftest*
  12486. fi
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12488. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12489. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12490. case $lt_prog_compiler_pic_CXX in
  12491. "" | " "*) ;;
  12492. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12493. esac
  12494. else
  12495. lt_prog_compiler_pic_CXX=
  12496. lt_prog_compiler_can_build_shared_CXX=no
  12497. fi
  12498. fi
  12499. #
  12500. # Check to make sure the static flag actually works.
  12501. #
  12502. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12504. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12505. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12506. $as_echo_n "(cached) " >&6
  12507. else
  12508. lt_cv_prog_compiler_static_works_CXX=no
  12509. save_LDFLAGS="$LDFLAGS"
  12510. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12511. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12512. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12513. # The linker can only warn and ignore the option if not recognized
  12514. # So say no if there are warnings
  12515. if test -s conftest.err; then
  12516. # Append any errors to the config.log.
  12517. cat conftest.err 1>&5
  12518. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12519. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12520. if diff conftest.exp conftest.er2 >/dev/null; then
  12521. lt_cv_prog_compiler_static_works_CXX=yes
  12522. fi
  12523. else
  12524. lt_cv_prog_compiler_static_works_CXX=yes
  12525. fi
  12526. fi
  12527. $RM -r conftest*
  12528. LDFLAGS="$save_LDFLAGS"
  12529. fi
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12531. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12532. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12533. :
  12534. else
  12535. lt_prog_compiler_static_CXX=
  12536. fi
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12538. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12539. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. lt_cv_prog_compiler_c_o_CXX=no
  12543. $RM -r conftest 2>/dev/null
  12544. mkdir conftest
  12545. cd conftest
  12546. mkdir out
  12547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12548. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12549. # Insert the option either (1) after the last *FLAGS variable, or
  12550. # (2) before a word containing "conftest.", or (3) at the end.
  12551. # Note that $ac_compile itself does not contain backslashes and begins
  12552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12553. lt_compile=`echo "$ac_compile" | $SED \
  12554. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12555. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12556. -e 's:$: $lt_compiler_flag:'`
  12557. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12558. (eval "$lt_compile" 2>out/conftest.err)
  12559. ac_status=$?
  12560. cat out/conftest.err >&5
  12561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12562. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12563. then
  12564. # The compiler can only warn and ignore the option if not recognized
  12565. # So say no if there are warnings
  12566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12567. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12568. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12569. lt_cv_prog_compiler_c_o_CXX=yes
  12570. fi
  12571. fi
  12572. chmod u+w . 2>&5
  12573. $RM conftest*
  12574. # SGI C++ compiler will create directory out/ii_files/ for
  12575. # template instantiation
  12576. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12577. $RM out/* && rmdir out
  12578. cd ..
  12579. $RM -r conftest
  12580. $RM conftest*
  12581. fi
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12583. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12585. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12586. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12587. $as_echo_n "(cached) " >&6
  12588. else
  12589. lt_cv_prog_compiler_c_o_CXX=no
  12590. $RM -r conftest 2>/dev/null
  12591. mkdir conftest
  12592. cd conftest
  12593. mkdir out
  12594. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12595. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12596. # Insert the option either (1) after the last *FLAGS variable, or
  12597. # (2) before a word containing "conftest.", or (3) at the end.
  12598. # Note that $ac_compile itself does not contain backslashes and begins
  12599. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12600. lt_compile=`echo "$ac_compile" | $SED \
  12601. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12602. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12603. -e 's:$: $lt_compiler_flag:'`
  12604. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12605. (eval "$lt_compile" 2>out/conftest.err)
  12606. ac_status=$?
  12607. cat out/conftest.err >&5
  12608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12609. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12610. then
  12611. # The compiler can only warn and ignore the option if not recognized
  12612. # So say no if there are warnings
  12613. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12614. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12615. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12616. lt_cv_prog_compiler_c_o_CXX=yes
  12617. fi
  12618. fi
  12619. chmod u+w . 2>&5
  12620. $RM conftest*
  12621. # SGI C++ compiler will create directory out/ii_files/ for
  12622. # template instantiation
  12623. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12624. $RM out/* && rmdir out
  12625. cd ..
  12626. $RM -r conftest
  12627. $RM conftest*
  12628. fi
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12630. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12631. hard_links="nottested"
  12632. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12633. # do not overwrite the value of need_locks provided by the user
  12634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12635. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12636. hard_links=yes
  12637. $RM conftest*
  12638. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12639. touch conftest.a
  12640. ln conftest.a conftest.b 2>&5 || hard_links=no
  12641. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12643. $as_echo "$hard_links" >&6; }
  12644. if test "$hard_links" = no; then
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12646. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12647. need_locks=warn
  12648. fi
  12649. else
  12650. need_locks=no
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12653. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12654. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12655. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12656. case $host_os in
  12657. aix[4-9]*)
  12658. # If we're using GNU nm, then we don't want the "-C" option.
  12659. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12660. # Also, AIX nm treats weak defined symbols like other global defined
  12661. # symbols, whereas GNU nm marks them as "W".
  12662. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12663. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12664. else
  12665. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12666. fi
  12667. ;;
  12668. pw32*)
  12669. export_symbols_cmds_CXX="$ltdll_cmds"
  12670. ;;
  12671. cygwin* | mingw* | cegcc*)
  12672. case $cc_basename in
  12673. cl*)
  12674. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12675. ;;
  12676. *)
  12677. 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'
  12678. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12679. ;;
  12680. esac
  12681. ;;
  12682. *)
  12683. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12684. ;;
  12685. esac
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12687. $as_echo "$ld_shlibs_CXX" >&6; }
  12688. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12689. with_gnu_ld_CXX=$with_gnu_ld
  12690. #
  12691. # Do we need to explicitly link libc?
  12692. #
  12693. case "x$archive_cmds_need_lc_CXX" in
  12694. x|xyes)
  12695. # Assume -lc should be added
  12696. archive_cmds_need_lc_CXX=yes
  12697. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12698. case $archive_cmds_CXX in
  12699. *'~'*)
  12700. # FIXME: we may have to deal with multi-command sequences.
  12701. ;;
  12702. '$CC '*)
  12703. # Test whether the compiler implicitly links with -lc since on some
  12704. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12705. # to ld, don't add -lc before -lgcc.
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12707. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12708. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12709. $as_echo_n "(cached) " >&6
  12710. else
  12711. $RM conftest*
  12712. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12714. (eval $ac_compile) 2>&5
  12715. ac_status=$?
  12716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12717. test $ac_status = 0; } 2>conftest.err; then
  12718. soname=conftest
  12719. lib=conftest
  12720. libobjs=conftest.$ac_objext
  12721. deplibs=
  12722. wl=$lt_prog_compiler_wl_CXX
  12723. pic_flag=$lt_prog_compiler_pic_CXX
  12724. compiler_flags=-v
  12725. linker_flags=-v
  12726. verstring=
  12727. output_objdir=.
  12728. libname=conftest
  12729. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12730. allow_undefined_flag_CXX=
  12731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12732. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12733. ac_status=$?
  12734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12735. test $ac_status = 0; }
  12736. then
  12737. lt_cv_archive_cmds_need_lc_CXX=no
  12738. else
  12739. lt_cv_archive_cmds_need_lc_CXX=yes
  12740. fi
  12741. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12742. else
  12743. cat conftest.err 1>&5
  12744. fi
  12745. $RM conftest*
  12746. fi
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12748. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12749. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12750. ;;
  12751. esac
  12752. fi
  12753. ;;
  12754. esac
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12756. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12757. library_names_spec=
  12758. libname_spec='lib$name'
  12759. soname_spec=
  12760. shrext_cmds=".so"
  12761. postinstall_cmds=
  12762. postuninstall_cmds=
  12763. finish_cmds=
  12764. finish_eval=
  12765. shlibpath_var=
  12766. shlibpath_overrides_runpath=unknown
  12767. version_type=none
  12768. dynamic_linker="$host_os ld.so"
  12769. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12770. need_lib_prefix=unknown
  12771. hardcode_into_libs=no
  12772. # when you set need_version to no, make sure it does not cause -set_version
  12773. # flags to be left without arguments
  12774. need_version=unknown
  12775. case $host_os in
  12776. aix3*)
  12777. version_type=linux # correct to gnu/linux during the next big refactor
  12778. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12779. shlibpath_var=LIBPATH
  12780. # AIX 3 has no versioning support, so we append a major version to the name.
  12781. soname_spec='${libname}${release}${shared_ext}$major'
  12782. ;;
  12783. aix[4-9]*)
  12784. version_type=linux # correct to gnu/linux during the next big refactor
  12785. need_lib_prefix=no
  12786. need_version=no
  12787. hardcode_into_libs=yes
  12788. if test "$host_cpu" = ia64; then
  12789. # AIX 5 supports IA64
  12790. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12791. shlibpath_var=LD_LIBRARY_PATH
  12792. else
  12793. # With GCC up to 2.95.x, collect2 would create an import file
  12794. # for dependence libraries. The import file would start with
  12795. # the line `#! .'. This would cause the generated library to
  12796. # depend on `.', always an invalid library. This was fixed in
  12797. # development snapshots of GCC prior to 3.0.
  12798. case $host_os in
  12799. aix4 | aix4.[01] | aix4.[01].*)
  12800. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12801. echo ' yes '
  12802. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12803. :
  12804. else
  12805. can_build_shared=no
  12806. fi
  12807. ;;
  12808. esac
  12809. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12810. # soname into executable. Probably we can add versioning support to
  12811. # collect2, so additional links can be useful in future.
  12812. if test "$aix_use_runtimelinking" = yes; then
  12813. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12814. # instead of lib<name>.a to let people know that these are not
  12815. # typical AIX shared libraries.
  12816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12817. else
  12818. # We preserve .a as extension for shared libraries through AIX4.2
  12819. # and later when we are not doing run time linking.
  12820. library_names_spec='${libname}${release}.a $libname.a'
  12821. soname_spec='${libname}${release}${shared_ext}$major'
  12822. fi
  12823. shlibpath_var=LIBPATH
  12824. fi
  12825. ;;
  12826. amigaos*)
  12827. case $host_cpu in
  12828. powerpc)
  12829. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12830. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12832. ;;
  12833. m68k)
  12834. library_names_spec='$libname.ixlibrary $libname.a'
  12835. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12836. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12837. ;;
  12838. esac
  12839. ;;
  12840. beos*)
  12841. library_names_spec='${libname}${shared_ext}'
  12842. dynamic_linker="$host_os ld.so"
  12843. shlibpath_var=LIBRARY_PATH
  12844. ;;
  12845. bsdi[45]*)
  12846. version_type=linux # correct to gnu/linux during the next big refactor
  12847. need_version=no
  12848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12849. soname_spec='${libname}${release}${shared_ext}$major'
  12850. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12851. shlibpath_var=LD_LIBRARY_PATH
  12852. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12853. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12854. # the default ld.so.conf also contains /usr/contrib/lib and
  12855. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12856. # libtool to hard-code these into programs
  12857. ;;
  12858. cygwin* | mingw* | pw32* | cegcc*)
  12859. version_type=windows
  12860. shrext_cmds=".dll"
  12861. need_version=no
  12862. need_lib_prefix=no
  12863. case $GCC,$cc_basename in
  12864. yes,*)
  12865. # gcc
  12866. library_names_spec='$libname.dll.a'
  12867. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12868. postinstall_cmds='base_file=`basename \${file}`~
  12869. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12870. dldir=$destdir/`dirname \$dlpath`~
  12871. test -d \$dldir || mkdir -p \$dldir~
  12872. $install_prog $dir/$dlname \$dldir/$dlname~
  12873. chmod a+x \$dldir/$dlname~
  12874. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12875. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12876. fi'
  12877. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12878. dlpath=$dir/\$dldll~
  12879. $RM \$dlpath'
  12880. shlibpath_overrides_runpath=yes
  12881. case $host_os in
  12882. cygwin*)
  12883. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12884. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12885. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12886. ;;
  12887. mingw* | cegcc*)
  12888. # MinGW DLLs use traditional 'lib' prefix
  12889. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12890. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12891. ;;
  12892. pw32*)
  12893. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12894. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12895. ;;
  12896. esac
  12897. dynamic_linker='Win32 ld.exe'
  12898. ;;
  12899. *,cl*)
  12900. # Native MSVC
  12901. libname_spec='$name'
  12902. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12903. library_names_spec='${libname}.dll.lib'
  12904. case $build_os in
  12905. mingw*)
  12906. sys_lib_search_path_spec=
  12907. lt_save_ifs=$IFS
  12908. IFS=';'
  12909. for lt_path in $LIB
  12910. do
  12911. IFS=$lt_save_ifs
  12912. # Let DOS variable expansion print the short 8.3 style file name.
  12913. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12914. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12915. done
  12916. IFS=$lt_save_ifs
  12917. # Convert to MSYS style.
  12918. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12919. ;;
  12920. cygwin*)
  12921. # Convert to unix form, then to dos form, then back to unix form
  12922. # but this time dos style (no spaces!) so that the unix form looks
  12923. # like /cygdrive/c/PROGRA~1:/cygdr...
  12924. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12925. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12926. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12927. ;;
  12928. *)
  12929. sys_lib_search_path_spec="$LIB"
  12930. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12931. # It is most probably a Windows format PATH.
  12932. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12933. else
  12934. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12935. fi
  12936. # FIXME: find the short name or the path components, as spaces are
  12937. # common. (e.g. "Program Files" -> "PROGRA~1")
  12938. ;;
  12939. esac
  12940. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12941. postinstall_cmds='base_file=`basename \${file}`~
  12942. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12943. dldir=$destdir/`dirname \$dlpath`~
  12944. test -d \$dldir || mkdir -p \$dldir~
  12945. $install_prog $dir/$dlname \$dldir/$dlname'
  12946. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12947. dlpath=$dir/\$dldll~
  12948. $RM \$dlpath'
  12949. shlibpath_overrides_runpath=yes
  12950. dynamic_linker='Win32 link.exe'
  12951. ;;
  12952. *)
  12953. # Assume MSVC wrapper
  12954. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12955. dynamic_linker='Win32 ld.exe'
  12956. ;;
  12957. esac
  12958. # FIXME: first we should search . and the directory the executable is in
  12959. shlibpath_var=PATH
  12960. ;;
  12961. darwin* | rhapsody*)
  12962. dynamic_linker="$host_os dyld"
  12963. version_type=darwin
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12967. soname_spec='${libname}${release}${major}$shared_ext'
  12968. shlibpath_overrides_runpath=yes
  12969. shlibpath_var=DYLD_LIBRARY_PATH
  12970. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12971. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12972. ;;
  12973. dgux*)
  12974. version_type=linux # correct to gnu/linux during the next big refactor
  12975. need_lib_prefix=no
  12976. need_version=no
  12977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12978. soname_spec='${libname}${release}${shared_ext}$major'
  12979. shlibpath_var=LD_LIBRARY_PATH
  12980. ;;
  12981. freebsd* | dragonfly*)
  12982. # DragonFly does not have aout. When/if they implement a new
  12983. # versioning mechanism, adjust this.
  12984. if test -x /usr/bin/objformat; then
  12985. objformat=`/usr/bin/objformat`
  12986. else
  12987. case $host_os in
  12988. freebsd[23].*) objformat=aout ;;
  12989. *) objformat=elf ;;
  12990. esac
  12991. fi
  12992. version_type=freebsd-$objformat
  12993. case $version_type in
  12994. freebsd-elf*)
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12996. need_version=no
  12997. need_lib_prefix=no
  12998. ;;
  12999. freebsd-*)
  13000. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13001. need_version=yes
  13002. ;;
  13003. esac
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. case $host_os in
  13006. freebsd2.*)
  13007. shlibpath_overrides_runpath=yes
  13008. ;;
  13009. freebsd3.[01]* | freebsdelf3.[01]*)
  13010. shlibpath_overrides_runpath=yes
  13011. hardcode_into_libs=yes
  13012. ;;
  13013. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13014. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13015. shlibpath_overrides_runpath=no
  13016. hardcode_into_libs=yes
  13017. ;;
  13018. *) # from 4.6 on, and DragonFly
  13019. shlibpath_overrides_runpath=yes
  13020. hardcode_into_libs=yes
  13021. ;;
  13022. esac
  13023. ;;
  13024. gnu*)
  13025. version_type=linux # correct to gnu/linux during the next big refactor
  13026. need_lib_prefix=no
  13027. need_version=no
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. shlibpath_var=LD_LIBRARY_PATH
  13031. shlibpath_overrides_runpath=no
  13032. hardcode_into_libs=yes
  13033. ;;
  13034. haiku*)
  13035. version_type=linux # correct to gnu/linux during the next big refactor
  13036. need_lib_prefix=no
  13037. need_version=no
  13038. dynamic_linker="$host_os runtime_loader"
  13039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13040. soname_spec='${libname}${release}${shared_ext}$major'
  13041. shlibpath_var=LIBRARY_PATH
  13042. shlibpath_overrides_runpath=yes
  13043. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13044. hardcode_into_libs=yes
  13045. ;;
  13046. hpux9* | hpux10* | hpux11*)
  13047. # Give a soname corresponding to the major version so that dld.sl refuses to
  13048. # link against other versions.
  13049. version_type=sunos
  13050. need_lib_prefix=no
  13051. need_version=no
  13052. case $host_cpu in
  13053. ia64*)
  13054. shrext_cmds='.so'
  13055. hardcode_into_libs=yes
  13056. dynamic_linker="$host_os dld.so"
  13057. shlibpath_var=LD_LIBRARY_PATH
  13058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13060. soname_spec='${libname}${release}${shared_ext}$major'
  13061. if test "X$HPUX_IA64_MODE" = X32; then
  13062. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13063. else
  13064. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13065. fi
  13066. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13067. ;;
  13068. hppa*64*)
  13069. shrext_cmds='.sl'
  13070. hardcode_into_libs=yes
  13071. dynamic_linker="$host_os dld.sl"
  13072. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13073. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13075. soname_spec='${libname}${release}${shared_ext}$major'
  13076. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13078. ;;
  13079. *)
  13080. shrext_cmds='.sl'
  13081. dynamic_linker="$host_os dld.sl"
  13082. shlibpath_var=SHLIB_PATH
  13083. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13085. soname_spec='${libname}${release}${shared_ext}$major'
  13086. ;;
  13087. esac
  13088. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13089. postinstall_cmds='chmod 555 $lib'
  13090. # or fails outright, so override atomically:
  13091. install_override_mode=555
  13092. ;;
  13093. interix[3-9]*)
  13094. version_type=linux # correct to gnu/linux during the next big refactor
  13095. need_lib_prefix=no
  13096. need_version=no
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13098. soname_spec='${libname}${release}${shared_ext}$major'
  13099. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13100. shlibpath_var=LD_LIBRARY_PATH
  13101. shlibpath_overrides_runpath=no
  13102. hardcode_into_libs=yes
  13103. ;;
  13104. irix5* | irix6* | nonstopux*)
  13105. case $host_os in
  13106. nonstopux*) version_type=nonstopux ;;
  13107. *)
  13108. if test "$lt_cv_prog_gnu_ld" = yes; then
  13109. version_type=linux # correct to gnu/linux during the next big refactor
  13110. else
  13111. version_type=irix
  13112. fi ;;
  13113. esac
  13114. need_lib_prefix=no
  13115. need_version=no
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13118. case $host_os in
  13119. irix5* | nonstopux*)
  13120. libsuff= shlibsuff=
  13121. ;;
  13122. *)
  13123. case $LD in # libtool.m4 will add one of these switches to LD
  13124. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13125. libsuff= shlibsuff= libmagic=32-bit;;
  13126. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13127. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13128. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13129. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13130. *) libsuff= shlibsuff= libmagic=never-match;;
  13131. esac
  13132. ;;
  13133. esac
  13134. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13135. shlibpath_overrides_runpath=no
  13136. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13137. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13138. hardcode_into_libs=yes
  13139. ;;
  13140. # No shared lib support for Linux oldld, aout, or coff.
  13141. linux*oldld* | linux*aout* | linux*coff*)
  13142. dynamic_linker=no
  13143. ;;
  13144. # This must be glibc/ELF.
  13145. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13146. version_type=linux # correct to gnu/linux during the next big refactor
  13147. need_lib_prefix=no
  13148. need_version=no
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. shlibpath_overrides_runpath=no
  13154. # Some binutils ld are patched to set DT_RUNPATH
  13155. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13156. $as_echo_n "(cached) " >&6
  13157. else
  13158. lt_cv_shlibpath_overrides_runpath=no
  13159. save_LDFLAGS=$LDFLAGS
  13160. save_libdir=$libdir
  13161. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13162. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13164. /* end confdefs.h. */
  13165. int
  13166. main ()
  13167. {
  13168. ;
  13169. return 0;
  13170. }
  13171. _ACEOF
  13172. if ac_fn_cxx_try_link "$LINENO"; then :
  13173. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13174. lt_cv_shlibpath_overrides_runpath=yes
  13175. fi
  13176. fi
  13177. rm -f core conftest.err conftest.$ac_objext \
  13178. conftest$ac_exeext conftest.$ac_ext
  13179. LDFLAGS=$save_LDFLAGS
  13180. libdir=$save_libdir
  13181. fi
  13182. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13183. # This implies no fast_install, which is unacceptable.
  13184. # Some rework will be needed to allow for fast_install
  13185. # before this can be enabled.
  13186. hardcode_into_libs=yes
  13187. # Append ld.so.conf contents to the search path
  13188. if test -f /etc/ld.so.conf; then
  13189. 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' ' '`
  13190. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13191. fi
  13192. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13193. # powerpc, because MkLinux only supported shared libraries with the
  13194. # GNU dynamic linker. Since this was broken with cross compilers,
  13195. # most powerpc-linux boxes support dynamic linking these days and
  13196. # people can always --disable-shared, the test was removed, and we
  13197. # assume the GNU/Linux dynamic linker is in use.
  13198. dynamic_linker='GNU/Linux ld.so'
  13199. ;;
  13200. netbsd*)
  13201. version_type=sunos
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13206. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13207. dynamic_linker='NetBSD (a.out) ld.so'
  13208. else
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. dynamic_linker='NetBSD ld.elf_so'
  13212. fi
  13213. shlibpath_var=LD_LIBRARY_PATH
  13214. shlibpath_overrides_runpath=yes
  13215. hardcode_into_libs=yes
  13216. ;;
  13217. newsos6)
  13218. version_type=linux # correct to gnu/linux during the next big refactor
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. shlibpath_overrides_runpath=yes
  13222. ;;
  13223. *nto* | *qnx*)
  13224. version_type=qnx
  13225. need_lib_prefix=no
  13226. need_version=no
  13227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13228. soname_spec='${libname}${release}${shared_ext}$major'
  13229. shlibpath_var=LD_LIBRARY_PATH
  13230. shlibpath_overrides_runpath=no
  13231. hardcode_into_libs=yes
  13232. dynamic_linker='ldqnx.so'
  13233. ;;
  13234. openbsd*)
  13235. version_type=sunos
  13236. sys_lib_dlsearch_path_spec="/usr/lib"
  13237. need_lib_prefix=no
  13238. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13239. case $host_os in
  13240. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13241. *) need_version=no ;;
  13242. esac
  13243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13244. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13245. shlibpath_var=LD_LIBRARY_PATH
  13246. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13247. case $host_os in
  13248. openbsd2.[89] | openbsd2.[89].*)
  13249. shlibpath_overrides_runpath=no
  13250. ;;
  13251. *)
  13252. shlibpath_overrides_runpath=yes
  13253. ;;
  13254. esac
  13255. else
  13256. shlibpath_overrides_runpath=yes
  13257. fi
  13258. ;;
  13259. os2*)
  13260. libname_spec='$name'
  13261. shrext_cmds=".dll"
  13262. need_lib_prefix=no
  13263. library_names_spec='$libname${shared_ext} $libname.a'
  13264. dynamic_linker='OS/2 ld.exe'
  13265. shlibpath_var=LIBPATH
  13266. ;;
  13267. osf3* | osf4* | osf5*)
  13268. version_type=osf
  13269. need_lib_prefix=no
  13270. need_version=no
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13273. shlibpath_var=LD_LIBRARY_PATH
  13274. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13275. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13276. ;;
  13277. rdos*)
  13278. dynamic_linker=no
  13279. ;;
  13280. solaris*)
  13281. version_type=linux # correct to gnu/linux during the next big refactor
  13282. need_lib_prefix=no
  13283. need_version=no
  13284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13285. soname_spec='${libname}${release}${shared_ext}$major'
  13286. shlibpath_var=LD_LIBRARY_PATH
  13287. shlibpath_overrides_runpath=yes
  13288. hardcode_into_libs=yes
  13289. # ldd complains unless libraries are executable
  13290. postinstall_cmds='chmod +x $lib'
  13291. ;;
  13292. sunos4*)
  13293. version_type=sunos
  13294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13295. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13296. shlibpath_var=LD_LIBRARY_PATH
  13297. shlibpath_overrides_runpath=yes
  13298. if test "$with_gnu_ld" = yes; then
  13299. need_lib_prefix=no
  13300. fi
  13301. need_version=yes
  13302. ;;
  13303. sysv4 | sysv4.3*)
  13304. version_type=linux # correct to gnu/linux during the next big refactor
  13305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13306. soname_spec='${libname}${release}${shared_ext}$major'
  13307. shlibpath_var=LD_LIBRARY_PATH
  13308. case $host_vendor in
  13309. sni)
  13310. shlibpath_overrides_runpath=no
  13311. need_lib_prefix=no
  13312. runpath_var=LD_RUN_PATH
  13313. ;;
  13314. siemens)
  13315. need_lib_prefix=no
  13316. ;;
  13317. motorola)
  13318. need_lib_prefix=no
  13319. need_version=no
  13320. shlibpath_overrides_runpath=no
  13321. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13322. ;;
  13323. esac
  13324. ;;
  13325. sysv4*MP*)
  13326. if test -d /usr/nec ;then
  13327. version_type=linux # correct to gnu/linux during the next big refactor
  13328. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13329. soname_spec='$libname${shared_ext}.$major'
  13330. shlibpath_var=LD_LIBRARY_PATH
  13331. fi
  13332. ;;
  13333. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13334. version_type=freebsd-elf
  13335. need_lib_prefix=no
  13336. need_version=no
  13337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13338. soname_spec='${libname}${release}${shared_ext}$major'
  13339. shlibpath_var=LD_LIBRARY_PATH
  13340. shlibpath_overrides_runpath=yes
  13341. hardcode_into_libs=yes
  13342. if test "$with_gnu_ld" = yes; then
  13343. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13344. else
  13345. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13346. case $host_os in
  13347. sco3.2v5*)
  13348. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13349. ;;
  13350. esac
  13351. fi
  13352. sys_lib_dlsearch_path_spec='/usr/lib'
  13353. ;;
  13354. tpf*)
  13355. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13356. version_type=linux # correct to gnu/linux during the next big refactor
  13357. need_lib_prefix=no
  13358. need_version=no
  13359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13360. shlibpath_var=LD_LIBRARY_PATH
  13361. shlibpath_overrides_runpath=no
  13362. hardcode_into_libs=yes
  13363. ;;
  13364. uts4*)
  13365. version_type=linux # correct to gnu/linux during the next big refactor
  13366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13367. soname_spec='${libname}${release}${shared_ext}$major'
  13368. shlibpath_var=LD_LIBRARY_PATH
  13369. ;;
  13370. *)
  13371. dynamic_linker=no
  13372. ;;
  13373. esac
  13374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13375. $as_echo "$dynamic_linker" >&6; }
  13376. test "$dynamic_linker" = no && can_build_shared=no
  13377. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13378. if test "$GCC" = yes; then
  13379. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13380. fi
  13381. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13382. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13383. fi
  13384. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13385. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13386. fi
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13388. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13389. hardcode_action_CXX=
  13390. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13391. test -n "$runpath_var_CXX" ||
  13392. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13393. # We can hardcode non-existent directories.
  13394. if test "$hardcode_direct_CXX" != no &&
  13395. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13396. # have to relink, otherwise we might link with an installed library
  13397. # when we should be linking with a yet-to-be-installed one
  13398. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13399. test "$hardcode_minus_L_CXX" != no; then
  13400. # Linking always hardcodes the temporary library directory.
  13401. hardcode_action_CXX=relink
  13402. else
  13403. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13404. hardcode_action_CXX=immediate
  13405. fi
  13406. else
  13407. # We cannot hardcode anything, or else we can only hardcode existing
  13408. # directories.
  13409. hardcode_action_CXX=unsupported
  13410. fi
  13411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13412. $as_echo "$hardcode_action_CXX" >&6; }
  13413. if test "$hardcode_action_CXX" = relink ||
  13414. test "$inherit_rpath_CXX" = yes; then
  13415. # Fast installation is not supported
  13416. enable_fast_install=no
  13417. elif test "$shlibpath_overrides_runpath" = yes ||
  13418. test "$enable_shared" = no; then
  13419. # Fast installation is not necessary
  13420. enable_fast_install=needless
  13421. fi
  13422. fi # test -n "$compiler"
  13423. CC=$lt_save_CC
  13424. CFLAGS=$lt_save_CFLAGS
  13425. LDCXX=$LD
  13426. LD=$lt_save_LD
  13427. GCC=$lt_save_GCC
  13428. with_gnu_ld=$lt_save_with_gnu_ld
  13429. lt_cv_path_LDCXX=$lt_cv_path_LD
  13430. lt_cv_path_LD=$lt_save_path_LD
  13431. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13432. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13433. fi # test "$_lt_caught_CXX_error" != yes
  13434. ac_ext=c
  13435. ac_cpp='$CPP $CPPFLAGS'
  13436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13439. # Find a good install program. We prefer a C program (faster),
  13440. # so one script is as good as another. But avoid the broken or
  13441. # incompatible versions:
  13442. # SysV /etc/install, /usr/sbin/install
  13443. # SunOS /usr/etc/install
  13444. # IRIX /sbin/install
  13445. # AIX /bin/install
  13446. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13447. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13448. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13449. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13450. # OS/2's system install, which has a completely different semantic
  13451. # ./install, which can be erroneously created by make from ./install.sh.
  13452. # Reject install programs that cannot install multiple files.
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13454. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13455. if test -z "$INSTALL"; then
  13456. if ${ac_cv_path_install+:} false; then :
  13457. $as_echo_n "(cached) " >&6
  13458. else
  13459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13460. for as_dir in $PATH
  13461. do
  13462. IFS=$as_save_IFS
  13463. test -z "$as_dir" && as_dir=.
  13464. # Account for people who put trailing slashes in PATH elements.
  13465. case $as_dir/ in #((
  13466. ./ | .// | /[cC]/* | \
  13467. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13468. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13469. /usr/ucb/* ) ;;
  13470. *)
  13471. # OSF1 and SCO ODT 3.0 have their own names for install.
  13472. # Don't use installbsd from OSF since it installs stuff as root
  13473. # by default.
  13474. for ac_prog in ginstall scoinst install; do
  13475. for ac_exec_ext in '' $ac_executable_extensions; do
  13476. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13477. if test $ac_prog = install &&
  13478. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13479. # AIX install. It has an incompatible calling convention.
  13480. :
  13481. elif test $ac_prog = install &&
  13482. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13483. # program-specific install script used by HP pwplus--don't use.
  13484. :
  13485. else
  13486. rm -rf conftest.one conftest.two conftest.dir
  13487. echo one > conftest.one
  13488. echo two > conftest.two
  13489. mkdir conftest.dir
  13490. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13491. test -s conftest.one && test -s conftest.two &&
  13492. test -s conftest.dir/conftest.one &&
  13493. test -s conftest.dir/conftest.two
  13494. then
  13495. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13496. break 3
  13497. fi
  13498. fi
  13499. fi
  13500. done
  13501. done
  13502. ;;
  13503. esac
  13504. done
  13505. IFS=$as_save_IFS
  13506. rm -rf conftest.one conftest.two conftest.dir
  13507. fi
  13508. if test "${ac_cv_path_install+set}" = set; then
  13509. INSTALL=$ac_cv_path_install
  13510. else
  13511. # As a last resort, use the slow shell script. Don't cache a
  13512. # value for INSTALL within a source directory, because that will
  13513. # break other packages using the cache if that directory is
  13514. # removed, or if the value is a relative name.
  13515. INSTALL=$ac_install_sh
  13516. fi
  13517. fi
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13519. $as_echo "$INSTALL" >&6; }
  13520. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13521. # It thinks the first close brace ends the variable substitution.
  13522. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13523. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13524. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13526. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13527. set x ${MAKE-make}
  13528. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13529. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13530. $as_echo_n "(cached) " >&6
  13531. else
  13532. cat >conftest.make <<\_ACEOF
  13533. SHELL = /bin/sh
  13534. all:
  13535. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13536. _ACEOF
  13537. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13538. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13539. *@@@%%%=?*=@@@%%%*)
  13540. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13541. *)
  13542. eval ac_cv_prog_make_${ac_make}_set=no;;
  13543. esac
  13544. rm -f conftest.make
  13545. fi
  13546. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13548. $as_echo "yes" >&6; }
  13549. SET_MAKE=
  13550. else
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13552. $as_echo "no" >&6; }
  13553. SET_MAKE="MAKE=${MAKE-make}"
  13554. fi
  13555. if test -n "$ac_tool_prefix"; then
  13556. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13557. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13559. $as_echo_n "checking for $ac_word... " >&6; }
  13560. if ${ac_cv_prog_WINDRES+:} false; then :
  13561. $as_echo_n "(cached) " >&6
  13562. else
  13563. if test -n "$WINDRES"; then
  13564. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13565. else
  13566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13567. for as_dir in $PATH
  13568. do
  13569. IFS=$as_save_IFS
  13570. test -z "$as_dir" && as_dir=.
  13571. for ac_exec_ext in '' $ac_executable_extensions; do
  13572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13573. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13575. break 2
  13576. fi
  13577. done
  13578. done
  13579. IFS=$as_save_IFS
  13580. fi
  13581. fi
  13582. WINDRES=$ac_cv_prog_WINDRES
  13583. if test -n "$WINDRES"; then
  13584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13585. $as_echo "$WINDRES" >&6; }
  13586. else
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13588. $as_echo "no" >&6; }
  13589. fi
  13590. fi
  13591. if test -z "$ac_cv_prog_WINDRES"; then
  13592. ac_ct_WINDRES=$WINDRES
  13593. # Extract the first word of "windres", so it can be a program name with args.
  13594. set dummy windres; ac_word=$2
  13595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13596. $as_echo_n "checking for $ac_word... " >&6; }
  13597. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13598. $as_echo_n "(cached) " >&6
  13599. else
  13600. if test -n "$ac_ct_WINDRES"; then
  13601. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13602. else
  13603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13604. for as_dir in $PATH
  13605. do
  13606. IFS=$as_save_IFS
  13607. test -z "$as_dir" && as_dir=.
  13608. for ac_exec_ext in '' $ac_executable_extensions; do
  13609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13610. ac_cv_prog_ac_ct_WINDRES="windres"
  13611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13612. break 2
  13613. fi
  13614. done
  13615. done
  13616. IFS=$as_save_IFS
  13617. fi
  13618. fi
  13619. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13620. if test -n "$ac_ct_WINDRES"; then
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13622. $as_echo "$ac_ct_WINDRES" >&6; }
  13623. else
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13625. $as_echo "no" >&6; }
  13626. fi
  13627. if test "x$ac_ct_WINDRES" = x; then
  13628. WINDRES=":"
  13629. else
  13630. case $cross_compiling:$ac_tool_warned in
  13631. yes:)
  13632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13634. ac_tool_warned=yes ;;
  13635. esac
  13636. WINDRES=$ac_ct_WINDRES
  13637. fi
  13638. else
  13639. WINDRES="$ac_cv_prog_WINDRES"
  13640. fi
  13641. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13642. if test -n "$ac_tool_prefix"; then
  13643. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13644. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13646. $as_echo_n "checking for $ac_word... " >&6; }
  13647. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13648. $as_echo_n "(cached) " >&6
  13649. else
  13650. case $PKG_CONFIG in
  13651. [\\/]* | ?:[\\/]*)
  13652. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13653. ;;
  13654. *)
  13655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13656. for as_dir in $PATH
  13657. do
  13658. IFS=$as_save_IFS
  13659. test -z "$as_dir" && as_dir=.
  13660. for ac_exec_ext in '' $ac_executable_extensions; do
  13661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13662. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13664. break 2
  13665. fi
  13666. done
  13667. done
  13668. IFS=$as_save_IFS
  13669. ;;
  13670. esac
  13671. fi
  13672. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13673. if test -n "$PKG_CONFIG"; then
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13675. $as_echo "$PKG_CONFIG" >&6; }
  13676. else
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13678. $as_echo "no" >&6; }
  13679. fi
  13680. fi
  13681. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13682. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13683. # Extract the first word of "pkg-config", so it can be a program name with args.
  13684. set dummy pkg-config; ac_word=$2
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13686. $as_echo_n "checking for $ac_word... " >&6; }
  13687. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13688. $as_echo_n "(cached) " >&6
  13689. else
  13690. case $ac_pt_PKG_CONFIG in
  13691. [\\/]* | ?:[\\/]*)
  13692. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13693. ;;
  13694. *)
  13695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13696. for as_dir in $PATH
  13697. do
  13698. IFS=$as_save_IFS
  13699. test -z "$as_dir" && as_dir=.
  13700. for ac_exec_ext in '' $ac_executable_extensions; do
  13701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13702. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13704. break 2
  13705. fi
  13706. done
  13707. done
  13708. IFS=$as_save_IFS
  13709. ;;
  13710. esac
  13711. fi
  13712. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13713. if test -n "$ac_pt_PKG_CONFIG"; then
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13715. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13716. else
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13718. $as_echo "no" >&6; }
  13719. fi
  13720. if test "x$ac_pt_PKG_CONFIG" = x; then
  13721. PKG_CONFIG=""
  13722. else
  13723. case $cross_compiling:$ac_tool_warned in
  13724. yes:)
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13726. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13727. ac_tool_warned=yes ;;
  13728. esac
  13729. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13730. fi
  13731. else
  13732. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13733. fi
  13734. fi
  13735. if test -n "$PKG_CONFIG"; then
  13736. _pkg_min_version=0.9.0
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13738. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13739. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13741. $as_echo "yes" >&6; }
  13742. else
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13744. $as_echo "no" >&6; }
  13745. PKG_CONFIG=""
  13746. fi
  13747. fi
  13748. case "$host" in
  13749. *-*-mingw32*)
  13750. # Except on msys, where make can't handle full pathnames (bug 1972)
  13751. ;;
  13752. *)
  13753. srcdir=`cd $srcdir && pwd`
  13754. ;;
  13755. esac
  13756. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13757. if test x$srcdir != x.; then
  13758. INCLUDE="-Iinclude $INCLUDE"
  13759. elif test -d .hg; then
  13760. as_fn_error $? "
  13761. *** When building from Mercurial you should configure and build in a
  13762. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13763. " "$LINENO" 5
  13764. fi
  13765. BASE_CFLAGS=""
  13766. BASE_LDFLAGS=""
  13767. case "$host" in
  13768. *-*-cygwin*)
  13769. # We build SDL on cygwin without the UNIX emulation layer
  13770. save_CFLAGS="$CFLAGS"
  13771. have_no_cygwin=no
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13773. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13774. CFLAGS="$save_CFLAGS -mno-cygwin"
  13775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13776. /* end confdefs.h. */
  13777. int
  13778. main ()
  13779. {
  13780. ;
  13781. return 0;
  13782. }
  13783. _ACEOF
  13784. if ac_fn_c_try_compile "$LINENO"; then :
  13785. have_no_cygwin=yes
  13786. fi
  13787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13789. $as_echo "$have_no_cygwin" >&6; }
  13790. CFLAGS="$save_CFLAGS"
  13791. if test x$have_no_cygwin = xyes; then
  13792. BASE_CFLAGS="-mno-cygwin"
  13793. BASE_LDFLAGS="-mno-cygwin"
  13794. fi
  13795. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13796. ;;
  13797. esac
  13798. # Uncomment the following line if you want to force SDL and applications
  13799. # built with it to be compiled for a particular architecture.
  13800. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13801. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13802. # The default optimization for SDL is -O3 (Bug #31)
  13803. if test "x$orig_CFLAGS" = x; then
  13804. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13805. fi
  13806. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13807. BUILD_LDFLAGS="$LDFLAGS"
  13808. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13809. ## These are common directories to find software packages
  13810. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13811. # if test -d $path/include; then
  13812. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13813. # fi
  13814. # if test -d $path/lib; then
  13815. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13816. # fi
  13817. #done
  13818. SDL_CFLAGS="$BASE_CFLAGS"
  13819. SDL_LIBS="-lSDL2"
  13820. if test "x$BASE_LDFLAGS" != x; then
  13821. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13822. fi
  13823. if test "x$EXTRA_CFLAGS" != x; then
  13824. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13825. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13826. fi
  13827. if test "x$EXTRA_LDFLAGS" != x; then
  13828. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13829. fi
  13830. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13831. find_lib()
  13832. {
  13833. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13834. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13835. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13836. if test "$cross_compiling" = yes; then
  13837. host_lib_path=""
  13838. else
  13839. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13840. fi
  13841. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13842. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13843. if test x$lib != x; then
  13844. echo $lib
  13845. return
  13846. fi
  13847. done
  13848. # Try again, this time allowing more than one version digit after the .so
  13849. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13850. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13851. if test x$lib != x; then
  13852. echo $lib
  13853. return
  13854. fi
  13855. done
  13856. }
  13857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13858. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13859. if ${ac_cv_c_const+:} false; then :
  13860. $as_echo_n "(cached) " >&6
  13861. else
  13862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13863. /* end confdefs.h. */
  13864. int
  13865. main ()
  13866. {
  13867. #ifndef __cplusplus
  13868. /* Ultrix mips cc rejects this sort of thing. */
  13869. typedef int charset[2];
  13870. const charset cs = { 0, 0 };
  13871. /* SunOS 4.1.1 cc rejects this. */
  13872. char const *const *pcpcc;
  13873. char **ppc;
  13874. /* NEC SVR4.0.2 mips cc rejects this. */
  13875. struct point {int x, y;};
  13876. static struct point const zero = {0,0};
  13877. /* AIX XL C 1.02.0.0 rejects this.
  13878. It does not let you subtract one const X* pointer from another in
  13879. an arm of an if-expression whose if-part is not a constant
  13880. expression */
  13881. const char *g = "string";
  13882. pcpcc = &g + (g ? g-g : 0);
  13883. /* HPUX 7.0 cc rejects these. */
  13884. ++pcpcc;
  13885. ppc = (char**) pcpcc;
  13886. pcpcc = (char const *const *) ppc;
  13887. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13888. char tx;
  13889. char *t = &tx;
  13890. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13891. *t++ = 0;
  13892. if (s) return 0;
  13893. }
  13894. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13895. int x[] = {25, 17};
  13896. const int *foo = &x[0];
  13897. ++foo;
  13898. }
  13899. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13900. typedef const int *iptr;
  13901. iptr p = 0;
  13902. ++p;
  13903. }
  13904. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13905. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13906. struct s { int j; const int *ap[3]; } bx;
  13907. struct s *b = &bx; b->j = 5;
  13908. }
  13909. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13910. const int foo = 10;
  13911. if (!foo) return 0;
  13912. }
  13913. return !cs[0] && !zero.x;
  13914. #endif
  13915. ;
  13916. return 0;
  13917. }
  13918. _ACEOF
  13919. if ac_fn_c_try_compile "$LINENO"; then :
  13920. ac_cv_c_const=yes
  13921. else
  13922. ac_cv_c_const=no
  13923. fi
  13924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13925. fi
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13927. $as_echo "$ac_cv_c_const" >&6; }
  13928. if test $ac_cv_c_const = no; then
  13929. $as_echo "#define const /**/" >>confdefs.h
  13930. fi
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13932. $as_echo_n "checking for inline... " >&6; }
  13933. if ${ac_cv_c_inline+:} false; then :
  13934. $as_echo_n "(cached) " >&6
  13935. else
  13936. ac_cv_c_inline=no
  13937. for ac_kw in inline __inline__ __inline; do
  13938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13939. /* end confdefs.h. */
  13940. #ifndef __cplusplus
  13941. typedef int foo_t;
  13942. static $ac_kw foo_t static_foo () {return 0; }
  13943. $ac_kw foo_t foo () {return 0; }
  13944. #endif
  13945. _ACEOF
  13946. if ac_fn_c_try_compile "$LINENO"; then :
  13947. ac_cv_c_inline=$ac_kw
  13948. fi
  13949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13950. test "$ac_cv_c_inline" != no && break
  13951. done
  13952. fi
  13953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13954. $as_echo "$ac_cv_c_inline" >&6; }
  13955. case $ac_cv_c_inline in
  13956. inline | yes) ;;
  13957. *)
  13958. case $ac_cv_c_inline in
  13959. no) ac_val=;;
  13960. *) ac_val=$ac_cv_c_inline;;
  13961. esac
  13962. cat >>confdefs.h <<_ACEOF
  13963. #ifndef __cplusplus
  13964. #define inline $ac_val
  13965. #endif
  13966. _ACEOF
  13967. ;;
  13968. esac
  13969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13970. $as_echo_n "checking for working volatile... " >&6; }
  13971. if ${ac_cv_c_volatile+:} false; then :
  13972. $as_echo_n "(cached) " >&6
  13973. else
  13974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13975. /* end confdefs.h. */
  13976. int
  13977. main ()
  13978. {
  13979. volatile int x;
  13980. int * volatile y = (int *) 0;
  13981. return !x && !y;
  13982. ;
  13983. return 0;
  13984. }
  13985. _ACEOF
  13986. if ac_fn_c_try_compile "$LINENO"; then :
  13987. ac_cv_c_volatile=yes
  13988. else
  13989. ac_cv_c_volatile=no
  13990. fi
  13991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13994. $as_echo "$ac_cv_c_volatile" >&6; }
  13995. if test $ac_cv_c_volatile = no; then
  13996. $as_echo "#define volatile /**/" >>confdefs.h
  13997. fi
  13998. # Check whether --enable-assertions was given.
  13999. if test "${enable_assertions+set}" = set; then :
  14000. enableval=$enable_assertions;
  14001. else
  14002. enable_assertions=auto
  14003. fi
  14004. case "$enable_assertions" in
  14005. auto) # Use optimization settings to determine assertion level
  14006. ;;
  14007. disabled)
  14008. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14009. ;;
  14010. release)
  14011. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14012. ;;
  14013. enabled)
  14014. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14015. ;;
  14016. paranoid)
  14017. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14018. ;;
  14019. *)
  14020. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14021. ;;
  14022. esac
  14023. # Check whether --enable-dependency-tracking was given.
  14024. if test "${enable_dependency_tracking+set}" = set; then :
  14025. enableval=$enable_dependency_tracking;
  14026. else
  14027. enable_dependency_tracking=yes
  14028. fi
  14029. if test x$enable_dependency_tracking = xyes; then
  14030. have_gcc_mmd_mt=no
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14032. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14034. /* end confdefs.h. */
  14035. #if !defined(__GNUC__) || __GNUC__ < 3
  14036. #error Dependency tracking requires GCC 3.0 or newer
  14037. #endif
  14038. int
  14039. main ()
  14040. {
  14041. ;
  14042. return 0;
  14043. }
  14044. _ACEOF
  14045. if ac_fn_c_try_compile "$LINENO"; then :
  14046. have_gcc_mmd_mt=yes
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14050. $as_echo "$have_gcc_mmd_mt" >&6; }
  14051. if test x$have_gcc_mmd_mt = xyes; then
  14052. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14053. fi
  14054. fi
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14056. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14057. have_no_undefined=no
  14058. case "$host" in
  14059. *-*-openbsd*)
  14060. ;;
  14061. *)
  14062. save_LDFLAGS="$LDFLAGS"
  14063. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14065. /* end confdefs.h. */
  14066. int
  14067. main ()
  14068. {
  14069. ;
  14070. return 0;
  14071. }
  14072. _ACEOF
  14073. if ac_fn_c_try_link "$LINENO"; then :
  14074. have_no_undefined=yes
  14075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14076. fi
  14077. rm -f core conftest.err conftest.$ac_objext \
  14078. conftest$ac_exeext conftest.$ac_ext
  14079. LDFLAGS="$save_LDFLAGS"
  14080. ;;
  14081. esac
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14083. $as_echo "$have_no_undefined" >&6; }
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14085. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14086. have_dynamicbase=no
  14087. case "$host" in
  14088. *)
  14089. save_LDFLAGS="$LDFLAGS"
  14090. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. int
  14094. main ()
  14095. {
  14096. ;
  14097. return 0;
  14098. }
  14099. _ACEOF
  14100. if ac_fn_c_try_link "$LINENO"; then :
  14101. have_dynamicbase=yes
  14102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14103. fi
  14104. rm -f core conftest.err conftest.$ac_objext \
  14105. conftest$ac_exeext conftest.$ac_ext
  14106. LDFLAGS="$save_LDFLAGS"
  14107. ;;
  14108. esac
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14110. $as_echo "$have_dynamicbase" >&6; }
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14112. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14113. have_nxcompat=no
  14114. case "$host" in
  14115. *)
  14116. save_LDFLAGS="$LDFLAGS"
  14117. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14119. /* end confdefs.h. */
  14120. int
  14121. main ()
  14122. {
  14123. ;
  14124. return 0;
  14125. }
  14126. _ACEOF
  14127. if ac_fn_c_try_link "$LINENO"; then :
  14128. have_nxcompat=yes
  14129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14130. fi
  14131. rm -f core conftest.err conftest.$ac_objext \
  14132. conftest$ac_exeext conftest.$ac_ext
  14133. LDFLAGS="$save_LDFLAGS"
  14134. ;;
  14135. esac
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14137. $as_echo "$have_nxcompat" >&6; }
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14139. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14140. have_high_entropy_va=no
  14141. case "$host" in
  14142. *)
  14143. save_LDFLAGS="$LDFLAGS"
  14144. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14146. /* end confdefs.h. */
  14147. int
  14148. main ()
  14149. {
  14150. ;
  14151. return 0;
  14152. }
  14153. _ACEOF
  14154. if ac_fn_c_try_link "$LINENO"; then :
  14155. have_high_entropy_va=yes
  14156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14157. fi
  14158. rm -f core conftest.err conftest.$ac_objext \
  14159. conftest$ac_exeext conftest.$ac_ext
  14160. LDFLAGS="$save_LDFLAGS"
  14161. ;;
  14162. esac
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14164. $as_echo "$have_high_entropy_va" >&6; }
  14165. # Check whether --enable-libc was given.
  14166. if test "${enable_libc+set}" = set; then :
  14167. enableval=$enable_libc;
  14168. else
  14169. enable_libc=yes
  14170. fi
  14171. if test x$enable_libc = xyes; then
  14172. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14174. $as_echo_n "checking for ANSI C header files... " >&6; }
  14175. if ${ac_cv_header_stdc+:} false; then :
  14176. $as_echo_n "(cached) " >&6
  14177. else
  14178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14179. /* end confdefs.h. */
  14180. #include <stdlib.h>
  14181. #include <stdarg.h>
  14182. #include <string.h>
  14183. #include <float.h>
  14184. int
  14185. main ()
  14186. {
  14187. ;
  14188. return 0;
  14189. }
  14190. _ACEOF
  14191. if ac_fn_c_try_compile "$LINENO"; then :
  14192. ac_cv_header_stdc=yes
  14193. else
  14194. ac_cv_header_stdc=no
  14195. fi
  14196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14197. if test $ac_cv_header_stdc = yes; then
  14198. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. #include <string.h>
  14202. _ACEOF
  14203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14204. $EGREP "memchr" >/dev/null 2>&1; then :
  14205. else
  14206. ac_cv_header_stdc=no
  14207. fi
  14208. rm -f conftest*
  14209. fi
  14210. if test $ac_cv_header_stdc = yes; then
  14211. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14213. /* end confdefs.h. */
  14214. #include <stdlib.h>
  14215. _ACEOF
  14216. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14217. $EGREP "free" >/dev/null 2>&1; then :
  14218. else
  14219. ac_cv_header_stdc=no
  14220. fi
  14221. rm -f conftest*
  14222. fi
  14223. if test $ac_cv_header_stdc = yes; then
  14224. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14225. if test "$cross_compiling" = yes; then :
  14226. :
  14227. else
  14228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14229. /* end confdefs.h. */
  14230. #include <ctype.h>
  14231. #include <stdlib.h>
  14232. #if ((' ' & 0x0FF) == 0x020)
  14233. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14234. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14235. #else
  14236. # define ISLOWER(c) \
  14237. (('a' <= (c) && (c) <= 'i') \
  14238. || ('j' <= (c) && (c) <= 'r') \
  14239. || ('s' <= (c) && (c) <= 'z'))
  14240. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14241. #endif
  14242. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14243. int
  14244. main ()
  14245. {
  14246. int i;
  14247. for (i = 0; i < 256; i++)
  14248. if (XOR (islower (i), ISLOWER (i))
  14249. || toupper (i) != TOUPPER (i))
  14250. return 2;
  14251. return 0;
  14252. }
  14253. _ACEOF
  14254. if ac_fn_c_try_run "$LINENO"; then :
  14255. else
  14256. ac_cv_header_stdc=no
  14257. fi
  14258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14259. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14260. fi
  14261. fi
  14262. fi
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14264. $as_echo "$ac_cv_header_stdc" >&6; }
  14265. if test $ac_cv_header_stdc = yes; then
  14266. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14267. fi
  14268. 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
  14269. do :
  14270. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14271. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14272. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14273. cat >>confdefs.h <<_ACEOF
  14274. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14275. _ACEOF
  14276. fi
  14277. done
  14278. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14279. if test "x$ac_cv_type_size_t" = xyes; then :
  14280. else
  14281. cat >>confdefs.h <<_ACEOF
  14282. #define size_t unsigned int
  14283. _ACEOF
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14286. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14287. if ${ac_cv_define_M_PI+:} false; then :
  14288. $as_echo_n "(cached) " >&6
  14289. else
  14290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14291. /* end confdefs.h. */
  14292. #include <math.h>
  14293. #ifdef M_PI
  14294. YES_IS_DEFINED
  14295. #endif
  14296. _ACEOF
  14297. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14298. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14299. ac_cv_define_M_PI=yes
  14300. else
  14301. ac_cv_define_M_PI=no
  14302. fi
  14303. rm -f conftest*
  14304. fi
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14306. $as_echo "$ac_cv_define_M_PI" >&6; }
  14307. if test "$ac_cv_define_M_PI" = "yes" ; then
  14308. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14309. fi
  14310. case "$host" in
  14311. *-*-cygwin* | *-*-mingw32*)
  14312. ;;
  14313. *)
  14314. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14315. # for constant arguments. Useless!
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14317. $as_echo_n "checking for working alloca.h... " >&6; }
  14318. if ${ac_cv_working_alloca_h+:} false; then :
  14319. $as_echo_n "(cached) " >&6
  14320. else
  14321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14322. /* end confdefs.h. */
  14323. #include <alloca.h>
  14324. int
  14325. main ()
  14326. {
  14327. char *p = (char *) alloca (2 * sizeof (int));
  14328. if (p) return 0;
  14329. ;
  14330. return 0;
  14331. }
  14332. _ACEOF
  14333. if ac_fn_c_try_link "$LINENO"; then :
  14334. ac_cv_working_alloca_h=yes
  14335. else
  14336. ac_cv_working_alloca_h=no
  14337. fi
  14338. rm -f core conftest.err conftest.$ac_objext \
  14339. conftest$ac_exeext conftest.$ac_ext
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14342. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14343. if test $ac_cv_working_alloca_h = yes; then
  14344. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14345. fi
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14347. $as_echo_n "checking for alloca... " >&6; }
  14348. if ${ac_cv_func_alloca_works+:} false; then :
  14349. $as_echo_n "(cached) " >&6
  14350. else
  14351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14352. /* end confdefs.h. */
  14353. #ifdef __GNUC__
  14354. # define alloca __builtin_alloca
  14355. #else
  14356. # ifdef _MSC_VER
  14357. # include <malloc.h>
  14358. # define alloca _alloca
  14359. # else
  14360. # ifdef HAVE_ALLOCA_H
  14361. # include <alloca.h>
  14362. # else
  14363. # ifdef _AIX
  14364. #pragma alloca
  14365. # else
  14366. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14367. void *alloca (size_t);
  14368. # endif
  14369. # endif
  14370. # endif
  14371. # endif
  14372. #endif
  14373. int
  14374. main ()
  14375. {
  14376. char *p = (char *) alloca (1);
  14377. if (p) return 0;
  14378. ;
  14379. return 0;
  14380. }
  14381. _ACEOF
  14382. if ac_fn_c_try_link "$LINENO"; then :
  14383. ac_cv_func_alloca_works=yes
  14384. else
  14385. ac_cv_func_alloca_works=no
  14386. fi
  14387. rm -f core conftest.err conftest.$ac_objext \
  14388. conftest$ac_exeext conftest.$ac_ext
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14391. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14392. if test $ac_cv_func_alloca_works = yes; then
  14393. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14394. else
  14395. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14396. # that cause trouble. Some versions do not even contain alloca or
  14397. # contain a buggy version. If you still want to use their alloca,
  14398. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14399. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14400. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14402. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14403. if ${ac_cv_os_cray+:} false; then :
  14404. $as_echo_n "(cached) " >&6
  14405. else
  14406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14407. /* end confdefs.h. */
  14408. #if defined CRAY && ! defined CRAY2
  14409. webecray
  14410. #else
  14411. wenotbecray
  14412. #endif
  14413. _ACEOF
  14414. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14415. $EGREP "webecray" >/dev/null 2>&1; then :
  14416. ac_cv_os_cray=yes
  14417. else
  14418. ac_cv_os_cray=no
  14419. fi
  14420. rm -f conftest*
  14421. fi
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14423. $as_echo "$ac_cv_os_cray" >&6; }
  14424. if test $ac_cv_os_cray = yes; then
  14425. for ac_func in _getb67 GETB67 getb67; do
  14426. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14427. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14428. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14429. cat >>confdefs.h <<_ACEOF
  14430. #define CRAY_STACKSEG_END $ac_func
  14431. _ACEOF
  14432. break
  14433. fi
  14434. done
  14435. fi
  14436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14437. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14438. if ${ac_cv_c_stack_direction+:} false; then :
  14439. $as_echo_n "(cached) " >&6
  14440. else
  14441. if test "$cross_compiling" = yes; then :
  14442. ac_cv_c_stack_direction=0
  14443. else
  14444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14445. /* end confdefs.h. */
  14446. $ac_includes_default
  14447. int
  14448. find_stack_direction (int *addr, int depth)
  14449. {
  14450. int dir, dummy = 0;
  14451. if (! addr)
  14452. addr = &dummy;
  14453. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14454. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14455. return dir + dummy;
  14456. }
  14457. int
  14458. main (int argc, char **argv)
  14459. {
  14460. return find_stack_direction (0, argc + !argv + 20) < 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_run "$LINENO"; then :
  14464. ac_cv_c_stack_direction=1
  14465. else
  14466. ac_cv_c_stack_direction=-1
  14467. fi
  14468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14469. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14470. fi
  14471. fi
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14473. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14474. cat >>confdefs.h <<_ACEOF
  14475. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14476. _ACEOF
  14477. fi
  14478. ;;
  14479. esac
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14481. $as_echo_n "checking for working memcmp... " >&6; }
  14482. if ${ac_cv_func_memcmp_working+:} false; then :
  14483. $as_echo_n "(cached) " >&6
  14484. else
  14485. if test "$cross_compiling" = yes; then :
  14486. ac_cv_func_memcmp_working=no
  14487. else
  14488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14489. /* end confdefs.h. */
  14490. $ac_includes_default
  14491. int
  14492. main ()
  14493. {
  14494. /* Some versions of memcmp are not 8-bit clean. */
  14495. char c0 = '\100', c1 = '\200', c2 = '\201';
  14496. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14497. return 1;
  14498. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14499. or more and with at least one buffer not starting on a 4-byte boundary.
  14500. William Lewis provided this test program. */
  14501. {
  14502. char foo[21];
  14503. char bar[21];
  14504. int i;
  14505. for (i = 0; i < 4; i++)
  14506. {
  14507. char *a = foo + i;
  14508. char *b = bar + i;
  14509. strcpy (a, "--------01111111");
  14510. strcpy (b, "--------10000000");
  14511. if (memcmp (a, b, 16) >= 0)
  14512. return 1;
  14513. }
  14514. return 0;
  14515. }
  14516. ;
  14517. return 0;
  14518. }
  14519. _ACEOF
  14520. if ac_fn_c_try_run "$LINENO"; then :
  14521. ac_cv_func_memcmp_working=yes
  14522. else
  14523. ac_cv_func_memcmp_working=no
  14524. fi
  14525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14527. fi
  14528. fi
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14530. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14531. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14532. *" memcmp.$ac_objext "* ) ;;
  14533. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14534. ;;
  14535. esac
  14536. if test x$ac_cv_func_memcmp_working = xyes; then
  14537. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14538. fi
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14540. $as_echo_n "checking for working strtod... " >&6; }
  14541. if ${ac_cv_func_strtod+:} false; then :
  14542. $as_echo_n "(cached) " >&6
  14543. else
  14544. if test "$cross_compiling" = yes; then :
  14545. ac_cv_func_strtod=no
  14546. else
  14547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14548. /* end confdefs.h. */
  14549. $ac_includes_default
  14550. #ifndef strtod
  14551. double strtod ();
  14552. #endif
  14553. int
  14554. main()
  14555. {
  14556. {
  14557. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14558. char *string = " +69";
  14559. char *term;
  14560. double value;
  14561. value = strtod (string, &term);
  14562. if (value != 69 || term != (string + 4))
  14563. return 1;
  14564. }
  14565. {
  14566. /* Under Solaris 2.4, strtod returns the wrong value for the
  14567. terminating character under some conditions. */
  14568. char *string = "NaN";
  14569. char *term;
  14570. strtod (string, &term);
  14571. if (term != string && *(term - 1) == 0)
  14572. return 1;
  14573. }
  14574. return 0;
  14575. }
  14576. _ACEOF
  14577. if ac_fn_c_try_run "$LINENO"; then :
  14578. ac_cv_func_strtod=yes
  14579. else
  14580. ac_cv_func_strtod=no
  14581. fi
  14582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14583. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14584. fi
  14585. fi
  14586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14587. $as_echo "$ac_cv_func_strtod" >&6; }
  14588. if test $ac_cv_func_strtod = no; then
  14589. case " $LIBOBJS " in
  14590. *" strtod.$ac_objext "* ) ;;
  14591. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14592. ;;
  14593. esac
  14594. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14595. if test "x$ac_cv_func_pow" = xyes; then :
  14596. fi
  14597. if test $ac_cv_func_pow = no; then
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14599. $as_echo_n "checking for pow in -lm... " >&6; }
  14600. if ${ac_cv_lib_m_pow+:} false; then :
  14601. $as_echo_n "(cached) " >&6
  14602. else
  14603. ac_check_lib_save_LIBS=$LIBS
  14604. LIBS="-lm $LIBS"
  14605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14606. /* end confdefs.h. */
  14607. /* Override any GCC internal prototype to avoid an error.
  14608. Use char because int might match the return type of a GCC
  14609. builtin and then its argument prototype would still apply. */
  14610. #ifdef __cplusplus
  14611. extern "C"
  14612. #endif
  14613. char pow ();
  14614. int
  14615. main ()
  14616. {
  14617. return pow ();
  14618. ;
  14619. return 0;
  14620. }
  14621. _ACEOF
  14622. if ac_fn_c_try_link "$LINENO"; then :
  14623. ac_cv_lib_m_pow=yes
  14624. else
  14625. ac_cv_lib_m_pow=no
  14626. fi
  14627. rm -f core conftest.err conftest.$ac_objext \
  14628. conftest$ac_exeext conftest.$ac_ext
  14629. LIBS=$ac_check_lib_save_LIBS
  14630. fi
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14632. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14633. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14634. POW_LIB=-lm
  14635. else
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14637. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14638. fi
  14639. fi
  14640. fi
  14641. if test x$ac_cv_func_strtod = xyes; then
  14642. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14643. fi
  14644. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14645. if test "x$ac_cv_func_mprotect" = xyes; then :
  14646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14647. /* end confdefs.h. */
  14648. #include <sys/types.h>
  14649. #include <sys/mman.h>
  14650. int
  14651. main ()
  14652. {
  14653. ;
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. if ac_fn_c_try_compile "$LINENO"; then :
  14658. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14659. fi
  14660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14661. fi
  14662. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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 poll
  14663. do :
  14664. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14665. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14666. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14667. cat >>confdefs.h <<_ACEOF
  14668. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14669. _ACEOF
  14670. fi
  14671. done
  14672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14673. $as_echo_n "checking for pow in -lm... " >&6; }
  14674. if ${ac_cv_lib_m_pow+:} false; then :
  14675. $as_echo_n "(cached) " >&6
  14676. else
  14677. ac_check_lib_save_LIBS=$LIBS
  14678. LIBS="-lm $LIBS"
  14679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14680. /* end confdefs.h. */
  14681. /* Override any GCC internal prototype to avoid an error.
  14682. Use char because int might match the return type of a GCC
  14683. builtin and then its argument prototype would still apply. */
  14684. #ifdef __cplusplus
  14685. extern "C"
  14686. #endif
  14687. char pow ();
  14688. int
  14689. main ()
  14690. {
  14691. return pow ();
  14692. ;
  14693. return 0;
  14694. }
  14695. _ACEOF
  14696. if ac_fn_c_try_link "$LINENO"; then :
  14697. ac_cv_lib_m_pow=yes
  14698. else
  14699. ac_cv_lib_m_pow=no
  14700. fi
  14701. rm -f core conftest.err conftest.$ac_objext \
  14702. conftest$ac_exeext conftest.$ac_ext
  14703. LIBS=$ac_check_lib_save_LIBS
  14704. fi
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14706. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14707. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14708. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14709. fi
  14710. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14711. do :
  14712. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14713. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14714. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14715. cat >>confdefs.h <<_ACEOF
  14716. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14717. _ACEOF
  14718. fi
  14719. done
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14721. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14722. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14723. $as_echo_n "(cached) " >&6
  14724. else
  14725. ac_check_lib_save_LIBS=$LIBS
  14726. LIBS="-liconv $LIBS"
  14727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14728. /* end confdefs.h. */
  14729. /* Override any GCC internal prototype to avoid an error.
  14730. Use char because int might match the return type of a GCC
  14731. builtin and then its argument prototype would still apply. */
  14732. #ifdef __cplusplus
  14733. extern "C"
  14734. #endif
  14735. char iconv_open ();
  14736. int
  14737. main ()
  14738. {
  14739. return iconv_open ();
  14740. ;
  14741. return 0;
  14742. }
  14743. _ACEOF
  14744. if ac_fn_c_try_link "$LINENO"; then :
  14745. ac_cv_lib_iconv_iconv_open=yes
  14746. else
  14747. ac_cv_lib_iconv_iconv_open=no
  14748. fi
  14749. rm -f core conftest.err conftest.$ac_objext \
  14750. conftest$ac_exeext conftest.$ac_ext
  14751. LIBS=$ac_check_lib_save_LIBS
  14752. fi
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14754. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14755. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14756. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14757. fi
  14758. for ac_func in iconv
  14759. do :
  14760. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14761. if test "x$ac_cv_func_iconv" = xyes; then :
  14762. cat >>confdefs.h <<_ACEOF
  14763. #define HAVE_ICONV 1
  14764. _ACEOF
  14765. fi
  14766. done
  14767. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14768. "
  14769. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14770. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14771. fi
  14772. for ac_header in libunwind.h
  14773. do :
  14774. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14775. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14776. cat >>confdefs.h <<_ACEOF
  14777. #define HAVE_LIBUNWIND_H 1
  14778. _ACEOF
  14779. fi
  14780. done
  14781. fi
  14782. # Check whether --enable-gcc-atomics was given.
  14783. if test "${enable_gcc_atomics+set}" = set; then :
  14784. enableval=$enable_gcc_atomics;
  14785. else
  14786. enable_gcc_atomics=yes
  14787. fi
  14788. if test x$enable_gcc_atomics = xyes; then
  14789. have_gcc_atomics=no
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14791. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. int
  14795. main ()
  14796. {
  14797. int a;
  14798. void *x, *y, *z;
  14799. __sync_lock_test_and_set(&a, 4);
  14800. __sync_lock_test_and_set(&x, y);
  14801. __sync_fetch_and_add(&a, 1);
  14802. __sync_bool_compare_and_swap(&a, 5, 10);
  14803. __sync_bool_compare_and_swap(&x, y, z);
  14804. ;
  14805. return 0;
  14806. }
  14807. _ACEOF
  14808. if ac_fn_c_try_link "$LINENO"; then :
  14809. have_gcc_atomics=yes
  14810. fi
  14811. rm -f core conftest.err conftest.$ac_objext \
  14812. conftest$ac_exeext conftest.$ac_ext
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14814. $as_echo "$have_gcc_atomics" >&6; }
  14815. if test x$have_gcc_atomics = xyes; then
  14816. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14817. else
  14818. # See if we have the minimum operation needed for GCC atomics
  14819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14820. /* end confdefs.h. */
  14821. int
  14822. main ()
  14823. {
  14824. int a;
  14825. __sync_lock_test_and_set(&a, 1);
  14826. __sync_lock_release(&a);
  14827. ;
  14828. return 0;
  14829. }
  14830. _ACEOF
  14831. if ac_fn_c_try_link "$LINENO"; then :
  14832. have_gcc_sync_lock_test_and_set=yes
  14833. fi
  14834. rm -f core conftest.err conftest.$ac_objext \
  14835. conftest$ac_exeext conftest.$ac_ext
  14836. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14837. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14838. fi
  14839. fi
  14840. fi
  14841. # Standard C sources
  14842. SOURCES="$SOURCES $srcdir/src/*.c"
  14843. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14844. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14845. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14846. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14847. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14848. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14849. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14850. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14851. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14852. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14853. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14854. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14855. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14856. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14857. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14858. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14859. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14860. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14861. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14862. # Check whether --enable-atomic was given.
  14863. if test "${enable_atomic+set}" = set; then :
  14864. enableval=$enable_atomic;
  14865. else
  14866. enable_atomic=yes
  14867. fi
  14868. if test x$enable_atomic != xyes; then
  14869. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14870. else
  14871. SUMMARY_modules="${SUMMARY_modules} atomic"
  14872. fi
  14873. # Check whether --enable-audio was given.
  14874. if test "${enable_audio+set}" = set; then :
  14875. enableval=$enable_audio;
  14876. else
  14877. enable_audio=yes
  14878. fi
  14879. if test x$enable_audio != xyes; then
  14880. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14881. else
  14882. SUMMARY_modules="${SUMMARY_modules} audio"
  14883. fi
  14884. # Check whether --enable-video was given.
  14885. if test "${enable_video+set}" = set; then :
  14886. enableval=$enable_video;
  14887. else
  14888. enable_video=yes
  14889. fi
  14890. if test x$enable_video != xyes; then
  14891. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14892. else
  14893. SUMMARY_modules="${SUMMARY_modules} video"
  14894. fi
  14895. # Check whether --enable-render was given.
  14896. if test "${enable_render+set}" = set; then :
  14897. enableval=$enable_render;
  14898. else
  14899. enable_render=yes
  14900. fi
  14901. if test x$enable_render != xyes; then
  14902. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14903. else
  14904. SUMMARY_modules="${SUMMARY_modules} render"
  14905. fi
  14906. # Check whether --enable-events was given.
  14907. if test "${enable_events+set}" = set; then :
  14908. enableval=$enable_events;
  14909. else
  14910. enable_events=yes
  14911. fi
  14912. if test x$enable_events != xyes; then
  14913. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14914. else
  14915. SUMMARY_modules="${SUMMARY_modules} events"
  14916. fi
  14917. # Check whether --enable-joystick was given.
  14918. if test "${enable_joystick+set}" = set; then :
  14919. enableval=$enable_joystick;
  14920. else
  14921. enable_joystick=yes
  14922. fi
  14923. if test x$enable_joystick != xyes; then
  14924. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14925. else
  14926. SUMMARY_modules="${SUMMARY_modules} joystick"
  14927. fi
  14928. # Check whether --enable-haptic was given.
  14929. if test "${enable_haptic+set}" = set; then :
  14930. enableval=$enable_haptic;
  14931. else
  14932. enable_haptic=yes
  14933. fi
  14934. if test x$enable_haptic != xyes; then
  14935. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14936. else
  14937. SUMMARY_modules="${SUMMARY_modules} haptic"
  14938. fi
  14939. # Check whether --enable-sensor was given.
  14940. if test "${enable_sensor+set}" = set; then :
  14941. enableval=$enable_sensor;
  14942. else
  14943. enable_sensor=yes
  14944. fi
  14945. if test x$enable_sensor != xyes; then
  14946. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14947. else
  14948. SUMMARY_modules="${SUMMARY_modules} sensor"
  14949. fi
  14950. # Check whether --enable-power was given.
  14951. if test "${enable_power+set}" = set; then :
  14952. enableval=$enable_power;
  14953. else
  14954. enable_power=yes
  14955. fi
  14956. if test x$enable_power != xyes; then
  14957. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14958. else
  14959. SUMMARY_modules="${SUMMARY_modules} power"
  14960. fi
  14961. # Check whether --enable-filesystem was given.
  14962. if test "${enable_filesystem+set}" = set; then :
  14963. enableval=$enable_filesystem;
  14964. else
  14965. enable_filesystem=yes
  14966. fi
  14967. if test x$enable_filesystem != xyes; then
  14968. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14969. else
  14970. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14971. fi
  14972. # Check whether --enable-threads was given.
  14973. if test "${enable_threads+set}" = set; then :
  14974. enableval=$enable_threads;
  14975. else
  14976. enable_threads=yes
  14977. fi
  14978. if test x$enable_threads != xyes; then
  14979. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14980. else
  14981. SUMMARY_modules="${SUMMARY_modules} threads"
  14982. fi
  14983. # Check whether --enable-timers was given.
  14984. if test "${enable_timers+set}" = set; then :
  14985. enableval=$enable_timers;
  14986. else
  14987. enable_timers=yes
  14988. fi
  14989. if test x$enable_timers != xyes; then
  14990. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14991. else
  14992. SUMMARY_modules="${SUMMARY_modules} timers"
  14993. fi
  14994. # Check whether --enable-file was given.
  14995. if test "${enable_file+set}" = set; then :
  14996. enableval=$enable_file;
  14997. else
  14998. enable_file=yes
  14999. fi
  15000. if test x$enable_file != xyes; then
  15001. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15002. else
  15003. SUMMARY_modules="${SUMMARY_modules} file"
  15004. fi
  15005. # Check whether --enable-loadso was given.
  15006. if test "${enable_loadso+set}" = set; then :
  15007. enableval=$enable_loadso;
  15008. else
  15009. enable_loadso=yes
  15010. fi
  15011. if test x$enable_loadso != xyes; then
  15012. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15013. else
  15014. SUMMARY_modules="${SUMMARY_modules} loadso"
  15015. fi
  15016. # Check whether --enable-cpuinfo was given.
  15017. if test "${enable_cpuinfo+set}" = set; then :
  15018. enableval=$enable_cpuinfo;
  15019. else
  15020. enable_cpuinfo=yes
  15021. fi
  15022. if test x$enable_cpuinfo != xyes; then
  15023. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15024. else
  15025. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15026. fi
  15027. # Check whether --enable-assembly was given.
  15028. if test "${enable_assembly+set}" = set; then :
  15029. enableval=$enable_assembly;
  15030. else
  15031. enable_assembly=yes
  15032. fi
  15033. if test x$enable_assembly = xyes; then
  15034. SUMMARY_modules="${SUMMARY_modules} assembly"
  15035. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15036. # Make sure that we don't generate floating point code that would
  15037. # cause illegal instruction exceptions on older processors
  15038. case "$host" in
  15039. *-*-darwin*)
  15040. # Don't need to worry about Apple hardware, it's all SSE capable
  15041. default_ssemath=yes
  15042. ;;
  15043. *64-*-*)
  15044. # x86 64-bit architectures all have SSE instructions
  15045. default_ssemath=yes
  15046. ;;
  15047. *)
  15048. default_ssemath=no
  15049. ;;
  15050. esac
  15051. # Check whether --enable-ssemath was given.
  15052. if test "${enable_ssemath+set}" = set; then :
  15053. enableval=$enable_ssemath;
  15054. else
  15055. enable_ssemath=$default_ssemath
  15056. fi
  15057. if test x$enable_ssemath = xno; then
  15058. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15059. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15060. fi
  15061. fi
  15062. # Check whether --enable-mmx was given.
  15063. if test "${enable_mmx+set}" = set; then :
  15064. enableval=$enable_mmx;
  15065. else
  15066. enable_mmx=yes
  15067. fi
  15068. if test x$enable_mmx = xyes; then
  15069. save_CFLAGS="$CFLAGS"
  15070. have_gcc_mmx=no
  15071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15072. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15073. mmx_CFLAGS="-mmmx"
  15074. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15076. /* end confdefs.h. */
  15077. #ifdef __MINGW32__
  15078. #include <_mingw.h>
  15079. #ifdef __MINGW64_VERSION_MAJOR
  15080. #include <intrin.h>
  15081. #else
  15082. #include <mmintrin.h>
  15083. #endif
  15084. #else
  15085. #include <mmintrin.h>
  15086. #endif
  15087. #ifndef __MMX__
  15088. #error Assembler CPP flag not enabled
  15089. #endif
  15090. int
  15091. main ()
  15092. {
  15093. ;
  15094. return 0;
  15095. }
  15096. _ACEOF
  15097. if ac_fn_c_try_compile "$LINENO"; then :
  15098. have_gcc_mmx=yes
  15099. fi
  15100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15102. $as_echo "$have_gcc_mmx" >&6; }
  15103. CFLAGS="$save_CFLAGS"
  15104. if test x$have_gcc_mmx = xyes; then
  15105. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15106. SUMMARY_math="${SUMMARY_math} mmx"
  15107. fi
  15108. fi
  15109. # Check whether --enable-3dnow was given.
  15110. if test "${enable_3dnow+set}" = set; then :
  15111. enableval=$enable_3dnow;
  15112. else
  15113. enable_3dnow=yes
  15114. fi
  15115. if test x$enable_3dnow = xyes; then
  15116. save_CFLAGS="$CFLAGS"
  15117. have_gcc_3dnow=no
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15119. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15120. amd3dnow_CFLAGS="-m3dnow"
  15121. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15123. /* end confdefs.h. */
  15124. #include <mm3dnow.h>
  15125. #ifndef __3dNOW__
  15126. #error Assembler CPP flag not enabled
  15127. #endif
  15128. int
  15129. main ()
  15130. {
  15131. void *p = 0;
  15132. _m_prefetch(p);
  15133. ;
  15134. return 0;
  15135. }
  15136. _ACEOF
  15137. if ac_fn_c_try_link "$LINENO"; then :
  15138. have_gcc_3dnow=yes
  15139. fi
  15140. rm -f core conftest.err conftest.$ac_objext \
  15141. conftest$ac_exeext conftest.$ac_ext
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15143. $as_echo "$have_gcc_3dnow" >&6; }
  15144. CFLAGS="$save_CFLAGS"
  15145. if test x$have_gcc_3dnow = xyes; then
  15146. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15147. SUMMARY_math="${SUMMARY_math} 3dnow"
  15148. fi
  15149. fi
  15150. # Check whether --enable-sse was given.
  15151. if test "${enable_sse+set}" = set; then :
  15152. enableval=$enable_sse;
  15153. else
  15154. enable_sse=yes
  15155. fi
  15156. if test x$enable_sse = xyes; then
  15157. save_CFLAGS="$CFLAGS"
  15158. have_gcc_sse=no
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15160. $as_echo_n "checking for GCC -msse option... " >&6; }
  15161. sse_CFLAGS="-msse"
  15162. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15164. /* end confdefs.h. */
  15165. #ifdef __MINGW32__
  15166. #include <_mingw.h>
  15167. #ifdef __MINGW64_VERSION_MAJOR
  15168. #include <intrin.h>
  15169. #else
  15170. #include <xmmintrin.h>
  15171. #endif
  15172. #else
  15173. #include <xmmintrin.h>
  15174. #endif
  15175. #ifndef __SSE__
  15176. #error Assembler CPP flag not enabled
  15177. #endif
  15178. int
  15179. main ()
  15180. {
  15181. ;
  15182. return 0;
  15183. }
  15184. _ACEOF
  15185. if ac_fn_c_try_compile "$LINENO"; then :
  15186. have_gcc_sse=yes
  15187. fi
  15188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15190. $as_echo "$have_gcc_sse" >&6; }
  15191. CFLAGS="$save_CFLAGS"
  15192. if test x$have_gcc_sse = xyes; then
  15193. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15194. SUMMARY_math="${SUMMARY_math} sse"
  15195. fi
  15196. fi
  15197. # Check whether --enable-sse2 was given.
  15198. if test "${enable_sse2+set}" = set; then :
  15199. enableval=$enable_sse2;
  15200. else
  15201. enable_sse2=$default_ssemath
  15202. fi
  15203. if test x$enable_sse2 = xyes; then
  15204. save_CFLAGS="$CFLAGS"
  15205. have_gcc_sse2=no
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15207. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15208. sse2_CFLAGS="-msse2"
  15209. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15211. /* end confdefs.h. */
  15212. #ifdef __MINGW32__
  15213. #include <_mingw.h>
  15214. #ifdef __MINGW64_VERSION_MAJOR
  15215. #include <intrin.h>
  15216. #else
  15217. #include <emmintrin.h>
  15218. #endif
  15219. #else
  15220. #include <emmintrin.h>
  15221. #endif
  15222. #ifndef __SSE2__
  15223. #error Assembler CPP flag not enabled
  15224. #endif
  15225. int
  15226. main ()
  15227. {
  15228. ;
  15229. return 0;
  15230. }
  15231. _ACEOF
  15232. if ac_fn_c_try_compile "$LINENO"; then :
  15233. have_gcc_sse2=yes
  15234. fi
  15235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15237. $as_echo "$have_gcc_sse2" >&6; }
  15238. CFLAGS="$save_CFLAGS"
  15239. if test x$have_gcc_sse2 = xyes; then
  15240. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15241. SUMMARY_math="${SUMMARY_math} sse2"
  15242. fi
  15243. fi
  15244. # Check whether --enable-sse3 was given.
  15245. if test "${enable_sse3+set}" = set; then :
  15246. enableval=$enable_sse3;
  15247. else
  15248. enable_sse3=$default_ssemath
  15249. fi
  15250. if test x$enable_sse3 = xyes; then
  15251. save_CFLAGS="$CFLAGS"
  15252. have_gcc_sse3=no
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15254. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15255. sse3_CFLAGS="-msse3"
  15256. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15258. /* end confdefs.h. */
  15259. #ifdef __MINGW32__
  15260. #include <_mingw.h>
  15261. #ifdef __MINGW64_VERSION_MAJOR
  15262. #include <intrin.h>
  15263. #else
  15264. #include <pmmintrin.h>
  15265. #endif
  15266. #else
  15267. #include <pmmintrin.h>
  15268. #endif
  15269. #ifndef __SSE2__
  15270. #error Assembler CPP flag not enabled
  15271. #endif
  15272. int
  15273. main ()
  15274. {
  15275. ;
  15276. return 0;
  15277. }
  15278. _ACEOF
  15279. if ac_fn_c_try_compile "$LINENO"; then :
  15280. have_gcc_sse3=yes
  15281. fi
  15282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15284. $as_echo "$have_gcc_sse3" >&6; }
  15285. CFLAGS="$save_CFLAGS"
  15286. if test x$have_gcc_sse3 = xyes; then
  15287. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15288. SUMMARY_math="${SUMMARY_math} sse3"
  15289. fi
  15290. fi
  15291. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15292. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15293. have_immintrin_h_hdr=yes
  15294. else
  15295. have_immintrin_h_hdr=no
  15296. fi
  15297. if test x$have_immintrin_h_hdr = xyes; then
  15298. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15299. fi
  15300. # Check whether --enable-altivec was given.
  15301. if test "${enable_altivec+set}" = set; then :
  15302. enableval=$enable_altivec;
  15303. else
  15304. enable_altivec=yes
  15305. fi
  15306. if test x$enable_altivec = xyes; then
  15307. save_CFLAGS="$CFLAGS"
  15308. have_gcc_altivec=no
  15309. have_altivec_h_hdr=no
  15310. altivec_CFLAGS="-maltivec"
  15311. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15313. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15315. /* end confdefs.h. */
  15316. #include <altivec.h>
  15317. vector unsigned int vzero() {
  15318. return vec_splat_u32(0);
  15319. }
  15320. int
  15321. main ()
  15322. {
  15323. ;
  15324. return 0;
  15325. }
  15326. _ACEOF
  15327. if ac_fn_c_try_compile "$LINENO"; then :
  15328. have_gcc_altivec=yes
  15329. have_altivec_h_hdr=yes
  15330. fi
  15331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15333. $as_echo "$have_gcc_altivec" >&6; }
  15334. if test x$have_gcc_altivec = xno; then
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15336. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15338. /* end confdefs.h. */
  15339. vector unsigned int vzero() {
  15340. return vec_splat_u32(0);
  15341. }
  15342. int
  15343. main ()
  15344. {
  15345. ;
  15346. return 0;
  15347. }
  15348. _ACEOF
  15349. if ac_fn_c_try_compile "$LINENO"; then :
  15350. have_gcc_altivec=yes
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15354. $as_echo "$have_gcc_altivec" >&6; }
  15355. fi
  15356. if test x$have_gcc_altivec = xno; then
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15358. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15359. altivec_CFLAGS="-faltivec"
  15360. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15362. /* end confdefs.h. */
  15363. #include <altivec.h>
  15364. vector unsigned int vzero() {
  15365. return vec_splat_u32(0);
  15366. }
  15367. int
  15368. main ()
  15369. {
  15370. ;
  15371. return 0;
  15372. }
  15373. _ACEOF
  15374. if ac_fn_c_try_compile "$LINENO"; then :
  15375. have_gcc_altivec=yes
  15376. have_altivec_h_hdr=yes
  15377. fi
  15378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15380. $as_echo "$have_gcc_altivec" >&6; }
  15381. fi
  15382. if test x$have_gcc_altivec = xno; then
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15384. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15386. /* end confdefs.h. */
  15387. vector unsigned int vzero() {
  15388. return vec_splat_u32(0);
  15389. }
  15390. int
  15391. main ()
  15392. {
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. if ac_fn_c_try_compile "$LINENO"; then :
  15398. have_gcc_altivec=yes
  15399. fi
  15400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15402. $as_echo "$have_gcc_altivec" >&6; }
  15403. fi
  15404. CFLAGS="$save_CFLAGS"
  15405. if test x$have_gcc_altivec = xyes; then
  15406. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15407. if test x$have_altivec_h_hdr = xyes; then
  15408. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15409. fi
  15410. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15411. SUMMARY_math="${SUMMARY_math} altivec"
  15412. fi
  15413. fi
  15414. fi
  15415. CheckOSS()
  15416. {
  15417. # Check whether --enable-oss was given.
  15418. if test "${enable_oss+set}" = set; then :
  15419. enableval=$enable_oss;
  15420. else
  15421. enable_oss=maybe
  15422. fi
  15423. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15424. # use sndio instead. So on there, we default to disabled. You can force
  15425. # it on if you really want, though.
  15426. if test x$enable_oss = xmaybe; then
  15427. enable_oss=yes
  15428. case "$host" in
  15429. *-*-openbsd*)
  15430. enable_oss=no;;
  15431. esac
  15432. fi
  15433. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15435. $as_echo_n "checking for OSS audio support... " >&6; }
  15436. have_oss=no
  15437. if test x$have_oss != xyes; then
  15438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15439. /* end confdefs.h. */
  15440. #include <sys/soundcard.h>
  15441. int
  15442. main ()
  15443. {
  15444. int arg = SNDCTL_DSP_SETFRAGMENT;
  15445. ;
  15446. return 0;
  15447. }
  15448. _ACEOF
  15449. if ac_fn_c_try_compile "$LINENO"; then :
  15450. have_oss=yes
  15451. fi
  15452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15453. fi
  15454. if test x$have_oss != xyes; then
  15455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15456. /* end confdefs.h. */
  15457. #include <soundcard.h>
  15458. int
  15459. main ()
  15460. {
  15461. int arg = SNDCTL_DSP_SETFRAGMENT;
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. if ac_fn_c_try_compile "$LINENO"; then :
  15467. have_oss=yes
  15468. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15469. fi
  15470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15471. fi
  15472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15473. $as_echo "$have_oss" >&6; }
  15474. if test x$have_oss = xyes; then
  15475. SUMMARY_audio="${SUMMARY_audio} oss"
  15476. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15477. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15478. have_audio=yes
  15479. # We may need to link with ossaudio emulation library
  15480. case "$host" in
  15481. *-*-openbsd*|*-*-netbsd*)
  15482. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15483. esac
  15484. fi
  15485. fi
  15486. }
  15487. CheckALSA()
  15488. {
  15489. # Check whether --enable-alsa was given.
  15490. if test "${enable_alsa+set}" = set; then :
  15491. enableval=$enable_alsa;
  15492. else
  15493. enable_alsa=yes
  15494. fi
  15495. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15496. alsa_save_CFLAGS="$CFLAGS"
  15497. alsa_save_LDFLAGS="$LDFLAGS"
  15498. alsa_save_LIBS="$LIBS"
  15499. alsa_found=yes
  15500. # Check whether --with-alsa-prefix was given.
  15501. if test "${with_alsa_prefix+set}" = set; then :
  15502. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15503. else
  15504. alsa_prefix=""
  15505. fi
  15506. # Check whether --with-alsa-inc-prefix was given.
  15507. if test "${with_alsa_inc_prefix+set}" = set; then :
  15508. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15509. else
  15510. alsa_inc_prefix=""
  15511. fi
  15512. # Check whether --enable-alsatest was given.
  15513. if test "${enable_alsatest+set}" = set; then :
  15514. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15515. else
  15516. enable_alsatest=yes
  15517. fi
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15519. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15520. if test "$alsa_inc_prefix" != "" ; then
  15521. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15522. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15523. fi
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15525. $as_echo "$ALSA_CFLAGS" >&6; }
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15527. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15528. if test "$alsa_prefix" != "" ; then
  15529. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15530. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15531. fi
  15532. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15533. LIBS=`echo $LIBS | sed 's/-lm//'`
  15534. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15535. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15536. LIBS=`echo $LIBS | sed 's/ //'`
  15537. LIBS="$ALSA_LIBS $LIBS"
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15539. $as_echo "$ALSA_LIBS" >&6; }
  15540. min_alsa_version=1.0.11
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15542. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15543. no_alsa=""
  15544. alsa_min_major_version=`echo $min_alsa_version | \
  15545. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15546. alsa_min_minor_version=`echo $min_alsa_version | \
  15547. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15548. alsa_min_micro_version=`echo $min_alsa_version | \
  15549. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15550. ac_ext=c
  15551. ac_cpp='$CPP $CPPFLAGS'
  15552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15556. /* end confdefs.h. */
  15557. #include <alsa/asoundlib.h>
  15558. int
  15559. main ()
  15560. {
  15561. /* ensure backward compatibility */
  15562. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15563. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15564. #endif
  15565. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15566. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15567. #endif
  15568. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15569. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15570. #endif
  15571. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15572. exit(0);
  15573. # else
  15574. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15575. # error not present
  15576. # endif
  15577. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15578. exit(0);
  15579. # else
  15580. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15581. # error not present
  15582. # endif
  15583. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15584. # error not present
  15585. # endif
  15586. # endif
  15587. # endif
  15588. exit(0);
  15589. ;
  15590. return 0;
  15591. }
  15592. _ACEOF
  15593. if ac_fn_c_try_compile "$LINENO"; then :
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15595. $as_echo "found." >&6; }
  15596. else
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15598. $as_echo "not present." >&6; }
  15599. alsa_found=no
  15600. fi
  15601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15602. ac_ext=c
  15603. ac_cpp='$CPP $CPPFLAGS'
  15604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15607. if test "x$enable_alsatest" = "xyes"; then
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15609. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15610. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15611. $as_echo_n "(cached) " >&6
  15612. else
  15613. ac_check_lib_save_LIBS=$LIBS
  15614. LIBS="-lasound $LIBS"
  15615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15616. /* end confdefs.h. */
  15617. /* Override any GCC internal prototype to avoid an error.
  15618. Use char because int might match the return type of a GCC
  15619. builtin and then its argument prototype would still apply. */
  15620. #ifdef __cplusplus
  15621. extern "C"
  15622. #endif
  15623. char snd_ctl_open ();
  15624. int
  15625. main ()
  15626. {
  15627. return snd_ctl_open ();
  15628. ;
  15629. return 0;
  15630. }
  15631. _ACEOF
  15632. if ac_fn_c_try_link "$LINENO"; then :
  15633. ac_cv_lib_asound_snd_ctl_open=yes
  15634. else
  15635. ac_cv_lib_asound_snd_ctl_open=no
  15636. fi
  15637. rm -f core conftest.err conftest.$ac_objext \
  15638. conftest$ac_exeext conftest.$ac_ext
  15639. LIBS=$ac_check_lib_save_LIBS
  15640. fi
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15642. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15643. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15644. cat >>confdefs.h <<_ACEOF
  15645. #define HAVE_LIBASOUND 1
  15646. _ACEOF
  15647. LIBS="-lasound $LIBS"
  15648. else
  15649. alsa_found=no
  15650. fi
  15651. fi
  15652. if test "x$alsa_found" = "xyes" ; then
  15653. have_alsa=yes
  15654. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15655. LIBS=`echo $LIBS | sed 's/ //'`
  15656. LIBS="-lasound $LIBS"
  15657. fi
  15658. if test "x$alsa_found" = "xno" ; then
  15659. have_alsa=no
  15660. CFLAGS="$alsa_save_CFLAGS"
  15661. LDFLAGS="$alsa_save_LDFLAGS"
  15662. LIBS="$alsa_save_LIBS"
  15663. ALSA_CFLAGS=""
  15664. ALSA_LIBS=""
  15665. fi
  15666. # Restore all flags from before the ALSA detection runs
  15667. CFLAGS="$alsa_save_CFLAGS"
  15668. LDFLAGS="$alsa_save_LDFLAGS"
  15669. LIBS="$alsa_save_LIBS"
  15670. if test x$have_alsa = xyes; then
  15671. # Check whether --enable-alsa-shared was given.
  15672. if test "${enable_alsa_shared+set}" = set; then :
  15673. enableval=$enable_alsa_shared;
  15674. else
  15675. enable_alsa_shared=yes
  15676. fi
  15677. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15678. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15679. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15680. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15681. if test x$have_loadso != xyes && \
  15682. test x$enable_alsa_shared = xyes; then
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15684. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15685. fi
  15686. if test x$have_loadso = xyes && \
  15687. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15688. echo "-- dynamic libasound -> $alsa_lib"
  15689. cat >>confdefs.h <<_ACEOF
  15690. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15691. _ACEOF
  15692. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15693. else
  15694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15695. SUMMARY_audio="${SUMMARY_audio} alsa"
  15696. fi
  15697. have_audio=yes
  15698. fi
  15699. fi
  15700. }
  15701. CheckJACK()
  15702. {
  15703. # Check whether --enable-jack was given.
  15704. if test "${enable_jack+set}" = set; then :
  15705. enableval=$enable_jack;
  15706. else
  15707. enable_jack=yes
  15708. fi
  15709. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15710. pkg_failed=no
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15712. $as_echo_n "checking for JACK... " >&6; }
  15713. if test -n "$JACK_CFLAGS"; then
  15714. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15715. elif test -n "$PKG_CONFIG"; then
  15716. if test -n "$PKG_CONFIG" && \
  15717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15718. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15719. ac_status=$?
  15720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15721. test $ac_status = 0; }; then
  15722. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15723. else
  15724. pkg_failed=yes
  15725. fi
  15726. else
  15727. pkg_failed=untried
  15728. fi
  15729. if test -n "$JACK_LIBS"; then
  15730. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15731. elif test -n "$PKG_CONFIG"; then
  15732. if test -n "$PKG_CONFIG" && \
  15733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15734. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15735. ac_status=$?
  15736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15737. test $ac_status = 0; }; then
  15738. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15739. else
  15740. pkg_failed=yes
  15741. fi
  15742. else
  15743. pkg_failed=untried
  15744. fi
  15745. if test $pkg_failed = yes; then
  15746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15747. $as_echo "no" >&6; }
  15748. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15749. _pkg_short_errors_supported=yes
  15750. else
  15751. _pkg_short_errors_supported=no
  15752. fi
  15753. if test $_pkg_short_errors_supported = yes; then
  15754. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15755. else
  15756. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15757. fi
  15758. # Put the nasty error message in config.log where it belongs
  15759. echo "$JACK_PKG_ERRORS" >&5
  15760. audio_jack=no
  15761. elif test $pkg_failed = untried; then
  15762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15763. $as_echo "no" >&6; }
  15764. audio_jack=no
  15765. else
  15766. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15767. JACK_LIBS=$pkg_cv_JACK_LIBS
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15769. $as_echo "yes" >&6; }
  15770. audio_jack=yes
  15771. fi
  15772. if test x$audio_jack = xyes; then
  15773. # Check whether --enable-jack-shared was given.
  15774. if test "${enable_jack_shared+set}" = set; then :
  15775. enableval=$enable_jack_shared;
  15776. else
  15777. enable_jack_shared=yes
  15778. fi
  15779. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15780. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15781. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15782. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15783. if test x$have_loadso != xyes && \
  15784. test x$enable_jack_shared = xyes; then
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15786. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15787. fi
  15788. if test x$have_loadso = xyes && \
  15789. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15790. echo "-- dynamic libjack -> $jack_lib"
  15791. cat >>confdefs.h <<_ACEOF
  15792. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15793. _ACEOF
  15794. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15795. case "$host" in
  15796. # On Solaris, jack must be linked deferred explicitly
  15797. # to prevent undefined symbol failures.
  15798. *-*-solaris*)
  15799. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15801. esac
  15802. else
  15803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15804. SUMMARY_audio="${SUMMARY_audio} jack"
  15805. fi
  15806. have_audio=yes
  15807. fi
  15808. fi
  15809. }
  15810. CheckESD()
  15811. {
  15812. # Check whether --enable-esd was given.
  15813. if test "${enable_esd+set}" = set; then :
  15814. enableval=$enable_esd;
  15815. else
  15816. enable_esd=yes
  15817. fi
  15818. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15819. # Check whether --with-esd-prefix was given.
  15820. if test "${with_esd_prefix+set}" = set; then :
  15821. withval=$with_esd_prefix; esd_prefix="$withval"
  15822. else
  15823. esd_prefix=""
  15824. fi
  15825. # Check whether --with-esd-exec-prefix was given.
  15826. if test "${with_esd_exec_prefix+set}" = set; then :
  15827. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15828. else
  15829. esd_exec_prefix=""
  15830. fi
  15831. # Check whether --enable-esdtest was given.
  15832. if test "${enable_esdtest+set}" = set; then :
  15833. enableval=$enable_esdtest;
  15834. else
  15835. enable_esdtest=yes
  15836. fi
  15837. if test x$esd_exec_prefix != x ; then
  15838. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15839. if test x${ESD_CONFIG+set} != xset ; then
  15840. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15841. fi
  15842. fi
  15843. if test x$esd_prefix != x ; then
  15844. esd_args="$esd_args --prefix=$esd_prefix"
  15845. if test x${ESD_CONFIG+set} != xset ; then
  15846. ESD_CONFIG=$esd_prefix/bin/esd-config
  15847. fi
  15848. fi
  15849. # Extract the first word of "esd-config", so it can be a program name with args.
  15850. set dummy esd-config; ac_word=$2
  15851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15852. $as_echo_n "checking for $ac_word... " >&6; }
  15853. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15854. $as_echo_n "(cached) " >&6
  15855. else
  15856. case $ESD_CONFIG in
  15857. [\\/]* | ?:[\\/]*)
  15858. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15859. ;;
  15860. *)
  15861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15862. for as_dir in $PATH
  15863. do
  15864. IFS=$as_save_IFS
  15865. test -z "$as_dir" && as_dir=.
  15866. for ac_exec_ext in '' $ac_executable_extensions; do
  15867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15868. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15870. break 2
  15871. fi
  15872. done
  15873. done
  15874. IFS=$as_save_IFS
  15875. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15876. ;;
  15877. esac
  15878. fi
  15879. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15880. if test -n "$ESD_CONFIG"; then
  15881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15882. $as_echo "$ESD_CONFIG" >&6; }
  15883. else
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15885. $as_echo "no" >&6; }
  15886. fi
  15887. min_esd_version=0.2.8
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15889. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15890. no_esd=""
  15891. if test "$ESD_CONFIG" = "no" ; then
  15892. no_esd=yes
  15893. else
  15894. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15895. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15896. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15897. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15898. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15899. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15900. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15901. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15902. if test "x$enable_esdtest" = "xyes" ; then
  15903. ac_save_CFLAGS="$CFLAGS"
  15904. ac_save_LIBS="$LIBS"
  15905. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15906. LIBS="$LIBS $ESD_LIBS"
  15907. rm -f conf.esdtest
  15908. if test "$cross_compiling" = yes; then :
  15909. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15910. else
  15911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15912. /* end confdefs.h. */
  15913. #include <stdio.h>
  15914. #include <stdlib.h>
  15915. #include <string.h>
  15916. #include <esd.h>
  15917. char*
  15918. my_strdup (char *str)
  15919. {
  15920. char *new_str;
  15921. if (str)
  15922. {
  15923. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15924. strcpy (new_str, str);
  15925. }
  15926. else
  15927. new_str = NULL;
  15928. return new_str;
  15929. }
  15930. int main ()
  15931. {
  15932. int major, minor, micro;
  15933. char *tmp_version;
  15934. system ("touch conf.esdtest");
  15935. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15936. tmp_version = my_strdup("$min_esd_version");
  15937. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15938. printf("%s, bad version string\n", "$min_esd_version");
  15939. exit(1);
  15940. }
  15941. if (($esd_major_version > major) ||
  15942. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15943. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15944. {
  15945. return 0;
  15946. }
  15947. else
  15948. {
  15949. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15950. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15951. printf("*** best to upgrade to the required version.\n");
  15952. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15953. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15954. printf("*** config.cache before re-running configure\n");
  15955. return 1;
  15956. }
  15957. }
  15958. _ACEOF
  15959. if ac_fn_c_try_run "$LINENO"; then :
  15960. else
  15961. no_esd=yes
  15962. fi
  15963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15964. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15965. fi
  15966. CFLAGS="$ac_save_CFLAGS"
  15967. LIBS="$ac_save_LIBS"
  15968. fi
  15969. fi
  15970. if test "x$no_esd" = x ; then
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15972. $as_echo "yes" >&6; }
  15973. have_esd=yes
  15974. else
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15976. $as_echo "no" >&6; }
  15977. if test "$ESD_CONFIG" = "no" ; then
  15978. echo "*** The esd-config script installed by ESD could not be found"
  15979. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15980. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15981. echo "*** full path to esd-config."
  15982. else
  15983. if test -f conf.esdtest ; then
  15984. :
  15985. else
  15986. echo "*** Could not run ESD test program, checking why..."
  15987. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15988. LIBS="$LIBS $ESD_LIBS"
  15989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15990. /* end confdefs.h. */
  15991. #include <stdio.h>
  15992. #include <esd.h>
  15993. int
  15994. main ()
  15995. {
  15996. return 0;
  15997. ;
  15998. return 0;
  15999. }
  16000. _ACEOF
  16001. if ac_fn_c_try_link "$LINENO"; then :
  16002. echo "*** The test program compiled, but did not run. This usually means"
  16003. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16004. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16005. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16006. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16007. echo "*** is required on your system"
  16008. echo "***"
  16009. echo "*** If you have an old version installed, it is best to remove it, although"
  16010. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16011. else
  16012. echo "*** The test program failed to compile or link. See the file config.log for the"
  16013. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16014. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16015. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16016. fi
  16017. rm -f core conftest.err conftest.$ac_objext \
  16018. conftest$ac_exeext conftest.$ac_ext
  16019. CFLAGS="$ac_save_CFLAGS"
  16020. LIBS="$ac_save_LIBS"
  16021. fi
  16022. fi
  16023. ESD_CFLAGS=""
  16024. ESD_LIBS=""
  16025. have_esd=no
  16026. fi
  16027. rm -f conf.esdtest
  16028. if test x$have_esd = xyes; then
  16029. # Check whether --enable-esd-shared was given.
  16030. if test "${enable_esd_shared+set}" = set; then :
  16031. enableval=$enable_esd_shared;
  16032. else
  16033. enable_esd_shared=yes
  16034. fi
  16035. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16036. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16037. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16038. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16039. if test x$have_loadso != xyes && \
  16040. test x$enable_esd_shared = xyes; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16042. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16043. fi
  16044. if test x$have_loadso = xyes && \
  16045. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16046. echo "-- dynamic libesd -> $esd_lib"
  16047. cat >>confdefs.h <<_ACEOF
  16048. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16049. _ACEOF
  16050. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16051. else
  16052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16053. SUMMARY_audio="${SUMMARY_audio} esd"
  16054. fi
  16055. have_audio=yes
  16056. fi
  16057. fi
  16058. }
  16059. CheckPulseAudio()
  16060. {
  16061. # Check whether --enable-pulseaudio was given.
  16062. if test "${enable_pulseaudio+set}" = set; then :
  16063. enableval=$enable_pulseaudio;
  16064. else
  16065. enable_pulseaudio=yes
  16066. fi
  16067. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16068. pkg_failed=no
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16070. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16071. if test -n "$PULSEAUDIO_CFLAGS"; then
  16072. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16073. elif test -n "$PKG_CONFIG"; then
  16074. if test -n "$PKG_CONFIG" && \
  16075. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16076. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16077. ac_status=$?
  16078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16079. test $ac_status = 0; }; then
  16080. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16081. else
  16082. pkg_failed=yes
  16083. fi
  16084. else
  16085. pkg_failed=untried
  16086. fi
  16087. if test -n "$PULSEAUDIO_LIBS"; then
  16088. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16089. elif test -n "$PKG_CONFIG"; then
  16090. if test -n "$PKG_CONFIG" && \
  16091. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16092. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16093. ac_status=$?
  16094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16095. test $ac_status = 0; }; then
  16096. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16097. else
  16098. pkg_failed=yes
  16099. fi
  16100. else
  16101. pkg_failed=untried
  16102. fi
  16103. if test $pkg_failed = yes; then
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16105. $as_echo "no" >&6; }
  16106. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16107. _pkg_short_errors_supported=yes
  16108. else
  16109. _pkg_short_errors_supported=no
  16110. fi
  16111. if test $_pkg_short_errors_supported = yes; then
  16112. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16113. else
  16114. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16115. fi
  16116. # Put the nasty error message in config.log where it belongs
  16117. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16118. audio_pulseaudio=no
  16119. elif test $pkg_failed = untried; then
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16121. $as_echo "no" >&6; }
  16122. audio_pulseaudio=no
  16123. else
  16124. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16125. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16127. $as_echo "yes" >&6; }
  16128. audio_pulseaudio=yes
  16129. fi
  16130. if test x$audio_pulseaudio = xyes; then
  16131. # Check whether --enable-pulseaudio-shared was given.
  16132. if test "${enable_pulseaudio_shared+set}" = set; then :
  16133. enableval=$enable_pulseaudio_shared;
  16134. else
  16135. enable_pulseaudio_shared=yes
  16136. fi
  16137. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16138. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16139. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16140. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16141. if test x$have_loadso != xyes && \
  16142. test x$enable_pulseaudio_shared = xyes; then
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16144. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16145. fi
  16146. if test x$have_loadso = xyes && \
  16147. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16148. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16149. cat >>confdefs.h <<_ACEOF
  16150. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16151. _ACEOF
  16152. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16153. case "$host" in
  16154. # On Solaris, pulseaudio must be linked deferred explicitly
  16155. # to prevent undefined symbol failures.
  16156. *-*-solaris*)
  16157. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16159. esac
  16160. else
  16161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16162. SUMMARY_audio="${SUMMARY_audio} pulse"
  16163. fi
  16164. have_audio=yes
  16165. fi
  16166. fi
  16167. }
  16168. CheckARTSC()
  16169. {
  16170. # Check whether --enable-arts was given.
  16171. if test "${enable_arts+set}" = set; then :
  16172. enableval=$enable_arts;
  16173. else
  16174. enable_arts=yes
  16175. fi
  16176. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16177. # Extract the first word of "artsc-config", so it can be a program name with args.
  16178. set dummy artsc-config; ac_word=$2
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16180. $as_echo_n "checking for $ac_word... " >&6; }
  16181. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16182. $as_echo_n "(cached) " >&6
  16183. else
  16184. case $ARTSCONFIG in
  16185. [\\/]* | ?:[\\/]*)
  16186. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16187. ;;
  16188. *)
  16189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16190. for as_dir in $PATH
  16191. do
  16192. IFS=$as_save_IFS
  16193. test -z "$as_dir" && as_dir=.
  16194. for ac_exec_ext in '' $ac_executable_extensions; do
  16195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16196. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16198. break 2
  16199. fi
  16200. done
  16201. done
  16202. IFS=$as_save_IFS
  16203. ;;
  16204. esac
  16205. fi
  16206. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16207. if test -n "$ARTSCONFIG"; then
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16209. $as_echo "$ARTSCONFIG" >&6; }
  16210. else
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16212. $as_echo "no" >&6; }
  16213. fi
  16214. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16215. : # arts isn't installed
  16216. else
  16217. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16218. ARTS_LIBS=`$ARTSCONFIG --libs`
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16220. $as_echo_n "checking for aRts development environment... " >&6; }
  16221. audio_arts=no
  16222. save_CFLAGS="$CFLAGS"
  16223. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16225. /* end confdefs.h. */
  16226. #include <artsc.h>
  16227. int
  16228. main ()
  16229. {
  16230. arts_stream_t stream;
  16231. ;
  16232. return 0;
  16233. }
  16234. _ACEOF
  16235. if ac_fn_c_try_compile "$LINENO"; then :
  16236. audio_arts=yes
  16237. fi
  16238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16239. CFLAGS="$save_CFLAGS"
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16241. $as_echo "$audio_arts" >&6; }
  16242. if test x$audio_arts = xyes; then
  16243. # Check whether --enable-arts-shared was given.
  16244. if test "${enable_arts_shared+set}" = set; then :
  16245. enableval=$enable_arts_shared;
  16246. else
  16247. enable_arts_shared=yes
  16248. fi
  16249. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16250. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16251. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16252. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16253. if test x$have_loadso != xyes && \
  16254. test x$enable_arts_shared = xyes; then
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16256. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16257. fi
  16258. if test x$have_loadso = xyes && \
  16259. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16260. echo "-- dynamic libartsc -> $arts_lib"
  16261. cat >>confdefs.h <<_ACEOF
  16262. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16263. _ACEOF
  16264. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16265. else
  16266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16267. SUMMARY_audio="${SUMMARY_audio} arts"
  16268. fi
  16269. have_audio=yes
  16270. fi
  16271. fi
  16272. fi
  16273. }
  16274. CheckNAS()
  16275. {
  16276. # Check whether --enable-nas was given.
  16277. if test "${enable_nas+set}" = set; then :
  16278. enableval=$enable_nas;
  16279. else
  16280. enable_nas=yes
  16281. fi
  16282. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16283. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16284. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16285. have_nas_hdr=yes
  16286. fi
  16287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16288. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16289. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16290. $as_echo_n "(cached) " >&6
  16291. else
  16292. ac_check_lib_save_LIBS=$LIBS
  16293. LIBS="-laudio $LIBS"
  16294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16295. /* end confdefs.h. */
  16296. /* Override any GCC internal prototype to avoid an error.
  16297. Use char because int might match the return type of a GCC
  16298. builtin and then its argument prototype would still apply. */
  16299. #ifdef __cplusplus
  16300. extern "C"
  16301. #endif
  16302. char AuOpenServer ();
  16303. int
  16304. main ()
  16305. {
  16306. return AuOpenServer ();
  16307. ;
  16308. return 0;
  16309. }
  16310. _ACEOF
  16311. if ac_fn_c_try_link "$LINENO"; then :
  16312. ac_cv_lib_audio_AuOpenServer=yes
  16313. else
  16314. ac_cv_lib_audio_AuOpenServer=no
  16315. fi
  16316. rm -f core conftest.err conftest.$ac_objext \
  16317. conftest$ac_exeext conftest.$ac_ext
  16318. LIBS=$ac_check_lib_save_LIBS
  16319. fi
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16321. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16322. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16323. have_nas_lib=yes
  16324. fi
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16326. $as_echo_n "checking for NAS audio support... " >&6; }
  16327. have_nas=no
  16328. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16329. have_nas=yes
  16330. NAS_LIBS="-laudio"
  16331. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16332. have_nas=yes
  16333. NAS_CFLAGS="-I/usr/X11R6/include/"
  16334. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16335. fi
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16337. $as_echo "$have_nas" >&6; }
  16338. if test x$have_nas = xyes; then
  16339. # Check whether --enable-nas-shared was given.
  16340. if test "${enable_nas_shared+set}" = set; then :
  16341. enableval=$enable_nas_shared;
  16342. else
  16343. enable_nas_shared=yes
  16344. fi
  16345. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16346. if test x$have_loadso != xyes && \
  16347. test x$enable_nas_shared = xyes; then
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16349. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16350. fi
  16351. if test x$have_loadso = xyes && \
  16352. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16353. echo "-- dynamic libaudio -> $nas_lib"
  16354. cat >>confdefs.h <<_ACEOF
  16355. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16356. _ACEOF
  16357. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16358. else
  16359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16360. SUMMARY_audio="${SUMMARY_audio} nas"
  16361. fi
  16362. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16363. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16364. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16365. have_audio=yes
  16366. fi
  16367. fi
  16368. }
  16369. CheckSNDIO()
  16370. {
  16371. # Check whether --enable-sndio was given.
  16372. if test "${enable_sndio+set}" = set; then :
  16373. enableval=$enable_sndio;
  16374. else
  16375. enable_sndio=yes
  16376. fi
  16377. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16378. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16379. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16380. have_sndio_hdr=yes
  16381. fi
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16383. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16384. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16385. $as_echo_n "(cached) " >&6
  16386. else
  16387. ac_check_lib_save_LIBS=$LIBS
  16388. LIBS="-lsndio $LIBS"
  16389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16390. /* end confdefs.h. */
  16391. /* Override any GCC internal prototype to avoid an error.
  16392. Use char because int might match the return type of a GCC
  16393. builtin and then its argument prototype would still apply. */
  16394. #ifdef __cplusplus
  16395. extern "C"
  16396. #endif
  16397. char sio_open ();
  16398. int
  16399. main ()
  16400. {
  16401. return sio_open ();
  16402. ;
  16403. return 0;
  16404. }
  16405. _ACEOF
  16406. if ac_fn_c_try_link "$LINENO"; then :
  16407. ac_cv_lib_sndio_sio_open=yes
  16408. else
  16409. ac_cv_lib_sndio_sio_open=no
  16410. fi
  16411. rm -f core conftest.err conftest.$ac_objext \
  16412. conftest$ac_exeext conftest.$ac_ext
  16413. LIBS=$ac_check_lib_save_LIBS
  16414. fi
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16416. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16417. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16418. have_sndio_lib=yes
  16419. fi
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16421. $as_echo_n "checking for sndio audio support... " >&6; }
  16422. have_sndio=no
  16423. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16424. have_sndio=yes
  16425. SNDIO_LIBS="-lsndio"
  16426. fi
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16428. $as_echo "$have_sndio" >&6; }
  16429. if test x$have_sndio = xyes; then
  16430. # Check whether --enable-sndio-shared was given.
  16431. if test "${enable_sndio_shared+set}" = set; then :
  16432. enableval=$enable_sndio_shared;
  16433. else
  16434. enable_sndio_shared=yes
  16435. fi
  16436. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16437. if test x$have_loadso != xyes && \
  16438. test x$enable_sndio_shared = xyes; then
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16440. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16441. fi
  16442. if test x$have_loadso = xyes && \
  16443. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16444. echo "-- dynamic libsndio -> $sndio_lib"
  16445. cat >>confdefs.h <<_ACEOF
  16446. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16447. _ACEOF
  16448. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16449. else
  16450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16451. SUMMARY_audio="${SUMMARY_audio} sndio"
  16452. fi
  16453. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16454. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16455. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16456. have_audio=yes
  16457. fi
  16458. fi
  16459. }
  16460. CheckFusionSound()
  16461. {
  16462. # Check whether --enable-fusionsound was given.
  16463. if test "${enable_fusionsound+set}" = set; then :
  16464. enableval=$enable_fusionsound;
  16465. else
  16466. enable_fusionsound=no
  16467. fi
  16468. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16469. pkg_failed=no
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16471. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16472. if test -n "$FUSIONSOUND_CFLAGS"; then
  16473. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16474. elif test -n "$PKG_CONFIG"; then
  16475. if test -n "$PKG_CONFIG" && \
  16476. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16477. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16478. ac_status=$?
  16479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16480. test $ac_status = 0; }; then
  16481. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16482. else
  16483. pkg_failed=yes
  16484. fi
  16485. else
  16486. pkg_failed=untried
  16487. fi
  16488. if test -n "$FUSIONSOUND_LIBS"; then
  16489. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16490. elif test -n "$PKG_CONFIG"; then
  16491. if test -n "$PKG_CONFIG" && \
  16492. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16493. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16494. ac_status=$?
  16495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16496. test $ac_status = 0; }; then
  16497. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16498. else
  16499. pkg_failed=yes
  16500. fi
  16501. else
  16502. pkg_failed=untried
  16503. fi
  16504. if test $pkg_failed = yes; then
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16506. $as_echo "no" >&6; }
  16507. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16508. _pkg_short_errors_supported=yes
  16509. else
  16510. _pkg_short_errors_supported=no
  16511. fi
  16512. if test $_pkg_short_errors_supported = yes; then
  16513. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16514. else
  16515. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16516. fi
  16517. # Put the nasty error message in config.log where it belongs
  16518. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16519. fusionsound=no
  16520. elif test $pkg_failed = untried; then
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16522. $as_echo "no" >&6; }
  16523. fusionsound=no
  16524. else
  16525. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16526. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16528. $as_echo "yes" >&6; }
  16529. fusionsound=yes
  16530. fi
  16531. if test x$fusionsound = xyes; then
  16532. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16533. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16534. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16535. # Check whether --enable-fusionsound-shared was given.
  16536. if test "${enable_fusionsound_shared+set}" = set; then :
  16537. enableval=$enable_fusionsound_shared;
  16538. else
  16539. enable_fusionsound_shared=yes
  16540. fi
  16541. fusionsound_shared=no
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16543. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16544. if test x$have_loadso != xyes && \
  16545. test x$enable_fusionsound_shared = xyes; then
  16546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16547. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16548. fi
  16549. if test x$have_loadso = xyes && \
  16550. test x$enable_fusionsound_shared = xyes; then
  16551. cat >>confdefs.h <<_ACEOF
  16552. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16553. _ACEOF
  16554. fusionsound_shared=yes
  16555. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16556. else
  16557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16558. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16559. fi
  16560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16561. $as_echo "$fusionsound_shared" >&6; }
  16562. have_audio=yes
  16563. fi
  16564. fi
  16565. }
  16566. CheckDiskAudio()
  16567. {
  16568. # Check whether --enable-diskaudio was given.
  16569. if test "${enable_diskaudio+set}" = set; then :
  16570. enableval=$enable_diskaudio;
  16571. else
  16572. enable_diskaudio=yes
  16573. fi
  16574. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16575. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16576. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16577. SUMMARY_audio="${SUMMARY_audio} disk"
  16578. fi
  16579. }
  16580. CheckDummyAudio()
  16581. {
  16582. # Check whether --enable-dummyaudio was given.
  16583. if test "${enable_dummyaudio+set}" = set; then :
  16584. enableval=$enable_dummyaudio;
  16585. else
  16586. enable_dummyaudio=yes
  16587. fi
  16588. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16589. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16590. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16591. SUMMARY_audio="${SUMMARY_audio} dummy"
  16592. fi
  16593. }
  16594. CheckLibSampleRate()
  16595. {
  16596. # Check whether --enable-libsamplerate was given.
  16597. if test "${enable_libsamplerate+set}" = set; then :
  16598. enableval=$enable_libsamplerate;
  16599. else
  16600. enable_libsamplerate=yes
  16601. fi
  16602. if test x$enable_libsamplerate = xyes; then
  16603. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16604. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16605. have_samplerate_h_hdr=yes
  16606. else
  16607. have_samplerate_h_hdr=no
  16608. fi
  16609. if test x$have_samplerate_h_hdr = xyes; then
  16610. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16611. # Check whether --enable-libsamplerate-shared was given.
  16612. if test "${enable_libsamplerate_shared+set}" = set; then :
  16613. enableval=$enable_libsamplerate_shared;
  16614. else
  16615. enable_libsamplerate_shared=yes
  16616. fi
  16617. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16618. if test x$have_loadso != xyes && \
  16619. test x$enable_libsamplerate_shared = xyes; then
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16621. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16622. fi
  16623. if test x$have_loadso = xyes && \
  16624. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16625. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16626. cat >>confdefs.h <<_ACEOF
  16627. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16628. _ACEOF
  16629. else
  16630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16631. fi
  16632. fi
  16633. fi
  16634. }
  16635. CheckVisibilityHidden()
  16636. {
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16638. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16639. have_gcc_fvisibility=no
  16640. visibility_CFLAGS="-fvisibility=hidden"
  16641. save_CFLAGS="$CFLAGS"
  16642. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16644. /* end confdefs.h. */
  16645. #if !defined(__GNUC__) || __GNUC__ < 4
  16646. #error SDL only uses visibility attributes in GCC 4 or newer
  16647. #endif
  16648. int
  16649. main ()
  16650. {
  16651. ;
  16652. return 0;
  16653. }
  16654. _ACEOF
  16655. if ac_fn_c_try_compile "$LINENO"; then :
  16656. have_gcc_fvisibility=yes
  16657. fi
  16658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16660. $as_echo "$have_gcc_fvisibility" >&6; }
  16661. CFLAGS="$save_CFLAGS"
  16662. if test x$have_gcc_fvisibility = xyes; then
  16663. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16664. fi
  16665. }
  16666. CheckStackBoundary()
  16667. {
  16668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16669. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16670. have_gcc_preferred_stack_boundary=no
  16671. save_CFLAGS="$CFLAGS"
  16672. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. int x = 0;
  16676. int
  16677. main ()
  16678. {
  16679. ;
  16680. return 0;
  16681. }
  16682. _ACEOF
  16683. if ac_fn_c_try_compile "$LINENO"; then :
  16684. have_gcc_preferred_stack_boundary=yes
  16685. fi
  16686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16688. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16689. CFLAGS="$save_CFLAGS"
  16690. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16691. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16692. fi
  16693. }
  16694. CheckDeclarationAfterStatement()
  16695. {
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16697. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16698. have_gcc_declaration_after_statement=no
  16699. save_CFLAGS="$CFLAGS"
  16700. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16702. /* end confdefs.h. */
  16703. int x = 0;
  16704. int
  16705. main ()
  16706. {
  16707. ;
  16708. return 0;
  16709. }
  16710. _ACEOF
  16711. if ac_fn_c_try_compile "$LINENO"; then :
  16712. have_gcc_declaration_after_statement=yes
  16713. fi
  16714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16716. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16717. CFLAGS="$save_CFLAGS"
  16718. if test x$have_gcc_declaration_after_statement = xyes; then
  16719. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16720. fi
  16721. }
  16722. CheckWarnAll()
  16723. {
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16725. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16726. have_gcc_Wall=no
  16727. save_CFLAGS="$CFLAGS"
  16728. CFLAGS="$save_CFLAGS -Wall"
  16729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16730. /* end confdefs.h. */
  16731. int x = 0;
  16732. int
  16733. main ()
  16734. {
  16735. ;
  16736. return 0;
  16737. }
  16738. _ACEOF
  16739. if ac_fn_c_try_compile "$LINENO"; then :
  16740. have_gcc_Wall=yes
  16741. fi
  16742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16744. $as_echo "$have_gcc_Wall" >&6; }
  16745. CFLAGS="$save_CFLAGS"
  16746. if test x$have_gcc_Wall = xyes; then
  16747. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16749. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16750. need_gcc_Wno_multichar=no
  16751. case "$host" in
  16752. *-*-haiku*)
  16753. need_gcc_Wno_multichar=yes
  16754. ;;
  16755. esac
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16757. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16758. if test x$need_gcc_Wno_multichar = xyes; then
  16759. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16760. fi
  16761. fi
  16762. }
  16763. CheckWayland()
  16764. {
  16765. # Check whether --enable-video-wayland was given.
  16766. if test "${enable_video_wayland+set}" = set; then :
  16767. enableval=$enable_video_wayland;
  16768. else
  16769. enable_video_wayland=yes
  16770. fi
  16771. # Check whether --enable-video-wayland-qt-touch was given.
  16772. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16773. enableval=$enable_video_wayland_qt_touch;
  16774. else
  16775. enable_video_wayland_qt_touch=yes
  16776. fi
  16777. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16779. $as_echo_n "checking for Wayland support... " >&6; }
  16780. video_wayland=no
  16781. if test x$video_opengl_egl = xyes && \
  16782. test x$video_opengles_v2 = xyes; then
  16783. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16784. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16785. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16786. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16787. video_wayland=yes
  16788. fi
  16789. fi
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16791. $as_echo "$video_wayland" >&6; }
  16792. if test x$video_wayland = xyes; then
  16793. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16794. if test x$enable_video_wayland_qt_touch = xyes; then
  16795. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16796. fi
  16797. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16798. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16799. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16800. # Check whether --enable-wayland-shared was given.
  16801. if test "${enable_wayland_shared+set}" = set; then :
  16802. enableval=$enable_wayland_shared;
  16803. else
  16804. enable_wayland_shared=maybe
  16805. fi
  16806. case "$host" in
  16807. *)
  16808. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16809. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16810. if test x$wayland_egl_lib = x; then
  16811. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16812. fi
  16813. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16814. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16815. ;;
  16816. esac
  16817. if test x$enable_wayland_shared = xmaybe; then
  16818. enable_wayland_shared=yes
  16819. fi
  16820. if test x$have_loadso != xyes && \
  16821. test x$enable_wayland_shared = xyes; then
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16823. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16824. enable_wayland_shared=no
  16825. fi
  16826. if test x$have_loadso = xyes && \
  16827. test x$enable_wayland_shared = xyes && \
  16828. test x$wayland_client_lib != x && \
  16829. test x$wayland_egl_lib != x && \
  16830. test x$wayland_cursor_lib != x && \
  16831. test x$xkbcommon_lib != x; then
  16832. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16833. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16834. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16835. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16836. cat >>confdefs.h <<_ACEOF
  16837. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16838. _ACEOF
  16839. cat >>confdefs.h <<_ACEOF
  16840. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16841. _ACEOF
  16842. cat >>confdefs.h <<_ACEOF
  16843. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16844. _ACEOF
  16845. cat >>confdefs.h <<_ACEOF
  16846. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16847. _ACEOF
  16848. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16849. else
  16850. enable_wayland_shared=no
  16851. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16852. SUMMARY_video="${SUMMARY_video} wayland"
  16853. fi
  16854. have_video=yes
  16855. fi
  16856. fi
  16857. }
  16858. CheckNativeClient()
  16859. {
  16860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16861. /* end confdefs.h. */
  16862. #if !defined(__native_client__)
  16863. #error "NO NACL"
  16864. #endif
  16865. int
  16866. main ()
  16867. {
  16868. ;
  16869. return 0;
  16870. }
  16871. _ACEOF
  16872. if ac_fn_c_try_compile "$LINENO"; then :
  16873. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16874. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16875. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16876. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16877. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16878. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16879. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16880. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16881. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16882. SUMMARY_audio="${SUMMARY_audio} nacl"
  16883. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16884. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16885. fi
  16886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16887. }
  16888. CheckRPI()
  16889. {
  16890. # Check whether --enable-video-rpi was given.
  16891. if test "${enable_video_rpi+set}" = set; then :
  16892. enableval=$enable_video_rpi;
  16893. else
  16894. enable_video_rpi=no
  16895. fi
  16896. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16897. pkg_failed=no
  16898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  16899. $as_echo_n "checking for RPI... " >&6; }
  16900. if test -n "$RPI_CFLAGS"; then
  16901. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  16902. elif test -n "$PKG_CONFIG"; then
  16903. if test -n "$PKG_CONFIG" && \
  16904. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16905. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16906. ac_status=$?
  16907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16908. test $ac_status = 0; }; then
  16909. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  16910. else
  16911. pkg_failed=yes
  16912. fi
  16913. else
  16914. pkg_failed=untried
  16915. fi
  16916. if test -n "$RPI_LIBS"; then
  16917. pkg_cv_RPI_LIBS="$RPI_LIBS"
  16918. elif test -n "$PKG_CONFIG"; then
  16919. if test -n "$PKG_CONFIG" && \
  16920. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16921. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16922. ac_status=$?
  16923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16924. test $ac_status = 0; }; then
  16925. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  16926. else
  16927. pkg_failed=yes
  16928. fi
  16929. else
  16930. pkg_failed=untried
  16931. fi
  16932. if test $pkg_failed = yes; then
  16933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16934. $as_echo "no" >&6; }
  16935. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16936. _pkg_short_errors_supported=yes
  16937. else
  16938. _pkg_short_errors_supported=no
  16939. fi
  16940. if test $_pkg_short_errors_supported = yes; then
  16941. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  16942. else
  16943. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  16944. fi
  16945. # Put the nasty error message in config.log where it belongs
  16946. echo "$RPI_PKG_ERRORS" >&5
  16947. video_rpi=no
  16948. elif test $pkg_failed = untried; then
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16950. $as_echo "no" >&6; }
  16951. video_rpi=no
  16952. else
  16953. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  16954. RPI_LIBS=$pkg_cv_RPI_LIBS
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16956. $as_echo "yes" >&6; }
  16957. video_rpi=yes
  16958. fi
  16959. if test x$video_rpi = xno; then
  16960. if test x$ARCH = xnetbsd; then
  16961. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16962. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16963. else
  16964. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16965. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16966. fi
  16967. fi
  16968. # Save the original compiler flags and libraries
  16969. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16970. # Add the Raspberry Pi compiler flags and libraries
  16971. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16973. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16974. have_video_rpi=no
  16975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16976. /* end confdefs.h. */
  16977. #include <bcm_host.h>
  16978. int
  16979. main ()
  16980. {
  16981. bcm_host_init();
  16982. ;
  16983. return 0;
  16984. }
  16985. _ACEOF
  16986. if ac_fn_c_try_link "$LINENO"; then :
  16987. have_video_rpi=yes
  16988. fi
  16989. rm -f core conftest.err conftest.$ac_objext \
  16990. conftest$ac_exeext conftest.$ac_ext
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16992. $as_echo "$have_video_rpi" >&6; }
  16993. # Restore the compiler flags and libraries
  16994. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16995. if test x$have_video_rpi = xyes; then
  16996. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16997. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16998. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17000. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17001. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17002. SUMMARY_video="${SUMMARY_video} rpi"
  17003. fi
  17004. fi
  17005. }
  17006. CheckX11()
  17007. {
  17008. # Check whether --enable-video-x11 was given.
  17009. if test "${enable_video_x11+set}" = set; then :
  17010. enableval=$enable_video_x11;
  17011. else
  17012. enable_video_x11=yes
  17013. fi
  17014. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17015. case "$host" in
  17016. *-*-darwin*)
  17017. # This isn't necessary for X11, but fixes GLX detection
  17018. if test "x$x_includes" = xNONE && \
  17019. test "x$x_libraries" = xNONE && \
  17020. test -d /usr/X11R6/include && \
  17021. test -d /usr/X11R6/lib; then
  17022. x_includes="/usr/X11R6/include"
  17023. x_libraries="/usr/X11R6/lib"
  17024. fi
  17025. ;;
  17026. esac
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17028. $as_echo_n "checking for X... " >&6; }
  17029. # Check whether --with-x was given.
  17030. if test "${with_x+set}" = set; then :
  17031. withval=$with_x;
  17032. fi
  17033. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17034. if test "x$with_x" = xno; then
  17035. # The user explicitly disabled X.
  17036. have_x=disabled
  17037. else
  17038. case $x_includes,$x_libraries in #(
  17039. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17040. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17041. $as_echo_n "(cached) " >&6
  17042. else
  17043. # One or both of the vars are not set, and there is no cached value.
  17044. ac_x_includes=no ac_x_libraries=no
  17045. rm -f -r conftest.dir
  17046. if mkdir conftest.dir; then
  17047. cd conftest.dir
  17048. cat >Imakefile <<'_ACEOF'
  17049. incroot:
  17050. @echo incroot='${INCROOT}'
  17051. usrlibdir:
  17052. @echo usrlibdir='${USRLIBDIR}'
  17053. libdir:
  17054. @echo libdir='${LIBDIR}'
  17055. _ACEOF
  17056. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17057. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17058. for ac_var in incroot usrlibdir libdir; do
  17059. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17060. done
  17061. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17062. for ac_extension in a so sl dylib la dll; do
  17063. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17064. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17065. ac_im_usrlibdir=$ac_im_libdir; break
  17066. fi
  17067. done
  17068. # Screen out bogus values from the imake configuration. They are
  17069. # bogus both because they are the default anyway, and because
  17070. # using them would break gcc on systems where it needs fixed includes.
  17071. case $ac_im_incroot in
  17072. /usr/include) ac_x_includes= ;;
  17073. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17074. esac
  17075. case $ac_im_usrlibdir in
  17076. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17077. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17078. esac
  17079. fi
  17080. cd ..
  17081. rm -f -r conftest.dir
  17082. fi
  17083. # Standard set of common directories for X headers.
  17084. # Check X11 before X11Rn because it is often a symlink to the current release.
  17085. ac_x_header_dirs='
  17086. /usr/X11/include
  17087. /usr/X11R7/include
  17088. /usr/X11R6/include
  17089. /usr/X11R5/include
  17090. /usr/X11R4/include
  17091. /usr/include/X11
  17092. /usr/include/X11R7
  17093. /usr/include/X11R6
  17094. /usr/include/X11R5
  17095. /usr/include/X11R4
  17096. /usr/local/X11/include
  17097. /usr/local/X11R7/include
  17098. /usr/local/X11R6/include
  17099. /usr/local/X11R5/include
  17100. /usr/local/X11R4/include
  17101. /usr/local/include/X11
  17102. /usr/local/include/X11R7
  17103. /usr/local/include/X11R6
  17104. /usr/local/include/X11R5
  17105. /usr/local/include/X11R4
  17106. /usr/X386/include
  17107. /usr/x386/include
  17108. /usr/XFree86/include/X11
  17109. /usr/include
  17110. /usr/local/include
  17111. /usr/unsupported/include
  17112. /usr/athena/include
  17113. /usr/local/x11r5/include
  17114. /usr/lpp/Xamples/include
  17115. /usr/openwin/include
  17116. /usr/openwin/share/include'
  17117. if test "$ac_x_includes" = no; then
  17118. # Guess where to find include files, by looking for Xlib.h.
  17119. # First, try using that file with no special directory specified.
  17120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17121. /* end confdefs.h. */
  17122. #include <X11/Xlib.h>
  17123. _ACEOF
  17124. if ac_fn_c_try_cpp "$LINENO"; then :
  17125. # We can compile using X headers with no special include directory.
  17126. ac_x_includes=
  17127. else
  17128. for ac_dir in $ac_x_header_dirs; do
  17129. if test -r "$ac_dir/X11/Xlib.h"; then
  17130. ac_x_includes=$ac_dir
  17131. break
  17132. fi
  17133. done
  17134. fi
  17135. rm -f conftest.err conftest.i conftest.$ac_ext
  17136. fi # $ac_x_includes = no
  17137. if test "$ac_x_libraries" = no; then
  17138. # Check for the libraries.
  17139. # See if we find them without any special options.
  17140. # Don't add to $LIBS permanently.
  17141. ac_save_LIBS=$LIBS
  17142. LIBS="-lX11 $LIBS"
  17143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17144. /* end confdefs.h. */
  17145. #include <X11/Xlib.h>
  17146. int
  17147. main ()
  17148. {
  17149. XrmInitialize ()
  17150. ;
  17151. return 0;
  17152. }
  17153. _ACEOF
  17154. if ac_fn_c_try_link "$LINENO"; then :
  17155. LIBS=$ac_save_LIBS
  17156. # We can link X programs with no special library path.
  17157. ac_x_libraries=
  17158. else
  17159. LIBS=$ac_save_LIBS
  17160. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17161. do
  17162. # Don't even attempt the hair of trying to link an X program!
  17163. for ac_extension in a so sl dylib la dll; do
  17164. if test -r "$ac_dir/libX11.$ac_extension"; then
  17165. ac_x_libraries=$ac_dir
  17166. break 2
  17167. fi
  17168. done
  17169. done
  17170. fi
  17171. rm -f core conftest.err conftest.$ac_objext \
  17172. conftest$ac_exeext conftest.$ac_ext
  17173. fi # $ac_x_libraries = no
  17174. case $ac_x_includes,$ac_x_libraries in #(
  17175. no,* | *,no | *\'*)
  17176. # Didn't find X, or a directory has "'" in its name.
  17177. ac_cv_have_x="have_x=no";; #(
  17178. *)
  17179. # Record where we found X for the cache.
  17180. ac_cv_have_x="have_x=yes\
  17181. ac_x_includes='$ac_x_includes'\
  17182. ac_x_libraries='$ac_x_libraries'"
  17183. esac
  17184. fi
  17185. ;; #(
  17186. *) have_x=yes;;
  17187. esac
  17188. eval "$ac_cv_have_x"
  17189. fi # $with_x != no
  17190. if test "$have_x" != yes; then
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17192. $as_echo "$have_x" >&6; }
  17193. no_x=yes
  17194. else
  17195. # If each of the values was on the command line, it overrides each guess.
  17196. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17197. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17198. # Update the cache value to reflect the command line values.
  17199. ac_cv_have_x="have_x=yes\
  17200. ac_x_includes='$x_includes'\
  17201. ac_x_libraries='$x_libraries'"
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17203. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17204. fi
  17205. if test "$no_x" = yes; then
  17206. # Not all programs may use this symbol, but it does not hurt to define it.
  17207. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17208. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17209. else
  17210. if test -n "$x_includes"; then
  17211. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17212. fi
  17213. # It would also be nice to do this for all -L options, not just this one.
  17214. if test -n "$x_libraries"; then
  17215. X_LIBS="$X_LIBS -L$x_libraries"
  17216. # For Solaris; some versions of Sun CC require a space after -R and
  17217. # others require no space. Words are not sufficient . . . .
  17218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17219. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17220. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17221. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17222. ac_c_werror_flag=yes
  17223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17224. /* end confdefs.h. */
  17225. int
  17226. main ()
  17227. {
  17228. ;
  17229. return 0;
  17230. }
  17231. _ACEOF
  17232. if ac_fn_c_try_link "$LINENO"; then :
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17234. $as_echo "no" >&6; }
  17235. X_LIBS="$X_LIBS -R$x_libraries"
  17236. else
  17237. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17239. /* end confdefs.h. */
  17240. int
  17241. main ()
  17242. {
  17243. ;
  17244. return 0;
  17245. }
  17246. _ACEOF
  17247. if ac_fn_c_try_link "$LINENO"; then :
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17249. $as_echo "yes" >&6; }
  17250. X_LIBS="$X_LIBS -R $x_libraries"
  17251. else
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17253. $as_echo "neither works" >&6; }
  17254. fi
  17255. rm -f core conftest.err conftest.$ac_objext \
  17256. conftest$ac_exeext conftest.$ac_ext
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext \
  17259. conftest$ac_exeext conftest.$ac_ext
  17260. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17261. LIBS=$ac_xsave_LIBS
  17262. fi
  17263. # Check for system-dependent libraries X programs must link with.
  17264. # Do this before checking for the system-independent R6 libraries
  17265. # (-lICE), since we may need -lsocket or whatever for X linking.
  17266. if test "$ISC" = yes; then
  17267. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17268. else
  17269. # Martyn Johnson says this is needed for Ultrix, if the X
  17270. # libraries were built with DECnet support. And Karl Berry says
  17271. # the Alpha needs dnet_stub (dnet does not exist).
  17272. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17274. /* end confdefs.h. */
  17275. /* Override any GCC internal prototype to avoid an error.
  17276. Use char because int might match the return type of a GCC
  17277. builtin and then its argument prototype would still apply. */
  17278. #ifdef __cplusplus
  17279. extern "C"
  17280. #endif
  17281. char XOpenDisplay ();
  17282. int
  17283. main ()
  17284. {
  17285. return XOpenDisplay ();
  17286. ;
  17287. return 0;
  17288. }
  17289. _ACEOF
  17290. if ac_fn_c_try_link "$LINENO"; then :
  17291. else
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17293. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17294. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17295. $as_echo_n "(cached) " >&6
  17296. else
  17297. ac_check_lib_save_LIBS=$LIBS
  17298. LIBS="-ldnet $LIBS"
  17299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17300. /* end confdefs.h. */
  17301. /* Override any GCC internal prototype to avoid an error.
  17302. Use char because int might match the return type of a GCC
  17303. builtin and then its argument prototype would still apply. */
  17304. #ifdef __cplusplus
  17305. extern "C"
  17306. #endif
  17307. char dnet_ntoa ();
  17308. int
  17309. main ()
  17310. {
  17311. return dnet_ntoa ();
  17312. ;
  17313. return 0;
  17314. }
  17315. _ACEOF
  17316. if ac_fn_c_try_link "$LINENO"; then :
  17317. ac_cv_lib_dnet_dnet_ntoa=yes
  17318. else
  17319. ac_cv_lib_dnet_dnet_ntoa=no
  17320. fi
  17321. rm -f core conftest.err conftest.$ac_objext \
  17322. conftest$ac_exeext conftest.$ac_ext
  17323. LIBS=$ac_check_lib_save_LIBS
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17326. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17327. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17328. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17329. fi
  17330. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17332. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17333. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17334. $as_echo_n "(cached) " >&6
  17335. else
  17336. ac_check_lib_save_LIBS=$LIBS
  17337. LIBS="-ldnet_stub $LIBS"
  17338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17339. /* end confdefs.h. */
  17340. /* Override any GCC internal prototype to avoid an error.
  17341. Use char because int might match the return type of a GCC
  17342. builtin and then its argument prototype would still apply. */
  17343. #ifdef __cplusplus
  17344. extern "C"
  17345. #endif
  17346. char dnet_ntoa ();
  17347. int
  17348. main ()
  17349. {
  17350. return dnet_ntoa ();
  17351. ;
  17352. return 0;
  17353. }
  17354. _ACEOF
  17355. if ac_fn_c_try_link "$LINENO"; then :
  17356. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17357. else
  17358. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17359. fi
  17360. rm -f core conftest.err conftest.$ac_objext \
  17361. conftest$ac_exeext conftest.$ac_ext
  17362. LIBS=$ac_check_lib_save_LIBS
  17363. fi
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17365. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17366. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17367. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17368. fi
  17369. fi
  17370. fi
  17371. rm -f core conftest.err conftest.$ac_objext \
  17372. conftest$ac_exeext conftest.$ac_ext
  17373. LIBS="$ac_xsave_LIBS"
  17374. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17375. # to get the SysV transport functions.
  17376. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17377. # needs -lnsl.
  17378. # The nsl library prevents programs from opening the X display
  17379. # on Irix 5.2, according to T.E. Dickey.
  17380. # The functions gethostbyname, getservbyname, and inet_addr are
  17381. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17382. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17383. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17384. fi
  17385. if test $ac_cv_func_gethostbyname = no; then
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17387. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17388. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17389. $as_echo_n "(cached) " >&6
  17390. else
  17391. ac_check_lib_save_LIBS=$LIBS
  17392. LIBS="-lnsl $LIBS"
  17393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17394. /* end confdefs.h. */
  17395. /* Override any GCC internal prototype to avoid an error.
  17396. Use char because int might match the return type of a GCC
  17397. builtin and then its argument prototype would still apply. */
  17398. #ifdef __cplusplus
  17399. extern "C"
  17400. #endif
  17401. char gethostbyname ();
  17402. int
  17403. main ()
  17404. {
  17405. return gethostbyname ();
  17406. ;
  17407. return 0;
  17408. }
  17409. _ACEOF
  17410. if ac_fn_c_try_link "$LINENO"; then :
  17411. ac_cv_lib_nsl_gethostbyname=yes
  17412. else
  17413. ac_cv_lib_nsl_gethostbyname=no
  17414. fi
  17415. rm -f core conftest.err conftest.$ac_objext \
  17416. conftest$ac_exeext conftest.$ac_ext
  17417. LIBS=$ac_check_lib_save_LIBS
  17418. fi
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17420. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17421. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17422. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17423. fi
  17424. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17426. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17427. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17428. $as_echo_n "(cached) " >&6
  17429. else
  17430. ac_check_lib_save_LIBS=$LIBS
  17431. LIBS="-lbsd $LIBS"
  17432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17433. /* end confdefs.h. */
  17434. /* Override any GCC internal prototype to avoid an error.
  17435. Use char because int might match the return type of a GCC
  17436. builtin and then its argument prototype would still apply. */
  17437. #ifdef __cplusplus
  17438. extern "C"
  17439. #endif
  17440. char gethostbyname ();
  17441. int
  17442. main ()
  17443. {
  17444. return gethostbyname ();
  17445. ;
  17446. return 0;
  17447. }
  17448. _ACEOF
  17449. if ac_fn_c_try_link "$LINENO"; then :
  17450. ac_cv_lib_bsd_gethostbyname=yes
  17451. else
  17452. ac_cv_lib_bsd_gethostbyname=no
  17453. fi
  17454. rm -f core conftest.err conftest.$ac_objext \
  17455. conftest$ac_exeext conftest.$ac_ext
  17456. LIBS=$ac_check_lib_save_LIBS
  17457. fi
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17459. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17460. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17461. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17462. fi
  17463. fi
  17464. fi
  17465. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17466. # socket/setsockopt and other routines are undefined under SCO ODT
  17467. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17468. # on later versions), says Simon Leinen: it contains gethostby*
  17469. # variants that don't use the name server (or something). -lsocket
  17470. # must be given before -lnsl if both are needed. We assume that
  17471. # if connect needs -lnsl, so does gethostbyname.
  17472. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17473. if test "x$ac_cv_func_connect" = xyes; then :
  17474. fi
  17475. if test $ac_cv_func_connect = no; then
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17477. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17478. if ${ac_cv_lib_socket_connect+:} false; then :
  17479. $as_echo_n "(cached) " >&6
  17480. else
  17481. ac_check_lib_save_LIBS=$LIBS
  17482. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17484. /* end confdefs.h. */
  17485. /* Override any GCC internal prototype to avoid an error.
  17486. Use char because int might match the return type of a GCC
  17487. builtin and then its argument prototype would still apply. */
  17488. #ifdef __cplusplus
  17489. extern "C"
  17490. #endif
  17491. char connect ();
  17492. int
  17493. main ()
  17494. {
  17495. return connect ();
  17496. ;
  17497. return 0;
  17498. }
  17499. _ACEOF
  17500. if ac_fn_c_try_link "$LINENO"; then :
  17501. ac_cv_lib_socket_connect=yes
  17502. else
  17503. ac_cv_lib_socket_connect=no
  17504. fi
  17505. rm -f core conftest.err conftest.$ac_objext \
  17506. conftest$ac_exeext conftest.$ac_ext
  17507. LIBS=$ac_check_lib_save_LIBS
  17508. fi
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17510. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17511. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17512. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17513. fi
  17514. fi
  17515. # Guillermo Gomez says -lposix is necessary on A/UX.
  17516. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17517. if test "x$ac_cv_func_remove" = xyes; then :
  17518. fi
  17519. if test $ac_cv_func_remove = no; then
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17521. $as_echo_n "checking for remove in -lposix... " >&6; }
  17522. if ${ac_cv_lib_posix_remove+:} false; then :
  17523. $as_echo_n "(cached) " >&6
  17524. else
  17525. ac_check_lib_save_LIBS=$LIBS
  17526. LIBS="-lposix $LIBS"
  17527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17528. /* end confdefs.h. */
  17529. /* Override any GCC internal prototype to avoid an error.
  17530. Use char because int might match the return type of a GCC
  17531. builtin and then its argument prototype would still apply. */
  17532. #ifdef __cplusplus
  17533. extern "C"
  17534. #endif
  17535. char remove ();
  17536. int
  17537. main ()
  17538. {
  17539. return remove ();
  17540. ;
  17541. return 0;
  17542. }
  17543. _ACEOF
  17544. if ac_fn_c_try_link "$LINENO"; then :
  17545. ac_cv_lib_posix_remove=yes
  17546. else
  17547. ac_cv_lib_posix_remove=no
  17548. fi
  17549. rm -f core conftest.err conftest.$ac_objext \
  17550. conftest$ac_exeext conftest.$ac_ext
  17551. LIBS=$ac_check_lib_save_LIBS
  17552. fi
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17554. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17555. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17556. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17557. fi
  17558. fi
  17559. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17560. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17561. if test "x$ac_cv_func_shmat" = xyes; then :
  17562. fi
  17563. if test $ac_cv_func_shmat = no; then
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17565. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17566. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17567. $as_echo_n "(cached) " >&6
  17568. else
  17569. ac_check_lib_save_LIBS=$LIBS
  17570. LIBS="-lipc $LIBS"
  17571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17572. /* end confdefs.h. */
  17573. /* Override any GCC internal prototype to avoid an error.
  17574. Use char because int might match the return type of a GCC
  17575. builtin and then its argument prototype would still apply. */
  17576. #ifdef __cplusplus
  17577. extern "C"
  17578. #endif
  17579. char shmat ();
  17580. int
  17581. main ()
  17582. {
  17583. return shmat ();
  17584. ;
  17585. return 0;
  17586. }
  17587. _ACEOF
  17588. if ac_fn_c_try_link "$LINENO"; then :
  17589. ac_cv_lib_ipc_shmat=yes
  17590. else
  17591. ac_cv_lib_ipc_shmat=no
  17592. fi
  17593. rm -f core conftest.err conftest.$ac_objext \
  17594. conftest$ac_exeext conftest.$ac_ext
  17595. LIBS=$ac_check_lib_save_LIBS
  17596. fi
  17597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17598. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17599. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17600. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17601. fi
  17602. fi
  17603. fi
  17604. # Check for libraries that X11R6 Xt/Xaw programs need.
  17605. ac_save_LDFLAGS=$LDFLAGS
  17606. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17607. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17608. # check for ICE first), but we must link in the order -lSM -lICE or
  17609. # we get undefined symbols. So assume we have SM if we have ICE.
  17610. # These have to be linked with before -lX11, unlike the other
  17611. # libraries we check for below, so use a different variable.
  17612. # John Interrante, Karl Berry
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17614. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17615. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17616. $as_echo_n "(cached) " >&6
  17617. else
  17618. ac_check_lib_save_LIBS=$LIBS
  17619. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17621. /* end confdefs.h. */
  17622. /* Override any GCC internal prototype to avoid an error.
  17623. Use char because int might match the return type of a GCC
  17624. builtin and then its argument prototype would still apply. */
  17625. #ifdef __cplusplus
  17626. extern "C"
  17627. #endif
  17628. char IceConnectionNumber ();
  17629. int
  17630. main ()
  17631. {
  17632. return IceConnectionNumber ();
  17633. ;
  17634. return 0;
  17635. }
  17636. _ACEOF
  17637. if ac_fn_c_try_link "$LINENO"; then :
  17638. ac_cv_lib_ICE_IceConnectionNumber=yes
  17639. else
  17640. ac_cv_lib_ICE_IceConnectionNumber=no
  17641. fi
  17642. rm -f core conftest.err conftest.$ac_objext \
  17643. conftest$ac_exeext conftest.$ac_ext
  17644. LIBS=$ac_check_lib_save_LIBS
  17645. fi
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17647. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17648. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17649. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17650. fi
  17651. LDFLAGS=$ac_save_LDFLAGS
  17652. fi
  17653. if test x$have_x = xyes; then
  17654. # Check whether --enable-x11-shared was given.
  17655. if test "${enable_x11_shared+set}" = set; then :
  17656. enableval=$enable_x11_shared;
  17657. else
  17658. enable_x11_shared=maybe
  17659. fi
  17660. case "$host" in
  17661. *-*-darwin*)
  17662. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17663. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17664. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17665. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17666. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17667. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17668. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17669. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17670. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17671. ;;
  17672. *-*-openbsd*)
  17673. x11_lib='libX11.so'
  17674. x11ext_lib='libXext.so'
  17675. xcursor_lib='libXcursor.so'
  17676. xinerama_lib='libXinerama.so'
  17677. xinput_lib='libXi.so'
  17678. xrandr_lib='libXrandr.so'
  17679. xrender_lib='libXrender.so'
  17680. xss_lib='libXss.so'
  17681. xvidmode_lib='libXxf86vm.so'
  17682. ;;
  17683. *)
  17684. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17685. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17686. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17687. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17688. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17689. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17690. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17691. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17692. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17693. ;;
  17694. esac
  17695. if test x$ac_cv_func_shmat != xyes; then
  17696. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17697. fi
  17698. CFLAGS="$CFLAGS $X_CFLAGS"
  17699. LDFLAGS="$LDFLAGS $X_LIBS"
  17700. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17701. #include <X11/Xproto.h>
  17702. "
  17703. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17704. have_xext_h_hdr=yes
  17705. else
  17706. have_xext_h_hdr=no
  17707. fi
  17708. if test x$have_xext_h_hdr != xyes; then
  17709. as_fn_error $? "
  17710. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17711. " "$LINENO" 5
  17712. fi
  17713. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17714. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17715. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17716. # Needed so SDL applications can include SDL_syswm.h
  17717. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17718. if test x$enable_x11_shared = xmaybe; then
  17719. enable_x11_shared=yes
  17720. fi
  17721. if test x$have_loadso != xyes && \
  17722. test x$enable_x11_shared = xyes; then
  17723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17724. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17725. enable_x11_shared=no
  17726. fi
  17727. if test x$have_loadso = xyes && \
  17728. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17729. echo "-- dynamic libX11 -> $x11_lib"
  17730. echo "-- dynamic libX11ext -> $x11ext_lib"
  17731. cat >>confdefs.h <<_ACEOF
  17732. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17733. _ACEOF
  17734. cat >>confdefs.h <<_ACEOF
  17735. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17736. _ACEOF
  17737. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17738. else
  17739. enable_x11_shared=no
  17740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17741. SUMMARY_video="${SUMMARY_video} x11"
  17742. fi
  17743. have_video=yes
  17744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17745. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17746. have_const_param_XextAddDisplay=no
  17747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17748. /* end confdefs.h. */
  17749. #include <X11/Xlib.h>
  17750. #include <X11/Xproto.h>
  17751. #include <X11/extensions/Xext.h>
  17752. #include <X11/extensions/extutil.h>
  17753. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17754. int
  17755. main ()
  17756. {
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_compile "$LINENO"; then :
  17762. have_const_param_XextAddDisplay=yes
  17763. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17767. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17769. $as_echo_n "checking for XGenericEvent... " >&6; }
  17770. have_XGenericEvent=no
  17771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17772. /* end confdefs.h. */
  17773. #include <X11/Xlib.h>
  17774. int
  17775. main ()
  17776. {
  17777. Display *display;
  17778. XEvent event;
  17779. XGenericEventCookie *cookie = &event.xcookie;
  17780. XNextEvent(display, &event);
  17781. XGetEventData(display, cookie);
  17782. XFreeEventData(display, cookie);
  17783. ;
  17784. return 0;
  17785. }
  17786. _ACEOF
  17787. if ac_fn_c_try_compile "$LINENO"; then :
  17788. have_XGenericEvent=yes
  17789. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17790. fi
  17791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17793. $as_echo "$have_XGenericEvent" >&6; }
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17795. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17796. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17797. $as_echo_n "(cached) " >&6
  17798. else
  17799. ac_check_lib_save_LIBS=$LIBS
  17800. LIBS="-lX11 $LIBS"
  17801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. /* end confdefs.h. */
  17803. /* Override any GCC internal prototype to avoid an error.
  17804. Use char because int might match the return type of a GCC
  17805. builtin and then its argument prototype would still apply. */
  17806. #ifdef __cplusplus
  17807. extern "C"
  17808. #endif
  17809. char XkbKeycodeToKeysym ();
  17810. int
  17811. main ()
  17812. {
  17813. return XkbKeycodeToKeysym ();
  17814. ;
  17815. return 0;
  17816. }
  17817. _ACEOF
  17818. if ac_fn_c_try_link "$LINENO"; then :
  17819. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17820. else
  17821. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17822. fi
  17823. rm -f core conftest.err conftest.$ac_objext \
  17824. conftest$ac_exeext conftest.$ac_ext
  17825. LIBS=$ac_check_lib_save_LIBS
  17826. fi
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17828. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17829. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17830. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17831. fi
  17832. # Check whether --enable-video-x11-xcursor was given.
  17833. if test "${enable_video_x11_xcursor+set}" = set; then :
  17834. enableval=$enable_video_x11_xcursor;
  17835. else
  17836. enable_video_x11_xcursor=yes
  17837. fi
  17838. if test x$enable_video_x11_xcursor = xyes; then
  17839. definitely_enable_video_x11_xcursor=no
  17840. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17841. "
  17842. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17843. have_xcursor_h_hdr=yes
  17844. else
  17845. have_xcursor_h_hdr=no
  17846. fi
  17847. if test x$have_xcursor_h_hdr = xyes; then
  17848. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17849. echo "-- dynamic libXcursor -> $xcursor_lib"
  17850. cat >>confdefs.h <<_ACEOF
  17851. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17852. _ACEOF
  17853. definitely_enable_video_x11_xcursor=yes
  17854. else
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17856. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17857. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17858. $as_echo_n "(cached) " >&6
  17859. else
  17860. ac_check_lib_save_LIBS=$LIBS
  17861. LIBS="-lXcursor $LIBS"
  17862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17863. /* end confdefs.h. */
  17864. /* Override any GCC internal prototype to avoid an error.
  17865. Use char because int might match the return type of a GCC
  17866. builtin and then its argument prototype would still apply. */
  17867. #ifdef __cplusplus
  17868. extern "C"
  17869. #endif
  17870. char XcursorImageCreate ();
  17871. int
  17872. main ()
  17873. {
  17874. return XcursorImageCreate ();
  17875. ;
  17876. return 0;
  17877. }
  17878. _ACEOF
  17879. if ac_fn_c_try_link "$LINENO"; then :
  17880. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17881. else
  17882. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17883. fi
  17884. rm -f core conftest.err conftest.$ac_objext \
  17885. conftest$ac_exeext conftest.$ac_ext
  17886. LIBS=$ac_check_lib_save_LIBS
  17887. fi
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17889. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17890. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17891. have_xcursor_lib=yes
  17892. fi
  17893. if test x$have_xcursor_lib = xyes ; then
  17894. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17895. definitely_enable_video_x11_xcursor=yes
  17896. fi
  17897. fi
  17898. fi
  17899. fi
  17900. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17901. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17902. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17903. fi
  17904. # Check whether --enable-video-x11-xdbe was given.
  17905. if test "${enable_video_x11_xdbe+set}" = set; then :
  17906. enableval=$enable_video_x11_xdbe;
  17907. else
  17908. enable_video_x11_xdbe=yes
  17909. fi
  17910. if test x$enable_video_x11_xdbe = xyes; then
  17911. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17912. "
  17913. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17914. have_dbe_h_hdr=yes
  17915. else
  17916. have_dbe_h_hdr=no
  17917. fi
  17918. if test x$have_dbe_h_hdr = xyes; then
  17919. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17920. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17921. fi
  17922. fi
  17923. # Check whether --enable-video-x11-xinerama was given.
  17924. if test "${enable_video_x11_xinerama+set}" = set; then :
  17925. enableval=$enable_video_x11_xinerama;
  17926. else
  17927. enable_video_x11_xinerama=yes
  17928. fi
  17929. if test x$enable_video_x11_xinerama = xyes; then
  17930. definitely_enable_video_x11_xinerama=no
  17931. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17932. "
  17933. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17934. have_xinerama_h_hdr=yes
  17935. else
  17936. have_xinerama_h_hdr=no
  17937. fi
  17938. if test x$have_xinerama_h_hdr = xyes; then
  17939. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17940. echo "-- dynamic libXinerama -> $xinerama_lib"
  17941. cat >>confdefs.h <<_ACEOF
  17942. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17943. _ACEOF
  17944. definitely_enable_video_x11_xinerama=yes
  17945. else
  17946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17947. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17948. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17949. $as_echo_n "(cached) " >&6
  17950. else
  17951. ac_check_lib_save_LIBS=$LIBS
  17952. LIBS="-lXinerama $LIBS"
  17953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17954. /* end confdefs.h. */
  17955. /* Override any GCC internal prototype to avoid an error.
  17956. Use char because int might match the return type of a GCC
  17957. builtin and then its argument prototype would still apply. */
  17958. #ifdef __cplusplus
  17959. extern "C"
  17960. #endif
  17961. char XineramaQueryExtension ();
  17962. int
  17963. main ()
  17964. {
  17965. return XineramaQueryExtension ();
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_link "$LINENO"; then :
  17971. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17972. else
  17973. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext \
  17976. conftest$ac_exeext conftest.$ac_ext
  17977. LIBS=$ac_check_lib_save_LIBS
  17978. fi
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17980. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17981. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17982. have_xinerama_lib=yes
  17983. fi
  17984. if test x$have_xinerama_lib = xyes ; then
  17985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17986. definitely_enable_video_x11_xinerama=yes
  17987. fi
  17988. fi
  17989. fi
  17990. fi
  17991. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17992. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17993. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17994. fi
  17995. # Check whether --enable-video-x11-xinput was given.
  17996. if test "${enable_video_x11_xinput+set}" = set; then :
  17997. enableval=$enable_video_x11_xinput;
  17998. else
  17999. enable_video_x11_xinput=yes
  18000. fi
  18001. if test x$enable_video_x11_xinput = xyes; then
  18002. definitely_enable_video_x11_xinput=no
  18003. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18004. "
  18005. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18006. have_xinput_h_hdr=yes
  18007. else
  18008. have_xinput_h_hdr=no
  18009. fi
  18010. if test x$have_xinput_h_hdr = xyes; then
  18011. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18012. echo "-- dynamic libXi -> $xinput_lib"
  18013. cat >>confdefs.h <<_ACEOF
  18014. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18015. _ACEOF
  18016. definitely_enable_video_x11_xinput=yes
  18017. else
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18019. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18020. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18021. $as_echo_n "(cached) " >&6
  18022. else
  18023. ac_check_lib_save_LIBS=$LIBS
  18024. LIBS="-lXi $LIBS"
  18025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18026. /* end confdefs.h. */
  18027. /* Override any GCC internal prototype to avoid an error.
  18028. Use char because int might match the return type of a GCC
  18029. builtin and then its argument prototype would still apply. */
  18030. #ifdef __cplusplus
  18031. extern "C"
  18032. #endif
  18033. char XOpenDevice ();
  18034. int
  18035. main ()
  18036. {
  18037. return XOpenDevice ();
  18038. ;
  18039. return 0;
  18040. }
  18041. _ACEOF
  18042. if ac_fn_c_try_link "$LINENO"; then :
  18043. ac_cv_lib_Xi_XOpenDevice=yes
  18044. else
  18045. ac_cv_lib_Xi_XOpenDevice=no
  18046. fi
  18047. rm -f core conftest.err conftest.$ac_objext \
  18048. conftest$ac_exeext conftest.$ac_ext
  18049. LIBS=$ac_check_lib_save_LIBS
  18050. fi
  18051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18052. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18053. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18054. have_xinput_lib=yes
  18055. fi
  18056. if test x$have_xinput_lib = xyes ; then
  18057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18058. definitely_enable_video_x11_xinput=yes
  18059. fi
  18060. fi
  18061. fi
  18062. fi
  18063. if test x$definitely_enable_video_x11_xinput = xyes; then
  18064. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18065. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18067. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18068. have_xinput2_multitouch=no
  18069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18070. /* end confdefs.h. */
  18071. #include <X11/Xlib.h>
  18072. #include <X11/Xproto.h>
  18073. #include <X11/extensions/XInput2.h>
  18074. int
  18075. main ()
  18076. {
  18077. int event_type = XI_TouchBegin;
  18078. XITouchClassInfo *t;
  18079. ;
  18080. return 0;
  18081. }
  18082. _ACEOF
  18083. if ac_fn_c_try_compile "$LINENO"; then :
  18084. have_xinput2_multitouch=yes
  18085. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18086. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18087. fi
  18088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18090. $as_echo "$have_xinput2_multitouch" >&6; }
  18091. fi
  18092. # Check whether --enable-video-x11-xrandr was given.
  18093. if test "${enable_video_x11_xrandr+set}" = set; then :
  18094. enableval=$enable_video_x11_xrandr;
  18095. else
  18096. enable_video_x11_xrandr=yes
  18097. fi
  18098. if test x$enable_video_x11_xrandr = xyes; then
  18099. definitely_enable_video_x11_xrandr=no
  18100. have_xrandr_h_hdr=no
  18101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18102. /* end confdefs.h. */
  18103. #include <X11/Xlib.h>
  18104. #include <X11/extensions/Xrandr.h>
  18105. int
  18106. main ()
  18107. {
  18108. XRRScreenResources *res = NULL;
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. if ac_fn_c_try_compile "$LINENO"; then :
  18114. have_xrandr_h_hdr=yes
  18115. fi
  18116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18117. if test x$have_xrandr_h_hdr = xyes; then
  18118. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18119. echo "-- dynamic libXrandr -> $xrandr_lib"
  18120. cat >>confdefs.h <<_ACEOF
  18121. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18122. _ACEOF
  18123. definitely_enable_video_x11_xrandr=yes
  18124. else
  18125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18126. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18127. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18128. $as_echo_n "(cached) " >&6
  18129. else
  18130. ac_check_lib_save_LIBS=$LIBS
  18131. LIBS="-lXrandr $LIBS"
  18132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18133. /* end confdefs.h. */
  18134. /* Override any GCC internal prototype to avoid an error.
  18135. Use char because int might match the return type of a GCC
  18136. builtin and then its argument prototype would still apply. */
  18137. #ifdef __cplusplus
  18138. extern "C"
  18139. #endif
  18140. char XRRQueryExtension ();
  18141. int
  18142. main ()
  18143. {
  18144. return XRRQueryExtension ();
  18145. ;
  18146. return 0;
  18147. }
  18148. _ACEOF
  18149. if ac_fn_c_try_link "$LINENO"; then :
  18150. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18151. else
  18152. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext \
  18155. conftest$ac_exeext conftest.$ac_ext
  18156. LIBS=$ac_check_lib_save_LIBS
  18157. fi
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18159. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18160. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18161. have_xrandr_lib=yes
  18162. fi
  18163. if test x$have_xrandr_lib = xyes ; then
  18164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18165. definitely_enable_video_x11_xrandr=yes
  18166. fi
  18167. fi
  18168. fi
  18169. fi
  18170. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18171. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18172. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18173. fi
  18174. # Check whether --enable-video-x11-scrnsaver was given.
  18175. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18176. enableval=$enable_video_x11_scrnsaver;
  18177. else
  18178. enable_video_x11_scrnsaver=yes
  18179. fi
  18180. if test x$enable_video_x11_scrnsaver = xyes; then
  18181. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18182. "
  18183. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18184. have_scrnsaver_h_hdr=yes
  18185. else
  18186. have_scrnsaver_h_hdr=no
  18187. fi
  18188. if test x$have_scrnsaver_h_hdr = xyes; then
  18189. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18190. echo "-- dynamic libXss -> $xss_lib"
  18191. cat >>confdefs.h <<_ACEOF
  18192. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18193. _ACEOF
  18194. definitely_enable_video_x11_scrnsaver=yes
  18195. else
  18196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18197. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18198. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18199. $as_echo_n "(cached) " >&6
  18200. else
  18201. ac_check_lib_save_LIBS=$LIBS
  18202. LIBS="-lXss $LIBS"
  18203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18204. /* end confdefs.h. */
  18205. /* Override any GCC internal prototype to avoid an error.
  18206. Use char because int might match the return type of a GCC
  18207. builtin and then its argument prototype would still apply. */
  18208. #ifdef __cplusplus
  18209. extern "C"
  18210. #endif
  18211. char XScreenSaverSuspend ();
  18212. int
  18213. main ()
  18214. {
  18215. return XScreenSaverSuspend ();
  18216. ;
  18217. return 0;
  18218. }
  18219. _ACEOF
  18220. if ac_fn_c_try_link "$LINENO"; then :
  18221. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18222. else
  18223. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18224. fi
  18225. rm -f core conftest.err conftest.$ac_objext \
  18226. conftest$ac_exeext conftest.$ac_ext
  18227. LIBS=$ac_check_lib_save_LIBS
  18228. fi
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18230. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18231. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18232. have_xss_lib=yes
  18233. fi
  18234. if test x$have_xss_lib = xyes ; then
  18235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18236. definitely_enable_video_x11_scrnsaver=yes
  18237. fi
  18238. fi
  18239. fi
  18240. fi
  18241. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18242. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18243. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18244. fi
  18245. # Check whether --enable-video-x11-xshape was given.
  18246. if test "${enable_video_x11_xshape+set}" = set; then :
  18247. enableval=$enable_video_x11_xshape;
  18248. else
  18249. enable_video_x11_xshape=yes
  18250. fi
  18251. if test x$enable_video_x11_xshape = xyes; then
  18252. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18253. "
  18254. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18255. have_shape_h_hdr=yes
  18256. else
  18257. have_shape_h_hdr=no
  18258. fi
  18259. if test x$have_shape_h_hdr = xyes; then
  18260. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18261. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18262. fi
  18263. fi
  18264. # Check whether --enable-video-x11-vm was given.
  18265. if test "${enable_video_x11_vm+set}" = set; then :
  18266. enableval=$enable_video_x11_vm;
  18267. else
  18268. enable_video_x11_vm=yes
  18269. fi
  18270. if test x$enable_video_x11_vm = xyes; then
  18271. definitely_enable_video_x11_vm=no
  18272. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18273. "
  18274. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18275. have_vm_h_hdr=yes
  18276. else
  18277. have_vm_h_hdr=no
  18278. fi
  18279. if test x$have_vm_h_hdr = xyes; then
  18280. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18281. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18282. cat >>confdefs.h <<_ACEOF
  18283. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18284. _ACEOF
  18285. definitely_enable_video_x11_vm=yes
  18286. else
  18287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18288. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18289. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18290. $as_echo_n "(cached) " >&6
  18291. else
  18292. ac_check_lib_save_LIBS=$LIBS
  18293. LIBS="-lXxf86vm $LIBS"
  18294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18295. /* end confdefs.h. */
  18296. /* Override any GCC internal prototype to avoid an error.
  18297. Use char because int might match the return type of a GCC
  18298. builtin and then its argument prototype would still apply. */
  18299. #ifdef __cplusplus
  18300. extern "C"
  18301. #endif
  18302. char XF86VidModeQueryVersion ();
  18303. int
  18304. main ()
  18305. {
  18306. return XF86VidModeQueryVersion ();
  18307. ;
  18308. return 0;
  18309. }
  18310. _ACEOF
  18311. if ac_fn_c_try_link "$LINENO"; then :
  18312. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18313. else
  18314. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18315. fi
  18316. rm -f core conftest.err conftest.$ac_objext \
  18317. conftest$ac_exeext conftest.$ac_ext
  18318. LIBS=$ac_check_lib_save_LIBS
  18319. fi
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18321. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18322. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18323. have_vm_lib=yes
  18324. fi
  18325. if test x$have_vm_lib = xyes ; then
  18326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18327. definitely_enable_video_x11_vm=yes
  18328. fi
  18329. fi
  18330. fi
  18331. fi
  18332. if test x$definitely_enable_video_x11_vm = xyes; then
  18333. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18334. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18335. fi
  18336. fi
  18337. fi
  18338. }
  18339. CheckVivanteVideo()
  18340. {
  18341. # Check whether --enable-video-vivante was given.
  18342. if test "${enable_video_vivante+set}" = set; then :
  18343. enableval=$enable_video_vivante;
  18344. else
  18345. enable_video_vivante=yes
  18346. fi
  18347. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18349. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18350. have_vivante_vdk=no
  18351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. /* end confdefs.h. */
  18353. #define LINUX
  18354. #define EGL_API_FB
  18355. #include <gc_vdk.h>
  18356. int
  18357. main ()
  18358. {
  18359. ;
  18360. return 0;
  18361. }
  18362. _ACEOF
  18363. if ac_fn_c_try_compile "$LINENO"; then :
  18364. have_vivante_vdk=yes
  18365. fi
  18366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18368. $as_echo "$have_vivante_vdk" >&6; }
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18370. $as_echo_n "checking for Vivante FB API... " >&6; }
  18371. have_vivante_egl=no
  18372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18373. /* end confdefs.h. */
  18374. #define LINUX
  18375. #define EGL_API_FB
  18376. #include <EGL/eglvivante.h>
  18377. int
  18378. main ()
  18379. {
  18380. ;
  18381. return 0;
  18382. }
  18383. _ACEOF
  18384. if ac_fn_c_try_compile "$LINENO"; then :
  18385. have_vivante_egl=yes
  18386. fi
  18387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18389. $as_echo "$have_vivante_egl" >&6; }
  18390. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18391. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18392. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18393. if test x$have_vivante_vdk = xyes; then
  18394. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18396. fi
  18397. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18398. SUMMARY_video="${SUMMARY_video} vivante"
  18399. have_video=yes
  18400. fi
  18401. fi
  18402. }
  18403. CheckHaikuVideo()
  18404. {
  18405. if test x$enable_video = xyes; then
  18406. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18407. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18408. have_video=yes
  18409. SUMMARY_video="${SUMMARY_video} haiku"
  18410. fi
  18411. }
  18412. CheckCOCOA()
  18413. {
  18414. # Check whether --enable-video-cocoa was given.
  18415. if test "${enable_video_cocoa+set}" = set; then :
  18416. enableval=$enable_video_cocoa;
  18417. else
  18418. enable_video_cocoa=yes
  18419. fi
  18420. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18421. save_CFLAGS="$CFLAGS"
  18422. CFLAGS="$CFLAGS -x objective-c"
  18423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18424. $as_echo_n "checking for Cocoa framework... " >&6; }
  18425. have_cocoa=no
  18426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18427. /* end confdefs.h. */
  18428. #import <Cocoa/Cocoa.h>
  18429. int
  18430. main ()
  18431. {
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. if ac_fn_c_try_compile "$LINENO"; then :
  18437. have_cocoa=yes
  18438. fi
  18439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18441. $as_echo "$have_cocoa" >&6; }
  18442. CFLAGS="$save_CFLAGS"
  18443. if test x$have_cocoa = xyes; then
  18444. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18445. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18446. SUMMARY_video="${SUMMARY_video} cocoa"
  18447. have_video=yes
  18448. fi
  18449. fi
  18450. }
  18451. CheckMETAL()
  18452. {
  18453. # Check whether --enable-render-metal was given.
  18454. if test "${enable_render_metal+set}" = set; then :
  18455. enableval=$enable_render_metal;
  18456. else
  18457. enable_render_metal=yes
  18458. fi
  18459. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18460. save_CFLAGS="$CFLAGS"
  18461. CFLAGS="$CFLAGS -x objective-c"
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18463. $as_echo_n "checking for Metal framework... " >&6; }
  18464. have_metal=no
  18465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18466. /* end confdefs.h. */
  18467. #import <Cocoa/Cocoa.h>
  18468. #import <Metal/Metal.h>
  18469. #import <QuartzCore/CAMetalLayer.h>
  18470. #if !TARGET_CPU_X86_64
  18471. #error Metal doesn't work on this configuration
  18472. #endif
  18473. int
  18474. main ()
  18475. {
  18476. ;
  18477. return 0;
  18478. }
  18479. _ACEOF
  18480. if ac_fn_c_try_compile "$LINENO"; then :
  18481. have_metal=yes
  18482. fi
  18483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18484. CFLAGS="$save_CFLAGS"
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18486. $as_echo "$have_metal" >&6; }
  18487. if test x$have_metal = xyes; then
  18488. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18489. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18490. SUMMARY_video="${SUMMARY_video} metal"
  18491. else
  18492. enable_render_metal=no
  18493. fi
  18494. fi
  18495. }
  18496. CheckDirectFB()
  18497. {
  18498. # Check whether --enable-video-directfb was given.
  18499. if test "${enable_video_directfb+set}" = set; then :
  18500. enableval=$enable_video_directfb;
  18501. else
  18502. enable_video_directfb=no
  18503. fi
  18504. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18505. pkg_failed=no
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18507. $as_echo_n "checking for DIRECTFB... " >&6; }
  18508. if test -n "$DIRECTFB_CFLAGS"; then
  18509. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18510. elif test -n "$PKG_CONFIG"; then
  18511. if test -n "$PKG_CONFIG" && \
  18512. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18513. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18514. ac_status=$?
  18515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18516. test $ac_status = 0; }; then
  18517. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18518. else
  18519. pkg_failed=yes
  18520. fi
  18521. else
  18522. pkg_failed=untried
  18523. fi
  18524. if test -n "$DIRECTFB_LIBS"; then
  18525. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18526. elif test -n "$PKG_CONFIG"; then
  18527. if test -n "$PKG_CONFIG" && \
  18528. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18529. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18530. ac_status=$?
  18531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18532. test $ac_status = 0; }; then
  18533. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18534. else
  18535. pkg_failed=yes
  18536. fi
  18537. else
  18538. pkg_failed=untried
  18539. fi
  18540. if test $pkg_failed = yes; then
  18541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18542. $as_echo "no" >&6; }
  18543. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18544. _pkg_short_errors_supported=yes
  18545. else
  18546. _pkg_short_errors_supported=no
  18547. fi
  18548. if test $_pkg_short_errors_supported = yes; then
  18549. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18550. else
  18551. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18552. fi
  18553. # Put the nasty error message in config.log where it belongs
  18554. echo "$DIRECTFB_PKG_ERRORS" >&5
  18555. video_directfb=no
  18556. elif test $pkg_failed = untried; then
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18558. $as_echo "no" >&6; }
  18559. video_directfb=no
  18560. else
  18561. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18562. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18564. $as_echo "yes" >&6; }
  18565. video_directfb=yes
  18566. fi
  18567. if test x$video_directfb = xyes; then
  18568. # SuSE 11.1 installs directfb-config without directfb-devel
  18569. save_CPPFLAGS="$CPPFLAGS"
  18570. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18571. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18572. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18573. have_directfb_hdr=yes
  18574. else
  18575. have_directfb_hdr=no
  18576. fi
  18577. CPPFLAGS="$save_CPPFLAGS"
  18578. video_directfb=$have_directfb_hdr
  18579. fi
  18580. if test x$video_directfb = xyes; then
  18581. # Check whether --enable-directfb-shared was given.
  18582. if test "${enable_directfb_shared+set}" = set; then :
  18583. enableval=$enable_directfb_shared;
  18584. else
  18585. enable_directfb_shared=yes
  18586. fi
  18587. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18588. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18589. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18590. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18592. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18593. directfb_shared=no
  18594. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18595. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18597. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18598. if test x$have_loadso != xyes && \
  18599. test x$enable_directfb_shared = xyes; then
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18601. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18602. fi
  18603. if test x$have_loadso = xyes && \
  18604. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18605. directfb_shared=yes
  18606. echo "-- $directfb_lib_spec -> $directfb_lib"
  18607. cat >>confdefs.h <<_ACEOF
  18608. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18609. _ACEOF
  18610. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18611. else
  18612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18613. SUMMARY_video="${SUMMARY_video} directfb"
  18614. fi
  18615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18616. $as_echo "$directfb_shared" >&6; }
  18617. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18618. have_video=yes
  18619. fi
  18620. fi
  18621. }
  18622. CheckKMSDRM()
  18623. {
  18624. # Check whether --enable-video-kmsdrm was given.
  18625. if test "${enable_video_kmsdrm+set}" = set; then :
  18626. enableval=$enable_video_kmsdrm;
  18627. else
  18628. enable_video_kmsdrm=no
  18629. fi
  18630. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18631. video_kmsdrm=no
  18632. pkg_failed=no
  18633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18634. $as_echo_n "checking for LIBDRM... " >&6; }
  18635. if test -n "$LIBDRM_CFLAGS"; then
  18636. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18637. elif test -n "$PKG_CONFIG"; then
  18638. if test -n "$PKG_CONFIG" && \
  18639. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18640. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18641. ac_status=$?
  18642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18643. test $ac_status = 0; }; then
  18644. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18645. else
  18646. pkg_failed=yes
  18647. fi
  18648. else
  18649. pkg_failed=untried
  18650. fi
  18651. if test -n "$LIBDRM_LIBS"; then
  18652. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18653. elif test -n "$PKG_CONFIG"; then
  18654. if test -n "$PKG_CONFIG" && \
  18655. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18656. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18657. ac_status=$?
  18658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18659. test $ac_status = 0; }; then
  18660. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18661. else
  18662. pkg_failed=yes
  18663. fi
  18664. else
  18665. pkg_failed=untried
  18666. fi
  18667. if test $pkg_failed = yes; then
  18668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18669. $as_echo "no" >&6; }
  18670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18671. _pkg_short_errors_supported=yes
  18672. else
  18673. _pkg_short_errors_supported=no
  18674. fi
  18675. if test $_pkg_short_errors_supported = yes; then
  18676. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18677. else
  18678. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18679. fi
  18680. # Put the nasty error message in config.log where it belongs
  18681. echo "$LIBDRM_PKG_ERRORS" >&5
  18682. libdrm_avail=no
  18683. elif test $pkg_failed = untried; then
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18685. $as_echo "no" >&6; }
  18686. libdrm_avail=no
  18687. else
  18688. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18689. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18691. $as_echo "yes" >&6; }
  18692. libdrm_avail=yes
  18693. fi
  18694. pkg_failed=no
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18696. $as_echo_n "checking for LIBGBM... " >&6; }
  18697. if test -n "$LIBGBM_CFLAGS"; then
  18698. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18699. elif test -n "$PKG_CONFIG"; then
  18700. if test -n "$PKG_CONFIG" && \
  18701. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18702. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18703. ac_status=$?
  18704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18705. test $ac_status = 0; }; then
  18706. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18707. else
  18708. pkg_failed=yes
  18709. fi
  18710. else
  18711. pkg_failed=untried
  18712. fi
  18713. if test -n "$LIBGBM_LIBS"; then
  18714. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18715. elif test -n "$PKG_CONFIG"; then
  18716. if test -n "$PKG_CONFIG" && \
  18717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18718. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18719. ac_status=$?
  18720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18721. test $ac_status = 0; }; then
  18722. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18723. else
  18724. pkg_failed=yes
  18725. fi
  18726. else
  18727. pkg_failed=untried
  18728. fi
  18729. if test $pkg_failed = yes; then
  18730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18731. $as_echo "no" >&6; }
  18732. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18733. _pkg_short_errors_supported=yes
  18734. else
  18735. _pkg_short_errors_supported=no
  18736. fi
  18737. if test $_pkg_short_errors_supported = yes; then
  18738. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18739. else
  18740. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18741. fi
  18742. # Put the nasty error message in config.log where it belongs
  18743. echo "$LIBGBM_PKG_ERRORS" >&5
  18744. libgbm_avail=no
  18745. elif test $pkg_failed = untried; then
  18746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18747. $as_echo "no" >&6; }
  18748. libgbm_avail=no
  18749. else
  18750. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18751. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18753. $as_echo "yes" >&6; }
  18754. libgbm_avail=yes
  18755. fi
  18756. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18757. video_kmsdrm=yes
  18758. fi
  18759. if test x$video_kmsdrm = xyes; then
  18760. # Check whether --enable-kmsdrm-shared was given.
  18761. if test "${enable_kmsdrm_shared+set}" = set; then :
  18762. enableval=$enable_kmsdrm_shared;
  18763. else
  18764. enable_kmsdrm_shared=yes
  18765. fi
  18766. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18767. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18768. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18770. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18771. kmsdrm_shared=no
  18772. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18773. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18774. if test x$have_loadso != xyes && \
  18775. test x$enable_kmsdrm_shared = xyes; then
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18777. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18778. fi
  18779. if test x$have_loadso = xyes && \
  18780. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18781. kmsdrm_shared=yes
  18782. cat >>confdefs.h <<_ACEOF
  18783. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18784. _ACEOF
  18785. cat >>confdefs.h <<_ACEOF
  18786. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18787. _ACEOF
  18788. cat >>confdefs.h <<_ACEOF
  18789. #define HAVE_KMSDRM_SHARED "TRUE"
  18790. _ACEOF
  18791. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18792. else
  18793. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18794. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18795. fi
  18796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18797. $as_echo "$kmsdrm_shared" >&6; }
  18798. have_video=yes
  18799. fi
  18800. fi
  18801. }
  18802. CheckDummyVideo()
  18803. {
  18804. # Check whether --enable-video-dummy was given.
  18805. if test "${enable_video_dummy+set}" = set; then :
  18806. enableval=$enable_video_dummy;
  18807. else
  18808. enable_video_dummy=yes
  18809. fi
  18810. if test x$enable_video_dummy = xyes; then
  18811. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18812. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18813. have_video=yes
  18814. SUMMARY_video="${SUMMARY_video} dummy"
  18815. fi
  18816. }
  18817. CheckQNXVideo()
  18818. {
  18819. if test x$enable_video = xyes; then
  18820. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18821. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18822. have_video=yes
  18823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18824. SUMMARY_video="${SUMMARY_video} qnx"
  18825. fi
  18826. }
  18827. CheckQNXAudio()
  18828. {
  18829. if test x$enable_audio = xyes; then
  18830. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18831. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18832. have_audio=yes
  18833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18834. SUMMARY_audio="${SUMMARY_audio} qsa"
  18835. fi
  18836. }
  18837. # Check whether --enable-video-opengl was given.
  18838. if test "${enable_video_opengl+set}" = set; then :
  18839. enableval=$enable_video_opengl;
  18840. else
  18841. enable_video_opengl=yes
  18842. fi
  18843. CheckOpenGLX11()
  18844. {
  18845. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18847. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18848. video_opengl=no
  18849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18850. /* end confdefs.h. */
  18851. #include <GL/gl.h>
  18852. #include <GL/glx.h>
  18853. int
  18854. main ()
  18855. {
  18856. ;
  18857. return 0;
  18858. }
  18859. _ACEOF
  18860. if ac_fn_c_try_compile "$LINENO"; then :
  18861. video_opengl=yes
  18862. fi
  18863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18865. $as_echo "$video_opengl" >&6; }
  18866. if test x$video_opengl = xyes; then
  18867. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18868. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18869. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18870. SUMMARY_video="${SUMMARY_video} opengl"
  18871. fi
  18872. fi
  18873. }
  18874. # Check whether --enable-video-opengles was given.
  18875. if test "${enable_video_opengles+set}" = set; then :
  18876. enableval=$enable_video_opengles;
  18877. else
  18878. enable_video_opengles=yes
  18879. fi
  18880. # Check whether --enable-video-opengles1 was given.
  18881. if test "${enable_video_opengles1+set}" = set; then :
  18882. enableval=$enable_video_opengles1;
  18883. else
  18884. enable_video_opengles1=yes
  18885. fi
  18886. # Check whether --enable-video-opengles2 was given.
  18887. if test "${enable_video_opengles2+set}" = set; then :
  18888. enableval=$enable_video_opengles2;
  18889. else
  18890. enable_video_opengles2=yes
  18891. fi
  18892. CheckOpenGLESX11()
  18893. {
  18894. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18896. $as_echo_n "checking for EGL support... " >&6; }
  18897. video_opengl_egl=no
  18898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18899. /* end confdefs.h. */
  18900. #define LINUX
  18901. #define EGL_API_FB
  18902. #define MESA_EGL_NO_X11_HEADERS
  18903. #include <EGL/egl.h>
  18904. #include <EGL/eglext.h>
  18905. int
  18906. main ()
  18907. {
  18908. ;
  18909. return 0;
  18910. }
  18911. _ACEOF
  18912. if ac_fn_c_try_compile "$LINENO"; then :
  18913. video_opengl_egl=yes
  18914. fi
  18915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18917. $as_echo "$video_opengl_egl" >&6; }
  18918. if test x$video_opengl_egl = xyes; then
  18919. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18920. fi
  18921. if test x$enable_video_opengles1 = xyes; then
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18923. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18924. video_opengles_v1=no
  18925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18926. /* end confdefs.h. */
  18927. #include <GLES/gl.h>
  18928. #include <GLES/glext.h>
  18929. int
  18930. main ()
  18931. {
  18932. ;
  18933. return 0;
  18934. }
  18935. _ACEOF
  18936. if ac_fn_c_try_compile "$LINENO"; then :
  18937. video_opengles_v1=yes
  18938. fi
  18939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18941. $as_echo "$video_opengles_v1" >&6; }
  18942. if test x$video_opengles_v1 = xyes; then
  18943. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18944. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18945. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18946. fi
  18947. fi
  18948. if test x$enable_video_opengles2 = xyes; then
  18949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18950. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18951. video_opengles_v2=no
  18952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18953. /* end confdefs.h. */
  18954. #include <GLES2/gl2.h>
  18955. #include <GLES2/gl2ext.h>
  18956. int
  18957. main ()
  18958. {
  18959. ;
  18960. return 0;
  18961. }
  18962. _ACEOF
  18963. if ac_fn_c_try_compile "$LINENO"; then :
  18964. video_opengles_v2=yes
  18965. fi
  18966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18968. $as_echo "$video_opengles_v2" >&6; }
  18969. if test x$video_opengles_v2 = xyes; then
  18970. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18971. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18972. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18973. fi
  18974. fi
  18975. fi
  18976. }
  18977. CheckWINDOWSGL()
  18978. {
  18979. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18980. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18981. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18982. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18983. SUMMARY_video="${SUMMARY_video} opengl"
  18984. fi
  18985. }
  18986. CheckWINDOWSGLES()
  18987. {
  18988. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18990. $as_echo_n "checking for EGL support... " >&6; }
  18991. video_opengl_egl=no
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. #include <EGL/egl.h>
  18995. int
  18996. main ()
  18997. {
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. if ac_fn_c_try_compile "$LINENO"; then :
  19003. video_opengl_egl=yes
  19004. fi
  19005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19007. $as_echo "$video_opengl_egl" >&6; }
  19008. if test x$video_opengl_egl = xyes; then
  19009. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19010. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19011. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19012. fi
  19013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19014. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19015. video_opengles_v2=no
  19016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19017. /* end confdefs.h. */
  19018. #include <GLES2/gl2.h>
  19019. #include <GLES2/gl2ext.h>
  19020. int
  19021. main ()
  19022. {
  19023. ;
  19024. return 0;
  19025. }
  19026. _ACEOF
  19027. if ac_fn_c_try_compile "$LINENO"; then :
  19028. video_opengles_v2=yes
  19029. fi
  19030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19032. $as_echo "$video_opengles_v2" >&6; }
  19033. if test x$video_opengles_v2 = xyes; then
  19034. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19035. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19036. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19037. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19038. fi
  19039. fi
  19040. }
  19041. CheckHaikuGL()
  19042. {
  19043. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19044. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19045. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19046. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19048. SUMMARY_video="${SUMMARY_video} opengl"
  19049. fi
  19050. }
  19051. CheckMacGL()
  19052. {
  19053. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19054. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19055. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19056. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19057. SUMMARY_video="${SUMMARY_video} opengl"
  19058. fi
  19059. }
  19060. CheckMacGLES()
  19061. {
  19062. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19063. video_opengl_egl=yes
  19064. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19065. video_opengles_v2=yes
  19066. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19067. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19068. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19069. fi
  19070. }
  19071. CheckEmscriptenGLES()
  19072. {
  19073. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19075. $as_echo_n "checking for EGL support... " >&6; }
  19076. video_opengl_egl=no
  19077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19078. /* end confdefs.h. */
  19079. #include <EGL/egl.h>
  19080. int
  19081. main ()
  19082. {
  19083. ;
  19084. return 0;
  19085. }
  19086. _ACEOF
  19087. if ac_fn_c_try_compile "$LINENO"; then :
  19088. video_opengl_egl=yes
  19089. fi
  19090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19092. $as_echo "$video_opengl_egl" >&6; }
  19093. if test x$video_opengl_egl = xyes; then
  19094. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19095. fi
  19096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19097. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19098. video_opengles_v2=no
  19099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19100. /* end confdefs.h. */
  19101. #include <GLES2/gl2.h>
  19102. #include <GLES2/gl2ext.h>
  19103. int
  19104. main ()
  19105. {
  19106. ;
  19107. return 0;
  19108. }
  19109. _ACEOF
  19110. if ac_fn_c_try_compile "$LINENO"; then :
  19111. video_opengles_v2=yes
  19112. fi
  19113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19115. $as_echo "$video_opengles_v2" >&6; }
  19116. if test x$video_opengles_v2 = xyes; then
  19117. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19118. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19119. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19120. fi
  19121. fi
  19122. }
  19123. # Check whether --enable-video-vulkan was given.
  19124. if test "${enable_video_vulkan+set}" = set; then :
  19125. enableval=$enable_video_vulkan;
  19126. else
  19127. enable_video_vulkan=yes
  19128. fi
  19129. CheckVulkan()
  19130. {
  19131. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19132. case "$host" in
  19133. *-*-android*)
  19134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19135. /* end confdefs.h. */
  19136. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19137. #error Vulkan doesn't work on this configuration
  19138. #endif
  19139. int
  19140. main ()
  19141. {
  19142. ;
  19143. return 0;
  19144. }
  19145. _ACEOF
  19146. if ac_fn_c_try_compile "$LINENO"; then :
  19147. else
  19148. enable_video_vulkan=no
  19149. fi
  19150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19151. ;;
  19152. *-*-darwin*)
  19153. save_CFLAGS="$CFLAGS"
  19154. CFLAGS="$CFLAGS -x objective-c"
  19155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19156. /* end confdefs.h. */
  19157. #include <Cocoa/Cocoa.h>
  19158. #include <Metal/Metal.h>
  19159. #include <QuartzCore/CAMetalLayer.h>
  19160. #if !TARGET_CPU_X86_64
  19161. #error Vulkan doesn't work on this configuration
  19162. #endif
  19163. int
  19164. main ()
  19165. {
  19166. ;
  19167. return 0;
  19168. }
  19169. _ACEOF
  19170. if ac_fn_c_try_compile "$LINENO"; then :
  19171. else
  19172. enable_video_vulkan=no
  19173. fi
  19174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19175. CFLAGS="$save_CFLAGS"
  19176. ;;
  19177. *)
  19178. ;;
  19179. esac
  19180. if test x$enable_video_vulkan = xno; then
  19181. # For reasons I am totally unable to see, I get an undefined macro error if
  19182. # I put this in the AC_TRY_COMPILE.
  19183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19184. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19185. fi
  19186. fi
  19187. if test x$enable_video_vulkan = xyes; then
  19188. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19189. SUMMARY_video="${SUMMARY_video} vulkan"
  19190. fi
  19191. }
  19192. CheckInputEvents()
  19193. {
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19195. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19196. use_input_events=no
  19197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19198. /* end confdefs.h. */
  19199. #include <linux/input.h>
  19200. int
  19201. main ()
  19202. {
  19203. #ifndef EVIOCGNAME
  19204. #error EVIOCGNAME() ioctl not available
  19205. #endif
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. if ac_fn_c_try_compile "$LINENO"; then :
  19211. use_input_events=yes
  19212. fi
  19213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19215. $as_echo "$use_input_events" >&6; }
  19216. if test x$use_input_events = xyes; then
  19217. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19218. SUMMARY_input="${SUMMARY_input} linuxev"
  19219. fi
  19220. }
  19221. CheckInputKD()
  19222. {
  19223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19224. $as_echo_n "checking for Linux kd.h... " >&6; }
  19225. use_input_kd=no
  19226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19227. /* end confdefs.h. */
  19228. #include <linux/kd.h>
  19229. #include <linux/keyboard.h>
  19230. int
  19231. main ()
  19232. {
  19233. struct kbentry kbe;
  19234. kbe.kb_table = KG_CTRL;
  19235. ioctl(0, KDGKBENT, &kbe);
  19236. ;
  19237. return 0;
  19238. }
  19239. _ACEOF
  19240. if ac_fn_c_try_compile "$LINENO"; then :
  19241. use_input_kd=yes
  19242. fi
  19243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19245. $as_echo "$use_input_kd" >&6; }
  19246. if test x$use_input_kd = xyes; then
  19247. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19248. SUMMARY_input="${SUMMARY_input} linuxkd"
  19249. fi
  19250. }
  19251. CheckLibUDev()
  19252. {
  19253. # Check whether --enable-libudev was given.
  19254. if test "${enable_libudev+set}" = set; then :
  19255. enableval=$enable_libudev;
  19256. else
  19257. enable_libudev=yes
  19258. fi
  19259. if test x$enable_libudev = xyes; then
  19260. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19261. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19262. have_libudev_h_hdr=yes
  19263. else
  19264. have_libudev_h_hdr=no
  19265. fi
  19266. if test x$have_libudev_h_hdr = xyes; then
  19267. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19268. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19269. if test x$udev_lib != x; then
  19270. echo "-- dynamic udev -> $udev_lib"
  19271. cat >>confdefs.h <<_ACEOF
  19272. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19273. _ACEOF
  19274. fi
  19275. fi
  19276. fi
  19277. }
  19278. CheckDBus()
  19279. {
  19280. # Check whether --enable-dbus was given.
  19281. if test "${enable_dbus+set}" = set; then :
  19282. enableval=$enable_dbus;
  19283. else
  19284. enable_dbus=yes
  19285. fi
  19286. if test x$enable_dbus = xyes; then
  19287. pkg_failed=no
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19289. $as_echo_n "checking for DBUS... " >&6; }
  19290. if test -n "$DBUS_CFLAGS"; then
  19291. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19292. elif test -n "$PKG_CONFIG"; then
  19293. if test -n "$PKG_CONFIG" && \
  19294. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19295. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19296. ac_status=$?
  19297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19298. test $ac_status = 0; }; then
  19299. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19300. else
  19301. pkg_failed=yes
  19302. fi
  19303. else
  19304. pkg_failed=untried
  19305. fi
  19306. if test -n "$DBUS_LIBS"; then
  19307. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19308. elif test -n "$PKG_CONFIG"; then
  19309. if test -n "$PKG_CONFIG" && \
  19310. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19311. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19312. ac_status=$?
  19313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19314. test $ac_status = 0; }; then
  19315. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19316. else
  19317. pkg_failed=yes
  19318. fi
  19319. else
  19320. pkg_failed=untried
  19321. fi
  19322. if test $pkg_failed = yes; then
  19323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19324. $as_echo "no" >&6; }
  19325. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19326. _pkg_short_errors_supported=yes
  19327. else
  19328. _pkg_short_errors_supported=no
  19329. fi
  19330. if test $_pkg_short_errors_supported = yes; then
  19331. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19332. else
  19333. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19334. fi
  19335. # Put the nasty error message in config.log where it belongs
  19336. echo "$DBUS_PKG_ERRORS" >&5
  19337. have_dbus=no
  19338. elif test $pkg_failed = untried; then
  19339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19340. $as_echo "no" >&6; }
  19341. have_dbus=no
  19342. else
  19343. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19344. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19346. $as_echo "yes" >&6; }
  19347. have_dbus=yes
  19348. fi
  19349. save_CFLAGS="$CFLAGS"
  19350. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19351. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19352. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19353. have_dbus_dbus_h_hdr=yes
  19354. else
  19355. have_dbus_dbus_h_hdr=no
  19356. fi
  19357. CFLAGS="$save_CFLAGS"
  19358. if test x$have_dbus_dbus_h_hdr = xyes; then
  19359. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19360. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19361. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19362. fi
  19363. fi
  19364. }
  19365. CheckIME()
  19366. {
  19367. # Check whether --enable-ime was given.
  19368. if test "${enable_ime+set}" = set; then :
  19369. enableval=$enable_ime;
  19370. else
  19371. enable_ime=yes
  19372. fi
  19373. if test x$enable_ime = xyes; then
  19374. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19375. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19376. fi
  19377. }
  19378. CheckIBus()
  19379. {
  19380. # Check whether --enable-ibus was given.
  19381. if test "${enable_ibus+set}" = set; then :
  19382. enableval=$enable_ibus;
  19383. else
  19384. enable_ibus=yes
  19385. fi
  19386. if test x$enable_ibus = xyes; then
  19387. pkg_failed=no
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19389. $as_echo_n "checking for IBUS... " >&6; }
  19390. if test -n "$IBUS_CFLAGS"; then
  19391. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19392. elif test -n "$PKG_CONFIG"; then
  19393. if test -n "$PKG_CONFIG" && \
  19394. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19395. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19396. ac_status=$?
  19397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19398. test $ac_status = 0; }; then
  19399. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19400. else
  19401. pkg_failed=yes
  19402. fi
  19403. else
  19404. pkg_failed=untried
  19405. fi
  19406. if test -n "$IBUS_LIBS"; then
  19407. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19408. elif test -n "$PKG_CONFIG"; then
  19409. if test -n "$PKG_CONFIG" && \
  19410. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19411. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19412. ac_status=$?
  19413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19414. test $ac_status = 0; }; then
  19415. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19416. else
  19417. pkg_failed=yes
  19418. fi
  19419. else
  19420. pkg_failed=untried
  19421. fi
  19422. if test $pkg_failed = yes; then
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19424. $as_echo "no" >&6; }
  19425. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19426. _pkg_short_errors_supported=yes
  19427. else
  19428. _pkg_short_errors_supported=no
  19429. fi
  19430. if test $_pkg_short_errors_supported = yes; then
  19431. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19432. else
  19433. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19434. fi
  19435. # Put the nasty error message in config.log where it belongs
  19436. echo "$IBUS_PKG_ERRORS" >&5
  19437. have_ibus=no
  19438. elif test $pkg_failed = untried; then
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19440. $as_echo "no" >&6; }
  19441. have_ibus=no
  19442. else
  19443. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19444. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19446. $as_echo "yes" >&6; }
  19447. have_ibus=yes
  19448. fi
  19449. save_CFLAGS="$CFLAGS"
  19450. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19451. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19452. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19453. have_ibus_ibus_h_hdr=yes
  19454. else
  19455. have_ibus_ibus_h_hdr=no
  19456. fi
  19457. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19458. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19459. have_inotify_inotify_h_hdr=yes
  19460. else
  19461. have_inotify_inotify_h_hdr=no
  19462. fi
  19463. CFLAGS="$save_CFLAGS"
  19464. if test x$have_ibus_ibus_h_hdr = xyes; then
  19465. if test x$enable_ime != xyes; then
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19467. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19468. have_ibus_ibus_h_hdr=no
  19469. elif test x$enable_dbus != xyes; then
  19470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19471. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19472. have_ibus_ibus_h_hdr=no
  19473. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19475. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19476. have_ibus_ibus_h_hdr=no
  19477. else
  19478. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19479. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19480. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19481. fi
  19482. fi
  19483. fi
  19484. }
  19485. CheckFcitx()
  19486. {
  19487. # Check whether --enable-fcitx was given.
  19488. if test "${enable_fcitx+set}" = set; then :
  19489. enableval=$enable_fcitx;
  19490. else
  19491. enable_fcitx=yes
  19492. fi
  19493. if test x$enable_fcitx = xyes; then
  19494. pkg_failed=no
  19495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19496. $as_echo_n "checking for FCITX... " >&6; }
  19497. if test -n "$FCITX_CFLAGS"; then
  19498. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19499. elif test -n "$PKG_CONFIG"; then
  19500. if test -n "$PKG_CONFIG" && \
  19501. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19502. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19503. ac_status=$?
  19504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19505. test $ac_status = 0; }; then
  19506. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19507. else
  19508. pkg_failed=yes
  19509. fi
  19510. else
  19511. pkg_failed=untried
  19512. fi
  19513. if test -n "$FCITX_LIBS"; then
  19514. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19515. elif test -n "$PKG_CONFIG"; then
  19516. if test -n "$PKG_CONFIG" && \
  19517. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19518. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19519. ac_status=$?
  19520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19521. test $ac_status = 0; }; then
  19522. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19523. else
  19524. pkg_failed=yes
  19525. fi
  19526. else
  19527. pkg_failed=untried
  19528. fi
  19529. if test $pkg_failed = yes; then
  19530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. $as_echo "no" >&6; }
  19532. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19533. _pkg_short_errors_supported=yes
  19534. else
  19535. _pkg_short_errors_supported=no
  19536. fi
  19537. if test $_pkg_short_errors_supported = yes; then
  19538. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19539. else
  19540. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19541. fi
  19542. # Put the nasty error message in config.log where it belongs
  19543. echo "$FCITX_PKG_ERRORS" >&5
  19544. have_fcitx=no
  19545. elif test $pkg_failed = untried; then
  19546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19547. $as_echo "no" >&6; }
  19548. have_fcitx=no
  19549. else
  19550. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19551. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19553. $as_echo "yes" >&6; }
  19554. have_fcitx=yes
  19555. fi
  19556. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19557. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19558. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19559. have_fcitx_frontend_h_hdr=yes
  19560. else
  19561. have_fcitx_frontend_h_hdr=no
  19562. fi
  19563. CFLAGS="$save_CFLAGS"
  19564. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19565. if test x$enable_ime != xyes; then
  19566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19567. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19568. have_fcitx_frontend_h_hdr=no
  19569. elif test x$enable_dbus != xyes; then
  19570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19571. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19572. have_fcitx_frontend_h_hdr=no
  19573. else
  19574. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19575. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19576. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19577. fi
  19578. fi
  19579. fi
  19580. }
  19581. CheckTslib()
  19582. {
  19583. # Check whether --enable-input-tslib was given.
  19584. if test "${enable_input_tslib+set}" = set; then :
  19585. enableval=$enable_input_tslib;
  19586. else
  19587. enable_input_tslib=yes
  19588. fi
  19589. if test x$enable_input_tslib = xyes; then
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19591. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19592. enable_input_tslib=no
  19593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19594. /* end confdefs.h. */
  19595. #include "tslib.h"
  19596. int
  19597. main ()
  19598. {
  19599. ;
  19600. return 0;
  19601. }
  19602. _ACEOF
  19603. if ac_fn_c_try_compile "$LINENO"; then :
  19604. enable_input_tslib=yes
  19605. fi
  19606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19608. $as_echo "$enable_input_tslib" >&6; }
  19609. if test x$enable_input_tslib = xyes; then
  19610. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19612. SUMMARY_input="${SUMMARY_input} ts"
  19613. fi
  19614. fi
  19615. }
  19616. CheckPTHREAD()
  19617. {
  19618. # Check whether --enable-pthreads was given.
  19619. if test "${enable_pthreads+set}" = set; then :
  19620. enableval=$enable_pthreads;
  19621. else
  19622. enable_pthreads=yes
  19623. fi
  19624. # Check whether --enable-pthread-sem was given.
  19625. if test "${enable_pthread_sem+set}" = set; then :
  19626. enableval=$enable_pthread_sem;
  19627. else
  19628. enable_pthread_sem=yes
  19629. fi
  19630. case "$host" in
  19631. *-*-android*)
  19632. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19633. pthread_lib=""
  19634. ;;
  19635. *-*-linux*|*-*-uclinux*)
  19636. pthread_cflags="-D_REENTRANT"
  19637. pthread_lib="-lpthread"
  19638. ;;
  19639. *-*-bsdi*)
  19640. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19641. pthread_lib=""
  19642. ;;
  19643. *-*-darwin*)
  19644. pthread_cflags="-D_THREAD_SAFE"
  19645. # causes Carbon.p complaints?
  19646. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19647. ;;
  19648. *-*-freebsd*|*-*-dragonfly*)
  19649. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19650. pthread_lib="-pthread"
  19651. ;;
  19652. *-*-netbsd*)
  19653. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19654. pthread_lib="-lpthread"
  19655. ;;
  19656. *-*-openbsd*)
  19657. pthread_cflags="-D_REENTRANT"
  19658. pthread_lib="-pthread"
  19659. ;;
  19660. *-*-solaris2.9)
  19661. # From Solaris 9+, posix4's preferred name is rt.
  19662. pthread_cflags="-D_REENTRANT"
  19663. pthread_lib="-lpthread -lrt"
  19664. ;;
  19665. *-*-solaris2.10)
  19666. # Solaris 10+ merged pthread into libc.
  19667. pthread_cflags="-D_REENTRANT"
  19668. pthread_lib="-lrt"
  19669. ;;
  19670. *-*-solaris*)
  19671. # Solaris 11+ merged rt into libc.
  19672. pthread_cflags="-D_REENTRANT"
  19673. pthread_lib=""
  19674. ;;
  19675. *-*-sysv5*)
  19676. pthread_cflags="-D_REENTRANT -Kthread"
  19677. pthread_lib=""
  19678. ;;
  19679. *-*-aix*)
  19680. pthread_cflags="-D_REENTRANT -mthreads"
  19681. pthread_lib="-lpthread"
  19682. ;;
  19683. *-*-hpux11*)
  19684. pthread_cflags="-D_REENTRANT"
  19685. pthread_lib="-L/usr/lib -lpthread"
  19686. ;;
  19687. *-*-haiku*)
  19688. pthread_cflags="-D_REENTRANT"
  19689. pthread_lib=""
  19690. ;;
  19691. *-*-nto*)
  19692. pthread_cflags="-D_REENTRANT"
  19693. pthread_lib=""
  19694. ;;
  19695. *)
  19696. pthread_cflags="-D_REENTRANT"
  19697. pthread_lib="-lpthread"
  19698. ;;
  19699. esac
  19700. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19701. # Save the original compiler flags and libraries
  19702. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19703. # Add the pthread compiler flags and libraries
  19704. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19705. # Check to see if we have pthread support on this system
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19707. $as_echo_n "checking for pthreads... " >&6; }
  19708. use_pthreads=no
  19709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19710. /* end confdefs.h. */
  19711. #include <pthread.h>
  19712. int
  19713. main ()
  19714. {
  19715. pthread_attr_t type;
  19716. pthread_attr_init(&type);
  19717. ;
  19718. return 0;
  19719. }
  19720. _ACEOF
  19721. if ac_fn_c_try_link "$LINENO"; then :
  19722. use_pthreads=yes
  19723. fi
  19724. rm -f core conftest.err conftest.$ac_objext \
  19725. conftest$ac_exeext conftest.$ac_ext
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19727. $as_echo "$use_pthreads" >&6; }
  19728. # Restore the compiler flags and libraries
  19729. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19730. # Do futher testing if we have pthread support...
  19731. if test x$use_pthreads = xyes; then
  19732. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19733. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19735. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19736. # Save the original compiler flags and libraries
  19737. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19738. # Add the pthread compiler flags and libraries
  19739. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19740. # Check to see if recursive mutexes are available
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19742. $as_echo_n "checking for recursive mutexes... " >&6; }
  19743. has_recursive_mutexes=no
  19744. if test x$has_recursive_mutexes = xno; then
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. #define _GNU_SOURCE 1
  19748. #include <pthread.h>
  19749. int
  19750. main ()
  19751. {
  19752. pthread_mutexattr_t attr;
  19753. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19754. ;
  19755. return 0;
  19756. }
  19757. _ACEOF
  19758. if ac_fn_c_try_link "$LINENO"; then :
  19759. has_recursive_mutexes=yes
  19760. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19761. fi
  19762. rm -f core conftest.err conftest.$ac_objext \
  19763. conftest$ac_exeext conftest.$ac_ext
  19764. fi
  19765. if test x$has_recursive_mutexes = xno; then
  19766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19767. /* end confdefs.h. */
  19768. #define _GNU_SOURCE 1
  19769. #include <pthread.h>
  19770. int
  19771. main ()
  19772. {
  19773. pthread_mutexattr_t attr;
  19774. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19775. ;
  19776. return 0;
  19777. }
  19778. _ACEOF
  19779. if ac_fn_c_try_link "$LINENO"; then :
  19780. has_recursive_mutexes=yes
  19781. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19782. fi
  19783. rm -f core conftest.err conftest.$ac_objext \
  19784. conftest$ac_exeext conftest.$ac_ext
  19785. fi
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19787. $as_echo "$has_recursive_mutexes" >&6; }
  19788. # Check to see if pthread semaphore support is missing
  19789. if test x$enable_pthread_sem = xyes; then
  19790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19791. $as_echo_n "checking for pthread semaphores... " >&6; }
  19792. have_pthread_sem=no
  19793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19794. /* end confdefs.h. */
  19795. #include <pthread.h>
  19796. #include <semaphore.h>
  19797. int
  19798. main ()
  19799. {
  19800. ;
  19801. return 0;
  19802. }
  19803. _ACEOF
  19804. if ac_fn_c_try_compile "$LINENO"; then :
  19805. have_pthread_sem=yes
  19806. fi
  19807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19809. $as_echo "$have_pthread_sem" >&6; }
  19810. fi
  19811. if test x$have_pthread_sem = xyes; then
  19812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19813. $as_echo_n "checking for sem_timedwait... " >&6; }
  19814. have_sem_timedwait=no
  19815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19816. /* end confdefs.h. */
  19817. #include <pthread.h>
  19818. #include <semaphore.h>
  19819. int
  19820. main ()
  19821. {
  19822. sem_timedwait(NULL, NULL);
  19823. ;
  19824. return 0;
  19825. }
  19826. _ACEOF
  19827. if ac_fn_c_try_link "$LINENO"; then :
  19828. have_sem_timedwait=yes
  19829. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19830. fi
  19831. rm -f core conftest.err conftest.$ac_objext \
  19832. conftest$ac_exeext conftest.$ac_ext
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19834. $as_echo "$have_sem_timedwait" >&6; }
  19835. fi
  19836. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19837. "
  19838. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19839. have_pthread_np_h=yes
  19840. else
  19841. have_pthread_np_h=no
  19842. fi
  19843. if test x$have_pthread_np_h = xyes; then
  19844. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19845. fi
  19846. # Check to see if pthread naming is available
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19848. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19850. /* end confdefs.h. */
  19851. /* Override any GCC internal prototype to avoid an error.
  19852. Use char because int might match the return type of a GCC
  19853. builtin and then its argument prototype would still apply. */
  19854. #ifdef __cplusplus
  19855. extern "C"
  19856. #endif
  19857. char pthread_setname_np ();
  19858. int
  19859. main ()
  19860. {
  19861. return pthread_setname_np ();
  19862. ;
  19863. return 0;
  19864. }
  19865. _ACEOF
  19866. if ac_fn_c_try_link "$LINENO"; then :
  19867. has_pthread_setname_np=yes
  19868. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19869. else
  19870. has_pthread_setname_np=no
  19871. fi
  19872. rm -f core conftest.err conftest.$ac_objext \
  19873. conftest$ac_exeext conftest.$ac_ext
  19874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19875. $as_echo "$has_pthread_setname_np" >&6; }
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19877. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19879. /* end confdefs.h. */
  19880. /* Override any GCC internal prototype to avoid an error.
  19881. Use char because int might match the return type of a GCC
  19882. builtin and then its argument prototype would still apply. */
  19883. #ifdef __cplusplus
  19884. extern "C"
  19885. #endif
  19886. char pthread_set_name_np ();
  19887. int
  19888. main ()
  19889. {
  19890. return pthread_set_name_np ();
  19891. ;
  19892. return 0;
  19893. }
  19894. _ACEOF
  19895. if ac_fn_c_try_link "$LINENO"; then :
  19896. has_pthread_set_name_np=yes
  19897. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19898. else
  19899. has_pthread_set_name_np=no
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext \
  19902. conftest$ac_exeext conftest.$ac_ext
  19903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19904. $as_echo "$has_pthread_set_name_np" >&6; }
  19905. # Restore the compiler flags and libraries
  19906. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19907. # Basic thread creation functions
  19908. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19909. # Semaphores
  19910. # We can fake these with mutexes and condition variables if necessary
  19911. if test x$have_pthread_sem = xyes; then
  19912. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19913. else
  19914. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19915. fi
  19916. # Mutexes
  19917. # We can fake these with semaphores if necessary
  19918. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19919. # Condition variables
  19920. # We can fake these with semaphores and mutexes if necessary
  19921. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19922. # Thread local storage
  19923. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19924. have_threads=yes
  19925. fi
  19926. fi
  19927. }
  19928. CheckWINDOWS()
  19929. {
  19930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19931. $as_echo_n "checking Windows compiler... " >&6; }
  19932. have_win32_gcc=no
  19933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19934. /* end confdefs.h. */
  19935. #include <windows.h>
  19936. int
  19937. main ()
  19938. {
  19939. ;
  19940. return 0;
  19941. }
  19942. _ACEOF
  19943. if ac_fn_c_try_compile "$LINENO"; then :
  19944. have_win32_gcc=yes
  19945. fi
  19946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19948. $as_echo "$have_win32_gcc" >&6; }
  19949. if test x$have_win32_gcc != xyes; then
  19950. as_fn_error $? "
  19951. *** Your compiler ($CC) does not produce Windows executables!
  19952. " "$LINENO" 5
  19953. fi
  19954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19955. $as_echo_n "checking Windows CE... " >&6; }
  19956. have_wince=no
  19957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19958. /* end confdefs.h. */
  19959. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19960. #error This is not Windows CE
  19961. #endif
  19962. int
  19963. main ()
  19964. {
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. if ac_fn_c_try_compile "$LINENO"; then :
  19970. have_wince=yes
  19971. as_fn_error $? "
  19972. *** Sorry, Windows CE is no longer supported.
  19973. " "$LINENO" 5
  19974. fi
  19975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19977. $as_echo "$have_wince" >&6; }
  19978. # This fixes Windows stack alignment with newer GCC
  19979. CheckStackBoundary
  19980. }
  19981. CheckDIRECTX()
  19982. {
  19983. # Check whether --enable-directx was given.
  19984. if test "${enable_directx+set}" = set; then :
  19985. enableval=$enable_directx;
  19986. else
  19987. enable_directx=yes
  19988. fi
  19989. if test x$enable_directx = xyes; then
  19990. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19991. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19992. have_d3d=yes
  19993. fi
  19994. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19995. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19996. have_d3d11=yes
  19997. fi
  19998. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19999. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20000. have_ddraw=yes
  20001. fi
  20002. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20003. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20004. have_dsound=yes
  20005. fi
  20006. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20007. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20008. have_dinput=yes
  20009. fi
  20010. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20011. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20012. have_dxgi=yes
  20013. fi
  20014. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20015. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20016. have_xinput=yes
  20017. fi
  20018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20019. /* end confdefs.h. */
  20020. #include <windows.h>
  20021. #include <xinput.h>
  20022. XINPUT_GAMEPAD_EX x1;
  20023. int
  20024. main ()
  20025. {
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. if ac_fn_c_try_compile "$LINENO"; then :
  20031. have_xinput_gamepadex=yes
  20032. fi
  20033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20035. /* end confdefs.h. */
  20036. #include <windows.h>
  20037. #include <xinput.h>
  20038. XINPUT_STATE_EX s1;
  20039. int
  20040. main ()
  20041. {
  20042. ;
  20043. return 0;
  20044. }
  20045. _ACEOF
  20046. if ac_fn_c_try_compile "$LINENO"; then :
  20047. have_xinput_stateex=yes
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20050. if test x$have_ddraw = xyes; then
  20051. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20052. fi
  20053. if test x$have_dinput = xyes; then
  20054. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20055. fi
  20056. if test x$have_dsound = xyes; then
  20057. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20058. fi
  20059. if test x$have_dxgi = xyes; then
  20060. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20061. fi
  20062. if test x$have_xinput = xyes; then
  20063. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20064. fi
  20065. if test x$have_xinput_gamepadex = xyes; then
  20066. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20067. fi
  20068. if test x$have_xinput_stateex = xyes; then
  20069. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20070. fi
  20071. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20072. # FIXME: ...so force it off for now.
  20073. case "$host" in
  20074. *-*-cygwin*)
  20075. have_dinput=false
  20076. ;;
  20077. esac
  20078. fi
  20079. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20080. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20081. have_wasapi=yes
  20082. fi
  20083. if test x$have_wasapi = xyes; then
  20084. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20085. fi
  20086. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20087. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20088. else
  20089. have_wasapi=no
  20090. fi
  20091. if test x$have_wasapi = xyes; then
  20092. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20093. fi
  20094. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  20095. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  20096. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  20097. fi
  20098. # Check whether --enable-wasapi was given.
  20099. if test "${enable_wasapi+set}" = set; then :
  20100. enableval=$enable_wasapi;
  20101. else
  20102. enable_wasapi=yes
  20103. fi
  20104. }
  20105. CheckDLOPEN()
  20106. {
  20107. # Check whether --enable-sdl-dlopen was given.
  20108. if test "${enable_sdl_dlopen+set}" = set; then :
  20109. enableval=$enable_sdl_dlopen;
  20110. else
  20111. enable_sdl_dlopen=yes
  20112. fi
  20113. if test x$enable_sdl_dlopen = xyes; then
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20115. $as_echo_n "checking for dlopen... " >&6; }
  20116. have_dlopen=no
  20117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20118. /* end confdefs.h. */
  20119. #include <dlfcn.h>
  20120. int
  20121. main ()
  20122. {
  20123. void *handle = dlopen("", RTLD_NOW);
  20124. const char *loaderror = (char *) dlerror();
  20125. ;
  20126. return 0;
  20127. }
  20128. _ACEOF
  20129. if ac_fn_c_try_compile "$LINENO"; then :
  20130. have_dlopen=yes
  20131. fi
  20132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20134. $as_echo "$have_dlopen" >&6; }
  20135. if test x$have_dlopen = xyes; then
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20137. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20138. if ${ac_cv_lib_c_dlopen+:} false; then :
  20139. $as_echo_n "(cached) " >&6
  20140. else
  20141. ac_check_lib_save_LIBS=$LIBS
  20142. LIBS="-lc $LIBS"
  20143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20144. /* end confdefs.h. */
  20145. /* Override any GCC internal prototype to avoid an error.
  20146. Use char because int might match the return type of a GCC
  20147. builtin and then its argument prototype would still apply. */
  20148. #ifdef __cplusplus
  20149. extern "C"
  20150. #endif
  20151. char dlopen ();
  20152. int
  20153. main ()
  20154. {
  20155. return dlopen ();
  20156. ;
  20157. return 0;
  20158. }
  20159. _ACEOF
  20160. if ac_fn_c_try_link "$LINENO"; then :
  20161. ac_cv_lib_c_dlopen=yes
  20162. else
  20163. ac_cv_lib_c_dlopen=no
  20164. fi
  20165. rm -f core conftest.err conftest.$ac_objext \
  20166. conftest$ac_exeext conftest.$ac_ext
  20167. LIBS=$ac_check_lib_save_LIBS
  20168. fi
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20170. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20171. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20173. else
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20175. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20176. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20177. $as_echo_n "(cached) " >&6
  20178. else
  20179. ac_check_lib_save_LIBS=$LIBS
  20180. LIBS="-ldl $LIBS"
  20181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20182. /* end confdefs.h. */
  20183. /* Override any GCC internal prototype to avoid an error.
  20184. Use char because int might match the return type of a GCC
  20185. builtin and then its argument prototype would still apply. */
  20186. #ifdef __cplusplus
  20187. extern "C"
  20188. #endif
  20189. char dlopen ();
  20190. int
  20191. main ()
  20192. {
  20193. return dlopen ();
  20194. ;
  20195. return 0;
  20196. }
  20197. _ACEOF
  20198. if ac_fn_c_try_link "$LINENO"; then :
  20199. ac_cv_lib_dl_dlopen=yes
  20200. else
  20201. ac_cv_lib_dl_dlopen=no
  20202. fi
  20203. rm -f core conftest.err conftest.$ac_objext \
  20204. conftest$ac_exeext conftest.$ac_ext
  20205. LIBS=$ac_check_lib_save_LIBS
  20206. fi
  20207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20208. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20209. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20211. else
  20212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20213. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20214. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20215. $as_echo_n "(cached) " >&6
  20216. else
  20217. ac_check_lib_save_LIBS=$LIBS
  20218. LIBS="-lltdl $LIBS"
  20219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20220. /* end confdefs.h. */
  20221. /* Override any GCC internal prototype to avoid an error.
  20222. Use char because int might match the return type of a GCC
  20223. builtin and then its argument prototype would still apply. */
  20224. #ifdef __cplusplus
  20225. extern "C"
  20226. #endif
  20227. char dlopen ();
  20228. int
  20229. main ()
  20230. {
  20231. return dlopen ();
  20232. ;
  20233. return 0;
  20234. }
  20235. _ACEOF
  20236. if ac_fn_c_try_link "$LINENO"; then :
  20237. ac_cv_lib_ltdl_dlopen=yes
  20238. else
  20239. ac_cv_lib_ltdl_dlopen=no
  20240. fi
  20241. rm -f core conftest.err conftest.$ac_objext \
  20242. conftest$ac_exeext conftest.$ac_ext
  20243. LIBS=$ac_check_lib_save_LIBS
  20244. fi
  20245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20246. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20247. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20248. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20249. fi
  20250. fi
  20251. fi
  20252. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20254. have_loadso=yes
  20255. fi
  20256. fi
  20257. }
  20258. CheckUSBHID()
  20259. {
  20260. case "$host" in
  20261. *-*-*bsd*)
  20262. if test x$enable_joystick = xyes; then
  20263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20264. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20265. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20266. $as_echo_n "(cached) " >&6
  20267. else
  20268. ac_check_lib_save_LIBS=$LIBS
  20269. LIBS="-lusbhid $LIBS"
  20270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20271. /* end confdefs.h. */
  20272. /* Override any GCC internal prototype to avoid an error.
  20273. Use char because int might match the return type of a GCC
  20274. builtin and then its argument prototype would still apply. */
  20275. #ifdef __cplusplus
  20276. extern "C"
  20277. #endif
  20278. char hid_init ();
  20279. int
  20280. main ()
  20281. {
  20282. return hid_init ();
  20283. ;
  20284. return 0;
  20285. }
  20286. _ACEOF
  20287. if ac_fn_c_try_link "$LINENO"; then :
  20288. ac_cv_lib_usbhid_hid_init=yes
  20289. else
  20290. ac_cv_lib_usbhid_hid_init=no
  20291. fi
  20292. rm -f core conftest.err conftest.$ac_objext \
  20293. conftest$ac_exeext conftest.$ac_ext
  20294. LIBS=$ac_check_lib_save_LIBS
  20295. fi
  20296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20297. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20298. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20299. have_libusbhid=yes
  20300. fi
  20301. if test x$have_libusbhid = xyes; then
  20302. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20303. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20304. USB_CFLAGS="-DHAVE_USBHID_H"
  20305. fi
  20306. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20307. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20308. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20309. fi
  20310. USB_LIBS="$USB_LIBS -lusbhid"
  20311. else
  20312. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20313. if test "x$ac_cv_header_usb_h" = xyes; then :
  20314. USB_CFLAGS="-DHAVE_USB_H"
  20315. fi
  20316. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20317. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20318. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20319. fi
  20320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20321. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20322. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20323. $as_echo_n "(cached) " >&6
  20324. else
  20325. ac_check_lib_save_LIBS=$LIBS
  20326. LIBS="-lusb $LIBS"
  20327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20328. /* end confdefs.h. */
  20329. /* Override any GCC internal prototype to avoid an error.
  20330. Use char because int might match the return type of a GCC
  20331. builtin and then its argument prototype would still apply. */
  20332. #ifdef __cplusplus
  20333. extern "C"
  20334. #endif
  20335. char hid_init ();
  20336. int
  20337. main ()
  20338. {
  20339. return hid_init ();
  20340. ;
  20341. return 0;
  20342. }
  20343. _ACEOF
  20344. if ac_fn_c_try_link "$LINENO"; then :
  20345. ac_cv_lib_usb_hid_init=yes
  20346. else
  20347. ac_cv_lib_usb_hid_init=no
  20348. fi
  20349. rm -f core conftest.err conftest.$ac_objext \
  20350. conftest$ac_exeext conftest.$ac_ext
  20351. LIBS=$ac_check_lib_save_LIBS
  20352. fi
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20354. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20355. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20356. USB_LIBS="$USB_LIBS -lusb"
  20357. fi
  20358. fi
  20359. save_CFLAGS="$CFLAGS"
  20360. CFLAGS="$CFLAGS $USB_CFLAGS"
  20361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20362. $as_echo_n "checking for usbhid... " >&6; }
  20363. have_usbhid=no
  20364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20365. /* end confdefs.h. */
  20366. #include <sys/types.h>
  20367. #if defined(HAVE_USB_H)
  20368. #include <usb.h>
  20369. #endif
  20370. #ifdef __DragonFly__
  20371. # include <bus/usb/usb.h>
  20372. # include <bus/usb/usbhid.h>
  20373. #else
  20374. # include <dev/usb/usb.h>
  20375. # include <dev/usb/usbhid.h>
  20376. #endif
  20377. #if defined(HAVE_USBHID_H)
  20378. #include <usbhid.h>
  20379. #elif defined(HAVE_LIBUSB_H)
  20380. #include <libusb.h>
  20381. #elif defined(HAVE_LIBUSBHID_H)
  20382. #include <libusbhid.h>
  20383. #endif
  20384. int
  20385. main ()
  20386. {
  20387. struct report_desc *repdesc;
  20388. struct usb_ctl_report *repbuf;
  20389. hid_kind_t hidkind;
  20390. ;
  20391. return 0;
  20392. }
  20393. _ACEOF
  20394. if ac_fn_c_try_compile "$LINENO"; then :
  20395. have_usbhid=yes
  20396. fi
  20397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20399. $as_echo "$have_usbhid" >&6; }
  20400. if test x$have_usbhid = xyes; then
  20401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20402. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20403. have_usbhid_ucr_data=no
  20404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20405. /* end confdefs.h. */
  20406. #include <sys/types.h>
  20407. #if defined(HAVE_USB_H)
  20408. #include <usb.h>
  20409. #endif
  20410. #ifdef __DragonFly__
  20411. # include <bus/usb/usb.h>
  20412. # include <bus/usb/usbhid.h>
  20413. #else
  20414. # include <dev/usb/usb.h>
  20415. # include <dev/usb/usbhid.h>
  20416. #endif
  20417. #if defined(HAVE_USBHID_H)
  20418. #include <usbhid.h>
  20419. #elif defined(HAVE_LIBUSB_H)
  20420. #include <libusb.h>
  20421. #elif defined(HAVE_LIBUSBHID_H)
  20422. #include <libusbhid.h>
  20423. #endif
  20424. int
  20425. main ()
  20426. {
  20427. struct usb_ctl_report buf;
  20428. if (buf.ucr_data) { }
  20429. ;
  20430. return 0;
  20431. }
  20432. _ACEOF
  20433. if ac_fn_c_try_compile "$LINENO"; then :
  20434. have_usbhid_ucr_data=yes
  20435. fi
  20436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20437. if test x$have_usbhid_ucr_data = xyes; then
  20438. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20439. fi
  20440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20441. $as_echo "$have_usbhid_ucr_data" >&6; }
  20442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20443. $as_echo_n "checking for new usbhid API... " >&6; }
  20444. have_usbhid_new=no
  20445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20446. /* end confdefs.h. */
  20447. #include <sys/types.h>
  20448. #if defined(HAVE_USB_H)
  20449. #include <usb.h>
  20450. #endif
  20451. #ifdef __DragonFly__
  20452. #include <bus/usb/usb.h>
  20453. #include <bus/usb/usbhid.h>
  20454. #else
  20455. #include <dev/usb/usb.h>
  20456. #include <dev/usb/usbhid.h>
  20457. #endif
  20458. #if defined(HAVE_USBHID_H)
  20459. #include <usbhid.h>
  20460. #elif defined(HAVE_LIBUSB_H)
  20461. #include <libusb.h>
  20462. #elif defined(HAVE_LIBUSBHID_H)
  20463. #include <libusbhid.h>
  20464. #endif
  20465. int
  20466. main ()
  20467. {
  20468. report_desc_t d;
  20469. hid_start_parse(d, 1, 1);
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. if ac_fn_c_try_compile "$LINENO"; then :
  20475. have_usbhid_new=yes
  20476. fi
  20477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20478. if test x$have_usbhid_new = xyes; then
  20479. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20480. fi
  20481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20482. $as_echo "$have_usbhid_new" >&6; }
  20483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20484. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20485. have_machine_joystick=no
  20486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20487. /* end confdefs.h. */
  20488. #include <machine/joystick.h>
  20489. int
  20490. main ()
  20491. {
  20492. struct joystick t;
  20493. ;
  20494. return 0;
  20495. }
  20496. _ACEOF
  20497. if ac_fn_c_try_compile "$LINENO"; then :
  20498. have_machine_joystick=yes
  20499. fi
  20500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20501. if test x$have_machine_joystick = xyes; then
  20502. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20503. fi
  20504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20505. $as_echo "$have_machine_joystick" >&6; }
  20506. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20507. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20508. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20510. have_joystick=yes
  20511. fi
  20512. CFLAGS="$save_CFLAGS"
  20513. fi
  20514. ;;
  20515. esac
  20516. }
  20517. CheckHIDAPI()
  20518. {
  20519. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20520. # so we'll just use libusb when it's available.
  20521. #
  20522. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20523. # Check whether --enable-hidapi was given.
  20524. if test "${enable_hidapi+set}" = set; then :
  20525. enableval=$enable_hidapi;
  20526. else
  20527. enable_hidapi=no
  20528. fi
  20529. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20530. pkg_failed=no
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20532. $as_echo_n "checking for LIBUSB... " >&6; }
  20533. if test -n "$LIBUSB_CFLAGS"; then
  20534. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20535. elif test -n "$PKG_CONFIG"; then
  20536. if test -n "$PKG_CONFIG" && \
  20537. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20538. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20539. ac_status=$?
  20540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20541. test $ac_status = 0; }; then
  20542. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20543. else
  20544. pkg_failed=yes
  20545. fi
  20546. else
  20547. pkg_failed=untried
  20548. fi
  20549. if test -n "$LIBUSB_LIBS"; then
  20550. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20551. elif test -n "$PKG_CONFIG"; then
  20552. if test -n "$PKG_CONFIG" && \
  20553. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20554. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20555. ac_status=$?
  20556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20557. test $ac_status = 0; }; then
  20558. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20559. else
  20560. pkg_failed=yes
  20561. fi
  20562. else
  20563. pkg_failed=untried
  20564. fi
  20565. if test $pkg_failed = yes; then
  20566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20567. $as_echo "no" >&6; }
  20568. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20569. _pkg_short_errors_supported=yes
  20570. else
  20571. _pkg_short_errors_supported=no
  20572. fi
  20573. if test $_pkg_short_errors_supported = yes; then
  20574. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20575. else
  20576. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20577. fi
  20578. # Put the nasty error message in config.log where it belongs
  20579. echo "$LIBUSB_PKG_ERRORS" >&5
  20580. have_libusb=no
  20581. elif test $pkg_failed = untried; then
  20582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20583. $as_echo "no" >&6; }
  20584. have_libusb=no
  20585. else
  20586. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20587. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20589. $as_echo "yes" >&6; }
  20590. have_libusb=yes
  20591. fi
  20592. hidapi_support=no
  20593. save_CFLAGS="$CFLAGS"
  20594. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20595. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20596. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20597. have_libusb_h=yes
  20598. fi
  20599. CFLAGS="$save_CFLAGS"
  20600. if test x$have_libusb_h = xyes; then
  20601. hidapi_support=yes
  20602. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20603. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20604. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20605. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20606. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20608. fi
  20609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20610. $as_echo_n "checking for hidapi support... " >&6; }
  20611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20612. $as_echo "$hidapi_support" >&6; }
  20613. fi
  20614. }
  20615. CheckClockGettime()
  20616. {
  20617. # Check whether --enable-clock_gettime was given.
  20618. if test "${enable_clock_gettime+set}" = set; then :
  20619. enableval=$enable_clock_gettime;
  20620. else
  20621. enable_clock_gettime=yes
  20622. fi
  20623. if test x$enable_clock_gettime = xyes; then
  20624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20625. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20626. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20627. $as_echo_n "(cached) " >&6
  20628. else
  20629. ac_check_lib_save_LIBS=$LIBS
  20630. LIBS="-lrt $LIBS"
  20631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20632. /* end confdefs.h. */
  20633. /* Override any GCC internal prototype to avoid an error.
  20634. Use char because int might match the return type of a GCC
  20635. builtin and then its argument prototype would still apply. */
  20636. #ifdef __cplusplus
  20637. extern "C"
  20638. #endif
  20639. char clock_gettime ();
  20640. int
  20641. main ()
  20642. {
  20643. return clock_gettime ();
  20644. ;
  20645. return 0;
  20646. }
  20647. _ACEOF
  20648. if ac_fn_c_try_link "$LINENO"; then :
  20649. ac_cv_lib_rt_clock_gettime=yes
  20650. else
  20651. ac_cv_lib_rt_clock_gettime=no
  20652. fi
  20653. rm -f core conftest.err conftest.$ac_objext \
  20654. conftest$ac_exeext conftest.$ac_ext
  20655. LIBS=$ac_check_lib_save_LIBS
  20656. fi
  20657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20658. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20659. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20660. have_clock_gettime=yes
  20661. fi
  20662. if test x$have_clock_gettime = xyes; then
  20663. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20665. else
  20666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20667. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20668. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20669. $as_echo_n "(cached) " >&6
  20670. else
  20671. ac_check_lib_save_LIBS=$LIBS
  20672. LIBS="-lc $LIBS"
  20673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20674. /* end confdefs.h. */
  20675. /* Override any GCC internal prototype to avoid an error.
  20676. Use char because int might match the return type of a GCC
  20677. builtin and then its argument prototype would still apply. */
  20678. #ifdef __cplusplus
  20679. extern "C"
  20680. #endif
  20681. char clock_gettime ();
  20682. int
  20683. main ()
  20684. {
  20685. return clock_gettime ();
  20686. ;
  20687. return 0;
  20688. }
  20689. _ACEOF
  20690. if ac_fn_c_try_link "$LINENO"; then :
  20691. ac_cv_lib_c_clock_gettime=yes
  20692. else
  20693. ac_cv_lib_c_clock_gettime=no
  20694. fi
  20695. rm -f core conftest.err conftest.$ac_objext \
  20696. conftest$ac_exeext conftest.$ac_ext
  20697. LIBS=$ac_check_lib_save_LIBS
  20698. fi
  20699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20700. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20701. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20702. have_clock_gettime=yes
  20703. fi
  20704. if test x$have_clock_gettime = xyes; then
  20705. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20707. fi
  20708. fi
  20709. fi
  20710. }
  20711. CheckLinuxVersion()
  20712. {
  20713. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20714. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20715. have_linux_version_h=yes
  20716. fi
  20717. if test x$have_linux_version_h = xyes; then
  20718. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20719. fi
  20720. }
  20721. CheckRPATH()
  20722. {
  20723. # Check whether --enable-rpath was given.
  20724. if test "${enable_rpath+set}" = set; then :
  20725. enableval=$enable_rpath;
  20726. else
  20727. enable_rpath=yes
  20728. fi
  20729. }
  20730. CheckEventSignals()
  20731. {
  20732. # Check whether --enable-backgrounding-signal was given.
  20733. if test "${enable_backgrounding_signal+set}" = set; then :
  20734. enableval=$enable_backgrounding_signal;
  20735. else
  20736. enable_backgrounding_signal=no
  20737. fi
  20738. if test x$enable_backgrounding_signal != xno; then
  20739. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20740. fi
  20741. # Check whether --enable-foregrounding-signal was given.
  20742. if test "${enable_foregrounding_signal+set}" = set; then :
  20743. enableval=$enable_foregrounding_signal;
  20744. else
  20745. enable_foregrounding_signal=no
  20746. fi
  20747. if test x$enable_foregrounding_signal != xno; then
  20748. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20749. fi
  20750. }
  20751. CheckWarnAll
  20752. CheckEventSignals
  20753. case "$host" in
  20754. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20755. case "$host" in
  20756. *-*-android*)
  20757. # Android
  20758. ARCH=android
  20759. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20760. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20761. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20762. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20764. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20765. if test x$enable_video = xyes; then
  20766. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20767. # FIXME: confdefs? Not AC_DEFINE?
  20768. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20769. SUMMARY_video="${SUMMARY_video} android"
  20770. fi
  20771. ;;
  20772. *-*-linux*) ARCH=linux ;;
  20773. *-*-uclinux*) ARCH=linux ;;
  20774. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20775. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20776. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20777. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20778. *-*-bsdi*) ARCH=bsdi ;;
  20779. *-*-freebsd*) ARCH=freebsd ;;
  20780. *-*-dragonfly*) ARCH=freebsd ;;
  20781. *-*-netbsd*) ARCH=netbsd ;;
  20782. *-*-openbsd*) ARCH=openbsd ;;
  20783. *-*-sysv5*) ARCH=sysv5 ;;
  20784. *-*-solaris*) ARCH=solaris ;;
  20785. *-*-hpux*) ARCH=hpux ;;
  20786. *-*-aix*) ARCH=aix ;;
  20787. *-*-minix*) ARCH=minix ;;
  20788. *-*-nto*) ARCH=nto
  20789. CheckQNXVideo
  20790. ;;
  20791. esac
  20792. CheckVisibilityHidden
  20793. CheckDeclarationAfterStatement
  20794. CheckDummyVideo
  20795. CheckDiskAudio
  20796. CheckDummyAudio
  20797. CheckDLOPEN
  20798. CheckOSS
  20799. CheckALSA
  20800. CheckPulseAudio
  20801. CheckJACK
  20802. CheckARTSC
  20803. CheckESD
  20804. CheckNAS
  20805. CheckSNDIO
  20806. CheckFusionSound
  20807. CheckLibSampleRate
  20808. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20809. CheckRPI
  20810. CheckX11
  20811. CheckDirectFB
  20812. CheckKMSDRM
  20813. CheckOpenGLX11
  20814. CheckOpenGLESX11
  20815. CheckVulkan
  20816. CheckWayland
  20817. CheckLibUDev
  20818. CheckDBus
  20819. CheckIME
  20820. CheckIBus
  20821. CheckFcitx
  20822. case $ARCH in
  20823. linux)
  20824. CheckInputEvents
  20825. CheckInputKD
  20826. ;;
  20827. esac
  20828. CheckTslib
  20829. CheckUSBHID
  20830. CheckHIDAPI
  20831. CheckPTHREAD
  20832. CheckClockGettime
  20833. CheckLinuxVersion
  20834. CheckRPATH
  20835. CheckVivanteVideo
  20836. # Set up files for the audio library
  20837. if test x$enable_audio = xyes; then
  20838. case $ARCH in
  20839. sysv5|solaris|hpux)
  20840. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20841. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20842. SUMMARY_audio="${SUMMARY_audio} sun"
  20843. have_audio=yes
  20844. ;;
  20845. netbsd) # Don't use this on OpenBSD, it's busted.
  20846. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20847. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20848. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20849. have_audio=yes
  20850. ;;
  20851. aix)
  20852. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20853. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20854. SUMMARY_audio="${SUMMARY_audio} paudio"
  20855. have_audio=yes
  20856. ;;
  20857. android)
  20858. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20859. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20860. SUMMARY_audio="${SUMMARY_audio} android"
  20861. have_audio=yes
  20862. ;;
  20863. nto)
  20864. CheckQNXAudio
  20865. ;;
  20866. esac
  20867. fi
  20868. # Set up files for the joystick library
  20869. if test x$enable_joystick = xyes; then
  20870. case $ARCH in
  20871. linux)
  20872. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20873. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20874. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20875. have_joystick=yes
  20876. ;;
  20877. android)
  20878. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20879. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20880. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20881. have_joystick=yes
  20882. ;;
  20883. esac
  20884. fi
  20885. # Set up files for the haptic library
  20886. if test x$enable_haptic = xyes; then
  20887. case $ARCH in
  20888. linux)
  20889. if test x$use_input_events = xyes; then
  20890. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20891. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20892. have_haptic=yes
  20893. fi
  20894. ;;
  20895. android)
  20896. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20897. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20898. have_haptic=yes
  20899. ;;
  20900. esac
  20901. fi
  20902. # Set up files for the sensor library
  20903. if test x$enable_sensor = xyes; then
  20904. case $ARCH in
  20905. android)
  20906. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20907. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20908. have_sensor=yes
  20909. ;;
  20910. esac
  20911. fi
  20912. # Set up files for the power library
  20913. if test x$enable_power = xyes; then
  20914. case $ARCH in
  20915. linux)
  20916. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20917. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20918. have_power=yes
  20919. ;;
  20920. android)
  20921. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20922. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20923. have_power=yes
  20924. ;;
  20925. esac
  20926. fi
  20927. # Set up files for the filesystem library
  20928. if test x$enable_filesystem = xyes; then
  20929. case $ARCH in
  20930. android)
  20931. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20932. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20933. have_filesystem=yes
  20934. ;;
  20935. *)
  20936. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20937. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20938. have_filesystem=yes
  20939. ;;
  20940. esac
  20941. fi
  20942. # Set up files for the timer library
  20943. if test x$enable_timers = xyes; then
  20944. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20945. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20946. have_timers=yes
  20947. fi
  20948. # Set up files for udev hotplugging support
  20949. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20950. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20951. fi
  20952. # Set up files for evdev input
  20953. if test x$use_input_events = xyes; then
  20954. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20955. fi
  20956. # Set up other core UNIX files
  20957. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  20958. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20959. ;;
  20960. *-*-cygwin* | *-*-mingw32*)
  20961. ARCH=win32
  20962. if test "$build" != "$host"; then # cross-compiling
  20963. # Default cross-compile location
  20964. ac_default_prefix=/usr/local/cross-tools/$host
  20965. else
  20966. # Look for the location of the tools and install there
  20967. if test "$BUILD_PREFIX" != ""; then
  20968. ac_default_prefix=$BUILD_PREFIX
  20969. fi
  20970. fi
  20971. CheckDeclarationAfterStatement
  20972. CheckDummyVideo
  20973. CheckDiskAudio
  20974. CheckDummyAudio
  20975. CheckWINDOWS
  20976. CheckWINDOWSGL
  20977. CheckWINDOWSGLES
  20978. CheckVulkan
  20979. CheckDIRECTX
  20980. # Set up the core platform files
  20981. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20982. # Set up files for the video library
  20983. if test x$enable_video = xyes; then
  20984. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20985. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20986. have_video=yes
  20987. # Check whether --enable-render-d3d was given.
  20988. if test "${enable_render_d3d+set}" = set; then :
  20989. enableval=$enable_render_d3d;
  20990. else
  20991. enable_render_d3d=yes
  20992. fi
  20993. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20994. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20995. SUMMARY_video="${SUMMARY_video} d3d9"
  20996. fi
  20997. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20998. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20999. SUMMARY_video="${SUMMARY_video} d3d11"
  21000. fi
  21001. fi
  21002. # Set up files for the audio library
  21003. if test x$enable_audio = xyes; then
  21004. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21005. SUMMARY_audio="${SUMMARY_audio} winmm"
  21006. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21007. if test x$have_dsound = xyes; then
  21008. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21009. SUMMARY_audio="${SUMMARY_audio} directsound"
  21010. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21011. fi
  21012. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21013. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21014. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21015. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21016. fi
  21017. have_audio=yes
  21018. fi
  21019. # Set up files for the joystick library
  21020. if test x$enable_joystick = xyes; then
  21021. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21022. if test x$have_xinput = xyes; then
  21023. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21024. fi
  21025. if test x$have_dinput = xyes; then
  21026. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21028. fi
  21029. else
  21030. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21031. fi
  21032. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21033. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21034. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21035. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  21036. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21037. have_joystick=yes
  21038. fi
  21039. if test x$enable_haptic = xyes; then
  21040. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21041. if test x$have_xinput = xyes; then
  21042. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21043. fi
  21044. if test x$have_dinput = xyes; then
  21045. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21046. fi
  21047. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21048. have_haptic=yes
  21049. fi
  21050. fi
  21051. if test x$enable_power = xyes; then
  21052. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21053. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21054. have_power=yes
  21055. fi
  21056. if test x$enable_filesystem = xyes; then
  21057. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21058. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21059. have_filesystem=yes
  21060. fi
  21061. # Set up files for the thread library
  21062. if test x$enable_threads = xyes; then
  21063. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21064. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21065. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21066. have_threads=yes
  21067. fi
  21068. # Set up files for the timer library
  21069. if test x$enable_timers = xyes; then
  21070. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21071. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21072. have_timers=yes
  21073. fi
  21074. # Set up files for the shared object loading library
  21075. if test x$enable_loadso = xyes; then
  21076. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21077. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21078. have_loadso=yes
  21079. fi
  21080. # Set up the system libraries we need
  21081. if test -f /lib/w32api/libuuid.a; then
  21082. LIBUUID=/lib/w32api/libuuid.a
  21083. else
  21084. LIBUUID=-luuid
  21085. fi
  21086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21087. # The Windows platform requires special setup
  21088. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21089. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21090. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21091. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21092. # Check to see if this is a mingw or cygwin build
  21093. have_mingw32=
  21094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21095. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21096. if ${ac_cv_lib_mingw32_main+:} false; then :
  21097. $as_echo_n "(cached) " >&6
  21098. else
  21099. ac_check_lib_save_LIBS=$LIBS
  21100. LIBS="-lmingw32 $LIBS"
  21101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21102. /* end confdefs.h. */
  21103. int
  21104. main ()
  21105. {
  21106. return main ();
  21107. ;
  21108. return 0;
  21109. }
  21110. _ACEOF
  21111. if ac_fn_c_try_link "$LINENO"; then :
  21112. ac_cv_lib_mingw32_main=yes
  21113. else
  21114. ac_cv_lib_mingw32_main=no
  21115. fi
  21116. rm -f core conftest.err conftest.$ac_objext \
  21117. conftest$ac_exeext conftest.$ac_ext
  21118. LIBS=$ac_check_lib_save_LIBS
  21119. fi
  21120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21121. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21122. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21123. have_mingw32=yes
  21124. fi
  21125. if test x$have_mingw32 = xyes; then
  21126. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21127. else
  21128. SDL_LIBS="-lcygwin $SDL_LIBS"
  21129. fi
  21130. ;;
  21131. *-*-beos*)
  21132. as_fn_error $? "
  21133. *** BeOS support has been removed as of SDL 2.0.2.
  21134. " "$LINENO" 5
  21135. ;;
  21136. *-*-haiku*)
  21137. ARCH=haiku
  21138. ac_default_prefix=/boot/system
  21139. CheckDummyVideo
  21140. CheckDiskAudio
  21141. CheckDummyAudio
  21142. CheckDLOPEN
  21143. CheckHaikuVideo
  21144. CheckHaikuGL
  21145. CheckPTHREAD
  21146. # Set up files for the audio library
  21147. if test x$enable_audio = xyes; then
  21148. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21149. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21150. SUMMARY_audio="${SUMMARY_audio} haiku"
  21151. have_audio=yes
  21152. fi
  21153. # Set up files for the joystick library
  21154. if test x$enable_joystick = xyes; then
  21155. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21156. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21157. have_joystick=yes
  21158. fi
  21159. # Set up files for the timer library
  21160. if test x$enable_timers = xyes; then
  21161. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21162. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21163. have_timers=yes
  21164. fi
  21165. # Set up files for the system power library
  21166. if test x$enable_power = xyes; then
  21167. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21168. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21169. have_power=yes
  21170. fi
  21171. # Set up files for the system filesystem library
  21172. if test x$enable_filesystem = xyes; then
  21173. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21174. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21175. have_filesystem=yes
  21176. fi
  21177. # The Haiku platform requires special setup.
  21178. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21180. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21181. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21182. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21184. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21185. if eval \${$as_ac_File+:} false; then :
  21186. $as_echo_n "(cached) " >&6
  21187. else
  21188. test "$cross_compiling" = yes &&
  21189. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21190. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21191. eval "$as_ac_File=yes"
  21192. else
  21193. eval "$as_ac_File=no"
  21194. fi
  21195. fi
  21196. eval ac_res=\$$as_ac_File
  21197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21198. $as_echo "$ac_res" >&6; }
  21199. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21201. else
  21202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21203. fi
  21204. ;;
  21205. arm*-apple-darwin*|*-ios-*)
  21206. ARCH=ios
  21207. CheckVisibilityHidden
  21208. CheckDeclarationAfterStatement
  21209. CheckDummyVideo
  21210. CheckDiskAudio
  21211. CheckDummyAudio
  21212. CheckDLOPEN
  21213. CheckMETAL
  21214. CheckVulkan
  21215. CheckPTHREAD
  21216. # Set up files for the audio library
  21217. if test x$enable_audio = xyes; then
  21218. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21219. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21220. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21221. have_audio=yes
  21222. fi
  21223. # Set up files for the joystick library
  21224. if test x$enable_joystick = xyes; then
  21225. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21226. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21227. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21228. have_joystick=yes
  21229. fi
  21230. # Set up files for the haptic library
  21231. #if test x$enable_haptic = xyes; then
  21232. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21233. # have_haptic=yes
  21234. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21235. #fi
  21236. # Set up files for the power library
  21237. if test x$enable_power = xyes; then
  21238. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21239. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21240. have_power=yes
  21241. fi
  21242. # Set up files for the filesystem library
  21243. if test x$enable_filesystem = xyes; then
  21244. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21245. have_filesystem=yes
  21246. fi
  21247. # Set up additional files for the file library
  21248. if test x$enable_file = xyes; then
  21249. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21250. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21251. fi
  21252. # Set up files for the timer library
  21253. if test x$enable_timers = xyes; then
  21254. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21255. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21256. have_timers=yes
  21257. fi
  21258. # Set up other core UNIX files
  21259. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21260. # The iOS platform requires special setup.
  21261. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21262. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21263. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21264. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21265. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21266. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21278. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21280. fi
  21281. ;;
  21282. *-*-darwin* )
  21283. # This could be either full "Mac OS X", or plain "Darwin" which is
  21284. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21285. # Next line is broken, and a few files below require Mac OS X (full)
  21286. ARCH=macosx
  21287. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21288. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21289. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21290. CheckVisibilityHidden
  21291. CheckDeclarationAfterStatement
  21292. CheckDummyVideo
  21293. CheckDiskAudio
  21294. CheckDummyAudio
  21295. CheckDLOPEN
  21296. CheckCOCOA
  21297. CheckMETAL
  21298. CheckX11
  21299. CheckMacGL
  21300. CheckMacGLES
  21301. CheckOpenGLX11
  21302. CheckVulkan
  21303. CheckPTHREAD
  21304. # Set up files for the audio library
  21305. if test x$enable_audio = xyes; then
  21306. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21307. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21308. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21309. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21310. have_audio=yes
  21311. fi
  21312. # Set up files for the joystick library
  21313. if test x$enable_joystick = xyes; then
  21314. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21315. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21316. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21317. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21318. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  21319. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21320. have_joystick=yes
  21321. fi
  21322. # Set up files for the haptic library
  21323. if test x$enable_haptic = xyes; then
  21324. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21325. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21327. have_haptic=yes
  21328. fi
  21329. # Set up files for the power library
  21330. if test x$enable_power = xyes; then
  21331. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21332. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21333. have_power=yes
  21334. fi
  21335. # Set up files for the filesystem library
  21336. if test x$enable_filesystem = xyes; then
  21337. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21338. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21339. have_filesystem=yes
  21340. fi
  21341. # Set up files for the timer library
  21342. if test x$enable_timers = xyes; then
  21343. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21344. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21345. have_timers=yes
  21346. fi
  21347. # Set up additional files for the file library
  21348. if test x$enable_file = xyes; then
  21349. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21350. fi
  21351. # Set up other core UNIX files
  21352. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21353. # The Mac OS X platform requires special setup.
  21354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21359. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21361. fi
  21362. ;;
  21363. *-nacl|*-pnacl)
  21364. ARCH=nacl
  21365. CheckNativeClient
  21366. CheckDummyAudio
  21367. CheckDummyVideo
  21368. CheckInputEvents
  21369. CheckPTHREAD
  21370. # Set up files for the timer library
  21371. if test x$enable_timers = xyes; then
  21372. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21373. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21374. have_timers=yes
  21375. fi
  21376. if test x$enable_filesystem = xyes; then
  21377. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21378. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21379. have_filesystem=yes
  21380. fi
  21381. ;;
  21382. *-*-emscripten* )
  21383. if test x$enable_video = xyes; then
  21384. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21385. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21386. have_video=yes
  21387. SUMMARY_video="${SUMMARY_video} emscripten"
  21388. fi
  21389. if test x$enable_audio = xyes; then
  21390. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21391. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21392. have_audio=yes
  21393. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21394. fi
  21395. CheckVisibilityHidden
  21396. CheckDeclarationAfterStatement
  21397. CheckDummyVideo
  21398. CheckDiskAudio
  21399. CheckDummyAudio
  21400. CheckDLOPEN
  21401. CheckClockGettime
  21402. CheckEmscriptenGLES
  21403. # Set up files for the power library
  21404. if test x$enable_power = xyes; then
  21405. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21406. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21407. have_power=yes
  21408. fi
  21409. # Set up files for the power library
  21410. if test x$enable_joystick = xyes; then
  21411. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21412. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21413. have_joystick=yes
  21414. fi
  21415. # Set up files for the filesystem library
  21416. if test x$enable_filesystem = xyes; then
  21417. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21418. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21419. have_filesystem=yes
  21420. fi
  21421. # Set up files for the timer library
  21422. if test x$enable_timers = xyes; then
  21423. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21424. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21425. have_timers=yes
  21426. fi
  21427. ;;
  21428. *)
  21429. as_fn_error $? "
  21430. *** Unsupported host: Please add to configure.ac
  21431. " "$LINENO" 5
  21432. ;;
  21433. esac
  21434. # Verify that we have all the platform specific files we need
  21435. if test x$have_joystick != xyes; then
  21436. if test x$enable_joystick = xyes; then
  21437. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21438. fi
  21439. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21440. fi
  21441. if test x$have_haptic != xyes; then
  21442. if test x$enable_haptic = xyes; then
  21443. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21444. fi
  21445. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21446. fi
  21447. if test x$have_sensor != xyes; then
  21448. if test x$enable_sensor = xyes; then
  21449. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21450. fi
  21451. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21452. fi
  21453. if test x$have_threads != xyes; then
  21454. if test x$enable_threads = xyes; then
  21455. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21456. fi
  21457. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21458. fi
  21459. if test x$have_timers != xyes; then
  21460. if test x$enable_timers = xyes; then
  21461. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21462. fi
  21463. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21464. fi
  21465. if test x$have_filesystem != xyes; then
  21466. if test x$enable_filesystem = xyes; then
  21467. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21468. fi
  21469. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21470. fi
  21471. if test x$have_loadso != xyes; then
  21472. if test x$enable_loadso = xyes; then
  21473. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21474. fi
  21475. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21476. fi
  21477. if test x$SDLMAIN_SOURCES = x; then
  21478. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21479. fi
  21480. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21481. if test x$video_wayland = xyes; then
  21482. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21483. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21484. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21485. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21486. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21487. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21488. echo ;\
  21489. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21490. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21491. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21492. echo ;\
  21493. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21494. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21495. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21496. echo ;\
  21497. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21498. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21499. done ;\
  21500. echo ;\
  21501. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21502. fi
  21503. OBJECTS=`echo $SOURCES`
  21504. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21505. for EXT in asm cc m c S; do
  21506. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21507. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21508. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21509. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21510. done
  21511. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21512. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21513. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21514. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21515. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21516. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21517. \\$(WINDRES) \\$< \\$@,g"`
  21518. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21519. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21520. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21521. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21522. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21523. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21524. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21525. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21526. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21527. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21528. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21529. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21530. # Set runtime shared library paths as needed
  21531. if test "x$enable_rpath" = "xyes"; then
  21532. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21533. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21535. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21536. have_enable_new_dtags=no
  21537. save_LDFLAGS="$LDFLAGS"
  21538. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21540. /* end confdefs.h. */
  21541. int
  21542. main ()
  21543. {
  21544. ;
  21545. return 0;
  21546. }
  21547. _ACEOF
  21548. if ac_fn_c_try_link "$LINENO"; then :
  21549. have_enable_new_dtags=yes
  21550. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21551. fi
  21552. rm -f core conftest.err conftest.$ac_objext \
  21553. conftest$ac_exeext conftest.$ac_ext
  21554. LDFLAGS="$save_LDFLAGS"
  21555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21556. $as_echo "$have_enable_new_dtags" >&6; }
  21557. fi
  21558. if test $ARCH = solaris; then
  21559. SDL_RLD_FLAGS="-R\${libdir}"
  21560. fi
  21561. else
  21562. SDL_RLD_FLAGS=""
  21563. fi
  21564. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21565. if test x$enable_shared = xyes; then
  21566. ENABLE_SHARED_TRUE=
  21567. ENABLE_SHARED_FALSE="#"
  21568. else
  21569. ENABLE_SHARED_TRUE="#"
  21570. ENABLE_SHARED_FALSE=
  21571. fi
  21572. if test x$enable_static = xyes; then
  21573. ENABLE_STATIC_TRUE=
  21574. ENABLE_STATIC_FALSE="#"
  21575. else
  21576. ENABLE_STATIC_TRUE="#"
  21577. ENABLE_STATIC_FALSE=
  21578. fi
  21579. cat >Makefile.rules <<__EOF__
  21580. # Build rules for objects
  21581. -include \$(OBJECTS:.lo=.d)
  21582. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21583. $srcdir/src/SDL.c: update-revision
  21584. $DEPENDS
  21585. $VERSION_DEPENDS
  21586. $SDLMAIN_DEPENDS
  21587. $SDLTEST_DEPENDS
  21588. $WAYLAND_PROTOCOLS_DEPENDS
  21589. __EOF__
  21590. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21591. ac_config_commands="$ac_config_commands sdl2_config"
  21592. SUMMARY="SDL2 Configure Summary:\n"
  21593. if test x$enable_shared = xyes; then
  21594. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21595. fi
  21596. if test x$enable_static = xyes; then
  21597. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21598. fi
  21599. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21600. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21601. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21602. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21603. if test x$have_x = xyes; then
  21604. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21605. fi
  21606. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21607. if test x$have_samplerate_h_hdr = xyes; then
  21608. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21609. else
  21610. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21611. fi
  21612. if test x$have_libudev_h_hdr = xyes; then
  21613. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21614. else
  21615. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21616. fi
  21617. if test x$have_dbus_dbus_h_hdr = xyes; then
  21618. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21619. else
  21620. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21621. fi
  21622. if test x$enable_ime = xyes; then
  21623. SUMMARY="${SUMMARY}Using ime : YES\n"
  21624. else
  21625. SUMMARY="${SUMMARY}Using ime : NO\n"
  21626. fi
  21627. if test x$have_ibus_ibus_h_hdr = xyes; then
  21628. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21629. else
  21630. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21631. fi
  21632. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21633. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21634. else
  21635. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21636. fi
  21637. ac_config_commands="$ac_config_commands summary"
  21638. cat >confcache <<\_ACEOF
  21639. # This file is a shell script that caches the results of configure
  21640. # tests run on this system so they can be shared between configure
  21641. # scripts and configure runs, see configure's option --config-cache.
  21642. # It is not useful on other systems. If it contains results you don't
  21643. # want to keep, you may remove or edit it.
  21644. #
  21645. # config.status only pays attention to the cache file if you give it
  21646. # the --recheck option to rerun configure.
  21647. #
  21648. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21649. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21650. # following values.
  21651. _ACEOF
  21652. # The following way of writing the cache mishandles newlines in values,
  21653. # but we know of no workaround that is simple, portable, and efficient.
  21654. # So, we kill variables containing newlines.
  21655. # Ultrix sh set writes to stderr and can't be redirected directly,
  21656. # and sets the high bit in the cache file unless we assign to the vars.
  21657. (
  21658. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21659. eval ac_val=\$$ac_var
  21660. case $ac_val in #(
  21661. *${as_nl}*)
  21662. case $ac_var in #(
  21663. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21664. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21665. esac
  21666. case $ac_var in #(
  21667. _ | IFS | as_nl) ;; #(
  21668. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21669. *) { eval $ac_var=; unset $ac_var;} ;;
  21670. esac ;;
  21671. esac
  21672. done
  21673. (set) 2>&1 |
  21674. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21675. *${as_nl}ac_space=\ *)
  21676. # `set' does not quote correctly, so add quotes: double-quote
  21677. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21678. sed -n \
  21679. "s/'/'\\\\''/g;
  21680. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21681. ;; #(
  21682. *)
  21683. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21684. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21685. ;;
  21686. esac |
  21687. sort
  21688. ) |
  21689. sed '
  21690. /^ac_cv_env_/b end
  21691. t clear
  21692. :clear
  21693. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21694. t end
  21695. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21696. :end' >>confcache
  21697. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21698. if test -w "$cache_file"; then
  21699. if test "x$cache_file" != "x/dev/null"; then
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21701. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21702. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21703. cat confcache >"$cache_file"
  21704. else
  21705. case $cache_file in #(
  21706. */* | ?:*)
  21707. mv -f confcache "$cache_file"$$ &&
  21708. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21709. *)
  21710. mv -f confcache "$cache_file" ;;
  21711. esac
  21712. fi
  21713. fi
  21714. else
  21715. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21716. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21717. fi
  21718. fi
  21719. rm -f confcache
  21720. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21721. # Let make expand exec_prefix.
  21722. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21723. DEFS=-DHAVE_CONFIG_H
  21724. ac_libobjs=
  21725. ac_ltlibobjs=
  21726. U=
  21727. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21728. # 1. Remove the extension, and $U if already installed.
  21729. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21730. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21731. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21732. # will be set to the directory where LIBOBJS objects are built.
  21733. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21734. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21735. done
  21736. LIBOBJS=$ac_libobjs
  21737. LTLIBOBJS=$ac_ltlibobjs
  21738. : "${CONFIG_STATUS=./config.status}"
  21739. ac_write_fail=0
  21740. ac_clean_files_save=$ac_clean_files
  21741. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21742. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21743. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21744. as_write_fail=0
  21745. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21746. #! $SHELL
  21747. # Generated by $as_me.
  21748. # Run this file to recreate the current configuration.
  21749. # Compiler output produced by configure, useful for debugging
  21750. # configure, is in config.log if it exists.
  21751. debug=false
  21752. ac_cs_recheck=false
  21753. ac_cs_silent=false
  21754. SHELL=\${CONFIG_SHELL-$SHELL}
  21755. export SHELL
  21756. _ASEOF
  21757. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21758. ## -------------------- ##
  21759. ## M4sh Initialization. ##
  21760. ## -------------------- ##
  21761. # Be more Bourne compatible
  21762. DUALCASE=1; export DUALCASE # for MKS sh
  21763. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21764. emulate sh
  21765. NULLCMD=:
  21766. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21767. # is contrary to our usage. Disable this feature.
  21768. alias -g '${1+"$@"}'='"$@"'
  21769. setopt NO_GLOB_SUBST
  21770. else
  21771. case `(set -o) 2>/dev/null` in #(
  21772. *posix*) :
  21773. set -o posix ;; #(
  21774. *) :
  21775. ;;
  21776. esac
  21777. fi
  21778. as_nl='
  21779. '
  21780. export as_nl
  21781. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21782. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21783. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21784. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21785. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21786. # but without wasting forks for bash or zsh.
  21787. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21788. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21789. as_echo='print -r --'
  21790. as_echo_n='print -rn --'
  21791. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21792. as_echo='printf %s\n'
  21793. as_echo_n='printf %s'
  21794. else
  21795. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21796. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21797. as_echo_n='/usr/ucb/echo -n'
  21798. else
  21799. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21800. as_echo_n_body='eval
  21801. arg=$1;
  21802. case $arg in #(
  21803. *"$as_nl"*)
  21804. expr "X$arg" : "X\\(.*\\)$as_nl";
  21805. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21806. esac;
  21807. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21808. '
  21809. export as_echo_n_body
  21810. as_echo_n='sh -c $as_echo_n_body as_echo'
  21811. fi
  21812. export as_echo_body
  21813. as_echo='sh -c $as_echo_body as_echo'
  21814. fi
  21815. # The user is always right.
  21816. if test "${PATH_SEPARATOR+set}" != set; then
  21817. PATH_SEPARATOR=:
  21818. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21819. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21820. PATH_SEPARATOR=';'
  21821. }
  21822. fi
  21823. # IFS
  21824. # We need space, tab and new line, in precisely that order. Quoting is
  21825. # there to prevent editors from complaining about space-tab.
  21826. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21827. # splitting by setting IFS to empty value.)
  21828. IFS=" "" $as_nl"
  21829. # Find who we are. Look in the path if we contain no directory separator.
  21830. as_myself=
  21831. case $0 in #((
  21832. *[\\/]* ) as_myself=$0 ;;
  21833. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21834. for as_dir in $PATH
  21835. do
  21836. IFS=$as_save_IFS
  21837. test -z "$as_dir" && as_dir=.
  21838. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21839. done
  21840. IFS=$as_save_IFS
  21841. ;;
  21842. esac
  21843. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21844. # in which case we are not to be found in the path.
  21845. if test "x$as_myself" = x; then
  21846. as_myself=$0
  21847. fi
  21848. if test ! -f "$as_myself"; then
  21849. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21850. exit 1
  21851. fi
  21852. # Unset variables that we do not need and which cause bugs (e.g. in
  21853. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21854. # suppresses any "Segmentation fault" message there. '((' could
  21855. # trigger a bug in pdksh 5.2.14.
  21856. for as_var in BASH_ENV ENV MAIL MAILPATH
  21857. do eval test x\${$as_var+set} = xset \
  21858. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21859. done
  21860. PS1='$ '
  21861. PS2='> '
  21862. PS4='+ '
  21863. # NLS nuisances.
  21864. LC_ALL=C
  21865. export LC_ALL
  21866. LANGUAGE=C
  21867. export LANGUAGE
  21868. # CDPATH.
  21869. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21870. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21871. # ----------------------------------------
  21872. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21873. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21874. # script with STATUS, using 1 if that was 0.
  21875. as_fn_error ()
  21876. {
  21877. as_status=$1; test $as_status -eq 0 && as_status=1
  21878. if test "$4"; then
  21879. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21880. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21881. fi
  21882. $as_echo "$as_me: error: $2" >&2
  21883. as_fn_exit $as_status
  21884. } # as_fn_error
  21885. # as_fn_set_status STATUS
  21886. # -----------------------
  21887. # Set $? to STATUS, without forking.
  21888. as_fn_set_status ()
  21889. {
  21890. return $1
  21891. } # as_fn_set_status
  21892. # as_fn_exit STATUS
  21893. # -----------------
  21894. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21895. as_fn_exit ()
  21896. {
  21897. set +e
  21898. as_fn_set_status $1
  21899. exit $1
  21900. } # as_fn_exit
  21901. # as_fn_unset VAR
  21902. # ---------------
  21903. # Portably unset VAR.
  21904. as_fn_unset ()
  21905. {
  21906. { eval $1=; unset $1;}
  21907. }
  21908. as_unset=as_fn_unset
  21909. # as_fn_append VAR VALUE
  21910. # ----------------------
  21911. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21912. # advantage of any shell optimizations that allow amortized linear growth over
  21913. # repeated appends, instead of the typical quadratic growth present in naive
  21914. # implementations.
  21915. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21916. eval 'as_fn_append ()
  21917. {
  21918. eval $1+=\$2
  21919. }'
  21920. else
  21921. as_fn_append ()
  21922. {
  21923. eval $1=\$$1\$2
  21924. }
  21925. fi # as_fn_append
  21926. # as_fn_arith ARG...
  21927. # ------------------
  21928. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21929. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21930. # must be portable across $(()) and expr.
  21931. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21932. eval 'as_fn_arith ()
  21933. {
  21934. as_val=$(( $* ))
  21935. }'
  21936. else
  21937. as_fn_arith ()
  21938. {
  21939. as_val=`expr "$@" || test $? -eq 1`
  21940. }
  21941. fi # as_fn_arith
  21942. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21943. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21944. as_expr=expr
  21945. else
  21946. as_expr=false
  21947. fi
  21948. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21949. as_basename=basename
  21950. else
  21951. as_basename=false
  21952. fi
  21953. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21954. as_dirname=dirname
  21955. else
  21956. as_dirname=false
  21957. fi
  21958. as_me=`$as_basename -- "$0" ||
  21959. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21960. X"$0" : 'X\(//\)$' \| \
  21961. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21962. $as_echo X/"$0" |
  21963. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21964. s//\1/
  21965. q
  21966. }
  21967. /^X\/\(\/\/\)$/{
  21968. s//\1/
  21969. q
  21970. }
  21971. /^X\/\(\/\).*/{
  21972. s//\1/
  21973. q
  21974. }
  21975. s/.*/./; q'`
  21976. # Avoid depending upon Character Ranges.
  21977. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21978. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21979. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21980. as_cr_digits='0123456789'
  21981. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21982. ECHO_C= ECHO_N= ECHO_T=
  21983. case `echo -n x` in #(((((
  21984. -n*)
  21985. case `echo 'xy\c'` in
  21986. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21987. xy) ECHO_C='\c';;
  21988. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21989. ECHO_T=' ';;
  21990. esac;;
  21991. *)
  21992. ECHO_N='-n';;
  21993. esac
  21994. rm -f conf$$ conf$$.exe conf$$.file
  21995. if test -d conf$$.dir; then
  21996. rm -f conf$$.dir/conf$$.file
  21997. else
  21998. rm -f conf$$.dir
  21999. mkdir conf$$.dir 2>/dev/null
  22000. fi
  22001. if (echo >conf$$.file) 2>/dev/null; then
  22002. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22003. as_ln_s='ln -s'
  22004. # ... but there are two gotchas:
  22005. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22006. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22007. # In both cases, we have to default to `cp -pR'.
  22008. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22009. as_ln_s='cp -pR'
  22010. elif ln conf$$.file conf$$ 2>/dev/null; then
  22011. as_ln_s=ln
  22012. else
  22013. as_ln_s='cp -pR'
  22014. fi
  22015. else
  22016. as_ln_s='cp -pR'
  22017. fi
  22018. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22019. rmdir conf$$.dir 2>/dev/null
  22020. # as_fn_mkdir_p
  22021. # -------------
  22022. # Create "$as_dir" as a directory, including parents if necessary.
  22023. as_fn_mkdir_p ()
  22024. {
  22025. case $as_dir in #(
  22026. -*) as_dir=./$as_dir;;
  22027. esac
  22028. test -d "$as_dir" || eval $as_mkdir_p || {
  22029. as_dirs=
  22030. while :; do
  22031. case $as_dir in #(
  22032. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22033. *) as_qdir=$as_dir;;
  22034. esac
  22035. as_dirs="'$as_qdir' $as_dirs"
  22036. as_dir=`$as_dirname -- "$as_dir" ||
  22037. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22038. X"$as_dir" : 'X\(//\)[^/]' \| \
  22039. X"$as_dir" : 'X\(//\)$' \| \
  22040. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22041. $as_echo X"$as_dir" |
  22042. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22043. s//\1/
  22044. q
  22045. }
  22046. /^X\(\/\/\)[^/].*/{
  22047. s//\1/
  22048. q
  22049. }
  22050. /^X\(\/\/\)$/{
  22051. s//\1/
  22052. q
  22053. }
  22054. /^X\(\/\).*/{
  22055. s//\1/
  22056. q
  22057. }
  22058. s/.*/./; q'`
  22059. test -d "$as_dir" && break
  22060. done
  22061. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22062. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22063. } # as_fn_mkdir_p
  22064. if mkdir -p . 2>/dev/null; then
  22065. as_mkdir_p='mkdir -p "$as_dir"'
  22066. else
  22067. test -d ./-p && rmdir ./-p
  22068. as_mkdir_p=false
  22069. fi
  22070. # as_fn_executable_p FILE
  22071. # -----------------------
  22072. # Test if FILE is an executable regular file.
  22073. as_fn_executable_p ()
  22074. {
  22075. test -f "$1" && test -x "$1"
  22076. } # as_fn_executable_p
  22077. as_test_x='test -x'
  22078. as_executable_p=as_fn_executable_p
  22079. # Sed expression to map a string onto a valid CPP name.
  22080. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22081. # Sed expression to map a string onto a valid variable name.
  22082. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22083. exec 6>&1
  22084. ## ----------------------------------- ##
  22085. ## Main body of $CONFIG_STATUS script. ##
  22086. ## ----------------------------------- ##
  22087. _ASEOF
  22088. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22090. # Save the log message, to keep $0 and so on meaningful, and to
  22091. # report actual input values of CONFIG_FILES etc. instead of their
  22092. # values after options handling.
  22093. ac_log="
  22094. This file was extended by $as_me, which was
  22095. generated by GNU Autoconf 2.69. Invocation command line was
  22096. CONFIG_FILES = $CONFIG_FILES
  22097. CONFIG_HEADERS = $CONFIG_HEADERS
  22098. CONFIG_LINKS = $CONFIG_LINKS
  22099. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22100. $ $0 $@
  22101. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22102. "
  22103. _ACEOF
  22104. case $ac_config_files in *"
  22105. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22106. esac
  22107. case $ac_config_headers in *"
  22108. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22109. esac
  22110. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22111. # Files that config.status was made for.
  22112. config_files="$ac_config_files"
  22113. config_headers="$ac_config_headers"
  22114. config_commands="$ac_config_commands"
  22115. _ACEOF
  22116. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22117. ac_cs_usage="\
  22118. \`$as_me' instantiates files and other configuration actions
  22119. from templates according to the current configuration. Unless the files
  22120. and actions are specified as TAGs, all are instantiated by default.
  22121. Usage: $0 [OPTION]... [TAG]...
  22122. -h, --help print this help, then exit
  22123. -V, --version print version number and configuration settings, then exit
  22124. --config print configuration, then exit
  22125. -q, --quiet, --silent
  22126. do not print progress messages
  22127. -d, --debug don't remove temporary files
  22128. --recheck update $as_me by reconfiguring in the same conditions
  22129. --file=FILE[:TEMPLATE]
  22130. instantiate the configuration file FILE
  22131. --header=FILE[:TEMPLATE]
  22132. instantiate the configuration header FILE
  22133. Configuration files:
  22134. $config_files
  22135. Configuration headers:
  22136. $config_headers
  22137. Configuration commands:
  22138. $config_commands
  22139. Report bugs to the package provider."
  22140. _ACEOF
  22141. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22142. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22143. ac_cs_version="\\
  22144. config.status
  22145. configured by $0, generated by GNU Autoconf 2.69,
  22146. with options \\"\$ac_cs_config\\"
  22147. Copyright (C) 2012 Free Software Foundation, Inc.
  22148. This config.status script is free software; the Free Software Foundation
  22149. gives unlimited permission to copy, distribute and modify it."
  22150. ac_pwd='$ac_pwd'
  22151. srcdir='$srcdir'
  22152. INSTALL='$INSTALL'
  22153. AWK='$AWK'
  22154. test -n "\$AWK" || AWK=awk
  22155. _ACEOF
  22156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22157. # The default lists apply if the user does not specify any file.
  22158. ac_need_defaults=:
  22159. while test $# != 0
  22160. do
  22161. case $1 in
  22162. --*=?*)
  22163. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22164. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22165. ac_shift=:
  22166. ;;
  22167. --*=)
  22168. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22169. ac_optarg=
  22170. ac_shift=:
  22171. ;;
  22172. *)
  22173. ac_option=$1
  22174. ac_optarg=$2
  22175. ac_shift=shift
  22176. ;;
  22177. esac
  22178. case $ac_option in
  22179. # Handling of the options.
  22180. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22181. ac_cs_recheck=: ;;
  22182. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22183. $as_echo "$ac_cs_version"; exit ;;
  22184. --config | --confi | --conf | --con | --co | --c )
  22185. $as_echo "$ac_cs_config"; exit ;;
  22186. --debug | --debu | --deb | --de | --d | -d )
  22187. debug=: ;;
  22188. --file | --fil | --fi | --f )
  22189. $ac_shift
  22190. case $ac_optarg in
  22191. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22192. '') as_fn_error $? "missing file argument" ;;
  22193. esac
  22194. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22195. ac_need_defaults=false;;
  22196. --header | --heade | --head | --hea )
  22197. $ac_shift
  22198. case $ac_optarg in
  22199. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22200. esac
  22201. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22202. ac_need_defaults=false;;
  22203. --he | --h)
  22204. # Conflict between --help and --header
  22205. as_fn_error $? "ambiguous option: \`$1'
  22206. Try \`$0 --help' for more information.";;
  22207. --help | --hel | -h )
  22208. $as_echo "$ac_cs_usage"; exit ;;
  22209. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22210. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22211. ac_cs_silent=: ;;
  22212. # This is an error.
  22213. -*) as_fn_error $? "unrecognized option: \`$1'
  22214. Try \`$0 --help' for more information." ;;
  22215. *) as_fn_append ac_config_targets " $1"
  22216. ac_need_defaults=false ;;
  22217. esac
  22218. shift
  22219. done
  22220. ac_configure_extra_args=
  22221. if $ac_cs_silent; then
  22222. exec 6>/dev/null
  22223. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22224. fi
  22225. _ACEOF
  22226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22227. if \$ac_cs_recheck; then
  22228. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22229. shift
  22230. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22231. CONFIG_SHELL='$SHELL'
  22232. export CONFIG_SHELL
  22233. exec "\$@"
  22234. fi
  22235. _ACEOF
  22236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22237. exec 5>>config.log
  22238. {
  22239. echo
  22240. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22241. ## Running $as_me. ##
  22242. _ASBOX
  22243. $as_echo "$ac_log"
  22244. } >&5
  22245. _ACEOF
  22246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22247. #
  22248. # INIT-COMMANDS
  22249. #
  22250. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22251. # if CDPATH is set.
  22252. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22253. sed_quote_subst='$sed_quote_subst'
  22254. double_quote_subst='$double_quote_subst'
  22255. delay_variable_subst='$delay_variable_subst'
  22256. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22257. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22258. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22259. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22260. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22261. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22262. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22263. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22264. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22265. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22266. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22267. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22268. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22269. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22270. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22271. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22272. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22273. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22274. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22275. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22276. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22277. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22278. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22279. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22280. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22281. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22282. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22283. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22284. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22285. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22286. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22287. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22288. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22289. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22290. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22291. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22292. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22293. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22294. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22295. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22296. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22297. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22298. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22299. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22300. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22301. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22302. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22303. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22304. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22305. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22306. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22307. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22308. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22309. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22310. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22311. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22312. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22313. 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"`'
  22314. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22315. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22316. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22317. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22318. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22319. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22320. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22321. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22322. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22323. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22324. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22325. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22326. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22327. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22328. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22329. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22330. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22331. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22332. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22333. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22334. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22335. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22336. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22337. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22338. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22339. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22340. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22341. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22342. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22343. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22344. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22345. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22346. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22347. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22348. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22349. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22350. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22351. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22352. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22353. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22354. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22355. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22356. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22357. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22358. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22359. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22360. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22361. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22362. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22363. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22364. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22365. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22366. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22367. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22368. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22369. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22370. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22371. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22372. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22373. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22374. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22375. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22376. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22377. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22378. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22379. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22380. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22381. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22382. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22383. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22384. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22385. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22386. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22387. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22388. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22389. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22390. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22391. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22392. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22393. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22394. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22395. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22396. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22397. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22398. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22399. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22400. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22401. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22402. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22403. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22404. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22405. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22406. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22407. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22408. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22409. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22410. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22411. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22412. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22413. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22414. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22415. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22416. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22417. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22418. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22419. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22420. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22421. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22422. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22423. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22424. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22425. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22426. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22427. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22428. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22429. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22430. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22431. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22432. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22433. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22434. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22435. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22436. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22437. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22438. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22439. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22440. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22441. LTCC='$LTCC'
  22442. LTCFLAGS='$LTCFLAGS'
  22443. compiler='$compiler_DEFAULT'
  22444. # A function that is used when there is no print builtin or printf.
  22445. func_fallback_echo ()
  22446. {
  22447. eval 'cat <<_LTECHO_EOF
  22448. \$1
  22449. _LTECHO_EOF'
  22450. }
  22451. # Quote evaled strings.
  22452. for var in AS \
  22453. DLLTOOL \
  22454. OBJDUMP \
  22455. SHELL \
  22456. ECHO \
  22457. PATH_SEPARATOR \
  22458. SED \
  22459. GREP \
  22460. EGREP \
  22461. FGREP \
  22462. LD \
  22463. NM \
  22464. LN_S \
  22465. lt_SP2NL \
  22466. lt_NL2SP \
  22467. reload_flag \
  22468. deplibs_check_method \
  22469. file_magic_cmd \
  22470. file_magic_glob \
  22471. want_nocaseglob \
  22472. sharedlib_from_linklib_cmd \
  22473. AR \
  22474. AR_FLAGS \
  22475. archiver_list_spec \
  22476. STRIP \
  22477. RANLIB \
  22478. CC \
  22479. CFLAGS \
  22480. compiler \
  22481. lt_cv_sys_global_symbol_pipe \
  22482. lt_cv_sys_global_symbol_to_cdecl \
  22483. lt_cv_sys_global_symbol_to_c_name_address \
  22484. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22485. nm_file_list_spec \
  22486. lt_prog_compiler_no_builtin_flag \
  22487. lt_prog_compiler_pic \
  22488. lt_prog_compiler_wl \
  22489. lt_prog_compiler_static \
  22490. lt_cv_prog_compiler_c_o \
  22491. need_locks \
  22492. MANIFEST_TOOL \
  22493. DSYMUTIL \
  22494. NMEDIT \
  22495. LIPO \
  22496. OTOOL \
  22497. OTOOL64 \
  22498. shrext_cmds \
  22499. export_dynamic_flag_spec \
  22500. whole_archive_flag_spec \
  22501. compiler_needs_object \
  22502. with_gnu_ld \
  22503. allow_undefined_flag \
  22504. no_undefined_flag \
  22505. hardcode_libdir_flag_spec \
  22506. hardcode_libdir_separator \
  22507. exclude_expsyms \
  22508. include_expsyms \
  22509. file_list_spec \
  22510. variables_saved_for_relink \
  22511. libname_spec \
  22512. library_names_spec \
  22513. soname_spec \
  22514. install_override_mode \
  22515. finish_eval \
  22516. old_striplib \
  22517. striplib \
  22518. compiler_lib_search_dirs \
  22519. predep_objects \
  22520. postdep_objects \
  22521. predeps \
  22522. postdeps \
  22523. compiler_lib_search_path \
  22524. LD_CXX \
  22525. reload_flag_CXX \
  22526. compiler_CXX \
  22527. lt_prog_compiler_no_builtin_flag_CXX \
  22528. lt_prog_compiler_pic_CXX \
  22529. lt_prog_compiler_wl_CXX \
  22530. lt_prog_compiler_static_CXX \
  22531. lt_cv_prog_compiler_c_o_CXX \
  22532. export_dynamic_flag_spec_CXX \
  22533. whole_archive_flag_spec_CXX \
  22534. compiler_needs_object_CXX \
  22535. with_gnu_ld_CXX \
  22536. allow_undefined_flag_CXX \
  22537. no_undefined_flag_CXX \
  22538. hardcode_libdir_flag_spec_CXX \
  22539. hardcode_libdir_separator_CXX \
  22540. exclude_expsyms_CXX \
  22541. include_expsyms_CXX \
  22542. file_list_spec_CXX \
  22543. compiler_lib_search_dirs_CXX \
  22544. predep_objects_CXX \
  22545. postdep_objects_CXX \
  22546. predeps_CXX \
  22547. postdeps_CXX \
  22548. compiler_lib_search_path_CXX; do
  22549. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22550. *[\\\\\\\`\\"\\\$]*)
  22551. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22552. ;;
  22553. *)
  22554. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22555. ;;
  22556. esac
  22557. done
  22558. # Double-quote double-evaled strings.
  22559. for var in reload_cmds \
  22560. old_postinstall_cmds \
  22561. old_postuninstall_cmds \
  22562. old_archive_cmds \
  22563. extract_expsyms_cmds \
  22564. old_archive_from_new_cmds \
  22565. old_archive_from_expsyms_cmds \
  22566. archive_cmds \
  22567. archive_expsym_cmds \
  22568. module_cmds \
  22569. module_expsym_cmds \
  22570. export_symbols_cmds \
  22571. prelink_cmds \
  22572. postlink_cmds \
  22573. postinstall_cmds \
  22574. postuninstall_cmds \
  22575. finish_cmds \
  22576. sys_lib_search_path_spec \
  22577. sys_lib_dlsearch_path_spec \
  22578. reload_cmds_CXX \
  22579. old_archive_cmds_CXX \
  22580. old_archive_from_new_cmds_CXX \
  22581. old_archive_from_expsyms_cmds_CXX \
  22582. archive_cmds_CXX \
  22583. archive_expsym_cmds_CXX \
  22584. module_cmds_CXX \
  22585. module_expsym_cmds_CXX \
  22586. export_symbols_cmds_CXX \
  22587. prelink_cmds_CXX \
  22588. postlink_cmds_CXX; do
  22589. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22590. *[\\\\\\\`\\"\\\$]*)
  22591. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22592. ;;
  22593. *)
  22594. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22595. ;;
  22596. esac
  22597. done
  22598. ac_aux_dir='$ac_aux_dir'
  22599. xsi_shell='$xsi_shell'
  22600. lt_shell_append='$lt_shell_append'
  22601. # See if we are running on zsh, and set the options which allow our
  22602. # commands through without removal of \ escapes INIT.
  22603. if test -n "\${ZSH_VERSION+set}" ; then
  22604. setopt NO_GLOB_SUBST
  22605. fi
  22606. PACKAGE='$PACKAGE'
  22607. VERSION='$VERSION'
  22608. TIMESTAMP='$TIMESTAMP'
  22609. RM='$RM'
  22610. ofile='$ofile'
  22611. SUMMARY="$SUMMARY"
  22612. _ACEOF
  22613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22614. # Handling of arguments.
  22615. for ac_config_target in $ac_config_targets
  22616. do
  22617. case $ac_config_target in
  22618. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22619. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22620. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22621. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22622. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22623. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22624. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22625. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22626. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22627. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22628. esac
  22629. done
  22630. # If the user did not use the arguments to specify the items to instantiate,
  22631. # then the envvar interface is used. Set only those that are not.
  22632. # We use the long form for the default assignment because of an extremely
  22633. # bizarre bug on SunOS 4.1.3.
  22634. if $ac_need_defaults; then
  22635. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22636. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22637. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22638. fi
  22639. # Have a temporary directory for convenience. Make it in the build tree
  22640. # simply because there is no reason against having it here, and in addition,
  22641. # creating and moving files from /tmp can sometimes cause problems.
  22642. # Hook for its removal unless debugging.
  22643. # Note that there is a small window in which the directory will not be cleaned:
  22644. # after its creation but before its name has been assigned to `$tmp'.
  22645. $debug ||
  22646. {
  22647. tmp= ac_tmp=
  22648. trap 'exit_status=$?
  22649. : "${ac_tmp:=$tmp}"
  22650. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22651. ' 0
  22652. trap 'as_fn_exit 1' 1 2 13 15
  22653. }
  22654. # Create a (secure) tmp directory for tmp files.
  22655. {
  22656. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22657. test -d "$tmp"
  22658. } ||
  22659. {
  22660. tmp=./conf$$-$RANDOM
  22661. (umask 077 && mkdir "$tmp")
  22662. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22663. ac_tmp=$tmp
  22664. # Set up the scripts for CONFIG_FILES section.
  22665. # No need to generate them if there are no CONFIG_FILES.
  22666. # This happens for instance with `./config.status config.h'.
  22667. if test -n "$CONFIG_FILES"; then
  22668. ac_cr=`echo X | tr X '\015'`
  22669. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22670. # But we know of no other shell where ac_cr would be empty at this
  22671. # point, so we can use a bashism as a fallback.
  22672. if test "x$ac_cr" = x; then
  22673. eval ac_cr=\$\'\\r\'
  22674. fi
  22675. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22676. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22677. ac_cs_awk_cr='\\r'
  22678. else
  22679. ac_cs_awk_cr=$ac_cr
  22680. fi
  22681. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22682. _ACEOF
  22683. {
  22684. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22685. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22686. echo "_ACEOF"
  22687. } >conf$$subs.sh ||
  22688. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22689. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22690. ac_delim='%!_!# '
  22691. for ac_last_try in false false false false false :; do
  22692. . ./conf$$subs.sh ||
  22693. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22694. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22695. if test $ac_delim_n = $ac_delim_num; then
  22696. break
  22697. elif $ac_last_try; then
  22698. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22699. else
  22700. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22701. fi
  22702. done
  22703. rm -f conf$$subs.sh
  22704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22705. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22706. _ACEOF
  22707. sed -n '
  22708. h
  22709. s/^/S["/; s/!.*/"]=/
  22710. p
  22711. g
  22712. s/^[^!]*!//
  22713. :repl
  22714. t repl
  22715. s/'"$ac_delim"'$//
  22716. t delim
  22717. :nl
  22718. h
  22719. s/\(.\{148\}\)..*/\1/
  22720. t more1
  22721. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22722. p
  22723. n
  22724. b repl
  22725. :more1
  22726. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22727. p
  22728. g
  22729. s/.\{148\}//
  22730. t nl
  22731. :delim
  22732. h
  22733. s/\(.\{148\}\)..*/\1/
  22734. t more2
  22735. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22736. p
  22737. b
  22738. :more2
  22739. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22740. p
  22741. g
  22742. s/.\{148\}//
  22743. t delim
  22744. ' <conf$$subs.awk | sed '
  22745. /^[^""]/{
  22746. N
  22747. s/\n//
  22748. }
  22749. ' >>$CONFIG_STATUS || ac_write_fail=1
  22750. rm -f conf$$subs.awk
  22751. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22752. _ACAWK
  22753. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22754. for (key in S) S_is_set[key] = 1
  22755. FS = ""
  22756. }
  22757. {
  22758. line = $ 0
  22759. nfields = split(line, field, "@")
  22760. substed = 0
  22761. len = length(field[1])
  22762. for (i = 2; i < nfields; i++) {
  22763. key = field[i]
  22764. keylen = length(key)
  22765. if (S_is_set[key]) {
  22766. value = S[key]
  22767. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22768. len += length(value) + length(field[++i])
  22769. substed = 1
  22770. } else
  22771. len += 1 + keylen
  22772. }
  22773. print line
  22774. }
  22775. _ACAWK
  22776. _ACEOF
  22777. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22778. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22779. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22780. else
  22781. cat
  22782. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22783. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22784. _ACEOF
  22785. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22786. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22787. # trailing colons and then remove the whole line if VPATH becomes empty
  22788. # (actually we leave an empty line to preserve line numbers).
  22789. if test "x$srcdir" = x.; then
  22790. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22791. h
  22792. s///
  22793. s/^/:/
  22794. s/[ ]*$/:/
  22795. s/:\$(srcdir):/:/g
  22796. s/:\${srcdir}:/:/g
  22797. s/:@srcdir@:/:/g
  22798. s/^:*//
  22799. s/:*$//
  22800. x
  22801. s/\(=[ ]*\).*/\1/
  22802. G
  22803. s/\n//
  22804. s/^[^=]*=[ ]*$//
  22805. }'
  22806. fi
  22807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22808. fi # test -n "$CONFIG_FILES"
  22809. # Set up the scripts for CONFIG_HEADERS section.
  22810. # No need to generate them if there are no CONFIG_HEADERS.
  22811. # This happens for instance with `./config.status Makefile'.
  22812. if test -n "$CONFIG_HEADERS"; then
  22813. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22814. BEGIN {
  22815. _ACEOF
  22816. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22817. # here-document in config.status, that substitutes the proper values into
  22818. # config.h.in to produce config.h.
  22819. # Create a delimiter string that does not exist in confdefs.h, to ease
  22820. # handling of long lines.
  22821. ac_delim='%!_!# '
  22822. for ac_last_try in false false :; do
  22823. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22824. if test -z "$ac_tt"; then
  22825. break
  22826. elif $ac_last_try; then
  22827. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22828. else
  22829. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22830. fi
  22831. done
  22832. # For the awk script, D is an array of macro values keyed by name,
  22833. # likewise P contains macro parameters if any. Preserve backslash
  22834. # newline sequences.
  22835. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22836. sed -n '
  22837. s/.\{148\}/&'"$ac_delim"'/g
  22838. t rset
  22839. :rset
  22840. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22841. t def
  22842. d
  22843. :def
  22844. s/\\$//
  22845. t bsnl
  22846. s/["\\]/\\&/g
  22847. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22848. D["\1"]=" \3"/p
  22849. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22850. d
  22851. :bsnl
  22852. s/["\\]/\\&/g
  22853. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22854. D["\1"]=" \3\\\\\\n"\\/p
  22855. t cont
  22856. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22857. t cont
  22858. d
  22859. :cont
  22860. n
  22861. s/.\{148\}/&'"$ac_delim"'/g
  22862. t clear
  22863. :clear
  22864. s/\\$//
  22865. t bsnlc
  22866. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22867. d
  22868. :bsnlc
  22869. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22870. b cont
  22871. ' <confdefs.h | sed '
  22872. s/'"$ac_delim"'/"\\\
  22873. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22874. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22875. for (key in D) D_is_set[key] = 1
  22876. FS = ""
  22877. }
  22878. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22879. line = \$ 0
  22880. split(line, arg, " ")
  22881. if (arg[1] == "#") {
  22882. defundef = arg[2]
  22883. mac1 = arg[3]
  22884. } else {
  22885. defundef = substr(arg[1], 2)
  22886. mac1 = arg[2]
  22887. }
  22888. split(mac1, mac2, "(") #)
  22889. macro = mac2[1]
  22890. prefix = substr(line, 1, index(line, defundef) - 1)
  22891. if (D_is_set[macro]) {
  22892. # Preserve the white space surrounding the "#".
  22893. print prefix "define", macro P[macro] D[macro]
  22894. next
  22895. } else {
  22896. # Replace #undef with comments. This is necessary, for example,
  22897. # in the case of _POSIX_SOURCE, which is predefined and required
  22898. # on some systems where configure will not decide to define it.
  22899. if (defundef == "undef") {
  22900. print "/*", prefix defundef, macro, "*/"
  22901. next
  22902. }
  22903. }
  22904. }
  22905. { print }
  22906. _ACAWK
  22907. _ACEOF
  22908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22909. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22910. fi # test -n "$CONFIG_HEADERS"
  22911. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22912. shift
  22913. for ac_tag
  22914. do
  22915. case $ac_tag in
  22916. :[FHLC]) ac_mode=$ac_tag; continue;;
  22917. esac
  22918. case $ac_mode$ac_tag in
  22919. :[FHL]*:*);;
  22920. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22921. :[FH]-) ac_tag=-:-;;
  22922. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22923. esac
  22924. ac_save_IFS=$IFS
  22925. IFS=:
  22926. set x $ac_tag
  22927. IFS=$ac_save_IFS
  22928. shift
  22929. ac_file=$1
  22930. shift
  22931. case $ac_mode in
  22932. :L) ac_source=$1;;
  22933. :[FH])
  22934. ac_file_inputs=
  22935. for ac_f
  22936. do
  22937. case $ac_f in
  22938. -) ac_f="$ac_tmp/stdin";;
  22939. *) # Look for the file first in the build tree, then in the source tree
  22940. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22941. # because $ac_f cannot contain `:'.
  22942. test -f "$ac_f" ||
  22943. case $ac_f in
  22944. [\\/$]*) false;;
  22945. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22946. esac ||
  22947. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22948. esac
  22949. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22950. as_fn_append ac_file_inputs " '$ac_f'"
  22951. done
  22952. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22953. # use $as_me), people would be surprised to read:
  22954. # /* config.h. Generated by config.status. */
  22955. configure_input='Generated from '`
  22956. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22957. `' by configure.'
  22958. if test x"$ac_file" != x-; then
  22959. configure_input="$ac_file. $configure_input"
  22960. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22961. $as_echo "$as_me: creating $ac_file" >&6;}
  22962. fi
  22963. # Neutralize special characters interpreted by sed in replacement strings.
  22964. case $configure_input in #(
  22965. *\&* | *\|* | *\\* )
  22966. ac_sed_conf_input=`$as_echo "$configure_input" |
  22967. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22968. *) ac_sed_conf_input=$configure_input;;
  22969. esac
  22970. case $ac_tag in
  22971. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22972. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22973. esac
  22974. ;;
  22975. esac
  22976. ac_dir=`$as_dirname -- "$ac_file" ||
  22977. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22978. X"$ac_file" : 'X\(//\)[^/]' \| \
  22979. X"$ac_file" : 'X\(//\)$' \| \
  22980. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22981. $as_echo X"$ac_file" |
  22982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22983. s//\1/
  22984. q
  22985. }
  22986. /^X\(\/\/\)[^/].*/{
  22987. s//\1/
  22988. q
  22989. }
  22990. /^X\(\/\/\)$/{
  22991. s//\1/
  22992. q
  22993. }
  22994. /^X\(\/\).*/{
  22995. s//\1/
  22996. q
  22997. }
  22998. s/.*/./; q'`
  22999. as_dir="$ac_dir"; as_fn_mkdir_p
  23000. ac_builddir=.
  23001. case "$ac_dir" in
  23002. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23003. *)
  23004. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23005. # A ".." for each directory in $ac_dir_suffix.
  23006. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23007. case $ac_top_builddir_sub in
  23008. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23009. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23010. esac ;;
  23011. esac
  23012. ac_abs_top_builddir=$ac_pwd
  23013. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23014. # for backward compatibility:
  23015. ac_top_builddir=$ac_top_build_prefix
  23016. case $srcdir in
  23017. .) # We are building in place.
  23018. ac_srcdir=.
  23019. ac_top_srcdir=$ac_top_builddir_sub
  23020. ac_abs_top_srcdir=$ac_pwd ;;
  23021. [\\/]* | ?:[\\/]* ) # Absolute name.
  23022. ac_srcdir=$srcdir$ac_dir_suffix;
  23023. ac_top_srcdir=$srcdir
  23024. ac_abs_top_srcdir=$srcdir ;;
  23025. *) # Relative name.
  23026. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23027. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23028. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23029. esac
  23030. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23031. case $ac_mode in
  23032. :F)
  23033. #
  23034. # CONFIG_FILE
  23035. #
  23036. case $INSTALL in
  23037. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23038. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23039. esac
  23040. _ACEOF
  23041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23042. # If the template does not know about datarootdir, expand it.
  23043. # FIXME: This hack should be removed a few years after 2.60.
  23044. ac_datarootdir_hack=; ac_datarootdir_seen=
  23045. ac_sed_dataroot='
  23046. /datarootdir/ {
  23047. p
  23048. q
  23049. }
  23050. /@datadir@/p
  23051. /@docdir@/p
  23052. /@infodir@/p
  23053. /@localedir@/p
  23054. /@mandir@/p'
  23055. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23056. *datarootdir*) ac_datarootdir_seen=yes;;
  23057. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23059. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23060. _ACEOF
  23061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23062. ac_datarootdir_hack='
  23063. s&@datadir@&$datadir&g
  23064. s&@docdir@&$docdir&g
  23065. s&@infodir@&$infodir&g
  23066. s&@localedir@&$localedir&g
  23067. s&@mandir@&$mandir&g
  23068. s&\\\${datarootdir}&$datarootdir&g' ;;
  23069. esac
  23070. _ACEOF
  23071. # Neutralize VPATH when `$srcdir' = `.'.
  23072. # Shell code in configure.ac might set extrasub.
  23073. # FIXME: do we really want to maintain this feature?
  23074. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23075. ac_sed_extra="$ac_vpsub
  23076. $extrasub
  23077. _ACEOF
  23078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23079. :t
  23080. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23081. s|@configure_input@|$ac_sed_conf_input|;t t
  23082. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23083. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23084. s&@srcdir@&$ac_srcdir&;t t
  23085. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23086. s&@top_srcdir@&$ac_top_srcdir&;t t
  23087. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23088. s&@builddir@&$ac_builddir&;t t
  23089. s&@abs_builddir@&$ac_abs_builddir&;t t
  23090. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23091. s&@INSTALL@&$ac_INSTALL&;t t
  23092. $ac_datarootdir_hack
  23093. "
  23094. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23095. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23096. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23097. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23098. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23099. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23101. which seems to be undefined. Please make sure it is defined" >&5
  23102. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23103. which seems to be undefined. Please make sure it is defined" >&2;}
  23104. rm -f "$ac_tmp/stdin"
  23105. case $ac_file in
  23106. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23107. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23108. esac \
  23109. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23110. ;;
  23111. :H)
  23112. #
  23113. # CONFIG_HEADER
  23114. #
  23115. if test x"$ac_file" != x-; then
  23116. {
  23117. $as_echo "/* $configure_input */" \
  23118. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23119. } >"$ac_tmp/config.h" \
  23120. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23121. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23122. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23123. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23124. else
  23125. rm -f "$ac_file"
  23126. mv "$ac_tmp/config.h" "$ac_file" \
  23127. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23128. fi
  23129. else
  23130. $as_echo "/* $configure_input */" \
  23131. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23132. || as_fn_error $? "could not create -" "$LINENO" 5
  23133. fi
  23134. ;;
  23135. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23136. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23137. ;;
  23138. esac
  23139. case $ac_file$ac_mode in
  23140. "libtool":C)
  23141. # See if we are running on zsh, and set the options which allow our
  23142. # commands through without removal of \ escapes.
  23143. if test -n "${ZSH_VERSION+set}" ; then
  23144. setopt NO_GLOB_SUBST
  23145. fi
  23146. cfgfile="${ofile}T"
  23147. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23148. $RM "$cfgfile"
  23149. cat <<_LT_EOF >> "$cfgfile"
  23150. #! $SHELL
  23151. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23152. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23153. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23154. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23155. #
  23156. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23157. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23158. # Foundation, Inc.
  23159. # Written by Gordon Matzigkeit, 1996
  23160. #
  23161. # This file is part of GNU Libtool.
  23162. #
  23163. # GNU Libtool is free software; you can redistribute it and/or
  23164. # modify it under the terms of the GNU General Public License as
  23165. # published by the Free Software Foundation; either version 2 of
  23166. # the License, or (at your option) any later version.
  23167. #
  23168. # As a special exception to the GNU General Public License,
  23169. # if you distribute this file as part of a program or library that
  23170. # is built using GNU Libtool, you may include this file under the
  23171. # same distribution terms that you use for the rest of that program.
  23172. #
  23173. # GNU Libtool is distributed in the hope that it will be useful,
  23174. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23175. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23176. # GNU General Public License for more details.
  23177. #
  23178. # You should have received a copy of the GNU General Public License
  23179. # along with GNU Libtool; see the file COPYING. If not, a copy
  23180. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23181. # obtained by writing to the Free Software Foundation, Inc.,
  23182. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23183. # The names of the tagged configurations supported by this script.
  23184. available_tags="CXX "
  23185. # ### BEGIN LIBTOOL CONFIG
  23186. # Which release of libtool.m4 was used?
  23187. macro_version=$macro_version
  23188. macro_revision=$macro_revision
  23189. # Assembler program.
  23190. AS=$lt_AS
  23191. # DLL creation program.
  23192. DLLTOOL=$lt_DLLTOOL
  23193. # Object dumper program.
  23194. OBJDUMP=$lt_OBJDUMP
  23195. # Whether or not to build shared libraries.
  23196. build_libtool_libs=$enable_shared
  23197. # Whether or not to build static libraries.
  23198. build_old_libs=$enable_static
  23199. # What type of objects to build.
  23200. pic_mode=$pic_mode
  23201. # Whether or not to optimize for fast installation.
  23202. fast_install=$enable_fast_install
  23203. # Shell to use when invoking shell scripts.
  23204. SHELL=$lt_SHELL
  23205. # An echo program that protects backslashes.
  23206. ECHO=$lt_ECHO
  23207. # The PATH separator for the build system.
  23208. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23209. # The host system.
  23210. host_alias=$host_alias
  23211. host=$host
  23212. host_os=$host_os
  23213. # The build system.
  23214. build_alias=$build_alias
  23215. build=$build
  23216. build_os=$build_os
  23217. # A sed program that does not truncate output.
  23218. SED=$lt_SED
  23219. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23220. Xsed="\$SED -e 1s/^X//"
  23221. # A grep program that handles long lines.
  23222. GREP=$lt_GREP
  23223. # An ERE matcher.
  23224. EGREP=$lt_EGREP
  23225. # A literal string matcher.
  23226. FGREP=$lt_FGREP
  23227. # A BSD- or MS-compatible name lister.
  23228. NM=$lt_NM
  23229. # Whether we need soft or hard links.
  23230. LN_S=$lt_LN_S
  23231. # What is the maximum length of a command?
  23232. max_cmd_len=$max_cmd_len
  23233. # Object file suffix (normally "o").
  23234. objext=$ac_objext
  23235. # Executable file suffix (normally "").
  23236. exeext=$exeext
  23237. # whether the shell understands "unset".
  23238. lt_unset=$lt_unset
  23239. # turn spaces into newlines.
  23240. SP2NL=$lt_lt_SP2NL
  23241. # turn newlines into spaces.
  23242. NL2SP=$lt_lt_NL2SP
  23243. # convert \$build file names to \$host format.
  23244. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23245. # convert \$build files to toolchain format.
  23246. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23247. # Method to check whether dependent libraries are shared objects.
  23248. deplibs_check_method=$lt_deplibs_check_method
  23249. # Command to use when deplibs_check_method = "file_magic".
  23250. file_magic_cmd=$lt_file_magic_cmd
  23251. # How to find potential files when deplibs_check_method = "file_magic".
  23252. file_magic_glob=$lt_file_magic_glob
  23253. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23254. want_nocaseglob=$lt_want_nocaseglob
  23255. # Command to associate shared and link libraries.
  23256. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23257. # The archiver.
  23258. AR=$lt_AR
  23259. # Flags to create an archive.
  23260. AR_FLAGS=$lt_AR_FLAGS
  23261. # How to feed a file listing to the archiver.
  23262. archiver_list_spec=$lt_archiver_list_spec
  23263. # A symbol stripping program.
  23264. STRIP=$lt_STRIP
  23265. # Commands used to install an old-style archive.
  23266. RANLIB=$lt_RANLIB
  23267. old_postinstall_cmds=$lt_old_postinstall_cmds
  23268. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23269. # Whether to use a lock for old archive extraction.
  23270. lock_old_archive_extraction=$lock_old_archive_extraction
  23271. # A C compiler.
  23272. LTCC=$lt_CC
  23273. # LTCC compiler flags.
  23274. LTCFLAGS=$lt_CFLAGS
  23275. # Take the output of nm and produce a listing of raw symbols and C names.
  23276. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23277. # Transform the output of nm in a proper C declaration.
  23278. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23279. # Transform the output of nm in a C name address pair.
  23280. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23281. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23282. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23283. # Specify filename containing input files for \$NM.
  23284. nm_file_list_spec=$lt_nm_file_list_spec
  23285. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23286. lt_sysroot=$lt_sysroot
  23287. # The name of the directory that contains temporary libtool files.
  23288. objdir=$objdir
  23289. # Used to examine libraries when file_magic_cmd begins with "file".
  23290. MAGIC_CMD=$MAGIC_CMD
  23291. # Must we lock files when doing compilation?
  23292. need_locks=$lt_need_locks
  23293. # Manifest tool.
  23294. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23295. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23296. DSYMUTIL=$lt_DSYMUTIL
  23297. # Tool to change global to local symbols on Mac OS X.
  23298. NMEDIT=$lt_NMEDIT
  23299. # Tool to manipulate fat objects and archives on Mac OS X.
  23300. LIPO=$lt_LIPO
  23301. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23302. OTOOL=$lt_OTOOL
  23303. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23304. OTOOL64=$lt_OTOOL64
  23305. # Old archive suffix (normally "a").
  23306. libext=$libext
  23307. # Shared library suffix (normally ".so").
  23308. shrext_cmds=$lt_shrext_cmds
  23309. # The commands to extract the exported symbol list from a shared archive.
  23310. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23311. # Variables whose values should be saved in libtool wrapper scripts and
  23312. # restored at link time.
  23313. variables_saved_for_relink=$lt_variables_saved_for_relink
  23314. # Do we need the "lib" prefix for modules?
  23315. need_lib_prefix=$need_lib_prefix
  23316. # Do we need a version for libraries?
  23317. need_version=$need_version
  23318. # Library versioning type.
  23319. version_type=$version_type
  23320. # Shared library runtime path variable.
  23321. runpath_var=$runpath_var
  23322. # Shared library path variable.
  23323. shlibpath_var=$shlibpath_var
  23324. # Is shlibpath searched before the hard-coded library search path?
  23325. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23326. # Format of library name prefix.
  23327. libname_spec=$lt_libname_spec
  23328. # List of archive names. First name is the real one, the rest are links.
  23329. # The last name is the one that the linker finds with -lNAME
  23330. library_names_spec=$lt_library_names_spec
  23331. # The coded name of the library, if different from the real name.
  23332. soname_spec=$lt_soname_spec
  23333. # Permission mode override for installation of shared libraries.
  23334. install_override_mode=$lt_install_override_mode
  23335. # Command to use after installation of a shared archive.
  23336. postinstall_cmds=$lt_postinstall_cmds
  23337. # Command to use after uninstallation of a shared archive.
  23338. postuninstall_cmds=$lt_postuninstall_cmds
  23339. # Commands used to finish a libtool library installation in a directory.
  23340. finish_cmds=$lt_finish_cmds
  23341. # As "finish_cmds", except a single script fragment to be evaled but
  23342. # not shown.
  23343. finish_eval=$lt_finish_eval
  23344. # Whether we should hardcode library paths into libraries.
  23345. hardcode_into_libs=$hardcode_into_libs
  23346. # Compile-time system search path for libraries.
  23347. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23348. # Run-time system search path for libraries.
  23349. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23350. # Whether dlopen is supported.
  23351. dlopen_support=$enable_dlopen
  23352. # Whether dlopen of programs is supported.
  23353. dlopen_self=$enable_dlopen_self
  23354. # Whether dlopen of statically linked programs is supported.
  23355. dlopen_self_static=$enable_dlopen_self_static
  23356. # Commands to strip libraries.
  23357. old_striplib=$lt_old_striplib
  23358. striplib=$lt_striplib
  23359. # The linker used to build libraries.
  23360. LD=$lt_LD
  23361. # How to create reloadable object files.
  23362. reload_flag=$lt_reload_flag
  23363. reload_cmds=$lt_reload_cmds
  23364. # Commands used to build an old-style archive.
  23365. old_archive_cmds=$lt_old_archive_cmds
  23366. # A language specific compiler.
  23367. CC=$lt_compiler
  23368. # Is the compiler the GNU compiler?
  23369. with_gcc=$GCC
  23370. # Compiler flag to turn off builtin functions.
  23371. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23372. # Additional compiler flags for building library objects.
  23373. pic_flag=$lt_lt_prog_compiler_pic
  23374. # How to pass a linker flag through the compiler.
  23375. wl=$lt_lt_prog_compiler_wl
  23376. # Compiler flag to prevent dynamic linking.
  23377. link_static_flag=$lt_lt_prog_compiler_static
  23378. # Does compiler simultaneously support -c and -o options?
  23379. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23380. # Whether or not to add -lc for building shared libraries.
  23381. build_libtool_need_lc=$archive_cmds_need_lc
  23382. # Whether or not to disallow shared libs when runtime libs are static.
  23383. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23384. # Compiler flag to allow reflexive dlopens.
  23385. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23386. # Compiler flag to generate shared objects directly from archives.
  23387. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23388. # Whether the compiler copes with passing no objects directly.
  23389. compiler_needs_object=$lt_compiler_needs_object
  23390. # Create an old-style archive from a shared archive.
  23391. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23392. # Create a temporary old-style archive to link instead of a shared archive.
  23393. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23394. # Commands used to build a shared archive.
  23395. archive_cmds=$lt_archive_cmds
  23396. archive_expsym_cmds=$lt_archive_expsym_cmds
  23397. # Commands used to build a loadable module if different from building
  23398. # a shared archive.
  23399. module_cmds=$lt_module_cmds
  23400. module_expsym_cmds=$lt_module_expsym_cmds
  23401. # Whether we are building with GNU ld or not.
  23402. with_gnu_ld=$lt_with_gnu_ld
  23403. # Flag that allows shared libraries with undefined symbols to be built.
  23404. allow_undefined_flag=$lt_allow_undefined_flag
  23405. # Flag that enforces no undefined symbols.
  23406. no_undefined_flag=$lt_no_undefined_flag
  23407. # Flag to hardcode \$libdir into a binary during linking.
  23408. # This must work even if \$libdir does not exist
  23409. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23410. # Whether we need a single "-rpath" flag with a separated argument.
  23411. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23412. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23413. # DIR into the resulting binary.
  23414. hardcode_direct=$hardcode_direct
  23415. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23416. # DIR into the resulting binary and the resulting library dependency is
  23417. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23418. # library is relocated.
  23419. hardcode_direct_absolute=$hardcode_direct_absolute
  23420. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23421. # into the resulting binary.
  23422. hardcode_minus_L=$hardcode_minus_L
  23423. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23424. # into the resulting binary.
  23425. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23426. # Set to "yes" if building a shared library automatically hardcodes DIR
  23427. # into the library and all subsequent libraries and executables linked
  23428. # against it.
  23429. hardcode_automatic=$hardcode_automatic
  23430. # Set to yes if linker adds runtime paths of dependent libraries
  23431. # to runtime path list.
  23432. inherit_rpath=$inherit_rpath
  23433. # Whether libtool must link a program against all its dependency libraries.
  23434. link_all_deplibs=$link_all_deplibs
  23435. # Set to "yes" if exported symbols are required.
  23436. always_export_symbols=$always_export_symbols
  23437. # The commands to list exported symbols.
  23438. export_symbols_cmds=$lt_export_symbols_cmds
  23439. # Symbols that should not be listed in the preloaded symbols.
  23440. exclude_expsyms=$lt_exclude_expsyms
  23441. # Symbols that must always be exported.
  23442. include_expsyms=$lt_include_expsyms
  23443. # Commands necessary for linking programs (against libraries) with templates.
  23444. prelink_cmds=$lt_prelink_cmds
  23445. # Commands necessary for finishing linking programs.
  23446. postlink_cmds=$lt_postlink_cmds
  23447. # Specify filename containing input files.
  23448. file_list_spec=$lt_file_list_spec
  23449. # How to hardcode a shared library path into an executable.
  23450. hardcode_action=$hardcode_action
  23451. # The directories searched by this compiler when creating a shared library.
  23452. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23453. # Dependencies to place before and after the objects being linked to
  23454. # create a shared library.
  23455. predep_objects=$lt_predep_objects
  23456. postdep_objects=$lt_postdep_objects
  23457. predeps=$lt_predeps
  23458. postdeps=$lt_postdeps
  23459. # The library search path used internally by the compiler when linking
  23460. # a shared library.
  23461. compiler_lib_search_path=$lt_compiler_lib_search_path
  23462. # ### END LIBTOOL CONFIG
  23463. _LT_EOF
  23464. case $host_os in
  23465. aix3*)
  23466. cat <<\_LT_EOF >> "$cfgfile"
  23467. # AIX sometimes has problems with the GCC collect2 program. For some
  23468. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23469. # vanish in a puff of smoke.
  23470. if test "X${COLLECT_NAMES+set}" != Xset; then
  23471. COLLECT_NAMES=
  23472. export COLLECT_NAMES
  23473. fi
  23474. _LT_EOF
  23475. ;;
  23476. esac
  23477. ltmain="$ac_aux_dir/ltmain.sh"
  23478. # We use sed instead of cat because bash on DJGPP gets confused if
  23479. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23480. # text mode, it properly converts lines to CR/LF. This bash problem
  23481. # is reportedly fixed, but why not run on old versions too?
  23482. sed '$q' "$ltmain" >> "$cfgfile" \
  23483. || (rm -f "$cfgfile"; exit 1)
  23484. if test x"$xsi_shell" = xyes; then
  23485. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23486. func_dirname ()\
  23487. {\
  23488. \ case ${1} in\
  23489. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23490. \ * ) func_dirname_result="${3}" ;;\
  23491. \ esac\
  23492. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23493. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23494. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23495. test 0 -eq $? || _lt_function_replace_fail=:
  23496. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23497. func_basename ()\
  23498. {\
  23499. \ func_basename_result="${1##*/}"\
  23500. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23501. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23502. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23503. test 0 -eq $? || _lt_function_replace_fail=:
  23504. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23505. func_dirname_and_basename ()\
  23506. {\
  23507. \ case ${1} in\
  23508. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23509. \ * ) func_dirname_result="${3}" ;;\
  23510. \ esac\
  23511. \ func_basename_result="${1##*/}"\
  23512. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23513. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23514. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23515. test 0 -eq $? || _lt_function_replace_fail=:
  23516. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23517. func_stripname ()\
  23518. {\
  23519. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23520. \ # positional parameters, so assign one to ordinary parameter first.\
  23521. \ func_stripname_result=${3}\
  23522. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23523. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23524. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23525. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23526. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23527. test 0 -eq $? || _lt_function_replace_fail=:
  23528. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23529. func_split_long_opt ()\
  23530. {\
  23531. \ func_split_long_opt_name=${1%%=*}\
  23532. \ func_split_long_opt_arg=${1#*=}\
  23533. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23534. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23535. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23536. test 0 -eq $? || _lt_function_replace_fail=:
  23537. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23538. func_split_short_opt ()\
  23539. {\
  23540. \ func_split_short_opt_arg=${1#??}\
  23541. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23542. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23543. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23544. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23545. test 0 -eq $? || _lt_function_replace_fail=:
  23546. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23547. func_lo2o ()\
  23548. {\
  23549. \ case ${1} in\
  23550. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23551. \ *) func_lo2o_result=${1} ;;\
  23552. \ esac\
  23553. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23554. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23555. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23556. test 0 -eq $? || _lt_function_replace_fail=:
  23557. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23558. func_xform ()\
  23559. {\
  23560. func_xform_result=${1%.*}.lo\
  23561. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23562. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23563. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23564. test 0 -eq $? || _lt_function_replace_fail=:
  23565. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23566. func_arith ()\
  23567. {\
  23568. func_arith_result=$(( $* ))\
  23569. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23570. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23571. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23572. test 0 -eq $? || _lt_function_replace_fail=:
  23573. sed -e '/^func_len ()$/,/^} # func_len /c\
  23574. func_len ()\
  23575. {\
  23576. func_len_result=${#1}\
  23577. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23578. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23579. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23580. test 0 -eq $? || _lt_function_replace_fail=:
  23581. fi
  23582. if test x"$lt_shell_append" = xyes; then
  23583. sed -e '/^func_append ()$/,/^} # func_append /c\
  23584. func_append ()\
  23585. {\
  23586. eval "${1}+=\\${2}"\
  23587. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23588. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23589. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23590. test 0 -eq $? || _lt_function_replace_fail=:
  23591. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23592. func_append_quoted ()\
  23593. {\
  23594. \ func_quote_for_eval "${2}"\
  23595. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23596. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23597. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23598. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23599. test 0 -eq $? || _lt_function_replace_fail=:
  23600. # Save a `func_append' function call where possible by direct use of '+='
  23601. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23602. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23603. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23604. test 0 -eq $? || _lt_function_replace_fail=:
  23605. else
  23606. # Save a `func_append' function call even when '+=' is not available
  23607. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23608. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23609. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23610. test 0 -eq $? || _lt_function_replace_fail=:
  23611. fi
  23612. if test x"$_lt_function_replace_fail" = x":"; then
  23613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23614. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23615. fi
  23616. mv -f "$cfgfile" "$ofile" ||
  23617. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23618. chmod +x "$ofile"
  23619. cat <<_LT_EOF >> "$ofile"
  23620. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23621. # The linker used to build libraries.
  23622. LD=$lt_LD_CXX
  23623. # How to create reloadable object files.
  23624. reload_flag=$lt_reload_flag_CXX
  23625. reload_cmds=$lt_reload_cmds_CXX
  23626. # Commands used to build an old-style archive.
  23627. old_archive_cmds=$lt_old_archive_cmds_CXX
  23628. # A language specific compiler.
  23629. CC=$lt_compiler_CXX
  23630. # Is the compiler the GNU compiler?
  23631. with_gcc=$GCC_CXX
  23632. # Compiler flag to turn off builtin functions.
  23633. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23634. # Additional compiler flags for building library objects.
  23635. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23636. # How to pass a linker flag through the compiler.
  23637. wl=$lt_lt_prog_compiler_wl_CXX
  23638. # Compiler flag to prevent dynamic linking.
  23639. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23640. # Does compiler simultaneously support -c and -o options?
  23641. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23642. # Whether or not to add -lc for building shared libraries.
  23643. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23644. # Whether or not to disallow shared libs when runtime libs are static.
  23645. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23646. # Compiler flag to allow reflexive dlopens.
  23647. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23648. # Compiler flag to generate shared objects directly from archives.
  23649. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23650. # Whether the compiler copes with passing no objects directly.
  23651. compiler_needs_object=$lt_compiler_needs_object_CXX
  23652. # Create an old-style archive from a shared archive.
  23653. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23654. # Create a temporary old-style archive to link instead of a shared archive.
  23655. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23656. # Commands used to build a shared archive.
  23657. archive_cmds=$lt_archive_cmds_CXX
  23658. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23659. # Commands used to build a loadable module if different from building
  23660. # a shared archive.
  23661. module_cmds=$lt_module_cmds_CXX
  23662. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23663. # Whether we are building with GNU ld or not.
  23664. with_gnu_ld=$lt_with_gnu_ld_CXX
  23665. # Flag that allows shared libraries with undefined symbols to be built.
  23666. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23667. # Flag that enforces no undefined symbols.
  23668. no_undefined_flag=$lt_no_undefined_flag_CXX
  23669. # Flag to hardcode \$libdir into a binary during linking.
  23670. # This must work even if \$libdir does not exist
  23671. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23672. # Whether we need a single "-rpath" flag with a separated argument.
  23673. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23674. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23675. # DIR into the resulting binary.
  23676. hardcode_direct=$hardcode_direct_CXX
  23677. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23678. # DIR into the resulting binary and the resulting library dependency is
  23679. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23680. # library is relocated.
  23681. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23682. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23683. # into the resulting binary.
  23684. hardcode_minus_L=$hardcode_minus_L_CXX
  23685. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23686. # into the resulting binary.
  23687. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23688. # Set to "yes" if building a shared library automatically hardcodes DIR
  23689. # into the library and all subsequent libraries and executables linked
  23690. # against it.
  23691. hardcode_automatic=$hardcode_automatic_CXX
  23692. # Set to yes if linker adds runtime paths of dependent libraries
  23693. # to runtime path list.
  23694. inherit_rpath=$inherit_rpath_CXX
  23695. # Whether libtool must link a program against all its dependency libraries.
  23696. link_all_deplibs=$link_all_deplibs_CXX
  23697. # Set to "yes" if exported symbols are required.
  23698. always_export_symbols=$always_export_symbols_CXX
  23699. # The commands to list exported symbols.
  23700. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23701. # Symbols that should not be listed in the preloaded symbols.
  23702. exclude_expsyms=$lt_exclude_expsyms_CXX
  23703. # Symbols that must always be exported.
  23704. include_expsyms=$lt_include_expsyms_CXX
  23705. # Commands necessary for linking programs (against libraries) with templates.
  23706. prelink_cmds=$lt_prelink_cmds_CXX
  23707. # Commands necessary for finishing linking programs.
  23708. postlink_cmds=$lt_postlink_cmds_CXX
  23709. # Specify filename containing input files.
  23710. file_list_spec=$lt_file_list_spec_CXX
  23711. # How to hardcode a shared library path into an executable.
  23712. hardcode_action=$hardcode_action_CXX
  23713. # The directories searched by this compiler when creating a shared library.
  23714. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23715. # Dependencies to place before and after the objects being linked to
  23716. # create a shared library.
  23717. predep_objects=$lt_predep_objects_CXX
  23718. postdep_objects=$lt_postdep_objects_CXX
  23719. predeps=$lt_predeps_CXX
  23720. postdeps=$lt_postdeps_CXX
  23721. # The library search path used internally by the compiler when linking
  23722. # a shared library.
  23723. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23724. # ### END LIBTOOL TAG CONFIG: CXX
  23725. _LT_EOF
  23726. ;;
  23727. "sdl2_config":C) chmod a+x sdl2-config ;;
  23728. "summary":C) echo -en "$SUMMARY" ;;
  23729. esac
  23730. done # for ac_tag
  23731. as_fn_exit 0
  23732. _ACEOF
  23733. ac_clean_files=$ac_clean_files_save
  23734. test $ac_write_fail = 0 ||
  23735. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23736. # configure is writing to config.log, and then calls config.status.
  23737. # config.status does its own redirection, appending to config.log.
  23738. # Unfortunately, on DOS this fails, as config.log is still kept open
  23739. # by configure, so config.status won't be able to write to it; its
  23740. # output is simply discarded. So we exec the FD to /dev/null,
  23741. # effectively closing config.log, so it can be properly (re)opened and
  23742. # appended to by config.status. When coming back to configure, we
  23743. # need to make the FD available again.
  23744. if test "$no_create" != yes; then
  23745. ac_cs_success=:
  23746. ac_config_status_args=
  23747. test "$silent" = yes &&
  23748. ac_config_status_args="$ac_config_status_args --quiet"
  23749. exec 5>/dev/null
  23750. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23751. exec 5>>config.log
  23752. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23753. # would make configure fail if this is the last instruction.
  23754. $ac_cs_success || as_fn_exit 1
  23755. fi
  23756. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23758. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23759. fi