configure 883 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. DECOR_LIBS
  625. DECOR_CFLAGS
  626. FUSIONSOUND_LIBS
  627. FUSIONSOUND_CFLAGS
  628. ARTSCONFIG
  629. PULSEAUDIO_LIBS
  630. PULSEAUDIO_CFLAGS
  631. PIPEWIRE_LIBS
  632. PIPEWIRE_CFLAGS
  633. ESD_LIBS
  634. ESD_CFLAGS
  635. ESD_CONFIG
  636. JACK_LIBS
  637. JACK_CFLAGS
  638. ALSA_LIBS
  639. ALSA_CFLAGS
  640. POW_LIB
  641. LIBOBJS
  642. ALLOCA
  643. LIBTOOLLINKERTAG
  644. LINKER
  645. PKG_CONFIG_LIBDIR
  646. PKG_CONFIG_PATH
  647. PKG_CONFIG
  648. SET_MAKE
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. CXXCPP
  653. ac_ct_CXX
  654. CXXFLAGS
  655. CXX
  656. LT_AGE
  657. LT_REVISION
  658. LT_CURRENT
  659. LT_RELEASE
  660. RC
  661. CPP
  662. LT_SYS_LIBRARY_PATH
  663. OTOOL64
  664. OTOOL
  665. LIPO
  666. NMEDIT
  667. DSYMUTIL
  668. MANIFEST_TOOL
  669. AWK
  670. RANLIB
  671. STRIP
  672. ac_ct_AR
  673. AR
  674. LN_S
  675. NM
  676. ac_ct_DUMPBIN
  677. DUMPBIN
  678. LD
  679. FGREP
  680. EGREP
  681. GREP
  682. SED
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. LIBTOOL
  699. OBJDUMP
  700. DLLTOOL
  701. AS
  702. SDL_VERSION
  703. SDL_BINARY_AGE
  704. SDL_INTERFACE_AGE
  705. SDL_MICRO_VERSION
  706. SDL_MINOR_VERSION
  707. SDL_MAJOR_VERSION
  708. target_alias
  709. host_alias
  710. build_alias
  711. LIBS
  712. ECHO_T
  713. ECHO_N
  714. ECHO_C
  715. DEFS
  716. mandir
  717. localedir
  718. libdir
  719. psdir
  720. pdfdir
  721. dvidir
  722. htmldir
  723. infodir
  724. docdir
  725. oldincludedir
  726. includedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_aix_soname
  754. with_gnu_ld
  755. with_sysroot
  756. enable_libtool_lock
  757. enable_assertions
  758. enable_dependency_tracking
  759. enable_libc
  760. enable_gcc_atomics
  761. enable_atomic
  762. enable_audio
  763. enable_video
  764. enable_render
  765. enable_events
  766. enable_joystick
  767. enable_haptic
  768. enable_hidapi
  769. enable_sensor
  770. enable_power
  771. enable_filesystem
  772. enable_threads
  773. enable_timers
  774. enable_file
  775. enable_misc
  776. enable_locale
  777. enable_loadso
  778. enable_cpuinfo
  779. enable_assembly
  780. enable_ssemath
  781. enable_mmx
  782. enable_3dnow
  783. enable_sse
  784. enable_sse2
  785. enable_sse3
  786. enable_altivec
  787. enable_oss
  788. enable_alsa
  789. with_alsa_prefix
  790. with_alsa_inc_prefix
  791. enable_alsatest
  792. enable_alsa_shared
  793. enable_jack
  794. enable_jack_shared
  795. enable_esd
  796. with_esd_prefix
  797. with_esd_exec_prefix
  798. enable_esdtest
  799. enable_esd_shared
  800. enable_pipewire
  801. enable_pipewire_shared
  802. enable_pulseaudio
  803. enable_pulseaudio_shared
  804. enable_arts
  805. enable_arts_shared
  806. enable_nas
  807. enable_nas_shared
  808. enable_sndio
  809. enable_sndio_shared
  810. enable_fusionsound
  811. enable_fusionsound_shared
  812. enable_diskaudio
  813. enable_dummyaudio
  814. enable_libsamplerate
  815. enable_libsamplerate_shared
  816. enable_arm_simd
  817. enable_arm_neon
  818. enable_video_wayland
  819. enable_video_wayland_qt_touch
  820. enable_wayland_shared
  821. enable_libdecor
  822. enable_libdecor_shared
  823. enable_video_rpi
  824. enable_video_x11
  825. with_x
  826. enable_x11_shared
  827. enable_video_x11_xcursor
  828. enable_video_x11_xdbe
  829. enable_video_x11_xinput
  830. enable_video_x11_xfixes
  831. enable_video_x11_xrandr
  832. enable_video_x11_scrnsaver
  833. enable_video_x11_xshape
  834. enable_video_vivante
  835. enable_video_cocoa
  836. enable_video_metal
  837. enable_render_metal
  838. enable_video_directfb
  839. enable_directfb_shared
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl2_config
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CPP
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. JACK_CFLAGS
  888. JACK_LIBS
  889. PIPEWIRE_CFLAGS
  890. PIPEWIRE_LIBS
  891. PULSEAUDIO_CFLAGS
  892. PULSEAUDIO_LIBS
  893. FUSIONSOUND_CFLAGS
  894. FUSIONSOUND_LIBS
  895. DECOR_CFLAGS
  896. DECOR_LIBS
  897. RPI_CFLAGS
  898. RPI_LIBS
  899. XMKMF
  900. DIRECTFB_CFLAGS
  901. DIRECTFB_LIBS
  902. LIBDRM_CFLAGS
  903. LIBDRM_LIBS
  904. LIBGBM_CFLAGS
  905. LIBGBM_LIBS
  906. DBUS_CFLAGS
  907. DBUS_LIBS
  908. IBUS_CFLAGS
  909. IBUS_LIBS
  910. LIBUSB_CFLAGS
  911. LIBUSB_LIBS'
  912. # Initialize some variables set by options.
  913. ac_init_help=
  914. ac_init_version=false
  915. ac_unrecognized_opts=
  916. ac_unrecognized_sep=
  917. # The variables have the same names as the options, with
  918. # dashes changed to underlines.
  919. cache_file=/dev/null
  920. exec_prefix=NONE
  921. no_create=
  922. no_recursion=
  923. prefix=NONE
  924. program_prefix=NONE
  925. program_suffix=NONE
  926. program_transform_name=s,x,x,
  927. silent=
  928. site=
  929. srcdir=
  930. verbose=
  931. x_includes=NONE
  932. x_libraries=NONE
  933. # Installation directory options.
  934. # These are left unexpanded so users can "make install exec_prefix=/foo"
  935. # and all the variables that are supposed to be based on exec_prefix
  936. # by default will actually change.
  937. # Use braces instead of parens because sh, perl, etc. also accept them.
  938. # (The list follows the same order as the GNU Coding Standards.)
  939. bindir='${exec_prefix}/bin'
  940. sbindir='${exec_prefix}/sbin'
  941. libexecdir='${exec_prefix}/libexec'
  942. datarootdir='${prefix}/share'
  943. datadir='${datarootdir}'
  944. sysconfdir='${prefix}/etc'
  945. sharedstatedir='${prefix}/com'
  946. localstatedir='${prefix}/var'
  947. includedir='${prefix}/include'
  948. oldincludedir='/usr/include'
  949. docdir='${datarootdir}/doc/${PACKAGE}'
  950. infodir='${datarootdir}/info'
  951. htmldir='${docdir}'
  952. dvidir='${docdir}'
  953. pdfdir='${docdir}'
  954. psdir='${docdir}'
  955. libdir='${exec_prefix}/lib'
  956. localedir='${datarootdir}/locale'
  957. mandir='${datarootdir}/man'
  958. ac_prev=
  959. ac_dashdash=
  960. for ac_option
  961. do
  962. # If the previous option needs an argument, assign it.
  963. if test -n "$ac_prev"; then
  964. eval $ac_prev=\$ac_option
  965. ac_prev=
  966. continue
  967. fi
  968. case $ac_option in
  969. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  970. *=) ac_optarg= ;;
  971. *) ac_optarg=yes ;;
  972. esac
  973. # Accept the important Cygnus configure options, so we can diagnose typos.
  974. case $ac_dashdash$ac_option in
  975. --)
  976. ac_dashdash=yes ;;
  977. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  978. ac_prev=bindir ;;
  979. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  980. bindir=$ac_optarg ;;
  981. -build | --build | --buil | --bui | --bu)
  982. ac_prev=build_alias ;;
  983. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  984. build_alias=$ac_optarg ;;
  985. -cache-file | --cache-file | --cache-fil | --cache-fi \
  986. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  987. ac_prev=cache_file ;;
  988. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  989. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  990. cache_file=$ac_optarg ;;
  991. --config-cache | -C)
  992. cache_file=config.cache ;;
  993. -datadir | --datadir | --datadi | --datad)
  994. ac_prev=datadir ;;
  995. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  996. datadir=$ac_optarg ;;
  997. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  998. | --dataroo | --dataro | --datar)
  999. ac_prev=datarootdir ;;
  1000. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1001. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1002. datarootdir=$ac_optarg ;;
  1003. -disable-* | --disable-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid feature name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "enable_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval enable_$ac_useropt=no ;;
  1018. -docdir | --docdir | --docdi | --doc | --do)
  1019. ac_prev=docdir ;;
  1020. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1021. docdir=$ac_optarg ;;
  1022. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1023. ac_prev=dvidir ;;
  1024. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1025. dvidir=$ac_optarg ;;
  1026. -enable-* | --enable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=\$ac_optarg ;;
  1041. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1042. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1043. | --exec | --exe | --ex)
  1044. ac_prev=exec_prefix ;;
  1045. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1046. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1047. | --exec=* | --exe=* | --ex=*)
  1048. exec_prefix=$ac_optarg ;;
  1049. -gas | --gas | --ga | --g)
  1050. # Obsolete; use --with-gas.
  1051. with_gas=yes ;;
  1052. -help | --help | --hel | --he | -h)
  1053. ac_init_help=long ;;
  1054. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1055. ac_init_help=recursive ;;
  1056. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1057. ac_init_help=short ;;
  1058. -host | --host | --hos | --ho)
  1059. ac_prev=host_alias ;;
  1060. -host=* | --host=* | --hos=* | --ho=*)
  1061. host_alias=$ac_optarg ;;
  1062. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1063. ac_prev=htmldir ;;
  1064. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1065. | --ht=*)
  1066. htmldir=$ac_optarg ;;
  1067. -includedir | --includedir | --includedi | --included | --include \
  1068. | --includ | --inclu | --incl | --inc)
  1069. ac_prev=includedir ;;
  1070. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1071. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1072. includedir=$ac_optarg ;;
  1073. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1074. ac_prev=infodir ;;
  1075. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1076. infodir=$ac_optarg ;;
  1077. -libdir | --libdir | --libdi | --libd)
  1078. ac_prev=libdir ;;
  1079. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1080. libdir=$ac_optarg ;;
  1081. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1082. | --libexe | --libex | --libe)
  1083. ac_prev=libexecdir ;;
  1084. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1085. | --libexe=* | --libex=* | --libe=*)
  1086. libexecdir=$ac_optarg ;;
  1087. -localedir | --localedir | --localedi | --localed | --locale)
  1088. ac_prev=localedir ;;
  1089. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1090. localedir=$ac_optarg ;;
  1091. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1092. | --localstate | --localstat | --localsta | --localst | --locals)
  1093. ac_prev=localstatedir ;;
  1094. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1095. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1096. localstatedir=$ac_optarg ;;
  1097. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1098. ac_prev=mandir ;;
  1099. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1100. mandir=$ac_optarg ;;
  1101. -nfp | --nfp | --nf)
  1102. # Obsolete; use --without-fp.
  1103. with_fp=no ;;
  1104. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1105. | --no-cr | --no-c | -n)
  1106. no_create=yes ;;
  1107. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1108. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1109. no_recursion=yes ;;
  1110. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1111. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1112. | --oldin | --oldi | --old | --ol | --o)
  1113. ac_prev=oldincludedir ;;
  1114. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1115. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1116. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1117. oldincludedir=$ac_optarg ;;
  1118. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1119. ac_prev=prefix ;;
  1120. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1121. prefix=$ac_optarg ;;
  1122. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1123. | --program-pre | --program-pr | --program-p)
  1124. ac_prev=program_prefix ;;
  1125. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1126. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1127. program_prefix=$ac_optarg ;;
  1128. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1129. | --program-suf | --program-su | --program-s)
  1130. ac_prev=program_suffix ;;
  1131. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1132. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1133. program_suffix=$ac_optarg ;;
  1134. -program-transform-name | --program-transform-name \
  1135. | --program-transform-nam | --program-transform-na \
  1136. | --program-transform-n | --program-transform- \
  1137. | --program-transform | --program-transfor \
  1138. | --program-transfo | --program-transf \
  1139. | --program-trans | --program-tran \
  1140. | --progr-tra | --program-tr | --program-t)
  1141. ac_prev=program_transform_name ;;
  1142. -program-transform-name=* | --program-transform-name=* \
  1143. | --program-transform-nam=* | --program-transform-na=* \
  1144. | --program-transform-n=* | --program-transform-=* \
  1145. | --program-transform=* | --program-transfor=* \
  1146. | --program-transfo=* | --program-transf=* \
  1147. | --program-trans=* | --program-tran=* \
  1148. | --progr-tra=* | --program-tr=* | --program-t=*)
  1149. program_transform_name=$ac_optarg ;;
  1150. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1151. ac_prev=pdfdir ;;
  1152. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1153. pdfdir=$ac_optarg ;;
  1154. -psdir | --psdir | --psdi | --psd | --ps)
  1155. ac_prev=psdir ;;
  1156. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1157. psdir=$ac_optarg ;;
  1158. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1159. | -silent | --silent | --silen | --sile | --sil)
  1160. silent=yes ;;
  1161. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1162. ac_prev=sbindir ;;
  1163. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1164. | --sbi=* | --sb=*)
  1165. sbindir=$ac_optarg ;;
  1166. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1167. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1168. | --sharedst | --shareds | --shared | --share | --shar \
  1169. | --sha | --sh)
  1170. ac_prev=sharedstatedir ;;
  1171. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1172. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1173. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1174. | --sha=* | --sh=*)
  1175. sharedstatedir=$ac_optarg ;;
  1176. -site | --site | --sit)
  1177. ac_prev=site ;;
  1178. -site=* | --site=* | --sit=*)
  1179. site=$ac_optarg ;;
  1180. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1181. ac_prev=srcdir ;;
  1182. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1183. srcdir=$ac_optarg ;;
  1184. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1185. | --syscon | --sysco | --sysc | --sys | --sy)
  1186. ac_prev=sysconfdir ;;
  1187. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1188. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1189. sysconfdir=$ac_optarg ;;
  1190. -target | --target | --targe | --targ | --tar | --ta | --t)
  1191. ac_prev=target_alias ;;
  1192. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1193. target_alias=$ac_optarg ;;
  1194. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1195. verbose=yes ;;
  1196. -version | --version | --versio | --versi | --vers | -V)
  1197. ac_init_version=: ;;
  1198. -with-* | --with-*)
  1199. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1200. # Reject names that are not valid shell variable names.
  1201. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1202. as_fn_error $? "invalid package name: $ac_useropt"
  1203. ac_useropt_orig=$ac_useropt
  1204. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1205. case $ac_user_opts in
  1206. *"
  1207. "with_$ac_useropt"
  1208. "*) ;;
  1209. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1210. ac_unrecognized_sep=', ';;
  1211. esac
  1212. eval with_$ac_useropt=\$ac_optarg ;;
  1213. -without-* | --without-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error $? "invalid package name: $ac_useropt"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=no ;;
  1228. --x)
  1229. # Obsolete; use --with-x.
  1230. with_x=yes ;;
  1231. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1232. | --x-incl | --x-inc | --x-in | --x-i)
  1233. ac_prev=x_includes ;;
  1234. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1235. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1236. x_includes=$ac_optarg ;;
  1237. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1238. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1239. ac_prev=x_libraries ;;
  1240. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1241. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1242. x_libraries=$ac_optarg ;;
  1243. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1244. Try \`$0 --help' for more information"
  1245. ;;
  1246. *=*)
  1247. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1248. # Reject names that are not valid shell variable names.
  1249. case $ac_envvar in #(
  1250. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1251. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1252. esac
  1253. eval $ac_envvar=\$ac_optarg
  1254. export $ac_envvar ;;
  1255. *)
  1256. # FIXME: should be removed in autoconf 3.0.
  1257. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1258. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1259. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1260. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1261. ;;
  1262. esac
  1263. done
  1264. if test -n "$ac_prev"; then
  1265. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1266. as_fn_error $? "missing argument to $ac_option"
  1267. fi
  1268. if test -n "$ac_unrecognized_opts"; then
  1269. case $enable_option_checking in
  1270. no) ;;
  1271. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1272. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1273. esac
  1274. fi
  1275. # Check all directory arguments for consistency.
  1276. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1277. datadir sysconfdir sharedstatedir localstatedir includedir \
  1278. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1279. libdir localedir mandir
  1280. do
  1281. eval ac_val=\$$ac_var
  1282. # Remove trailing slashes.
  1283. case $ac_val in
  1284. */ )
  1285. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1286. eval $ac_var=\$ac_val;;
  1287. esac
  1288. # Be sure to have absolute directory names.
  1289. case $ac_val in
  1290. [\\/$]* | ?:[\\/]* ) continue;;
  1291. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1292. esac
  1293. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1294. done
  1295. # There might be people who depend on the old broken behavior: `$host'
  1296. # used to hold the argument of --host etc.
  1297. # FIXME: To remove some day.
  1298. build=$build_alias
  1299. host=$host_alias
  1300. target=$target_alias
  1301. # FIXME: To remove some day.
  1302. if test "x$host_alias" != x; then
  1303. if test "x$build_alias" = x; then
  1304. cross_compiling=maybe
  1305. elif test "x$build_alias" != "x$host_alias"; then
  1306. cross_compiling=yes
  1307. fi
  1308. fi
  1309. ac_tool_prefix=
  1310. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1311. test "$silent" = yes && exec 6>/dev/null
  1312. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1313. ac_ls_di=`ls -di .` &&
  1314. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1315. as_fn_error $? "working directory cannot be determined"
  1316. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1317. as_fn_error $? "pwd does not report name of working directory"
  1318. # Find the source files, if location was not specified.
  1319. if test -z "$srcdir"; then
  1320. ac_srcdir_defaulted=yes
  1321. # Try the directory containing this script, then the parent directory.
  1322. ac_confdir=`$as_dirname -- "$as_myself" ||
  1323. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1324. X"$as_myself" : 'X\(//\)[^/]' \| \
  1325. X"$as_myself" : 'X\(//\)$' \| \
  1326. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1327. $as_echo X"$as_myself" |
  1328. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)[^/].*/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\/\)$/{
  1337. s//\1/
  1338. q
  1339. }
  1340. /^X\(\/\).*/{
  1341. s//\1/
  1342. q
  1343. }
  1344. s/.*/./; q'`
  1345. srcdir=$ac_confdir
  1346. if test ! -r "$srcdir/$ac_unique_file"; then
  1347. srcdir=..
  1348. fi
  1349. else
  1350. ac_srcdir_defaulted=no
  1351. fi
  1352. if test ! -r "$srcdir/$ac_unique_file"; then
  1353. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1354. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1355. fi
  1356. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1357. ac_abs_confdir=`(
  1358. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1359. pwd)`
  1360. # When building in place, set srcdir=.
  1361. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1362. srcdir=.
  1363. fi
  1364. # Remove unnecessary trailing slashes from srcdir.
  1365. # Double slashes in file names in object file debugging info
  1366. # mess up M-x gdb in Emacs.
  1367. case $srcdir in
  1368. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1369. esac
  1370. for ac_var in $ac_precious_vars; do
  1371. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_env_${ac_var}_value=\$${ac_var}
  1373. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1375. done
  1376. #
  1377. # Report the --help message.
  1378. #
  1379. if test "$ac_init_help" = "long"; then
  1380. # Omit some internal or obsolete options to make the list less imposing.
  1381. # This message is too long to be a string in the A/UX 3.1 sh.
  1382. cat <<_ACEOF
  1383. \`configure' configures this package to adapt to many kinds of systems.
  1384. Usage: $0 [OPTION]... [VAR=VALUE]...
  1385. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1386. VAR=VALUE. See below for descriptions of some of the useful variables.
  1387. Defaults for the options are specified in brackets.
  1388. Configuration:
  1389. -h, --help display this help and exit
  1390. --help=short display options specific to this package
  1391. --help=recursive display the short help of all the included packages
  1392. -V, --version display version information and exit
  1393. -q, --quiet, --silent do not print \`checking ...' messages
  1394. --cache-file=FILE cache test results in FILE [disabled]
  1395. -C, --config-cache alias for \`--cache-file=config.cache'
  1396. -n, --no-create do not create output files
  1397. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1398. Installation directories:
  1399. --prefix=PREFIX install architecture-independent files in PREFIX
  1400. [$ac_default_prefix]
  1401. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1402. [PREFIX]
  1403. By default, \`make install' will install all the files in
  1404. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1405. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1406. for instance \`--prefix=\$HOME'.
  1407. For better control, use the options below.
  1408. Fine tuning of the installation directories:
  1409. --bindir=DIR user executables [EPREFIX/bin]
  1410. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1411. --libexecdir=DIR program executables [EPREFIX/libexec]
  1412. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1413. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1414. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1415. --libdir=DIR object code libraries [EPREFIX/lib]
  1416. --includedir=DIR C header files [PREFIX/include]
  1417. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1418. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1419. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1420. --infodir=DIR info documentation [DATAROOTDIR/info]
  1421. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1422. --mandir=DIR man documentation [DATAROOTDIR/man]
  1423. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1424. --htmldir=DIR html documentation [DOCDIR]
  1425. --dvidir=DIR dvi documentation [DOCDIR]
  1426. --pdfdir=DIR pdf documentation [DOCDIR]
  1427. --psdir=DIR ps documentation [DOCDIR]
  1428. _ACEOF
  1429. cat <<\_ACEOF
  1430. X features:
  1431. --x-includes=DIR X include files are in DIR
  1432. --x-libraries=DIR X library files are in DIR
  1433. System types:
  1434. --build=BUILD configure for building on BUILD [guessed]
  1435. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. cat <<\_ACEOF
  1440. Optional Features:
  1441. --disable-option-checking ignore unrecognized --enable/--with options
  1442. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1443. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1444. --enable-shared[=PKGS] build shared libraries [default=yes]
  1445. --enable-static[=PKGS] build static libraries [default=yes]
  1446. --enable-fast-install[=PKGS]
  1447. optimize for fast installation [default=yes]
  1448. --disable-libtool-lock avoid locking (might break parallel builds)
  1449. --enable-assertions Enable internal sanity checks
  1450. (auto/disabled/release/enabled/paranoid)
  1451. [default=auto]
  1452. --enable-dependency-tracking
  1453. Use gcc -MMD -MT dependency tracking [default=yes]
  1454. --enable-libc Use the system C library [default=yes]
  1455. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1456. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1457. --enable-audio Enable the audio subsystem [default=yes]
  1458. --enable-video Enable the video subsystem [default=yes]
  1459. --enable-render Enable the render subsystem [default=yes]
  1460. --enable-events Enable the events subsystem [default=yes]
  1461. --enable-joystick Enable the joystick subsystem [default=yes]
  1462. --enable-haptic Enable the haptic (force feedback) subsystem
  1463. [default=yes]
  1464. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1465. --enable-sensor Enable the sensor subsystem [default=yes]
  1466. --enable-power Enable the power subsystem [default=yes]
  1467. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1468. --enable-threads Enable the threading subsystem [default=yes]
  1469. --enable-timers Enable the timer subsystem [default=yes]
  1470. --enable-file Enable the file subsystem [default=yes]
  1471. --enable-misc Enable the misc subsystem [default=yes]
  1472. --enable-locale Enable the locale subsystem [default=yes]
  1473. --enable-loadso Enable the shared object loading subsystem
  1474. [default=yes]
  1475. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1476. --enable-assembly Enable assembly routines [default=yes]
  1477. --enable-ssemath Allow GCC to use SSE floating point math
  1478. [default=maybe]
  1479. --enable-mmx use MMX assembly routines [default=yes]
  1480. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1481. --enable-sse use SSE assembly routines [default=yes]
  1482. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1483. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1484. --enable-altivec use Altivec assembly routines [default=yes]
  1485. --enable-oss support the OSS audio API [default=maybe]
  1486. --enable-alsa support the ALSA audio API [default=yes]
  1487. --disable-alsatest Do not try to compile and run a test Alsa program
  1488. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1489. --enable-jack use JACK audio [default=yes]
  1490. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1491. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1492. --disable-esdtest Do not try to compile and run a test ESD program
  1493. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1494. --enable-pipewire use Pipewire audio [default=yes]
  1495. --enable-pipewire-shared
  1496. dynamically load Pipewire support [default=yes]
  1497. --enable-pulseaudio use PulseAudio [default=yes]
  1498. --enable-pulseaudio-shared
  1499. dynamically load PulseAudio support [default=yes]
  1500. --enable-arts support the Analog Real Time Synthesizer
  1501. [default=yes]
  1502. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1503. --enable-nas support the NAS audio API [default=yes]
  1504. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1505. --enable-sndio support the sndio audio API [default=yes]
  1506. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1507. --enable-fusionsound use FusionSound audio driver [default=no]
  1508. --enable-fusionsound-shared
  1509. dynamically load fusionsound audio support
  1510. [default=yes]
  1511. --enable-diskaudio support the disk writer audio driver [default=yes]
  1512. --enable-dummyaudio support the dummy audio driver [default=yes]
  1513. --enable-libsamplerate use libsamplerate for audio rate conversion
  1514. [default=yes]
  1515. --enable-libsamplerate-shared
  1516. dynamically load libsamplerate [default=yes]
  1517. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1518. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1519. --enable-video-wayland use Wayland video driver [default=yes]
  1520. --enable-video-wayland-qt-touch
  1521. QtWayland server support for Wayland video driver
  1522. [default=yes]
  1523. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1524. --enable-libdecor use libdecor for Wayland client-side decorations
  1525. [default=yes]
  1526. --enable-libdecor-shared
  1527. dynamically load libdecor [default=yes]
  1528. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1529. --enable-video-x11 use X11 video driver [default=yes]
  1530. --enable-x11-shared dynamically load X11 support [default=maybe]
  1531. --enable-video-x11-xcursor
  1532. enable X11 Xcursor support [default=yes]
  1533. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1547. --enable-video-cocoa use Cocoa video driver [default=yes]
  1548. --enable-video-metal include Metal support [default=yes]
  1549. --enable-render-metal enable the Metal render driver [default=yes]
  1550. --enable-video-directfb use DirectFB video driver [default=no]
  1551. --enable-directfb-shared
  1552. dynamically load directfb support [default=yes]
  1553. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1554. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1555. --enable-video-dummy use dummy video driver [default=yes]
  1556. --enable-video-offscreen
  1557. use offscreen video driver [default=no]
  1558. --enable-video-opengl include OpenGL support [default=yes]
  1559. --enable-video-opengles include OpenGL ES support [default=yes]
  1560. --enable-video-opengles1
  1561. include OpenGL ES 1.1 support [default=yes]
  1562. --enable-video-opengles2
  1563. include OpenGL ES 2.0 support [default=yes]
  1564. --enable-video-vulkan include Vulkan support [default=yes]
  1565. --enable-libudev enable libudev support [default=yes]
  1566. --enable-dbus enable D-Bus support [default=yes]
  1567. --enable-ime enable IME support [default=yes]
  1568. --enable-ibus enable IBus support [default=yes]
  1569. --enable-fcitx enable fcitx support [default=yes]
  1570. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1571. --enable-pthreads use POSIX threads for multi-threading
  1572. [default=maybe]
  1573. --enable-pthread-sem use pthread semaphores [default=maybe]
  1574. --enable-directx use DirectX for Windows audio/video [default=yes]
  1575. --enable-xinput use Xinput for Windows [default=yes]
  1576. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1577. --enable-hidapi-joystick
  1578. use HIDAPI for low level joystick drivers
  1579. [default=yes]
  1580. --enable-hidapi-libusb use libusb for low level joystick drivers
  1581. [default=maybe]
  1582. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1583. UNIX [default=yes]
  1584. --enable-rpath use an rpath when linking SDL [default=yes]
  1585. --enable-backgrounding-signal
  1586. number to use for magic backgrounding signal or 'no'
  1587. [default=no]
  1588. --enable-foregrounding-signal
  1589. number to use for magic foregrounding signal or 'no'
  1590. [default=no]
  1591. --enable-joystick-virtual
  1592. enable virtual joystick APIs [default=yes]
  1593. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1594. --enable-sdl2-config Install sdl2-config [default=yes]
  1595. Optional Packages:
  1596. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1597. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1598. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1599. both]
  1600. --with-aix-soname=aix|svr4|both
  1601. shared library versioning (aka "SONAME") variant to
  1602. provide on AIX, [default=aix].
  1603. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1604. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1605. compiler's sysroot if not specified).
  1606. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1607. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1608. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1609. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1610. --with-x use the X Window System
  1611. Some influential environment variables:
  1612. CC C compiler command
  1613. CFLAGS C compiler flags
  1614. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1615. nonstandard directory <lib dir>
  1616. LIBS libraries to pass to the linker, e.g. -l<library>
  1617. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1618. you have headers in a nonstandard directory <include dir>
  1619. LT_SYS_LIBRARY_PATH
  1620. User-defined run-time library search path.
  1621. CPP C preprocessor
  1622. CXX C++ compiler command
  1623. CXXFLAGS C++ compiler flags
  1624. CXXCPP C++ preprocessor
  1625. PKG_CONFIG path to pkg-config utility
  1626. PKG_CONFIG_PATH
  1627. directories to add to pkg-config's search path
  1628. PKG_CONFIG_LIBDIR
  1629. path overriding pkg-config's built-in search path
  1630. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1631. JACK_LIBS linker flags for JACK, overriding pkg-config
  1632. PIPEWIRE_CFLAGS
  1633. C compiler flags for PIPEWIRE, overriding pkg-config
  1634. PIPEWIRE_LIBS
  1635. linker flags for PIPEWIRE, overriding pkg-config
  1636. PULSEAUDIO_CFLAGS
  1637. C compiler flags for PULSEAUDIO, overriding pkg-config
  1638. PULSEAUDIO_LIBS
  1639. linker flags for PULSEAUDIO, overriding pkg-config
  1640. FUSIONSOUND_CFLAGS
  1641. C compiler flags for FUSIONSOUND, overriding pkg-config
  1642. FUSIONSOUND_LIBS
  1643. linker flags for FUSIONSOUND, overriding pkg-config
  1644. DECOR_CFLAGS
  1645. C compiler flags for DECOR, overriding pkg-config
  1646. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1647. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1648. RPI_LIBS linker flags for RPI, overriding pkg-config
  1649. XMKMF Path to xmkmf, Makefile generator for X Window System
  1650. DIRECTFB_CFLAGS
  1651. C compiler flags for DIRECTFB, overriding pkg-config
  1652. DIRECTFB_LIBS
  1653. linker flags for DIRECTFB, overriding pkg-config
  1654. LIBDRM_CFLAGS
  1655. C compiler flags for LIBDRM, overriding pkg-config
  1656. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1657. LIBGBM_CFLAGS
  1658. C compiler flags for LIBGBM, overriding pkg-config
  1659. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1660. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1661. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1662. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1663. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1664. LIBUSB_CFLAGS
  1665. C compiler flags for LIBUSB, overriding pkg-config
  1666. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1667. Use these variables to override the choices made by `configure' or to help
  1668. it to find libraries and programs with nonstandard names/locations.
  1669. Report bugs to the package provider.
  1670. _ACEOF
  1671. ac_status=$?
  1672. fi
  1673. if test "$ac_init_help" = "recursive"; then
  1674. # If there are subdirs, report their specific --help.
  1675. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1676. test -d "$ac_dir" ||
  1677. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1678. continue
  1679. ac_builddir=.
  1680. case "$ac_dir" in
  1681. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1682. *)
  1683. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1684. # A ".." for each directory in $ac_dir_suffix.
  1685. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1686. case $ac_top_builddir_sub in
  1687. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1688. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1689. esac ;;
  1690. esac
  1691. ac_abs_top_builddir=$ac_pwd
  1692. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1693. # for backward compatibility:
  1694. ac_top_builddir=$ac_top_build_prefix
  1695. case $srcdir in
  1696. .) # We are building in place.
  1697. ac_srcdir=.
  1698. ac_top_srcdir=$ac_top_builddir_sub
  1699. ac_abs_top_srcdir=$ac_pwd ;;
  1700. [\\/]* | ?:[\\/]* ) # Absolute name.
  1701. ac_srcdir=$srcdir$ac_dir_suffix;
  1702. ac_top_srcdir=$srcdir
  1703. ac_abs_top_srcdir=$srcdir ;;
  1704. *) # Relative name.
  1705. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1706. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1707. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1708. esac
  1709. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1710. cd "$ac_dir" || { ac_status=$?; continue; }
  1711. # Check for guested configure.
  1712. if test -f "$ac_srcdir/configure.gnu"; then
  1713. echo &&
  1714. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1715. elif test -f "$ac_srcdir/configure"; then
  1716. echo &&
  1717. $SHELL "$ac_srcdir/configure" --help=recursive
  1718. else
  1719. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1720. fi || ac_status=$?
  1721. cd "$ac_pwd" || { ac_status=$?; break; }
  1722. done
  1723. fi
  1724. test -n "$ac_init_help" && exit $ac_status
  1725. if $ac_init_version; then
  1726. cat <<\_ACEOF
  1727. configure
  1728. generated by GNU Autoconf 2.69
  1729. Copyright (C) 2012 Free Software Foundation, Inc.
  1730. This configure script is free software; the Free Software Foundation
  1731. gives unlimited permission to copy, distribute and modify it.
  1732. _ACEOF
  1733. exit
  1734. fi
  1735. ## ------------------------ ##
  1736. ## Autoconf initialization. ##
  1737. ## ------------------------ ##
  1738. # ac_fn_c_try_compile LINENO
  1739. # --------------------------
  1740. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1741. ac_fn_c_try_compile ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. rm -f conftest.$ac_objext
  1745. if { { ac_try="$ac_compile"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_compile") 2>conftest.err
  1753. ac_status=$?
  1754. if test -s conftest.err; then
  1755. grep -v '^ *+' conftest.err >conftest.er1
  1756. cat conftest.er1 >&5
  1757. mv -f conftest.er1 conftest.err
  1758. fi
  1759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } && {
  1761. test -z "$ac_c_werror_flag" ||
  1762. test ! -s conftest.err
  1763. } && test -s conftest.$ac_objext; then :
  1764. ac_retval=0
  1765. else
  1766. $as_echo "$as_me: failed program was:" >&5
  1767. sed 's/^/| /' conftest.$ac_ext >&5
  1768. ac_retval=1
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_compile
  1773. # ac_fn_c_try_link LINENO
  1774. # -----------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. test -x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_c_try_link
  1816. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1817. # -------------------------------------------------------
  1818. # Tests whether HEADER exists and can be compiled using the include files in
  1819. # INCLUDES, setting the cache variable VAR accordingly.
  1820. ac_fn_c_check_header_compile ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. $as_echo_n "checking for $2... " >&6; }
  1825. if eval \${$3+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. else
  1828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1829. /* end confdefs.h. */
  1830. $4
  1831. #include <$2>
  1832. _ACEOF
  1833. if ac_fn_c_try_compile "$LINENO"; then :
  1834. eval "$3=yes"
  1835. else
  1836. eval "$3=no"
  1837. fi
  1838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1839. fi
  1840. eval ac_res=\$$3
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1842. $as_echo "$ac_res" >&6; }
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. } # ac_fn_c_check_header_compile
  1845. # ac_fn_c_try_cpp LINENO
  1846. # ----------------------
  1847. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_c_try_cpp ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1857. $as_echo "$ac_try_echo"; } >&5
  1858. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1859. ac_status=$?
  1860. if test -s conftest.err; then
  1861. grep -v '^ *+' conftest.err >conftest.er1
  1862. cat conftest.er1 >&5
  1863. mv -f conftest.er1 conftest.err
  1864. fi
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; } > conftest.i && {
  1867. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1868. test ! -s conftest.err
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. as_fn_set_status $ac_retval
  1878. } # ac_fn_c_try_cpp
  1879. # ac_fn_c_try_run LINENO
  1880. # ----------------------
  1881. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1882. # that executables *can* be run.
  1883. ac_fn_c_try_run ()
  1884. {
  1885. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1886. if { { ac_try="$ac_link"
  1887. case "(($ac_try" in
  1888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1889. *) ac_try_echo=$ac_try;;
  1890. esac
  1891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1892. $as_echo "$ac_try_echo"; } >&5
  1893. (eval "$ac_link") 2>&5
  1894. ac_status=$?
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1897. { { case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_try") 2>&5
  1904. ac_status=$?
  1905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1906. test $ac_status = 0; }; }; then :
  1907. ac_retval=0
  1908. else
  1909. $as_echo "$as_me: program exited with status $ac_status" >&5
  1910. $as_echo "$as_me: failed program was:" >&5
  1911. sed 's/^/| /' conftest.$ac_ext >&5
  1912. ac_retval=$ac_status
  1913. fi
  1914. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1915. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1916. as_fn_set_status $ac_retval
  1917. } # ac_fn_c_try_run
  1918. # ac_fn_c_check_func LINENO FUNC VAR
  1919. # ----------------------------------
  1920. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1921. ac_fn_c_check_func ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1925. $as_echo_n "checking for $2... " >&6; }
  1926. if eval \${$3+:} false; then :
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1932. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1933. #define $2 innocuous_$2
  1934. /* System header to define __stub macros and hopefully few prototypes,
  1935. which can conflict with char $2 (); below.
  1936. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1937. <limits.h> exists even on freestanding compilers. */
  1938. #ifdef __STDC__
  1939. # include <limits.h>
  1940. #else
  1941. # include <assert.h>
  1942. #endif
  1943. #undef $2
  1944. /* Override any GCC internal prototype to avoid an error.
  1945. Use char because int might match the return type of a GCC
  1946. builtin and then its argument prototype would still apply. */
  1947. #ifdef __cplusplus
  1948. extern "C"
  1949. #endif
  1950. char $2 ();
  1951. /* The GNU C library defines this for functions which it implements
  1952. to always fail with ENOSYS. Some functions are actually named
  1953. something starting with __ and the normal name is an alias. */
  1954. #if defined __stub_$2 || defined __stub___$2
  1955. choke me
  1956. #endif
  1957. int
  1958. main ()
  1959. {
  1960. return $2 ();
  1961. ;
  1962. return 0;
  1963. }
  1964. _ACEOF
  1965. if ac_fn_c_try_link "$LINENO"; then :
  1966. eval "$3=yes"
  1967. else
  1968. eval "$3=no"
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext \
  1971. conftest$ac_exeext conftest.$ac_ext
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. } # ac_fn_c_check_func
  1978. # ac_fn_cxx_try_compile LINENO
  1979. # ----------------------------
  1980. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_compile ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext
  1985. if { { ac_try="$ac_compile"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. $as_echo "$ac_try_echo"; } >&5
  1992. (eval "$ac_compile") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest.$ac_objext; then :
  2004. ac_retval=0
  2005. else
  2006. $as_echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. ac_retval=1
  2009. fi
  2010. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2011. as_fn_set_status $ac_retval
  2012. } # ac_fn_cxx_try_compile
  2013. # ac_fn_cxx_try_cpp LINENO
  2014. # ------------------------
  2015. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2016. ac_fn_cxx_try_cpp ()
  2017. {
  2018. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2019. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. $as_echo "$ac_try_echo"; } >&5
  2026. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } > conftest.i && {
  2035. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. }; then :
  2038. ac_retval=0
  2039. else
  2040. $as_echo "$as_me: failed program was:" >&5
  2041. sed 's/^/| /' conftest.$ac_ext >&5
  2042. ac_retval=1
  2043. fi
  2044. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2045. as_fn_set_status $ac_retval
  2046. } # ac_fn_cxx_try_cpp
  2047. # ac_fn_cxx_try_link LINENO
  2048. # -------------------------
  2049. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2050. ac_fn_cxx_try_link ()
  2051. {
  2052. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2053. rm -f conftest.$ac_objext conftest$ac_exeext
  2054. if { { ac_try="$ac_link"
  2055. case "(($ac_try" in
  2056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2057. *) ac_try_echo=$ac_try;;
  2058. esac
  2059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2060. $as_echo "$ac_try_echo"; } >&5
  2061. (eval "$ac_link") 2>conftest.err
  2062. ac_status=$?
  2063. if test -s conftest.err; then
  2064. grep -v '^ *+' conftest.err >conftest.er1
  2065. cat conftest.er1 >&5
  2066. mv -f conftest.er1 conftest.err
  2067. fi
  2068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2069. test $ac_status = 0; } && {
  2070. test -z "$ac_cxx_werror_flag" ||
  2071. test ! -s conftest.err
  2072. } && test -s conftest$ac_exeext && {
  2073. test "$cross_compiling" = yes ||
  2074. test -x conftest$ac_exeext
  2075. }; then :
  2076. ac_retval=0
  2077. else
  2078. $as_echo "$as_me: failed program was:" >&5
  2079. sed 's/^/| /' conftest.$ac_ext >&5
  2080. ac_retval=1
  2081. fi
  2082. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2083. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2084. # interfere with the next link command; also delete a directory that is
  2085. # left behind by Apple's compiler. We do this before executing the actions.
  2086. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2087. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2088. as_fn_set_status $ac_retval
  2089. } # ac_fn_cxx_try_link
  2090. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2091. # -------------------------------------------------------
  2092. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2093. # the include files in INCLUDES and setting the cache variable VAR
  2094. # accordingly.
  2095. ac_fn_c_check_header_mongrel ()
  2096. {
  2097. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2098. if eval \${$3+:} false; then :
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2100. $as_echo_n "checking for $2... " >&6; }
  2101. if eval \${$3+:} false; then :
  2102. $as_echo_n "(cached) " >&6
  2103. fi
  2104. eval ac_res=\$$3
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107. else
  2108. # Is the header compilable?
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2110. $as_echo_n "checking $2 usability... " >&6; }
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $4
  2114. #include <$2>
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"; then :
  2117. ac_header_compiler=yes
  2118. else
  2119. ac_header_compiler=no
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2123. $as_echo "$ac_header_compiler" >&6; }
  2124. # Is the header present?
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2126. $as_echo_n "checking $2 presence... " >&6; }
  2127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2128. /* end confdefs.h. */
  2129. #include <$2>
  2130. _ACEOF
  2131. if ac_fn_c_try_cpp "$LINENO"; then :
  2132. ac_header_preproc=yes
  2133. else
  2134. ac_header_preproc=no
  2135. fi
  2136. rm -f conftest.err conftest.i conftest.$ac_ext
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2138. $as_echo "$ac_header_preproc" >&6; }
  2139. # So? What about this header?
  2140. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2141. yes:no: )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2143. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2145. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2146. ;;
  2147. no:yes:* )
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2149. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2151. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2153. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2155. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2157. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2158. ;;
  2159. esac
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2161. $as_echo_n "checking for $2... " >&6; }
  2162. if eval \${$3+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. eval "$3=\$ac_header_compiler"
  2166. fi
  2167. eval ac_res=\$$3
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2169. $as_echo "$ac_res" >&6; }
  2170. fi
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. } # ac_fn_c_check_header_mongrel
  2173. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2174. # -------------------------------------------
  2175. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2176. # variable VAR accordingly.
  2177. ac_fn_c_check_type ()
  2178. {
  2179. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2181. $as_echo_n "checking for $2... " >&6; }
  2182. if eval \${$3+:} false; then :
  2183. $as_echo_n "(cached) " >&6
  2184. else
  2185. eval "$3=no"
  2186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2187. /* end confdefs.h. */
  2188. $4
  2189. int
  2190. main ()
  2191. {
  2192. if (sizeof ($2))
  2193. return 0;
  2194. ;
  2195. return 0;
  2196. }
  2197. _ACEOF
  2198. if ac_fn_c_try_compile "$LINENO"; then :
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $4
  2202. int
  2203. main ()
  2204. {
  2205. if (sizeof (($2)))
  2206. return 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_c_try_compile "$LINENO"; then :
  2212. else
  2213. eval "$3=yes"
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. eval ac_res=\$$3
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2221. $as_echo "$ac_res" >&6; }
  2222. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2223. } # ac_fn_c_check_type
  2224. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2225. # ----------------------------------------------------
  2226. # Tries to find if the field MEMBER exists in type AGGR, after including
  2227. # INCLUDES, setting cache variable VAR accordingly.
  2228. ac_fn_c_check_member ()
  2229. {
  2230. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2232. $as_echo_n "checking for $2.$3... " >&6; }
  2233. if eval \${$4+:} false; then :
  2234. $as_echo_n "(cached) " >&6
  2235. else
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main ()
  2241. {
  2242. static $2 ac_aggr;
  2243. if (ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"; then :
  2250. eval "$4=yes"
  2251. else
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $5
  2255. int
  2256. main ()
  2257. {
  2258. static $2 ac_aggr;
  2259. if (sizeof ac_aggr.$3)
  2260. return 0;
  2261. ;
  2262. return 0;
  2263. }
  2264. _ACEOF
  2265. if ac_fn_c_try_compile "$LINENO"; then :
  2266. eval "$4=yes"
  2267. else
  2268. eval "$4=no"
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. fi
  2274. eval ac_res=\$$4
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2276. $as_echo "$ac_res" >&6; }
  2277. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2278. } # ac_fn_c_check_member
  2279. cat >config.log <<_ACEOF
  2280. This file contains any messages produced by compilers while
  2281. running configure, to aid debugging if configure makes a mistake.
  2282. It was created by $as_me, which was
  2283. generated by GNU Autoconf 2.69. Invocation command line was
  2284. $ $0 $@
  2285. _ACEOF
  2286. exec 5>>config.log
  2287. {
  2288. cat <<_ASUNAME
  2289. ## --------- ##
  2290. ## Platform. ##
  2291. ## --------- ##
  2292. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2293. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2294. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2295. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2296. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2297. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2298. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2299. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2300. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2301. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2302. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2303. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2304. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2305. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2306. _ASUNAME
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. $as_echo "PATH: $as_dir"
  2313. done
  2314. IFS=$as_save_IFS
  2315. } >&5
  2316. cat >&5 <<_ACEOF
  2317. ## ----------- ##
  2318. ## Core tests. ##
  2319. ## ----------- ##
  2320. _ACEOF
  2321. # Keep a trace of the command line.
  2322. # Strip out --no-create and --no-recursion so they do not pile up.
  2323. # Strip out --silent because we don't want to record it for future runs.
  2324. # Also quote any args containing shell meta-characters.
  2325. # Make two passes to allow for proper duplicate-argument suppression.
  2326. ac_configure_args=
  2327. ac_configure_args0=
  2328. ac_configure_args1=
  2329. ac_must_keep_next=false
  2330. for ac_pass in 1 2
  2331. do
  2332. for ac_arg
  2333. do
  2334. case $ac_arg in
  2335. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2336. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2337. | -silent | --silent | --silen | --sile | --sil)
  2338. continue ;;
  2339. *\'*)
  2340. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2341. esac
  2342. case $ac_pass in
  2343. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2344. 2)
  2345. as_fn_append ac_configure_args1 " '$ac_arg'"
  2346. if test $ac_must_keep_next = true; then
  2347. ac_must_keep_next=false # Got value, back to normal.
  2348. else
  2349. case $ac_arg in
  2350. *=* | --config-cache | -C | -disable-* | --disable-* \
  2351. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2352. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2353. | -with-* | --with-* | -without-* | --without-* | --x)
  2354. case "$ac_configure_args0 " in
  2355. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2356. esac
  2357. ;;
  2358. -* ) ac_must_keep_next=true ;;
  2359. esac
  2360. fi
  2361. as_fn_append ac_configure_args " '$ac_arg'"
  2362. ;;
  2363. esac
  2364. done
  2365. done
  2366. { ac_configure_args0=; unset ac_configure_args0;}
  2367. { ac_configure_args1=; unset ac_configure_args1;}
  2368. # When interrupted or exit'd, cleanup temporary files, and complete
  2369. # config.log. We remove comments because anyway the quotes in there
  2370. # would cause problems or look ugly.
  2371. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2372. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2373. trap 'exit_status=$?
  2374. # Save into config.log some information that might help in debugging.
  2375. {
  2376. echo
  2377. $as_echo "## ---------------- ##
  2378. ## Cache variables. ##
  2379. ## ---------------- ##"
  2380. echo
  2381. # The following way of writing the cache mishandles newlines in values,
  2382. (
  2383. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2384. eval ac_val=\$$ac_var
  2385. case $ac_val in #(
  2386. *${as_nl}*)
  2387. case $ac_var in #(
  2388. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2389. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2390. esac
  2391. case $ac_var in #(
  2392. _ | IFS | as_nl) ;; #(
  2393. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2394. *) { eval $ac_var=; unset $ac_var;} ;;
  2395. esac ;;
  2396. esac
  2397. done
  2398. (set) 2>&1 |
  2399. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2400. *${as_nl}ac_space=\ *)
  2401. sed -n \
  2402. "s/'\''/'\''\\\\'\'''\''/g;
  2403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2404. ;; #(
  2405. *)
  2406. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2407. ;;
  2408. esac |
  2409. sort
  2410. )
  2411. echo
  2412. $as_echo "## ----------------- ##
  2413. ## Output variables. ##
  2414. ## ----------------- ##"
  2415. echo
  2416. for ac_var in $ac_subst_vars
  2417. do
  2418. eval ac_val=\$$ac_var
  2419. case $ac_val in
  2420. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2421. esac
  2422. $as_echo "$ac_var='\''$ac_val'\''"
  2423. done | sort
  2424. echo
  2425. if test -n "$ac_subst_files"; then
  2426. $as_echo "## ------------------- ##
  2427. ## File substitutions. ##
  2428. ## ------------------- ##"
  2429. echo
  2430. for ac_var in $ac_subst_files
  2431. do
  2432. eval ac_val=\$$ac_var
  2433. case $ac_val in
  2434. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2435. esac
  2436. $as_echo "$ac_var='\''$ac_val'\''"
  2437. done | sort
  2438. echo
  2439. fi
  2440. if test -s confdefs.h; then
  2441. $as_echo "## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##"
  2444. echo
  2445. cat confdefs.h
  2446. echo
  2447. fi
  2448. test "$ac_signal" != 0 &&
  2449. $as_echo "$as_me: caught signal $ac_signal"
  2450. $as_echo "$as_me: exit $exit_status"
  2451. } >&5
  2452. rm -f core *.core core.conftest.* &&
  2453. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2454. exit $exit_status
  2455. ' 0
  2456. for ac_signal in 1 2 13 15; do
  2457. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2458. done
  2459. ac_signal=0
  2460. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2461. rm -f -r conftest* confdefs.h
  2462. $as_echo "/* confdefs.h */" > confdefs.h
  2463. # Predefined preprocessor variables.
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_NAME "$PACKAGE_NAME"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_STRING "$PACKAGE_STRING"
  2475. _ACEOF
  2476. cat >>confdefs.h <<_ACEOF
  2477. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2478. _ACEOF
  2479. cat >>confdefs.h <<_ACEOF
  2480. #define PACKAGE_URL "$PACKAGE_URL"
  2481. _ACEOF
  2482. # Let the site file select an alternate cache file if it wants to.
  2483. # Prefer an explicitly selected file to automatically selected ones.
  2484. ac_site_file1=NONE
  2485. ac_site_file2=NONE
  2486. if test -n "$CONFIG_SITE"; then
  2487. # We do not want a PATH search for config.site.
  2488. case $CONFIG_SITE in #((
  2489. -*) ac_site_file1=./$CONFIG_SITE;;
  2490. */*) ac_site_file1=$CONFIG_SITE;;
  2491. *) ac_site_file1=./$CONFIG_SITE;;
  2492. esac
  2493. elif test "x$prefix" != xNONE; then
  2494. ac_site_file1=$prefix/share/config.site
  2495. ac_site_file2=$prefix/etc/config.site
  2496. else
  2497. ac_site_file1=$ac_default_prefix/share/config.site
  2498. ac_site_file2=$ac_default_prefix/etc/config.site
  2499. fi
  2500. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2501. do
  2502. test "x$ac_site_file" = xNONE && continue
  2503. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2505. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2506. sed 's/^/| /' "$ac_site_file" >&5
  2507. . "$ac_site_file" \
  2508. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2509. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2510. as_fn_error $? "failed to load site script $ac_site_file
  2511. See \`config.log' for more details" "$LINENO" 5; }
  2512. fi
  2513. done
  2514. if test -r "$cache_file"; then
  2515. # Some versions of bash will fail to source /dev/null (special files
  2516. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2517. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2519. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2520. case $cache_file in
  2521. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2522. *) . "./$cache_file";;
  2523. esac
  2524. fi
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2527. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2528. >$cache_file
  2529. fi
  2530. # Check that the precious variables saved in the cache have kept the same
  2531. # value.
  2532. ac_cache_corrupted=false
  2533. for ac_var in $ac_precious_vars; do
  2534. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2535. eval ac_new_set=\$ac_env_${ac_var}_set
  2536. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2537. eval ac_new_val=\$ac_env_${ac_var}_value
  2538. case $ac_old_set,$ac_new_set in
  2539. set,)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2541. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2542. ac_cache_corrupted=: ;;
  2543. ,set)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,);;
  2548. *)
  2549. if test "x$ac_old_val" != "x$ac_new_val"; then
  2550. # differences in whitespace do not lead to failure.
  2551. ac_old_val_w=`echo x $ac_old_val`
  2552. ac_new_val_w=`echo x $ac_new_val`
  2553. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2555. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2556. ac_cache_corrupted=:
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2559. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2560. eval $ac_var=\$ac_old_val
  2561. fi
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2563. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2565. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2566. fi;;
  2567. esac
  2568. # Pass precious variables to config.status.
  2569. if test "$ac_new_set" = set; then
  2570. case $ac_new_val in
  2571. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2572. *) ac_arg=$ac_var=$ac_new_val ;;
  2573. esac
  2574. case " $ac_configure_args " in
  2575. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2576. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2577. esac
  2578. fi
  2579. done
  2580. if $ac_cache_corrupted; then
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2584. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2585. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2586. fi
  2587. ## -------------------- ##
  2588. ## Main body of script. ##
  2589. ## -------------------- ##
  2590. ac_ext=c
  2591. ac_cpp='$CPP $CPPFLAGS'
  2592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2595. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2596. ac_aux_dir=
  2597. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2598. if test -f "$ac_dir/install-sh"; then
  2599. ac_aux_dir=$ac_dir
  2600. ac_install_sh="$ac_aux_dir/install-sh -c"
  2601. break
  2602. elif test -f "$ac_dir/install.sh"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/install.sh -c"
  2605. break
  2606. elif test -f "$ac_dir/shtool"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/shtool install -c"
  2609. break
  2610. fi
  2611. done
  2612. if test -z "$ac_aux_dir"; then
  2613. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2614. fi
  2615. # These three variables are undocumented and unsupported,
  2616. # and are intended to be withdrawn in a future Autoconf release.
  2617. # They can cause serious problems if a builder's source tree is in a directory
  2618. # whose full name contains unusual characters.
  2619. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2620. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2621. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2622. orig_CFLAGS="$CFLAGS"
  2623. #
  2624. # Making releases:
  2625. # Edit include/SDL_version.h and change the version, then:
  2626. # SDL_MICRO_VERSION += 1;
  2627. # SDL_INTERFACE_AGE += 1;
  2628. # SDL_BINARY_AGE += 1;
  2629. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2630. # if backwards compatibility has been broken,
  2631. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2632. #
  2633. SDL_MAJOR_VERSION=2
  2634. SDL_MINOR_VERSION=0
  2635. SDL_MICRO_VERSION=23
  2636. SDL_INTERFACE_AGE=0
  2637. SDL_BINARY_AGE=23
  2638. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2639. # libtool versioning
  2640. case `pwd` in
  2641. *\ * | *\ *)
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2643. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2644. esac
  2645. macro_version='2.4.6'
  2646. macro_revision='2.4.6'
  2647. ltmain=$ac_aux_dir/ltmain.sh
  2648. # Make sure we can run config.sub.
  2649. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2650. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2652. $as_echo_n "checking build system type... " >&6; }
  2653. if ${ac_cv_build+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. ac_build_alias=$build_alias
  2657. test "x$ac_build_alias" = x &&
  2658. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2659. test "x$ac_build_alias" = x &&
  2660. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2661. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2662. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2663. fi
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2665. $as_echo "$ac_cv_build" >&6; }
  2666. case $ac_cv_build in
  2667. *-*-*) ;;
  2668. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2669. esac
  2670. build=$ac_cv_build
  2671. ac_save_IFS=$IFS; IFS='-'
  2672. set x $ac_cv_build
  2673. shift
  2674. build_cpu=$1
  2675. build_vendor=$2
  2676. shift; shift
  2677. # Remember, the first character of IFS is used to create $*,
  2678. # except with old shells:
  2679. build_os=$*
  2680. IFS=$ac_save_IFS
  2681. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2683. $as_echo_n "checking host system type... " >&6; }
  2684. if ${ac_cv_host+:} false; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test "x$host_alias" = x; then
  2688. ac_cv_host=$ac_cv_build
  2689. else
  2690. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2691. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2692. fi
  2693. fi
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2695. $as_echo "$ac_cv_host" >&6; }
  2696. case $ac_cv_host in
  2697. *-*-*) ;;
  2698. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2699. esac
  2700. host=$ac_cv_host
  2701. ac_save_IFS=$IFS; IFS='-'
  2702. set x $ac_cv_host
  2703. shift
  2704. host_cpu=$1
  2705. host_vendor=$2
  2706. shift; shift
  2707. # Remember, the first character of IFS is used to create $*,
  2708. # except with old shells:
  2709. host_os=$*
  2710. IFS=$ac_save_IFS
  2711. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2712. # Backslashify metacharacters that are still active within
  2713. # double-quoted strings.
  2714. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2715. # Same as above, but do not quote variable references.
  2716. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2717. # Sed substitution to delay expansion of an escaped shell variable in a
  2718. # double_quote_subst'ed string.
  2719. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2720. # Sed substitution to delay expansion of an escaped single quote.
  2721. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2722. # Sed substitution to avoid accidental globbing in evaled expressions
  2723. no_glob_subst='s/\*/\\\*/g'
  2724. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2725. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2726. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2728. $as_echo_n "checking how to print strings... " >&6; }
  2729. # Test print first, because it will be a builtin if present.
  2730. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2731. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='print -r --'
  2733. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2734. ECHO='printf %s\n'
  2735. else
  2736. # Use this function as a fallback that always works.
  2737. func_fallback_echo ()
  2738. {
  2739. eval 'cat <<_LTECHO_EOF
  2740. $1
  2741. _LTECHO_EOF'
  2742. }
  2743. ECHO='func_fallback_echo'
  2744. fi
  2745. # func_echo_all arg...
  2746. # Invoke $ECHO with all args, space-separated.
  2747. func_echo_all ()
  2748. {
  2749. $ECHO ""
  2750. }
  2751. case $ECHO in
  2752. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2753. $as_echo "printf" >&6; } ;;
  2754. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2755. $as_echo "print -r" >&6; } ;;
  2756. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2757. $as_echo "cat" >&6; } ;;
  2758. esac
  2759. ac_ext=c
  2760. ac_cpp='$CPP $CPPFLAGS'
  2761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2764. if test -n "$ac_tool_prefix"; then
  2765. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2766. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if ${ac_cv_prog_CC+:} false; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$CC"; then
  2773. ac_cv_prog_CC="$CC" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2782. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$ac_cv_prog_CC"; then
  2801. ac_ct_CC=$CC
  2802. # Extract the first word of "gcc", so it can be a program name with args.
  2803. set dummy gcc; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$ac_ct_CC"; then
  2810. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_ac_ct_CC="gcc"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2829. if test -n "$ac_ct_CC"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2831. $as_echo "$ac_ct_CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. if test "x$ac_ct_CC" = x; then
  2837. CC=""
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. CC=$ac_ct_CC
  2846. fi
  2847. else
  2848. CC="$ac_cv_prog_CC"
  2849. fi
  2850. if test -z "$CC"; then
  2851. if test -n "$ac_tool_prefix"; then
  2852. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2853. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if ${ac_cv_prog_CC+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$CC"; then
  2860. ac_cv_prog_CC="$CC" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2869. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. CC=$ac_cv_prog_CC
  2879. if test -n "$CC"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2881. $as_echo "$CC" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. fi
  2887. fi
  2888. if test -z "$CC"; then
  2889. # Extract the first word of "cc", so it can be a program name with args.
  2890. set dummy cc; ac_word=$2
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2892. $as_echo_n "checking for $ac_word... " >&6; }
  2893. if ${ac_cv_prog_CC+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test -n "$CC"; then
  2897. ac_cv_prog_CC="$CC" # Let the user override the test.
  2898. else
  2899. ac_prog_rejected=no
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2908. ac_prog_rejected=yes
  2909. continue
  2910. fi
  2911. ac_cv_prog_CC="cc"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. if test $ac_prog_rejected = yes; then
  2919. # We found a bogon in the path, so make sure we never use it.
  2920. set dummy $ac_cv_prog_CC
  2921. shift
  2922. if test $# != 0; then
  2923. # We chose a different compiler from the bogus one.
  2924. # However, it has the same basename, so the bogon will be chosen
  2925. # first if we set CC to just the basename; use the full file name.
  2926. shift
  2927. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2928. fi
  2929. fi
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. fi
  2941. if test -z "$CC"; then
  2942. if test -n "$ac_tool_prefix"; then
  2943. for ac_prog in cl.exe
  2944. do
  2945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$CC"; then
  2953. ac_cv_prog_CC="$CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. CC=$ac_cv_prog_CC
  2972. if test -n "$CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2974. $as_echo "$CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. test -n "$CC" && break
  2980. done
  2981. fi
  2982. if test -z "$CC"; then
  2983. ac_ct_CC=$CC
  2984. for ac_prog in cl.exe
  2985. do
  2986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2987. set dummy $ac_prog; ac_word=$2
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2989. $as_echo_n "checking for $ac_word... " >&6; }
  2990. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. if test -n "$ac_ct_CC"; then
  2994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2995. else
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3003. ac_cv_prog_ac_ct_CC="$ac_prog"
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3005. break 2
  3006. fi
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. fi
  3012. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3013. if test -n "$ac_ct_CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3015. $as_echo "$ac_ct_CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. test -n "$ac_ct_CC" && break
  3021. done
  3022. if test "x$ac_ct_CC" = x; then
  3023. CC=""
  3024. else
  3025. case $cross_compiling:$ac_tool_warned in
  3026. yes:)
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3029. ac_tool_warned=yes ;;
  3030. esac
  3031. CC=$ac_ct_CC
  3032. fi
  3033. fi
  3034. fi
  3035. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "no acceptable C compiler found in \$PATH
  3038. See \`config.log' for more details" "$LINENO" 5; }
  3039. # Provide some information about the compiler.
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3041. set X $ac_compile
  3042. ac_compiler=$2
  3043. for ac_option in --version -v -V -qversion; do
  3044. { { ac_try="$ac_compiler $ac_option >&5"
  3045. case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3052. ac_status=$?
  3053. if test -s conftest.err; then
  3054. sed '10a\
  3055. ... rest of stderr output deleted ...
  3056. 10q' conftest.err >conftest.er1
  3057. cat conftest.er1 >&5
  3058. fi
  3059. rm -f conftest.er1 conftest.err
  3060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3061. test $ac_status = 0; }
  3062. done
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. ac_clean_files_save=$ac_clean_files
  3073. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3074. # Try to create an executable without -o first, disregard a.out.
  3075. # It will help us diagnose broken compilers, and finding out an intuition
  3076. # of exeext.
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3078. $as_echo_n "checking whether the C compiler works... " >&6; }
  3079. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3080. # The possible output files:
  3081. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3082. ac_rmfiles=
  3083. for ac_file in $ac_files
  3084. do
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3087. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3088. esac
  3089. done
  3090. rm -f $ac_rmfiles
  3091. if { { ac_try="$ac_link_default"
  3092. case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_link_default") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; then :
  3102. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3103. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3104. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3105. # so that the user can short-circuit this test for compilers unknown to
  3106. # Autoconf.
  3107. for ac_file in $ac_files ''
  3108. do
  3109. test -f "$ac_file" || continue
  3110. case $ac_file in
  3111. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3112. ;;
  3113. [ab].out )
  3114. # We found the default executable, but exeext='' is most
  3115. # certainly right.
  3116. break;;
  3117. *.* )
  3118. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3119. then :; else
  3120. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3121. fi
  3122. # We set ac_cv_exeext here because the later test for it is not
  3123. # safe: cross compilers may not add the suffix if given an `-o'
  3124. # argument, so we may need to know it at that point already.
  3125. # Even if this section looks crufty: it has the advantage of
  3126. # actually working.
  3127. break;;
  3128. * )
  3129. break;;
  3130. esac
  3131. done
  3132. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3133. else
  3134. ac_file=''
  3135. fi
  3136. if test -z "$ac_file"; then :
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. $as_echo "$as_me: failed program was:" >&5
  3140. sed 's/^/| /' conftest.$ac_ext >&5
  3141. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3143. as_fn_error 77 "C compiler cannot create executables
  3144. See \`config.log' for more details" "$LINENO" 5; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3147. $as_echo "yes" >&6; }
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3150. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3152. $as_echo "$ac_file" >&6; }
  3153. ac_exeext=$ac_cv_exeext
  3154. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3155. ac_clean_files=$ac_clean_files_save
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3157. $as_echo_n "checking for suffix of executables... " >&6; }
  3158. if { { ac_try="$ac_link"
  3159. case "(($ac_try" in
  3160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3161. *) ac_try_echo=$ac_try;;
  3162. esac
  3163. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3164. $as_echo "$ac_try_echo"; } >&5
  3165. (eval "$ac_link") 2>&5
  3166. ac_status=$?
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3168. test $ac_status = 0; }; then :
  3169. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3170. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3171. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3172. # `rm'.
  3173. for ac_file in conftest.exe conftest conftest.*; do
  3174. test -f "$ac_file" || continue
  3175. case $ac_file in
  3176. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3177. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3178. break;;
  3179. * ) break;;
  3180. esac
  3181. done
  3182. else
  3183. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3184. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3185. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3186. See \`config.log' for more details" "$LINENO" 5; }
  3187. fi
  3188. rm -f conftest conftest$ac_cv_exeext
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3190. $as_echo "$ac_cv_exeext" >&6; }
  3191. rm -f conftest.$ac_ext
  3192. EXEEXT=$ac_cv_exeext
  3193. ac_exeext=$EXEEXT
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. #include <stdio.h>
  3197. int
  3198. main ()
  3199. {
  3200. FILE *f = fopen ("conftest.out", "w");
  3201. return ferror (f) || fclose (f) != 0;
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. ac_clean_files="$ac_clean_files conftest.out"
  3207. # Check that the compiler produces executables we can run. If not, either
  3208. # the compiler is broken, or we cross compile.
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3210. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3211. if test "$cross_compiling" != yes; then
  3212. { { ac_try="$ac_link"
  3213. case "(($ac_try" in
  3214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3215. *) ac_try_echo=$ac_try;;
  3216. esac
  3217. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3218. $as_echo "$ac_try_echo"; } >&5
  3219. (eval "$ac_link") 2>&5
  3220. ac_status=$?
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3222. test $ac_status = 0; }
  3223. if { ac_try='./conftest$ac_cv_exeext'
  3224. { { case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_try") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; }; then
  3234. cross_compiling=no
  3235. else
  3236. if test "$cross_compiling" = maybe; then
  3237. cross_compiling=yes
  3238. else
  3239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. as_fn_error $? "cannot run C compiled programs.
  3242. If you meant to cross compile, use \`--host'.
  3243. See \`config.log' for more details" "$LINENO" 5; }
  3244. fi
  3245. fi
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3248. $as_echo "$cross_compiling" >&6; }
  3249. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3250. ac_clean_files=$ac_clean_files_save
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3252. $as_echo_n "checking for suffix of object files... " >&6; }
  3253. if ${ac_cv_objext+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. rm -f conftest.o conftest.obj
  3266. if { { ac_try="$ac_compile"
  3267. case "(($ac_try" in
  3268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3269. *) ac_try_echo=$ac_try;;
  3270. esac
  3271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3272. $as_echo "$ac_try_echo"; } >&5
  3273. (eval "$ac_compile") 2>&5
  3274. ac_status=$?
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3276. test $ac_status = 0; }; then :
  3277. for ac_file in conftest.o conftest.obj conftest.*; do
  3278. test -f "$ac_file" || continue;
  3279. case $ac_file in
  3280. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3281. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3282. break;;
  3283. esac
  3284. done
  3285. else
  3286. $as_echo "$as_me: failed program was:" >&5
  3287. sed 's/^/| /' conftest.$ac_ext >&5
  3288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3290. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3291. See \`config.log' for more details" "$LINENO" 5; }
  3292. fi
  3293. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3296. $as_echo "$ac_cv_objext" >&6; }
  3297. OBJEXT=$ac_cv_objext
  3298. ac_objext=$OBJEXT
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3300. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3301. if ${ac_cv_c_compiler_gnu+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. #ifndef __GNUC__
  3310. choke me
  3311. #endif
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_compiler_gnu=yes
  3318. else
  3319. ac_compiler_gnu=no
  3320. fi
  3321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3325. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3326. if test $ac_compiler_gnu = yes; then
  3327. GCC=yes
  3328. else
  3329. GCC=
  3330. fi
  3331. ac_test_CFLAGS=${CFLAGS+set}
  3332. ac_save_CFLAGS=$CFLAGS
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3334. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3335. if ${ac_cv_prog_cc_g+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. ac_save_c_werror_flag=$ac_c_werror_flag
  3339. ac_c_werror_flag=yes
  3340. ac_cv_prog_cc_g=no
  3341. CFLAGS="-g"
  3342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3343. /* end confdefs.h. */
  3344. int
  3345. main ()
  3346. {
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. if ac_fn_c_try_compile "$LINENO"; then :
  3352. ac_cv_prog_cc_g=yes
  3353. else
  3354. CFLAGS=""
  3355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3356. /* end confdefs.h. */
  3357. int
  3358. main ()
  3359. {
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. if ac_fn_c_try_compile "$LINENO"; then :
  3365. else
  3366. ac_c_werror_flag=$ac_save_c_werror_flag
  3367. CFLAGS="-g"
  3368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3369. /* end confdefs.h. */
  3370. int
  3371. main ()
  3372. {
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_c_try_compile "$LINENO"; then :
  3378. ac_cv_prog_cc_g=yes
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. ac_c_werror_flag=$ac_save_c_werror_flag
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3388. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3389. if test "$ac_test_CFLAGS" = set; then
  3390. CFLAGS=$ac_save_CFLAGS
  3391. elif test $ac_cv_prog_cc_g = yes; then
  3392. if test "$GCC" = yes; then
  3393. CFLAGS="-g -O2"
  3394. else
  3395. CFLAGS="-g"
  3396. fi
  3397. else
  3398. if test "$GCC" = yes; then
  3399. CFLAGS="-O2"
  3400. else
  3401. CFLAGS=
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3405. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3406. if ${ac_cv_prog_cc_c89+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. ac_cv_prog_cc_c89=no
  3410. ac_save_CC=$CC
  3411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3412. /* end confdefs.h. */
  3413. #include <stdarg.h>
  3414. #include <stdio.h>
  3415. struct stat;
  3416. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3417. struct buf { int x; };
  3418. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3419. static char *e (p, i)
  3420. char **p;
  3421. int i;
  3422. {
  3423. return p[i];
  3424. }
  3425. static char *f (char * (*g) (char **, int), char **p, ...)
  3426. {
  3427. char *s;
  3428. va_list v;
  3429. va_start (v,p);
  3430. s = g (p, va_arg (v,int));
  3431. va_end (v);
  3432. return s;
  3433. }
  3434. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3435. function prototypes and stuff, but not '\xHH' hex character constants.
  3436. These don't provoke an error unfortunately, instead are silently treated
  3437. as 'x'. The following induces an error, until -std is added to get
  3438. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3439. array size at least. It's necessary to write '\x00'==0 to get something
  3440. that's true only with -std. */
  3441. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3442. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3443. inside strings and character constants. */
  3444. #define FOO(x) 'x'
  3445. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3446. int test (int i, double x);
  3447. struct s1 {int (*f) (int a);};
  3448. struct s2 {int (*f) (double a);};
  3449. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3450. int argc;
  3451. char **argv;
  3452. int
  3453. main ()
  3454. {
  3455. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3461. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3462. do
  3463. CC="$ac_save_CC $ac_arg"
  3464. if ac_fn_c_try_compile "$LINENO"; then :
  3465. ac_cv_prog_cc_c89=$ac_arg
  3466. fi
  3467. rm -f core conftest.err conftest.$ac_objext
  3468. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3469. done
  3470. rm -f conftest.$ac_ext
  3471. CC=$ac_save_CC
  3472. fi
  3473. # AC_CACHE_VAL
  3474. case "x$ac_cv_prog_cc_c89" in
  3475. x)
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3477. $as_echo "none needed" >&6; } ;;
  3478. xno)
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3480. $as_echo "unsupported" >&6; } ;;
  3481. *)
  3482. CC="$CC $ac_cv_prog_cc_c89"
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3484. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3485. esac
  3486. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3487. fi
  3488. ac_ext=c
  3489. ac_cpp='$CPP $CPPFLAGS'
  3490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3494. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3495. if ${ac_cv_path_SED+:} false; then :
  3496. $as_echo_n "(cached) " >&6
  3497. else
  3498. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3499. for ac_i in 1 2 3 4 5 6 7; do
  3500. ac_script="$ac_script$as_nl$ac_script"
  3501. done
  3502. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3503. { ac_script=; unset ac_script;}
  3504. if test -z "$SED"; then
  3505. ac_path_SED_found=false
  3506. # Loop through the user's path and test for each of PROGNAME-LIST
  3507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3508. for as_dir in $PATH
  3509. do
  3510. IFS=$as_save_IFS
  3511. test -z "$as_dir" && as_dir=.
  3512. for ac_prog in sed gsed; do
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3515. as_fn_executable_p "$ac_path_SED" || continue
  3516. # Check for GNU ac_path_SED and select it if it is found.
  3517. # Check for GNU $ac_path_SED
  3518. case `"$ac_path_SED" --version 2>&1` in
  3519. *GNU*)
  3520. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3521. *)
  3522. ac_count=0
  3523. $as_echo_n 0123456789 >"conftest.in"
  3524. while :
  3525. do
  3526. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3527. mv "conftest.tmp" "conftest.in"
  3528. cp "conftest.in" "conftest.nl"
  3529. $as_echo '' >> "conftest.nl"
  3530. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3531. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3532. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3533. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3534. # Best one so far, save it but keep looking for a better one
  3535. ac_cv_path_SED="$ac_path_SED"
  3536. ac_path_SED_max=$ac_count
  3537. fi
  3538. # 10*(2^10) chars as input seems more than enough
  3539. test $ac_count -gt 10 && break
  3540. done
  3541. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3542. esac
  3543. $ac_path_SED_found && break 3
  3544. done
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. if test -z "$ac_cv_path_SED"; then
  3549. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3550. fi
  3551. else
  3552. ac_cv_path_SED=$SED
  3553. fi
  3554. fi
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3556. $as_echo "$ac_cv_path_SED" >&6; }
  3557. SED="$ac_cv_path_SED"
  3558. rm -f conftest.sed
  3559. test -z "$SED" && SED=sed
  3560. Xsed="$SED -e 1s/^X//"
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3562. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3563. if ${ac_cv_path_GREP+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -z "$GREP"; then
  3567. ac_path_GREP_found=false
  3568. # Loop through the user's path and test for each of PROGNAME-LIST
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_prog in grep ggrep; do
  3575. for ac_exec_ext in '' $ac_executable_extensions; do
  3576. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3577. as_fn_executable_p "$ac_path_GREP" || continue
  3578. # Check for GNU ac_path_GREP and select it if it is found.
  3579. # Check for GNU $ac_path_GREP
  3580. case `"$ac_path_GREP" --version 2>&1` in
  3581. *GNU*)
  3582. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3583. *)
  3584. ac_count=0
  3585. $as_echo_n 0123456789 >"conftest.in"
  3586. while :
  3587. do
  3588. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3589. mv "conftest.tmp" "conftest.in"
  3590. cp "conftest.in" "conftest.nl"
  3591. $as_echo 'GREP' >> "conftest.nl"
  3592. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3593. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3594. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3595. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3596. # Best one so far, save it but keep looking for a better one
  3597. ac_cv_path_GREP="$ac_path_GREP"
  3598. ac_path_GREP_max=$ac_count
  3599. fi
  3600. # 10*(2^10) chars as input seems more than enough
  3601. test $ac_count -gt 10 && break
  3602. done
  3603. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3604. esac
  3605. $ac_path_GREP_found && break 3
  3606. done
  3607. done
  3608. done
  3609. IFS=$as_save_IFS
  3610. if test -z "$ac_cv_path_GREP"; then
  3611. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3612. fi
  3613. else
  3614. ac_cv_path_GREP=$GREP
  3615. fi
  3616. fi
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3618. $as_echo "$ac_cv_path_GREP" >&6; }
  3619. GREP="$ac_cv_path_GREP"
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3621. $as_echo_n "checking for egrep... " >&6; }
  3622. if ${ac_cv_path_EGREP+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3626. then ac_cv_path_EGREP="$GREP -E"
  3627. else
  3628. if test -z "$EGREP"; then
  3629. ac_path_EGREP_found=false
  3630. # Loop through the user's path and test for each of PROGNAME-LIST
  3631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3632. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3633. do
  3634. IFS=$as_save_IFS
  3635. test -z "$as_dir" && as_dir=.
  3636. for ac_prog in egrep; do
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3639. as_fn_executable_p "$ac_path_EGREP" || continue
  3640. # Check for GNU ac_path_EGREP and select it if it is found.
  3641. # Check for GNU $ac_path_EGREP
  3642. case `"$ac_path_EGREP" --version 2>&1` in
  3643. *GNU*)
  3644. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3645. *)
  3646. ac_count=0
  3647. $as_echo_n 0123456789 >"conftest.in"
  3648. while :
  3649. do
  3650. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3651. mv "conftest.tmp" "conftest.in"
  3652. cp "conftest.in" "conftest.nl"
  3653. $as_echo 'EGREP' >> "conftest.nl"
  3654. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3655. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3656. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3657. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3658. # Best one so far, save it but keep looking for a better one
  3659. ac_cv_path_EGREP="$ac_path_EGREP"
  3660. ac_path_EGREP_max=$ac_count
  3661. fi
  3662. # 10*(2^10) chars as input seems more than enough
  3663. test $ac_count -gt 10 && break
  3664. done
  3665. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3666. esac
  3667. $ac_path_EGREP_found && break 3
  3668. done
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. if test -z "$ac_cv_path_EGREP"; then
  3673. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3674. fi
  3675. else
  3676. ac_cv_path_EGREP=$EGREP
  3677. fi
  3678. fi
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3681. $as_echo "$ac_cv_path_EGREP" >&6; }
  3682. EGREP="$ac_cv_path_EGREP"
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3684. $as_echo_n "checking for fgrep... " >&6; }
  3685. if ${ac_cv_path_FGREP+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3689. then ac_cv_path_FGREP="$GREP -F"
  3690. else
  3691. if test -z "$FGREP"; then
  3692. ac_path_FGREP_found=false
  3693. # Loop through the user's path and test for each of PROGNAME-LIST
  3694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3695. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3696. do
  3697. IFS=$as_save_IFS
  3698. test -z "$as_dir" && as_dir=.
  3699. for ac_prog in fgrep; do
  3700. for ac_exec_ext in '' $ac_executable_extensions; do
  3701. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3702. as_fn_executable_p "$ac_path_FGREP" || continue
  3703. # Check for GNU ac_path_FGREP and select it if it is found.
  3704. # Check for GNU $ac_path_FGREP
  3705. case `"$ac_path_FGREP" --version 2>&1` in
  3706. *GNU*)
  3707. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3708. *)
  3709. ac_count=0
  3710. $as_echo_n 0123456789 >"conftest.in"
  3711. while :
  3712. do
  3713. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3714. mv "conftest.tmp" "conftest.in"
  3715. cp "conftest.in" "conftest.nl"
  3716. $as_echo 'FGREP' >> "conftest.nl"
  3717. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3718. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3719. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3720. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3721. # Best one so far, save it but keep looking for a better one
  3722. ac_cv_path_FGREP="$ac_path_FGREP"
  3723. ac_path_FGREP_max=$ac_count
  3724. fi
  3725. # 10*(2^10) chars as input seems more than enough
  3726. test $ac_count -gt 10 && break
  3727. done
  3728. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3729. esac
  3730. $ac_path_FGREP_found && break 3
  3731. done
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. if test -z "$ac_cv_path_FGREP"; then
  3736. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3737. fi
  3738. else
  3739. ac_cv_path_FGREP=$FGREP
  3740. fi
  3741. fi
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3744. $as_echo "$ac_cv_path_FGREP" >&6; }
  3745. FGREP="$ac_cv_path_FGREP"
  3746. test -z "$GREP" && GREP=grep
  3747. # Check whether --with-gnu-ld was given.
  3748. if test "${with_gnu_ld+set}" = set; then :
  3749. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3750. else
  3751. with_gnu_ld=no
  3752. fi
  3753. ac_prog=ld
  3754. if test yes = "$GCC"; then
  3755. # Check if gcc -print-prog-name=ld gives a path.
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3757. $as_echo_n "checking for ld used by $CC... " >&6; }
  3758. case $host in
  3759. *-*-mingw*)
  3760. # gcc leaves a trailing carriage return, which upsets mingw
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3762. *)
  3763. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3764. esac
  3765. case $ac_prog in
  3766. # Accept absolute paths.
  3767. [\\/]* | ?:[\\/]*)
  3768. re_direlt='/[^/][^/]*/\.\./'
  3769. # Canonicalize the pathname of ld
  3770. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3771. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3772. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3773. done
  3774. test -z "$LD" && LD=$ac_prog
  3775. ;;
  3776. "")
  3777. # If it fails, then pretend we aren't using GCC.
  3778. ac_prog=ld
  3779. ;;
  3780. *)
  3781. # If it is relative, then search for the first ld in PATH.
  3782. with_gnu_ld=unknown
  3783. ;;
  3784. esac
  3785. elif test yes = "$with_gnu_ld"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3787. $as_echo_n "checking for GNU ld... " >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3790. $as_echo_n "checking for non-GNU ld... " >&6; }
  3791. fi
  3792. if ${lt_cv_path_LD+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$LD"; then
  3796. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3797. for ac_dir in $PATH; do
  3798. IFS=$lt_save_ifs
  3799. test -z "$ac_dir" && ac_dir=.
  3800. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3801. lt_cv_path_LD=$ac_dir/$ac_prog
  3802. # Check to see if the program is GNU ld. I'd rather use --version,
  3803. # but apparently some variants of GNU ld only accept -v.
  3804. # Break only if it was the GNU/non-GNU ld that we prefer.
  3805. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3806. *GNU* | *'with BFD'*)
  3807. test no != "$with_gnu_ld" && break
  3808. ;;
  3809. *)
  3810. test yes != "$with_gnu_ld" && break
  3811. ;;
  3812. esac
  3813. fi
  3814. done
  3815. IFS=$lt_save_ifs
  3816. else
  3817. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3818. fi
  3819. fi
  3820. LD=$lt_cv_path_LD
  3821. if test -n "$LD"; then
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3823. $as_echo "$LD" >&6; }
  3824. else
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3826. $as_echo "no" >&6; }
  3827. fi
  3828. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3830. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3831. if ${lt_cv_prog_gnu_ld+:} false; then :
  3832. $as_echo_n "(cached) " >&6
  3833. else
  3834. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3835. case `$LD -v 2>&1 </dev/null` in
  3836. *GNU* | *'with BFD'*)
  3837. lt_cv_prog_gnu_ld=yes
  3838. ;;
  3839. *)
  3840. lt_cv_prog_gnu_ld=no
  3841. ;;
  3842. esac
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3845. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3846. with_gnu_ld=$lt_cv_prog_gnu_ld
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3848. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3849. if ${lt_cv_path_NM+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -n "$NM"; then
  3853. # Let the user override the test.
  3854. lt_cv_path_NM=$NM
  3855. else
  3856. lt_nm_to_check=${ac_tool_prefix}nm
  3857. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3858. lt_nm_to_check="$lt_nm_to_check nm"
  3859. fi
  3860. for lt_tmp_nm in $lt_nm_to_check; do
  3861. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3862. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3863. IFS=$lt_save_ifs
  3864. test -z "$ac_dir" && ac_dir=.
  3865. tmp_nm=$ac_dir/$lt_tmp_nm
  3866. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3867. # Check to see if the nm accepts a BSD-compat flag.
  3868. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3869. # nm: unknown option "B" ignored
  3870. # Tru64's nm complains that /dev/null is an invalid object file
  3871. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3872. case $build_os in
  3873. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3874. *) lt_bad_file=/dev/null ;;
  3875. esac
  3876. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3877. *$lt_bad_file* | *'Invalid file or object type'*)
  3878. lt_cv_path_NM="$tmp_nm -B"
  3879. break 2
  3880. ;;
  3881. *)
  3882. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3883. */dev/null*)
  3884. lt_cv_path_NM="$tmp_nm -p"
  3885. break 2
  3886. ;;
  3887. *)
  3888. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3889. continue # so that we can try to find one that supports BSD flags
  3890. ;;
  3891. esac
  3892. ;;
  3893. esac
  3894. fi
  3895. done
  3896. IFS=$lt_save_ifs
  3897. done
  3898. : ${lt_cv_path_NM=no}
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3902. $as_echo "$lt_cv_path_NM" >&6; }
  3903. if test no != "$lt_cv_path_NM"; then
  3904. NM=$lt_cv_path_NM
  3905. else
  3906. # Didn't find any BSD compatible name lister, look for dumpbin.
  3907. if test -n "$DUMPBIN"; then :
  3908. # Let the user override the test.
  3909. else
  3910. if test -n "$ac_tool_prefix"; then
  3911. for ac_prog in dumpbin "link -dump"
  3912. do
  3913. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3914. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3916. $as_echo_n "checking for $ac_word... " >&6; }
  3917. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if test -n "$DUMPBIN"; then
  3921. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3922. else
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3930. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932. break 2
  3933. fi
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. fi
  3938. fi
  3939. DUMPBIN=$ac_cv_prog_DUMPBIN
  3940. if test -n "$DUMPBIN"; then
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3942. $as_echo "$DUMPBIN" >&6; }
  3943. else
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3945. $as_echo "no" >&6; }
  3946. fi
  3947. test -n "$DUMPBIN" && break
  3948. done
  3949. fi
  3950. if test -z "$DUMPBIN"; then
  3951. ac_ct_DUMPBIN=$DUMPBIN
  3952. for ac_prog in dumpbin "link -dump"
  3953. do
  3954. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3955. set dummy $ac_prog; ac_word=$2
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3957. $as_echo_n "checking for $ac_word... " >&6; }
  3958. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. if test -n "$ac_ct_DUMPBIN"; then
  3962. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3963. else
  3964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3965. for as_dir in $PATH
  3966. do
  3967. IFS=$as_save_IFS
  3968. test -z "$as_dir" && as_dir=.
  3969. for ac_exec_ext in '' $ac_executable_extensions; do
  3970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3971. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3973. break 2
  3974. fi
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. fi
  3979. fi
  3980. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3981. if test -n "$ac_ct_DUMPBIN"; then
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3983. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3984. else
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3986. $as_echo "no" >&6; }
  3987. fi
  3988. test -n "$ac_ct_DUMPBIN" && break
  3989. done
  3990. if test "x$ac_ct_DUMPBIN" = x; then
  3991. DUMPBIN=":"
  3992. else
  3993. case $cross_compiling:$ac_tool_warned in
  3994. yes:)
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3997. ac_tool_warned=yes ;;
  3998. esac
  3999. DUMPBIN=$ac_ct_DUMPBIN
  4000. fi
  4001. fi
  4002. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4003. *COFF*)
  4004. DUMPBIN="$DUMPBIN -symbols -headers"
  4005. ;;
  4006. *)
  4007. DUMPBIN=:
  4008. ;;
  4009. esac
  4010. fi
  4011. if test : != "$DUMPBIN"; then
  4012. NM=$DUMPBIN
  4013. fi
  4014. fi
  4015. test -z "$NM" && NM=nm
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4017. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4018. if ${lt_cv_nm_interface+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. lt_cv_nm_interface="BSD nm"
  4022. echo "int some_variable = 0;" > conftest.$ac_ext
  4023. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4024. (eval "$ac_compile" 2>conftest.err)
  4025. cat conftest.err >&5
  4026. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4027. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4028. cat conftest.err >&5
  4029. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4030. cat conftest.out >&5
  4031. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4032. lt_cv_nm_interface="MS dumpbin"
  4033. fi
  4034. rm -f conftest*
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4037. $as_echo "$lt_cv_nm_interface" >&6; }
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4039. $as_echo_n "checking whether ln -s works... " >&6; }
  4040. LN_S=$as_ln_s
  4041. if test "$LN_S" = "ln -s"; then
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4043. $as_echo "yes" >&6; }
  4044. else
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4046. $as_echo "no, using $LN_S" >&6; }
  4047. fi
  4048. # find the maximum length of command line arguments
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4050. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4051. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. i=0
  4055. teststring=ABCD
  4056. case $build_os in
  4057. msdosdjgpp*)
  4058. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4059. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4060. # during glob expansion). Even if it were fixed, the result of this
  4061. # check would be larger than it should be.
  4062. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4063. ;;
  4064. gnu*)
  4065. # Under GNU Hurd, this test is not required because there is
  4066. # no limit to the length of command line arguments.
  4067. # Libtool will interpret -1 as no limit whatsoever
  4068. lt_cv_sys_max_cmd_len=-1;
  4069. ;;
  4070. cygwin* | mingw* | cegcc*)
  4071. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4072. # about 5 minutes as the teststring grows exponentially.
  4073. # Worse, since 9x/ME are not pre-emptively multitasking,
  4074. # you end up with a "frozen" computer, even though with patience
  4075. # the test eventually succeeds (with a max line length of 256k).
  4076. # Instead, let's just punt: use the minimum linelength reported by
  4077. # all of the supported platforms: 8192 (on NT/2K/XP).
  4078. lt_cv_sys_max_cmd_len=8192;
  4079. ;;
  4080. mint*)
  4081. # On MiNT this can take a long time and run out of memory.
  4082. lt_cv_sys_max_cmd_len=8192;
  4083. ;;
  4084. amigaos*)
  4085. # On AmigaOS with pdksh, this test takes hours, literally.
  4086. # So we just punt and use a minimum line length of 8192.
  4087. lt_cv_sys_max_cmd_len=8192;
  4088. ;;
  4089. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4090. # This has been around since 386BSD, at least. Likely further.
  4091. if test -x /sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4093. elif test -x /usr/sbin/sysctl; then
  4094. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4095. else
  4096. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4097. fi
  4098. # And add a safety zone
  4099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4101. ;;
  4102. interix*)
  4103. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4104. lt_cv_sys_max_cmd_len=196608
  4105. ;;
  4106. os2*)
  4107. # The test takes a long time on OS/2.
  4108. lt_cv_sys_max_cmd_len=8192
  4109. ;;
  4110. osf*)
  4111. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4112. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4113. # nice to cause kernel panics so lets avoid the loop below.
  4114. # First set a reasonable default.
  4115. lt_cv_sys_max_cmd_len=16384
  4116. #
  4117. if test -x /sbin/sysconfig; then
  4118. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4119. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4120. esac
  4121. fi
  4122. ;;
  4123. sco3.2v5*)
  4124. lt_cv_sys_max_cmd_len=102400
  4125. ;;
  4126. sysv5* | sco5v6* | sysv4.2uw2*)
  4127. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4128. if test -n "$kargmax"; then
  4129. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4130. else
  4131. lt_cv_sys_max_cmd_len=32768
  4132. fi
  4133. ;;
  4134. *)
  4135. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4136. if test -n "$lt_cv_sys_max_cmd_len" && \
  4137. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4138. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4140. else
  4141. # Make teststring a little bigger before we do anything with it.
  4142. # a 1K string should be a reasonable start.
  4143. for i in 1 2 3 4 5 6 7 8; do
  4144. teststring=$teststring$teststring
  4145. done
  4146. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4147. # If test is not a shell built-in, we'll probably end up computing a
  4148. # maximum length that is only half of the actual maximum length, but
  4149. # we can't tell.
  4150. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4151. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4152. test 17 != "$i" # 1/2 MB should be enough
  4153. do
  4154. i=`expr $i + 1`
  4155. teststring=$teststring$teststring
  4156. done
  4157. # Only check the string length outside the loop.
  4158. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4159. teststring=
  4160. # Add a significant safety factor because C++ compilers can tack on
  4161. # massive amounts of additional arguments before passing them to the
  4162. # linker. It appears as though 1/2 is a usable value.
  4163. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4164. fi
  4165. ;;
  4166. esac
  4167. fi
  4168. if test -n "$lt_cv_sys_max_cmd_len"; then
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4170. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4171. else
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4173. $as_echo "none" >&6; }
  4174. fi
  4175. max_cmd_len=$lt_cv_sys_max_cmd_len
  4176. : ${CP="cp -f"}
  4177. : ${MV="mv -f"}
  4178. : ${RM="rm -f"}
  4179. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4180. lt_unset=unset
  4181. else
  4182. lt_unset=false
  4183. fi
  4184. # test EBCDIC or ASCII
  4185. case `echo X|tr X '\101'` in
  4186. A) # ASCII based system
  4187. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4188. lt_SP2NL='tr \040 \012'
  4189. lt_NL2SP='tr \015\012 \040\040'
  4190. ;;
  4191. *) # EBCDIC based system
  4192. lt_SP2NL='tr \100 \n'
  4193. lt_NL2SP='tr \r\n \100\100'
  4194. ;;
  4195. esac
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4197. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4198. if ${lt_cv_to_host_file_cmd+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. case $host in
  4202. *-*-mingw* )
  4203. case $build in
  4204. *-*-mingw* ) # actually msys
  4205. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4206. ;;
  4207. *-*-cygwin* )
  4208. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4209. ;;
  4210. * ) # otherwise, assume *nix
  4211. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4212. ;;
  4213. esac
  4214. ;;
  4215. *-*-cygwin* )
  4216. case $build in
  4217. *-*-mingw* ) # actually msys
  4218. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4219. ;;
  4220. *-*-cygwin* )
  4221. lt_cv_to_host_file_cmd=func_convert_file_noop
  4222. ;;
  4223. * ) # otherwise, assume *nix
  4224. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4225. ;;
  4226. esac
  4227. ;;
  4228. * ) # unhandled hosts (and "normal" native builds)
  4229. lt_cv_to_host_file_cmd=func_convert_file_noop
  4230. ;;
  4231. esac
  4232. fi
  4233. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4235. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4237. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4238. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. #assume ordinary cross tools, or native build.
  4242. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4243. case $host in
  4244. *-*-mingw* )
  4245. case $build in
  4246. *-*-mingw* ) # actually msys
  4247. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4248. ;;
  4249. esac
  4250. ;;
  4251. esac
  4252. fi
  4253. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4255. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4257. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4258. if ${lt_cv_ld_reload_flag+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. lt_cv_ld_reload_flag='-r'
  4262. fi
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4264. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4265. reload_flag=$lt_cv_ld_reload_flag
  4266. case $reload_flag in
  4267. "" | " "*) ;;
  4268. *) reload_flag=" $reload_flag" ;;
  4269. esac
  4270. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4271. case $host_os in
  4272. cygwin* | mingw* | pw32* | cegcc*)
  4273. if test yes != "$GCC"; then
  4274. reload_cmds=false
  4275. fi
  4276. ;;
  4277. darwin*)
  4278. if test yes = "$GCC"; then
  4279. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4280. else
  4281. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4282. fi
  4283. ;;
  4284. esac
  4285. if test -n "$ac_tool_prefix"; then
  4286. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4287. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4289. $as_echo_n "checking for $ac_word... " >&6; }
  4290. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -n "$OBJDUMP"; then
  4294. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4295. else
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4303. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4305. break 2
  4306. fi
  4307. done
  4308. done
  4309. IFS=$as_save_IFS
  4310. fi
  4311. fi
  4312. OBJDUMP=$ac_cv_prog_OBJDUMP
  4313. if test -n "$OBJDUMP"; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4315. $as_echo "$OBJDUMP" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4318. $as_echo "no" >&6; }
  4319. fi
  4320. fi
  4321. if test -z "$ac_cv_prog_OBJDUMP"; then
  4322. ac_ct_OBJDUMP=$OBJDUMP
  4323. # Extract the first word of "objdump", so it can be a program name with args.
  4324. set dummy objdump; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$ac_ct_OBJDUMP"; then
  4331. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4340. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4350. if test -n "$ac_ct_OBJDUMP"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4352. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. if test "x$ac_ct_OBJDUMP" = x; then
  4358. OBJDUMP="false"
  4359. else
  4360. case $cross_compiling:$ac_tool_warned in
  4361. yes:)
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4363. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4364. ac_tool_warned=yes ;;
  4365. esac
  4366. OBJDUMP=$ac_ct_OBJDUMP
  4367. fi
  4368. else
  4369. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4370. fi
  4371. test -z "$OBJDUMP" && OBJDUMP=objdump
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4373. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4374. if ${lt_cv_deplibs_check_method+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4378. lt_cv_file_magic_test_file=
  4379. lt_cv_deplibs_check_method='unknown'
  4380. # Need to set the preceding variable on all platforms that support
  4381. # interlibrary dependencies.
  4382. # 'none' -- dependencies not supported.
  4383. # 'unknown' -- same as none, but documents that we really don't know.
  4384. # 'pass_all' -- all dependencies passed with no checks.
  4385. # 'test_compile' -- check by making test program.
  4386. # 'file_magic [[regex]]' -- check by looking for files in library path
  4387. # that responds to the $file_magic_cmd with a given extended regex.
  4388. # If you have 'file' or equivalent on your system and you're not sure
  4389. # whether 'pass_all' will *always* work, you probably want this one.
  4390. case $host_os in
  4391. aix[4-9]*)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. beos*)
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. bsdi[45]*)
  4398. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4399. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4400. lt_cv_file_magic_test_file=/shlib/libc.so
  4401. ;;
  4402. cygwin*)
  4403. # func_win32_libid is a shell function defined in ltmain.sh
  4404. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4405. lt_cv_file_magic_cmd='func_win32_libid'
  4406. lt_cv_deplibs_check_method=pass_all # SDL customization
  4407. ;;
  4408. mingw* | pw32*)
  4409. # Base MSYS/MinGW do not provide the 'file' command needed by
  4410. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4411. # unless we find 'file', for example because we are cross-compiling.
  4412. if ( file / ) >/dev/null 2>&1; then
  4413. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4414. lt_cv_file_magic_cmd='func_win32_libid'
  4415. else
  4416. # Keep this pattern in sync with the one in func_win32_libid.
  4417. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4418. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4419. fi
  4420. lt_cv_deplibs_check_method=pass_all # SDL customization
  4421. ;;
  4422. cegcc*)
  4423. # use the weaker test based on 'objdump'. See mingw*.
  4424. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4425. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4426. ;;
  4427. darwin* | rhapsody*)
  4428. lt_cv_deplibs_check_method=pass_all
  4429. ;;
  4430. freebsd* | dragonfly* | midnightbsd*)
  4431. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4432. case $host_cpu in
  4433. i*86 )
  4434. # Not sure whether the presence of OpenBSD here was a mistake.
  4435. # Let's accept both of them until this is cleared up.
  4436. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4437. lt_cv_file_magic_cmd=/usr/bin/file
  4438. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4439. ;;
  4440. esac
  4441. else
  4442. lt_cv_deplibs_check_method=pass_all
  4443. fi
  4444. ;;
  4445. haiku*)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. hpux10.20* | hpux11*)
  4449. lt_cv_file_magic_cmd=/usr/bin/file
  4450. case $host_cpu in
  4451. ia64*)
  4452. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4453. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4454. ;;
  4455. hppa*64*)
  4456. 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]'
  4457. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4458. ;;
  4459. *)
  4460. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4461. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4462. ;;
  4463. esac
  4464. ;;
  4465. interix[3-9]*)
  4466. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4468. ;;
  4469. irix5* | irix6* | nonstopux*)
  4470. case $LD in
  4471. *-32|*"-32 ") libmagic=32-bit;;
  4472. *-n32|*"-n32 ") libmagic=N32;;
  4473. *-64|*"-64 ") libmagic=64-bit;;
  4474. *) libmagic=never-match;;
  4475. esac
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. # This must be glibc/ELF.
  4479. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. netbsd*)
  4483. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4485. else
  4486. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4487. fi
  4488. ;;
  4489. newos6*)
  4490. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4491. lt_cv_file_magic_cmd=/usr/bin/file
  4492. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4493. ;;
  4494. *nto* | *qnx*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. openbsd* | bitrig*)
  4498. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4500. else
  4501. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4502. fi
  4503. ;;
  4504. osf3* | osf4* | osf5*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. rdos*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. solaris*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. sysv4 | sysv4.3*)
  4517. case $host_vendor in
  4518. motorola)
  4519. 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]'
  4520. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4521. ;;
  4522. ncr)
  4523. lt_cv_deplibs_check_method=pass_all
  4524. ;;
  4525. sequent)
  4526. lt_cv_file_magic_cmd='/bin/file'
  4527. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4528. ;;
  4529. sni)
  4530. lt_cv_file_magic_cmd='/bin/file'
  4531. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4532. lt_cv_file_magic_test_file=/lib/libc.so
  4533. ;;
  4534. siemens)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. pc)
  4538. lt_cv_deplibs_check_method=pass_all
  4539. ;;
  4540. esac
  4541. ;;
  4542. tpf*)
  4543. lt_cv_deplibs_check_method=pass_all
  4544. ;;
  4545. os2*)
  4546. lt_cv_deplibs_check_method=pass_all
  4547. ;;
  4548. esac
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4551. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4552. file_magic_glob=
  4553. want_nocaseglob=no
  4554. if test "$build" = "$host"; then
  4555. case $host_os in
  4556. mingw* | pw32*)
  4557. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4558. want_nocaseglob=yes
  4559. else
  4560. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4561. fi
  4562. ;;
  4563. esac
  4564. fi
  4565. file_magic_cmd=$lt_cv_file_magic_cmd
  4566. deplibs_check_method=$lt_cv_deplibs_check_method
  4567. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4568. if test -n "$ac_tool_prefix"; then
  4569. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4570. set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$DLLTOOL"; then
  4577. ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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. DLLTOOL=$ac_cv_prog_DLLTOOL
  4596. if test -n "$DLLTOOL"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4598. $as_echo "$DLLTOOL" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. fi
  4604. if test -z "$ac_cv_prog_DLLTOOL"; then
  4605. ac_ct_DLLTOOL=$DLLTOOL
  4606. # Extract the first word of "dlltool", so it can be a program name with args.
  4607. set dummy dlltool; ac_word=$2
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. $as_echo_n "checking for $ac_word... " >&6; }
  4610. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. if test -n "$ac_ct_DLLTOOL"; then
  4614. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4615. else
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4623. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4625. break 2
  4626. fi
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. fi
  4631. fi
  4632. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4633. if test -n "$ac_ct_DLLTOOL"; then
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4635. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4636. else
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4638. $as_echo "no" >&6; }
  4639. fi
  4640. if test "x$ac_ct_DLLTOOL" = x; then
  4641. DLLTOOL="false"
  4642. else
  4643. case $cross_compiling:$ac_tool_warned in
  4644. yes:)
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4647. ac_tool_warned=yes ;;
  4648. esac
  4649. DLLTOOL=$ac_ct_DLLTOOL
  4650. fi
  4651. else
  4652. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4653. fi
  4654. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4656. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4657. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4661. case $host_os in
  4662. cygwin* | mingw* | pw32* | cegcc*)
  4663. # two different shell functions defined in ltmain.sh;
  4664. # decide which one to use based on capabilities of $DLLTOOL
  4665. case `$DLLTOOL --help 2>&1` in
  4666. *--identify-strict*)
  4667. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4668. ;;
  4669. *)
  4670. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4671. ;;
  4672. esac
  4673. ;;
  4674. *)
  4675. # fallback: assume linklib IS sharedlib
  4676. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4677. ;;
  4678. esac
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4681. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4682. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4683. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4684. if test -n "$ac_tool_prefix"; then
  4685. for ac_prog in ar
  4686. do
  4687. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4688. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4690. $as_echo_n "checking for $ac_word... " >&6; }
  4691. if ${ac_cv_prog_AR+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. if test -n "$AR"; then
  4695. ac_cv_prog_AR="$AR" # Let the user override the test.
  4696. else
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4704. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4706. break 2
  4707. fi
  4708. done
  4709. done
  4710. IFS=$as_save_IFS
  4711. fi
  4712. fi
  4713. AR=$ac_cv_prog_AR
  4714. if test -n "$AR"; then
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4716. $as_echo "$AR" >&6; }
  4717. else
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. $as_echo "no" >&6; }
  4720. fi
  4721. test -n "$AR" && break
  4722. done
  4723. fi
  4724. if test -z "$AR"; then
  4725. ac_ct_AR=$AR
  4726. for ac_prog in ar
  4727. do
  4728. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4729. set dummy $ac_prog; ac_word=$2
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4731. $as_echo_n "checking for $ac_word... " >&6; }
  4732. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. if test -n "$ac_ct_AR"; then
  4736. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4737. else
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_exec_ext in '' $ac_executable_extensions; do
  4744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4745. ac_cv_prog_ac_ct_AR="$ac_prog"
  4746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747. break 2
  4748. fi
  4749. done
  4750. done
  4751. IFS=$as_save_IFS
  4752. fi
  4753. fi
  4754. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4755. if test -n "$ac_ct_AR"; then
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4757. $as_echo "$ac_ct_AR" >&6; }
  4758. else
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4760. $as_echo "no" >&6; }
  4761. fi
  4762. test -n "$ac_ct_AR" && break
  4763. done
  4764. if test "x$ac_ct_AR" = x; then
  4765. AR="false"
  4766. else
  4767. case $cross_compiling:$ac_tool_warned in
  4768. yes:)
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4771. ac_tool_warned=yes ;;
  4772. esac
  4773. AR=$ac_ct_AR
  4774. fi
  4775. fi
  4776. : ${AR=ar}
  4777. : ${AR_FLAGS=cru}
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4779. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4780. if ${lt_cv_ar_at_file+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. lt_cv_ar_at_file=no
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. int
  4787. main ()
  4788. {
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_c_try_compile "$LINENO"; then :
  4794. echo conftest.$ac_objext > conftest.lst
  4795. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4796. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4797. (eval $lt_ar_try) 2>&5
  4798. ac_status=$?
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4800. test $ac_status = 0; }
  4801. if test 0 -eq "$ac_status"; then
  4802. # Ensure the archiver fails upon bogus file names.
  4803. rm -f conftest.$ac_objext libconftest.a
  4804. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4805. (eval $lt_ar_try) 2>&5
  4806. ac_status=$?
  4807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4808. test $ac_status = 0; }
  4809. if test 0 -ne "$ac_status"; then
  4810. lt_cv_ar_at_file=@
  4811. fi
  4812. fi
  4813. rm -f conftest.* libconftest.a
  4814. fi
  4815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4816. fi
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4818. $as_echo "$lt_cv_ar_at_file" >&6; }
  4819. if test no = "$lt_cv_ar_at_file"; then
  4820. archiver_list_spec=
  4821. else
  4822. archiver_list_spec=$lt_cv_ar_at_file
  4823. fi
  4824. if test -n "$ac_tool_prefix"; then
  4825. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4826. set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$STRIP"; then
  4833. ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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. STRIP=$ac_cv_prog_STRIP
  4852. if test -n "$STRIP"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4854. $as_echo "$STRIP" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. fi
  4860. if test -z "$ac_cv_prog_STRIP"; then
  4861. ac_ct_STRIP=$STRIP
  4862. # Extract the first word of "strip", so it can be a program name with args.
  4863. set dummy strip; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$ac_ct_STRIP"; then
  4870. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_prog_ac_ct_STRIP="strip"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4889. if test -n "$ac_ct_STRIP"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4891. $as_echo "$ac_ct_STRIP" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. if test "x$ac_ct_STRIP" = x; then
  4897. STRIP=":"
  4898. else
  4899. case $cross_compiling:$ac_tool_warned in
  4900. yes:)
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4902. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4903. ac_tool_warned=yes ;;
  4904. esac
  4905. STRIP=$ac_ct_STRIP
  4906. fi
  4907. else
  4908. STRIP="$ac_cv_prog_STRIP"
  4909. fi
  4910. test -z "$STRIP" && STRIP=:
  4911. if test -n "$ac_tool_prefix"; then
  4912. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4913. set dummy ${ac_tool_prefix}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_RANLIB+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$RANLIB"; then
  4920. ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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. RANLIB=$ac_cv_prog_RANLIB
  4939. if test -n "$RANLIB"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4941. $as_echo "$RANLIB" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. fi
  4947. if test -z "$ac_cv_prog_RANLIB"; then
  4948. ac_ct_RANLIB=$RANLIB
  4949. # Extract the first word of "ranlib", so it can be a program name with args.
  4950. set dummy ranlib; ac_word=$2
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4952. $as_echo_n "checking for $ac_word... " >&6; }
  4953. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. if test -n "$ac_ct_RANLIB"; then
  4957. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4958. else
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4966. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. fi
  4974. fi
  4975. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4976. if test -n "$ac_ct_RANLIB"; then
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4978. $as_echo "$ac_ct_RANLIB" >&6; }
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. fi
  4983. if test "x$ac_ct_RANLIB" = x; then
  4984. RANLIB=":"
  4985. else
  4986. case $cross_compiling:$ac_tool_warned in
  4987. yes:)
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4990. ac_tool_warned=yes ;;
  4991. esac
  4992. RANLIB=$ac_ct_RANLIB
  4993. fi
  4994. else
  4995. RANLIB="$ac_cv_prog_RANLIB"
  4996. fi
  4997. test -z "$RANLIB" && RANLIB=:
  4998. # Determine commands to create old-style static archives.
  4999. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5000. old_postinstall_cmds='chmod 644 $oldlib'
  5001. old_postuninstall_cmds=
  5002. if test -n "$RANLIB"; then
  5003. case $host_os in
  5004. bitrig* | openbsd*)
  5005. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5006. ;;
  5007. *)
  5008. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5009. ;;
  5010. esac
  5011. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5012. fi
  5013. case $host_os in
  5014. darwin*)
  5015. lock_old_archive_extraction=yes ;;
  5016. *)
  5017. lock_old_archive_extraction=no ;;
  5018. esac
  5019. for ac_prog in gawk mawk nawk awk
  5020. do
  5021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5022. set dummy $ac_prog; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if ${ac_cv_prog_AWK+:} false; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$AWK"; then
  5029. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5038. ac_cv_prog_AWK="$ac_prog"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. AWK=$ac_cv_prog_AWK
  5048. if test -n "$AWK"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5050. $as_echo "$AWK" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. test -n "$AWK" && break
  5056. done
  5057. # If no C compiler was specified, use CC.
  5058. LTCC=${LTCC-"$CC"}
  5059. # If no C compiler flags were specified, use CFLAGS.
  5060. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5061. # Allow CC to be a program name with arguments.
  5062. compiler=$CC
  5063. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5065. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5066. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. # These are sane defaults that work on at least a few old systems.
  5070. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5071. # Character class describing NM global symbol codes.
  5072. symcode='[BCDEGRST]'
  5073. # Regexp to match symbols that can be accessed directly from C.
  5074. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5075. # Define system-specific variables.
  5076. case $host_os in
  5077. aix*)
  5078. symcode='[BCDT]'
  5079. ;;
  5080. cygwin* | mingw* | pw32* | cegcc*)
  5081. symcode='[ABCDGISTW]'
  5082. ;;
  5083. hpux*)
  5084. if test ia64 = "$host_cpu"; then
  5085. symcode='[ABCDEGRST]'
  5086. fi
  5087. ;;
  5088. irix* | nonstopux*)
  5089. symcode='[BCDEGRST]'
  5090. ;;
  5091. osf*)
  5092. symcode='[BCDEGQRST]'
  5093. ;;
  5094. solaris*)
  5095. symcode='[BCDRT]'
  5096. ;;
  5097. sco3.2v5*)
  5098. symcode='[DT]'
  5099. ;;
  5100. sysv4.2uw2*)
  5101. symcode='[DT]'
  5102. ;;
  5103. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5104. symcode='[ABDT]'
  5105. ;;
  5106. sysv4)
  5107. symcode='[DFNSTU]'
  5108. ;;
  5109. esac
  5110. # If we're using GNU nm, then use its standard symbol codes.
  5111. case `$NM -V 2>&1` in
  5112. *GNU* | *'with BFD'*)
  5113. symcode='[ABCDGIRSTW]' ;;
  5114. esac
  5115. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5116. # Gets list of data symbols to import.
  5117. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5118. # Adjust the below global symbol transforms to fixup imported variables.
  5119. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5120. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5121. lt_c_name_lib_hook="\
  5122. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5123. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5124. else
  5125. # Disable hooks by default.
  5126. lt_cv_sys_global_symbol_to_import=
  5127. lt_cdecl_hook=
  5128. lt_c_name_hook=
  5129. lt_c_name_lib_hook=
  5130. fi
  5131. # Transform an extracted symbol line into a proper C declaration.
  5132. # Some systems (esp. on ia64) link data and code symbols differently,
  5133. # so use this general approach.
  5134. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5135. $lt_cdecl_hook\
  5136. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5137. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5138. # Transform an extracted symbol line into symbol name and symbol address
  5139. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5140. $lt_c_name_hook\
  5141. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5142. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5143. # Transform an extracted symbol line into symbol name with lib prefix and
  5144. # symbol address.
  5145. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5146. $lt_c_name_lib_hook\
  5147. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5148. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5149. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5150. # Handle CRLF in mingw tool chain
  5151. opt_cr=
  5152. case $build_os in
  5153. mingw*)
  5154. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5155. ;;
  5156. esac
  5157. # Try without a prefix underscore, then with it.
  5158. for ac_symprfx in "" "_"; do
  5159. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5160. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5161. # Write the raw and C identifiers.
  5162. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5163. # Fake it for dumpbin and say T for any non-static function,
  5164. # D for any global variable and I for any imported variable.
  5165. # Also find C++ and __fastcall symbols from MSVC++,
  5166. # which start with @ or ?.
  5167. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5168. " {last_section=section; section=\$ 3};"\
  5169. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5170. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5171. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5172. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5173. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5174. " \$ 0!~/External *\|/{next};"\
  5175. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5176. " {if(hide[section]) next};"\
  5177. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5178. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5179. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5180. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5181. " ' prfx=^$ac_symprfx"
  5182. else
  5183. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5184. fi
  5185. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5186. # Check to see that the pipe works correctly.
  5187. pipe_works=no
  5188. rm -f conftest*
  5189. cat > conftest.$ac_ext <<_LT_EOF
  5190. #ifdef __cplusplus
  5191. extern "C" {
  5192. #endif
  5193. char nm_test_var;
  5194. void nm_test_func(void);
  5195. void nm_test_func(void){}
  5196. #ifdef __cplusplus
  5197. }
  5198. #endif
  5199. int main(){nm_test_var='a';nm_test_func();return(0);}
  5200. _LT_EOF
  5201. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5202. (eval $ac_compile) 2>&5
  5203. ac_status=$?
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5205. test $ac_status = 0; }; then
  5206. # Now try to grab the symbols.
  5207. nlist=conftest.nm
  5208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5209. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5210. ac_status=$?
  5211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5212. test $ac_status = 0; } && test -s "$nlist"; then
  5213. # Try sorting and uniquifying the output.
  5214. if sort "$nlist" | uniq > "$nlist"T; then
  5215. mv -f "$nlist"T "$nlist"
  5216. else
  5217. rm -f "$nlist"T
  5218. fi
  5219. # Make sure that we snagged all the symbols we need.
  5220. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5221. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5222. cat <<_LT_EOF > conftest.$ac_ext
  5223. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5224. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5225. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5226. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5227. # define LT_DLSYM_CONST
  5228. #elif defined __osf__
  5229. /* This system does not cope well with relocations in const data. */
  5230. # define LT_DLSYM_CONST
  5231. #else
  5232. # define LT_DLSYM_CONST const
  5233. #endif
  5234. #ifdef __cplusplus
  5235. extern "C" {
  5236. #endif
  5237. _LT_EOF
  5238. # Now generate the symbol file.
  5239. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5240. cat <<_LT_EOF >> conftest.$ac_ext
  5241. /* The mapping between symbol names and symbols. */
  5242. LT_DLSYM_CONST struct {
  5243. const char *name;
  5244. void *address;
  5245. }
  5246. lt__PROGRAM__LTX_preloaded_symbols[] =
  5247. {
  5248. { "@PROGRAM@", (void *) 0 },
  5249. _LT_EOF
  5250. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5251. cat <<\_LT_EOF >> conftest.$ac_ext
  5252. {0, (void *) 0}
  5253. };
  5254. /* This works around a problem in FreeBSD linker */
  5255. #ifdef FREEBSD_WORKAROUND
  5256. static const void *lt_preloaded_setup() {
  5257. return lt__PROGRAM__LTX_preloaded_symbols;
  5258. }
  5259. #endif
  5260. #ifdef __cplusplus
  5261. }
  5262. #endif
  5263. _LT_EOF
  5264. # Now try linking the two files.
  5265. mv conftest.$ac_objext conftstm.$ac_objext
  5266. lt_globsym_save_LIBS=$LIBS
  5267. lt_globsym_save_CFLAGS=$CFLAGS
  5268. LIBS=conftstm.$ac_objext
  5269. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5271. (eval $ac_link) 2>&5
  5272. ac_status=$?
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5274. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5275. pipe_works=yes
  5276. fi
  5277. LIBS=$lt_globsym_save_LIBS
  5278. CFLAGS=$lt_globsym_save_CFLAGS
  5279. else
  5280. echo "cannot find nm_test_func in $nlist" >&5
  5281. fi
  5282. else
  5283. echo "cannot find nm_test_var in $nlist" >&5
  5284. fi
  5285. else
  5286. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5287. fi
  5288. else
  5289. echo "$progname: failed program was:" >&5
  5290. cat conftest.$ac_ext >&5
  5291. fi
  5292. rm -rf conftest* conftst*
  5293. # Do not use the global_symbol_pipe unless it works.
  5294. if test yes = "$pipe_works"; then
  5295. break
  5296. else
  5297. lt_cv_sys_global_symbol_pipe=
  5298. fi
  5299. done
  5300. fi
  5301. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5302. lt_cv_sys_global_symbol_to_cdecl=
  5303. fi
  5304. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5306. $as_echo "failed" >&6; }
  5307. else
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5309. $as_echo "ok" >&6; }
  5310. fi
  5311. # Response file support.
  5312. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5313. nm_file_list_spec='@'
  5314. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5315. nm_file_list_spec='@'
  5316. fi
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5318. $as_echo_n "checking for sysroot... " >&6; }
  5319. # Check whether --with-sysroot was given.
  5320. if test "${with_sysroot+set}" = set; then :
  5321. withval=$with_sysroot;
  5322. else
  5323. with_sysroot=no
  5324. fi
  5325. lt_sysroot=
  5326. case $with_sysroot in #(
  5327. yes)
  5328. if test yes = "$GCC"; then
  5329. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5330. fi
  5331. ;; #(
  5332. /*)
  5333. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5334. ;; #(
  5335. no|'')
  5336. ;; #(
  5337. *)
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5339. $as_echo "$with_sysroot" >&6; }
  5340. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5341. ;;
  5342. esac
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5344. $as_echo "${lt_sysroot:-no}" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5346. $as_echo_n "checking for a working dd... " >&6; }
  5347. if ${ac_cv_path_lt_DD+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. printf 0123456789abcdef0123456789abcdef >conftest.i
  5351. cat conftest.i conftest.i >conftest2.i
  5352. : ${lt_DD:=$DD}
  5353. if test -z "$lt_DD"; then
  5354. ac_path_lt_DD_found=false
  5355. # Loop through the user's path and test for each of PROGNAME-LIST
  5356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5357. for as_dir in $PATH
  5358. do
  5359. IFS=$as_save_IFS
  5360. test -z "$as_dir" && as_dir=.
  5361. for ac_prog in dd; do
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5364. as_fn_executable_p "$ac_path_lt_DD" || continue
  5365. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5366. cmp -s conftest.i conftest.out \
  5367. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5368. fi
  5369. $ac_path_lt_DD_found && break 3
  5370. done
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. if test -z "$ac_cv_path_lt_DD"; then
  5375. :
  5376. fi
  5377. else
  5378. ac_cv_path_lt_DD=$lt_DD
  5379. fi
  5380. rm -f conftest.i conftest2.i conftest.out
  5381. fi
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5383. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5385. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5386. if ${lt_cv_truncate_bin+:} false; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. printf 0123456789abcdef0123456789abcdef >conftest.i
  5390. cat conftest.i conftest.i >conftest2.i
  5391. lt_cv_truncate_bin=
  5392. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5393. cmp -s conftest.i conftest.out \
  5394. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5395. fi
  5396. rm -f conftest.i conftest2.i conftest.out
  5397. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5398. fi
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5400. $as_echo "$lt_cv_truncate_bin" >&6; }
  5401. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5402. func_cc_basename ()
  5403. {
  5404. for cc_temp in $*""; do
  5405. case $cc_temp in
  5406. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5407. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5408. \-*) ;;
  5409. *) break;;
  5410. esac
  5411. done
  5412. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5413. }
  5414. # Check whether --enable-libtool-lock was given.
  5415. if test "${enable_libtool_lock+set}" = set; then :
  5416. enableval=$enable_libtool_lock;
  5417. fi
  5418. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5419. # Some flags need to be propagated to the compiler or linker for good
  5420. # libtool support.
  5421. case $host in
  5422. ia64-*-hpux*)
  5423. # Find out what ABI is being produced by ac_compile, and set mode
  5424. # options accordingly.
  5425. echo 'int i;' > conftest.$ac_ext
  5426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5427. (eval $ac_compile) 2>&5
  5428. ac_status=$?
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5430. test $ac_status = 0; }; then
  5431. case `/usr/bin/file conftest.$ac_objext` in
  5432. *ELF-32*)
  5433. HPUX_IA64_MODE=32
  5434. ;;
  5435. *ELF-64*)
  5436. HPUX_IA64_MODE=64
  5437. ;;
  5438. esac
  5439. fi
  5440. rm -rf conftest*
  5441. ;;
  5442. *-*-irix6*)
  5443. # Find out what ABI is being produced by ac_compile, and set linker
  5444. # options accordingly.
  5445. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5447. (eval $ac_compile) 2>&5
  5448. ac_status=$?
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5450. test $ac_status = 0; }; then
  5451. if test yes = "$lt_cv_prog_gnu_ld"; then
  5452. case `/usr/bin/file conftest.$ac_objext` in
  5453. *32-bit*)
  5454. LD="${LD-ld} -melf32bsmip"
  5455. ;;
  5456. *N32*)
  5457. LD="${LD-ld} -melf32bmipn32"
  5458. ;;
  5459. *64-bit*)
  5460. LD="${LD-ld} -melf64bmip"
  5461. ;;
  5462. esac
  5463. else
  5464. case `/usr/bin/file conftest.$ac_objext` in
  5465. *32-bit*)
  5466. LD="${LD-ld} -32"
  5467. ;;
  5468. *N32*)
  5469. LD="${LD-ld} -n32"
  5470. ;;
  5471. *64-bit*)
  5472. LD="${LD-ld} -64"
  5473. ;;
  5474. esac
  5475. fi
  5476. fi
  5477. rm -rf conftest*
  5478. ;;
  5479. mips64*-*linux*)
  5480. # Find out what ABI is being produced by ac_compile, and set linker
  5481. # options accordingly.
  5482. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5483. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5484. (eval $ac_compile) 2>&5
  5485. ac_status=$?
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5487. test $ac_status = 0; }; then
  5488. emul=elf
  5489. case `/usr/bin/file conftest.$ac_objext` in
  5490. *32-bit*)
  5491. emul="${emul}32"
  5492. ;;
  5493. *64-bit*)
  5494. emul="${emul}64"
  5495. ;;
  5496. esac
  5497. case `/usr/bin/file conftest.$ac_objext` in
  5498. *MSB*)
  5499. emul="${emul}btsmip"
  5500. ;;
  5501. *LSB*)
  5502. emul="${emul}ltsmip"
  5503. ;;
  5504. esac
  5505. case `/usr/bin/file conftest.$ac_objext` in
  5506. *N32*)
  5507. emul="${emul}n32"
  5508. ;;
  5509. esac
  5510. LD="${LD-ld} -m $emul"
  5511. fi
  5512. rm -rf conftest*
  5513. ;;
  5514. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5515. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5516. # Find out what ABI is being produced by ac_compile, and set linker
  5517. # options accordingly. Note that the listed cases only cover the
  5518. # situations where additional linker options are needed (such as when
  5519. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5520. # vice versa); the common cases where no linker options are needed do
  5521. # not appear in the list.
  5522. echo 'int i;' > conftest.$ac_ext
  5523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5524. (eval $ac_compile) 2>&5
  5525. ac_status=$?
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5527. test $ac_status = 0; }; then
  5528. case `/usr/bin/file conftest.o` in
  5529. *32-bit*)
  5530. case $host in
  5531. x86_64-*kfreebsd*-gnu)
  5532. LD="${LD-ld} -m elf_i386_fbsd"
  5533. ;;
  5534. x86_64-*linux*)
  5535. case `/usr/bin/file conftest.o` in
  5536. *x86-64*)
  5537. LD="${LD-ld} -m elf32_x86_64"
  5538. ;;
  5539. *)
  5540. LD="${LD-ld} -m elf_i386"
  5541. ;;
  5542. esac
  5543. ;;
  5544. powerpc64le-*linux*)
  5545. LD="${LD-ld} -m elf32lppclinux"
  5546. ;;
  5547. powerpc64-*linux*)
  5548. LD="${LD-ld} -m elf32ppclinux"
  5549. ;;
  5550. s390x-*linux*)
  5551. LD="${LD-ld} -m elf_s390"
  5552. ;;
  5553. sparc64-*linux*)
  5554. LD="${LD-ld} -m elf32_sparc"
  5555. ;;
  5556. esac
  5557. ;;
  5558. *64-bit*)
  5559. case $host in
  5560. x86_64-*kfreebsd*-gnu)
  5561. LD="${LD-ld} -m elf_x86_64_fbsd"
  5562. ;;
  5563. x86_64-*linux*)
  5564. LD="${LD-ld} -m elf_x86_64"
  5565. ;;
  5566. powerpcle-*linux*|powerpc64le-*linux*)
  5567. LD="${LD-ld} -m elf64lppc"
  5568. ;;
  5569. powerpc-*linux*|powerpc64-*linux*)
  5570. LD="${LD-ld} -m elf64ppc"
  5571. ;;
  5572. s390*-*linux*|s390*-*tpf*)
  5573. LD="${LD-ld} -m elf64_s390"
  5574. ;;
  5575. sparc*-*linux*)
  5576. LD="${LD-ld} -m elf64_sparc"
  5577. ;;
  5578. esac
  5579. ;;
  5580. esac
  5581. fi
  5582. rm -rf conftest*
  5583. ;;
  5584. *-*-sco3.2v5*)
  5585. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5586. SAVE_CFLAGS=$CFLAGS
  5587. CFLAGS="$CFLAGS -belf"
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5589. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5590. if ${lt_cv_cc_needs_belf+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. ac_ext=c
  5594. ac_cpp='$CPP $CPPFLAGS'
  5595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5599. /* end confdefs.h. */
  5600. int
  5601. main ()
  5602. {
  5603. ;
  5604. return 0;
  5605. }
  5606. _ACEOF
  5607. if ac_fn_c_try_link "$LINENO"; then :
  5608. lt_cv_cc_needs_belf=yes
  5609. else
  5610. lt_cv_cc_needs_belf=no
  5611. fi
  5612. rm -f core conftest.err conftest.$ac_objext \
  5613. conftest$ac_exeext conftest.$ac_ext
  5614. ac_ext=c
  5615. ac_cpp='$CPP $CPPFLAGS'
  5616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5619. fi
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5621. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5622. if test yes != "$lt_cv_cc_needs_belf"; then
  5623. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5624. CFLAGS=$SAVE_CFLAGS
  5625. fi
  5626. ;;
  5627. *-*solaris*)
  5628. # Find out what ABI is being produced by ac_compile, and set linker
  5629. # options accordingly.
  5630. echo 'int i;' > conftest.$ac_ext
  5631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5632. (eval $ac_compile) 2>&5
  5633. ac_status=$?
  5634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5635. test $ac_status = 0; }; then
  5636. case `/usr/bin/file conftest.o` in
  5637. *64-bit*)
  5638. case $lt_cv_prog_gnu_ld in
  5639. yes*)
  5640. case $host in
  5641. i?86-*-solaris*|x86_64-*-solaris*)
  5642. LD="${LD-ld} -m elf_x86_64"
  5643. ;;
  5644. sparc*-*-solaris*)
  5645. LD="${LD-ld} -m elf64_sparc"
  5646. ;;
  5647. esac
  5648. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5649. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5650. LD=${LD-ld}_sol2
  5651. fi
  5652. ;;
  5653. *)
  5654. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5655. LD="${LD-ld} -64"
  5656. fi
  5657. ;;
  5658. esac
  5659. ;;
  5660. esac
  5661. fi
  5662. rm -rf conftest*
  5663. ;;
  5664. esac
  5665. need_locks=$enable_libtool_lock
  5666. if test -n "$ac_tool_prefix"; then
  5667. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5668. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. $as_echo_n "checking for $ac_word... " >&6; }
  5671. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if test -n "$MANIFEST_TOOL"; then
  5675. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680. IFS=$as_save_IFS
  5681. test -z "$as_dir" && as_dir=.
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5684. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686. break 2
  5687. fi
  5688. done
  5689. done
  5690. IFS=$as_save_IFS
  5691. fi
  5692. fi
  5693. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5694. if test -n "$MANIFEST_TOOL"; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5696. $as_echo "$MANIFEST_TOOL" >&6; }
  5697. else
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5699. $as_echo "no" >&6; }
  5700. fi
  5701. fi
  5702. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5703. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5704. # Extract the first word of "mt", so it can be a program name with args.
  5705. set dummy mt; ac_word=$2
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5707. $as_echo_n "checking for $ac_word... " >&6; }
  5708. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5712. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5713. else
  5714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5715. for as_dir in $PATH
  5716. do
  5717. IFS=$as_save_IFS
  5718. test -z "$as_dir" && as_dir=.
  5719. for ac_exec_ext in '' $ac_executable_extensions; do
  5720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5721. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5723. break 2
  5724. fi
  5725. done
  5726. done
  5727. IFS=$as_save_IFS
  5728. fi
  5729. fi
  5730. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5731. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5733. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5734. else
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5736. $as_echo "no" >&6; }
  5737. fi
  5738. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5739. MANIFEST_TOOL=":"
  5740. else
  5741. case $cross_compiling:$ac_tool_warned in
  5742. yes:)
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5745. ac_tool_warned=yes ;;
  5746. esac
  5747. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5748. fi
  5749. else
  5750. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5751. fi
  5752. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5754. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5755. if ${lt_cv_path_mainfest_tool+:} false; then :
  5756. $as_echo_n "(cached) " >&6
  5757. else
  5758. lt_cv_path_mainfest_tool=no
  5759. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5760. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5761. cat conftest.err >&5
  5762. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5763. lt_cv_path_mainfest_tool=yes
  5764. fi
  5765. rm -f conftest*
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5768. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5769. if test yes != "$lt_cv_path_mainfest_tool"; then
  5770. MANIFEST_TOOL=:
  5771. fi
  5772. case $host_os in
  5773. rhapsody* | darwin*)
  5774. if test -n "$ac_tool_prefix"; then
  5775. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5776. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. if test -n "$DSYMUTIL"; then
  5783. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5784. else
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. test -z "$as_dir" && as_dir=.
  5790. for ac_exec_ext in '' $ac_executable_extensions; do
  5791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5792. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5794. break 2
  5795. fi
  5796. done
  5797. done
  5798. IFS=$as_save_IFS
  5799. fi
  5800. fi
  5801. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5802. if test -n "$DSYMUTIL"; then
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5804. $as_echo "$DSYMUTIL" >&6; }
  5805. else
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5807. $as_echo "no" >&6; }
  5808. fi
  5809. fi
  5810. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5811. ac_ct_DSYMUTIL=$DSYMUTIL
  5812. # Extract the first word of "dsymutil", so it can be a program name with args.
  5813. set dummy dsymutil; ac_word=$2
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5815. $as_echo_n "checking for $ac_word... " >&6; }
  5816. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5817. $as_echo_n "(cached) " >&6
  5818. else
  5819. if test -n "$ac_ct_DSYMUTIL"; then
  5820. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5821. else
  5822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823. for as_dir in $PATH
  5824. do
  5825. IFS=$as_save_IFS
  5826. test -z "$as_dir" && as_dir=.
  5827. for ac_exec_ext in '' $ac_executable_extensions; do
  5828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5829. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5831. break 2
  5832. fi
  5833. done
  5834. done
  5835. IFS=$as_save_IFS
  5836. fi
  5837. fi
  5838. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5839. if test -n "$ac_ct_DSYMUTIL"; then
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5841. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5842. else
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5844. $as_echo "no" >&6; }
  5845. fi
  5846. if test "x$ac_ct_DSYMUTIL" = x; then
  5847. DSYMUTIL=":"
  5848. else
  5849. case $cross_compiling:$ac_tool_warned in
  5850. yes:)
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5853. ac_tool_warned=yes ;;
  5854. esac
  5855. DSYMUTIL=$ac_ct_DSYMUTIL
  5856. fi
  5857. else
  5858. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5859. fi
  5860. if test -n "$ac_tool_prefix"; then
  5861. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5862. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5864. $as_echo_n "checking for $ac_word... " >&6; }
  5865. if ${ac_cv_prog_NMEDIT+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. if test -n "$NMEDIT"; then
  5869. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5870. else
  5871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5872. for as_dir in $PATH
  5873. do
  5874. IFS=$as_save_IFS
  5875. test -z "$as_dir" && as_dir=.
  5876. for ac_exec_ext in '' $ac_executable_extensions; do
  5877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5878. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5880. break 2
  5881. fi
  5882. done
  5883. done
  5884. IFS=$as_save_IFS
  5885. fi
  5886. fi
  5887. NMEDIT=$ac_cv_prog_NMEDIT
  5888. if test -n "$NMEDIT"; then
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5890. $as_echo "$NMEDIT" >&6; }
  5891. else
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5893. $as_echo "no" >&6; }
  5894. fi
  5895. fi
  5896. if test -z "$ac_cv_prog_NMEDIT"; then
  5897. ac_ct_NMEDIT=$NMEDIT
  5898. # Extract the first word of "nmedit", so it can be a program name with args.
  5899. set dummy nmedit; ac_word=$2
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5901. $as_echo_n "checking for $ac_word... " >&6; }
  5902. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. if test -n "$ac_ct_NMEDIT"; then
  5906. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5907. else
  5908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5909. for as_dir in $PATH
  5910. do
  5911. IFS=$as_save_IFS
  5912. test -z "$as_dir" && as_dir=.
  5913. for ac_exec_ext in '' $ac_executable_extensions; do
  5914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5915. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5917. break 2
  5918. fi
  5919. done
  5920. done
  5921. IFS=$as_save_IFS
  5922. fi
  5923. fi
  5924. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5925. if test -n "$ac_ct_NMEDIT"; then
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5927. $as_echo "$ac_ct_NMEDIT" >&6; }
  5928. else
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5930. $as_echo "no" >&6; }
  5931. fi
  5932. if test "x$ac_ct_NMEDIT" = x; then
  5933. NMEDIT=":"
  5934. else
  5935. case $cross_compiling:$ac_tool_warned in
  5936. yes:)
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5939. ac_tool_warned=yes ;;
  5940. esac
  5941. NMEDIT=$ac_ct_NMEDIT
  5942. fi
  5943. else
  5944. NMEDIT="$ac_cv_prog_NMEDIT"
  5945. fi
  5946. if test -n "$ac_tool_prefix"; then
  5947. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5948. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5950. $as_echo_n "checking for $ac_word... " >&6; }
  5951. if ${ac_cv_prog_LIPO+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. if test -n "$LIPO"; then
  5955. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5956. else
  5957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5958. for as_dir in $PATH
  5959. do
  5960. IFS=$as_save_IFS
  5961. test -z "$as_dir" && as_dir=.
  5962. for ac_exec_ext in '' $ac_executable_extensions; do
  5963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5964. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5966. break 2
  5967. fi
  5968. done
  5969. done
  5970. IFS=$as_save_IFS
  5971. fi
  5972. fi
  5973. LIPO=$ac_cv_prog_LIPO
  5974. if test -n "$LIPO"; then
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5976. $as_echo "$LIPO" >&6; }
  5977. else
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5979. $as_echo "no" >&6; }
  5980. fi
  5981. fi
  5982. if test -z "$ac_cv_prog_LIPO"; then
  5983. ac_ct_LIPO=$LIPO
  5984. # Extract the first word of "lipo", so it can be a program name with args.
  5985. set dummy lipo; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. if test -n "$ac_ct_LIPO"; then
  5992. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5993. else
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6001. ac_cv_prog_ac_ct_LIPO="lipo"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. fi
  6009. fi
  6010. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6011. if test -n "$ac_ct_LIPO"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6013. $as_echo "$ac_ct_LIPO" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. if test "x$ac_ct_LIPO" = x; then
  6019. LIPO=":"
  6020. else
  6021. case $cross_compiling:$ac_tool_warned in
  6022. yes:)
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6025. ac_tool_warned=yes ;;
  6026. esac
  6027. LIPO=$ac_ct_LIPO
  6028. fi
  6029. else
  6030. LIPO="$ac_cv_prog_LIPO"
  6031. fi
  6032. if test -n "$ac_tool_prefix"; then
  6033. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6034. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6036. $as_echo_n "checking for $ac_word... " >&6; }
  6037. if ${ac_cv_prog_OTOOL+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. if test -n "$OTOOL"; then
  6041. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6042. else
  6043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6044. for as_dir in $PATH
  6045. do
  6046. IFS=$as_save_IFS
  6047. test -z "$as_dir" && as_dir=.
  6048. for ac_exec_ext in '' $ac_executable_extensions; do
  6049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6050. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6052. break 2
  6053. fi
  6054. done
  6055. done
  6056. IFS=$as_save_IFS
  6057. fi
  6058. fi
  6059. OTOOL=$ac_cv_prog_OTOOL
  6060. if test -n "$OTOOL"; then
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6062. $as_echo "$OTOOL" >&6; }
  6063. else
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6065. $as_echo "no" >&6; }
  6066. fi
  6067. fi
  6068. if test -z "$ac_cv_prog_OTOOL"; then
  6069. ac_ct_OTOOL=$OTOOL
  6070. # Extract the first word of "otool", so it can be a program name with args.
  6071. set dummy otool; ac_word=$2
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6073. $as_echo_n "checking for $ac_word... " >&6; }
  6074. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. if test -n "$ac_ct_OTOOL"; then
  6078. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6079. else
  6080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6081. for as_dir in $PATH
  6082. do
  6083. IFS=$as_save_IFS
  6084. test -z "$as_dir" && as_dir=.
  6085. for ac_exec_ext in '' $ac_executable_extensions; do
  6086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6087. ac_cv_prog_ac_ct_OTOOL="otool"
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6089. break 2
  6090. fi
  6091. done
  6092. done
  6093. IFS=$as_save_IFS
  6094. fi
  6095. fi
  6096. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6097. if test -n "$ac_ct_OTOOL"; then
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6099. $as_echo "$ac_ct_OTOOL" >&6; }
  6100. else
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6102. $as_echo "no" >&6; }
  6103. fi
  6104. if test "x$ac_ct_OTOOL" = x; then
  6105. OTOOL=":"
  6106. else
  6107. case $cross_compiling:$ac_tool_warned in
  6108. yes:)
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6111. ac_tool_warned=yes ;;
  6112. esac
  6113. OTOOL=$ac_ct_OTOOL
  6114. fi
  6115. else
  6116. OTOOL="$ac_cv_prog_OTOOL"
  6117. fi
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. $as_echo_n "checking for $ac_word... " >&6; }
  6123. if ${ac_cv_prog_OTOOL64+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$OTOOL64"; then
  6127. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6136. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. OTOOL64=$ac_cv_prog_OTOOL64
  6146. if test -n "$OTOOL64"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6148. $as_echo "$OTOOL64" >&6; }
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6151. $as_echo "no" >&6; }
  6152. fi
  6153. fi
  6154. if test -z "$ac_cv_prog_OTOOL64"; then
  6155. ac_ct_OTOOL64=$OTOOL64
  6156. # Extract the first word of "otool64", so it can be a program name with args.
  6157. set dummy otool64; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$ac_ct_OTOOL64"; then
  6164. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6183. if test -n "$ac_ct_OTOOL64"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6185. $as_echo "$ac_ct_OTOOL64" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. if test "x$ac_ct_OTOOL64" = x; then
  6191. OTOOL64=":"
  6192. else
  6193. case $cross_compiling:$ac_tool_warned in
  6194. yes:)
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6197. ac_tool_warned=yes ;;
  6198. esac
  6199. OTOOL64=$ac_ct_OTOOL64
  6200. fi
  6201. else
  6202. OTOOL64="$ac_cv_prog_OTOOL64"
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6205. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6206. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. lt_cv_apple_cc_single_mod=no
  6210. if test -z "$LT_MULTI_MODULE"; then
  6211. # By default we will add the -single_module flag. You can override
  6212. # by either setting the environment variable LT_MULTI_MODULE
  6213. # non-empty at configure time, or by adding -multi_module to the
  6214. # link flags.
  6215. rm -rf libconftest.dylib*
  6216. echo "int foo(void){return 1;}" > conftest.c
  6217. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c" >&5
  6219. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6220. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6221. _lt_result=$?
  6222. # If there is a non-empty error log, and "single_module"
  6223. # appears in it, assume the flag caused a linker warning
  6224. if test -s conftest.err && $GREP single_module conftest.err; then
  6225. cat conftest.err >&5
  6226. # Otherwise, if the output was created with a 0 exit code from
  6227. # the compiler, it worked.
  6228. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6229. lt_cv_apple_cc_single_mod=yes
  6230. else
  6231. cat conftest.err >&5
  6232. fi
  6233. rm -rf libconftest.dylib*
  6234. rm -f conftest.*
  6235. fi
  6236. fi
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6238. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6240. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6241. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. lt_cv_ld_exported_symbols_list=no
  6245. save_LDFLAGS=$LDFLAGS
  6246. echo "_main" > conftest.sym
  6247. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6249. /* end confdefs.h. */
  6250. int
  6251. main ()
  6252. {
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_c_try_link "$LINENO"; then :
  6258. lt_cv_ld_exported_symbols_list=yes
  6259. else
  6260. lt_cv_ld_exported_symbols_list=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext \
  6263. conftest$ac_exeext conftest.$ac_ext
  6264. LDFLAGS=$save_LDFLAGS
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6267. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6269. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6270. if ${lt_cv_ld_force_load+:} false; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. lt_cv_ld_force_load=no
  6274. cat > conftest.c << _LT_EOF
  6275. int forced_loaded() { return 2;}
  6276. _LT_EOF
  6277. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6278. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6279. echo "$AR cru libconftest.a conftest.o" >&5
  6280. $AR cru libconftest.a conftest.o 2>&5
  6281. echo "$RANLIB libconftest.a" >&5
  6282. $RANLIB libconftest.a 2>&5
  6283. cat > conftest.c << _LT_EOF
  6284. int main() { return 0;}
  6285. _LT_EOF
  6286. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6287. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6288. _lt_result=$?
  6289. if test -s conftest.err && $GREP force_load conftest.err; then
  6290. cat conftest.err >&5
  6291. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6292. lt_cv_ld_force_load=yes
  6293. else
  6294. cat conftest.err >&5
  6295. fi
  6296. rm -f conftest.err libconftest.a conftest conftest.c
  6297. rm -rf conftest.dSYM
  6298. fi
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6300. $as_echo "$lt_cv_ld_force_load" >&6; }
  6301. case $host_os in
  6302. rhapsody* | darwin1.[012])
  6303. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6304. darwin1.*)
  6305. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6306. darwin*)
  6307. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6308. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6309. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6310. *)
  6311. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6312. esac
  6313. ;;
  6314. esac
  6315. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6316. _lt_dar_single_mod='$single_module'
  6317. fi
  6318. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6319. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6320. else
  6321. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6322. fi
  6323. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6324. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6325. else
  6326. _lt_dsymutil=
  6327. fi
  6328. ;;
  6329. esac
  6330. # func_munge_path_list VARIABLE PATH
  6331. # -----------------------------------
  6332. # VARIABLE is name of variable containing _space_ separated list of
  6333. # directories to be munged by the contents of PATH, which is string
  6334. # having a format:
  6335. # "DIR[:DIR]:"
  6336. # string "DIR[ DIR]" will be prepended to VARIABLE
  6337. # ":DIR[:DIR]"
  6338. # string "DIR[ DIR]" will be appended to VARIABLE
  6339. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6340. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6341. # "DIRA[ DIRA]" will be appended to VARIABLE
  6342. # "DIR[:DIR]"
  6343. # VARIABLE will be replaced by "DIR[ DIR]"
  6344. func_munge_path_list ()
  6345. {
  6346. case x$2 in
  6347. x)
  6348. ;;
  6349. *:)
  6350. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6351. ;;
  6352. x:*)
  6353. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6354. ;;
  6355. *::*)
  6356. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6357. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6358. ;;
  6359. *)
  6360. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6361. ;;
  6362. esac
  6363. }
  6364. ac_ext=c
  6365. ac_cpp='$CPP $CPPFLAGS'
  6366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6370. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6371. # On Suns, sometimes $CPP names a directory.
  6372. if test -n "$CPP" && test -d "$CPP"; then
  6373. CPP=
  6374. fi
  6375. if test -z "$CPP"; then
  6376. if ${ac_cv_prog_CPP+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. # Double quotes because CPP needs to be expanded
  6380. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6381. do
  6382. ac_preproc_ok=false
  6383. for ac_c_preproc_warn_flag in '' yes
  6384. do
  6385. # Use a header file that comes with gcc, so configuring glibc
  6386. # with a fresh cross-compiler works.
  6387. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6388. # <limits.h> exists even on freestanding compilers.
  6389. # On the NeXT, cc -E runs the code through the compiler's parser,
  6390. # not just through cpp. "Syntax error" is here to catch this case.
  6391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6392. /* end confdefs.h. */
  6393. #ifdef __STDC__
  6394. # include <limits.h>
  6395. #else
  6396. # include <assert.h>
  6397. #endif
  6398. Syntax error
  6399. _ACEOF
  6400. if ac_fn_c_try_cpp "$LINENO"; then :
  6401. else
  6402. # Broken: fails on valid input.
  6403. continue
  6404. fi
  6405. rm -f conftest.err conftest.i conftest.$ac_ext
  6406. # OK, works on sane cases. Now check whether nonexistent headers
  6407. # can be detected and how.
  6408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6409. /* end confdefs.h. */
  6410. #include <ac_nonexistent.h>
  6411. _ACEOF
  6412. if ac_fn_c_try_cpp "$LINENO"; then :
  6413. # Broken: success on invalid input.
  6414. continue
  6415. else
  6416. # Passes both tests.
  6417. ac_preproc_ok=:
  6418. break
  6419. fi
  6420. rm -f conftest.err conftest.i conftest.$ac_ext
  6421. done
  6422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6423. rm -f conftest.i conftest.err conftest.$ac_ext
  6424. if $ac_preproc_ok; then :
  6425. break
  6426. fi
  6427. done
  6428. ac_cv_prog_CPP=$CPP
  6429. fi
  6430. CPP=$ac_cv_prog_CPP
  6431. else
  6432. ac_cv_prog_CPP=$CPP
  6433. fi
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6435. $as_echo "$CPP" >&6; }
  6436. ac_preproc_ok=false
  6437. for ac_c_preproc_warn_flag in '' yes
  6438. do
  6439. # Use a header file that comes with gcc, so configuring glibc
  6440. # with a fresh cross-compiler works.
  6441. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6442. # <limits.h> exists even on freestanding compilers.
  6443. # On the NeXT, cc -E runs the code through the compiler's parser,
  6444. # not just through cpp. "Syntax error" is here to catch this case.
  6445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6446. /* end confdefs.h. */
  6447. #ifdef __STDC__
  6448. # include <limits.h>
  6449. #else
  6450. # include <assert.h>
  6451. #endif
  6452. Syntax error
  6453. _ACEOF
  6454. if ac_fn_c_try_cpp "$LINENO"; then :
  6455. else
  6456. # Broken: fails on valid input.
  6457. continue
  6458. fi
  6459. rm -f conftest.err conftest.i conftest.$ac_ext
  6460. # OK, works on sane cases. Now check whether nonexistent headers
  6461. # can be detected and how.
  6462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6463. /* end confdefs.h. */
  6464. #include <ac_nonexistent.h>
  6465. _ACEOF
  6466. if ac_fn_c_try_cpp "$LINENO"; then :
  6467. # Broken: success on invalid input.
  6468. continue
  6469. else
  6470. # Passes both tests.
  6471. ac_preproc_ok=:
  6472. break
  6473. fi
  6474. rm -f conftest.err conftest.i conftest.$ac_ext
  6475. done
  6476. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6477. rm -f conftest.i conftest.err conftest.$ac_ext
  6478. if $ac_preproc_ok; then :
  6479. else
  6480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6482. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6483. See \`config.log' for more details" "$LINENO" 5; }
  6484. fi
  6485. ac_ext=c
  6486. ac_cpp='$CPP $CPPFLAGS'
  6487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6491. $as_echo_n "checking for ANSI C header files... " >&6; }
  6492. if ${ac_cv_header_stdc+:} false; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6496. /* end confdefs.h. */
  6497. #include <stdlib.h>
  6498. #include <stdarg.h>
  6499. #include <string.h>
  6500. #include <float.h>
  6501. int
  6502. main ()
  6503. {
  6504. ;
  6505. return 0;
  6506. }
  6507. _ACEOF
  6508. if ac_fn_c_try_compile "$LINENO"; then :
  6509. ac_cv_header_stdc=yes
  6510. else
  6511. ac_cv_header_stdc=no
  6512. fi
  6513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6514. if test $ac_cv_header_stdc = yes; then
  6515. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end confdefs.h. */
  6518. #include <string.h>
  6519. _ACEOF
  6520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6521. $EGREP "memchr" >/dev/null 2>&1; then :
  6522. else
  6523. ac_cv_header_stdc=no
  6524. fi
  6525. rm -f conftest*
  6526. fi
  6527. if test $ac_cv_header_stdc = yes; then
  6528. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6530. /* end confdefs.h. */
  6531. #include <stdlib.h>
  6532. _ACEOF
  6533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6534. $EGREP "free" >/dev/null 2>&1; then :
  6535. else
  6536. ac_cv_header_stdc=no
  6537. fi
  6538. rm -f conftest*
  6539. fi
  6540. if test $ac_cv_header_stdc = yes; then
  6541. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6542. if test "$cross_compiling" = yes; then :
  6543. :
  6544. else
  6545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6546. /* end confdefs.h. */
  6547. #include <ctype.h>
  6548. #include <stdlib.h>
  6549. #if ((' ' & 0x0FF) == 0x020)
  6550. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6551. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6552. #else
  6553. # define ISLOWER(c) \
  6554. (('a' <= (c) && (c) <= 'i') \
  6555. || ('j' <= (c) && (c) <= 'r') \
  6556. || ('s' <= (c) && (c) <= 'z'))
  6557. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6558. #endif
  6559. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6560. int
  6561. main ()
  6562. {
  6563. int i;
  6564. for (i = 0; i < 256; i++)
  6565. if (XOR (islower (i), ISLOWER (i))
  6566. || toupper (i) != TOUPPER (i))
  6567. return 2;
  6568. return 0;
  6569. }
  6570. _ACEOF
  6571. if ac_fn_c_try_run "$LINENO"; then :
  6572. else
  6573. ac_cv_header_stdc=no
  6574. fi
  6575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6577. fi
  6578. fi
  6579. fi
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6581. $as_echo "$ac_cv_header_stdc" >&6; }
  6582. if test $ac_cv_header_stdc = yes; then
  6583. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6584. fi
  6585. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6586. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6587. inttypes.h stdint.h unistd.h
  6588. do :
  6589. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6590. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6591. "
  6592. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6593. cat >>confdefs.h <<_ACEOF
  6594. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6595. _ACEOF
  6596. fi
  6597. done
  6598. for ac_header in dlfcn.h
  6599. do :
  6600. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6601. "
  6602. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6603. cat >>confdefs.h <<_ACEOF
  6604. #define HAVE_DLFCN_H 1
  6605. _ACEOF
  6606. fi
  6607. done
  6608. # Set options
  6609. enable_win32_dll=yes
  6610. case $host in
  6611. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6612. if test -n "$ac_tool_prefix"; then
  6613. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6614. set dummy ${ac_tool_prefix}as; ac_word=$2
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6616. $as_echo_n "checking for $ac_word... " >&6; }
  6617. if ${ac_cv_prog_AS+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. if test -n "$AS"; then
  6621. ac_cv_prog_AS="$AS" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. test -z "$as_dir" && as_dir=.
  6628. for ac_exec_ext in '' $ac_executable_extensions; do
  6629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6630. ac_cv_prog_AS="${ac_tool_prefix}as"
  6631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6632. break 2
  6633. fi
  6634. done
  6635. done
  6636. IFS=$as_save_IFS
  6637. fi
  6638. fi
  6639. AS=$ac_cv_prog_AS
  6640. if test -n "$AS"; then
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6642. $as_echo "$AS" >&6; }
  6643. else
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646. fi
  6647. fi
  6648. if test -z "$ac_cv_prog_AS"; then
  6649. ac_ct_AS=$AS
  6650. # Extract the first word of "as", so it can be a program name with args.
  6651. set dummy as; ac_word=$2
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. $as_echo_n "checking for $ac_word... " >&6; }
  6654. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. if test -n "$ac_ct_AS"; then
  6658. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6659. else
  6660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661. for as_dir in $PATH
  6662. do
  6663. IFS=$as_save_IFS
  6664. test -z "$as_dir" && as_dir=.
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_ac_ct_AS="as"
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6677. if test -n "$ac_ct_AS"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6679. $as_echo "$ac_ct_AS" >&6; }
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. if test "x$ac_ct_AS" = x; then
  6685. AS="false"
  6686. else
  6687. case $cross_compiling:$ac_tool_warned in
  6688. yes:)
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6691. ac_tool_warned=yes ;;
  6692. esac
  6693. AS=$ac_ct_AS
  6694. fi
  6695. else
  6696. AS="$ac_cv_prog_AS"
  6697. fi
  6698. if test -n "$ac_tool_prefix"; then
  6699. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6700. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. $as_echo_n "checking for $ac_word... " >&6; }
  6703. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. if test -n "$DLLTOOL"; then
  6707. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6708. else
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712. IFS=$as_save_IFS
  6713. test -z "$as_dir" && as_dir=.
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. DLLTOOL=$ac_cv_prog_DLLTOOL
  6726. if test -n "$DLLTOOL"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6728. $as_echo "$DLLTOOL" >&6; }
  6729. else
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. $as_echo "no" >&6; }
  6732. fi
  6733. fi
  6734. if test -z "$ac_cv_prog_DLLTOOL"; then
  6735. ac_ct_DLLTOOL=$DLLTOOL
  6736. # Extract the first word of "dlltool", so it can be a program name with args.
  6737. set dummy dlltool; ac_word=$2
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. $as_echo_n "checking for $ac_word... " >&6; }
  6740. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. if test -n "$ac_ct_DLLTOOL"; then
  6744. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6745. else
  6746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6747. for as_dir in $PATH
  6748. do
  6749. IFS=$as_save_IFS
  6750. test -z "$as_dir" && as_dir=.
  6751. for ac_exec_ext in '' $ac_executable_extensions; do
  6752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6753. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6755. break 2
  6756. fi
  6757. done
  6758. done
  6759. IFS=$as_save_IFS
  6760. fi
  6761. fi
  6762. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6763. if test -n "$ac_ct_DLLTOOL"; then
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6765. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6766. else
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6768. $as_echo "no" >&6; }
  6769. fi
  6770. if test "x$ac_ct_DLLTOOL" = x; then
  6771. DLLTOOL="false"
  6772. else
  6773. case $cross_compiling:$ac_tool_warned in
  6774. yes:)
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6777. ac_tool_warned=yes ;;
  6778. esac
  6779. DLLTOOL=$ac_ct_DLLTOOL
  6780. fi
  6781. else
  6782. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6783. fi
  6784. if test -n "$ac_tool_prefix"; then
  6785. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6786. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6788. $as_echo_n "checking for $ac_word... " >&6; }
  6789. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -n "$OBJDUMP"; then
  6793. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6794. else
  6795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6796. for as_dir in $PATH
  6797. do
  6798. IFS=$as_save_IFS
  6799. test -z "$as_dir" && as_dir=.
  6800. for ac_exec_ext in '' $ac_executable_extensions; do
  6801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6802. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6804. break 2
  6805. fi
  6806. done
  6807. done
  6808. IFS=$as_save_IFS
  6809. fi
  6810. fi
  6811. OBJDUMP=$ac_cv_prog_OBJDUMP
  6812. if test -n "$OBJDUMP"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6814. $as_echo "$OBJDUMP" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. fi
  6820. if test -z "$ac_cv_prog_OBJDUMP"; then
  6821. ac_ct_OBJDUMP=$OBJDUMP
  6822. # Extract the first word of "objdump", so it can be a program name with args.
  6823. set dummy objdump; ac_word=$2
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6825. $as_echo_n "checking for $ac_word... " >&6; }
  6826. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. if test -n "$ac_ct_OBJDUMP"; then
  6830. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6839. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. fi
  6847. fi
  6848. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6849. if test -n "$ac_ct_OBJDUMP"; then
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6851. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6852. else
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6854. $as_echo "no" >&6; }
  6855. fi
  6856. if test "x$ac_ct_OBJDUMP" = x; then
  6857. OBJDUMP="false"
  6858. else
  6859. case $cross_compiling:$ac_tool_warned in
  6860. yes:)
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6863. ac_tool_warned=yes ;;
  6864. esac
  6865. OBJDUMP=$ac_ct_OBJDUMP
  6866. fi
  6867. else
  6868. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6869. fi
  6870. ;;
  6871. esac
  6872. test -z "$AS" && AS=as
  6873. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6874. test -z "$OBJDUMP" && OBJDUMP=objdump
  6875. enable_dlopen=no
  6876. # Check whether --enable-shared was given.
  6877. if test "${enable_shared+set}" = set; then :
  6878. enableval=$enable_shared; p=${PACKAGE-default}
  6879. case $enableval in
  6880. yes) enable_shared=yes ;;
  6881. no) enable_shared=no ;;
  6882. *)
  6883. enable_shared=no
  6884. # Look at the argument we got. We use all the common list separators.
  6885. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6886. for pkg in $enableval; do
  6887. IFS=$lt_save_ifs
  6888. if test "X$pkg" = "X$p"; then
  6889. enable_shared=yes
  6890. fi
  6891. done
  6892. IFS=$lt_save_ifs
  6893. ;;
  6894. esac
  6895. else
  6896. enable_shared=yes
  6897. fi
  6898. # Check whether --enable-static was given.
  6899. if test "${enable_static+set}" = set; then :
  6900. enableval=$enable_static; p=${PACKAGE-default}
  6901. case $enableval in
  6902. yes) enable_static=yes ;;
  6903. no) enable_static=no ;;
  6904. *)
  6905. enable_static=no
  6906. # Look at the argument we got. We use all the common list separators.
  6907. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6908. for pkg in $enableval; do
  6909. IFS=$lt_save_ifs
  6910. if test "X$pkg" = "X$p"; then
  6911. enable_static=yes
  6912. fi
  6913. done
  6914. IFS=$lt_save_ifs
  6915. ;;
  6916. esac
  6917. else
  6918. enable_static=yes
  6919. fi
  6920. # Check whether --with-pic was given.
  6921. if test "${with_pic+set}" = set; then :
  6922. withval=$with_pic; lt_p=${PACKAGE-default}
  6923. case $withval in
  6924. yes|no) pic_mode=$withval ;;
  6925. *)
  6926. pic_mode=default
  6927. # Look at the argument we got. We use all the common list separators.
  6928. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6929. for lt_pkg in $withval; do
  6930. IFS=$lt_save_ifs
  6931. if test "X$lt_pkg" = "X$lt_p"; then
  6932. pic_mode=yes
  6933. fi
  6934. done
  6935. IFS=$lt_save_ifs
  6936. ;;
  6937. esac
  6938. else
  6939. pic_mode=default
  6940. fi
  6941. # Check whether --enable-fast-install was given.
  6942. if test "${enable_fast_install+set}" = set; then :
  6943. enableval=$enable_fast_install; p=${PACKAGE-default}
  6944. case $enableval in
  6945. yes) enable_fast_install=yes ;;
  6946. no) enable_fast_install=no ;;
  6947. *)
  6948. enable_fast_install=no
  6949. # Look at the argument we got. We use all the common list separators.
  6950. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6951. for pkg in $enableval; do
  6952. IFS=$lt_save_ifs
  6953. if test "X$pkg" = "X$p"; then
  6954. enable_fast_install=yes
  6955. fi
  6956. done
  6957. IFS=$lt_save_ifs
  6958. ;;
  6959. esac
  6960. else
  6961. enable_fast_install=yes
  6962. fi
  6963. shared_archive_member_spec=
  6964. case $host,$enable_shared in
  6965. power*-*-aix[5-9]*,yes)
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6967. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6968. # Check whether --with-aix-soname was given.
  6969. if test "${with_aix_soname+set}" = set; then :
  6970. withval=$with_aix_soname; case $withval in
  6971. aix|svr4|both)
  6972. ;;
  6973. *)
  6974. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6975. ;;
  6976. esac
  6977. lt_cv_with_aix_soname=$with_aix_soname
  6978. else
  6979. if ${lt_cv_with_aix_soname+:} false; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. lt_cv_with_aix_soname=aix
  6983. fi
  6984. with_aix_soname=$lt_cv_with_aix_soname
  6985. fi
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6987. $as_echo "$with_aix_soname" >&6; }
  6988. if test aix != "$with_aix_soname"; then
  6989. # For the AIX way of multilib, we name the shared archive member
  6990. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6991. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6992. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6993. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6994. if test 64 = "${OBJECT_MODE-32}"; then
  6995. shared_archive_member_spec=shr_64
  6996. else
  6997. shared_archive_member_spec=shr
  6998. fi
  6999. fi
  7000. ;;
  7001. *)
  7002. with_aix_soname=aix
  7003. ;;
  7004. esac
  7005. # This can be used to rebuild libtool when needed
  7006. LIBTOOL_DEPS=$ltmain
  7007. # Always use our own libtool.
  7008. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7009. test -z "$LN_S" && LN_S="ln -s"
  7010. if test -n "${ZSH_VERSION+set}"; then
  7011. setopt NO_GLOB_SUBST
  7012. fi
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7014. $as_echo_n "checking for objdir... " >&6; }
  7015. if ${lt_cv_objdir+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. rm -f .libs 2>/dev/null
  7019. mkdir .libs 2>/dev/null
  7020. if test -d .libs; then
  7021. lt_cv_objdir=.libs
  7022. else
  7023. # MS-DOS does not allow filenames that begin with a dot.
  7024. lt_cv_objdir=_libs
  7025. fi
  7026. rmdir .libs 2>/dev/null
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7029. $as_echo "$lt_cv_objdir" >&6; }
  7030. objdir=$lt_cv_objdir
  7031. cat >>confdefs.h <<_ACEOF
  7032. #define LT_OBJDIR "$lt_cv_objdir/"
  7033. _ACEOF
  7034. case $host_os in
  7035. aix3*)
  7036. # AIX sometimes has problems with the GCC collect2 program. For some
  7037. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7038. # vanish in a puff of smoke.
  7039. if test set != "${COLLECT_NAMES+set}"; then
  7040. COLLECT_NAMES=
  7041. export COLLECT_NAMES
  7042. fi
  7043. ;;
  7044. esac
  7045. # Global variables:
  7046. ofile=libtool
  7047. can_build_shared=yes
  7048. # All known linkers require a '.a' archive for static linking (except MSVC,
  7049. # which needs '.lib').
  7050. libext=a
  7051. with_gnu_ld=$lt_cv_prog_gnu_ld
  7052. old_CC=$CC
  7053. old_CFLAGS=$CFLAGS
  7054. # Set sane defaults for various variables
  7055. test -z "$CC" && CC=cc
  7056. test -z "$LTCC" && LTCC=$CC
  7057. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7058. test -z "$LD" && LD=ld
  7059. test -z "$ac_objext" && ac_objext=o
  7060. func_cc_basename $compiler
  7061. cc_basename=$func_cc_basename_result
  7062. # Only perform the check for file, if the check method requires it
  7063. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7064. case $deplibs_check_method in
  7065. file_magic*)
  7066. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7068. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7069. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. case $MAGIC_CMD in
  7073. [\\/*] | ?:[\\/]*)
  7074. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7075. ;;
  7076. *)
  7077. lt_save_MAGIC_CMD=$MAGIC_CMD
  7078. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7079. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7080. for ac_dir in $ac_dummy; do
  7081. IFS=$lt_save_ifs
  7082. test -z "$ac_dir" && ac_dir=.
  7083. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7084. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7085. if test -n "$file_magic_test_file"; then
  7086. case $deplibs_check_method in
  7087. "file_magic "*)
  7088. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7089. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7090. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7091. $EGREP "$file_magic_regex" > /dev/null; then
  7092. :
  7093. else
  7094. cat <<_LT_EOF 1>&2
  7095. *** Warning: the command libtool uses to detect shared libraries,
  7096. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7097. *** The result is that libtool may fail to recognize shared libraries
  7098. *** as such. This will affect the creation of libtool libraries that
  7099. *** depend on shared libraries, but programs linked with such libtool
  7100. *** libraries will work regardless of this problem. Nevertheless, you
  7101. *** may want to report the problem to your system manager and/or to
  7102. *** bug-libtool@gnu.org
  7103. _LT_EOF
  7104. fi ;;
  7105. esac
  7106. fi
  7107. break
  7108. fi
  7109. done
  7110. IFS=$lt_save_ifs
  7111. MAGIC_CMD=$lt_save_MAGIC_CMD
  7112. ;;
  7113. esac
  7114. fi
  7115. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7116. if test -n "$MAGIC_CMD"; then
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7118. $as_echo "$MAGIC_CMD" >&6; }
  7119. else
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7121. $as_echo "no" >&6; }
  7122. fi
  7123. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7124. if test -n "$ac_tool_prefix"; then
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7126. $as_echo_n "checking for file... " >&6; }
  7127. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. case $MAGIC_CMD in
  7131. [\\/*] | ?:[\\/]*)
  7132. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7133. ;;
  7134. *)
  7135. lt_save_MAGIC_CMD=$MAGIC_CMD
  7136. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7137. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7138. for ac_dir in $ac_dummy; do
  7139. IFS=$lt_save_ifs
  7140. test -z "$ac_dir" && ac_dir=.
  7141. if test -f "$ac_dir/file"; then
  7142. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7143. if test -n "$file_magic_test_file"; then
  7144. case $deplibs_check_method in
  7145. "file_magic "*)
  7146. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7147. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7148. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7149. $EGREP "$file_magic_regex" > /dev/null; then
  7150. :
  7151. else
  7152. cat <<_LT_EOF 1>&2
  7153. *** Warning: the command libtool uses to detect shared libraries,
  7154. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7155. *** The result is that libtool may fail to recognize shared libraries
  7156. *** as such. This will affect the creation of libtool libraries that
  7157. *** depend on shared libraries, but programs linked with such libtool
  7158. *** libraries will work regardless of this problem. Nevertheless, you
  7159. *** may want to report the problem to your system manager and/or to
  7160. *** bug-libtool@gnu.org
  7161. _LT_EOF
  7162. fi ;;
  7163. esac
  7164. fi
  7165. break
  7166. fi
  7167. done
  7168. IFS=$lt_save_ifs
  7169. MAGIC_CMD=$lt_save_MAGIC_CMD
  7170. ;;
  7171. esac
  7172. fi
  7173. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7174. if test -n "$MAGIC_CMD"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7176. $as_echo "$MAGIC_CMD" >&6; }
  7177. else
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. $as_echo "no" >&6; }
  7180. fi
  7181. else
  7182. MAGIC_CMD=:
  7183. fi
  7184. fi
  7185. fi
  7186. ;;
  7187. esac
  7188. # Use C for the default configuration in the libtool script
  7189. lt_save_CC=$CC
  7190. ac_ext=c
  7191. ac_cpp='$CPP $CPPFLAGS'
  7192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7195. # Source file extension for C test sources.
  7196. ac_ext=c
  7197. # Object file extension for compiled C test sources.
  7198. objext=o
  7199. objext=$objext
  7200. # Code to be used in simple compile tests
  7201. lt_simple_compile_test_code="int some_variable = 0;"
  7202. # Code to be used in simple link tests
  7203. lt_simple_link_test_code='int main(){return(0);}'
  7204. # If no C compiler was specified, use CC.
  7205. LTCC=${LTCC-"$CC"}
  7206. # If no C compiler flags were specified, use CFLAGS.
  7207. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7208. # Allow CC to be a program name with arguments.
  7209. compiler=$CC
  7210. # Save the default compiler, since it gets overwritten when the other
  7211. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7212. compiler_DEFAULT=$CC
  7213. # save warnings/boilerplate of simple test code
  7214. ac_outfile=conftest.$ac_objext
  7215. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7216. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7217. _lt_compiler_boilerplate=`cat conftest.err`
  7218. $RM conftest*
  7219. ac_outfile=conftest.$ac_objext
  7220. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7221. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7222. _lt_linker_boilerplate=`cat conftest.err`
  7223. $RM -r conftest*
  7224. ## CAVEAT EMPTOR:
  7225. ## There is no encapsulation within the following macros, do not change
  7226. ## the running order or otherwise move them around unless you know exactly
  7227. ## what you are doing...
  7228. if test -n "$compiler"; then
  7229. lt_prog_compiler_no_builtin_flag=
  7230. if test yes = "$GCC"; then
  7231. case $cc_basename in
  7232. nvcc*)
  7233. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7234. *)
  7235. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7236. esac
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7238. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7239. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7240. $as_echo_n "(cached) " >&6
  7241. else
  7242. lt_cv_prog_compiler_rtti_exceptions=no
  7243. ac_outfile=conftest.$ac_objext
  7244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7245. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7246. # Insert the option either (1) after the last *FLAGS variable, or
  7247. # (2) before a word containing "conftest.", or (3) at the end.
  7248. # Note that $ac_compile itself does not contain backslashes and begins
  7249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7250. # The option is referenced via a variable to avoid confusing sed.
  7251. lt_compile=`echo "$ac_compile" | $SED \
  7252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7254. -e 's:$: $lt_compiler_flag:'`
  7255. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7256. (eval "$lt_compile" 2>conftest.err)
  7257. ac_status=$?
  7258. cat conftest.err >&5
  7259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7260. if (exit $ac_status) && test -s "$ac_outfile"; then
  7261. # The compiler can only warn and ignore the option if not recognized
  7262. # So say no if there are warnings other than the usual output.
  7263. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7264. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7265. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7266. lt_cv_prog_compiler_rtti_exceptions=yes
  7267. fi
  7268. fi
  7269. $RM conftest*
  7270. fi
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7272. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7273. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7274. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7275. else
  7276. :
  7277. fi
  7278. fi
  7279. lt_prog_compiler_wl=
  7280. lt_prog_compiler_pic=
  7281. lt_prog_compiler_static=
  7282. if test yes = "$GCC"; then
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_static='-static'
  7285. case $host_os in
  7286. aix*)
  7287. # All AIX code is PIC.
  7288. if test ia64 = "$host_cpu"; then
  7289. # AIX 5 now supports IA64 processor
  7290. lt_prog_compiler_static='-Bstatic'
  7291. fi
  7292. lt_prog_compiler_pic='-fPIC'
  7293. ;;
  7294. amigaos*)
  7295. case $host_cpu in
  7296. powerpc)
  7297. # see comment about AmigaOS4 .so support
  7298. lt_prog_compiler_pic='-fPIC'
  7299. ;;
  7300. m68k)
  7301. # FIXME: we need at least 68020 code to build shared libraries, but
  7302. # adding the '-m68020' flag to GCC prevents building anything better,
  7303. # like '-m68040'.
  7304. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7305. ;;
  7306. esac
  7307. ;;
  7308. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7309. # PIC is the default for these OSes.
  7310. ;;
  7311. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7312. # This hack is so that the source file can tell whether it is being
  7313. # built for inclusion in a dll (and should export symbols for example).
  7314. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7315. # (--disable-auto-import) libraries
  7316. lt_prog_compiler_pic='-DDLL_EXPORT'
  7317. case $host_os in
  7318. os2*)
  7319. lt_prog_compiler_static='$wl-static'
  7320. ;;
  7321. esac
  7322. ;;
  7323. darwin* | rhapsody*)
  7324. # PIC is the default on this platform
  7325. # Common symbols not allowed in MH_DYLIB files
  7326. lt_prog_compiler_pic='-fno-common'
  7327. ;;
  7328. haiku*)
  7329. # PIC is the default for Haiku.
  7330. # The "-static" flag exists, but is broken.
  7331. lt_prog_compiler_static=
  7332. ;;
  7333. hpux*)
  7334. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7335. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7336. # sets the default TLS model and affects inlining.
  7337. case $host_cpu in
  7338. hppa*64*)
  7339. # +Z the default
  7340. ;;
  7341. *)
  7342. lt_prog_compiler_pic='-fPIC'
  7343. ;;
  7344. esac
  7345. ;;
  7346. interix[3-9]*)
  7347. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7348. # Instead, we relocate shared libraries at runtime.
  7349. ;;
  7350. msdosdjgpp*)
  7351. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7352. # on systems that don't support them.
  7353. lt_prog_compiler_can_build_shared=no
  7354. enable_shared=no
  7355. ;;
  7356. *nto* | *qnx*)
  7357. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7358. # it will coredump.
  7359. lt_prog_compiler_pic='-fPIC -shared'
  7360. ;;
  7361. sysv4*MP*)
  7362. if test -d /usr/nec; then
  7363. lt_prog_compiler_pic=-Kconform_pic
  7364. fi
  7365. ;;
  7366. *)
  7367. lt_prog_compiler_pic='-fPIC'
  7368. ;;
  7369. esac
  7370. case $cc_basename in
  7371. nvcc*) # Cuda Compiler Driver 2.2
  7372. lt_prog_compiler_wl='-Xlinker '
  7373. if test -n "$lt_prog_compiler_pic"; then
  7374. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7375. fi
  7376. ;;
  7377. esac
  7378. else
  7379. # PORTME Check for flag to pass linker flags through the system compiler.
  7380. case $host_os in
  7381. aix*)
  7382. lt_prog_compiler_wl='-Wl,'
  7383. if test ia64 = "$host_cpu"; then
  7384. # AIX 5 now supports IA64 processor
  7385. lt_prog_compiler_static='-Bstatic'
  7386. else
  7387. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7388. fi
  7389. ;;
  7390. darwin* | rhapsody*)
  7391. # PIC is the default on this platform
  7392. # Common symbols not allowed in MH_DYLIB files
  7393. lt_prog_compiler_pic='-fno-common'
  7394. case $cc_basename in
  7395. nagfor*)
  7396. # NAG Fortran compiler
  7397. lt_prog_compiler_wl='-Wl,-Wl,,'
  7398. lt_prog_compiler_pic='-PIC'
  7399. lt_prog_compiler_static='-Bstatic'
  7400. ;;
  7401. esac
  7402. ;;
  7403. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7404. # This hack is so that the source file can tell whether it is being
  7405. # built for inclusion in a dll (and should export symbols for example).
  7406. lt_prog_compiler_pic='-DDLL_EXPORT'
  7407. case $host_os in
  7408. os2*)
  7409. lt_prog_compiler_static='$wl-static'
  7410. ;;
  7411. esac
  7412. ;;
  7413. hpux9* | hpux10* | hpux11*)
  7414. lt_prog_compiler_wl='-Wl,'
  7415. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7416. # not for PA HP-UX.
  7417. case $host_cpu in
  7418. hppa*64*|ia64*)
  7419. # +Z the default
  7420. ;;
  7421. *)
  7422. lt_prog_compiler_pic='+Z'
  7423. ;;
  7424. esac
  7425. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7426. lt_prog_compiler_static='$wl-a ${wl}archive'
  7427. ;;
  7428. irix5* | irix6* | nonstopux*)
  7429. lt_prog_compiler_wl='-Wl,'
  7430. # PIC (with -KPIC) is the default.
  7431. lt_prog_compiler_static='-non_shared'
  7432. ;;
  7433. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7434. case $cc_basename in
  7435. # old Intel for x86_64, which still supported -KPIC.
  7436. ecc*)
  7437. lt_prog_compiler_wl='-Wl,'
  7438. lt_prog_compiler_pic='-KPIC'
  7439. lt_prog_compiler_static='-static'
  7440. ;;
  7441. # icc used to be incompatible with GCC.
  7442. # ICC 10 doesn't accept -KPIC any more.
  7443. icc* | ifort*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='-fPIC'
  7446. lt_prog_compiler_static='-static'
  7447. ;;
  7448. # Lahey Fortran 8.1.
  7449. lf95*)
  7450. lt_prog_compiler_wl='-Wl,'
  7451. lt_prog_compiler_pic='--shared'
  7452. lt_prog_compiler_static='--static'
  7453. ;;
  7454. nagfor*)
  7455. # NAG Fortran compiler
  7456. lt_prog_compiler_wl='-Wl,-Wl,,'
  7457. lt_prog_compiler_pic='-PIC'
  7458. lt_prog_compiler_static='-Bstatic'
  7459. ;;
  7460. tcc*)
  7461. # Fabrice Bellard et al's Tiny C Compiler
  7462. lt_prog_compiler_wl='-Wl,'
  7463. lt_prog_compiler_pic='-fPIC'
  7464. lt_prog_compiler_static='-static'
  7465. ;;
  7466. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7467. # Portland Group compilers (*not* the Pentium gcc compiler,
  7468. # which looks to be a dead project)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='-fpic'
  7471. lt_prog_compiler_static='-Bstatic'
  7472. ;;
  7473. ccc*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. # All Alpha code is PIC.
  7476. lt_prog_compiler_static='-non_shared'
  7477. ;;
  7478. xl* | bgxl* | bgf* | mpixl*)
  7479. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-qpic'
  7482. lt_prog_compiler_static='-qstaticlink'
  7483. ;;
  7484. *)
  7485. case `$CC -V 2>&1 | sed 5q` in
  7486. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7487. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7488. lt_prog_compiler_pic='-KPIC'
  7489. lt_prog_compiler_static='-Bstatic'
  7490. lt_prog_compiler_wl=''
  7491. ;;
  7492. *Sun\ F* | *Sun*Fortran*)
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. lt_prog_compiler_wl='-Qoption ld '
  7496. ;;
  7497. *Sun\ C*)
  7498. # Sun C 5.9
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. lt_prog_compiler_wl='-Wl,'
  7502. ;;
  7503. *Intel*\ [CF]*Compiler*)
  7504. lt_prog_compiler_wl='-Wl,'
  7505. lt_prog_compiler_pic='-fPIC'
  7506. lt_prog_compiler_static='-static'
  7507. ;;
  7508. *Portland\ Group*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. lt_prog_compiler_pic='-fpic'
  7511. lt_prog_compiler_static='-Bstatic'
  7512. ;;
  7513. esac
  7514. ;;
  7515. esac
  7516. ;;
  7517. newsos6)
  7518. lt_prog_compiler_pic='-KPIC'
  7519. lt_prog_compiler_static='-Bstatic'
  7520. ;;
  7521. *nto* | *qnx*)
  7522. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7523. # it will coredump.
  7524. lt_prog_compiler_pic='-fPIC -shared'
  7525. ;;
  7526. osf3* | osf4* | osf5*)
  7527. lt_prog_compiler_wl='-Wl,'
  7528. # All OSF/1 code is PIC.
  7529. lt_prog_compiler_static='-non_shared'
  7530. ;;
  7531. rdos*)
  7532. lt_prog_compiler_static='-non_shared'
  7533. ;;
  7534. solaris*)
  7535. lt_prog_compiler_pic='-KPIC'
  7536. lt_prog_compiler_static='-Bstatic'
  7537. case $cc_basename in
  7538. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7539. lt_prog_compiler_wl='-Qoption ld ';;
  7540. *)
  7541. lt_prog_compiler_wl='-Wl,';;
  7542. esac
  7543. ;;
  7544. sunos4*)
  7545. lt_prog_compiler_wl='-Qoption ld '
  7546. lt_prog_compiler_pic='-PIC'
  7547. lt_prog_compiler_static='-Bstatic'
  7548. ;;
  7549. sysv4 | sysv4.2uw2* | sysv4.3*)
  7550. lt_prog_compiler_wl='-Wl,'
  7551. lt_prog_compiler_pic='-KPIC'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. ;;
  7554. sysv4*MP*)
  7555. if test -d /usr/nec; then
  7556. lt_prog_compiler_pic='-Kconform_pic'
  7557. lt_prog_compiler_static='-Bstatic'
  7558. fi
  7559. ;;
  7560. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7561. lt_prog_compiler_wl='-Wl,'
  7562. lt_prog_compiler_pic='-KPIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. ;;
  7565. unicos*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_can_build_shared=no
  7568. ;;
  7569. uts4*)
  7570. lt_prog_compiler_pic='-pic'
  7571. lt_prog_compiler_static='-Bstatic'
  7572. ;;
  7573. *)
  7574. lt_prog_compiler_can_build_shared=no
  7575. ;;
  7576. esac
  7577. fi
  7578. case $host_os in
  7579. # For platforms that do not support PIC, -DPIC is meaningless:
  7580. *djgpp*)
  7581. lt_prog_compiler_pic=
  7582. ;;
  7583. *)
  7584. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7585. ;;
  7586. esac
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7588. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7589. if ${lt_cv_prog_compiler_pic+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7593. fi
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7595. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7596. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7597. #
  7598. # Check to make sure the PIC flag actually works.
  7599. #
  7600. if test -n "$lt_prog_compiler_pic"; then
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7602. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7603. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. lt_cv_prog_compiler_pic_works=no
  7607. ac_outfile=conftest.$ac_objext
  7608. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7609. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7610. # Insert the option either (1) after the last *FLAGS variable, or
  7611. # (2) before a word containing "conftest.", or (3) at the end.
  7612. # Note that $ac_compile itself does not contain backslashes and begins
  7613. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7614. # The option is referenced via a variable to avoid confusing sed.
  7615. lt_compile=`echo "$ac_compile" | $SED \
  7616. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7617. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7618. -e 's:$: $lt_compiler_flag:'`
  7619. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7620. (eval "$lt_compile" 2>conftest.err)
  7621. ac_status=$?
  7622. cat conftest.err >&5
  7623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7624. if (exit $ac_status) && test -s "$ac_outfile"; then
  7625. # The compiler can only warn and ignore the option if not recognized
  7626. # So say no if there are warnings other than the usual output.
  7627. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7628. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7629. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7630. lt_cv_prog_compiler_pic_works=yes
  7631. fi
  7632. fi
  7633. $RM conftest*
  7634. fi
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7636. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7637. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7638. case $lt_prog_compiler_pic in
  7639. "" | " "*) ;;
  7640. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7641. esac
  7642. else
  7643. lt_prog_compiler_pic=
  7644. lt_prog_compiler_can_build_shared=no
  7645. fi
  7646. fi
  7647. #
  7648. # Check to make sure the static flag actually works.
  7649. #
  7650. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7652. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7653. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7654. $as_echo_n "(cached) " >&6
  7655. else
  7656. lt_cv_prog_compiler_static_works=no
  7657. save_LDFLAGS=$LDFLAGS
  7658. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7659. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7660. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7661. # The linker can only warn and ignore the option if not recognized
  7662. # So say no if there are warnings
  7663. if test -s conftest.err; then
  7664. # Append any errors to the config.log.
  7665. cat conftest.err 1>&5
  7666. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7667. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7668. if diff conftest.exp conftest.er2 >/dev/null; then
  7669. lt_cv_prog_compiler_static_works=yes
  7670. fi
  7671. else
  7672. lt_cv_prog_compiler_static_works=yes
  7673. fi
  7674. fi
  7675. $RM -r conftest*
  7676. LDFLAGS=$save_LDFLAGS
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7679. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7680. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7681. :
  7682. else
  7683. lt_prog_compiler_static=
  7684. fi
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7686. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7687. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7688. $as_echo_n "(cached) " >&6
  7689. else
  7690. lt_cv_prog_compiler_c_o=no
  7691. $RM -r conftest 2>/dev/null
  7692. mkdir conftest
  7693. cd conftest
  7694. mkdir out
  7695. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7696. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7697. # Insert the option either (1) after the last *FLAGS variable, or
  7698. # (2) before a word containing "conftest.", or (3) at the end.
  7699. # Note that $ac_compile itself does not contain backslashes and begins
  7700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7701. lt_compile=`echo "$ac_compile" | $SED \
  7702. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7703. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7704. -e 's:$: $lt_compiler_flag:'`
  7705. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7706. (eval "$lt_compile" 2>out/conftest.err)
  7707. ac_status=$?
  7708. cat out/conftest.err >&5
  7709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7710. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7711. then
  7712. # The compiler can only warn and ignore the option if not recognized
  7713. # So say no if there are warnings
  7714. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7715. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7716. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7717. lt_cv_prog_compiler_c_o=yes
  7718. fi
  7719. fi
  7720. chmod u+w . 2>&5
  7721. $RM conftest*
  7722. # SGI C++ compiler will create directory out/ii_files/ for
  7723. # template instantiation
  7724. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7725. $RM out/* && rmdir out
  7726. cd ..
  7727. $RM -r conftest
  7728. $RM conftest*
  7729. fi
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7731. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7733. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7734. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7735. $as_echo_n "(cached) " >&6
  7736. else
  7737. lt_cv_prog_compiler_c_o=no
  7738. $RM -r conftest 2>/dev/null
  7739. mkdir conftest
  7740. cd conftest
  7741. mkdir out
  7742. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7743. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7744. # Insert the option either (1) after the last *FLAGS variable, or
  7745. # (2) before a word containing "conftest.", or (3) at the end.
  7746. # Note that $ac_compile itself does not contain backslashes and begins
  7747. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7748. lt_compile=`echo "$ac_compile" | $SED \
  7749. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7750. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7751. -e 's:$: $lt_compiler_flag:'`
  7752. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7753. (eval "$lt_compile" 2>out/conftest.err)
  7754. ac_status=$?
  7755. cat out/conftest.err >&5
  7756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7758. then
  7759. # The compiler can only warn and ignore the option if not recognized
  7760. # So say no if there are warnings
  7761. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7762. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7763. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7764. lt_cv_prog_compiler_c_o=yes
  7765. fi
  7766. fi
  7767. chmod u+w . 2>&5
  7768. $RM conftest*
  7769. # SGI C++ compiler will create directory out/ii_files/ for
  7770. # template instantiation
  7771. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7772. $RM out/* && rmdir out
  7773. cd ..
  7774. $RM -r conftest
  7775. $RM conftest*
  7776. fi
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7778. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7779. hard_links=nottested
  7780. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7781. # do not overwrite the value of need_locks provided by the user
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7783. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7784. hard_links=yes
  7785. $RM conftest*
  7786. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7787. touch conftest.a
  7788. ln conftest.a conftest.b 2>&5 || hard_links=no
  7789. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7791. $as_echo "$hard_links" >&6; }
  7792. if test no = "$hard_links"; then
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7794. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7795. need_locks=warn
  7796. fi
  7797. else
  7798. need_locks=no
  7799. fi
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7801. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7802. runpath_var=
  7803. allow_undefined_flag=
  7804. always_export_symbols=no
  7805. archive_cmds=
  7806. archive_expsym_cmds=
  7807. compiler_needs_object=no
  7808. enable_shared_with_static_runtimes=no
  7809. export_dynamic_flag_spec=
  7810. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7811. hardcode_automatic=no
  7812. hardcode_direct=no
  7813. hardcode_direct_absolute=no
  7814. hardcode_libdir_flag_spec=
  7815. hardcode_libdir_separator=
  7816. hardcode_minus_L=no
  7817. hardcode_shlibpath_var=unsupported
  7818. inherit_rpath=no
  7819. link_all_deplibs=unknown
  7820. module_cmds=
  7821. module_expsym_cmds=
  7822. old_archive_from_new_cmds=
  7823. old_archive_from_expsyms_cmds=
  7824. thread_safe_flag_spec=
  7825. whole_archive_flag_spec=
  7826. # include_expsyms should be a list of space-separated symbols to be *always*
  7827. # included in the symbol list
  7828. include_expsyms=
  7829. # exclude_expsyms can be an extended regexp of symbols to exclude
  7830. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7831. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7832. # as well as any symbol that contains 'd'.
  7833. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7834. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7835. # platforms (ab)use it in PIC code, but their linkers get confused if
  7836. # the symbol is explicitly referenced. Since portable code cannot
  7837. # rely on this symbol name, it's probably fine to never include it in
  7838. # preloaded symbol tables.
  7839. # Exclude shared library initialization/finalization symbols.
  7840. extract_expsyms_cmds=
  7841. case $host_os in
  7842. cygwin* | mingw* | pw32* | cegcc*)
  7843. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7844. # When not using gcc, we currently assume that we are using
  7845. # Microsoft Visual C++.
  7846. if test yes != "$GCC"; then
  7847. with_gnu_ld=no
  7848. fi
  7849. ;;
  7850. interix*)
  7851. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7852. with_gnu_ld=yes
  7853. ;;
  7854. openbsd* | bitrig*)
  7855. with_gnu_ld=no
  7856. ;;
  7857. esac
  7858. ld_shlibs=yes
  7859. # On some targets, GNU ld is compatible enough with the native linker
  7860. # that we're better off using the native interface for both.
  7861. lt_use_gnu_ld_interface=no
  7862. if test yes = "$with_gnu_ld"; then
  7863. case $host_os in
  7864. aix*)
  7865. # The AIX port of GNU ld has always aspired to compatibility
  7866. # with the native linker. However, as the warning in the GNU ld
  7867. # block says, versions before 2.19.5* couldn't really create working
  7868. # shared libraries, regardless of the interface used.
  7869. case `$LD -v 2>&1` in
  7870. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7871. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7872. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7873. *)
  7874. lt_use_gnu_ld_interface=yes
  7875. ;;
  7876. esac
  7877. ;;
  7878. *)
  7879. lt_use_gnu_ld_interface=yes
  7880. ;;
  7881. esac
  7882. fi
  7883. if test yes = "$lt_use_gnu_ld_interface"; then
  7884. # If archive_cmds runs LD, not CC, wlarc should be empty
  7885. wlarc='$wl'
  7886. # Set some defaults for GNU ld with shared library support. These
  7887. # are reset later if shared libraries are not supported. Putting them
  7888. # here allows them to be overridden if necessary.
  7889. runpath_var=LD_RUN_PATH
  7890. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7891. export_dynamic_flag_spec='$wl--export-dynamic'
  7892. # ancient GNU ld didn't support --whole-archive et. al.
  7893. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7894. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7895. else
  7896. whole_archive_flag_spec=
  7897. fi
  7898. supports_anon_versioning=no
  7899. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7900. *GNU\ gold*) supports_anon_versioning=yes ;;
  7901. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7902. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7903. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7904. *\ 2.11.*) ;; # other 2.11 versions
  7905. *) supports_anon_versioning=yes ;;
  7906. esac
  7907. # See if GNU ld supports shared libraries.
  7908. case $host_os in
  7909. aix[3-9]*)
  7910. # On AIX/PPC, the GNU linker is very broken
  7911. if test ia64 != "$host_cpu"; then
  7912. ld_shlibs=no
  7913. cat <<_LT_EOF 1>&2
  7914. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7915. *** to be unable to reliably create shared libraries on AIX.
  7916. *** Therefore, libtool is disabling shared libraries support. If you
  7917. *** really care for shared libraries, you may want to install binutils
  7918. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7919. *** You will then need to restart the configuration process.
  7920. _LT_EOF
  7921. fi
  7922. ;;
  7923. amigaos*)
  7924. case $host_cpu in
  7925. powerpc)
  7926. # see comment about AmigaOS4 .so support
  7927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7928. archive_expsym_cmds=''
  7929. ;;
  7930. m68k)
  7931. 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)'
  7932. hardcode_libdir_flag_spec='-L$libdir'
  7933. hardcode_minus_L=yes
  7934. ;;
  7935. esac
  7936. ;;
  7937. beos*)
  7938. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7939. allow_undefined_flag=unsupported
  7940. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7941. # support --undefined. This deserves some investigation. FIXME
  7942. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7943. else
  7944. ld_shlibs=no
  7945. fi
  7946. ;;
  7947. cygwin* | mingw* | pw32* | cegcc*)
  7948. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7949. # as there is no search path for DLLs.
  7950. hardcode_libdir_flag_spec='-L$libdir'
  7951. export_dynamic_flag_spec='$wl--export-all-symbols'
  7952. allow_undefined_flag=unsupported
  7953. always_export_symbols=no
  7954. enable_shared_with_static_runtimes=yes
  7955. 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'
  7956. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7957. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7959. # If the export-symbols file already is a .def file, use it as
  7960. # is; otherwise, prepend EXPORTS...
  7961. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7962. cp $export_symbols $output_objdir/$soname.def;
  7963. else
  7964. echo EXPORTS > $output_objdir/$soname.def;
  7965. cat $export_symbols >> $output_objdir/$soname.def;
  7966. fi~
  7967. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7968. else
  7969. ld_shlibs=no
  7970. fi
  7971. ;;
  7972. haiku*)
  7973. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7974. link_all_deplibs=yes
  7975. ;;
  7976. os2*)
  7977. hardcode_libdir_flag_spec='-L$libdir'
  7978. hardcode_minus_L=yes
  7979. allow_undefined_flag=unsupported
  7980. shrext_cmds=.dll
  7981. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7982. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7983. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7984. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7985. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7986. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7987. emximp -o $lib $output_objdir/$libname.def'
  7988. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7989. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7990. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7991. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7992. prefix_cmds="$SED"~
  7993. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7994. prefix_cmds="$prefix_cmds -e 1d";
  7995. fi~
  7996. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7997. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7998. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7999. emximp -o $lib $output_objdir/$libname.def'
  8000. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8001. enable_shared_with_static_runtimes=yes
  8002. file_list_spec='@'
  8003. ;;
  8004. interix[3-9]*)
  8005. hardcode_direct=no
  8006. hardcode_shlibpath_var=no
  8007. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8008. export_dynamic_flag_spec='$wl-E'
  8009. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8010. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8011. # default) and relocated if they conflict, which is a slow very memory
  8012. # consuming and fragmenting process. To avoid this, we pick a random,
  8013. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8014. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8015. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8016. 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'
  8017. ;;
  8018. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8019. tmp_diet=no
  8020. if test linux-dietlibc = "$host_os"; then
  8021. case $cc_basename in
  8022. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8023. esac
  8024. fi
  8025. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8026. && test no = "$tmp_diet"
  8027. then
  8028. tmp_addflag=' $pic_flag'
  8029. tmp_sharedflag='-shared'
  8030. case $cc_basename,$host_cpu in
  8031. pgcc*) # Portland Group C compiler
  8032. 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'
  8033. tmp_addflag=' $pic_flag'
  8034. ;;
  8035. pgf77* | pgf90* | pgf95* | pgfortran*)
  8036. # Portland Group f77 and f90 compilers
  8037. 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'
  8038. tmp_addflag=' $pic_flag -Mnomain' ;;
  8039. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8040. tmp_addflag=' -i_dynamic' ;;
  8041. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8042. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8043. ifc* | ifort*) # Intel Fortran compiler
  8044. tmp_addflag=' -nofor_main' ;;
  8045. lf95*) # Lahey Fortran 8.1
  8046. whole_archive_flag_spec=
  8047. tmp_sharedflag='--shared' ;;
  8048. nagfor*) # NAGFOR 5.3
  8049. tmp_sharedflag='-Wl,-shared' ;;
  8050. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8051. tmp_sharedflag='-qmkshrobj'
  8052. tmp_addflag= ;;
  8053. nvcc*) # Cuda Compiler Driver 2.2
  8054. 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'
  8055. compiler_needs_object=yes
  8056. ;;
  8057. esac
  8058. case `$CC -V 2>&1 | sed 5q` in
  8059. *Sun\ C*) # Sun C 5.9
  8060. 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'
  8061. compiler_needs_object=yes
  8062. tmp_sharedflag='-G' ;;
  8063. *Sun\ F*) # Sun Fortran 8.3
  8064. tmp_sharedflag='-G' ;;
  8065. esac
  8066. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8067. if test yes = "$supports_anon_versioning"; then
  8068. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8069. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8070. echo "local: *; };" >> $output_objdir/$libname.ver~
  8071. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8072. fi
  8073. case $cc_basename in
  8074. tcc*)
  8075. export_dynamic_flag_spec='-rdynamic'
  8076. ;;
  8077. xlf* | bgf* | bgxlf* | mpixlf*)
  8078. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8079. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8080. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8081. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8082. if test yes = "$supports_anon_versioning"; then
  8083. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8084. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8085. echo "local: *; };" >> $output_objdir/$libname.ver~
  8086. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8087. fi
  8088. ;;
  8089. esac
  8090. else
  8091. ld_shlibs=no
  8092. fi
  8093. ;;
  8094. netbsd*)
  8095. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8096. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8097. wlarc=
  8098. else
  8099. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8100. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8101. fi
  8102. ;;
  8103. solaris*)
  8104. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8105. ld_shlibs=no
  8106. cat <<_LT_EOF 1>&2
  8107. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8108. *** create shared libraries on Solaris systems. Therefore, libtool
  8109. *** is disabling shared libraries support. We urge you to upgrade GNU
  8110. *** binutils to release 2.9.1 or newer. Another option is to modify
  8111. *** your PATH or compiler configuration so that the native linker is
  8112. *** used, and then restart.
  8113. _LT_EOF
  8114. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8115. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8116. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8117. else
  8118. ld_shlibs=no
  8119. fi
  8120. ;;
  8121. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8122. case `$LD -v 2>&1` in
  8123. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8124. ld_shlibs=no
  8125. cat <<_LT_EOF 1>&2
  8126. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8127. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8128. *** is disabling shared libraries support. We urge you to upgrade GNU
  8129. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8130. *** your PATH or compiler configuration so that the native linker is
  8131. *** used, and then restart.
  8132. _LT_EOF
  8133. ;;
  8134. *)
  8135. # For security reasons, it is highly recommended that you always
  8136. # use absolute paths for naming shared libraries, and exclude the
  8137. # DT_RUNPATH tag from executables and libraries. But doing so
  8138. # requires that you compile everything twice, which is a pain.
  8139. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8140. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8141. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8142. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8143. else
  8144. ld_shlibs=no
  8145. fi
  8146. ;;
  8147. esac
  8148. ;;
  8149. sunos4*)
  8150. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8151. wlarc=
  8152. hardcode_direct=yes
  8153. hardcode_shlibpath_var=no
  8154. ;;
  8155. *)
  8156. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8157. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8158. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8159. else
  8160. ld_shlibs=no
  8161. fi
  8162. ;;
  8163. esac
  8164. if test no = "$ld_shlibs"; then
  8165. runpath_var=
  8166. hardcode_libdir_flag_spec=
  8167. export_dynamic_flag_spec=
  8168. whole_archive_flag_spec=
  8169. fi
  8170. else
  8171. # PORTME fill in a description of your system's linker (not GNU ld)
  8172. case $host_os in
  8173. aix3*)
  8174. allow_undefined_flag=unsupported
  8175. always_export_symbols=yes
  8176. 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'
  8177. # Note: this linker hardcodes the directories in LIBPATH if there
  8178. # are no directories specified by -L.
  8179. hardcode_minus_L=yes
  8180. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8181. # Neither direct hardcoding nor static linking is supported with a
  8182. # broken collect2.
  8183. hardcode_direct=unsupported
  8184. fi
  8185. ;;
  8186. aix[4-9]*)
  8187. if test ia64 = "$host_cpu"; then
  8188. # On IA64, the linker does run time linking by default, so we don't
  8189. # have to do anything special.
  8190. aix_use_runtimelinking=no
  8191. exp_sym_flag='-Bexport'
  8192. no_entry_flag=
  8193. else
  8194. # If we're using GNU nm, then we don't want the "-C" option.
  8195. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8196. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8197. # weak defined symbols like other global defined symbols, whereas
  8198. # GNU nm marks them as "W".
  8199. # While the 'weak' keyword is ignored in the Export File, we need
  8200. # it in the Import File for the 'aix-soname' feature, so we have
  8201. # to replace the "-B" option with "-P" for AIX nm.
  8202. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8203. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8204. else
  8205. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8206. fi
  8207. aix_use_runtimelinking=no
  8208. # Test if we are trying to use run time linking or normal
  8209. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8210. # have runtime linking enabled, and use it for executables.
  8211. # For shared libraries, we enable/disable runtime linking
  8212. # depending on the kind of the shared library created -
  8213. # when "with_aix_soname,aix_use_runtimelinking" is:
  8214. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8215. # "aix,yes" lib.so shared, rtl:yes, for executables
  8216. # lib.a static archive
  8217. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8218. # lib.a(lib.so.V) shared, rtl:no, for executables
  8219. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a(lib.so.V) shared, rtl:no
  8221. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8222. # lib.a static archive
  8223. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8224. for ld_flag in $LDFLAGS; do
  8225. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8226. aix_use_runtimelinking=yes
  8227. break
  8228. fi
  8229. done
  8230. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8231. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8232. # so we don't have lib.a shared libs to link our executables.
  8233. # We have to force runtime linking in this case.
  8234. aix_use_runtimelinking=yes
  8235. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8236. fi
  8237. ;;
  8238. esac
  8239. exp_sym_flag='-bexport'
  8240. no_entry_flag='-bnoentry'
  8241. fi
  8242. # When large executables or shared objects are built, AIX ld can
  8243. # have problems creating the table of contents. If linking a library
  8244. # or program results in "error TOC overflow" add -mminimal-toc to
  8245. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8246. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8247. archive_cmds=''
  8248. hardcode_direct=yes
  8249. hardcode_direct_absolute=yes
  8250. hardcode_libdir_separator=':'
  8251. link_all_deplibs=yes
  8252. file_list_spec='$wl-f,'
  8253. case $with_aix_soname,$aix_use_runtimelinking in
  8254. aix,*) ;; # traditional, no import file
  8255. svr4,* | *,yes) # use import file
  8256. # The Import File defines what to hardcode.
  8257. hardcode_direct=no
  8258. hardcode_direct_absolute=no
  8259. ;;
  8260. esac
  8261. if test yes = "$GCC"; then
  8262. case $host_os in aix4.[012]|aix4.[012].*)
  8263. # We only want to do this on AIX 4.2 and lower, the check
  8264. # below for broken collect2 doesn't work under 4.3+
  8265. collect2name=`$CC -print-prog-name=collect2`
  8266. if test -f "$collect2name" &&
  8267. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8268. then
  8269. # We have reworked collect2
  8270. :
  8271. else
  8272. # We have old collect2
  8273. hardcode_direct=unsupported
  8274. # It fails to find uninstalled libraries when the uninstalled
  8275. # path is not listed in the libpath. Setting hardcode_minus_L
  8276. # to unsupported forces relinking
  8277. hardcode_minus_L=yes
  8278. hardcode_libdir_flag_spec='-L$libdir'
  8279. hardcode_libdir_separator=
  8280. fi
  8281. ;;
  8282. esac
  8283. shared_flag='-shared'
  8284. if test yes = "$aix_use_runtimelinking"; then
  8285. shared_flag="$shared_flag "'$wl-G'
  8286. fi
  8287. # Need to ensure runtime linking is disabled for the traditional
  8288. # shared library, or the linker may eventually find shared libraries
  8289. # /with/ Import File - we do not want to mix them.
  8290. shared_flag_aix='-shared'
  8291. shared_flag_svr4='-shared $wl-G'
  8292. else
  8293. # not using gcc
  8294. if test ia64 = "$host_cpu"; then
  8295. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8296. # chokes on -Wl,-G. The following line is correct:
  8297. shared_flag='-G'
  8298. else
  8299. if test yes = "$aix_use_runtimelinking"; then
  8300. shared_flag='$wl-G'
  8301. else
  8302. shared_flag='$wl-bM:SRE'
  8303. fi
  8304. shared_flag_aix='$wl-bM:SRE'
  8305. shared_flag_svr4='$wl-G'
  8306. fi
  8307. fi
  8308. export_dynamic_flag_spec='$wl-bexpall'
  8309. # It seems that -bexpall does not export symbols beginning with
  8310. # underscore (_), so it is better to generate a list of symbols to export.
  8311. always_export_symbols=yes
  8312. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8313. # Warning - without using the other runtime loading flags (-brtl),
  8314. # -berok will link without error, but may produce a broken library.
  8315. allow_undefined_flag='-berok'
  8316. # Determine the default libpath from the value encoded in an
  8317. # empty executable.
  8318. if test set = "${lt_cv_aix_libpath+set}"; then
  8319. aix_libpath=$lt_cv_aix_libpath
  8320. else
  8321. if ${lt_cv_aix_libpath_+:} false; then :
  8322. $as_echo_n "(cached) " >&6
  8323. else
  8324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8325. /* end confdefs.h. */
  8326. int
  8327. main ()
  8328. {
  8329. ;
  8330. return 0;
  8331. }
  8332. _ACEOF
  8333. if ac_fn_c_try_link "$LINENO"; then :
  8334. lt_aix_libpath_sed='
  8335. /Import File Strings/,/^$/ {
  8336. /^0/ {
  8337. s/^0 *\([^ ]*\) *$/\1/
  8338. p
  8339. }
  8340. }'
  8341. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8342. # Check for a 64-bit object if we didn't find anything.
  8343. if test -z "$lt_cv_aix_libpath_"; then
  8344. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8345. fi
  8346. fi
  8347. rm -f core conftest.err conftest.$ac_objext \
  8348. conftest$ac_exeext conftest.$ac_ext
  8349. if test -z "$lt_cv_aix_libpath_"; then
  8350. lt_cv_aix_libpath_=/usr/lib:/lib
  8351. fi
  8352. fi
  8353. aix_libpath=$lt_cv_aix_libpath_
  8354. fi
  8355. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8356. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8357. else
  8358. if test ia64 = "$host_cpu"; then
  8359. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8360. allow_undefined_flag="-z nodefs"
  8361. 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"
  8362. else
  8363. # Determine the default libpath from the value encoded in an
  8364. # empty executable.
  8365. if test set = "${lt_cv_aix_libpath+set}"; then
  8366. aix_libpath=$lt_cv_aix_libpath
  8367. else
  8368. if ${lt_cv_aix_libpath_+:} false; then :
  8369. $as_echo_n "(cached) " >&6
  8370. else
  8371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8372. /* end confdefs.h. */
  8373. int
  8374. main ()
  8375. {
  8376. ;
  8377. return 0;
  8378. }
  8379. _ACEOF
  8380. if ac_fn_c_try_link "$LINENO"; then :
  8381. lt_aix_libpath_sed='
  8382. /Import File Strings/,/^$/ {
  8383. /^0/ {
  8384. s/^0 *\([^ ]*\) *$/\1/
  8385. p
  8386. }
  8387. }'
  8388. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8389. # Check for a 64-bit object if we didn't find anything.
  8390. if test -z "$lt_cv_aix_libpath_"; then
  8391. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8392. fi
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext \
  8395. conftest$ac_exeext conftest.$ac_ext
  8396. if test -z "$lt_cv_aix_libpath_"; then
  8397. lt_cv_aix_libpath_=/usr/lib:/lib
  8398. fi
  8399. fi
  8400. aix_libpath=$lt_cv_aix_libpath_
  8401. fi
  8402. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8403. # Warning - without using the other run time loading flags,
  8404. # -berok will link without error, but may produce a broken library.
  8405. no_undefined_flag=' $wl-bernotok'
  8406. allow_undefined_flag=' $wl-berok'
  8407. if test yes = "$with_gnu_ld"; then
  8408. # We only use this code for GNU lds that support --whole-archive.
  8409. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8410. else
  8411. # Exported symbols can be pulled into shared objects from archives
  8412. whole_archive_flag_spec='$convenience'
  8413. fi
  8414. archive_cmds_need_lc=yes
  8415. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8416. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8417. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8418. if test svr4 != "$with_aix_soname"; then
  8419. # This is similar to how AIX traditionally builds its shared libraries.
  8420. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8421. fi
  8422. if test aix != "$with_aix_soname"; then
  8423. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8424. else
  8425. # used by -dlpreopen to get the symbols
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8427. fi
  8428. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8429. fi
  8430. fi
  8431. ;;
  8432. amigaos*)
  8433. case $host_cpu in
  8434. powerpc)
  8435. # see comment about AmigaOS4 .so support
  8436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8437. archive_expsym_cmds=''
  8438. ;;
  8439. m68k)
  8440. 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)'
  8441. hardcode_libdir_flag_spec='-L$libdir'
  8442. hardcode_minus_L=yes
  8443. ;;
  8444. esac
  8445. ;;
  8446. bsdi[45]*)
  8447. export_dynamic_flag_spec=-rdynamic
  8448. ;;
  8449. cygwin* | mingw* | pw32* | cegcc*)
  8450. # When not using gcc, we currently assume that we are using
  8451. # Microsoft Visual C++.
  8452. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8453. # no search path for DLLs.
  8454. case $cc_basename in
  8455. cl*)
  8456. # Native MSVC
  8457. hardcode_libdir_flag_spec=' '
  8458. allow_undefined_flag=unsupported
  8459. always_export_symbols=yes
  8460. file_list_spec='@'
  8461. # Tell ltmain to make .lib files, not .a files.
  8462. libext=lib
  8463. # Tell ltmain to make .dll files, not .so files.
  8464. shrext_cmds=.dll
  8465. # FIXME: Setting linknames here is a bad hack.
  8466. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8467. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8468. cp "$export_symbols" "$output_objdir/$soname.def";
  8469. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8470. else
  8471. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8472. fi~
  8473. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8474. linknames='
  8475. # The linker will not automatically build a static lib if we build a DLL.
  8476. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8477. enable_shared_with_static_runtimes=yes
  8478. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8479. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8480. # Don't use ranlib
  8481. old_postinstall_cmds='chmod 644 $oldlib'
  8482. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8483. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8484. case $lt_outputfile in
  8485. *.exe|*.EXE) ;;
  8486. *)
  8487. lt_outputfile=$lt_outputfile.exe
  8488. lt_tool_outputfile=$lt_tool_outputfile.exe
  8489. ;;
  8490. esac~
  8491. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8492. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8493. $RM "$lt_outputfile.manifest";
  8494. fi'
  8495. ;;
  8496. *)
  8497. # Assume MSVC wrapper
  8498. hardcode_libdir_flag_spec=' '
  8499. allow_undefined_flag=unsupported
  8500. # Tell ltmain to make .lib files, not .a files.
  8501. libext=lib
  8502. # Tell ltmain to make .dll files, not .so files.
  8503. shrext_cmds=.dll
  8504. # FIXME: Setting linknames here is a bad hack.
  8505. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8506. # The linker will automatically build a .lib file if we build a DLL.
  8507. old_archive_from_new_cmds='true'
  8508. # FIXME: Should let the user specify the lib program.
  8509. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8510. enable_shared_with_static_runtimes=yes
  8511. ;;
  8512. esac
  8513. ;;
  8514. darwin* | rhapsody*)
  8515. archive_cmds_need_lc=no
  8516. hardcode_direct=no
  8517. hardcode_automatic=yes
  8518. hardcode_shlibpath_var=unsupported
  8519. if test yes = "$lt_cv_ld_force_load"; then
  8520. 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\"`'
  8521. else
  8522. whole_archive_flag_spec=''
  8523. fi
  8524. link_all_deplibs=yes
  8525. allow_undefined_flag=$_lt_dar_allow_undefined
  8526. case $cc_basename in
  8527. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8528. *) _lt_dar_can_shared=$GCC ;;
  8529. esac
  8530. if test yes = "$_lt_dar_can_shared"; then
  8531. output_verbose_link_cmd=func_echo_all
  8532. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8533. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8534. 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"
  8535. 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"
  8536. else
  8537. ld_shlibs=no
  8538. fi
  8539. ;;
  8540. dgux*)
  8541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8542. hardcode_libdir_flag_spec='-L$libdir'
  8543. hardcode_shlibpath_var=no
  8544. ;;
  8545. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8546. # support. Future versions do this automatically, but an explicit c++rt0.o
  8547. # does not break anything, and helps significantly (at the cost of a little
  8548. # extra space).
  8549. freebsd2.2*)
  8550. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8551. hardcode_libdir_flag_spec='-R$libdir'
  8552. hardcode_direct=yes
  8553. hardcode_shlibpath_var=no
  8554. ;;
  8555. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8556. freebsd2.*)
  8557. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8558. hardcode_direct=yes
  8559. hardcode_minus_L=yes
  8560. hardcode_shlibpath_var=no
  8561. ;;
  8562. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8563. freebsd* | dragonfly* | midnightbsd*)
  8564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8565. hardcode_libdir_flag_spec='-R$libdir'
  8566. hardcode_direct=yes
  8567. hardcode_shlibpath_var=no
  8568. ;;
  8569. hpux9*)
  8570. if test yes = "$GCC"; then
  8571. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8572. else
  8573. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8574. fi
  8575. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8576. hardcode_libdir_separator=:
  8577. hardcode_direct=yes
  8578. # hardcode_minus_L: Not really in the search PATH,
  8579. # but as the default location of the library.
  8580. hardcode_minus_L=yes
  8581. export_dynamic_flag_spec='$wl-E'
  8582. ;;
  8583. hpux10*)
  8584. if test yes,no = "$GCC,$with_gnu_ld"; then
  8585. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8586. else
  8587. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8588. fi
  8589. if test no = "$with_gnu_ld"; then
  8590. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8591. hardcode_libdir_separator=:
  8592. hardcode_direct=yes
  8593. hardcode_direct_absolute=yes
  8594. export_dynamic_flag_spec='$wl-E'
  8595. # hardcode_minus_L: Not really in the search PATH,
  8596. # but as the default location of the library.
  8597. hardcode_minus_L=yes
  8598. fi
  8599. ;;
  8600. hpux11*)
  8601. if test yes,no = "$GCC,$with_gnu_ld"; then
  8602. case $host_cpu in
  8603. hppa*64*)
  8604. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8605. ;;
  8606. ia64*)
  8607. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8608. ;;
  8609. *)
  8610. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. esac
  8613. else
  8614. case $host_cpu in
  8615. hppa*64*)
  8616. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. ia64*)
  8619. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8620. ;;
  8621. *)
  8622. # Older versions of the 11.00 compiler do not understand -b yet
  8623. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8625. $as_echo_n "checking if $CC understands -b... " >&6; }
  8626. if ${lt_cv_prog_compiler__b+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. lt_cv_prog_compiler__b=no
  8630. save_LDFLAGS=$LDFLAGS
  8631. LDFLAGS="$LDFLAGS -b"
  8632. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8633. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8634. # The linker can only warn and ignore the option if not recognized
  8635. # So say no if there are warnings
  8636. if test -s conftest.err; then
  8637. # Append any errors to the config.log.
  8638. cat conftest.err 1>&5
  8639. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8641. if diff conftest.exp conftest.er2 >/dev/null; then
  8642. lt_cv_prog_compiler__b=yes
  8643. fi
  8644. else
  8645. lt_cv_prog_compiler__b=yes
  8646. fi
  8647. fi
  8648. $RM -r conftest*
  8649. LDFLAGS=$save_LDFLAGS
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8652. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8653. if test yes = "$lt_cv_prog_compiler__b"; then
  8654. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8655. else
  8656. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8657. fi
  8658. ;;
  8659. esac
  8660. fi
  8661. if test no = "$with_gnu_ld"; then
  8662. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8663. hardcode_libdir_separator=:
  8664. case $host_cpu in
  8665. hppa*64*|ia64*)
  8666. hardcode_direct=no
  8667. hardcode_shlibpath_var=no
  8668. ;;
  8669. *)
  8670. hardcode_direct=yes
  8671. hardcode_direct_absolute=yes
  8672. export_dynamic_flag_spec='$wl-E'
  8673. # hardcode_minus_L: Not really in the search PATH,
  8674. # but as the default location of the library.
  8675. hardcode_minus_L=yes
  8676. ;;
  8677. esac
  8678. fi
  8679. ;;
  8680. irix5* | irix6* | nonstopux*)
  8681. if test yes = "$GCC"; then
  8682. 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'
  8683. # Try to use the -exported_symbol ld option, if it does not
  8684. # work, assume that -exports_file does not work either and
  8685. # implicitly export all symbols.
  8686. # This should be the same for all languages, so no per-tag cache variable.
  8687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8688. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8689. if ${lt_cv_irix_exported_symbol+:} false; then :
  8690. $as_echo_n "(cached) " >&6
  8691. else
  8692. save_LDFLAGS=$LDFLAGS
  8693. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8695. /* end confdefs.h. */
  8696. int foo (void) { return 0; }
  8697. _ACEOF
  8698. if ac_fn_c_try_link "$LINENO"; then :
  8699. lt_cv_irix_exported_symbol=yes
  8700. else
  8701. lt_cv_irix_exported_symbol=no
  8702. fi
  8703. rm -f core conftest.err conftest.$ac_objext \
  8704. conftest$ac_exeext conftest.$ac_ext
  8705. LDFLAGS=$save_LDFLAGS
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8708. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8709. if test yes = "$lt_cv_irix_exported_symbol"; then
  8710. 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'
  8711. fi
  8712. else
  8713. 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'
  8714. 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'
  8715. fi
  8716. archive_cmds_need_lc='no'
  8717. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8718. hardcode_libdir_separator=:
  8719. inherit_rpath=yes
  8720. link_all_deplibs=yes
  8721. ;;
  8722. linux*)
  8723. case $cc_basename in
  8724. tcc*)
  8725. # Fabrice Bellard et al's Tiny C Compiler
  8726. ld_shlibs=yes
  8727. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8728. ;;
  8729. esac
  8730. ;;
  8731. netbsd*)
  8732. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8733. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8734. else
  8735. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8736. fi
  8737. hardcode_libdir_flag_spec='-R$libdir'
  8738. hardcode_direct=yes
  8739. hardcode_shlibpath_var=no
  8740. ;;
  8741. newsos6)
  8742. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8743. hardcode_direct=yes
  8744. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8745. hardcode_libdir_separator=:
  8746. hardcode_shlibpath_var=no
  8747. ;;
  8748. *nto* | *qnx*)
  8749. ;;
  8750. openbsd* | bitrig*)
  8751. if test -f /usr/libexec/ld.so; then
  8752. hardcode_direct=yes
  8753. hardcode_shlibpath_var=no
  8754. hardcode_direct_absolute=yes
  8755. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8756. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8757. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8758. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8759. export_dynamic_flag_spec='$wl-E'
  8760. else
  8761. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8762. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8763. fi
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. os2*)
  8769. hardcode_libdir_flag_spec='-L$libdir'
  8770. hardcode_minus_L=yes
  8771. allow_undefined_flag=unsupported
  8772. shrext_cmds=.dll
  8773. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8774. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8775. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8776. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8777. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8778. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8779. emximp -o $lib $output_objdir/$libname.def'
  8780. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8781. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8782. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8783. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8784. prefix_cmds="$SED"~
  8785. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8786. prefix_cmds="$prefix_cmds -e 1d";
  8787. fi~
  8788. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8789. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8790. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8791. emximp -o $lib $output_objdir/$libname.def'
  8792. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8793. enable_shared_with_static_runtimes=yes
  8794. file_list_spec='@'
  8795. ;;
  8796. osf3*)
  8797. if test yes = "$GCC"; then
  8798. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8799. 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'
  8800. else
  8801. allow_undefined_flag=' -expect_unresolved \*'
  8802. 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'
  8803. fi
  8804. archive_cmds_need_lc='no'
  8805. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8806. hardcode_libdir_separator=:
  8807. ;;
  8808. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8809. if test yes = "$GCC"; then
  8810. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8811. 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'
  8812. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8813. else
  8814. allow_undefined_flag=' -expect_unresolved \*'
  8815. 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'
  8816. 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~
  8817. $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'
  8818. # Both c and cxx compiler support -rpath directly
  8819. hardcode_libdir_flag_spec='-rpath $libdir'
  8820. fi
  8821. archive_cmds_need_lc='no'
  8822. hardcode_libdir_separator=:
  8823. ;;
  8824. solaris*)
  8825. no_undefined_flag=' -z defs'
  8826. if test yes = "$GCC"; then
  8827. wlarc='$wl'
  8828. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8829. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8830. $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'
  8831. else
  8832. case `$CC -V 2>&1` in
  8833. *"Compilers 5.0"*)
  8834. wlarc=''
  8835. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8836. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8837. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8838. ;;
  8839. *)
  8840. wlarc='$wl'
  8841. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8844. ;;
  8845. esac
  8846. fi
  8847. hardcode_libdir_flag_spec='-R$libdir'
  8848. hardcode_shlibpath_var=no
  8849. case $host_os in
  8850. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8851. *)
  8852. # The compiler driver will combine and reorder linker options,
  8853. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8854. # but is careful enough not to reorder.
  8855. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8856. if test yes = "$GCC"; then
  8857. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8858. else
  8859. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8860. fi
  8861. ;;
  8862. esac
  8863. link_all_deplibs=yes
  8864. ;;
  8865. sunos4*)
  8866. if test sequent = "$host_vendor"; then
  8867. # Use $CC to link under sequent, because it throws in some extra .o
  8868. # files that make .init and .fini sections work.
  8869. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8870. else
  8871. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8872. fi
  8873. hardcode_libdir_flag_spec='-L$libdir'
  8874. hardcode_direct=yes
  8875. hardcode_minus_L=yes
  8876. hardcode_shlibpath_var=no
  8877. ;;
  8878. sysv4)
  8879. case $host_vendor in
  8880. sni)
  8881. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8882. hardcode_direct=yes # is this really true???
  8883. ;;
  8884. siemens)
  8885. ## LD is ld it makes a PLAMLIB
  8886. ## CC just makes a GrossModule.
  8887. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8888. reload_cmds='$CC -r -o $output$reload_objs'
  8889. hardcode_direct=no
  8890. ;;
  8891. motorola)
  8892. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8893. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8894. ;;
  8895. esac
  8896. runpath_var='LD_RUN_PATH'
  8897. hardcode_shlibpath_var=no
  8898. ;;
  8899. sysv4.3*)
  8900. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_shlibpath_var=no
  8902. export_dynamic_flag_spec='-Bexport'
  8903. ;;
  8904. sysv4*MP*)
  8905. if test -d /usr/nec; then
  8906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_shlibpath_var=no
  8908. runpath_var=LD_RUN_PATH
  8909. hardcode_runpath_var=yes
  8910. ld_shlibs=yes
  8911. fi
  8912. ;;
  8913. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8914. no_undefined_flag='$wl-z,text'
  8915. archive_cmds_need_lc=no
  8916. hardcode_shlibpath_var=no
  8917. runpath_var='LD_RUN_PATH'
  8918. if test yes = "$GCC"; then
  8919. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8920. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. else
  8922. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8923. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8924. fi
  8925. ;;
  8926. sysv5* | sco3.2v5* | sco5v6*)
  8927. # Note: We CANNOT use -z defs as we might desire, because we do not
  8928. # link with -lc, and that would cause any symbols used from libc to
  8929. # always be unresolved, which means just about no library would
  8930. # ever link correctly. If we're not using GNU ld we use -z text
  8931. # though, which does catch some bad symbols but isn't as heavy-handed
  8932. # as -z defs.
  8933. no_undefined_flag='$wl-z,text'
  8934. allow_undefined_flag='$wl-z,nodefs'
  8935. archive_cmds_need_lc=no
  8936. hardcode_shlibpath_var=no
  8937. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8938. hardcode_libdir_separator=':'
  8939. link_all_deplibs=yes
  8940. export_dynamic_flag_spec='$wl-Bexport'
  8941. runpath_var='LD_RUN_PATH'
  8942. if test yes = "$GCC"; then
  8943. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8944. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. else
  8946. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8948. fi
  8949. ;;
  8950. uts4*)
  8951. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8952. hardcode_libdir_flag_spec='-L$libdir'
  8953. hardcode_shlibpath_var=no
  8954. ;;
  8955. *)
  8956. ld_shlibs=no
  8957. ;;
  8958. esac
  8959. if test sni = "$host_vendor"; then
  8960. case $host in
  8961. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8962. export_dynamic_flag_spec='$wl-Blargedynsym'
  8963. ;;
  8964. esac
  8965. fi
  8966. fi
  8967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8968. $as_echo "$ld_shlibs" >&6; }
  8969. test no = "$ld_shlibs" && can_build_shared=no
  8970. with_gnu_ld=$with_gnu_ld
  8971. #
  8972. # Do we need to explicitly link libc?
  8973. #
  8974. case "x$archive_cmds_need_lc" in
  8975. x|xyes)
  8976. # Assume -lc should be added
  8977. archive_cmds_need_lc=yes
  8978. if test yes,yes = "$GCC,$enable_shared"; then
  8979. case $archive_cmds in
  8980. *'~'*)
  8981. # FIXME: we may have to deal with multi-command sequences.
  8982. ;;
  8983. '$CC '*)
  8984. # Test whether the compiler implicitly links with -lc since on some
  8985. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8986. # to ld, don't add -lc before -lgcc.
  8987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8988. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8989. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8990. $as_echo_n "(cached) " >&6
  8991. else
  8992. $RM conftest*
  8993. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8995. (eval $ac_compile) 2>&5
  8996. ac_status=$?
  8997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8998. test $ac_status = 0; } 2>conftest.err; then
  8999. soname=conftest
  9000. lib=conftest
  9001. libobjs=conftest.$ac_objext
  9002. deplibs=
  9003. wl=$lt_prog_compiler_wl
  9004. pic_flag=$lt_prog_compiler_pic
  9005. compiler_flags=-v
  9006. linker_flags=-v
  9007. verstring=
  9008. output_objdir=.
  9009. libname=conftest
  9010. lt_save_allow_undefined_flag=$allow_undefined_flag
  9011. allow_undefined_flag=
  9012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9013. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9014. ac_status=$?
  9015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9016. test $ac_status = 0; }
  9017. then
  9018. lt_cv_archive_cmds_need_lc=no
  9019. else
  9020. lt_cv_archive_cmds_need_lc=yes
  9021. fi
  9022. allow_undefined_flag=$lt_save_allow_undefined_flag
  9023. else
  9024. cat conftest.err 1>&5
  9025. fi
  9026. $RM conftest*
  9027. fi
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9029. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9030. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9031. ;;
  9032. esac
  9033. fi
  9034. ;;
  9035. esac
  9036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9037. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9038. if test yes = "$GCC"; then
  9039. case $host_os in
  9040. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9041. *) lt_awk_arg='/^libraries:/' ;;
  9042. esac
  9043. case $host_os in
  9044. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9045. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9046. esac
  9047. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9048. case $lt_search_path_spec in
  9049. *\;*)
  9050. # if the path contains ";" then we assume it to be the separator
  9051. # otherwise default to the standard path separator (i.e. ":") - it is
  9052. # assumed that no part of a normal pathname contains ";" but that should
  9053. # okay in the real world where ";" in dirpaths is itself problematic.
  9054. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9055. ;;
  9056. *)
  9057. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9058. ;;
  9059. esac
  9060. # Ok, now we have the path, separated by spaces, we can step through it
  9061. # and add multilib dir if necessary...
  9062. lt_tmp_lt_search_path_spec=
  9063. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9064. # ...but if some path component already ends with the multilib dir we assume
  9065. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9066. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9067. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9068. lt_multi_os_dir=
  9069. ;;
  9070. esac
  9071. for lt_sys_path in $lt_search_path_spec; do
  9072. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9073. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9074. elif test -n "$lt_multi_os_dir"; then
  9075. test -d "$lt_sys_path" && \
  9076. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9077. fi
  9078. done
  9079. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9080. BEGIN {RS = " "; FS = "/|\n";} {
  9081. lt_foo = "";
  9082. lt_count = 0;
  9083. for (lt_i = NF; lt_i > 0; lt_i--) {
  9084. if ($lt_i != "" && $lt_i != ".") {
  9085. if ($lt_i == "..") {
  9086. lt_count++;
  9087. } else {
  9088. if (lt_count == 0) {
  9089. lt_foo = "/" $lt_i lt_foo;
  9090. } else {
  9091. lt_count--;
  9092. }
  9093. }
  9094. }
  9095. }
  9096. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9097. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9098. }'`
  9099. # AWK program above erroneously prepends '/' to C:/dos/paths
  9100. # for these hosts.
  9101. case $host_os in
  9102. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9103. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9104. esac
  9105. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9106. else
  9107. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9108. fi
  9109. library_names_spec=
  9110. libname_spec='lib$name'
  9111. soname_spec=
  9112. shrext_cmds=.so
  9113. postinstall_cmds=
  9114. postuninstall_cmds=
  9115. finish_cmds=
  9116. finish_eval=
  9117. shlibpath_var=
  9118. shlibpath_overrides_runpath=unknown
  9119. version_type=none
  9120. dynamic_linker="$host_os ld.so"
  9121. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9122. need_lib_prefix=unknown
  9123. hardcode_into_libs=no
  9124. # when you set need_version to no, make sure it does not cause -set_version
  9125. # flags to be left without arguments
  9126. need_version=unknown
  9127. case $host_os in
  9128. aix3*)
  9129. version_type=linux # correct to gnu/linux during the next big refactor
  9130. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9131. shlibpath_var=LIBPATH
  9132. # AIX 3 has no versioning support, so we append a major version to the name.
  9133. soname_spec='$libname$release$shared_ext$major'
  9134. ;;
  9135. aix[4-9]*)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. hardcode_into_libs=yes
  9140. if test ia64 = "$host_cpu"; then
  9141. # AIX 5 supports IA64
  9142. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. else
  9145. # With GCC up to 2.95.x, collect2 would create an import file
  9146. # for dependence libraries. The import file would start with
  9147. # the line '#! .'. This would cause the generated library to
  9148. # depend on '.', always an invalid library. This was fixed in
  9149. # development snapshots of GCC prior to 3.0.
  9150. case $host_os in
  9151. aix4 | aix4.[01] | aix4.[01].*)
  9152. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9153. echo ' yes '
  9154. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9155. :
  9156. else
  9157. can_build_shared=no
  9158. fi
  9159. ;;
  9160. esac
  9161. # Using Import Files as archive members, it is possible to support
  9162. # filename-based versioning of shared library archives on AIX. While
  9163. # this would work for both with and without runtime linking, it will
  9164. # prevent static linking of such archives. So we do filename-based
  9165. # shared library versioning with .so extension only, which is used
  9166. # when both runtime linking and shared linking is enabled.
  9167. # Unfortunately, runtime linking may impact performance, so we do
  9168. # not want this to be the default eventually. Also, we use the
  9169. # versioned .so libs for executables only if there is the -brtl
  9170. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9171. # To allow for filename-based versioning support, we need to create
  9172. # libNAME.so.V as an archive file, containing:
  9173. # *) an Import File, referring to the versioned filename of the
  9174. # archive as well as the shared archive member, telling the
  9175. # bitwidth (32 or 64) of that shared object, and providing the
  9176. # list of exported symbols of that shared object, eventually
  9177. # decorated with the 'weak' keyword
  9178. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9179. # it being seen by the linker.
  9180. # At run time we better use the real file rather than another symlink,
  9181. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9182. case $with_aix_soname,$aix_use_runtimelinking in
  9183. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9184. # soname into executable. Probably we can add versioning support to
  9185. # collect2, so additional links can be useful in future.
  9186. aix,yes) # traditional libtool
  9187. dynamic_linker='AIX unversionable lib.so'
  9188. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9189. # instead of lib<name>.a to let people know that these are not
  9190. # typical AIX shared libraries.
  9191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9192. ;;
  9193. aix,no) # traditional AIX only
  9194. dynamic_linker='AIX lib.a(lib.so.V)'
  9195. # We preserve .a as extension for shared libraries through AIX4.2
  9196. # and later when we are not doing run time linking.
  9197. library_names_spec='$libname$release.a $libname.a'
  9198. soname_spec='$libname$release$shared_ext$major'
  9199. ;;
  9200. svr4,*) # full svr4 only
  9201. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9202. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9203. # We do not specify a path in Import Files, so LIBPATH fires.
  9204. shlibpath_overrides_runpath=yes
  9205. ;;
  9206. *,yes) # both, prefer svr4
  9207. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9208. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9209. # unpreferred sharedlib libNAME.a needs extra handling
  9210. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9211. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9212. # We do not specify a path in Import Files, so LIBPATH fires.
  9213. shlibpath_overrides_runpath=yes
  9214. ;;
  9215. *,no) # both, prefer aix
  9216. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9217. library_names_spec='$libname$release.a $libname.a'
  9218. soname_spec='$libname$release$shared_ext$major'
  9219. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9220. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9221. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9222. ;;
  9223. esac
  9224. shlibpath_var=LIBPATH
  9225. fi
  9226. ;;
  9227. amigaos*)
  9228. case $host_cpu in
  9229. powerpc)
  9230. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9231. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9233. ;;
  9234. m68k)
  9235. library_names_spec='$libname.ixlibrary $libname.a'
  9236. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9237. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9238. ;;
  9239. esac
  9240. ;;
  9241. beos*)
  9242. library_names_spec='$libname$shared_ext'
  9243. dynamic_linker="$host_os ld.so"
  9244. shlibpath_var=LIBRARY_PATH
  9245. ;;
  9246. bsdi[45]*)
  9247. version_type=linux # correct to gnu/linux during the next big refactor
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9252. shlibpath_var=LD_LIBRARY_PATH
  9253. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9254. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9255. # the default ld.so.conf also contains /usr/contrib/lib and
  9256. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9257. # libtool to hard-code these into programs
  9258. ;;
  9259. cygwin* | mingw* | pw32* | cegcc*)
  9260. version_type=windows
  9261. shrext_cmds=.dll
  9262. need_version=no
  9263. need_lib_prefix=no
  9264. case $GCC,$cc_basename in
  9265. yes,*)
  9266. # gcc
  9267. library_names_spec='$libname.dll.a'
  9268. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9269. postinstall_cmds='base_file=`basename \$file`~
  9270. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9271. dldir=$destdir/`dirname \$dlpath`~
  9272. test -d \$dldir || mkdir -p \$dldir~
  9273. $install_prog $dir/$dlname \$dldir/$dlname~
  9274. chmod a+x \$dldir/$dlname~
  9275. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9276. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9277. fi'
  9278. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9279. dlpath=$dir/\$dldll~
  9280. $RM \$dlpath'
  9281. shlibpath_overrides_runpath=yes
  9282. case $host_os in
  9283. cygwin*)
  9284. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9285. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9286. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9287. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9288. ;;
  9289. mingw* | cegcc*)
  9290. # MinGW DLLs use traditional 'lib' prefix
  9291. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9292. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9293. ;;
  9294. pw32*)
  9295. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9296. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9297. ;;
  9298. esac
  9299. dynamic_linker='Win32 ld.exe'
  9300. ;;
  9301. *,cl*)
  9302. # Native MSVC
  9303. libname_spec='$name'
  9304. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9305. library_names_spec='$libname.dll.lib'
  9306. case $build_os in
  9307. mingw*)
  9308. sys_lib_search_path_spec=
  9309. lt_save_ifs=$IFS
  9310. IFS=';'
  9311. for lt_path in $LIB
  9312. do
  9313. IFS=$lt_save_ifs
  9314. # Let DOS variable expansion print the short 8.3 style file name.
  9315. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9316. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9317. done
  9318. IFS=$lt_save_ifs
  9319. # Convert to MSYS style.
  9320. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9321. ;;
  9322. cygwin*)
  9323. # Convert to unix form, then to dos form, then back to unix form
  9324. # but this time dos style (no spaces!) so that the unix form looks
  9325. # like /cygdrive/c/PROGRA~1:/cygdr...
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9327. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9328. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9329. ;;
  9330. *)
  9331. sys_lib_search_path_spec=$LIB
  9332. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9333. # It is most probably a Windows format PATH.
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9335. else
  9336. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9337. fi
  9338. # FIXME: find the short name or the path components, as spaces are
  9339. # common. (e.g. "Program Files" -> "PROGRA~1")
  9340. ;;
  9341. esac
  9342. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9343. postinstall_cmds='base_file=`basename \$file`~
  9344. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9345. dldir=$destdir/`dirname \$dlpath`~
  9346. test -d \$dldir || mkdir -p \$dldir~
  9347. $install_prog $dir/$dlname \$dldir/$dlname'
  9348. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9349. dlpath=$dir/\$dldll~
  9350. $RM \$dlpath'
  9351. shlibpath_overrides_runpath=yes
  9352. dynamic_linker='Win32 link.exe'
  9353. ;;
  9354. *)
  9355. # Assume MSVC wrapper
  9356. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9357. dynamic_linker='Win32 ld.exe'
  9358. ;;
  9359. esac
  9360. # FIXME: first we should search . and the directory the executable is in
  9361. shlibpath_var=PATH
  9362. ;;
  9363. darwin* | rhapsody*)
  9364. dynamic_linker="$host_os dyld"
  9365. version_type=darwin
  9366. need_lib_prefix=no
  9367. need_version=no
  9368. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9369. soname_spec='$libname$release$major$shared_ext'
  9370. shlibpath_overrides_runpath=yes
  9371. shlibpath_var=DYLD_LIBRARY_PATH
  9372. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9373. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9374. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9375. ;;
  9376. dgux*)
  9377. version_type=linux # correct to gnu/linux during the next big refactor
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9381. soname_spec='$libname$release$shared_ext$major'
  9382. shlibpath_var=LD_LIBRARY_PATH
  9383. ;;
  9384. freebsd* | dragonfly* | midnightbsd*)
  9385. # DragonFly does not have aout. When/if they implement a new
  9386. # versioning mechanism, adjust this.
  9387. if test -x /usr/bin/objformat; then
  9388. objformat=`/usr/bin/objformat`
  9389. else
  9390. case $host_os in
  9391. freebsd[23].*) objformat=aout ;;
  9392. *) objformat=elf ;;
  9393. esac
  9394. fi
  9395. version_type=freebsd-$objformat
  9396. case $version_type in
  9397. freebsd-elf*)
  9398. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9399. soname_spec='$libname$release$shared_ext$major'
  9400. need_version=no
  9401. need_lib_prefix=no
  9402. ;;
  9403. freebsd-*)
  9404. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9405. need_version=yes
  9406. ;;
  9407. esac
  9408. shlibpath_var=LD_LIBRARY_PATH
  9409. case $host_os in
  9410. freebsd2.*)
  9411. shlibpath_overrides_runpath=yes
  9412. ;;
  9413. freebsd3.[01]* | freebsdelf3.[01]*)
  9414. shlibpath_overrides_runpath=yes
  9415. hardcode_into_libs=yes
  9416. ;;
  9417. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9418. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9419. shlibpath_overrides_runpath=no
  9420. hardcode_into_libs=yes
  9421. ;;
  9422. *) # from 4.6 on, and DragonFly
  9423. shlibpath_overrides_runpath=yes
  9424. hardcode_into_libs=yes
  9425. ;;
  9426. esac
  9427. ;;
  9428. haiku*)
  9429. version_type=linux # correct to gnu/linux during the next big refactor
  9430. need_lib_prefix=no
  9431. need_version=no
  9432. dynamic_linker="$host_os runtime_loader"
  9433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9434. soname_spec='$libname$release$shared_ext$major'
  9435. shlibpath_var=LIBRARY_PATH
  9436. shlibpath_overrides_runpath=no
  9437. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9438. hardcode_into_libs=yes
  9439. ;;
  9440. hpux9* | hpux10* | hpux11*)
  9441. # Give a soname corresponding to the major version so that dld.sl refuses to
  9442. # link against other versions.
  9443. version_type=sunos
  9444. need_lib_prefix=no
  9445. need_version=no
  9446. case $host_cpu in
  9447. ia64*)
  9448. shrext_cmds='.so'
  9449. hardcode_into_libs=yes
  9450. dynamic_linker="$host_os dld.so"
  9451. shlibpath_var=LD_LIBRARY_PATH
  9452. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9454. soname_spec='$libname$release$shared_ext$major'
  9455. if test 32 = "$HPUX_IA64_MODE"; then
  9456. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9457. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9458. else
  9459. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9460. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9461. fi
  9462. ;;
  9463. hppa*64*)
  9464. shrext_cmds='.sl'
  9465. hardcode_into_libs=yes
  9466. dynamic_linker="$host_os dld.sl"
  9467. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9468. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9469. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9470. soname_spec='$libname$release$shared_ext$major'
  9471. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9472. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9473. ;;
  9474. *)
  9475. shrext_cmds='.sl'
  9476. dynamic_linker="$host_os dld.sl"
  9477. shlibpath_var=SHLIB_PATH
  9478. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9480. soname_spec='$libname$release$shared_ext$major'
  9481. ;;
  9482. esac
  9483. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9484. postinstall_cmds='chmod 555 $lib'
  9485. # or fails outright, so override atomically:
  9486. install_override_mode=555
  9487. ;;
  9488. interix[3-9]*)
  9489. version_type=linux # correct to gnu/linux during the next big refactor
  9490. need_lib_prefix=no
  9491. need_version=no
  9492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9493. soname_spec='$libname$release$shared_ext$major'
  9494. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9495. shlibpath_var=LD_LIBRARY_PATH
  9496. shlibpath_overrides_runpath=no
  9497. hardcode_into_libs=yes
  9498. ;;
  9499. irix5* | irix6* | nonstopux*)
  9500. case $host_os in
  9501. nonstopux*) version_type=nonstopux ;;
  9502. *)
  9503. if test yes = "$lt_cv_prog_gnu_ld"; then
  9504. version_type=linux # correct to gnu/linux during the next big refactor
  9505. else
  9506. version_type=irix
  9507. fi ;;
  9508. esac
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. soname_spec='$libname$release$shared_ext$major'
  9512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9513. case $host_os in
  9514. irix5* | nonstopux*)
  9515. libsuff= shlibsuff=
  9516. ;;
  9517. *)
  9518. case $LD in # libtool.m4 will add one of these switches to LD
  9519. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9520. libsuff= shlibsuff= libmagic=32-bit;;
  9521. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9522. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9523. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9524. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9525. *) libsuff= shlibsuff= libmagic=never-match;;
  9526. esac
  9527. ;;
  9528. esac
  9529. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9530. shlibpath_overrides_runpath=no
  9531. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9532. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9533. hardcode_into_libs=yes
  9534. ;;
  9535. # No shared lib support for Linux oldld, aout, or coff.
  9536. linux*oldld* | linux*aout* | linux*coff*)
  9537. dynamic_linker=no
  9538. ;;
  9539. linux*android*)
  9540. version_type=none # Android doesn't support versioned libraries.
  9541. need_lib_prefix=no
  9542. need_version=no
  9543. library_names_spec='$libname$release$shared_ext'
  9544. soname_spec='$libname$release$shared_ext'
  9545. finish_cmds=
  9546. shlibpath_var=LD_LIBRARY_PATH
  9547. shlibpath_overrides_runpath=yes
  9548. # This implies no fast_install, which is unacceptable.
  9549. # Some rework will be needed to allow for fast_install
  9550. # before this can be enabled.
  9551. hardcode_into_libs=yes
  9552. dynamic_linker='Android linker'
  9553. # Don't embed -rpath directories since the linker doesn't support them.
  9554. hardcode_libdir_flag_spec='-L$libdir'
  9555. ;;
  9556. # This must be glibc/ELF.
  9557. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9558. version_type=linux # correct to gnu/linux during the next big refactor
  9559. need_lib_prefix=no
  9560. need_version=no
  9561. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9562. soname_spec='$libname$release$shared_ext$major'
  9563. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9564. shlibpath_var=LD_LIBRARY_PATH
  9565. shlibpath_overrides_runpath=no
  9566. # Some binutils ld are patched to set DT_RUNPATH
  9567. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9568. $as_echo_n "(cached) " >&6
  9569. else
  9570. lt_cv_shlibpath_overrides_runpath=no
  9571. save_LDFLAGS=$LDFLAGS
  9572. save_libdir=$libdir
  9573. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9574. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9576. /* end confdefs.h. */
  9577. int
  9578. main ()
  9579. {
  9580. ;
  9581. return 0;
  9582. }
  9583. _ACEOF
  9584. if ac_fn_c_try_link "$LINENO"; then :
  9585. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9586. lt_cv_shlibpath_overrides_runpath=yes
  9587. fi
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. LDFLAGS=$save_LDFLAGS
  9592. libdir=$save_libdir
  9593. fi
  9594. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9595. # This implies no fast_install, which is unacceptable.
  9596. # Some rework will be needed to allow for fast_install
  9597. # before this can be enabled.
  9598. hardcode_into_libs=yes
  9599. # Add ABI-specific directories to the system library path.
  9600. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9601. # Ideally, we could use ldconfig to report *all* directores which are
  9602. # searched for libraries, however this is still not possible. Aside from not
  9603. # being certain /sbin/ldconfig is available, command
  9604. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9605. # even though it is searched at run-time. Try to do the best guess by
  9606. # appending ld.so.conf contents (and includes) to the search path.
  9607. if test -f /etc/ld.so.conf; then
  9608. 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' ' '`
  9609. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9610. fi
  9611. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9612. # powerpc, because MkLinux only supported shared libraries with the
  9613. # GNU dynamic linker. Since this was broken with cross compilers,
  9614. # most powerpc-linux boxes support dynamic linking these days and
  9615. # people can always --disable-shared, the test was removed, and we
  9616. # assume the GNU/Linux dynamic linker is in use.
  9617. dynamic_linker='GNU/Linux ld.so'
  9618. ;;
  9619. netbsd*)
  9620. version_type=sunos
  9621. need_lib_prefix=no
  9622. need_version=no
  9623. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9624. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9625. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9626. dynamic_linker='NetBSD (a.out) ld.so'
  9627. else
  9628. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9629. soname_spec='$libname$release$shared_ext$major'
  9630. dynamic_linker='NetBSD ld.elf_so'
  9631. fi
  9632. shlibpath_var=LD_LIBRARY_PATH
  9633. shlibpath_overrides_runpath=yes
  9634. hardcode_into_libs=yes
  9635. ;;
  9636. newsos6)
  9637. version_type=linux # correct to gnu/linux during the next big refactor
  9638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9639. shlibpath_var=LD_LIBRARY_PATH
  9640. shlibpath_overrides_runpath=yes
  9641. ;;
  9642. *nto* | *qnx*)
  9643. version_type=qnx
  9644. need_lib_prefix=no
  9645. need_version=no
  9646. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9647. soname_spec='$libname$release$shared_ext$major'
  9648. shlibpath_var=LD_LIBRARY_PATH
  9649. shlibpath_overrides_runpath=no
  9650. hardcode_into_libs=yes
  9651. dynamic_linker='ldqnx.so'
  9652. ;;
  9653. openbsd* | bitrig*)
  9654. version_type=sunos
  9655. sys_lib_dlsearch_path_spec=/usr/lib
  9656. need_lib_prefix=no
  9657. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9658. need_version=no
  9659. else
  9660. need_version=yes
  9661. fi
  9662. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9663. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. shlibpath_overrides_runpath=yes
  9666. ;;
  9667. os2*)
  9668. libname_spec='$name'
  9669. shrext_cmds=.dll
  9670. need_lib_prefix=no
  9671. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9672. # SDL customization: removed versioning support.
  9673. # version_type=windows
  9674. # need_version=no
  9675. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9676. # v=$($ECHO $release$versuffix | tr -d .-);
  9677. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9678. # $ECHO $n$v`$shared_ext'
  9679. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9680. library_names_spec='${libname}_dll.$libext'
  9681. dynamic_linker='OS/2 ld.exe'
  9682. shlibpath_var=BEGINLIBPATH
  9683. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9684. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9685. postinstall_cmds='base_file=`basename \$file`~
  9686. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9687. dldir=$destdir/`dirname \$dlpath`~
  9688. test -d \$dldir || mkdir -p \$dldir~
  9689. $install_prog $dir/$dlname \$dldir/$dlname~
  9690. chmod a+x \$dldir/$dlname~
  9691. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9692. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9693. fi'
  9694. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9695. dlpath=$dir/\$dldll~
  9696. $RM \$dlpath'
  9697. ;;
  9698. osf3* | osf4* | osf5*)
  9699. version_type=osf
  9700. need_lib_prefix=no
  9701. need_version=no
  9702. soname_spec='$libname$release$shared_ext$major'
  9703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9704. shlibpath_var=LD_LIBRARY_PATH
  9705. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9706. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9707. ;;
  9708. rdos*)
  9709. dynamic_linker=no
  9710. ;;
  9711. solaris*)
  9712. version_type=linux # correct to gnu/linux during the next big refactor
  9713. need_lib_prefix=no
  9714. need_version=no
  9715. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9716. soname_spec='$libname$release$shared_ext$major'
  9717. shlibpath_var=LD_LIBRARY_PATH
  9718. shlibpath_overrides_runpath=yes
  9719. hardcode_into_libs=yes
  9720. # ldd complains unless libraries are executable
  9721. postinstall_cmds='chmod +x $lib'
  9722. ;;
  9723. sunos4*)
  9724. version_type=sunos
  9725. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9726. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=yes
  9729. if test yes = "$with_gnu_ld"; then
  9730. need_lib_prefix=no
  9731. fi
  9732. need_version=yes
  9733. ;;
  9734. sysv4 | sysv4.3*)
  9735. version_type=linux # correct to gnu/linux during the next big refactor
  9736. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9737. soname_spec='$libname$release$shared_ext$major'
  9738. shlibpath_var=LD_LIBRARY_PATH
  9739. case $host_vendor in
  9740. sni)
  9741. shlibpath_overrides_runpath=no
  9742. need_lib_prefix=no
  9743. runpath_var=LD_RUN_PATH
  9744. ;;
  9745. siemens)
  9746. need_lib_prefix=no
  9747. ;;
  9748. motorola)
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. shlibpath_overrides_runpath=no
  9752. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9753. ;;
  9754. esac
  9755. ;;
  9756. sysv4*MP*)
  9757. if test -d /usr/nec; then
  9758. version_type=linux # correct to gnu/linux during the next big refactor
  9759. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9760. soname_spec='$libname$shared_ext.$major'
  9761. shlibpath_var=LD_LIBRARY_PATH
  9762. fi
  9763. ;;
  9764. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9765. version_type=sco
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9769. soname_spec='$libname$release$shared_ext$major'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. shlibpath_overrides_runpath=yes
  9772. hardcode_into_libs=yes
  9773. if test yes = "$with_gnu_ld"; then
  9774. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9775. else
  9776. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9777. case $host_os in
  9778. sco3.2v5*)
  9779. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9780. ;;
  9781. esac
  9782. fi
  9783. sys_lib_dlsearch_path_spec='/usr/lib'
  9784. ;;
  9785. tpf*)
  9786. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9787. version_type=linux # correct to gnu/linux during the next big refactor
  9788. need_lib_prefix=no
  9789. need_version=no
  9790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9791. shlibpath_var=LD_LIBRARY_PATH
  9792. shlibpath_overrides_runpath=no
  9793. hardcode_into_libs=yes
  9794. ;;
  9795. uts4*)
  9796. version_type=linux # correct to gnu/linux during the next big refactor
  9797. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9798. soname_spec='$libname$release$shared_ext$major'
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. ;;
  9801. *)
  9802. dynamic_linker=no
  9803. ;;
  9804. esac
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9806. $as_echo "$dynamic_linker" >&6; }
  9807. test no = "$dynamic_linker" && can_build_shared=no
  9808. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9809. if test yes = "$GCC"; then
  9810. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9811. fi
  9812. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9813. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9814. fi
  9815. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9816. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9817. fi
  9818. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9819. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9820. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9821. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9822. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9823. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9825. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9826. hardcode_action=
  9827. if test -n "$hardcode_libdir_flag_spec" ||
  9828. test -n "$runpath_var" ||
  9829. test yes = "$hardcode_automatic"; then
  9830. # We can hardcode non-existent directories.
  9831. if test no != "$hardcode_direct" &&
  9832. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9833. # have to relink, otherwise we might link with an installed library
  9834. # when we should be linking with a yet-to-be-installed one
  9835. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9836. test no != "$hardcode_minus_L"; then
  9837. # Linking always hardcodes the temporary library directory.
  9838. hardcode_action=relink
  9839. else
  9840. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9841. hardcode_action=immediate
  9842. fi
  9843. else
  9844. # We cannot hardcode anything, or else we can only hardcode existing
  9845. # directories.
  9846. hardcode_action=unsupported
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9849. $as_echo "$hardcode_action" >&6; }
  9850. if test relink = "$hardcode_action" ||
  9851. test yes = "$inherit_rpath"; then
  9852. # Fast installation is not supported
  9853. enable_fast_install=no
  9854. elif test yes = "$shlibpath_overrides_runpath" ||
  9855. test no = "$enable_shared"; then
  9856. # Fast installation is not necessary
  9857. enable_fast_install=needless
  9858. fi
  9859. if test yes != "$enable_dlopen"; then
  9860. enable_dlopen=unknown
  9861. enable_dlopen_self=unknown
  9862. enable_dlopen_self_static=unknown
  9863. else
  9864. lt_cv_dlopen=no
  9865. lt_cv_dlopen_libs=
  9866. case $host_os in
  9867. beos*)
  9868. lt_cv_dlopen=load_add_on
  9869. lt_cv_dlopen_libs=
  9870. lt_cv_dlopen_self=yes
  9871. ;;
  9872. mingw* | pw32* | cegcc*)
  9873. lt_cv_dlopen=LoadLibrary
  9874. lt_cv_dlopen_libs=
  9875. ;;
  9876. cygwin*)
  9877. lt_cv_dlopen=dlopen
  9878. lt_cv_dlopen_libs=
  9879. ;;
  9880. darwin*)
  9881. # if libdl is installed we need to link against it
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9883. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9884. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9885. $as_echo_n "(cached) " >&6
  9886. else
  9887. ac_check_lib_save_LIBS=$LIBS
  9888. LIBS="-ldl $LIBS"
  9889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9890. /* end confdefs.h. */
  9891. /* Override any GCC internal prototype to avoid an error.
  9892. Use char because int might match the return type of a GCC
  9893. builtin and then its argument prototype would still apply. */
  9894. #ifdef __cplusplus
  9895. extern "C"
  9896. #endif
  9897. char dlopen ();
  9898. int
  9899. main ()
  9900. {
  9901. return dlopen ();
  9902. ;
  9903. return 0;
  9904. }
  9905. _ACEOF
  9906. if ac_fn_c_try_link "$LINENO"; then :
  9907. ac_cv_lib_dl_dlopen=yes
  9908. else
  9909. ac_cv_lib_dl_dlopen=no
  9910. fi
  9911. rm -f core conftest.err conftest.$ac_objext \
  9912. conftest$ac_exeext conftest.$ac_ext
  9913. LIBS=$ac_check_lib_save_LIBS
  9914. fi
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9916. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9917. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9918. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9919. else
  9920. lt_cv_dlopen=dyld
  9921. lt_cv_dlopen_libs=
  9922. lt_cv_dlopen_self=yes
  9923. fi
  9924. ;;
  9925. tpf*)
  9926. # Don't try to run any link tests for TPF. We know it's impossible
  9927. # because TPF is a cross-compiler, and we know how we open DSOs.
  9928. lt_cv_dlopen=dlopen
  9929. lt_cv_dlopen_libs=
  9930. lt_cv_dlopen_self=no
  9931. ;;
  9932. *)
  9933. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9934. if test "x$ac_cv_func_shl_load" = xyes; then :
  9935. lt_cv_dlopen=shl_load
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9938. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9939. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. ac_check_lib_save_LIBS=$LIBS
  9943. LIBS="-ldld $LIBS"
  9944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9945. /* end confdefs.h. */
  9946. /* Override any GCC internal prototype to avoid an error.
  9947. Use char because int might match the return type of a GCC
  9948. builtin and then its argument prototype would still apply. */
  9949. #ifdef __cplusplus
  9950. extern "C"
  9951. #endif
  9952. char shl_load ();
  9953. int
  9954. main ()
  9955. {
  9956. return shl_load ();
  9957. ;
  9958. return 0;
  9959. }
  9960. _ACEOF
  9961. if ac_fn_c_try_link "$LINENO"; then :
  9962. ac_cv_lib_dld_shl_load=yes
  9963. else
  9964. ac_cv_lib_dld_shl_load=no
  9965. fi
  9966. rm -f core conftest.err conftest.$ac_objext \
  9967. conftest$ac_exeext conftest.$ac_ext
  9968. LIBS=$ac_check_lib_save_LIBS
  9969. fi
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9971. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9972. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9973. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9974. else
  9975. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9976. if test "x$ac_cv_func_dlopen" = xyes; then :
  9977. lt_cv_dlopen=dlopen
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9980. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9981. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9982. $as_echo_n "(cached) " >&6
  9983. else
  9984. ac_check_lib_save_LIBS=$LIBS
  9985. LIBS="-ldl $LIBS"
  9986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9987. /* end confdefs.h. */
  9988. /* Override any GCC internal prototype to avoid an error.
  9989. Use char because int might match the return type of a GCC
  9990. builtin and then its argument prototype would still apply. */
  9991. #ifdef __cplusplus
  9992. extern "C"
  9993. #endif
  9994. char dlopen ();
  9995. int
  9996. main ()
  9997. {
  9998. return dlopen ();
  9999. ;
  10000. return 0;
  10001. }
  10002. _ACEOF
  10003. if ac_fn_c_try_link "$LINENO"; then :
  10004. ac_cv_lib_dl_dlopen=yes
  10005. else
  10006. ac_cv_lib_dl_dlopen=no
  10007. fi
  10008. rm -f core conftest.err conftest.$ac_objext \
  10009. conftest$ac_exeext conftest.$ac_ext
  10010. LIBS=$ac_check_lib_save_LIBS
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10013. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10014. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10015. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10018. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10019. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10020. $as_echo_n "(cached) " >&6
  10021. else
  10022. ac_check_lib_save_LIBS=$LIBS
  10023. LIBS="-lsvld $LIBS"
  10024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10025. /* end confdefs.h. */
  10026. /* Override any GCC internal prototype to avoid an error.
  10027. Use char because int might match the return type of a GCC
  10028. builtin and then its argument prototype would still apply. */
  10029. #ifdef __cplusplus
  10030. extern "C"
  10031. #endif
  10032. char dlopen ();
  10033. int
  10034. main ()
  10035. {
  10036. return dlopen ();
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_c_try_link "$LINENO"; then :
  10042. ac_cv_lib_svld_dlopen=yes
  10043. else
  10044. ac_cv_lib_svld_dlopen=no
  10045. fi
  10046. rm -f core conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. LIBS=$ac_check_lib_save_LIBS
  10049. fi
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10051. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10052. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10053. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10054. else
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10056. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10057. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. ac_check_lib_save_LIBS=$LIBS
  10061. LIBS="-ldld $LIBS"
  10062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10063. /* end confdefs.h. */
  10064. /* Override any GCC internal prototype to avoid an error.
  10065. Use char because int might match the return type of a GCC
  10066. builtin and then its argument prototype would still apply. */
  10067. #ifdef __cplusplus
  10068. extern "C"
  10069. #endif
  10070. char dld_link ();
  10071. int
  10072. main ()
  10073. {
  10074. return dld_link ();
  10075. ;
  10076. return 0;
  10077. }
  10078. _ACEOF
  10079. if ac_fn_c_try_link "$LINENO"; then :
  10080. ac_cv_lib_dld_dld_link=yes
  10081. else
  10082. ac_cv_lib_dld_dld_link=no
  10083. fi
  10084. rm -f core conftest.err conftest.$ac_objext \
  10085. conftest$ac_exeext conftest.$ac_ext
  10086. LIBS=$ac_check_lib_save_LIBS
  10087. fi
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10089. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10090. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10091. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. fi
  10097. fi
  10098. ;;
  10099. esac
  10100. if test no = "$lt_cv_dlopen"; then
  10101. enable_dlopen=no
  10102. else
  10103. enable_dlopen=yes
  10104. fi
  10105. case $lt_cv_dlopen in
  10106. dlopen)
  10107. save_CPPFLAGS=$CPPFLAGS
  10108. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10109. save_LDFLAGS=$LDFLAGS
  10110. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10111. save_LIBS=$LIBS
  10112. LIBS="$lt_cv_dlopen_libs $LIBS"
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10114. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10115. if ${lt_cv_dlopen_self+:} false; then :
  10116. $as_echo_n "(cached) " >&6
  10117. else
  10118. if test yes = "$cross_compiling"; then :
  10119. lt_cv_dlopen_self=cross
  10120. else
  10121. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10122. lt_status=$lt_dlunknown
  10123. cat > conftest.$ac_ext <<_LT_EOF
  10124. #line $LINENO "configure"
  10125. #include "confdefs.h"
  10126. #if HAVE_DLFCN_H
  10127. #include <dlfcn.h>
  10128. #endif
  10129. #include <stdio.h>
  10130. #ifdef RTLD_GLOBAL
  10131. # define LT_DLGLOBAL RTLD_GLOBAL
  10132. #else
  10133. # ifdef DL_GLOBAL
  10134. # define LT_DLGLOBAL DL_GLOBAL
  10135. # else
  10136. # define LT_DLGLOBAL 0
  10137. # endif
  10138. #endif
  10139. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10140. find out it does not work in some platform. */
  10141. #ifndef LT_DLLAZY_OR_NOW
  10142. # ifdef RTLD_LAZY
  10143. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10144. # else
  10145. # ifdef DL_LAZY
  10146. # define LT_DLLAZY_OR_NOW DL_LAZY
  10147. # else
  10148. # ifdef RTLD_NOW
  10149. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10150. # else
  10151. # ifdef DL_NOW
  10152. # define LT_DLLAZY_OR_NOW DL_NOW
  10153. # else
  10154. # define LT_DLLAZY_OR_NOW 0
  10155. # endif
  10156. # endif
  10157. # endif
  10158. # endif
  10159. #endif
  10160. /* When -fvisibility=hidden is used, assume the code has been annotated
  10161. correspondingly for the symbols needed. */
  10162. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10163. int fnord () __attribute__((visibility("default")));
  10164. #endif
  10165. int fnord () { return 42; }
  10166. int main ()
  10167. {
  10168. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10169. int status = $lt_dlunknown;
  10170. if (self)
  10171. {
  10172. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10173. else
  10174. {
  10175. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10176. else puts (dlerror ());
  10177. }
  10178. /* dlclose (self); */
  10179. }
  10180. else
  10181. puts (dlerror ());
  10182. return status;
  10183. }
  10184. _LT_EOF
  10185. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10186. (eval $ac_link) 2>&5
  10187. ac_status=$?
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10189. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10190. (./conftest; exit; ) >&5 2>/dev/null
  10191. lt_status=$?
  10192. case x$lt_status in
  10193. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10194. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10195. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10196. esac
  10197. else :
  10198. # compilation failed
  10199. lt_cv_dlopen_self=no
  10200. fi
  10201. fi
  10202. rm -fr conftest*
  10203. fi
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10205. $as_echo "$lt_cv_dlopen_self" >&6; }
  10206. if test yes = "$lt_cv_dlopen_self"; then
  10207. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10209. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10210. if ${lt_cv_dlopen_self_static+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. if test yes = "$cross_compiling"; then :
  10214. lt_cv_dlopen_self_static=cross
  10215. else
  10216. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10217. lt_status=$lt_dlunknown
  10218. cat > conftest.$ac_ext <<_LT_EOF
  10219. #line $LINENO "configure"
  10220. #include "confdefs.h"
  10221. #if HAVE_DLFCN_H
  10222. #include <dlfcn.h>
  10223. #endif
  10224. #include <stdio.h>
  10225. #ifdef RTLD_GLOBAL
  10226. # define LT_DLGLOBAL RTLD_GLOBAL
  10227. #else
  10228. # ifdef DL_GLOBAL
  10229. # define LT_DLGLOBAL DL_GLOBAL
  10230. # else
  10231. # define LT_DLGLOBAL 0
  10232. # endif
  10233. #endif
  10234. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10235. find out it does not work in some platform. */
  10236. #ifndef LT_DLLAZY_OR_NOW
  10237. # ifdef RTLD_LAZY
  10238. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10239. # else
  10240. # ifdef DL_LAZY
  10241. # define LT_DLLAZY_OR_NOW DL_LAZY
  10242. # else
  10243. # ifdef RTLD_NOW
  10244. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10245. # else
  10246. # ifdef DL_NOW
  10247. # define LT_DLLAZY_OR_NOW DL_NOW
  10248. # else
  10249. # define LT_DLLAZY_OR_NOW 0
  10250. # endif
  10251. # endif
  10252. # endif
  10253. # endif
  10254. #endif
  10255. /* When -fvisibility=hidden is used, assume the code has been annotated
  10256. correspondingly for the symbols needed. */
  10257. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10258. int fnord () __attribute__((visibility("default")));
  10259. #endif
  10260. int fnord () { return 42; }
  10261. int main ()
  10262. {
  10263. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10264. int status = $lt_dlunknown;
  10265. if (self)
  10266. {
  10267. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10268. else
  10269. {
  10270. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10271. else puts (dlerror ());
  10272. }
  10273. /* dlclose (self); */
  10274. }
  10275. else
  10276. puts (dlerror ());
  10277. return status;
  10278. }
  10279. _LT_EOF
  10280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10281. (eval $ac_link) 2>&5
  10282. ac_status=$?
  10283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10284. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10285. (./conftest; exit; ) >&5 2>/dev/null
  10286. lt_status=$?
  10287. case x$lt_status in
  10288. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10289. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10290. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10291. esac
  10292. else :
  10293. # compilation failed
  10294. lt_cv_dlopen_self_static=no
  10295. fi
  10296. fi
  10297. rm -fr conftest*
  10298. fi
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10300. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10301. fi
  10302. CPPFLAGS=$save_CPPFLAGS
  10303. LDFLAGS=$save_LDFLAGS
  10304. LIBS=$save_LIBS
  10305. ;;
  10306. esac
  10307. case $lt_cv_dlopen_self in
  10308. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10309. *) enable_dlopen_self=unknown ;;
  10310. esac
  10311. case $lt_cv_dlopen_self_static in
  10312. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10313. *) enable_dlopen_self_static=unknown ;;
  10314. esac
  10315. fi
  10316. striplib=
  10317. old_striplib=
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10319. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10320. if test -z "$STRIP"; then
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. else
  10324. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10325. old_striplib="$STRIP --strip-debug"
  10326. striplib="$STRIP --strip-unneeded"
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10328. $as_echo "yes" >&6; }
  10329. else
  10330. case $host_os in
  10331. darwin*)
  10332. # FIXME - insert some real tests, host_os isn't really good enough
  10333. striplib="$STRIP -x"
  10334. old_striplib="$STRIP -S"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10336. $as_echo "yes" >&6; }
  10337. ;;
  10338. freebsd*)
  10339. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10340. old_striplib="$STRIP --strip-debug"
  10341. striplib="$STRIP --strip-unneeded"
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10343. $as_echo "yes" >&6; }
  10344. else
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10346. $as_echo "no" >&6; }
  10347. fi
  10348. ;;
  10349. *)
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. ;;
  10353. esac
  10354. fi
  10355. fi
  10356. # Report what library types will actually be built
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10358. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10360. $as_echo "$can_build_shared" >&6; }
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10362. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10363. test no = "$can_build_shared" && enable_shared=no
  10364. # On AIX, shared libraries and static libraries use the same namespace, and
  10365. # are all built from PIC.
  10366. case $host_os in
  10367. aix3*)
  10368. test yes = "$enable_shared" && enable_static=no
  10369. if test -n "$RANLIB"; then
  10370. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10371. postinstall_cmds='$RANLIB $lib'
  10372. fi
  10373. ;;
  10374. aix[4-9]*)
  10375. if test ia64 != "$host_cpu"; then
  10376. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10377. yes,aix,yes) ;; # shared object as lib.so file only
  10378. yes,svr4,*) ;; # shared object as lib.so archive member only
  10379. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10380. esac
  10381. fi
  10382. ;;
  10383. esac
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10385. $as_echo "$enable_shared" >&6; }
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10387. $as_echo_n "checking whether to build static libraries... " >&6; }
  10388. # Make sure either enable_shared or enable_static is yes.
  10389. test yes = "$enable_shared" || enable_static=yes
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10391. $as_echo "$enable_static" >&6; }
  10392. fi
  10393. ac_ext=c
  10394. ac_cpp='$CPP $CPPFLAGS'
  10395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10398. CC=$lt_save_CC
  10399. ac_config_commands="$ac_config_commands libtool"
  10400. # Only expand once:
  10401. if test -n "$ac_tool_prefix"; then
  10402. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10403. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10405. $as_echo_n "checking for $ac_word... " >&6; }
  10406. if ${ac_cv_prog_RC+:} false; then :
  10407. $as_echo_n "(cached) " >&6
  10408. else
  10409. if test -n "$RC"; then
  10410. ac_cv_prog_RC="$RC" # Let the user override the test.
  10411. else
  10412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10413. for as_dir in $PATH
  10414. do
  10415. IFS=$as_save_IFS
  10416. test -z "$as_dir" && as_dir=.
  10417. for ac_exec_ext in '' $ac_executable_extensions; do
  10418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10419. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10421. break 2
  10422. fi
  10423. done
  10424. done
  10425. IFS=$as_save_IFS
  10426. fi
  10427. fi
  10428. RC=$ac_cv_prog_RC
  10429. if test -n "$RC"; then
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10431. $as_echo "$RC" >&6; }
  10432. else
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10434. $as_echo "no" >&6; }
  10435. fi
  10436. fi
  10437. if test -z "$ac_cv_prog_RC"; then
  10438. ac_ct_RC=$RC
  10439. # Extract the first word of "windres", so it can be a program name with args.
  10440. set dummy windres; ac_word=$2
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10442. $as_echo_n "checking for $ac_word... " >&6; }
  10443. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10444. $as_echo_n "(cached) " >&6
  10445. else
  10446. if test -n "$ac_ct_RC"; then
  10447. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10448. else
  10449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10450. for as_dir in $PATH
  10451. do
  10452. IFS=$as_save_IFS
  10453. test -z "$as_dir" && as_dir=.
  10454. for ac_exec_ext in '' $ac_executable_extensions; do
  10455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10456. ac_cv_prog_ac_ct_RC="windres"
  10457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10458. break 2
  10459. fi
  10460. done
  10461. done
  10462. IFS=$as_save_IFS
  10463. fi
  10464. fi
  10465. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10466. if test -n "$ac_ct_RC"; then
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10468. $as_echo "$ac_ct_RC" >&6; }
  10469. else
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10471. $as_echo "no" >&6; }
  10472. fi
  10473. if test "x$ac_ct_RC" = x; then
  10474. RC=""
  10475. else
  10476. case $cross_compiling:$ac_tool_warned in
  10477. yes:)
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10479. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10480. ac_tool_warned=yes ;;
  10481. esac
  10482. RC=$ac_ct_RC
  10483. fi
  10484. else
  10485. RC="$ac_cv_prog_RC"
  10486. fi
  10487. # Source file extension for RC test sources.
  10488. ac_ext=rc
  10489. # Object file extension for compiled RC test sources.
  10490. objext=o
  10491. objext_RC=$objext
  10492. # Code to be used in simple compile tests
  10493. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10494. # Code to be used in simple link tests
  10495. lt_simple_link_test_code=$lt_simple_compile_test_code
  10496. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10497. # If no C compiler was specified, use CC.
  10498. LTCC=${LTCC-"$CC"}
  10499. # If no C compiler flags were specified, use CFLAGS.
  10500. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10501. # Allow CC to be a program name with arguments.
  10502. compiler=$CC
  10503. # save warnings/boilerplate of simple test code
  10504. ac_outfile=conftest.$ac_objext
  10505. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10506. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10507. _lt_compiler_boilerplate=`cat conftest.err`
  10508. $RM conftest*
  10509. ac_outfile=conftest.$ac_objext
  10510. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10511. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10512. _lt_linker_boilerplate=`cat conftest.err`
  10513. $RM -r conftest*
  10514. # Allow CC to be a program name with arguments.
  10515. lt_save_CC=$CC
  10516. lt_save_CFLAGS=$CFLAGS
  10517. lt_save_GCC=$GCC
  10518. GCC=
  10519. CC=${RC-"windres"}
  10520. CFLAGS=
  10521. compiler=$CC
  10522. compiler_RC=$CC
  10523. func_cc_basename $compiler
  10524. cc_basename=$func_cc_basename_result
  10525. lt_cv_prog_compiler_c_o_RC=yes
  10526. if test -n "$compiler"; then
  10527. :
  10528. fi
  10529. GCC=$lt_save_GCC
  10530. ac_ext=c
  10531. ac_cpp='$CPP $CPPFLAGS'
  10532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10535. CC=$lt_save_CC
  10536. CFLAGS=$lt_save_CFLAGS
  10537. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10538. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10539. LT_REVISION=$SDL_INTERFACE_AGE
  10540. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10541. ac_ext=c
  10542. ac_cpp='$CPP $CPPFLAGS'
  10543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10546. if test -n "$ac_tool_prefix"; then
  10547. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10548. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10550. $as_echo_n "checking for $ac_word... " >&6; }
  10551. if ${ac_cv_prog_CC+:} false; then :
  10552. $as_echo_n "(cached) " >&6
  10553. else
  10554. if test -n "$CC"; then
  10555. ac_cv_prog_CC="$CC" # Let the user override the test.
  10556. else
  10557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10558. for as_dir in $PATH
  10559. do
  10560. IFS=$as_save_IFS
  10561. test -z "$as_dir" && as_dir=.
  10562. for ac_exec_ext in '' $ac_executable_extensions; do
  10563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10564. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10566. break 2
  10567. fi
  10568. done
  10569. done
  10570. IFS=$as_save_IFS
  10571. fi
  10572. fi
  10573. CC=$ac_cv_prog_CC
  10574. if test -n "$CC"; then
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10576. $as_echo "$CC" >&6; }
  10577. else
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10579. $as_echo "no" >&6; }
  10580. fi
  10581. fi
  10582. if test -z "$ac_cv_prog_CC"; then
  10583. ac_ct_CC=$CC
  10584. # Extract the first word of "gcc", so it can be a program name with args.
  10585. set dummy gcc; ac_word=$2
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10587. $as_echo_n "checking for $ac_word... " >&6; }
  10588. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. if test -n "$ac_ct_CC"; then
  10592. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10593. else
  10594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10595. for as_dir in $PATH
  10596. do
  10597. IFS=$as_save_IFS
  10598. test -z "$as_dir" && as_dir=.
  10599. for ac_exec_ext in '' $ac_executable_extensions; do
  10600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10601. ac_cv_prog_ac_ct_CC="gcc"
  10602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10603. break 2
  10604. fi
  10605. done
  10606. done
  10607. IFS=$as_save_IFS
  10608. fi
  10609. fi
  10610. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10611. if test -n "$ac_ct_CC"; then
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10613. $as_echo "$ac_ct_CC" >&6; }
  10614. else
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10616. $as_echo "no" >&6; }
  10617. fi
  10618. if test "x$ac_ct_CC" = x; then
  10619. CC=""
  10620. else
  10621. case $cross_compiling:$ac_tool_warned in
  10622. yes:)
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10625. ac_tool_warned=yes ;;
  10626. esac
  10627. CC=$ac_ct_CC
  10628. fi
  10629. else
  10630. CC="$ac_cv_prog_CC"
  10631. fi
  10632. if test -z "$CC"; then
  10633. if test -n "$ac_tool_prefix"; then
  10634. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10635. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10637. $as_echo_n "checking for $ac_word... " >&6; }
  10638. if ${ac_cv_prog_CC+:} false; then :
  10639. $as_echo_n "(cached) " >&6
  10640. else
  10641. if test -n "$CC"; then
  10642. ac_cv_prog_CC="$CC" # Let the user override the test.
  10643. else
  10644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10645. for as_dir in $PATH
  10646. do
  10647. IFS=$as_save_IFS
  10648. test -z "$as_dir" && as_dir=.
  10649. for ac_exec_ext in '' $ac_executable_extensions; do
  10650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10651. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10653. break 2
  10654. fi
  10655. done
  10656. done
  10657. IFS=$as_save_IFS
  10658. fi
  10659. fi
  10660. CC=$ac_cv_prog_CC
  10661. if test -n "$CC"; then
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10663. $as_echo "$CC" >&6; }
  10664. else
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10666. $as_echo "no" >&6; }
  10667. fi
  10668. fi
  10669. fi
  10670. if test -z "$CC"; then
  10671. # Extract the first word of "cc", so it can be a program name with args.
  10672. set dummy cc; ac_word=$2
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10674. $as_echo_n "checking for $ac_word... " >&6; }
  10675. if ${ac_cv_prog_CC+:} false; then :
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. if test -n "$CC"; then
  10679. ac_cv_prog_CC="$CC" # Let the user override the test.
  10680. else
  10681. ac_prog_rejected=no
  10682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10683. for as_dir in $PATH
  10684. do
  10685. IFS=$as_save_IFS
  10686. test -z "$as_dir" && as_dir=.
  10687. for ac_exec_ext in '' $ac_executable_extensions; do
  10688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10689. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10690. ac_prog_rejected=yes
  10691. continue
  10692. fi
  10693. ac_cv_prog_CC="cc"
  10694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10695. break 2
  10696. fi
  10697. done
  10698. done
  10699. IFS=$as_save_IFS
  10700. if test $ac_prog_rejected = yes; then
  10701. # We found a bogon in the path, so make sure we never use it.
  10702. set dummy $ac_cv_prog_CC
  10703. shift
  10704. if test $# != 0; then
  10705. # We chose a different compiler from the bogus one.
  10706. # However, it has the same basename, so the bogon will be chosen
  10707. # first if we set CC to just the basename; use the full file name.
  10708. shift
  10709. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10710. fi
  10711. fi
  10712. fi
  10713. fi
  10714. CC=$ac_cv_prog_CC
  10715. if test -n "$CC"; then
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10717. $as_echo "$CC" >&6; }
  10718. else
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10720. $as_echo "no" >&6; }
  10721. fi
  10722. fi
  10723. if test -z "$CC"; then
  10724. if test -n "$ac_tool_prefix"; then
  10725. for ac_prog in cl.exe
  10726. do
  10727. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10728. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10730. $as_echo_n "checking for $ac_word... " >&6; }
  10731. if ${ac_cv_prog_CC+:} false; then :
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. if test -n "$CC"; then
  10735. ac_cv_prog_CC="$CC" # Let the user override the test.
  10736. else
  10737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10738. for as_dir in $PATH
  10739. do
  10740. IFS=$as_save_IFS
  10741. test -z "$as_dir" && as_dir=.
  10742. for ac_exec_ext in '' $ac_executable_extensions; do
  10743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10744. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10746. break 2
  10747. fi
  10748. done
  10749. done
  10750. IFS=$as_save_IFS
  10751. fi
  10752. fi
  10753. CC=$ac_cv_prog_CC
  10754. if test -n "$CC"; then
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10756. $as_echo "$CC" >&6; }
  10757. else
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10759. $as_echo "no" >&6; }
  10760. fi
  10761. test -n "$CC" && break
  10762. done
  10763. fi
  10764. if test -z "$CC"; then
  10765. ac_ct_CC=$CC
  10766. for ac_prog in cl.exe
  10767. do
  10768. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10769. set dummy $ac_prog; ac_word=$2
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10771. $as_echo_n "checking for $ac_word... " >&6; }
  10772. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10773. $as_echo_n "(cached) " >&6
  10774. else
  10775. if test -n "$ac_ct_CC"; then
  10776. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10777. else
  10778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10779. for as_dir in $PATH
  10780. do
  10781. IFS=$as_save_IFS
  10782. test -z "$as_dir" && as_dir=.
  10783. for ac_exec_ext in '' $ac_executable_extensions; do
  10784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10785. ac_cv_prog_ac_ct_CC="$ac_prog"
  10786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10787. break 2
  10788. fi
  10789. done
  10790. done
  10791. IFS=$as_save_IFS
  10792. fi
  10793. fi
  10794. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10795. if test -n "$ac_ct_CC"; then
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10797. $as_echo "$ac_ct_CC" >&6; }
  10798. else
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10800. $as_echo "no" >&6; }
  10801. fi
  10802. test -n "$ac_ct_CC" && break
  10803. done
  10804. if test "x$ac_ct_CC" = x; then
  10805. CC=""
  10806. else
  10807. case $cross_compiling:$ac_tool_warned in
  10808. yes:)
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10811. ac_tool_warned=yes ;;
  10812. esac
  10813. CC=$ac_ct_CC
  10814. fi
  10815. fi
  10816. fi
  10817. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10818. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10819. as_fn_error $? "no acceptable C compiler found in \$PATH
  10820. See \`config.log' for more details" "$LINENO" 5; }
  10821. # Provide some information about the compiler.
  10822. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10823. set X $ac_compile
  10824. ac_compiler=$2
  10825. for ac_option in --version -v -V -qversion; do
  10826. { { ac_try="$ac_compiler $ac_option >&5"
  10827. case "(($ac_try" in
  10828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10829. *) ac_try_echo=$ac_try;;
  10830. esac
  10831. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10832. $as_echo "$ac_try_echo"; } >&5
  10833. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10834. ac_status=$?
  10835. if test -s conftest.err; then
  10836. sed '10a\
  10837. ... rest of stderr output deleted ...
  10838. 10q' conftest.err >conftest.er1
  10839. cat conftest.er1 >&5
  10840. fi
  10841. rm -f conftest.er1 conftest.err
  10842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10843. test $ac_status = 0; }
  10844. done
  10845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10846. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10847. if ${ac_cv_c_compiler_gnu+:} false; then :
  10848. $as_echo_n "(cached) " >&6
  10849. else
  10850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10851. /* end confdefs.h. */
  10852. int
  10853. main ()
  10854. {
  10855. #ifndef __GNUC__
  10856. choke me
  10857. #endif
  10858. ;
  10859. return 0;
  10860. }
  10861. _ACEOF
  10862. if ac_fn_c_try_compile "$LINENO"; then :
  10863. ac_compiler_gnu=yes
  10864. else
  10865. ac_compiler_gnu=no
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10868. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10871. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10872. if test $ac_compiler_gnu = yes; then
  10873. GCC=yes
  10874. else
  10875. GCC=
  10876. fi
  10877. ac_test_CFLAGS=${CFLAGS+set}
  10878. ac_save_CFLAGS=$CFLAGS
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10880. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10881. if ${ac_cv_prog_cc_g+:} false; then :
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. ac_save_c_werror_flag=$ac_c_werror_flag
  10885. ac_c_werror_flag=yes
  10886. ac_cv_prog_cc_g=no
  10887. CFLAGS="-g"
  10888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10889. /* end confdefs.h. */
  10890. int
  10891. main ()
  10892. {
  10893. ;
  10894. return 0;
  10895. }
  10896. _ACEOF
  10897. if ac_fn_c_try_compile "$LINENO"; then :
  10898. ac_cv_prog_cc_g=yes
  10899. else
  10900. CFLAGS=""
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h. */
  10903. int
  10904. main ()
  10905. {
  10906. ;
  10907. return 0;
  10908. }
  10909. _ACEOF
  10910. if ac_fn_c_try_compile "$LINENO"; then :
  10911. else
  10912. ac_c_werror_flag=$ac_save_c_werror_flag
  10913. CFLAGS="-g"
  10914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10915. /* end confdefs.h. */
  10916. int
  10917. main ()
  10918. {
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. if ac_fn_c_try_compile "$LINENO"; then :
  10924. ac_cv_prog_cc_g=yes
  10925. fi
  10926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10927. fi
  10928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10929. fi
  10930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10931. ac_c_werror_flag=$ac_save_c_werror_flag
  10932. fi
  10933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10934. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10935. if test "$ac_test_CFLAGS" = set; then
  10936. CFLAGS=$ac_save_CFLAGS
  10937. elif test $ac_cv_prog_cc_g = yes; then
  10938. if test "$GCC" = yes; then
  10939. CFLAGS="-g -O2"
  10940. else
  10941. CFLAGS="-g"
  10942. fi
  10943. else
  10944. if test "$GCC" = yes; then
  10945. CFLAGS="-O2"
  10946. else
  10947. CFLAGS=
  10948. fi
  10949. fi
  10950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10951. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10952. if ${ac_cv_prog_cc_c89+:} false; then :
  10953. $as_echo_n "(cached) " >&6
  10954. else
  10955. ac_cv_prog_cc_c89=no
  10956. ac_save_CC=$CC
  10957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10958. /* end confdefs.h. */
  10959. #include <stdarg.h>
  10960. #include <stdio.h>
  10961. struct stat;
  10962. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10963. struct buf { int x; };
  10964. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10965. static char *e (p, i)
  10966. char **p;
  10967. int i;
  10968. {
  10969. return p[i];
  10970. }
  10971. static char *f (char * (*g) (char **, int), char **p, ...)
  10972. {
  10973. char *s;
  10974. va_list v;
  10975. va_start (v,p);
  10976. s = g (p, va_arg (v,int));
  10977. va_end (v);
  10978. return s;
  10979. }
  10980. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10981. function prototypes and stuff, but not '\xHH' hex character constants.
  10982. These don't provoke an error unfortunately, instead are silently treated
  10983. as 'x'. The following induces an error, until -std is added to get
  10984. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10985. array size at least. It's necessary to write '\x00'==0 to get something
  10986. that's true only with -std. */
  10987. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10988. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10989. inside strings and character constants. */
  10990. #define FOO(x) 'x'
  10991. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10992. int test (int i, double x);
  10993. struct s1 {int (*f) (int a);};
  10994. struct s2 {int (*f) (double a);};
  10995. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10996. int argc;
  10997. char **argv;
  10998. int
  10999. main ()
  11000. {
  11001. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11002. ;
  11003. return 0;
  11004. }
  11005. _ACEOF
  11006. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11007. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11008. do
  11009. CC="$ac_save_CC $ac_arg"
  11010. if ac_fn_c_try_compile "$LINENO"; then :
  11011. ac_cv_prog_cc_c89=$ac_arg
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext
  11014. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11015. done
  11016. rm -f conftest.$ac_ext
  11017. CC=$ac_save_CC
  11018. fi
  11019. # AC_CACHE_VAL
  11020. case "x$ac_cv_prog_cc_c89" in
  11021. x)
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11023. $as_echo "none needed" >&6; } ;;
  11024. xno)
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11026. $as_echo "unsupported" >&6; } ;;
  11027. *)
  11028. CC="$CC $ac_cv_prog_cc_c89"
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11030. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11031. esac
  11032. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11033. fi
  11034. ac_ext=c
  11035. ac_cpp='$CPP $CPPFLAGS'
  11036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11039. ac_ext=cpp
  11040. ac_cpp='$CXXCPP $CPPFLAGS'
  11041. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11042. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11043. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11044. if test -z "$CXX"; then
  11045. if test -n "$CCC"; then
  11046. CXX=$CCC
  11047. else
  11048. if test -n "$ac_tool_prefix"; then
  11049. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11050. do
  11051. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11052. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11054. $as_echo_n "checking for $ac_word... " >&6; }
  11055. if ${ac_cv_prog_CXX+:} false; then :
  11056. $as_echo_n "(cached) " >&6
  11057. else
  11058. if test -n "$CXX"; then
  11059. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11060. else
  11061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11062. for as_dir in $PATH
  11063. do
  11064. IFS=$as_save_IFS
  11065. test -z "$as_dir" && as_dir=.
  11066. for ac_exec_ext in '' $ac_executable_extensions; do
  11067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11068. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11070. break 2
  11071. fi
  11072. done
  11073. done
  11074. IFS=$as_save_IFS
  11075. fi
  11076. fi
  11077. CXX=$ac_cv_prog_CXX
  11078. if test -n "$CXX"; then
  11079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11080. $as_echo "$CXX" >&6; }
  11081. else
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11083. $as_echo "no" >&6; }
  11084. fi
  11085. test -n "$CXX" && break
  11086. done
  11087. fi
  11088. if test -z "$CXX"; then
  11089. ac_ct_CXX=$CXX
  11090. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11091. do
  11092. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11093. set dummy $ac_prog; ac_word=$2
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11095. $as_echo_n "checking for $ac_word... " >&6; }
  11096. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11097. $as_echo_n "(cached) " >&6
  11098. else
  11099. if test -n "$ac_ct_CXX"; then
  11100. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11101. else
  11102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11103. for as_dir in $PATH
  11104. do
  11105. IFS=$as_save_IFS
  11106. test -z "$as_dir" && as_dir=.
  11107. for ac_exec_ext in '' $ac_executable_extensions; do
  11108. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11109. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11111. break 2
  11112. fi
  11113. done
  11114. done
  11115. IFS=$as_save_IFS
  11116. fi
  11117. fi
  11118. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11119. if test -n "$ac_ct_CXX"; then
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11121. $as_echo "$ac_ct_CXX" >&6; }
  11122. else
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11124. $as_echo "no" >&6; }
  11125. fi
  11126. test -n "$ac_ct_CXX" && break
  11127. done
  11128. if test "x$ac_ct_CXX" = x; then
  11129. CXX="g++"
  11130. else
  11131. case $cross_compiling:$ac_tool_warned in
  11132. yes:)
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11134. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11135. ac_tool_warned=yes ;;
  11136. esac
  11137. CXX=$ac_ct_CXX
  11138. fi
  11139. fi
  11140. fi
  11141. fi
  11142. # Provide some information about the compiler.
  11143. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11144. set X $ac_compile
  11145. ac_compiler=$2
  11146. for ac_option in --version -v -V -qversion; do
  11147. { { ac_try="$ac_compiler $ac_option >&5"
  11148. case "(($ac_try" in
  11149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11150. *) ac_try_echo=$ac_try;;
  11151. esac
  11152. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11153. $as_echo "$ac_try_echo"; } >&5
  11154. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11155. ac_status=$?
  11156. if test -s conftest.err; then
  11157. sed '10a\
  11158. ... rest of stderr output deleted ...
  11159. 10q' conftest.err >conftest.er1
  11160. cat conftest.er1 >&5
  11161. fi
  11162. rm -f conftest.er1 conftest.err
  11163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11164. test $ac_status = 0; }
  11165. done
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11167. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11168. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11169. $as_echo_n "(cached) " >&6
  11170. else
  11171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11172. /* end confdefs.h. */
  11173. int
  11174. main ()
  11175. {
  11176. #ifndef __GNUC__
  11177. choke me
  11178. #endif
  11179. ;
  11180. return 0;
  11181. }
  11182. _ACEOF
  11183. if ac_fn_cxx_try_compile "$LINENO"; then :
  11184. ac_compiler_gnu=yes
  11185. else
  11186. ac_compiler_gnu=no
  11187. fi
  11188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11189. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11190. fi
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11192. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11193. if test $ac_compiler_gnu = yes; then
  11194. GXX=yes
  11195. else
  11196. GXX=
  11197. fi
  11198. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11199. ac_save_CXXFLAGS=$CXXFLAGS
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11201. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11202. if ${ac_cv_prog_cxx_g+:} false; then :
  11203. $as_echo_n "(cached) " >&6
  11204. else
  11205. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11206. ac_cxx_werror_flag=yes
  11207. ac_cv_prog_cxx_g=no
  11208. CXXFLAGS="-g"
  11209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11210. /* end confdefs.h. */
  11211. int
  11212. main ()
  11213. {
  11214. ;
  11215. return 0;
  11216. }
  11217. _ACEOF
  11218. if ac_fn_cxx_try_compile "$LINENO"; then :
  11219. ac_cv_prog_cxx_g=yes
  11220. else
  11221. CXXFLAGS=""
  11222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11223. /* end confdefs.h. */
  11224. int
  11225. main ()
  11226. {
  11227. ;
  11228. return 0;
  11229. }
  11230. _ACEOF
  11231. if ac_fn_cxx_try_compile "$LINENO"; then :
  11232. else
  11233. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11234. CXXFLAGS="-g"
  11235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11236. /* end confdefs.h. */
  11237. int
  11238. main ()
  11239. {
  11240. ;
  11241. return 0;
  11242. }
  11243. _ACEOF
  11244. if ac_fn_cxx_try_compile "$LINENO"; then :
  11245. ac_cv_prog_cxx_g=yes
  11246. fi
  11247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11248. fi
  11249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11250. fi
  11251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11252. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11253. fi
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11255. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11256. if test "$ac_test_CXXFLAGS" = set; then
  11257. CXXFLAGS=$ac_save_CXXFLAGS
  11258. elif test $ac_cv_prog_cxx_g = yes; then
  11259. if test "$GXX" = yes; then
  11260. CXXFLAGS="-g -O2"
  11261. else
  11262. CXXFLAGS="-g"
  11263. fi
  11264. else
  11265. if test "$GXX" = yes; then
  11266. CXXFLAGS="-O2"
  11267. else
  11268. CXXFLAGS=
  11269. fi
  11270. fi
  11271. ac_ext=c
  11272. ac_cpp='$CPP $CPPFLAGS'
  11273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11276. func_stripname_cnf ()
  11277. {
  11278. case $2 in
  11279. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11280. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11281. esac
  11282. } # func_stripname_cnf
  11283. if test -n "$CXX" && ( test no != "$CXX" &&
  11284. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11285. (test g++ != "$CXX"))); then
  11286. ac_ext=cpp
  11287. ac_cpp='$CXXCPP $CPPFLAGS'
  11288. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11289. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11290. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11292. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11293. if test -z "$CXXCPP"; then
  11294. if ${ac_cv_prog_CXXCPP+:} false; then :
  11295. $as_echo_n "(cached) " >&6
  11296. else
  11297. # Double quotes because CXXCPP needs to be expanded
  11298. for CXXCPP in "$CXX -E" "/lib/cpp"
  11299. do
  11300. ac_preproc_ok=false
  11301. for ac_cxx_preproc_warn_flag in '' yes
  11302. do
  11303. # Use a header file that comes with gcc, so configuring glibc
  11304. # with a fresh cross-compiler works.
  11305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11306. # <limits.h> exists even on freestanding compilers.
  11307. # On the NeXT, cc -E runs the code through the compiler's parser,
  11308. # not just through cpp. "Syntax error" is here to catch this case.
  11309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11310. /* end confdefs.h. */
  11311. #ifdef __STDC__
  11312. # include <limits.h>
  11313. #else
  11314. # include <assert.h>
  11315. #endif
  11316. Syntax error
  11317. _ACEOF
  11318. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11319. else
  11320. # Broken: fails on valid input.
  11321. continue
  11322. fi
  11323. rm -f conftest.err conftest.i conftest.$ac_ext
  11324. # OK, works on sane cases. Now check whether nonexistent headers
  11325. # can be detected and how.
  11326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11327. /* end confdefs.h. */
  11328. #include <ac_nonexistent.h>
  11329. _ACEOF
  11330. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11331. # Broken: success on invalid input.
  11332. continue
  11333. else
  11334. # Passes both tests.
  11335. ac_preproc_ok=:
  11336. break
  11337. fi
  11338. rm -f conftest.err conftest.i conftest.$ac_ext
  11339. done
  11340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11341. rm -f conftest.i conftest.err conftest.$ac_ext
  11342. if $ac_preproc_ok; then :
  11343. break
  11344. fi
  11345. done
  11346. ac_cv_prog_CXXCPP=$CXXCPP
  11347. fi
  11348. CXXCPP=$ac_cv_prog_CXXCPP
  11349. else
  11350. ac_cv_prog_CXXCPP=$CXXCPP
  11351. fi
  11352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11353. $as_echo "$CXXCPP" >&6; }
  11354. ac_preproc_ok=false
  11355. for ac_cxx_preproc_warn_flag in '' yes
  11356. do
  11357. # Use a header file that comes with gcc, so configuring glibc
  11358. # with a fresh cross-compiler works.
  11359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11360. # <limits.h> exists even on freestanding compilers.
  11361. # On the NeXT, cc -E runs the code through the compiler's parser,
  11362. # not just through cpp. "Syntax error" is here to catch this case.
  11363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11364. /* end confdefs.h. */
  11365. #ifdef __STDC__
  11366. # include <limits.h>
  11367. #else
  11368. # include <assert.h>
  11369. #endif
  11370. Syntax error
  11371. _ACEOF
  11372. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11373. else
  11374. # Broken: fails on valid input.
  11375. continue
  11376. fi
  11377. rm -f conftest.err conftest.i conftest.$ac_ext
  11378. # OK, works on sane cases. Now check whether nonexistent headers
  11379. # can be detected and how.
  11380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11381. /* end confdefs.h. */
  11382. #include <ac_nonexistent.h>
  11383. _ACEOF
  11384. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11385. # Broken: success on invalid input.
  11386. continue
  11387. else
  11388. # Passes both tests.
  11389. ac_preproc_ok=:
  11390. break
  11391. fi
  11392. rm -f conftest.err conftest.i conftest.$ac_ext
  11393. done
  11394. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11395. rm -f conftest.i conftest.err conftest.$ac_ext
  11396. if $ac_preproc_ok; then :
  11397. else
  11398. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11400. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11401. See \`config.log' for more details" "$LINENO" 5; }
  11402. fi
  11403. ac_ext=c
  11404. ac_cpp='$CPP $CPPFLAGS'
  11405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11408. else
  11409. _lt_caught_CXX_error=yes
  11410. fi
  11411. ac_ext=cpp
  11412. ac_cpp='$CXXCPP $CPPFLAGS'
  11413. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11414. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11415. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11416. archive_cmds_need_lc_CXX=no
  11417. allow_undefined_flag_CXX=
  11418. always_export_symbols_CXX=no
  11419. archive_expsym_cmds_CXX=
  11420. compiler_needs_object_CXX=no
  11421. export_dynamic_flag_spec_CXX=
  11422. hardcode_direct_CXX=no
  11423. hardcode_direct_absolute_CXX=no
  11424. hardcode_libdir_flag_spec_CXX=
  11425. hardcode_libdir_separator_CXX=
  11426. hardcode_minus_L_CXX=no
  11427. hardcode_shlibpath_var_CXX=unsupported
  11428. hardcode_automatic_CXX=no
  11429. inherit_rpath_CXX=no
  11430. module_cmds_CXX=
  11431. module_expsym_cmds_CXX=
  11432. link_all_deplibs_CXX=unknown
  11433. old_archive_cmds_CXX=$old_archive_cmds
  11434. reload_flag_CXX=$reload_flag
  11435. reload_cmds_CXX=$reload_cmds
  11436. no_undefined_flag_CXX=
  11437. whole_archive_flag_spec_CXX=
  11438. enable_shared_with_static_runtimes_CXX=no
  11439. # Source file extension for C++ test sources.
  11440. ac_ext=cpp
  11441. # Object file extension for compiled C++ test sources.
  11442. objext=o
  11443. objext_CXX=$objext
  11444. # No sense in running all these tests if we already determined that
  11445. # the CXX compiler isn't working. Some variables (like enable_shared)
  11446. # are currently assumed to apply to all compilers on this platform,
  11447. # and will be corrupted by setting them based on a non-working compiler.
  11448. if test yes != "$_lt_caught_CXX_error"; then
  11449. # Code to be used in simple compile tests
  11450. lt_simple_compile_test_code="int some_variable = 0;"
  11451. # Code to be used in simple link tests
  11452. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11453. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11454. # If no C compiler was specified, use CC.
  11455. LTCC=${LTCC-"$CC"}
  11456. # If no C compiler flags were specified, use CFLAGS.
  11457. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11458. # Allow CC to be a program name with arguments.
  11459. compiler=$CC
  11460. # save warnings/boilerplate of simple test code
  11461. ac_outfile=conftest.$ac_objext
  11462. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11463. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11464. _lt_compiler_boilerplate=`cat conftest.err`
  11465. $RM conftest*
  11466. ac_outfile=conftest.$ac_objext
  11467. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11468. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11469. _lt_linker_boilerplate=`cat conftest.err`
  11470. $RM -r conftest*
  11471. # Allow CC to be a program name with arguments.
  11472. lt_save_CC=$CC
  11473. lt_save_CFLAGS=$CFLAGS
  11474. lt_save_LD=$LD
  11475. lt_save_GCC=$GCC
  11476. GCC=$GXX
  11477. lt_save_with_gnu_ld=$with_gnu_ld
  11478. lt_save_path_LD=$lt_cv_path_LD
  11479. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11480. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11481. else
  11482. $as_unset lt_cv_prog_gnu_ld
  11483. fi
  11484. if test -n "${lt_cv_path_LDCXX+set}"; then
  11485. lt_cv_path_LD=$lt_cv_path_LDCXX
  11486. else
  11487. $as_unset lt_cv_path_LD
  11488. fi
  11489. test -z "${LDCXX+set}" || LD=$LDCXX
  11490. CC=${CXX-"c++"}
  11491. CFLAGS=$CXXFLAGS
  11492. compiler=$CC
  11493. compiler_CXX=$CC
  11494. func_cc_basename $compiler
  11495. cc_basename=$func_cc_basename_result
  11496. if test -n "$compiler"; then
  11497. # We don't want -fno-exception when compiling C++ code, so set the
  11498. # no_builtin_flag separately
  11499. if test yes = "$GXX"; then
  11500. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11501. else
  11502. lt_prog_compiler_no_builtin_flag_CXX=
  11503. fi
  11504. if test yes = "$GXX"; then
  11505. # Set up default GNU C++ configuration
  11506. # Check whether --with-gnu-ld was given.
  11507. if test "${with_gnu_ld+set}" = set; then :
  11508. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11509. else
  11510. with_gnu_ld=no
  11511. fi
  11512. ac_prog=ld
  11513. if test yes = "$GCC"; then
  11514. # Check if gcc -print-prog-name=ld gives a path.
  11515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11516. $as_echo_n "checking for ld used by $CC... " >&6; }
  11517. case $host in
  11518. *-*-mingw*)
  11519. # gcc leaves a trailing carriage return, which upsets mingw
  11520. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11521. *)
  11522. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11523. esac
  11524. case $ac_prog in
  11525. # Accept absolute paths.
  11526. [\\/]* | ?:[\\/]*)
  11527. re_direlt='/[^/][^/]*/\.\./'
  11528. # Canonicalize the pathname of ld
  11529. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11530. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11531. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11532. done
  11533. test -z "$LD" && LD=$ac_prog
  11534. ;;
  11535. "")
  11536. # If it fails, then pretend we aren't using GCC.
  11537. ac_prog=ld
  11538. ;;
  11539. *)
  11540. # If it is relative, then search for the first ld in PATH.
  11541. with_gnu_ld=unknown
  11542. ;;
  11543. esac
  11544. elif test yes = "$with_gnu_ld"; then
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11546. $as_echo_n "checking for GNU ld... " >&6; }
  11547. else
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11549. $as_echo_n "checking for non-GNU ld... " >&6; }
  11550. fi
  11551. if ${lt_cv_path_LD+:} false; then :
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. if test -z "$LD"; then
  11555. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11556. for ac_dir in $PATH; do
  11557. IFS=$lt_save_ifs
  11558. test -z "$ac_dir" && ac_dir=.
  11559. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11560. lt_cv_path_LD=$ac_dir/$ac_prog
  11561. # Check to see if the program is GNU ld. I'd rather use --version,
  11562. # but apparently some variants of GNU ld only accept -v.
  11563. # Break only if it was the GNU/non-GNU ld that we prefer.
  11564. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11565. *GNU* | *'with BFD'*)
  11566. test no != "$with_gnu_ld" && break
  11567. ;;
  11568. *)
  11569. test yes != "$with_gnu_ld" && break
  11570. ;;
  11571. esac
  11572. fi
  11573. done
  11574. IFS=$lt_save_ifs
  11575. else
  11576. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11577. fi
  11578. fi
  11579. LD=$lt_cv_path_LD
  11580. if test -n "$LD"; then
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11582. $as_echo "$LD" >&6; }
  11583. else
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11585. $as_echo "no" >&6; }
  11586. fi
  11587. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11589. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11590. if ${lt_cv_prog_gnu_ld+:} false; then :
  11591. $as_echo_n "(cached) " >&6
  11592. else
  11593. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11594. case `$LD -v 2>&1 </dev/null` in
  11595. *GNU* | *'with BFD'*)
  11596. lt_cv_prog_gnu_ld=yes
  11597. ;;
  11598. *)
  11599. lt_cv_prog_gnu_ld=no
  11600. ;;
  11601. esac
  11602. fi
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11604. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11605. with_gnu_ld=$lt_cv_prog_gnu_ld
  11606. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11607. # archiving commands below assume that GNU ld is being used.
  11608. if test yes = "$with_gnu_ld"; then
  11609. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11610. 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'
  11611. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11612. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11613. # If archive_cmds runs LD, not CC, wlarc should be empty
  11614. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11615. # investigate it a little bit more. (MM)
  11616. wlarc='$wl'
  11617. # ancient GNU ld didn't support --whole-archive et. al.
  11618. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11619. $GREP 'no-whole-archive' > /dev/null; then
  11620. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11621. else
  11622. whole_archive_flag_spec_CXX=
  11623. fi
  11624. else
  11625. with_gnu_ld=no
  11626. wlarc=
  11627. # A generic and very simple default shared library creation
  11628. # command for GNU C++ for the case where it uses the native
  11629. # linker, instead of GNU ld. If possible, this setting should
  11630. # overridden to take advantage of the native linker features on
  11631. # the platform it is being used on.
  11632. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11633. fi
  11634. # Commands to make compiler produce verbose output that lists
  11635. # what "hidden" libraries, object files and flags are used when
  11636. # linking a shared library.
  11637. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11638. else
  11639. GXX=no
  11640. with_gnu_ld=no
  11641. wlarc=
  11642. fi
  11643. # PORTME: fill in a description of your system's C++ link characteristics
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11645. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11646. ld_shlibs_CXX=yes
  11647. case $host_os in
  11648. aix3*)
  11649. # FIXME: insert proper C++ library support
  11650. ld_shlibs_CXX=no
  11651. ;;
  11652. aix[4-9]*)
  11653. if test ia64 = "$host_cpu"; then
  11654. # On IA64, the linker does run time linking by default, so we don't
  11655. # have to do anything special.
  11656. aix_use_runtimelinking=no
  11657. exp_sym_flag='-Bexport'
  11658. no_entry_flag=
  11659. else
  11660. aix_use_runtimelinking=no
  11661. # Test if we are trying to use run time linking or normal
  11662. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11663. # have runtime linking enabled, and use it for executables.
  11664. # For shared libraries, we enable/disable runtime linking
  11665. # depending on the kind of the shared library created -
  11666. # when "with_aix_soname,aix_use_runtimelinking" is:
  11667. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11668. # "aix,yes" lib.so shared, rtl:yes, for executables
  11669. # lib.a static archive
  11670. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11671. # lib.a(lib.so.V) shared, rtl:no, for executables
  11672. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11673. # lib.a(lib.so.V) shared, rtl:no
  11674. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11675. # lib.a static archive
  11676. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11677. for ld_flag in $LDFLAGS; do
  11678. case $ld_flag in
  11679. *-brtl*)
  11680. aix_use_runtimelinking=yes
  11681. break
  11682. ;;
  11683. esac
  11684. done
  11685. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11686. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11687. # so we don't have lib.a shared libs to link our executables.
  11688. # We have to force runtime linking in this case.
  11689. aix_use_runtimelinking=yes
  11690. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11691. fi
  11692. ;;
  11693. esac
  11694. exp_sym_flag='-bexport'
  11695. no_entry_flag='-bnoentry'
  11696. fi
  11697. # When large executables or shared objects are built, AIX ld can
  11698. # have problems creating the table of contents. If linking a library
  11699. # or program results in "error TOC overflow" add -mminimal-toc to
  11700. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11701. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11702. archive_cmds_CXX=''
  11703. hardcode_direct_CXX=yes
  11704. hardcode_direct_absolute_CXX=yes
  11705. hardcode_libdir_separator_CXX=':'
  11706. link_all_deplibs_CXX=yes
  11707. file_list_spec_CXX='$wl-f,'
  11708. case $with_aix_soname,$aix_use_runtimelinking in
  11709. aix,*) ;; # no import file
  11710. svr4,* | *,yes) # use import file
  11711. # The Import File defines what to hardcode.
  11712. hardcode_direct_CXX=no
  11713. hardcode_direct_absolute_CXX=no
  11714. ;;
  11715. esac
  11716. if test yes = "$GXX"; then
  11717. case $host_os in aix4.[012]|aix4.[012].*)
  11718. # We only want to do this on AIX 4.2 and lower, the check
  11719. # below for broken collect2 doesn't work under 4.3+
  11720. collect2name=`$CC -print-prog-name=collect2`
  11721. if test -f "$collect2name" &&
  11722. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11723. then
  11724. # We have reworked collect2
  11725. :
  11726. else
  11727. # We have old collect2
  11728. hardcode_direct_CXX=unsupported
  11729. # It fails to find uninstalled libraries when the uninstalled
  11730. # path is not listed in the libpath. Setting hardcode_minus_L
  11731. # to unsupported forces relinking
  11732. hardcode_minus_L_CXX=yes
  11733. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11734. hardcode_libdir_separator_CXX=
  11735. fi
  11736. esac
  11737. shared_flag='-shared'
  11738. if test yes = "$aix_use_runtimelinking"; then
  11739. shared_flag=$shared_flag' $wl-G'
  11740. fi
  11741. # Need to ensure runtime linking is disabled for the traditional
  11742. # shared library, or the linker may eventually find shared libraries
  11743. # /with/ Import File - we do not want to mix them.
  11744. shared_flag_aix='-shared'
  11745. shared_flag_svr4='-shared $wl-G'
  11746. else
  11747. # not using gcc
  11748. if test ia64 = "$host_cpu"; then
  11749. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11750. # chokes on -Wl,-G. The following line is correct:
  11751. shared_flag='-G'
  11752. else
  11753. if test yes = "$aix_use_runtimelinking"; then
  11754. shared_flag='$wl-G'
  11755. else
  11756. shared_flag='$wl-bM:SRE'
  11757. fi
  11758. shared_flag_aix='$wl-bM:SRE'
  11759. shared_flag_svr4='$wl-G'
  11760. fi
  11761. fi
  11762. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11763. # It seems that -bexpall does not export symbols beginning with
  11764. # underscore (_), so it is better to generate a list of symbols to
  11765. # export.
  11766. always_export_symbols_CXX=yes
  11767. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11768. # Warning - without using the other runtime loading flags (-brtl),
  11769. # -berok will link without error, but may produce a broken library.
  11770. # The "-G" linker flag allows undefined symbols.
  11771. no_undefined_flag_CXX='-bernotok'
  11772. # Determine the default libpath from the value encoded in an empty
  11773. # executable.
  11774. if test set = "${lt_cv_aix_libpath+set}"; then
  11775. aix_libpath=$lt_cv_aix_libpath
  11776. else
  11777. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11778. $as_echo_n "(cached) " >&6
  11779. else
  11780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11781. /* end confdefs.h. */
  11782. int
  11783. main ()
  11784. {
  11785. ;
  11786. return 0;
  11787. }
  11788. _ACEOF
  11789. if ac_fn_cxx_try_link "$LINENO"; then :
  11790. lt_aix_libpath_sed='
  11791. /Import File Strings/,/^$/ {
  11792. /^0/ {
  11793. s/^0 *\([^ ]*\) *$/\1/
  11794. p
  11795. }
  11796. }'
  11797. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11798. # Check for a 64-bit object if we didn't find anything.
  11799. if test -z "$lt_cv_aix_libpath__CXX"; then
  11800. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11801. fi
  11802. fi
  11803. rm -f core conftest.err conftest.$ac_objext \
  11804. conftest$ac_exeext conftest.$ac_ext
  11805. if test -z "$lt_cv_aix_libpath__CXX"; then
  11806. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11807. fi
  11808. fi
  11809. aix_libpath=$lt_cv_aix_libpath__CXX
  11810. fi
  11811. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11812. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11813. else
  11814. if test ia64 = "$host_cpu"; then
  11815. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11816. allow_undefined_flag_CXX="-z nodefs"
  11817. 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"
  11818. else
  11819. # Determine the default libpath from the value encoded in an
  11820. # empty executable.
  11821. if test set = "${lt_cv_aix_libpath+set}"; then
  11822. aix_libpath=$lt_cv_aix_libpath
  11823. else
  11824. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11825. $as_echo_n "(cached) " >&6
  11826. else
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. int
  11830. main ()
  11831. {
  11832. ;
  11833. return 0;
  11834. }
  11835. _ACEOF
  11836. if ac_fn_cxx_try_link "$LINENO"; then :
  11837. lt_aix_libpath_sed='
  11838. /Import File Strings/,/^$/ {
  11839. /^0/ {
  11840. s/^0 *\([^ ]*\) *$/\1/
  11841. p
  11842. }
  11843. }'
  11844. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11845. # Check for a 64-bit object if we didn't find anything.
  11846. if test -z "$lt_cv_aix_libpath__CXX"; then
  11847. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11848. fi
  11849. fi
  11850. rm -f core conftest.err conftest.$ac_objext \
  11851. conftest$ac_exeext conftest.$ac_ext
  11852. if test -z "$lt_cv_aix_libpath__CXX"; then
  11853. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11854. fi
  11855. fi
  11856. aix_libpath=$lt_cv_aix_libpath__CXX
  11857. fi
  11858. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11859. # Warning - without using the other run time loading flags,
  11860. # -berok will link without error, but may produce a broken library.
  11861. no_undefined_flag_CXX=' $wl-bernotok'
  11862. allow_undefined_flag_CXX=' $wl-berok'
  11863. if test yes = "$with_gnu_ld"; then
  11864. # We only use this code for GNU lds that support --whole-archive.
  11865. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11866. else
  11867. # Exported symbols can be pulled into shared objects from archives
  11868. whole_archive_flag_spec_CXX='$convenience'
  11869. fi
  11870. archive_cmds_need_lc_CXX=yes
  11871. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11872. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11873. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11874. if test svr4 != "$with_aix_soname"; then
  11875. # This is similar to how AIX traditionally builds its shared
  11876. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11877. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11878. fi
  11879. if test aix != "$with_aix_soname"; then
  11880. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11881. else
  11882. # used by -dlpreopen to get the symbols
  11883. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11884. fi
  11885. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11886. fi
  11887. fi
  11888. ;;
  11889. beos*)
  11890. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11891. allow_undefined_flag_CXX=unsupported
  11892. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11893. # support --undefined. This deserves some investigation. FIXME
  11894. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11895. else
  11896. ld_shlibs_CXX=no
  11897. fi
  11898. ;;
  11899. chorus*)
  11900. case $cc_basename in
  11901. *)
  11902. # FIXME: insert proper C++ library support
  11903. ld_shlibs_CXX=no
  11904. ;;
  11905. esac
  11906. ;;
  11907. cygwin* | mingw* | pw32* | cegcc*)
  11908. case $GXX,$cc_basename in
  11909. ,cl* | no,cl*)
  11910. # Native MSVC
  11911. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11912. # no search path for DLLs.
  11913. hardcode_libdir_flag_spec_CXX=' '
  11914. allow_undefined_flag_CXX=unsupported
  11915. always_export_symbols_CXX=yes
  11916. file_list_spec_CXX='@'
  11917. # Tell ltmain to make .lib files, not .a files.
  11918. libext=lib
  11919. # Tell ltmain to make .dll files, not .so files.
  11920. shrext_cmds=.dll
  11921. # FIXME: Setting linknames here is a bad hack.
  11922. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11923. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11924. cp "$export_symbols" "$output_objdir/$soname.def";
  11925. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11926. else
  11927. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11928. fi~
  11929. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11930. linknames='
  11931. # The linker will not automatically build a static lib if we build a DLL.
  11932. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11933. enable_shared_with_static_runtimes_CXX=yes
  11934. # Don't use ranlib
  11935. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11936. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11937. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11938. case $lt_outputfile in
  11939. *.exe|*.EXE) ;;
  11940. *)
  11941. lt_outputfile=$lt_outputfile.exe
  11942. lt_tool_outputfile=$lt_tool_outputfile.exe
  11943. ;;
  11944. esac~
  11945. func_to_tool_file "$lt_outputfile"~
  11946. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11947. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11948. $RM "$lt_outputfile.manifest";
  11949. fi'
  11950. ;;
  11951. *)
  11952. # g++
  11953. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11954. # as there is no search path for DLLs.
  11955. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11956. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11957. allow_undefined_flag_CXX=unsupported
  11958. always_export_symbols_CXX=no
  11959. enable_shared_with_static_runtimes_CXX=yes
  11960. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11961. 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'
  11962. # If the export-symbols file already is a .def file, use it as
  11963. # is; otherwise, prepend EXPORTS...
  11964. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11965. cp $export_symbols $output_objdir/$soname.def;
  11966. else
  11967. echo EXPORTS > $output_objdir/$soname.def;
  11968. cat $export_symbols >> $output_objdir/$soname.def;
  11969. fi~
  11970. $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'
  11971. else
  11972. ld_shlibs_CXX=no
  11973. fi
  11974. ;;
  11975. esac
  11976. ;;
  11977. darwin* | rhapsody*)
  11978. archive_cmds_need_lc_CXX=no
  11979. hardcode_direct_CXX=no
  11980. hardcode_automatic_CXX=yes
  11981. hardcode_shlibpath_var_CXX=unsupported
  11982. if test yes = "$lt_cv_ld_force_load"; then
  11983. 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\"`'
  11984. else
  11985. whole_archive_flag_spec_CXX=''
  11986. fi
  11987. link_all_deplibs_CXX=yes
  11988. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11989. case $cc_basename in
  11990. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11991. *) _lt_dar_can_shared=$GCC ;;
  11992. esac
  11993. if test yes = "$_lt_dar_can_shared"; then
  11994. output_verbose_link_cmd=func_echo_all
  11995. 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"
  11996. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11997. 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"
  11998. 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"
  11999. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12000. 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"
  12001. 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"
  12002. fi
  12003. else
  12004. ld_shlibs_CXX=no
  12005. fi
  12006. ;;
  12007. os2*)
  12008. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12009. hardcode_minus_L_CXX=yes
  12010. allow_undefined_flag_CXX=unsupported
  12011. shrext_cmds=.dll
  12012. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12013. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12014. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12015. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12016. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12017. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12018. emximp -o $lib $output_objdir/$libname.def'
  12019. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12020. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12021. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12022. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12023. prefix_cmds="$SED"~
  12024. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12025. prefix_cmds="$prefix_cmds -e 1d";
  12026. fi~
  12027. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12028. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12029. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12030. emximp -o $lib $output_objdir/$libname.def'
  12031. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12032. enable_shared_with_static_runtimes_CXX=yes
  12033. file_list_spec_CXX='@'
  12034. ;;
  12035. dgux*)
  12036. case $cc_basename in
  12037. ec++*)
  12038. # FIXME: insert proper C++ library support
  12039. ld_shlibs_CXX=no
  12040. ;;
  12041. ghcx*)
  12042. # Green Hills C++ Compiler
  12043. # FIXME: insert proper C++ library support
  12044. ld_shlibs_CXX=no
  12045. ;;
  12046. *)
  12047. # FIXME: insert proper C++ library support
  12048. ld_shlibs_CXX=no
  12049. ;;
  12050. esac
  12051. ;;
  12052. freebsd2.*)
  12053. # C++ shared libraries reported to be fairly broken before
  12054. # switch to ELF
  12055. ld_shlibs_CXX=no
  12056. ;;
  12057. freebsd-elf*)
  12058. archive_cmds_need_lc_CXX=no
  12059. ;;
  12060. freebsd* | dragonfly* | midnightbsd*)
  12061. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12062. # conventions
  12063. ld_shlibs_CXX=yes
  12064. ;;
  12065. haiku*)
  12066. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12067. link_all_deplibs_CXX=yes
  12068. ;;
  12069. hpux9*)
  12070. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12071. hardcode_libdir_separator_CXX=:
  12072. export_dynamic_flag_spec_CXX='$wl-E'
  12073. hardcode_direct_CXX=yes
  12074. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12075. # but as the default
  12076. # location of the library.
  12077. case $cc_basename in
  12078. CC*)
  12079. # FIXME: insert proper C++ library support
  12080. ld_shlibs_CXX=no
  12081. ;;
  12082. aCC*)
  12083. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12084. # Commands to make compiler produce verbose output that lists
  12085. # what "hidden" libraries, object files and flags are used when
  12086. # linking a shared library.
  12087. #
  12088. # There doesn't appear to be a way to prevent this compiler from
  12089. # explicitly linking system object files so we need to strip them
  12090. # from the output so that they don't get included in the library
  12091. # dependencies.
  12092. 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"'
  12093. ;;
  12094. *)
  12095. if test yes = "$GXX"; then
  12096. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12097. else
  12098. # FIXME: insert proper C++ library support
  12099. ld_shlibs_CXX=no
  12100. fi
  12101. ;;
  12102. esac
  12103. ;;
  12104. hpux10*|hpux11*)
  12105. if test no = "$with_gnu_ld"; then
  12106. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12107. hardcode_libdir_separator_CXX=:
  12108. case $host_cpu in
  12109. hppa*64*|ia64*)
  12110. ;;
  12111. *)
  12112. export_dynamic_flag_spec_CXX='$wl-E'
  12113. ;;
  12114. esac
  12115. fi
  12116. case $host_cpu in
  12117. hppa*64*|ia64*)
  12118. hardcode_direct_CXX=no
  12119. hardcode_shlibpath_var_CXX=no
  12120. ;;
  12121. *)
  12122. hardcode_direct_CXX=yes
  12123. hardcode_direct_absolute_CXX=yes
  12124. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12125. # but as the default
  12126. # location of the library.
  12127. ;;
  12128. esac
  12129. case $cc_basename in
  12130. CC*)
  12131. # FIXME: insert proper C++ library support
  12132. ld_shlibs_CXX=no
  12133. ;;
  12134. aCC*)
  12135. case $host_cpu in
  12136. hppa*64*)
  12137. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12138. ;;
  12139. ia64*)
  12140. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12141. ;;
  12142. *)
  12143. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12144. ;;
  12145. esac
  12146. # Commands to make compiler produce verbose output that lists
  12147. # what "hidden" libraries, object files and flags are used when
  12148. # linking a shared library.
  12149. #
  12150. # There doesn't appear to be a way to prevent this compiler from
  12151. # explicitly linking system object files so we need to strip them
  12152. # from the output so that they don't get included in the library
  12153. # dependencies.
  12154. 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"'
  12155. ;;
  12156. *)
  12157. if test yes = "$GXX"; then
  12158. if test no = "$with_gnu_ld"; then
  12159. case $host_cpu in
  12160. hppa*64*)
  12161. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12162. ;;
  12163. ia64*)
  12164. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12165. ;;
  12166. *)
  12167. 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'
  12168. ;;
  12169. esac
  12170. fi
  12171. else
  12172. # FIXME: insert proper C++ library support
  12173. ld_shlibs_CXX=no
  12174. fi
  12175. ;;
  12176. esac
  12177. ;;
  12178. interix[3-9]*)
  12179. hardcode_direct_CXX=no
  12180. hardcode_shlibpath_var_CXX=no
  12181. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12182. export_dynamic_flag_spec_CXX='$wl-E'
  12183. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12184. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12185. # default) and relocated if they conflict, which is a slow very memory
  12186. # consuming and fragmenting process. To avoid this, we pick a random,
  12187. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12188. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12189. 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'
  12190. 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'
  12191. ;;
  12192. irix5* | irix6*)
  12193. case $cc_basename in
  12194. CC*)
  12195. # SGI C++
  12196. 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'
  12197. # Archives containing C++ object files must be created using
  12198. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12199. # necessary to make sure instantiated templates are included
  12200. # in the archive.
  12201. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12202. ;;
  12203. *)
  12204. if test yes = "$GXX"; then
  12205. if test no = "$with_gnu_ld"; then
  12206. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12207. else
  12208. 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'
  12209. fi
  12210. fi
  12211. link_all_deplibs_CXX=yes
  12212. ;;
  12213. esac
  12214. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12215. hardcode_libdir_separator_CXX=:
  12216. inherit_rpath_CXX=yes
  12217. ;;
  12218. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12219. case $cc_basename in
  12220. KCC*)
  12221. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12222. # KCC will only create a shared library if the output file
  12223. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12224. # to its proper name (with version) after linking.
  12225. 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'
  12226. 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'
  12227. # Commands to make compiler produce verbose output that lists
  12228. # what "hidden" libraries, object files and flags are used when
  12229. # linking a shared library.
  12230. #
  12231. # There doesn't appear to be a way to prevent this compiler from
  12232. # explicitly linking system object files so we need to strip them
  12233. # from the output so that they don't get included in the library
  12234. # dependencies.
  12235. 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"'
  12236. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12237. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12238. # Archives containing C++ object files must be created using
  12239. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12240. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12241. ;;
  12242. icpc* | ecpc* )
  12243. # Intel C++
  12244. with_gnu_ld=yes
  12245. # version 8.0 and above of icpc choke on multiply defined symbols
  12246. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12247. # earlier do not add the objects themselves.
  12248. case `$CC -V 2>&1` in
  12249. *"Version 7."*)
  12250. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12251. 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'
  12252. ;;
  12253. *) # Version 8.0 or newer
  12254. tmp_idyn=
  12255. case $host_cpu in
  12256. ia64*) tmp_idyn=' -i_dynamic';;
  12257. esac
  12258. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12259. 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'
  12260. ;;
  12261. esac
  12262. archive_cmds_need_lc_CXX=no
  12263. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12264. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12265. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12266. ;;
  12267. pgCC* | pgcpp*)
  12268. # Portland Group C++ compiler
  12269. case `$CC -V` in
  12270. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12271. prelink_cmds_CXX='tpldir=Template.dir~
  12272. rm -rf $tpldir~
  12273. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12274. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12275. old_archive_cmds_CXX='tpldir=Template.dir~
  12276. rm -rf $tpldir~
  12277. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12278. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12279. $RANLIB $oldlib'
  12280. archive_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12283. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12284. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12285. rm -rf $tpldir~
  12286. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12287. $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'
  12288. ;;
  12289. *) # Version 6 and above use weak symbols
  12290. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12291. 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'
  12292. ;;
  12293. esac
  12294. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12295. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12296. 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'
  12297. ;;
  12298. cxx*)
  12299. # Compaq C++
  12300. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12301. 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'
  12302. runpath_var=LD_RUN_PATH
  12303. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12304. hardcode_libdir_separator_CXX=:
  12305. # Commands to make compiler produce verbose output that lists
  12306. # what "hidden" libraries, object files and flags are used when
  12307. # linking a shared library.
  12308. #
  12309. # There doesn't appear to be a way to prevent this compiler from
  12310. # explicitly linking system object files so we need to strip them
  12311. # from the output so that they don't get included in the library
  12312. # dependencies.
  12313. 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'
  12314. ;;
  12315. xl* | mpixl* | bgxl*)
  12316. # IBM XL 8.0 on PPC, with GNU ld
  12317. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12318. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12319. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12320. if test yes = "$supports_anon_versioning"; then
  12321. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12322. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12323. echo "local: *; };" >> $output_objdir/$libname.ver~
  12324. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12325. fi
  12326. ;;
  12327. *)
  12328. case `$CC -V 2>&1 | sed 5q` in
  12329. *Sun\ C*)
  12330. # Sun C++ 5.9
  12331. no_undefined_flag_CXX=' -zdefs'
  12332. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12333. 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'
  12334. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12335. 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'
  12336. compiler_needs_object_CXX=yes
  12337. # Not sure whether something based on
  12338. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12339. # would be better.
  12340. output_verbose_link_cmd='func_echo_all'
  12341. # Archives containing C++ object files must be created using
  12342. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12343. # necessary to make sure instantiated templates are included
  12344. # in the archive.
  12345. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12346. ;;
  12347. esac
  12348. ;;
  12349. esac
  12350. ;;
  12351. lynxos*)
  12352. # FIXME: insert proper C++ library support
  12353. ld_shlibs_CXX=no
  12354. ;;
  12355. m88k*)
  12356. # FIXME: insert proper C++ library support
  12357. ld_shlibs_CXX=no
  12358. ;;
  12359. mvs*)
  12360. case $cc_basename in
  12361. cxx*)
  12362. # FIXME: insert proper C++ library support
  12363. ld_shlibs_CXX=no
  12364. ;;
  12365. *)
  12366. # FIXME: insert proper C++ library support
  12367. ld_shlibs_CXX=no
  12368. ;;
  12369. esac
  12370. ;;
  12371. netbsd*)
  12372. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12373. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12374. wlarc=
  12375. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12376. hardcode_direct_CXX=yes
  12377. hardcode_shlibpath_var_CXX=no
  12378. fi
  12379. # Workaround some broken pre-1.5 toolchains
  12380. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12381. ;;
  12382. *nto* | *qnx*)
  12383. ld_shlibs_CXX=yes
  12384. ;;
  12385. openbsd* | bitrig*)
  12386. if test -f /usr/libexec/ld.so; then
  12387. hardcode_direct_CXX=yes
  12388. hardcode_shlibpath_var_CXX=no
  12389. hardcode_direct_absolute_CXX=yes
  12390. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12391. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12392. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12393. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12394. export_dynamic_flag_spec_CXX='$wl-E'
  12395. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12396. fi
  12397. output_verbose_link_cmd=func_echo_all
  12398. else
  12399. ld_shlibs_CXX=no
  12400. fi
  12401. ;;
  12402. osf3* | osf4* | osf5*)
  12403. case $cc_basename in
  12404. KCC*)
  12405. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12406. # KCC will only create a shared library if the output file
  12407. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12408. # to its proper name (with version) after linking.
  12409. 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'
  12410. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12411. hardcode_libdir_separator_CXX=:
  12412. # Archives containing C++ object files must be created using
  12413. # the KAI C++ compiler.
  12414. case $host in
  12415. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12416. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12417. esac
  12418. ;;
  12419. RCC*)
  12420. # Rational C++ 2.4.1
  12421. # FIXME: insert proper C++ library support
  12422. ld_shlibs_CXX=no
  12423. ;;
  12424. cxx*)
  12425. case $host in
  12426. osf3*)
  12427. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12428. 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'
  12429. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12430. ;;
  12431. *)
  12432. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12433. 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'
  12434. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12435. echo "-hidden">> $lib.exp~
  12436. $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~
  12437. $RM $lib.exp'
  12438. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12439. ;;
  12440. esac
  12441. hardcode_libdir_separator_CXX=:
  12442. # Commands to make compiler produce verbose output that lists
  12443. # what "hidden" libraries, object files and flags are used when
  12444. # linking a shared library.
  12445. #
  12446. # There doesn't appear to be a way to prevent this compiler from
  12447. # explicitly linking system object files so we need to strip them
  12448. # from the output so that they don't get included in the library
  12449. # dependencies.
  12450. 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"'
  12451. ;;
  12452. *)
  12453. if test yes,no = "$GXX,$with_gnu_ld"; then
  12454. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12455. case $host in
  12456. osf3*)
  12457. 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'
  12458. ;;
  12459. *)
  12460. 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'
  12461. ;;
  12462. esac
  12463. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12464. hardcode_libdir_separator_CXX=:
  12465. # Commands to make compiler produce verbose output that lists
  12466. # what "hidden" libraries, object files and flags are used when
  12467. # linking a shared library.
  12468. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12469. else
  12470. # FIXME: insert proper C++ library support
  12471. ld_shlibs_CXX=no
  12472. fi
  12473. ;;
  12474. esac
  12475. ;;
  12476. psos*)
  12477. # FIXME: insert proper C++ library support
  12478. ld_shlibs_CXX=no
  12479. ;;
  12480. sunos4*)
  12481. case $cc_basename in
  12482. CC*)
  12483. # Sun C++ 4.x
  12484. # FIXME: insert proper C++ library support
  12485. ld_shlibs_CXX=no
  12486. ;;
  12487. lcc*)
  12488. # Lucid
  12489. # FIXME: insert proper C++ library support
  12490. ld_shlibs_CXX=no
  12491. ;;
  12492. *)
  12493. # FIXME: insert proper C++ library support
  12494. ld_shlibs_CXX=no
  12495. ;;
  12496. esac
  12497. ;;
  12498. solaris*)
  12499. case $cc_basename in
  12500. CC* | sunCC*)
  12501. # Sun C++ 4.2, 5.x and Centerline C++
  12502. archive_cmds_need_lc_CXX=yes
  12503. no_undefined_flag_CXX=' -zdefs'
  12504. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12505. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12506. $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'
  12507. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12508. hardcode_shlibpath_var_CXX=no
  12509. case $host_os in
  12510. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12511. *)
  12512. # The compiler driver will combine and reorder linker options,
  12513. # but understands '-z linker_flag'.
  12514. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12515. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12516. ;;
  12517. esac
  12518. link_all_deplibs_CXX=yes
  12519. output_verbose_link_cmd='func_echo_all'
  12520. # Archives containing C++ object files must be created using
  12521. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12522. # necessary to make sure instantiated templates are included
  12523. # in the archive.
  12524. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12525. ;;
  12526. gcx*)
  12527. # Green Hills C++ Compiler
  12528. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12529. # The C++ compiler must be used to create the archive.
  12530. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12531. ;;
  12532. *)
  12533. # GNU C++ compiler with Solaris linker
  12534. if test yes,no = "$GXX,$with_gnu_ld"; then
  12535. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12536. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12537. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12538. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12539. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12540. # Commands to make compiler produce verbose output that lists
  12541. # what "hidden" libraries, object files and flags are used when
  12542. # linking a shared library.
  12543. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12544. else
  12545. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12546. # platform.
  12547. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12548. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12549. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12550. # Commands to make compiler produce verbose output that lists
  12551. # what "hidden" libraries, object files and flags are used when
  12552. # linking a shared library.
  12553. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12554. fi
  12555. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12556. case $host_os in
  12557. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12558. *)
  12559. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12560. ;;
  12561. esac
  12562. fi
  12563. ;;
  12564. esac
  12565. ;;
  12566. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12567. no_undefined_flag_CXX='$wl-z,text'
  12568. archive_cmds_need_lc_CXX=no
  12569. hardcode_shlibpath_var_CXX=no
  12570. runpath_var='LD_RUN_PATH'
  12571. case $cc_basename in
  12572. CC*)
  12573. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12574. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12575. ;;
  12576. *)
  12577. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12578. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12579. ;;
  12580. esac
  12581. ;;
  12582. sysv5* | sco3.2v5* | sco5v6*)
  12583. # Note: We CANNOT use -z defs as we might desire, because we do not
  12584. # link with -lc, and that would cause any symbols used from libc to
  12585. # always be unresolved, which means just about no library would
  12586. # ever link correctly. If we're not using GNU ld we use -z text
  12587. # though, which does catch some bad symbols but isn't as heavy-handed
  12588. # as -z defs.
  12589. no_undefined_flag_CXX='$wl-z,text'
  12590. allow_undefined_flag_CXX='$wl-z,nodefs'
  12591. archive_cmds_need_lc_CXX=no
  12592. hardcode_shlibpath_var_CXX=no
  12593. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12594. hardcode_libdir_separator_CXX=':'
  12595. link_all_deplibs_CXX=yes
  12596. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12597. runpath_var='LD_RUN_PATH'
  12598. case $cc_basename in
  12599. CC*)
  12600. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12601. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12602. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12603. '"$old_archive_cmds_CXX"
  12604. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12605. '"$reload_cmds_CXX"
  12606. ;;
  12607. *)
  12608. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12609. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12610. ;;
  12611. esac
  12612. ;;
  12613. tandem*)
  12614. case $cc_basename in
  12615. NCC*)
  12616. # NonStop-UX NCC 3.20
  12617. # FIXME: insert proper C++ library support
  12618. ld_shlibs_CXX=no
  12619. ;;
  12620. *)
  12621. # FIXME: insert proper C++ library support
  12622. ld_shlibs_CXX=no
  12623. ;;
  12624. esac
  12625. ;;
  12626. vxworks*)
  12627. # FIXME: insert proper C++ library support
  12628. ld_shlibs_CXX=no
  12629. ;;
  12630. *)
  12631. # FIXME: insert proper C++ library support
  12632. ld_shlibs_CXX=no
  12633. ;;
  12634. esac
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12636. $as_echo "$ld_shlibs_CXX" >&6; }
  12637. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12638. GCC_CXX=$GXX
  12639. LD_CXX=$LD
  12640. ## CAVEAT EMPTOR:
  12641. ## There is no encapsulation within the following macros, do not change
  12642. ## the running order or otherwise move them around unless you know exactly
  12643. ## what you are doing...
  12644. # Dependencies to place before and after the object being linked:
  12645. predep_objects_CXX=
  12646. postdep_objects_CXX=
  12647. predeps_CXX=
  12648. postdeps_CXX=
  12649. compiler_lib_search_path_CXX=
  12650. cat > conftest.$ac_ext <<_LT_EOF
  12651. class Foo
  12652. {
  12653. public:
  12654. Foo (void) { a = 0; }
  12655. private:
  12656. int a;
  12657. };
  12658. _LT_EOF
  12659. _lt_libdeps_save_CFLAGS=$CFLAGS
  12660. case "$CC $CFLAGS " in #(
  12661. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12662. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12663. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12664. esac
  12665. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12666. (eval $ac_compile) 2>&5
  12667. ac_status=$?
  12668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12669. test $ac_status = 0; }; then
  12670. # Parse the compiler output and extract the necessary
  12671. # objects, libraries and library flags.
  12672. # Sentinel used to keep track of whether or not we are before
  12673. # the conftest object file.
  12674. pre_test_object_deps_done=no
  12675. for p in `eval "$output_verbose_link_cmd"`; do
  12676. case $prev$p in
  12677. -L* | -R* | -l*)
  12678. # Some compilers place space between "-{L,R}" and the path.
  12679. # Remove the space.
  12680. if test x-L = "x$p" ||
  12681. test x-R = "x$p" ||
  12682. test x-l = "x$p"; then
  12683. prev=$p
  12684. continue
  12685. fi
  12686. # Expand the sysroot to ease extracting the directories later.
  12687. if test -z "$prev"; then
  12688. case $p in
  12689. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12690. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12691. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12692. esac
  12693. fi
  12694. case $p in
  12695. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12696. esac
  12697. if test no = "$pre_test_object_deps_done"; then
  12698. case $prev in
  12699. -L | -R)
  12700. # Internal compiler library paths should come after those
  12701. # provided the user. The postdeps already come after the
  12702. # user supplied libs so there is no need to process them.
  12703. if test -z "$compiler_lib_search_path_CXX"; then
  12704. compiler_lib_search_path_CXX=$prev$p
  12705. else
  12706. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12707. fi
  12708. ;;
  12709. # The "-l" case would never come before the object being
  12710. # linked, so don't bother handling this case.
  12711. esac
  12712. else
  12713. if test -z "$postdeps_CXX"; then
  12714. postdeps_CXX=$prev$p
  12715. else
  12716. postdeps_CXX="${postdeps_CXX} $prev$p"
  12717. fi
  12718. fi
  12719. prev=
  12720. ;;
  12721. *.lto.$objext) ;; # Ignore GCC LTO objects
  12722. *.$objext)
  12723. # This assumes that the test object file only shows up
  12724. # once in the compiler output.
  12725. if test "$p" = "conftest.$objext"; then
  12726. pre_test_object_deps_done=yes
  12727. continue
  12728. fi
  12729. if test no = "$pre_test_object_deps_done"; then
  12730. if test -z "$predep_objects_CXX"; then
  12731. predep_objects_CXX=$p
  12732. else
  12733. predep_objects_CXX="$predep_objects_CXX $p"
  12734. fi
  12735. else
  12736. if test -z "$postdep_objects_CXX"; then
  12737. postdep_objects_CXX=$p
  12738. else
  12739. postdep_objects_CXX="$postdep_objects_CXX $p"
  12740. fi
  12741. fi
  12742. ;;
  12743. *) ;; # Ignore the rest.
  12744. esac
  12745. done
  12746. # Clean up.
  12747. rm -f a.out a.exe
  12748. else
  12749. echo "libtool.m4: error: problem compiling CXX test program"
  12750. fi
  12751. $RM -f confest.$objext
  12752. CFLAGS=$_lt_libdeps_save_CFLAGS
  12753. # PORTME: override above test on systems where it is broken
  12754. case $host_os in
  12755. interix[3-9]*)
  12756. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12757. # hack all around it, let's just trust "g++" to DTRT.
  12758. predep_objects_CXX=
  12759. postdep_objects_CXX=
  12760. postdeps_CXX=
  12761. ;;
  12762. esac
  12763. case " $postdeps_CXX " in
  12764. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12765. esac
  12766. compiler_lib_search_dirs_CXX=
  12767. if test -n "${compiler_lib_search_path_CXX}"; then
  12768. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12769. fi
  12770. lt_prog_compiler_wl_CXX=
  12771. lt_prog_compiler_pic_CXX=
  12772. lt_prog_compiler_static_CXX=
  12773. # C++ specific cases for pic, static, wl, etc.
  12774. if test yes = "$GXX"; then
  12775. lt_prog_compiler_wl_CXX='-Wl,'
  12776. lt_prog_compiler_static_CXX='-static'
  12777. case $host_os in
  12778. aix*)
  12779. # All AIX code is PIC.
  12780. if test ia64 = "$host_cpu"; then
  12781. # AIX 5 now supports IA64 processor
  12782. lt_prog_compiler_static_CXX='-Bstatic'
  12783. fi
  12784. lt_prog_compiler_pic_CXX='-fPIC'
  12785. ;;
  12786. amigaos*)
  12787. case $host_cpu in
  12788. powerpc)
  12789. # see comment about AmigaOS4 .so support
  12790. lt_prog_compiler_pic_CXX='-fPIC'
  12791. ;;
  12792. m68k)
  12793. # FIXME: we need at least 68020 code to build shared libraries, but
  12794. # adding the '-m68020' flag to GCC prevents building anything better,
  12795. # like '-m68040'.
  12796. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12797. ;;
  12798. esac
  12799. ;;
  12800. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12801. # PIC is the default for these OSes.
  12802. ;;
  12803. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12804. # This hack is so that the source file can tell whether it is being
  12805. # built for inclusion in a dll (and should export symbols for example).
  12806. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12807. # (--disable-auto-import) libraries
  12808. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12809. case $host_os in
  12810. os2*)
  12811. lt_prog_compiler_static_CXX='$wl-static'
  12812. ;;
  12813. esac
  12814. ;;
  12815. darwin* | rhapsody*)
  12816. # PIC is the default on this platform
  12817. # Common symbols not allowed in MH_DYLIB files
  12818. lt_prog_compiler_pic_CXX='-fno-common'
  12819. ;;
  12820. *djgpp*)
  12821. # DJGPP does not support shared libraries at all
  12822. lt_prog_compiler_pic_CXX=
  12823. ;;
  12824. haiku*)
  12825. # PIC is the default for Haiku.
  12826. # The "-static" flag exists, but is broken.
  12827. lt_prog_compiler_static_CXX=
  12828. ;;
  12829. interix[3-9]*)
  12830. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12831. # Instead, we relocate shared libraries at runtime.
  12832. ;;
  12833. sysv4*MP*)
  12834. if test -d /usr/nec; then
  12835. lt_prog_compiler_pic_CXX=-Kconform_pic
  12836. fi
  12837. ;;
  12838. hpux*)
  12839. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12840. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12841. # sets the default TLS model and affects inlining.
  12842. case $host_cpu in
  12843. hppa*64*)
  12844. ;;
  12845. *)
  12846. lt_prog_compiler_pic_CXX='-fPIC'
  12847. ;;
  12848. esac
  12849. ;;
  12850. *qnx* | *nto*)
  12851. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12852. # it will coredump.
  12853. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12854. ;;
  12855. *)
  12856. lt_prog_compiler_pic_CXX='-fPIC'
  12857. ;;
  12858. esac
  12859. else
  12860. case $host_os in
  12861. aix[4-9]*)
  12862. # All AIX code is PIC.
  12863. if test ia64 = "$host_cpu"; then
  12864. # AIX 5 now supports IA64 processor
  12865. lt_prog_compiler_static_CXX='-Bstatic'
  12866. else
  12867. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12868. fi
  12869. ;;
  12870. chorus*)
  12871. case $cc_basename in
  12872. cxch68*)
  12873. # Green Hills C++ Compiler
  12874. # _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"
  12875. ;;
  12876. esac
  12877. ;;
  12878. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12879. # This hack is so that the source file can tell whether it is being
  12880. # built for inclusion in a dll (and should export symbols for example).
  12881. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12882. ;;
  12883. dgux*)
  12884. case $cc_basename in
  12885. ec++*)
  12886. lt_prog_compiler_pic_CXX='-KPIC'
  12887. ;;
  12888. ghcx*)
  12889. # Green Hills C++ Compiler
  12890. lt_prog_compiler_pic_CXX='-pic'
  12891. ;;
  12892. *)
  12893. ;;
  12894. esac
  12895. ;;
  12896. freebsd* | dragonfly* | midnightbsd*)
  12897. # FreeBSD uses GNU C++
  12898. ;;
  12899. hpux9* | hpux10* | hpux11*)
  12900. case $cc_basename in
  12901. CC*)
  12902. lt_prog_compiler_wl_CXX='-Wl,'
  12903. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12904. if test ia64 != "$host_cpu"; then
  12905. lt_prog_compiler_pic_CXX='+Z'
  12906. fi
  12907. ;;
  12908. aCC*)
  12909. lt_prog_compiler_wl_CXX='-Wl,'
  12910. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12911. case $host_cpu in
  12912. hppa*64*|ia64*)
  12913. # +Z the default
  12914. ;;
  12915. *)
  12916. lt_prog_compiler_pic_CXX='+Z'
  12917. ;;
  12918. esac
  12919. ;;
  12920. *)
  12921. ;;
  12922. esac
  12923. ;;
  12924. interix*)
  12925. # This is c89, which is MS Visual C++ (no shared libs)
  12926. # Anyone wants to do a port?
  12927. ;;
  12928. irix5* | irix6* | nonstopux*)
  12929. case $cc_basename in
  12930. CC*)
  12931. lt_prog_compiler_wl_CXX='-Wl,'
  12932. lt_prog_compiler_static_CXX='-non_shared'
  12933. # CC pic flag -KPIC is the default.
  12934. ;;
  12935. *)
  12936. ;;
  12937. esac
  12938. ;;
  12939. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12940. case $cc_basename in
  12941. KCC*)
  12942. # KAI C++ Compiler
  12943. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12944. lt_prog_compiler_pic_CXX='-fPIC'
  12945. ;;
  12946. ecpc* )
  12947. # old Intel C++ for x86_64, which still supported -KPIC.
  12948. lt_prog_compiler_wl_CXX='-Wl,'
  12949. lt_prog_compiler_pic_CXX='-KPIC'
  12950. lt_prog_compiler_static_CXX='-static'
  12951. ;;
  12952. icpc* )
  12953. # Intel C++, used to be incompatible with GCC.
  12954. # ICC 10 doesn't accept -KPIC any more.
  12955. lt_prog_compiler_wl_CXX='-Wl,'
  12956. lt_prog_compiler_pic_CXX='-fPIC'
  12957. lt_prog_compiler_static_CXX='-static'
  12958. ;;
  12959. pgCC* | pgcpp*)
  12960. # Portland Group C++ compiler
  12961. lt_prog_compiler_wl_CXX='-Wl,'
  12962. lt_prog_compiler_pic_CXX='-fpic'
  12963. lt_prog_compiler_static_CXX='-Bstatic'
  12964. ;;
  12965. cxx*)
  12966. # Compaq C++
  12967. # Make sure the PIC flag is empty. It appears that all Alpha
  12968. # Linux and Compaq Tru64 Unix objects are PIC.
  12969. lt_prog_compiler_pic_CXX=
  12970. lt_prog_compiler_static_CXX='-non_shared'
  12971. ;;
  12972. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12973. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12974. lt_prog_compiler_wl_CXX='-Wl,'
  12975. lt_prog_compiler_pic_CXX='-qpic'
  12976. lt_prog_compiler_static_CXX='-qstaticlink'
  12977. ;;
  12978. *)
  12979. case `$CC -V 2>&1 | sed 5q` in
  12980. *Sun\ C*)
  12981. # Sun C++ 5.9
  12982. lt_prog_compiler_pic_CXX='-KPIC'
  12983. lt_prog_compiler_static_CXX='-Bstatic'
  12984. lt_prog_compiler_wl_CXX='-Qoption ld '
  12985. ;;
  12986. esac
  12987. ;;
  12988. esac
  12989. ;;
  12990. lynxos*)
  12991. ;;
  12992. m88k*)
  12993. ;;
  12994. mvs*)
  12995. case $cc_basename in
  12996. cxx*)
  12997. lt_prog_compiler_pic_CXX='-W c,exportall'
  12998. ;;
  12999. *)
  13000. ;;
  13001. esac
  13002. ;;
  13003. netbsd*)
  13004. ;;
  13005. *qnx* | *nto*)
  13006. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13007. # it will coredump.
  13008. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13009. ;;
  13010. osf3* | osf4* | osf5*)
  13011. case $cc_basename in
  13012. KCC*)
  13013. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13014. ;;
  13015. RCC*)
  13016. # Rational C++ 2.4.1
  13017. lt_prog_compiler_pic_CXX='-pic'
  13018. ;;
  13019. cxx*)
  13020. # Digital/Compaq C++
  13021. lt_prog_compiler_wl_CXX='-Wl,'
  13022. # Make sure the PIC flag is empty. It appears that all Alpha
  13023. # Linux and Compaq Tru64 Unix objects are PIC.
  13024. lt_prog_compiler_pic_CXX=
  13025. lt_prog_compiler_static_CXX='-non_shared'
  13026. ;;
  13027. *)
  13028. ;;
  13029. esac
  13030. ;;
  13031. psos*)
  13032. ;;
  13033. solaris*)
  13034. case $cc_basename in
  13035. CC* | sunCC*)
  13036. # Sun C++ 4.2, 5.x and Centerline C++
  13037. lt_prog_compiler_pic_CXX='-KPIC'
  13038. lt_prog_compiler_static_CXX='-Bstatic'
  13039. lt_prog_compiler_wl_CXX='-Qoption ld '
  13040. ;;
  13041. gcx*)
  13042. # Green Hills C++ Compiler
  13043. lt_prog_compiler_pic_CXX='-PIC'
  13044. ;;
  13045. *)
  13046. ;;
  13047. esac
  13048. ;;
  13049. sunos4*)
  13050. case $cc_basename in
  13051. CC*)
  13052. # Sun C++ 4.x
  13053. lt_prog_compiler_pic_CXX='-pic'
  13054. lt_prog_compiler_static_CXX='-Bstatic'
  13055. ;;
  13056. lcc*)
  13057. # Lucid
  13058. lt_prog_compiler_pic_CXX='-pic'
  13059. ;;
  13060. *)
  13061. ;;
  13062. esac
  13063. ;;
  13064. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13065. case $cc_basename in
  13066. CC*)
  13067. lt_prog_compiler_wl_CXX='-Wl,'
  13068. lt_prog_compiler_pic_CXX='-KPIC'
  13069. lt_prog_compiler_static_CXX='-Bstatic'
  13070. ;;
  13071. esac
  13072. ;;
  13073. tandem*)
  13074. case $cc_basename in
  13075. NCC*)
  13076. # NonStop-UX NCC 3.20
  13077. lt_prog_compiler_pic_CXX='-KPIC'
  13078. ;;
  13079. *)
  13080. ;;
  13081. esac
  13082. ;;
  13083. vxworks*)
  13084. ;;
  13085. *)
  13086. lt_prog_compiler_can_build_shared_CXX=no
  13087. ;;
  13088. esac
  13089. fi
  13090. case $host_os in
  13091. # For platforms that do not support PIC, -DPIC is meaningless:
  13092. *djgpp*)
  13093. lt_prog_compiler_pic_CXX=
  13094. ;;
  13095. *)
  13096. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13097. ;;
  13098. esac
  13099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13100. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13101. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13102. $as_echo_n "(cached) " >&6
  13103. else
  13104. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13105. fi
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13107. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13108. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13109. #
  13110. # Check to make sure the PIC flag actually works.
  13111. #
  13112. if test -n "$lt_prog_compiler_pic_CXX"; then
  13113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13114. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13115. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13116. $as_echo_n "(cached) " >&6
  13117. else
  13118. lt_cv_prog_compiler_pic_works_CXX=no
  13119. ac_outfile=conftest.$ac_objext
  13120. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13121. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13122. # Insert the option either (1) after the last *FLAGS variable, or
  13123. # (2) before a word containing "conftest.", or (3) at the end.
  13124. # Note that $ac_compile itself does not contain backslashes and begins
  13125. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13126. # The option is referenced via a variable to avoid confusing sed.
  13127. lt_compile=`echo "$ac_compile" | $SED \
  13128. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13129. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13130. -e 's:$: $lt_compiler_flag:'`
  13131. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13132. (eval "$lt_compile" 2>conftest.err)
  13133. ac_status=$?
  13134. cat conftest.err >&5
  13135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13136. if (exit $ac_status) && test -s "$ac_outfile"; then
  13137. # The compiler can only warn and ignore the option if not recognized
  13138. # So say no if there are warnings other than the usual output.
  13139. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13140. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13141. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13142. lt_cv_prog_compiler_pic_works_CXX=yes
  13143. fi
  13144. fi
  13145. $RM conftest*
  13146. fi
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13148. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13149. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13150. case $lt_prog_compiler_pic_CXX in
  13151. "" | " "*) ;;
  13152. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13153. esac
  13154. else
  13155. lt_prog_compiler_pic_CXX=
  13156. lt_prog_compiler_can_build_shared_CXX=no
  13157. fi
  13158. fi
  13159. #
  13160. # Check to make sure the static flag actually works.
  13161. #
  13162. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13164. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13165. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13166. $as_echo_n "(cached) " >&6
  13167. else
  13168. lt_cv_prog_compiler_static_works_CXX=no
  13169. save_LDFLAGS=$LDFLAGS
  13170. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13171. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13172. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13173. # The linker can only warn and ignore the option if not recognized
  13174. # So say no if there are warnings
  13175. if test -s conftest.err; then
  13176. # Append any errors to the config.log.
  13177. cat conftest.err 1>&5
  13178. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13179. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13180. if diff conftest.exp conftest.er2 >/dev/null; then
  13181. lt_cv_prog_compiler_static_works_CXX=yes
  13182. fi
  13183. else
  13184. lt_cv_prog_compiler_static_works_CXX=yes
  13185. fi
  13186. fi
  13187. $RM -r conftest*
  13188. LDFLAGS=$save_LDFLAGS
  13189. fi
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13191. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13192. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13193. :
  13194. else
  13195. lt_prog_compiler_static_CXX=
  13196. fi
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13198. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13199. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13200. $as_echo_n "(cached) " >&6
  13201. else
  13202. lt_cv_prog_compiler_c_o_CXX=no
  13203. $RM -r conftest 2>/dev/null
  13204. mkdir conftest
  13205. cd conftest
  13206. mkdir out
  13207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13208. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13209. # Insert the option either (1) after the last *FLAGS variable, or
  13210. # (2) before a word containing "conftest.", or (3) at the end.
  13211. # Note that $ac_compile itself does not contain backslashes and begins
  13212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13213. lt_compile=`echo "$ac_compile" | $SED \
  13214. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13215. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13216. -e 's:$: $lt_compiler_flag:'`
  13217. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13218. (eval "$lt_compile" 2>out/conftest.err)
  13219. ac_status=$?
  13220. cat out/conftest.err >&5
  13221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13222. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13223. then
  13224. # The compiler can only warn and ignore the option if not recognized
  13225. # So say no if there are warnings
  13226. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13227. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13228. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13229. lt_cv_prog_compiler_c_o_CXX=yes
  13230. fi
  13231. fi
  13232. chmod u+w . 2>&5
  13233. $RM conftest*
  13234. # SGI C++ compiler will create directory out/ii_files/ for
  13235. # template instantiation
  13236. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13237. $RM out/* && rmdir out
  13238. cd ..
  13239. $RM -r conftest
  13240. $RM conftest*
  13241. fi
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13243. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13245. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13246. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13247. $as_echo_n "(cached) " >&6
  13248. else
  13249. lt_cv_prog_compiler_c_o_CXX=no
  13250. $RM -r conftest 2>/dev/null
  13251. mkdir conftest
  13252. cd conftest
  13253. mkdir out
  13254. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13255. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13256. # Insert the option either (1) after the last *FLAGS variable, or
  13257. # (2) before a word containing "conftest.", or (3) at the end.
  13258. # Note that $ac_compile itself does not contain backslashes and begins
  13259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13260. lt_compile=`echo "$ac_compile" | $SED \
  13261. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13262. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13263. -e 's:$: $lt_compiler_flag:'`
  13264. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13265. (eval "$lt_compile" 2>out/conftest.err)
  13266. ac_status=$?
  13267. cat out/conftest.err >&5
  13268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13269. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13270. then
  13271. # The compiler can only warn and ignore the option if not recognized
  13272. # So say no if there are warnings
  13273. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13274. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13275. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13276. lt_cv_prog_compiler_c_o_CXX=yes
  13277. fi
  13278. fi
  13279. chmod u+w . 2>&5
  13280. $RM conftest*
  13281. # SGI C++ compiler will create directory out/ii_files/ for
  13282. # template instantiation
  13283. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13284. $RM out/* && rmdir out
  13285. cd ..
  13286. $RM -r conftest
  13287. $RM conftest*
  13288. fi
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13290. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13291. hard_links=nottested
  13292. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13293. # do not overwrite the value of need_locks provided by the user
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13295. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13296. hard_links=yes
  13297. $RM conftest*
  13298. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13299. touch conftest.a
  13300. ln conftest.a conftest.b 2>&5 || hard_links=no
  13301. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13303. $as_echo "$hard_links" >&6; }
  13304. if test no = "$hard_links"; then
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13306. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13307. need_locks=warn
  13308. fi
  13309. else
  13310. need_locks=no
  13311. fi
  13312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13313. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13314. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13315. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13316. case $host_os in
  13317. aix[4-9]*)
  13318. # If we're using GNU nm, then we don't want the "-C" option.
  13319. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13320. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13321. # weak defined symbols like other global defined symbols, whereas
  13322. # GNU nm marks them as "W".
  13323. # While the 'weak' keyword is ignored in the Export File, we need
  13324. # it in the Import File for the 'aix-soname' feature, so we have
  13325. # to replace the "-B" option with "-P" for AIX nm.
  13326. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13327. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13328. else
  13329. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13330. fi
  13331. ;;
  13332. pw32*)
  13333. export_symbols_cmds_CXX=$ltdll_cmds
  13334. ;;
  13335. cygwin* | mingw* | cegcc*)
  13336. case $cc_basename in
  13337. cl*)
  13338. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13339. ;;
  13340. *)
  13341. 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'
  13342. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13343. ;;
  13344. esac
  13345. ;;
  13346. *)
  13347. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13348. ;;
  13349. esac
  13350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13351. $as_echo "$ld_shlibs_CXX" >&6; }
  13352. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13353. with_gnu_ld_CXX=$with_gnu_ld
  13354. #
  13355. # Do we need to explicitly link libc?
  13356. #
  13357. case "x$archive_cmds_need_lc_CXX" in
  13358. x|xyes)
  13359. # Assume -lc should be added
  13360. archive_cmds_need_lc_CXX=yes
  13361. if test yes,yes = "$GCC,$enable_shared"; then
  13362. case $archive_cmds_CXX in
  13363. *'~'*)
  13364. # FIXME: we may have to deal with multi-command sequences.
  13365. ;;
  13366. '$CC '*)
  13367. # Test whether the compiler implicitly links with -lc since on some
  13368. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13369. # to ld, don't add -lc before -lgcc.
  13370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13371. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13372. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13373. $as_echo_n "(cached) " >&6
  13374. else
  13375. $RM conftest*
  13376. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13377. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13378. (eval $ac_compile) 2>&5
  13379. ac_status=$?
  13380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13381. test $ac_status = 0; } 2>conftest.err; then
  13382. soname=conftest
  13383. lib=conftest
  13384. libobjs=conftest.$ac_objext
  13385. deplibs=
  13386. wl=$lt_prog_compiler_wl_CXX
  13387. pic_flag=$lt_prog_compiler_pic_CXX
  13388. compiler_flags=-v
  13389. linker_flags=-v
  13390. verstring=
  13391. output_objdir=.
  13392. libname=conftest
  13393. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13394. allow_undefined_flag_CXX=
  13395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13396. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13397. ac_status=$?
  13398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13399. test $ac_status = 0; }
  13400. then
  13401. lt_cv_archive_cmds_need_lc_CXX=no
  13402. else
  13403. lt_cv_archive_cmds_need_lc_CXX=yes
  13404. fi
  13405. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13406. else
  13407. cat conftest.err 1>&5
  13408. fi
  13409. $RM conftest*
  13410. fi
  13411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13412. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13413. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13414. ;;
  13415. esac
  13416. fi
  13417. ;;
  13418. esac
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13420. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13421. library_names_spec=
  13422. libname_spec='lib$name'
  13423. soname_spec=
  13424. shrext_cmds=.so
  13425. postinstall_cmds=
  13426. postuninstall_cmds=
  13427. finish_cmds=
  13428. finish_eval=
  13429. shlibpath_var=
  13430. shlibpath_overrides_runpath=unknown
  13431. version_type=none
  13432. dynamic_linker="$host_os ld.so"
  13433. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13434. need_lib_prefix=unknown
  13435. hardcode_into_libs=no
  13436. # when you set need_version to no, make sure it does not cause -set_version
  13437. # flags to be left without arguments
  13438. need_version=unknown
  13439. case $host_os in
  13440. aix3*)
  13441. version_type=linux # correct to gnu/linux during the next big refactor
  13442. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13443. shlibpath_var=LIBPATH
  13444. # AIX 3 has no versioning support, so we append a major version to the name.
  13445. soname_spec='$libname$release$shared_ext$major'
  13446. ;;
  13447. aix[4-9]*)
  13448. version_type=linux # correct to gnu/linux during the next big refactor
  13449. need_lib_prefix=no
  13450. need_version=no
  13451. hardcode_into_libs=yes
  13452. if test ia64 = "$host_cpu"; then
  13453. # AIX 5 supports IA64
  13454. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13455. shlibpath_var=LD_LIBRARY_PATH
  13456. else
  13457. # With GCC up to 2.95.x, collect2 would create an import file
  13458. # for dependence libraries. The import file would start with
  13459. # the line '#! .'. This would cause the generated library to
  13460. # depend on '.', always an invalid library. This was fixed in
  13461. # development snapshots of GCC prior to 3.0.
  13462. case $host_os in
  13463. aix4 | aix4.[01] | aix4.[01].*)
  13464. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13465. echo ' yes '
  13466. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13467. :
  13468. else
  13469. can_build_shared=no
  13470. fi
  13471. ;;
  13472. esac
  13473. # Using Import Files as archive members, it is possible to support
  13474. # filename-based versioning of shared library archives on AIX. While
  13475. # this would work for both with and without runtime linking, it will
  13476. # prevent static linking of such archives. So we do filename-based
  13477. # shared library versioning with .so extension only, which is used
  13478. # when both runtime linking and shared linking is enabled.
  13479. # Unfortunately, runtime linking may impact performance, so we do
  13480. # not want this to be the default eventually. Also, we use the
  13481. # versioned .so libs for executables only if there is the -brtl
  13482. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13483. # To allow for filename-based versioning support, we need to create
  13484. # libNAME.so.V as an archive file, containing:
  13485. # *) an Import File, referring to the versioned filename of the
  13486. # archive as well as the shared archive member, telling the
  13487. # bitwidth (32 or 64) of that shared object, and providing the
  13488. # list of exported symbols of that shared object, eventually
  13489. # decorated with the 'weak' keyword
  13490. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13491. # it being seen by the linker.
  13492. # At run time we better use the real file rather than another symlink,
  13493. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13494. case $with_aix_soname,$aix_use_runtimelinking in
  13495. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13496. # soname into executable. Probably we can add versioning support to
  13497. # collect2, so additional links can be useful in future.
  13498. aix,yes) # traditional libtool
  13499. dynamic_linker='AIX unversionable lib.so'
  13500. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13501. # instead of lib<name>.a to let people know that these are not
  13502. # typical AIX shared libraries.
  13503. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13504. ;;
  13505. aix,no) # traditional AIX only
  13506. dynamic_linker='AIX lib.a(lib.so.V)'
  13507. # We preserve .a as extension for shared libraries through AIX4.2
  13508. # and later when we are not doing run time linking.
  13509. library_names_spec='$libname$release.a $libname.a'
  13510. soname_spec='$libname$release$shared_ext$major'
  13511. ;;
  13512. svr4,*) # full svr4 only
  13513. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13514. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13515. # We do not specify a path in Import Files, so LIBPATH fires.
  13516. shlibpath_overrides_runpath=yes
  13517. ;;
  13518. *,yes) # both, prefer svr4
  13519. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13520. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13521. # unpreferred sharedlib libNAME.a needs extra handling
  13522. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13523. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13524. # We do not specify a path in Import Files, so LIBPATH fires.
  13525. shlibpath_overrides_runpath=yes
  13526. ;;
  13527. *,no) # both, prefer aix
  13528. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13529. library_names_spec='$libname$release.a $libname.a'
  13530. soname_spec='$libname$release$shared_ext$major'
  13531. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13532. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13533. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13534. ;;
  13535. esac
  13536. shlibpath_var=LIBPATH
  13537. fi
  13538. ;;
  13539. amigaos*)
  13540. case $host_cpu in
  13541. powerpc)
  13542. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13543. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13544. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13545. ;;
  13546. m68k)
  13547. library_names_spec='$libname.ixlibrary $libname.a'
  13548. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13549. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13550. ;;
  13551. esac
  13552. ;;
  13553. beos*)
  13554. library_names_spec='$libname$shared_ext'
  13555. dynamic_linker="$host_os ld.so"
  13556. shlibpath_var=LIBRARY_PATH
  13557. ;;
  13558. bsdi[45]*)
  13559. version_type=linux # correct to gnu/linux during the next big refactor
  13560. need_version=no
  13561. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13562. soname_spec='$libname$release$shared_ext$major'
  13563. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13564. shlibpath_var=LD_LIBRARY_PATH
  13565. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13566. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13567. # the default ld.so.conf also contains /usr/contrib/lib and
  13568. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13569. # libtool to hard-code these into programs
  13570. ;;
  13571. cygwin* | mingw* | pw32* | cegcc*)
  13572. version_type=windows
  13573. shrext_cmds=.dll
  13574. need_version=no
  13575. need_lib_prefix=no
  13576. case $GCC,$cc_basename in
  13577. yes,*)
  13578. # gcc
  13579. library_names_spec='$libname.dll.a'
  13580. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13581. postinstall_cmds='base_file=`basename \$file`~
  13582. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13583. dldir=$destdir/`dirname \$dlpath`~
  13584. test -d \$dldir || mkdir -p \$dldir~
  13585. $install_prog $dir/$dlname \$dldir/$dlname~
  13586. chmod a+x \$dldir/$dlname~
  13587. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13588. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13589. fi'
  13590. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13591. dlpath=$dir/\$dldll~
  13592. $RM \$dlpath'
  13593. shlibpath_overrides_runpath=yes
  13594. case $host_os in
  13595. cygwin*)
  13596. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13597. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13598. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13599. ;;
  13600. mingw* | cegcc*)
  13601. # MinGW DLLs use traditional 'lib' prefix
  13602. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13603. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13604. ;;
  13605. pw32*)
  13606. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13607. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13608. ;;
  13609. esac
  13610. dynamic_linker='Win32 ld.exe'
  13611. ;;
  13612. *,cl*)
  13613. # Native MSVC
  13614. libname_spec='$name'
  13615. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13616. library_names_spec='$libname.dll.lib'
  13617. case $build_os in
  13618. mingw*)
  13619. sys_lib_search_path_spec=
  13620. lt_save_ifs=$IFS
  13621. IFS=';'
  13622. for lt_path in $LIB
  13623. do
  13624. IFS=$lt_save_ifs
  13625. # Let DOS variable expansion print the short 8.3 style file name.
  13626. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13627. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13628. done
  13629. IFS=$lt_save_ifs
  13630. # Convert to MSYS style.
  13631. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13632. ;;
  13633. cygwin*)
  13634. # Convert to unix form, then to dos form, then back to unix form
  13635. # but this time dos style (no spaces!) so that the unix form looks
  13636. # like /cygdrive/c/PROGRA~1:/cygdr...
  13637. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13638. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13639. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13640. ;;
  13641. *)
  13642. sys_lib_search_path_spec=$LIB
  13643. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13644. # It is most probably a Windows format PATH.
  13645. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13646. else
  13647. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13648. fi
  13649. # FIXME: find the short name or the path components, as spaces are
  13650. # common. (e.g. "Program Files" -> "PROGRA~1")
  13651. ;;
  13652. esac
  13653. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13654. postinstall_cmds='base_file=`basename \$file`~
  13655. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13656. dldir=$destdir/`dirname \$dlpath`~
  13657. test -d \$dldir || mkdir -p \$dldir~
  13658. $install_prog $dir/$dlname \$dldir/$dlname'
  13659. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13660. dlpath=$dir/\$dldll~
  13661. $RM \$dlpath'
  13662. shlibpath_overrides_runpath=yes
  13663. dynamic_linker='Win32 link.exe'
  13664. ;;
  13665. *)
  13666. # Assume MSVC wrapper
  13667. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13668. dynamic_linker='Win32 ld.exe'
  13669. ;;
  13670. esac
  13671. # FIXME: first we should search . and the directory the executable is in
  13672. shlibpath_var=PATH
  13673. ;;
  13674. darwin* | rhapsody*)
  13675. dynamic_linker="$host_os dyld"
  13676. version_type=darwin
  13677. need_lib_prefix=no
  13678. need_version=no
  13679. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13680. soname_spec='$libname$release$major$shared_ext'
  13681. shlibpath_overrides_runpath=yes
  13682. shlibpath_var=DYLD_LIBRARY_PATH
  13683. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13684. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13685. ;;
  13686. dgux*)
  13687. version_type=linux # correct to gnu/linux during the next big refactor
  13688. need_lib_prefix=no
  13689. need_version=no
  13690. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13691. soname_spec='$libname$release$shared_ext$major'
  13692. shlibpath_var=LD_LIBRARY_PATH
  13693. ;;
  13694. freebsd* | dragonfly* | midnightbsd*)
  13695. # DragonFly does not have aout. When/if they implement a new
  13696. # versioning mechanism, adjust this.
  13697. if test -x /usr/bin/objformat; then
  13698. objformat=`/usr/bin/objformat`
  13699. else
  13700. case $host_os in
  13701. freebsd[23].*) objformat=aout ;;
  13702. *) objformat=elf ;;
  13703. esac
  13704. fi
  13705. version_type=freebsd-$objformat
  13706. case $version_type in
  13707. freebsd-elf*)
  13708. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13709. soname_spec='$libname$release$shared_ext$major'
  13710. need_version=no
  13711. need_lib_prefix=no
  13712. ;;
  13713. freebsd-*)
  13714. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13715. need_version=yes
  13716. ;;
  13717. esac
  13718. shlibpath_var=LD_LIBRARY_PATH
  13719. case $host_os in
  13720. freebsd2.*)
  13721. shlibpath_overrides_runpath=yes
  13722. ;;
  13723. freebsd3.[01]* | freebsdelf3.[01]*)
  13724. shlibpath_overrides_runpath=yes
  13725. hardcode_into_libs=yes
  13726. ;;
  13727. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13728. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13729. shlibpath_overrides_runpath=no
  13730. hardcode_into_libs=yes
  13731. ;;
  13732. *) # from 4.6 on, and DragonFly
  13733. shlibpath_overrides_runpath=yes
  13734. hardcode_into_libs=yes
  13735. ;;
  13736. esac
  13737. ;;
  13738. haiku*)
  13739. version_type=linux # correct to gnu/linux during the next big refactor
  13740. need_lib_prefix=no
  13741. need_version=no
  13742. dynamic_linker="$host_os runtime_loader"
  13743. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13744. soname_spec='$libname$release$shared_ext$major'
  13745. shlibpath_var=LIBRARY_PATH
  13746. shlibpath_overrides_runpath=no
  13747. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13748. hardcode_into_libs=yes
  13749. ;;
  13750. hpux9* | hpux10* | hpux11*)
  13751. # Give a soname corresponding to the major version so that dld.sl refuses to
  13752. # link against other versions.
  13753. version_type=sunos
  13754. need_lib_prefix=no
  13755. need_version=no
  13756. case $host_cpu in
  13757. ia64*)
  13758. shrext_cmds='.so'
  13759. hardcode_into_libs=yes
  13760. dynamic_linker="$host_os dld.so"
  13761. shlibpath_var=LD_LIBRARY_PATH
  13762. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13764. soname_spec='$libname$release$shared_ext$major'
  13765. if test 32 = "$HPUX_IA64_MODE"; then
  13766. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13767. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13768. else
  13769. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13770. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13771. fi
  13772. ;;
  13773. hppa*64*)
  13774. shrext_cmds='.sl'
  13775. hardcode_into_libs=yes
  13776. dynamic_linker="$host_os dld.sl"
  13777. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13778. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13779. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13780. soname_spec='$libname$release$shared_ext$major'
  13781. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13782. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13783. ;;
  13784. *)
  13785. shrext_cmds='.sl'
  13786. dynamic_linker="$host_os dld.sl"
  13787. shlibpath_var=SHLIB_PATH
  13788. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13789. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13790. soname_spec='$libname$release$shared_ext$major'
  13791. ;;
  13792. esac
  13793. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13794. postinstall_cmds='chmod 555 $lib'
  13795. # or fails outright, so override atomically:
  13796. install_override_mode=555
  13797. ;;
  13798. interix[3-9]*)
  13799. version_type=linux # correct to gnu/linux during the next big refactor
  13800. need_lib_prefix=no
  13801. need_version=no
  13802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13803. soname_spec='$libname$release$shared_ext$major'
  13804. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13805. shlibpath_var=LD_LIBRARY_PATH
  13806. shlibpath_overrides_runpath=no
  13807. hardcode_into_libs=yes
  13808. ;;
  13809. irix5* | irix6* | nonstopux*)
  13810. case $host_os in
  13811. nonstopux*) version_type=nonstopux ;;
  13812. *)
  13813. if test yes = "$lt_cv_prog_gnu_ld"; then
  13814. version_type=linux # correct to gnu/linux during the next big refactor
  13815. else
  13816. version_type=irix
  13817. fi ;;
  13818. esac
  13819. need_lib_prefix=no
  13820. need_version=no
  13821. soname_spec='$libname$release$shared_ext$major'
  13822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13823. case $host_os in
  13824. irix5* | nonstopux*)
  13825. libsuff= shlibsuff=
  13826. ;;
  13827. *)
  13828. case $LD in # libtool.m4 will add one of these switches to LD
  13829. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13830. libsuff= shlibsuff= libmagic=32-bit;;
  13831. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13832. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13833. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13834. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13835. *) libsuff= shlibsuff= libmagic=never-match;;
  13836. esac
  13837. ;;
  13838. esac
  13839. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13840. shlibpath_overrides_runpath=no
  13841. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13842. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13843. hardcode_into_libs=yes
  13844. ;;
  13845. # No shared lib support for Linux oldld, aout, or coff.
  13846. linux*oldld* | linux*aout* | linux*coff*)
  13847. dynamic_linker=no
  13848. ;;
  13849. linux*android*)
  13850. version_type=none # Android doesn't support versioned libraries.
  13851. need_lib_prefix=no
  13852. need_version=no
  13853. library_names_spec='$libname$release$shared_ext'
  13854. soname_spec='$libname$release$shared_ext'
  13855. finish_cmds=
  13856. shlibpath_var=LD_LIBRARY_PATH
  13857. shlibpath_overrides_runpath=yes
  13858. # This implies no fast_install, which is unacceptable.
  13859. # Some rework will be needed to allow for fast_install
  13860. # before this can be enabled.
  13861. hardcode_into_libs=yes
  13862. dynamic_linker='Android linker'
  13863. # Don't embed -rpath directories since the linker doesn't support them.
  13864. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13865. ;;
  13866. # This must be glibc/ELF.
  13867. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13868. version_type=linux # correct to gnu/linux during the next big refactor
  13869. need_lib_prefix=no
  13870. need_version=no
  13871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13872. soname_spec='$libname$release$shared_ext$major'
  13873. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13874. shlibpath_var=LD_LIBRARY_PATH
  13875. shlibpath_overrides_runpath=no
  13876. # Some binutils ld are patched to set DT_RUNPATH
  13877. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13878. $as_echo_n "(cached) " >&6
  13879. else
  13880. lt_cv_shlibpath_overrides_runpath=no
  13881. save_LDFLAGS=$LDFLAGS
  13882. save_libdir=$libdir
  13883. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13884. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13886. /* end confdefs.h. */
  13887. int
  13888. main ()
  13889. {
  13890. ;
  13891. return 0;
  13892. }
  13893. _ACEOF
  13894. if ac_fn_cxx_try_link "$LINENO"; then :
  13895. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13896. lt_cv_shlibpath_overrides_runpath=yes
  13897. fi
  13898. fi
  13899. rm -f core conftest.err conftest.$ac_objext \
  13900. conftest$ac_exeext conftest.$ac_ext
  13901. LDFLAGS=$save_LDFLAGS
  13902. libdir=$save_libdir
  13903. fi
  13904. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13905. # This implies no fast_install, which is unacceptable.
  13906. # Some rework will be needed to allow for fast_install
  13907. # before this can be enabled.
  13908. hardcode_into_libs=yes
  13909. # Add ABI-specific directories to the system library path.
  13910. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13911. # Ideally, we could use ldconfig to report *all* directores which are
  13912. # searched for libraries, however this is still not possible. Aside from not
  13913. # being certain /sbin/ldconfig is available, command
  13914. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13915. # even though it is searched at run-time. Try to do the best guess by
  13916. # appending ld.so.conf contents (and includes) to the search path.
  13917. if test -f /etc/ld.so.conf; then
  13918. 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' ' '`
  13919. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13920. fi
  13921. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13922. # powerpc, because MkLinux only supported shared libraries with the
  13923. # GNU dynamic linker. Since this was broken with cross compilers,
  13924. # most powerpc-linux boxes support dynamic linking these days and
  13925. # people can always --disable-shared, the test was removed, and we
  13926. # assume the GNU/Linux dynamic linker is in use.
  13927. dynamic_linker='GNU/Linux ld.so'
  13928. ;;
  13929. netbsd*)
  13930. version_type=sunos
  13931. need_lib_prefix=no
  13932. need_version=no
  13933. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13934. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13935. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13936. dynamic_linker='NetBSD (a.out) ld.so'
  13937. else
  13938. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13939. soname_spec='$libname$release$shared_ext$major'
  13940. dynamic_linker='NetBSD ld.elf_so'
  13941. fi
  13942. shlibpath_var=LD_LIBRARY_PATH
  13943. shlibpath_overrides_runpath=yes
  13944. hardcode_into_libs=yes
  13945. ;;
  13946. newsos6)
  13947. version_type=linux # correct to gnu/linux during the next big refactor
  13948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13949. shlibpath_var=LD_LIBRARY_PATH
  13950. shlibpath_overrides_runpath=yes
  13951. ;;
  13952. *nto* | *qnx*)
  13953. version_type=qnx
  13954. need_lib_prefix=no
  13955. need_version=no
  13956. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13957. soname_spec='$libname$release$shared_ext$major'
  13958. shlibpath_var=LD_LIBRARY_PATH
  13959. shlibpath_overrides_runpath=no
  13960. hardcode_into_libs=yes
  13961. dynamic_linker='ldqnx.so'
  13962. ;;
  13963. openbsd* | bitrig*)
  13964. version_type=sunos
  13965. sys_lib_dlsearch_path_spec=/usr/lib
  13966. need_lib_prefix=no
  13967. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13968. need_version=no
  13969. else
  13970. need_version=yes
  13971. fi
  13972. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13974. shlibpath_var=LD_LIBRARY_PATH
  13975. shlibpath_overrides_runpath=yes
  13976. ;;
  13977. os2*)
  13978. libname_spec='$name'
  13979. shrext_cmds=.dll
  13980. need_lib_prefix=no
  13981. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13982. # SDL customization: removed versioning support.
  13983. # version_type=windows
  13984. # need_version=no
  13985. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13986. # v=$($ECHO $release$versuffix | tr -d .-);
  13987. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13988. # $ECHO $n$v`$shared_ext'
  13989. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13990. library_names_spec='${libname}_dll.$libext'
  13991. dynamic_linker='OS/2 ld.exe'
  13992. shlibpath_var=BEGINLIBPATH
  13993. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13994. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13995. postinstall_cmds='base_file=`basename \$file`~
  13996. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13997. dldir=$destdir/`dirname \$dlpath`~
  13998. test -d \$dldir || mkdir -p \$dldir~
  13999. $install_prog $dir/$dlname \$dldir/$dlname~
  14000. chmod a+x \$dldir/$dlname~
  14001. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14002. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14003. fi'
  14004. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14005. dlpath=$dir/\$dldll~
  14006. $RM \$dlpath'
  14007. ;;
  14008. osf3* | osf4* | osf5*)
  14009. version_type=osf
  14010. need_lib_prefix=no
  14011. need_version=no
  14012. soname_spec='$libname$release$shared_ext$major'
  14013. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14014. shlibpath_var=LD_LIBRARY_PATH
  14015. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14016. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14017. ;;
  14018. rdos*)
  14019. dynamic_linker=no
  14020. ;;
  14021. solaris*)
  14022. version_type=linux # correct to gnu/linux during the next big refactor
  14023. need_lib_prefix=no
  14024. need_version=no
  14025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14026. soname_spec='$libname$release$shared_ext$major'
  14027. shlibpath_var=LD_LIBRARY_PATH
  14028. shlibpath_overrides_runpath=yes
  14029. hardcode_into_libs=yes
  14030. # ldd complains unless libraries are executable
  14031. postinstall_cmds='chmod +x $lib'
  14032. ;;
  14033. sunos4*)
  14034. version_type=sunos
  14035. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14036. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14037. shlibpath_var=LD_LIBRARY_PATH
  14038. shlibpath_overrides_runpath=yes
  14039. if test yes = "$with_gnu_ld"; then
  14040. need_lib_prefix=no
  14041. fi
  14042. need_version=yes
  14043. ;;
  14044. sysv4 | sysv4.3*)
  14045. version_type=linux # correct to gnu/linux during the next big refactor
  14046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14047. soname_spec='$libname$release$shared_ext$major'
  14048. shlibpath_var=LD_LIBRARY_PATH
  14049. case $host_vendor in
  14050. sni)
  14051. shlibpath_overrides_runpath=no
  14052. need_lib_prefix=no
  14053. runpath_var=LD_RUN_PATH
  14054. ;;
  14055. siemens)
  14056. need_lib_prefix=no
  14057. ;;
  14058. motorola)
  14059. need_lib_prefix=no
  14060. need_version=no
  14061. shlibpath_overrides_runpath=no
  14062. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14063. ;;
  14064. esac
  14065. ;;
  14066. sysv4*MP*)
  14067. if test -d /usr/nec; then
  14068. version_type=linux # correct to gnu/linux during the next big refactor
  14069. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14070. soname_spec='$libname$shared_ext.$major'
  14071. shlibpath_var=LD_LIBRARY_PATH
  14072. fi
  14073. ;;
  14074. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14075. version_type=sco
  14076. need_lib_prefix=no
  14077. need_version=no
  14078. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14079. soname_spec='$libname$release$shared_ext$major'
  14080. shlibpath_var=LD_LIBRARY_PATH
  14081. shlibpath_overrides_runpath=yes
  14082. hardcode_into_libs=yes
  14083. if test yes = "$with_gnu_ld"; then
  14084. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14085. else
  14086. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14087. case $host_os in
  14088. sco3.2v5*)
  14089. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14090. ;;
  14091. esac
  14092. fi
  14093. sys_lib_dlsearch_path_spec='/usr/lib'
  14094. ;;
  14095. tpf*)
  14096. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14097. version_type=linux # correct to gnu/linux during the next big refactor
  14098. need_lib_prefix=no
  14099. need_version=no
  14100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14101. shlibpath_var=LD_LIBRARY_PATH
  14102. shlibpath_overrides_runpath=no
  14103. hardcode_into_libs=yes
  14104. ;;
  14105. uts4*)
  14106. version_type=linux # correct to gnu/linux during the next big refactor
  14107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14108. soname_spec='$libname$release$shared_ext$major'
  14109. shlibpath_var=LD_LIBRARY_PATH
  14110. ;;
  14111. *)
  14112. dynamic_linker=no
  14113. ;;
  14114. esac
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14116. $as_echo "$dynamic_linker" >&6; }
  14117. test no = "$dynamic_linker" && can_build_shared=no
  14118. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14119. if test yes = "$GCC"; then
  14120. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14121. fi
  14122. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14123. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14124. fi
  14125. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14126. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14127. fi
  14128. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14129. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14130. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14131. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14132. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14133. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14135. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14136. hardcode_action_CXX=
  14137. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14138. test -n "$runpath_var_CXX" ||
  14139. test yes = "$hardcode_automatic_CXX"; then
  14140. # We can hardcode non-existent directories.
  14141. if test no != "$hardcode_direct_CXX" &&
  14142. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14143. # have to relink, otherwise we might link with an installed library
  14144. # when we should be linking with a yet-to-be-installed one
  14145. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14146. test no != "$hardcode_minus_L_CXX"; then
  14147. # Linking always hardcodes the temporary library directory.
  14148. hardcode_action_CXX=relink
  14149. else
  14150. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14151. hardcode_action_CXX=immediate
  14152. fi
  14153. else
  14154. # We cannot hardcode anything, or else we can only hardcode existing
  14155. # directories.
  14156. hardcode_action_CXX=unsupported
  14157. fi
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14159. $as_echo "$hardcode_action_CXX" >&6; }
  14160. if test relink = "$hardcode_action_CXX" ||
  14161. test yes = "$inherit_rpath_CXX"; then
  14162. # Fast installation is not supported
  14163. enable_fast_install=no
  14164. elif test yes = "$shlibpath_overrides_runpath" ||
  14165. test no = "$enable_shared"; then
  14166. # Fast installation is not necessary
  14167. enable_fast_install=needless
  14168. fi
  14169. fi # test -n "$compiler"
  14170. CC=$lt_save_CC
  14171. CFLAGS=$lt_save_CFLAGS
  14172. LDCXX=$LD
  14173. LD=$lt_save_LD
  14174. GCC=$lt_save_GCC
  14175. with_gnu_ld=$lt_save_with_gnu_ld
  14176. lt_cv_path_LDCXX=$lt_cv_path_LD
  14177. lt_cv_path_LD=$lt_save_path_LD
  14178. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14179. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14180. fi # test yes != "$_lt_caught_CXX_error"
  14181. ac_ext=c
  14182. ac_cpp='$CPP $CPPFLAGS'
  14183. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14184. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14185. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14186. # Find a good install program. We prefer a C program (faster),
  14187. # so one script is as good as another. But avoid the broken or
  14188. # incompatible versions:
  14189. # SysV /etc/install, /usr/sbin/install
  14190. # SunOS /usr/etc/install
  14191. # IRIX /sbin/install
  14192. # AIX /bin/install
  14193. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14194. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14195. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14196. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14197. # OS/2's system install, which has a completely different semantic
  14198. # ./install, which can be erroneously created by make from ./install.sh.
  14199. # Reject install programs that cannot install multiple files.
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14201. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14202. if test -z "$INSTALL"; then
  14203. if ${ac_cv_path_install+:} false; then :
  14204. $as_echo_n "(cached) " >&6
  14205. else
  14206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14207. for as_dir in $PATH
  14208. do
  14209. IFS=$as_save_IFS
  14210. test -z "$as_dir" && as_dir=.
  14211. # Account for people who put trailing slashes in PATH elements.
  14212. case $as_dir/ in #((
  14213. ./ | .// | /[cC]/* | \
  14214. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14215. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14216. /usr/ucb/* ) ;;
  14217. *)
  14218. # OSF1 and SCO ODT 3.0 have their own names for install.
  14219. # Don't use installbsd from OSF since it installs stuff as root
  14220. # by default.
  14221. for ac_prog in ginstall scoinst install; do
  14222. for ac_exec_ext in '' $ac_executable_extensions; do
  14223. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14224. if test $ac_prog = install &&
  14225. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14226. # AIX install. It has an incompatible calling convention.
  14227. :
  14228. elif test $ac_prog = install &&
  14229. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14230. # program-specific install script used by HP pwplus--don't use.
  14231. :
  14232. else
  14233. rm -rf conftest.one conftest.two conftest.dir
  14234. echo one > conftest.one
  14235. echo two > conftest.two
  14236. mkdir conftest.dir
  14237. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14238. test -s conftest.one && test -s conftest.two &&
  14239. test -s conftest.dir/conftest.one &&
  14240. test -s conftest.dir/conftest.two
  14241. then
  14242. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14243. break 3
  14244. fi
  14245. fi
  14246. fi
  14247. done
  14248. done
  14249. ;;
  14250. esac
  14251. done
  14252. IFS=$as_save_IFS
  14253. rm -rf conftest.one conftest.two conftest.dir
  14254. fi
  14255. if test "${ac_cv_path_install+set}" = set; then
  14256. INSTALL=$ac_cv_path_install
  14257. else
  14258. # As a last resort, use the slow shell script. Don't cache a
  14259. # value for INSTALL within a source directory, because that will
  14260. # break other packages using the cache if that directory is
  14261. # removed, or if the value is a relative name.
  14262. INSTALL=$ac_install_sh
  14263. fi
  14264. fi
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14266. $as_echo "$INSTALL" >&6; }
  14267. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14268. # It thinks the first close brace ends the variable substitution.
  14269. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14270. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14271. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14273. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14274. set x ${MAKE-make}
  14275. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14276. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. cat >conftest.make <<\_ACEOF
  14280. SHELL = /bin/sh
  14281. all:
  14282. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14283. _ACEOF
  14284. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14285. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14286. *@@@%%%=?*=@@@%%%*)
  14287. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14288. *)
  14289. eval ac_cv_prog_make_${ac_make}_set=no;;
  14290. esac
  14291. rm -f conftest.make
  14292. fi
  14293. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14295. $as_echo "yes" >&6; }
  14296. SET_MAKE=
  14297. else
  14298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14299. $as_echo "no" >&6; }
  14300. SET_MAKE="MAKE=${MAKE-make}"
  14301. fi
  14302. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14303. if test -n "$ac_tool_prefix"; then
  14304. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14305. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14307. $as_echo_n "checking for $ac_word... " >&6; }
  14308. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14309. $as_echo_n "(cached) " >&6
  14310. else
  14311. case $PKG_CONFIG in
  14312. [\\/]* | ?:[\\/]*)
  14313. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14314. ;;
  14315. *)
  14316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14317. for as_dir in $PATH
  14318. do
  14319. IFS=$as_save_IFS
  14320. test -z "$as_dir" && as_dir=.
  14321. for ac_exec_ext in '' $ac_executable_extensions; do
  14322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14323. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14325. break 2
  14326. fi
  14327. done
  14328. done
  14329. IFS=$as_save_IFS
  14330. ;;
  14331. esac
  14332. fi
  14333. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14334. if test -n "$PKG_CONFIG"; then
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14336. $as_echo "$PKG_CONFIG" >&6; }
  14337. else
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14339. $as_echo "no" >&6; }
  14340. fi
  14341. fi
  14342. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14343. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14344. # Extract the first word of "pkg-config", so it can be a program name with args.
  14345. set dummy pkg-config; ac_word=$2
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14347. $as_echo_n "checking for $ac_word... " >&6; }
  14348. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14349. $as_echo_n "(cached) " >&6
  14350. else
  14351. case $ac_pt_PKG_CONFIG in
  14352. [\\/]* | ?:[\\/]*)
  14353. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14354. ;;
  14355. *)
  14356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14357. for as_dir in $PATH
  14358. do
  14359. IFS=$as_save_IFS
  14360. test -z "$as_dir" && as_dir=.
  14361. for ac_exec_ext in '' $ac_executable_extensions; do
  14362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14363. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14365. break 2
  14366. fi
  14367. done
  14368. done
  14369. IFS=$as_save_IFS
  14370. ;;
  14371. esac
  14372. fi
  14373. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14374. if test -n "$ac_pt_PKG_CONFIG"; then
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14376. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14377. else
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14379. $as_echo "no" >&6; }
  14380. fi
  14381. if test "x$ac_pt_PKG_CONFIG" = x; then
  14382. PKG_CONFIG=""
  14383. else
  14384. case $cross_compiling:$ac_tool_warned in
  14385. yes:)
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14387. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14388. ac_tool_warned=yes ;;
  14389. esac
  14390. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14391. fi
  14392. else
  14393. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14394. fi
  14395. fi
  14396. if test -n "$PKG_CONFIG"; then
  14397. _pkg_min_version=0.9.0
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14399. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14400. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14402. $as_echo "yes" >&6; }
  14403. else
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14405. $as_echo "no" >&6; }
  14406. PKG_CONFIG=""
  14407. fi
  14408. fi
  14409. case "$host" in
  14410. *-*-mingw*)
  14411. # Except on msys, where make can't handle full pathnames (bug 1972)
  14412. ;;
  14413. *)
  14414. srcdir=`cd $srcdir && pwd`
  14415. ;;
  14416. esac
  14417. INCLUDE="-I$srcdir/include"
  14418. case "$host" in
  14419. *-*-nto-qnx*)
  14420. ;;
  14421. *)
  14422. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14423. ;;
  14424. esac
  14425. case "$host" in
  14426. *-*-haiku*)
  14427. LINKER='$(CXX)'
  14428. LIBTOOLLINKERTAG='CXX'
  14429. ;;
  14430. *)
  14431. LINKER='$(CC)'
  14432. LIBTOOLLINKERTAG='CC'
  14433. ;;
  14434. esac
  14435. if test x$srcdir != x.; then
  14436. INCLUDE="-Iinclude $INCLUDE"
  14437. elif test -d .git; then
  14438. as_fn_error $? "
  14439. *** When building from a git clone you should configure and build in a
  14440. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14441. " "$LINENO" 5
  14442. fi
  14443. BASE_CFLAGS=""
  14444. BASE_LDFLAGS=""
  14445. case "$host" in
  14446. *-*-cygwin*)
  14447. # We build SDL on cygwin without the UNIX emulation layer
  14448. save_CFLAGS="$CFLAGS"
  14449. have_no_cygwin=no
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14451. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14452. CFLAGS="$save_CFLAGS -mno-cygwin"
  14453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14454. /* end confdefs.h. */
  14455. int
  14456. main ()
  14457. {
  14458. ;
  14459. return 0;
  14460. }
  14461. _ACEOF
  14462. if ac_fn_c_try_compile "$LINENO"; then :
  14463. have_no_cygwin=yes
  14464. fi
  14465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14467. $as_echo "$have_no_cygwin" >&6; }
  14468. CFLAGS="$save_CFLAGS"
  14469. if test x$have_no_cygwin = xyes; then
  14470. BASE_CFLAGS="-mno-cygwin"
  14471. BASE_LDFLAGS="-mno-cygwin"
  14472. fi
  14473. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14474. ;;
  14475. esac
  14476. # Uncomment the following line if you want to force SDL and applications
  14477. # built with it to be compiled for a particular architecture.
  14478. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14479. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14480. # The default optimization for SDL is -O3 (Bug #31)
  14481. if test "x$orig_CFLAGS" = x; then
  14482. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14483. fi
  14484. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14485. BUILD_LDFLAGS="$LDFLAGS"
  14486. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14487. ## These are common directories to find software packages
  14488. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14489. # if test -d $path/include; then
  14490. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14491. # fi
  14492. # if test -d $path/lib; then
  14493. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14494. # fi
  14495. #done
  14496. SDL_CFLAGS="$BASE_CFLAGS"
  14497. SDL_LIBS="-lSDL2"
  14498. if test "x$BASE_LDFLAGS" != x; then
  14499. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14500. fi
  14501. if test "x$EXTRA_CFLAGS" != x; then
  14502. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14503. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14504. fi
  14505. if test "x$EXTRA_LDFLAGS" != x; then
  14506. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14507. fi
  14508. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14509. find_lib()
  14510. {
  14511. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14512. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14513. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14514. if test "$cross_compiling" = yes; then
  14515. host_lib_path=""
  14516. else
  14517. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14518. fi
  14519. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14520. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14521. if test x$lib != x; then
  14522. echo $lib
  14523. return
  14524. fi
  14525. done
  14526. # Try again, this time allowing more than one version digit after the .so
  14527. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14528. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14529. if test x$lib != x; then
  14530. echo $lib
  14531. return
  14532. fi
  14533. done
  14534. }
  14535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14536. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14537. if ${ac_cv_c_const+:} false; then :
  14538. $as_echo_n "(cached) " >&6
  14539. else
  14540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14541. /* end confdefs.h. */
  14542. int
  14543. main ()
  14544. {
  14545. #ifndef __cplusplus
  14546. /* Ultrix mips cc rejects this sort of thing. */
  14547. typedef int charset[2];
  14548. const charset cs = { 0, 0 };
  14549. /* SunOS 4.1.1 cc rejects this. */
  14550. char const *const *pcpcc;
  14551. char **ppc;
  14552. /* NEC SVR4.0.2 mips cc rejects this. */
  14553. struct point {int x, y;};
  14554. static struct point const zero = {0,0};
  14555. /* AIX XL C 1.02.0.0 rejects this.
  14556. It does not let you subtract one const X* pointer from another in
  14557. an arm of an if-expression whose if-part is not a constant
  14558. expression */
  14559. const char *g = "string";
  14560. pcpcc = &g + (g ? g-g : 0);
  14561. /* HPUX 7.0 cc rejects these. */
  14562. ++pcpcc;
  14563. ppc = (char**) pcpcc;
  14564. pcpcc = (char const *const *) ppc;
  14565. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14566. char tx;
  14567. char *t = &tx;
  14568. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14569. *t++ = 0;
  14570. if (s) return 0;
  14571. }
  14572. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14573. int x[] = {25, 17};
  14574. const int *foo = &x[0];
  14575. ++foo;
  14576. }
  14577. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14578. typedef const int *iptr;
  14579. iptr p = 0;
  14580. ++p;
  14581. }
  14582. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14583. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14584. struct s { int j; const int *ap[3]; } bx;
  14585. struct s *b = &bx; b->j = 5;
  14586. }
  14587. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14588. const int foo = 10;
  14589. if (!foo) return 0;
  14590. }
  14591. return !cs[0] && !zero.x;
  14592. #endif
  14593. ;
  14594. return 0;
  14595. }
  14596. _ACEOF
  14597. if ac_fn_c_try_compile "$LINENO"; then :
  14598. ac_cv_c_const=yes
  14599. else
  14600. ac_cv_c_const=no
  14601. fi
  14602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14603. fi
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14605. $as_echo "$ac_cv_c_const" >&6; }
  14606. if test $ac_cv_c_const = no; then
  14607. $as_echo "#define const /**/" >>confdefs.h
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14610. $as_echo_n "checking for inline... " >&6; }
  14611. if ${ac_cv_c_inline+:} false; then :
  14612. $as_echo_n "(cached) " >&6
  14613. else
  14614. ac_cv_c_inline=no
  14615. for ac_kw in inline __inline__ __inline; do
  14616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14617. /* end confdefs.h. */
  14618. #ifndef __cplusplus
  14619. typedef int foo_t;
  14620. static $ac_kw foo_t static_foo () {return 0; }
  14621. $ac_kw foo_t foo () {return 0; }
  14622. #endif
  14623. _ACEOF
  14624. if ac_fn_c_try_compile "$LINENO"; then :
  14625. ac_cv_c_inline=$ac_kw
  14626. fi
  14627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14628. test "$ac_cv_c_inline" != no && break
  14629. done
  14630. fi
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14632. $as_echo "$ac_cv_c_inline" >&6; }
  14633. case $ac_cv_c_inline in
  14634. inline | yes) ;;
  14635. *)
  14636. case $ac_cv_c_inline in
  14637. no) ac_val=;;
  14638. *) ac_val=$ac_cv_c_inline;;
  14639. esac
  14640. cat >>confdefs.h <<_ACEOF
  14641. #ifndef __cplusplus
  14642. #define inline $ac_val
  14643. #endif
  14644. _ACEOF
  14645. ;;
  14646. esac
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14648. $as_echo_n "checking for working volatile... " >&6; }
  14649. if ${ac_cv_c_volatile+:} false; then :
  14650. $as_echo_n "(cached) " >&6
  14651. else
  14652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14653. /* end confdefs.h. */
  14654. int
  14655. main ()
  14656. {
  14657. volatile int x;
  14658. int * volatile y = (int *) 0;
  14659. return !x && !y;
  14660. ;
  14661. return 0;
  14662. }
  14663. _ACEOF
  14664. if ac_fn_c_try_compile "$LINENO"; then :
  14665. ac_cv_c_volatile=yes
  14666. else
  14667. ac_cv_c_volatile=no
  14668. fi
  14669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14670. fi
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14672. $as_echo "$ac_cv_c_volatile" >&6; }
  14673. if test $ac_cv_c_volatile = no; then
  14674. $as_echo "#define volatile /**/" >>confdefs.h
  14675. fi
  14676. # Check whether --enable-assertions was given.
  14677. if test "${enable_assertions+set}" = set; then :
  14678. enableval=$enable_assertions;
  14679. else
  14680. enable_assertions=auto
  14681. fi
  14682. case "$enable_assertions" in
  14683. auto) # Use optimization settings to determine assertion level
  14684. ;;
  14685. disabled)
  14686. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14687. ;;
  14688. release)
  14689. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14690. ;;
  14691. enabled)
  14692. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14693. ;;
  14694. paranoid)
  14695. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14696. ;;
  14697. *)
  14698. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14699. ;;
  14700. esac
  14701. # Check whether --enable-dependency-tracking was given.
  14702. if test "${enable_dependency_tracking+set}" = set; then :
  14703. enableval=$enable_dependency_tracking;
  14704. else
  14705. enable_dependency_tracking=yes
  14706. fi
  14707. if test x$enable_dependency_tracking = xyes; then
  14708. have_gcc_mmd_mt=no
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14710. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14712. /* end confdefs.h. */
  14713. #if !defined(__GNUC__) || __GNUC__ < 3
  14714. #error Dependency tracking requires GCC 3.0 or newer
  14715. #endif
  14716. int
  14717. main ()
  14718. {
  14719. ;
  14720. return 0;
  14721. }
  14722. _ACEOF
  14723. if ac_fn_c_try_compile "$LINENO"; then :
  14724. have_gcc_mmd_mt=yes
  14725. fi
  14726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14728. $as_echo "$have_gcc_mmd_mt" >&6; }
  14729. if test x$have_gcc_mmd_mt = xyes; then
  14730. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14731. fi
  14732. fi
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14734. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14735. have_no_undefined=no
  14736. case "$host" in
  14737. *-*-openbsd*)
  14738. ;;
  14739. *)
  14740. save_LDFLAGS="$LDFLAGS"
  14741. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14743. /* end confdefs.h. */
  14744. int
  14745. main ()
  14746. {
  14747. ;
  14748. return 0;
  14749. }
  14750. _ACEOF
  14751. if ac_fn_c_try_link "$LINENO"; then :
  14752. have_no_undefined=yes
  14753. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14754. fi
  14755. rm -f core conftest.err conftest.$ac_objext \
  14756. conftest$ac_exeext conftest.$ac_ext
  14757. LDFLAGS="$save_LDFLAGS"
  14758. ;;
  14759. esac
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14761. $as_echo "$have_no_undefined" >&6; }
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14763. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14764. have_dynamicbase=no
  14765. case "$host" in
  14766. *)
  14767. save_LDFLAGS="$LDFLAGS"
  14768. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14770. /* end confdefs.h. */
  14771. int
  14772. main ()
  14773. {
  14774. ;
  14775. return 0;
  14776. }
  14777. _ACEOF
  14778. if ac_fn_c_try_link "$LINENO"; then :
  14779. have_dynamicbase=yes
  14780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14781. fi
  14782. rm -f core conftest.err conftest.$ac_objext \
  14783. conftest$ac_exeext conftest.$ac_ext
  14784. LDFLAGS="$save_LDFLAGS"
  14785. ;;
  14786. esac
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14788. $as_echo "$have_dynamicbase" >&6; }
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14790. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14791. have_nxcompat=no
  14792. case "$host" in
  14793. *)
  14794. save_LDFLAGS="$LDFLAGS"
  14795. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14797. /* end confdefs.h. */
  14798. int
  14799. main ()
  14800. {
  14801. ;
  14802. return 0;
  14803. }
  14804. _ACEOF
  14805. if ac_fn_c_try_link "$LINENO"; then :
  14806. have_nxcompat=yes
  14807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14808. fi
  14809. rm -f core conftest.err conftest.$ac_objext \
  14810. conftest$ac_exeext conftest.$ac_ext
  14811. LDFLAGS="$save_LDFLAGS"
  14812. ;;
  14813. esac
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14815. $as_echo "$have_nxcompat" >&6; }
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14817. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14818. have_high_entropy_va=no
  14819. case "$host" in
  14820. *)
  14821. save_LDFLAGS="$LDFLAGS"
  14822. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14824. /* end confdefs.h. */
  14825. int
  14826. main ()
  14827. {
  14828. ;
  14829. return 0;
  14830. }
  14831. _ACEOF
  14832. if ac_fn_c_try_link "$LINENO"; then :
  14833. have_high_entropy_va=yes
  14834. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14835. fi
  14836. rm -f core conftest.err conftest.$ac_objext \
  14837. conftest$ac_exeext conftest.$ac_ext
  14838. LDFLAGS="$save_LDFLAGS"
  14839. ;;
  14840. esac
  14841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14842. $as_echo "$have_high_entropy_va" >&6; }
  14843. # Check whether --enable-libc was given.
  14844. if test "${enable_libc+set}" = set; then :
  14845. enableval=$enable_libc;
  14846. else
  14847. enable_libc=yes
  14848. fi
  14849. if test x$enable_libc = xyes; then
  14850. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14852. $as_echo_n "checking for ANSI C header files... " >&6; }
  14853. if ${ac_cv_header_stdc+:} false; then :
  14854. $as_echo_n "(cached) " >&6
  14855. else
  14856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14857. /* end confdefs.h. */
  14858. #include <stdlib.h>
  14859. #include <stdarg.h>
  14860. #include <string.h>
  14861. #include <float.h>
  14862. int
  14863. main ()
  14864. {
  14865. ;
  14866. return 0;
  14867. }
  14868. _ACEOF
  14869. if ac_fn_c_try_compile "$LINENO"; then :
  14870. ac_cv_header_stdc=yes
  14871. else
  14872. ac_cv_header_stdc=no
  14873. fi
  14874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14875. if test $ac_cv_header_stdc = yes; then
  14876. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14878. /* end confdefs.h. */
  14879. #include <string.h>
  14880. _ACEOF
  14881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14882. $EGREP "memchr" >/dev/null 2>&1; then :
  14883. else
  14884. ac_cv_header_stdc=no
  14885. fi
  14886. rm -f conftest*
  14887. fi
  14888. if test $ac_cv_header_stdc = yes; then
  14889. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14891. /* end confdefs.h. */
  14892. #include <stdlib.h>
  14893. _ACEOF
  14894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14895. $EGREP "free" >/dev/null 2>&1; then :
  14896. else
  14897. ac_cv_header_stdc=no
  14898. fi
  14899. rm -f conftest*
  14900. fi
  14901. if test $ac_cv_header_stdc = yes; then
  14902. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14903. if test "$cross_compiling" = yes; then :
  14904. :
  14905. else
  14906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14907. /* end confdefs.h. */
  14908. #include <ctype.h>
  14909. #include <stdlib.h>
  14910. #if ((' ' & 0x0FF) == 0x020)
  14911. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14912. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14913. #else
  14914. # define ISLOWER(c) \
  14915. (('a' <= (c) && (c) <= 'i') \
  14916. || ('j' <= (c) && (c) <= 'r') \
  14917. || ('s' <= (c) && (c) <= 'z'))
  14918. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14919. #endif
  14920. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14921. int
  14922. main ()
  14923. {
  14924. int i;
  14925. for (i = 0; i < 256; i++)
  14926. if (XOR (islower (i), ISLOWER (i))
  14927. || toupper (i) != TOUPPER (i))
  14928. return 2;
  14929. return 0;
  14930. }
  14931. _ACEOF
  14932. if ac_fn_c_try_run "$LINENO"; then :
  14933. else
  14934. ac_cv_header_stdc=no
  14935. fi
  14936. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14937. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14938. fi
  14939. fi
  14940. fi
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14942. $as_echo "$ac_cv_header_stdc" >&6; }
  14943. if test $ac_cv_header_stdc = yes; then
  14944. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14945. fi
  14946. 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
  14947. do :
  14948. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14949. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14950. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14951. cat >>confdefs.h <<_ACEOF
  14952. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14953. _ACEOF
  14954. fi
  14955. done
  14956. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14957. if test "x$ac_cv_type_size_t" = xyes; then :
  14958. else
  14959. cat >>confdefs.h <<_ACEOF
  14960. #define size_t unsigned int
  14961. _ACEOF
  14962. fi
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14964. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14965. if ${ac_cv_define_M_PI+:} false; then :
  14966. $as_echo_n "(cached) " >&6
  14967. else
  14968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14969. /* end confdefs.h. */
  14970. #include <math.h>
  14971. #ifdef M_PI
  14972. YES_IS_DEFINED
  14973. #endif
  14974. _ACEOF
  14975. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14976. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14977. ac_cv_define_M_PI=yes
  14978. else
  14979. ac_cv_define_M_PI=no
  14980. fi
  14981. rm -f conftest*
  14982. fi
  14983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14984. $as_echo "$ac_cv_define_M_PI" >&6; }
  14985. if test "$ac_cv_define_M_PI" = "yes" ; then
  14986. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14987. fi
  14988. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14989. # for constant arguments. Useless!
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14991. $as_echo_n "checking for working alloca.h... " >&6; }
  14992. if ${ac_cv_working_alloca_h+:} false; then :
  14993. $as_echo_n "(cached) " >&6
  14994. else
  14995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14996. /* end confdefs.h. */
  14997. #include <alloca.h>
  14998. int
  14999. main ()
  15000. {
  15001. char *p = (char *) alloca (2 * sizeof (int));
  15002. if (p) return 0;
  15003. ;
  15004. return 0;
  15005. }
  15006. _ACEOF
  15007. if ac_fn_c_try_link "$LINENO"; then :
  15008. ac_cv_working_alloca_h=yes
  15009. else
  15010. ac_cv_working_alloca_h=no
  15011. fi
  15012. rm -f core conftest.err conftest.$ac_objext \
  15013. conftest$ac_exeext conftest.$ac_ext
  15014. fi
  15015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15016. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15017. if test $ac_cv_working_alloca_h = yes; then
  15018. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15019. fi
  15020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15021. $as_echo_n "checking for alloca... " >&6; }
  15022. if ${ac_cv_func_alloca_works+:} false; then :
  15023. $as_echo_n "(cached) " >&6
  15024. else
  15025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15026. /* end confdefs.h. */
  15027. #ifdef __GNUC__
  15028. # define alloca __builtin_alloca
  15029. #else
  15030. # ifdef _MSC_VER
  15031. # include <malloc.h>
  15032. # define alloca _alloca
  15033. # else
  15034. # ifdef HAVE_ALLOCA_H
  15035. # include <alloca.h>
  15036. # else
  15037. # ifdef _AIX
  15038. #pragma alloca
  15039. # else
  15040. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15041. void *alloca (size_t);
  15042. # endif
  15043. # endif
  15044. # endif
  15045. # endif
  15046. #endif
  15047. int
  15048. main ()
  15049. {
  15050. char *p = (char *) alloca (1);
  15051. if (p) return 0;
  15052. ;
  15053. return 0;
  15054. }
  15055. _ACEOF
  15056. if ac_fn_c_try_link "$LINENO"; then :
  15057. ac_cv_func_alloca_works=yes
  15058. else
  15059. ac_cv_func_alloca_works=no
  15060. fi
  15061. rm -f core conftest.err conftest.$ac_objext \
  15062. conftest$ac_exeext conftest.$ac_ext
  15063. fi
  15064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15065. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15066. if test $ac_cv_func_alloca_works = yes; then
  15067. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15068. else
  15069. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15070. # that cause trouble. Some versions do not even contain alloca or
  15071. # contain a buggy version. If you still want to use their alloca,
  15072. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15073. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15074. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15076. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15077. if ${ac_cv_os_cray+:} false; then :
  15078. $as_echo_n "(cached) " >&6
  15079. else
  15080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15081. /* end confdefs.h. */
  15082. #if defined CRAY && ! defined CRAY2
  15083. webecray
  15084. #else
  15085. wenotbecray
  15086. #endif
  15087. _ACEOF
  15088. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15089. $EGREP "webecray" >/dev/null 2>&1; then :
  15090. ac_cv_os_cray=yes
  15091. else
  15092. ac_cv_os_cray=no
  15093. fi
  15094. rm -f conftest*
  15095. fi
  15096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15097. $as_echo "$ac_cv_os_cray" >&6; }
  15098. if test $ac_cv_os_cray = yes; then
  15099. for ac_func in _getb67 GETB67 getb67; do
  15100. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15101. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15102. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15103. cat >>confdefs.h <<_ACEOF
  15104. #define CRAY_STACKSEG_END $ac_func
  15105. _ACEOF
  15106. break
  15107. fi
  15108. done
  15109. fi
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15111. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15112. if ${ac_cv_c_stack_direction+:} false; then :
  15113. $as_echo_n "(cached) " >&6
  15114. else
  15115. if test "$cross_compiling" = yes; then :
  15116. ac_cv_c_stack_direction=0
  15117. else
  15118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15119. /* end confdefs.h. */
  15120. $ac_includes_default
  15121. int
  15122. find_stack_direction (int *addr, int depth)
  15123. {
  15124. int dir, dummy = 0;
  15125. if (! addr)
  15126. addr = &dummy;
  15127. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15128. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15129. return dir + dummy;
  15130. }
  15131. int
  15132. main (int argc, char **argv)
  15133. {
  15134. return find_stack_direction (0, argc + !argv + 20) < 0;
  15135. }
  15136. _ACEOF
  15137. if ac_fn_c_try_run "$LINENO"; then :
  15138. ac_cv_c_stack_direction=1
  15139. else
  15140. ac_cv_c_stack_direction=-1
  15141. fi
  15142. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15143. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15144. fi
  15145. fi
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15147. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15148. cat >>confdefs.h <<_ACEOF
  15149. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15150. _ACEOF
  15151. fi
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15153. $as_echo_n "checking for working memcmp... " >&6; }
  15154. if ${ac_cv_func_memcmp_working+:} false; then :
  15155. $as_echo_n "(cached) " >&6
  15156. else
  15157. if test "$cross_compiling" = yes; then :
  15158. ac_cv_func_memcmp_working=no
  15159. else
  15160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15161. /* end confdefs.h. */
  15162. $ac_includes_default
  15163. int
  15164. main ()
  15165. {
  15166. /* Some versions of memcmp are not 8-bit clean. */
  15167. char c0 = '\100', c1 = '\200', c2 = '\201';
  15168. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15169. return 1;
  15170. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15171. or more and with at least one buffer not starting on a 4-byte boundary.
  15172. William Lewis provided this test program. */
  15173. {
  15174. char foo[21];
  15175. char bar[21];
  15176. int i;
  15177. for (i = 0; i < 4; i++)
  15178. {
  15179. char *a = foo + i;
  15180. char *b = bar + i;
  15181. strcpy (a, "--------01111111");
  15182. strcpy (b, "--------10000000");
  15183. if (memcmp (a, b, 16) >= 0)
  15184. return 1;
  15185. }
  15186. return 0;
  15187. }
  15188. ;
  15189. return 0;
  15190. }
  15191. _ACEOF
  15192. if ac_fn_c_try_run "$LINENO"; then :
  15193. ac_cv_func_memcmp_working=yes
  15194. else
  15195. ac_cv_func_memcmp_working=no
  15196. fi
  15197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15198. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15199. fi
  15200. fi
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15202. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15203. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15204. *" memcmp.$ac_objext "* ) ;;
  15205. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15206. ;;
  15207. esac
  15208. if test x$ac_cv_func_memcmp_working = xyes; then
  15209. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15210. fi
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15212. $as_echo_n "checking for working strtod... " >&6; }
  15213. if ${ac_cv_func_strtod+:} false; then :
  15214. $as_echo_n "(cached) " >&6
  15215. else
  15216. if test "$cross_compiling" = yes; then :
  15217. ac_cv_func_strtod=no
  15218. else
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. $ac_includes_default
  15222. #ifndef strtod
  15223. double strtod ();
  15224. #endif
  15225. int
  15226. main()
  15227. {
  15228. {
  15229. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15230. char *string = " +69";
  15231. char *term;
  15232. double value;
  15233. value = strtod (string, &term);
  15234. if (value != 69 || term != (string + 4))
  15235. return 1;
  15236. }
  15237. {
  15238. /* Under Solaris 2.4, strtod returns the wrong value for the
  15239. terminating character under some conditions. */
  15240. char *string = "NaN";
  15241. char *term;
  15242. strtod (string, &term);
  15243. if (term != string && *(term - 1) == 0)
  15244. return 1;
  15245. }
  15246. return 0;
  15247. }
  15248. _ACEOF
  15249. if ac_fn_c_try_run "$LINENO"; then :
  15250. ac_cv_func_strtod=yes
  15251. else
  15252. ac_cv_func_strtod=no
  15253. fi
  15254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15256. fi
  15257. fi
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15259. $as_echo "$ac_cv_func_strtod" >&6; }
  15260. if test $ac_cv_func_strtod = no; then
  15261. case " $LIBOBJS " in
  15262. *" strtod.$ac_objext "* ) ;;
  15263. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15264. ;;
  15265. esac
  15266. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15267. if test "x$ac_cv_func_pow" = xyes; then :
  15268. fi
  15269. if test $ac_cv_func_pow = no; then
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15271. $as_echo_n "checking for pow in -lm... " >&6; }
  15272. if ${ac_cv_lib_m_pow+:} false; then :
  15273. $as_echo_n "(cached) " >&6
  15274. else
  15275. ac_check_lib_save_LIBS=$LIBS
  15276. LIBS="-lm $LIBS"
  15277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15278. /* end confdefs.h. */
  15279. /* Override any GCC internal prototype to avoid an error.
  15280. Use char because int might match the return type of a GCC
  15281. builtin and then its argument prototype would still apply. */
  15282. #ifdef __cplusplus
  15283. extern "C"
  15284. #endif
  15285. char pow ();
  15286. int
  15287. main ()
  15288. {
  15289. return pow ();
  15290. ;
  15291. return 0;
  15292. }
  15293. _ACEOF
  15294. if ac_fn_c_try_link "$LINENO"; then :
  15295. ac_cv_lib_m_pow=yes
  15296. else
  15297. ac_cv_lib_m_pow=no
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext \
  15300. conftest$ac_exeext conftest.$ac_ext
  15301. LIBS=$ac_check_lib_save_LIBS
  15302. fi
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15304. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15305. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15306. POW_LIB=-lm
  15307. else
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15309. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15310. fi
  15311. fi
  15312. fi
  15313. if test x$ac_cv_func_strtod = xyes; then
  15314. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15315. fi
  15316. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15317. if test "x$ac_cv_func_mprotect" = xyes; then :
  15318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15319. /* end confdefs.h. */
  15320. #include <sys/types.h>
  15321. #include <sys/mman.h>
  15322. int
  15323. main ()
  15324. {
  15325. ;
  15326. return 0;
  15327. }
  15328. _ACEOF
  15329. if ac_fn_c_try_compile "$LINENO"; then :
  15330. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15331. fi
  15332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15333. fi
  15334. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15335. do :
  15336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15338. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15339. cat >>confdefs.h <<_ACEOF
  15340. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15341. _ACEOF
  15342. fi
  15343. done
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15345. $as_echo_n "checking for pow in -lm... " >&6; }
  15346. if ${ac_cv_lib_m_pow+:} false; then :
  15347. $as_echo_n "(cached) " >&6
  15348. else
  15349. ac_check_lib_save_LIBS=$LIBS
  15350. LIBS="-lm $LIBS"
  15351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15352. /* end confdefs.h. */
  15353. /* Override any GCC internal prototype to avoid an error.
  15354. Use char because int might match the return type of a GCC
  15355. builtin and then its argument prototype would still apply. */
  15356. #ifdef __cplusplus
  15357. extern "C"
  15358. #endif
  15359. char pow ();
  15360. int
  15361. main ()
  15362. {
  15363. return pow ();
  15364. ;
  15365. return 0;
  15366. }
  15367. _ACEOF
  15368. if ac_fn_c_try_link "$LINENO"; then :
  15369. ac_cv_lib_m_pow=yes
  15370. else
  15371. ac_cv_lib_m_pow=no
  15372. fi
  15373. rm -f core conftest.err conftest.$ac_objext \
  15374. conftest$ac_exeext conftest.$ac_ext
  15375. LIBS=$ac_check_lib_save_LIBS
  15376. fi
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15378. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15379. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15380. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15381. fi
  15382. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15383. do :
  15384. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15385. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15386. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15387. cat >>confdefs.h <<_ACEOF
  15388. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15389. _ACEOF
  15390. fi
  15391. done
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15393. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15394. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15395. $as_echo_n "(cached) " >&6
  15396. else
  15397. ac_check_lib_save_LIBS=$LIBS
  15398. LIBS="-liconv $LIBS"
  15399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15400. /* end confdefs.h. */
  15401. /* Override any GCC internal prototype to avoid an error.
  15402. Use char because int might match the return type of a GCC
  15403. builtin and then its argument prototype would still apply. */
  15404. #ifdef __cplusplus
  15405. extern "C"
  15406. #endif
  15407. char iconv_open ();
  15408. int
  15409. main ()
  15410. {
  15411. return iconv_open ();
  15412. ;
  15413. return 0;
  15414. }
  15415. _ACEOF
  15416. if ac_fn_c_try_link "$LINENO"; then :
  15417. ac_cv_lib_iconv_iconv_open=yes
  15418. else
  15419. ac_cv_lib_iconv_iconv_open=no
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext \
  15422. conftest$ac_exeext conftest.$ac_ext
  15423. LIBS=$ac_check_lib_save_LIBS
  15424. fi
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15426. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15427. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15428. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15429. fi
  15430. for ac_func in iconv
  15431. do :
  15432. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15433. if test "x$ac_cv_func_iconv" = xyes; then :
  15434. cat >>confdefs.h <<_ACEOF
  15435. #define HAVE_ICONV 1
  15436. _ACEOF
  15437. fi
  15438. done
  15439. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15440. "
  15441. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15442. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15443. fi
  15444. for ac_header in libunwind.h
  15445. do :
  15446. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15447. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15448. cat >>confdefs.h <<_ACEOF
  15449. #define HAVE_LIBUNWIND_H 1
  15450. _ACEOF
  15451. fi
  15452. done
  15453. fi
  15454. # Check whether --enable-gcc-atomics was given.
  15455. if test "${enable_gcc_atomics+set}" = set; then :
  15456. enableval=$enable_gcc_atomics;
  15457. else
  15458. enable_gcc_atomics=yes
  15459. fi
  15460. if test x$enable_gcc_atomics = xyes; then
  15461. have_gcc_atomics=no
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15463. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15465. /* end confdefs.h. */
  15466. int
  15467. main ()
  15468. {
  15469. int a;
  15470. void *x, *y, *z;
  15471. __sync_lock_test_and_set(&a, 4);
  15472. __sync_lock_test_and_set(&x, y);
  15473. __sync_fetch_and_add(&a, 1);
  15474. __sync_bool_compare_and_swap(&a, 5, 10);
  15475. __sync_bool_compare_and_swap(&x, y, z);
  15476. ;
  15477. return 0;
  15478. }
  15479. _ACEOF
  15480. if ac_fn_c_try_link "$LINENO"; then :
  15481. have_gcc_atomics=yes
  15482. fi
  15483. rm -f core conftest.err conftest.$ac_objext \
  15484. conftest$ac_exeext conftest.$ac_ext
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15486. $as_echo "$have_gcc_atomics" >&6; }
  15487. if test x$have_gcc_atomics = xyes; then
  15488. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15489. else
  15490. # See if we have the minimum operation needed for GCC atomics
  15491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15492. /* end confdefs.h. */
  15493. int
  15494. main ()
  15495. {
  15496. int a;
  15497. __sync_lock_test_and_set(&a, 1);
  15498. __sync_lock_release(&a);
  15499. ;
  15500. return 0;
  15501. }
  15502. _ACEOF
  15503. if ac_fn_c_try_link "$LINENO"; then :
  15504. have_gcc_sync_lock_test_and_set=yes
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15509. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15510. fi
  15511. fi
  15512. fi
  15513. # Standard C sources
  15514. SOURCES="$SOURCES $srcdir/src/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15525. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15527. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15537. case "$host" in
  15538. *-*-emscripten*)
  15539. default_atomic=no
  15540. ;;
  15541. *)
  15542. default_atomic=yes
  15543. ;;
  15544. esac
  15545. # Check whether --enable-atomic was given.
  15546. if test "${enable_atomic+set}" = set; then :
  15547. enableval=$enable_atomic;
  15548. else
  15549. enable_atomic=$default_atomic
  15550. fi
  15551. if test x$enable_atomic != xyes; then
  15552. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15553. else
  15554. SUMMARY_modules="${SUMMARY_modules} atomic"
  15555. fi
  15556. # Check whether --enable-audio was given.
  15557. if test "${enable_audio+set}" = set; then :
  15558. enableval=$enable_audio;
  15559. else
  15560. enable_audio=yes
  15561. fi
  15562. if test x$enable_audio != xyes; then
  15563. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15564. else
  15565. SUMMARY_modules="${SUMMARY_modules} audio"
  15566. fi
  15567. # Check whether --enable-video was given.
  15568. if test "${enable_video+set}" = set; then :
  15569. enableval=$enable_video;
  15570. else
  15571. enable_video=yes
  15572. fi
  15573. if test x$enable_video != xyes; then
  15574. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15575. else
  15576. SUMMARY_modules="${SUMMARY_modules} video"
  15577. fi
  15578. # Check whether --enable-render was given.
  15579. if test "${enable_render+set}" = set; then :
  15580. enableval=$enable_render;
  15581. else
  15582. enable_render=yes
  15583. fi
  15584. if test x$enable_render != xyes; then
  15585. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15586. else
  15587. SUMMARY_modules="${SUMMARY_modules} render"
  15588. fi
  15589. # Check whether --enable-events was given.
  15590. if test "${enable_events+set}" = set; then :
  15591. enableval=$enable_events;
  15592. else
  15593. enable_events=yes
  15594. fi
  15595. if test x$enable_events != xyes; then
  15596. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15597. else
  15598. SUMMARY_modules="${SUMMARY_modules} events"
  15599. fi
  15600. # Check whether --enable-joystick was given.
  15601. if test "${enable_joystick+set}" = set; then :
  15602. enableval=$enable_joystick;
  15603. else
  15604. enable_joystick=yes
  15605. fi
  15606. if test x$enable_joystick != xyes; then
  15607. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15608. else
  15609. SUMMARY_modules="${SUMMARY_modules} joystick"
  15610. fi
  15611. # Check whether --enable-haptic was given.
  15612. if test "${enable_haptic+set}" = set; then :
  15613. enableval=$enable_haptic;
  15614. else
  15615. enable_haptic=yes
  15616. fi
  15617. if test x$enable_haptic != xyes; then
  15618. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15619. else
  15620. SUMMARY_modules="${SUMMARY_modules} haptic"
  15621. fi
  15622. # Check whether --enable-hidapi was given.
  15623. if test "${enable_hidapi+set}" = set; then :
  15624. enableval=$enable_hidapi;
  15625. else
  15626. enable_hidapi=yes
  15627. fi
  15628. if test x$enable_hidapi != xyes; then
  15629. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15630. else
  15631. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15632. fi
  15633. # Check whether --enable-sensor was given.
  15634. if test "${enable_sensor+set}" = set; then :
  15635. enableval=$enable_sensor;
  15636. else
  15637. enable_sensor=yes
  15638. fi
  15639. if test x$enable_sensor != xyes; then
  15640. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15641. else
  15642. SUMMARY_modules="${SUMMARY_modules} sensor"
  15643. fi
  15644. # Check whether --enable-power was given.
  15645. if test "${enable_power+set}" = set; then :
  15646. enableval=$enable_power;
  15647. else
  15648. enable_power=yes
  15649. fi
  15650. if test x$enable_power != xyes; then
  15651. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15652. else
  15653. SUMMARY_modules="${SUMMARY_modules} power"
  15654. fi
  15655. # Check whether --enable-filesystem was given.
  15656. if test "${enable_filesystem+set}" = set; then :
  15657. enableval=$enable_filesystem;
  15658. else
  15659. enable_filesystem=yes
  15660. fi
  15661. if test x$enable_filesystem != xyes; then
  15662. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15663. else
  15664. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15665. fi
  15666. # Check whether --enable-threads was given.
  15667. if test "${enable_threads+set}" = set; then :
  15668. enableval=$enable_threads;
  15669. else
  15670. enable_threads=yes
  15671. fi
  15672. if test x$enable_threads != xyes; then
  15673. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15674. else
  15675. SUMMARY_modules="${SUMMARY_modules} threads"
  15676. fi
  15677. # Check whether --enable-timers was given.
  15678. if test "${enable_timers+set}" = set; then :
  15679. enableval=$enable_timers;
  15680. else
  15681. enable_timers=yes
  15682. fi
  15683. if test x$enable_timers != xyes; then
  15684. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15685. else
  15686. SUMMARY_modules="${SUMMARY_modules} timers"
  15687. fi
  15688. # Check whether --enable-file was given.
  15689. if test "${enable_file+set}" = set; then :
  15690. enableval=$enable_file;
  15691. else
  15692. enable_file=yes
  15693. fi
  15694. if test x$enable_file != xyes; then
  15695. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15696. else
  15697. SUMMARY_modules="${SUMMARY_modules} file"
  15698. fi
  15699. # Check whether --enable-misc was given.
  15700. if test "${enable_misc+set}" = set; then :
  15701. enableval=$enable_misc;
  15702. else
  15703. enable_misc=yes
  15704. fi
  15705. if test x$enable_misc != xyes; then
  15706. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15707. else
  15708. SUMMARY_modules="${SUMMARY_modules} misc"
  15709. fi
  15710. # Check whether --enable-locale was given.
  15711. if test "${enable_locale+set}" = set; then :
  15712. enableval=$enable_locale;
  15713. else
  15714. enable_locale=yes
  15715. fi
  15716. if test x$enable_locale != xyes; then
  15717. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15718. else
  15719. SUMMARY_modules="${SUMMARY_modules} locale"
  15720. fi
  15721. # Check whether --enable-loadso was given.
  15722. if test "${enable_loadso+set}" = set; then :
  15723. enableval=$enable_loadso;
  15724. else
  15725. enable_loadso=yes
  15726. fi
  15727. if test x$enable_loadso != xyes; then
  15728. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15729. else
  15730. SUMMARY_modules="${SUMMARY_modules} loadso"
  15731. fi
  15732. # Check whether --enable-cpuinfo was given.
  15733. if test "${enable_cpuinfo+set}" = set; then :
  15734. enableval=$enable_cpuinfo;
  15735. else
  15736. enable_cpuinfo=yes
  15737. fi
  15738. if test x$enable_cpuinfo != xyes; then
  15739. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15740. else
  15741. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15742. fi
  15743. # Check whether --enable-assembly was given.
  15744. if test "${enable_assembly+set}" = set; then :
  15745. enableval=$enable_assembly;
  15746. else
  15747. enable_assembly=yes
  15748. fi
  15749. if test x$enable_assembly = xyes; then
  15750. SUMMARY_modules="${SUMMARY_modules} assembly"
  15751. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15752. # Make sure that we don't generate floating point code that would
  15753. # cause illegal instruction exceptions on older processors
  15754. case "$host" in
  15755. *-*-darwin*)
  15756. # Don't need to worry about Apple hardware, it's all SSE capable
  15757. default_ssemath=yes
  15758. ;;
  15759. *64-*-*)
  15760. # x86 64-bit architectures all have SSE instructions
  15761. default_ssemath=yes
  15762. ;;
  15763. *)
  15764. default_ssemath=no
  15765. ;;
  15766. esac
  15767. # Check whether --enable-ssemath was given.
  15768. if test "${enable_ssemath+set}" = set; then :
  15769. enableval=$enable_ssemath;
  15770. else
  15771. enable_ssemath=$default_ssemath
  15772. fi
  15773. if test x$enable_ssemath = xno; then
  15774. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15775. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15776. fi
  15777. fi
  15778. # Check whether --enable-mmx was given.
  15779. if test "${enable_mmx+set}" = set; then :
  15780. enableval=$enable_mmx;
  15781. else
  15782. enable_mmx=yes
  15783. fi
  15784. if test x$enable_mmx = xyes; then
  15785. save_CFLAGS="$CFLAGS"
  15786. have_gcc_mmx=no
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15788. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15789. mmx_CFLAGS="-mmmx"
  15790. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15792. /* end confdefs.h. */
  15793. #ifdef __MINGW32__
  15794. #include <_mingw.h>
  15795. #ifdef __MINGW64_VERSION_MAJOR
  15796. #include <intrin.h>
  15797. #else
  15798. #include <mmintrin.h>
  15799. #endif
  15800. #else
  15801. #include <mmintrin.h>
  15802. #endif
  15803. #ifndef __MMX__
  15804. #error Assembler CPP flag not enabled
  15805. #endif
  15806. int
  15807. main ()
  15808. {
  15809. ;
  15810. return 0;
  15811. }
  15812. _ACEOF
  15813. if ac_fn_c_try_compile "$LINENO"; then :
  15814. have_gcc_mmx=yes
  15815. fi
  15816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15818. $as_echo "$have_gcc_mmx" >&6; }
  15819. CFLAGS="$save_CFLAGS"
  15820. if test x$have_gcc_mmx = xyes; then
  15821. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15822. SUMMARY_math="${SUMMARY_math} mmx"
  15823. fi
  15824. fi
  15825. # Check whether --enable-3dnow was given.
  15826. if test "${enable_3dnow+set}" = set; then :
  15827. enableval=$enable_3dnow;
  15828. else
  15829. enable_3dnow=yes
  15830. fi
  15831. if test x$enable_3dnow = xyes; then
  15832. save_CFLAGS="$CFLAGS"
  15833. have_gcc_3dnow=no
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15835. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15836. amd3dnow_CFLAGS="-m3dnow"
  15837. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15839. /* end confdefs.h. */
  15840. #include <mm3dnow.h>
  15841. #ifndef __3dNOW__
  15842. #error Assembler CPP flag not enabled
  15843. #endif
  15844. int
  15845. main ()
  15846. {
  15847. void *p = 0;
  15848. _m_prefetch(p);
  15849. ;
  15850. return 0;
  15851. }
  15852. _ACEOF
  15853. if ac_fn_c_try_link "$LINENO"; then :
  15854. have_gcc_3dnow=yes
  15855. fi
  15856. rm -f core conftest.err conftest.$ac_objext \
  15857. conftest$ac_exeext conftest.$ac_ext
  15858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15859. $as_echo "$have_gcc_3dnow" >&6; }
  15860. CFLAGS="$save_CFLAGS"
  15861. if test x$have_gcc_3dnow = xyes; then
  15862. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15863. SUMMARY_math="${SUMMARY_math} 3dnow"
  15864. fi
  15865. fi
  15866. # Check whether --enable-sse was given.
  15867. if test "${enable_sse+set}" = set; then :
  15868. enableval=$enable_sse;
  15869. else
  15870. enable_sse=yes
  15871. fi
  15872. if test x$enable_sse = xyes; then
  15873. save_CFLAGS="$CFLAGS"
  15874. have_gcc_sse=no
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15876. $as_echo_n "checking for GCC -msse option... " >&6; }
  15877. sse_CFLAGS="-msse"
  15878. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15880. /* end confdefs.h. */
  15881. #ifdef __MINGW32__
  15882. #include <_mingw.h>
  15883. #ifdef __MINGW64_VERSION_MAJOR
  15884. #include <intrin.h>
  15885. #else
  15886. #include <xmmintrin.h>
  15887. #endif
  15888. #else
  15889. #include <xmmintrin.h>
  15890. #endif
  15891. #ifndef __SSE__
  15892. #error Assembler CPP flag not enabled
  15893. #endif
  15894. int
  15895. main ()
  15896. {
  15897. ;
  15898. return 0;
  15899. }
  15900. _ACEOF
  15901. if ac_fn_c_try_compile "$LINENO"; then :
  15902. have_gcc_sse=yes
  15903. fi
  15904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15906. $as_echo "$have_gcc_sse" >&6; }
  15907. CFLAGS="$save_CFLAGS"
  15908. if test x$have_gcc_sse = xyes; then
  15909. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15910. SUMMARY_math="${SUMMARY_math} sse"
  15911. fi
  15912. fi
  15913. # Check whether --enable-sse2 was given.
  15914. if test "${enable_sse2+set}" = set; then :
  15915. enableval=$enable_sse2;
  15916. else
  15917. enable_sse2=$default_ssemath
  15918. fi
  15919. if test x$enable_sse2 = xyes; then
  15920. save_CFLAGS="$CFLAGS"
  15921. have_gcc_sse2=no
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15923. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15924. sse2_CFLAGS="-msse2"
  15925. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15927. /* end confdefs.h. */
  15928. #ifdef __MINGW32__
  15929. #include <_mingw.h>
  15930. #ifdef __MINGW64_VERSION_MAJOR
  15931. #include <intrin.h>
  15932. #else
  15933. #include <emmintrin.h>
  15934. #endif
  15935. #else
  15936. #include <emmintrin.h>
  15937. #endif
  15938. #ifndef __SSE2__
  15939. #error Assembler CPP flag not enabled
  15940. #endif
  15941. int
  15942. main ()
  15943. {
  15944. ;
  15945. return 0;
  15946. }
  15947. _ACEOF
  15948. if ac_fn_c_try_compile "$LINENO"; then :
  15949. have_gcc_sse2=yes
  15950. fi
  15951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15953. $as_echo "$have_gcc_sse2" >&6; }
  15954. CFLAGS="$save_CFLAGS"
  15955. if test x$have_gcc_sse2 = xyes; then
  15956. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15957. SUMMARY_math="${SUMMARY_math} sse2"
  15958. fi
  15959. fi
  15960. # Check whether --enable-sse3 was given.
  15961. if test "${enable_sse3+set}" = set; then :
  15962. enableval=$enable_sse3;
  15963. else
  15964. enable_sse3=$default_ssemath
  15965. fi
  15966. if test x$enable_sse3 = xyes; then
  15967. save_CFLAGS="$CFLAGS"
  15968. have_gcc_sse3=no
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15970. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15971. sse3_CFLAGS="-msse3"
  15972. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15974. /* end confdefs.h. */
  15975. #ifdef __MINGW32__
  15976. #include <_mingw.h>
  15977. #ifdef __MINGW64_VERSION_MAJOR
  15978. #include <intrin.h>
  15979. #else
  15980. #include <pmmintrin.h>
  15981. #endif
  15982. #else
  15983. #include <pmmintrin.h>
  15984. #endif
  15985. #ifndef __SSE2__
  15986. #error Assembler CPP flag not enabled
  15987. #endif
  15988. int
  15989. main ()
  15990. {
  15991. ;
  15992. return 0;
  15993. }
  15994. _ACEOF
  15995. if ac_fn_c_try_compile "$LINENO"; then :
  15996. have_gcc_sse3=yes
  15997. fi
  15998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16000. $as_echo "$have_gcc_sse3" >&6; }
  16001. CFLAGS="$save_CFLAGS"
  16002. if test x$have_gcc_sse3 = xyes; then
  16003. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16004. SUMMARY_math="${SUMMARY_math} sse3"
  16005. fi
  16006. fi
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16008. $as_echo_n "checking for immintrin.h... " >&6; }
  16009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16010. /* end confdefs.h. */
  16011. #include <immintrin.h>
  16012. int
  16013. main ()
  16014. {
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_compile "$LINENO"; then :
  16020. have_immintrin_h_hdr=yes
  16021. else
  16022. have_immintrin_h_hdr=no
  16023. fi
  16024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16026. $as_echo "$have_immintrin_h_hdr" >&6; }
  16027. if test x$have_immintrin_h_hdr = xyes; then
  16028. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16029. fi
  16030. # Check whether --enable-altivec was given.
  16031. if test "${enable_altivec+set}" = set; then :
  16032. enableval=$enable_altivec;
  16033. else
  16034. enable_altivec=yes
  16035. fi
  16036. if test x$enable_altivec = xyes; then
  16037. save_CFLAGS="$CFLAGS"
  16038. have_gcc_altivec=no
  16039. have_altivec_h_hdr=no
  16040. altivec_CFLAGS="-maltivec"
  16041. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16043. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. #include <altivec.h>
  16047. vector unsigned int vzero() {
  16048. return vec_splat_u32(0);
  16049. }
  16050. int
  16051. main ()
  16052. {
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. if ac_fn_c_try_compile "$LINENO"; then :
  16058. have_gcc_altivec=yes
  16059. have_altivec_h_hdr=yes
  16060. fi
  16061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16063. $as_echo "$have_gcc_altivec" >&6; }
  16064. if test x$have_gcc_altivec = xno; then
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16066. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16068. /* end confdefs.h. */
  16069. vector unsigned int vzero() {
  16070. return vec_splat_u32(0);
  16071. }
  16072. int
  16073. main ()
  16074. {
  16075. ;
  16076. return 0;
  16077. }
  16078. _ACEOF
  16079. if ac_fn_c_try_compile "$LINENO"; then :
  16080. have_gcc_altivec=yes
  16081. fi
  16082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16084. $as_echo "$have_gcc_altivec" >&6; }
  16085. fi
  16086. if test x$have_gcc_altivec = xno; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16088. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16089. altivec_CFLAGS="-faltivec"
  16090. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16092. /* end confdefs.h. */
  16093. #include <altivec.h>
  16094. vector unsigned int vzero() {
  16095. return vec_splat_u32(0);
  16096. }
  16097. int
  16098. main ()
  16099. {
  16100. ;
  16101. return 0;
  16102. }
  16103. _ACEOF
  16104. if ac_fn_c_try_compile "$LINENO"; then :
  16105. have_gcc_altivec=yes
  16106. have_altivec_h_hdr=yes
  16107. fi
  16108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16110. $as_echo "$have_gcc_altivec" >&6; }
  16111. fi
  16112. if test x$have_gcc_altivec = xno; then
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16114. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16116. /* end confdefs.h. */
  16117. vector unsigned int vzero() {
  16118. return vec_splat_u32(0);
  16119. }
  16120. int
  16121. main ()
  16122. {
  16123. ;
  16124. return 0;
  16125. }
  16126. _ACEOF
  16127. if ac_fn_c_try_compile "$LINENO"; then :
  16128. have_gcc_altivec=yes
  16129. fi
  16130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16132. $as_echo "$have_gcc_altivec" >&6; }
  16133. fi
  16134. CFLAGS="$save_CFLAGS"
  16135. if test x$have_gcc_altivec = xyes; then
  16136. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16137. if test x$have_altivec_h_hdr = xyes; then
  16138. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16139. fi
  16140. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16141. SUMMARY_math="${SUMMARY_math} altivec"
  16142. fi
  16143. fi
  16144. fi
  16145. CheckOSS()
  16146. {
  16147. # Check whether --enable-oss was given.
  16148. if test "${enable_oss+set}" = set; then :
  16149. enableval=$enable_oss;
  16150. else
  16151. enable_oss=maybe
  16152. fi
  16153. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16154. # use sndio instead. So on there, we default to disabled. You can force
  16155. # it on if you really want, though.
  16156. if test x$enable_oss = xmaybe; then
  16157. enable_oss=yes
  16158. case "$host" in
  16159. *-*-openbsd*)
  16160. enable_oss=no;;
  16161. esac
  16162. fi
  16163. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16165. $as_echo_n "checking for OSS audio support... " >&6; }
  16166. have_oss=no
  16167. if test x$have_oss != xyes; then
  16168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16169. /* end confdefs.h. */
  16170. #include <sys/soundcard.h>
  16171. int
  16172. main ()
  16173. {
  16174. int arg = SNDCTL_DSP_SETFRAGMENT;
  16175. ;
  16176. return 0;
  16177. }
  16178. _ACEOF
  16179. if ac_fn_c_try_compile "$LINENO"; then :
  16180. have_oss=yes
  16181. fi
  16182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16183. fi
  16184. if test x$have_oss != xyes; then
  16185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16186. /* end confdefs.h. */
  16187. #include <soundcard.h>
  16188. int
  16189. main ()
  16190. {
  16191. int arg = SNDCTL_DSP_SETFRAGMENT;
  16192. ;
  16193. return 0;
  16194. }
  16195. _ACEOF
  16196. if ac_fn_c_try_compile "$LINENO"; then :
  16197. have_oss=yes
  16198. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16199. fi
  16200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16201. fi
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16203. $as_echo "$have_oss" >&6; }
  16204. if test x$have_oss = xyes; then
  16205. SUMMARY_audio="${SUMMARY_audio} oss"
  16206. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16207. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16208. have_audio=yes
  16209. # We may need to link with ossaudio emulation library
  16210. case "$host" in
  16211. *-*-openbsd*|*-*-netbsd*)
  16212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16213. esac
  16214. fi
  16215. fi
  16216. }
  16217. CheckALSA()
  16218. {
  16219. # Check whether --enable-alsa was given.
  16220. if test "${enable_alsa+set}" = set; then :
  16221. enableval=$enable_alsa;
  16222. else
  16223. enable_alsa=yes
  16224. fi
  16225. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16226. alsa_save_CFLAGS="$CFLAGS"
  16227. alsa_save_LDFLAGS="$LDFLAGS"
  16228. alsa_save_LIBS="$LIBS"
  16229. alsa_found=yes
  16230. # Check whether --with-alsa-prefix was given.
  16231. if test "${with_alsa_prefix+set}" = set; then :
  16232. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16233. else
  16234. alsa_prefix=""
  16235. fi
  16236. # Check whether --with-alsa-inc-prefix was given.
  16237. if test "${with_alsa_inc_prefix+set}" = set; then :
  16238. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16239. else
  16240. alsa_inc_prefix=""
  16241. fi
  16242. # Check whether --enable-alsatest was given.
  16243. if test "${enable_alsatest+set}" = set; then :
  16244. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16245. else
  16246. enable_alsatest=yes
  16247. fi
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16249. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16250. if test "$alsa_inc_prefix" != "" ; then
  16251. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16252. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16253. fi
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16255. $as_echo "$ALSA_CFLAGS" >&6; }
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16257. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16258. if test "$alsa_prefix" != "" ; then
  16259. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16260. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16261. fi
  16262. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16263. LIBS=`echo $LIBS | sed 's/-lm//'`
  16264. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16265. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16266. LIBS=`echo $LIBS | sed 's/ //'`
  16267. LIBS="$ALSA_LIBS $LIBS"
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16269. $as_echo "$ALSA_LIBS" >&6; }
  16270. min_alsa_version=1.0.11
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16272. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16273. no_alsa=""
  16274. alsa_min_major_version=`echo $min_alsa_version | \
  16275. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16276. alsa_min_minor_version=`echo $min_alsa_version | \
  16277. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16278. alsa_min_micro_version=`echo $min_alsa_version | \
  16279. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16280. ac_ext=c
  16281. ac_cpp='$CPP $CPPFLAGS'
  16282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16286. /* end confdefs.h. */
  16287. #include <alsa/asoundlib.h>
  16288. int
  16289. main ()
  16290. {
  16291. /* ensure backward compatibility */
  16292. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16293. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16294. #endif
  16295. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16296. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16297. #endif
  16298. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16299. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16300. #endif
  16301. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16302. exit(0);
  16303. # else
  16304. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16305. # error not present
  16306. # endif
  16307. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16308. exit(0);
  16309. # else
  16310. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16311. # error not present
  16312. # endif
  16313. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16314. # error not present
  16315. # endif
  16316. # endif
  16317. # endif
  16318. exit(0);
  16319. ;
  16320. return 0;
  16321. }
  16322. _ACEOF
  16323. if ac_fn_c_try_compile "$LINENO"; then :
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16325. $as_echo "found." >&6; }
  16326. else
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16328. $as_echo "not present." >&6; }
  16329. alsa_found=no
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16332. ac_ext=c
  16333. ac_cpp='$CPP $CPPFLAGS'
  16334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16337. if test "x$enable_alsatest" = "xyes"; then
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16339. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16340. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16341. $as_echo_n "(cached) " >&6
  16342. else
  16343. ac_check_lib_save_LIBS=$LIBS
  16344. LIBS="-lasound $LIBS"
  16345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. /* Override any GCC internal prototype to avoid an error.
  16348. Use char because int might match the return type of a GCC
  16349. builtin and then its argument prototype would still apply. */
  16350. #ifdef __cplusplus
  16351. extern "C"
  16352. #endif
  16353. char snd_ctl_open ();
  16354. int
  16355. main ()
  16356. {
  16357. return snd_ctl_open ();
  16358. ;
  16359. return 0;
  16360. }
  16361. _ACEOF
  16362. if ac_fn_c_try_link "$LINENO"; then :
  16363. ac_cv_lib_asound_snd_ctl_open=yes
  16364. else
  16365. ac_cv_lib_asound_snd_ctl_open=no
  16366. fi
  16367. rm -f core conftest.err conftest.$ac_objext \
  16368. conftest$ac_exeext conftest.$ac_ext
  16369. LIBS=$ac_check_lib_save_LIBS
  16370. fi
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16372. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16373. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16374. cat >>confdefs.h <<_ACEOF
  16375. #define HAVE_LIBASOUND 1
  16376. _ACEOF
  16377. LIBS="-lasound $LIBS"
  16378. else
  16379. alsa_found=no
  16380. fi
  16381. fi
  16382. if test "x$alsa_found" = "xyes" ; then
  16383. have_alsa=yes
  16384. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16385. LIBS=`echo $LIBS | sed 's/ //'`
  16386. LIBS="-lasound $LIBS"
  16387. fi
  16388. if test "x$alsa_found" = "xno" ; then
  16389. have_alsa=no
  16390. CFLAGS="$alsa_save_CFLAGS"
  16391. LDFLAGS="$alsa_save_LDFLAGS"
  16392. LIBS="$alsa_save_LIBS"
  16393. ALSA_CFLAGS=""
  16394. ALSA_LIBS=""
  16395. fi
  16396. # Restore all flags from before the ALSA detection runs
  16397. CFLAGS="$alsa_save_CFLAGS"
  16398. LDFLAGS="$alsa_save_LDFLAGS"
  16399. LIBS="$alsa_save_LIBS"
  16400. if test x$have_alsa = xyes; then
  16401. # Check whether --enable-alsa-shared was given.
  16402. if test "${enable_alsa_shared+set}" = set; then :
  16403. enableval=$enable_alsa_shared;
  16404. else
  16405. enable_alsa_shared=yes
  16406. fi
  16407. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16408. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16409. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16410. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16411. if test x$have_loadso != xyes && \
  16412. test x$enable_alsa_shared = xyes; then
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16414. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16415. fi
  16416. if test x$have_loadso = xyes && \
  16417. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16418. echo "-- dynamic libasound -> $alsa_lib"
  16419. cat >>confdefs.h <<_ACEOF
  16420. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16421. _ACEOF
  16422. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16423. else
  16424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16425. SUMMARY_audio="${SUMMARY_audio} alsa"
  16426. fi
  16427. have_audio=yes
  16428. fi
  16429. fi
  16430. }
  16431. CheckJACK()
  16432. {
  16433. # Check whether --enable-jack was given.
  16434. if test "${enable_jack+set}" = set; then :
  16435. enableval=$enable_jack;
  16436. else
  16437. enable_jack=yes
  16438. fi
  16439. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16440. pkg_failed=no
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16442. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16443. if test -n "$JACK_CFLAGS"; then
  16444. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16445. elif test -n "$PKG_CONFIG"; then
  16446. if test -n "$PKG_CONFIG" && \
  16447. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16448. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16449. ac_status=$?
  16450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16451. test $ac_status = 0; }; then
  16452. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16453. test "x$?" != "x0" && pkg_failed=yes
  16454. else
  16455. pkg_failed=yes
  16456. fi
  16457. else
  16458. pkg_failed=untried
  16459. fi
  16460. if test -n "$JACK_LIBS"; then
  16461. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16462. elif test -n "$PKG_CONFIG"; then
  16463. if test -n "$PKG_CONFIG" && \
  16464. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16465. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16466. ac_status=$?
  16467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16468. test $ac_status = 0; }; then
  16469. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16470. test "x$?" != "x0" && pkg_failed=yes
  16471. else
  16472. pkg_failed=yes
  16473. fi
  16474. else
  16475. pkg_failed=untried
  16476. fi
  16477. if test $pkg_failed = yes; then
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16479. $as_echo "no" >&6; }
  16480. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16481. _pkg_short_errors_supported=yes
  16482. else
  16483. _pkg_short_errors_supported=no
  16484. fi
  16485. if test $_pkg_short_errors_supported = yes; then
  16486. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16487. else
  16488. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16489. fi
  16490. # Put the nasty error message in config.log where it belongs
  16491. echo "$JACK_PKG_ERRORS" >&5
  16492. audio_jack=no
  16493. elif test $pkg_failed = untried; then
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16495. $as_echo "no" >&6; }
  16496. audio_jack=no
  16497. else
  16498. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16499. JACK_LIBS=$pkg_cv_JACK_LIBS
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16501. $as_echo "yes" >&6; }
  16502. audio_jack=yes
  16503. fi
  16504. if test x$audio_jack = xyes; then
  16505. # Check whether --enable-jack-shared was given.
  16506. if test "${enable_jack_shared+set}" = set; then :
  16507. enableval=$enable_jack_shared;
  16508. else
  16509. enable_jack_shared=yes
  16510. fi
  16511. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16512. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16513. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16514. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16515. if test x$have_loadso != xyes && \
  16516. test x$enable_jack_shared = xyes; then
  16517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16518. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16519. fi
  16520. if test x$have_loadso = xyes && \
  16521. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16522. echo "-- dynamic libjack -> $jack_lib"
  16523. cat >>confdefs.h <<_ACEOF
  16524. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16525. _ACEOF
  16526. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16527. case "$host" in
  16528. # On Solaris, jack must be linked deferred explicitly
  16529. # to prevent undefined symbol failures.
  16530. *-*-solaris*)
  16531. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16533. esac
  16534. else
  16535. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16536. SUMMARY_audio="${SUMMARY_audio} jack"
  16537. fi
  16538. have_audio=yes
  16539. fi
  16540. fi
  16541. }
  16542. CheckESD()
  16543. {
  16544. # Check whether --enable-esd was given.
  16545. if test "${enable_esd+set}" = set; then :
  16546. enableval=$enable_esd;
  16547. else
  16548. enable_esd=yes
  16549. fi
  16550. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16551. # Check whether --with-esd-prefix was given.
  16552. if test "${with_esd_prefix+set}" = set; then :
  16553. withval=$with_esd_prefix; esd_prefix="$withval"
  16554. else
  16555. esd_prefix=""
  16556. fi
  16557. # Check whether --with-esd-exec-prefix was given.
  16558. if test "${with_esd_exec_prefix+set}" = set; then :
  16559. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16560. else
  16561. esd_exec_prefix=""
  16562. fi
  16563. # Check whether --enable-esdtest was given.
  16564. if test "${enable_esdtest+set}" = set; then :
  16565. enableval=$enable_esdtest;
  16566. else
  16567. enable_esdtest=yes
  16568. fi
  16569. if test x$esd_exec_prefix != x ; then
  16570. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16571. if test x${ESD_CONFIG+set} != xset ; then
  16572. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16573. fi
  16574. fi
  16575. if test x$esd_prefix != x ; then
  16576. esd_args="$esd_args --prefix=$esd_prefix"
  16577. if test x${ESD_CONFIG+set} != xset ; then
  16578. ESD_CONFIG=$esd_prefix/bin/esd-config
  16579. fi
  16580. fi
  16581. # Extract the first word of "esd-config", so it can be a program name with args.
  16582. set dummy esd-config; ac_word=$2
  16583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16584. $as_echo_n "checking for $ac_word... " >&6; }
  16585. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16586. $as_echo_n "(cached) " >&6
  16587. else
  16588. case $ESD_CONFIG in
  16589. [\\/]* | ?:[\\/]*)
  16590. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16591. ;;
  16592. *)
  16593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16594. for as_dir in $PATH
  16595. do
  16596. IFS=$as_save_IFS
  16597. test -z "$as_dir" && as_dir=.
  16598. for ac_exec_ext in '' $ac_executable_extensions; do
  16599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16600. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16602. break 2
  16603. fi
  16604. done
  16605. done
  16606. IFS=$as_save_IFS
  16607. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16608. ;;
  16609. esac
  16610. fi
  16611. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16612. if test -n "$ESD_CONFIG"; then
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16614. $as_echo "$ESD_CONFIG" >&6; }
  16615. else
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16617. $as_echo "no" >&6; }
  16618. fi
  16619. min_esd_version=0.2.8
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16621. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16622. no_esd=""
  16623. if test "$ESD_CONFIG" = "no" ; then
  16624. no_esd=yes
  16625. else
  16626. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16627. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16628. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16630. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16632. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16634. if test "x$enable_esdtest" = "xyes" ; then
  16635. ac_ext=c
  16636. ac_cpp='$CPP $CPPFLAGS'
  16637. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16638. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16640. ac_save_CFLAGS="$CFLAGS"
  16641. ac_save_LIBS="$LIBS"
  16642. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16643. LIBS="$LIBS $ESD_LIBS"
  16644. rm -f conf.esdtest
  16645. if test "$cross_compiling" = yes; then :
  16646. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16647. else
  16648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16649. /* end confdefs.h. */
  16650. #include <stdio.h>
  16651. #include <stdlib.h>
  16652. #include <esd.h>
  16653. int main (void)
  16654. {
  16655. int major, minor, micro;
  16656. FILE *fp = fopen("conf.esdtest", "w");
  16657. if (fp) fclose(fp);
  16658. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16659. printf("%s, bad version string\n", "$min_esd_version");
  16660. exit(1);
  16661. }
  16662. if (($esd_major_version > major) ||
  16663. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16664. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16665. {
  16666. return 0;
  16667. }
  16668. else
  16669. {
  16670. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16671. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16672. printf("*** best to upgrade to the required version.\n");
  16673. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16674. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16675. printf("*** config.cache before re-running configure\n");
  16676. return 1;
  16677. }
  16678. }
  16679. _ACEOF
  16680. if ac_fn_c_try_run "$LINENO"; then :
  16681. else
  16682. no_esd=yes
  16683. fi
  16684. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16685. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16686. fi
  16687. CFLAGS="$ac_save_CFLAGS"
  16688. LIBS="$ac_save_LIBS"
  16689. ac_ext=c
  16690. ac_cpp='$CPP $CPPFLAGS'
  16691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16694. fi
  16695. fi
  16696. if test "x$no_esd" = x ; then
  16697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16698. $as_echo "yes" >&6; }
  16699. have_esd=yes
  16700. else
  16701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16702. $as_echo "no" >&6; }
  16703. if test "$ESD_CONFIG" = "no" ; then
  16704. echo "*** The esd-config script installed by ESD could not be found"
  16705. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16706. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16707. echo "*** full path to esd-config."
  16708. else
  16709. if test -f conf.esdtest ; then
  16710. :
  16711. else
  16712. echo "*** Could not run ESD test program, checking why..."
  16713. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16714. LIBS="$LIBS $ESD_LIBS"
  16715. ac_ext=c
  16716. ac_cpp='$CPP $CPPFLAGS'
  16717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16721. /* end confdefs.h. */
  16722. #include <stdio.h>
  16723. #include <esd.h>
  16724. int
  16725. main ()
  16726. {
  16727. return 0;
  16728. ;
  16729. return 0;
  16730. }
  16731. _ACEOF
  16732. if ac_fn_c_try_link "$LINENO"; then :
  16733. echo "*** The test program compiled, but did not run. This usually means"
  16734. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16735. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16736. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16737. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16738. echo "*** is required on your system"
  16739. echo "***"
  16740. echo "*** If you have an old version installed, it is best to remove it, although"
  16741. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16742. else
  16743. echo "*** The test program failed to compile or link. See the file config.log for the"
  16744. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16745. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16746. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16747. fi
  16748. rm -f core conftest.err conftest.$ac_objext \
  16749. conftest$ac_exeext conftest.$ac_ext
  16750. CFLAGS="$ac_save_CFLAGS"
  16751. LIBS="$ac_save_LIBS"
  16752. ac_ext=c
  16753. ac_cpp='$CPP $CPPFLAGS'
  16754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16757. fi
  16758. fi
  16759. ESD_CFLAGS=""
  16760. ESD_LIBS=""
  16761. have_esd=no
  16762. fi
  16763. rm -f conf.esdtest
  16764. if test x$have_esd = xyes; then
  16765. # Check whether --enable-esd-shared was given.
  16766. if test "${enable_esd_shared+set}" = set; then :
  16767. enableval=$enable_esd_shared;
  16768. else
  16769. enable_esd_shared=yes
  16770. fi
  16771. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16772. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16773. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16774. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16775. if test x$have_loadso != xyes && \
  16776. test x$enable_esd_shared = xyes; then
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16778. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16779. fi
  16780. if test x$have_loadso = xyes && \
  16781. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16782. echo "-- dynamic libesd -> $esd_lib"
  16783. cat >>confdefs.h <<_ACEOF
  16784. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16785. _ACEOF
  16786. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16787. else
  16788. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16789. SUMMARY_audio="${SUMMARY_audio} esd"
  16790. fi
  16791. have_audio=yes
  16792. fi
  16793. fi
  16794. }
  16795. CheckPipewire()
  16796. {
  16797. # Check whether --enable-pipewire was given.
  16798. if test "${enable_pipewire+set}" = set; then :
  16799. enableval=$enable_pipewire;
  16800. else
  16801. enable_pipewire=yes
  16802. fi
  16803. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16804. pkg_failed=no
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16806. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16807. if test -n "$PIPEWIRE_CFLAGS"; then
  16808. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16809. elif test -n "$PKG_CONFIG"; then
  16810. if test -n "$PKG_CONFIG" && \
  16811. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16812. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16813. ac_status=$?
  16814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16815. test $ac_status = 0; }; then
  16816. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16817. test "x$?" != "x0" && pkg_failed=yes
  16818. else
  16819. pkg_failed=yes
  16820. fi
  16821. else
  16822. pkg_failed=untried
  16823. fi
  16824. if test -n "$PIPEWIRE_LIBS"; then
  16825. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16826. elif test -n "$PKG_CONFIG"; then
  16827. if test -n "$PKG_CONFIG" && \
  16828. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16829. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16830. ac_status=$?
  16831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16832. test $ac_status = 0; }; then
  16833. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16834. test "x$?" != "x0" && pkg_failed=yes
  16835. else
  16836. pkg_failed=yes
  16837. fi
  16838. else
  16839. pkg_failed=untried
  16840. fi
  16841. if test $pkg_failed = yes; then
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16843. $as_echo "no" >&6; }
  16844. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16845. _pkg_short_errors_supported=yes
  16846. else
  16847. _pkg_short_errors_supported=no
  16848. fi
  16849. if test $_pkg_short_errors_supported = yes; then
  16850. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16851. else
  16852. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16853. fi
  16854. # Put the nasty error message in config.log where it belongs
  16855. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16856. audio_pipewire=no
  16857. elif test $pkg_failed = untried; then
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16859. $as_echo "no" >&6; }
  16860. audio_pipewire=no
  16861. else
  16862. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16863. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16865. $as_echo "yes" >&6; }
  16866. audio_pipewire=yes
  16867. fi
  16868. if test x$audio_pipewire = xyes; then
  16869. # Check whether --enable-pipewire-shared was given.
  16870. if test "${enable_pipewire_shared+set}" = set; then :
  16871. enableval=$enable_pipewire_shared;
  16872. else
  16873. enable_pipewire_shared=yes
  16874. fi
  16875. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16876. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16877. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16878. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16879. if test x$have_loadso != xyes && \
  16880. test x$enable_pipewire_shared = xyes; then
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16882. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16883. fi
  16884. if test x$have_loadso = xyes && \
  16885. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16886. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16887. cat >>confdefs.h <<_ACEOF
  16888. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16889. _ACEOF
  16890. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16891. else
  16892. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16893. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16894. fi
  16895. have_audio=yes
  16896. fi
  16897. fi
  16898. }
  16899. CheckPulseAudio()
  16900. {
  16901. # Check whether --enable-pulseaudio was given.
  16902. if test "${enable_pulseaudio+set}" = set; then :
  16903. enableval=$enable_pulseaudio;
  16904. else
  16905. enable_pulseaudio=yes
  16906. fi
  16907. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16908. pkg_failed=no
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16910. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16911. if test -n "$PULSEAUDIO_CFLAGS"; then
  16912. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16913. elif test -n "$PKG_CONFIG"; then
  16914. if test -n "$PKG_CONFIG" && \
  16915. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16916. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16917. ac_status=$?
  16918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16919. test $ac_status = 0; }; then
  16920. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16921. test "x$?" != "x0" && pkg_failed=yes
  16922. else
  16923. pkg_failed=yes
  16924. fi
  16925. else
  16926. pkg_failed=untried
  16927. fi
  16928. if test -n "$PULSEAUDIO_LIBS"; then
  16929. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16930. elif test -n "$PKG_CONFIG"; then
  16931. if test -n "$PKG_CONFIG" && \
  16932. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16933. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16934. ac_status=$?
  16935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16936. test $ac_status = 0; }; then
  16937. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16938. test "x$?" != "x0" && pkg_failed=yes
  16939. else
  16940. pkg_failed=yes
  16941. fi
  16942. else
  16943. pkg_failed=untried
  16944. fi
  16945. if test $pkg_failed = yes; then
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16947. $as_echo "no" >&6; }
  16948. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16949. _pkg_short_errors_supported=yes
  16950. else
  16951. _pkg_short_errors_supported=no
  16952. fi
  16953. if test $_pkg_short_errors_supported = yes; then
  16954. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16955. else
  16956. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16957. fi
  16958. # Put the nasty error message in config.log where it belongs
  16959. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16960. audio_pulseaudio=no
  16961. elif test $pkg_failed = untried; then
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16963. $as_echo "no" >&6; }
  16964. audio_pulseaudio=no
  16965. else
  16966. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16967. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16969. $as_echo "yes" >&6; }
  16970. audio_pulseaudio=yes
  16971. fi
  16972. if test x$audio_pulseaudio = xyes; then
  16973. # Check whether --enable-pulseaudio-shared was given.
  16974. if test "${enable_pulseaudio_shared+set}" = set; then :
  16975. enableval=$enable_pulseaudio_shared;
  16976. else
  16977. enable_pulseaudio_shared=yes
  16978. fi
  16979. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16980. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16981. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16982. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16983. if test x$have_loadso != xyes && \
  16984. test x$enable_pulseaudio_shared = xyes; then
  16985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16986. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16987. fi
  16988. if test x$have_loadso = xyes && \
  16989. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16990. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16991. cat >>confdefs.h <<_ACEOF
  16992. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16993. _ACEOF
  16994. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16995. case "$host" in
  16996. # On Solaris, pulseaudio must be linked deferred explicitly
  16997. # to prevent undefined symbol failures.
  16998. *-*-solaris*)
  16999. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17001. esac
  17002. else
  17003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17004. SUMMARY_audio="${SUMMARY_audio} pulse"
  17005. fi
  17006. have_audio=yes
  17007. fi
  17008. fi
  17009. }
  17010. CheckARTSC()
  17011. {
  17012. # Check whether --enable-arts was given.
  17013. if test "${enable_arts+set}" = set; then :
  17014. enableval=$enable_arts;
  17015. else
  17016. enable_arts=yes
  17017. fi
  17018. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17019. # Extract the first word of "artsc-config", so it can be a program name with args.
  17020. set dummy artsc-config; ac_word=$2
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17022. $as_echo_n "checking for $ac_word... " >&6; }
  17023. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17024. $as_echo_n "(cached) " >&6
  17025. else
  17026. case $ARTSCONFIG in
  17027. [\\/]* | ?:[\\/]*)
  17028. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17029. ;;
  17030. *)
  17031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17032. for as_dir in $PATH
  17033. do
  17034. IFS=$as_save_IFS
  17035. test -z "$as_dir" && as_dir=.
  17036. for ac_exec_ext in '' $ac_executable_extensions; do
  17037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17038. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17040. break 2
  17041. fi
  17042. done
  17043. done
  17044. IFS=$as_save_IFS
  17045. ;;
  17046. esac
  17047. fi
  17048. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17049. if test -n "$ARTSCONFIG"; then
  17050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17051. $as_echo "$ARTSCONFIG" >&6; }
  17052. else
  17053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17054. $as_echo "no" >&6; }
  17055. fi
  17056. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17057. : # arts isn't installed
  17058. else
  17059. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17060. ARTS_LIBS=`$ARTSCONFIG --libs`
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17062. $as_echo_n "checking for aRts development environment... " >&6; }
  17063. audio_arts=no
  17064. save_CFLAGS="$CFLAGS"
  17065. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17067. /* end confdefs.h. */
  17068. #include <artsc.h>
  17069. int
  17070. main ()
  17071. {
  17072. arts_stream_t stream;
  17073. ;
  17074. return 0;
  17075. }
  17076. _ACEOF
  17077. if ac_fn_c_try_compile "$LINENO"; then :
  17078. audio_arts=yes
  17079. fi
  17080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17081. CFLAGS="$save_CFLAGS"
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17083. $as_echo "$audio_arts" >&6; }
  17084. if test x$audio_arts = xyes; then
  17085. # Check whether --enable-arts-shared was given.
  17086. if test "${enable_arts_shared+set}" = set; then :
  17087. enableval=$enable_arts_shared;
  17088. else
  17089. enable_arts_shared=yes
  17090. fi
  17091. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17092. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17093. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17094. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17095. if test x$have_loadso != xyes && \
  17096. test x$enable_arts_shared = xyes; then
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17098. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17099. fi
  17100. if test x$have_loadso = xyes && \
  17101. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17102. echo "-- dynamic libartsc -> $arts_lib"
  17103. cat >>confdefs.h <<_ACEOF
  17104. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17105. _ACEOF
  17106. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17107. else
  17108. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17109. SUMMARY_audio="${SUMMARY_audio} arts"
  17110. fi
  17111. have_audio=yes
  17112. fi
  17113. fi
  17114. fi
  17115. }
  17116. CheckNAS()
  17117. {
  17118. # Check whether --enable-nas was given.
  17119. if test "${enable_nas+set}" = set; then :
  17120. enableval=$enable_nas;
  17121. else
  17122. enable_nas=yes
  17123. fi
  17124. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17125. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17126. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17127. have_nas_hdr=yes
  17128. fi
  17129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17130. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17131. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17132. $as_echo_n "(cached) " >&6
  17133. else
  17134. ac_check_lib_save_LIBS=$LIBS
  17135. LIBS="-laudio $LIBS"
  17136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17137. /* end confdefs.h. */
  17138. /* Override any GCC internal prototype to avoid an error.
  17139. Use char because int might match the return type of a GCC
  17140. builtin and then its argument prototype would still apply. */
  17141. #ifdef __cplusplus
  17142. extern "C"
  17143. #endif
  17144. char AuOpenServer ();
  17145. int
  17146. main ()
  17147. {
  17148. return AuOpenServer ();
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. if ac_fn_c_try_link "$LINENO"; then :
  17154. ac_cv_lib_audio_AuOpenServer=yes
  17155. else
  17156. ac_cv_lib_audio_AuOpenServer=no
  17157. fi
  17158. rm -f core conftest.err conftest.$ac_objext \
  17159. conftest$ac_exeext conftest.$ac_ext
  17160. LIBS=$ac_check_lib_save_LIBS
  17161. fi
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17163. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17164. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17165. have_nas_lib=yes
  17166. fi
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17168. $as_echo_n "checking for NAS audio support... " >&6; }
  17169. have_nas=no
  17170. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17171. have_nas=yes
  17172. NAS_LIBS="-laudio"
  17173. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17174. have_nas=yes
  17175. NAS_CFLAGS="-I/usr/X11R6/include/"
  17176. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17177. fi
  17178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17179. $as_echo "$have_nas" >&6; }
  17180. if test x$have_nas = xyes; then
  17181. # Check whether --enable-nas-shared was given.
  17182. if test "${enable_nas_shared+set}" = set; then :
  17183. enableval=$enable_nas_shared;
  17184. else
  17185. enable_nas_shared=yes
  17186. fi
  17187. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17188. if test x$have_loadso != xyes && \
  17189. test x$enable_nas_shared = xyes; then
  17190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17191. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17192. fi
  17193. if test x$have_loadso = xyes && \
  17194. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17195. echo "-- dynamic libaudio -> $nas_lib"
  17196. cat >>confdefs.h <<_ACEOF
  17197. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17198. _ACEOF
  17199. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17200. else
  17201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17202. SUMMARY_audio="${SUMMARY_audio} nas"
  17203. fi
  17204. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17205. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17206. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17207. have_audio=yes
  17208. fi
  17209. fi
  17210. }
  17211. CheckSNDIO()
  17212. {
  17213. # Check whether --enable-sndio was given.
  17214. if test "${enable_sndio+set}" = set; then :
  17215. enableval=$enable_sndio;
  17216. else
  17217. enable_sndio=yes
  17218. fi
  17219. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17220. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17221. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17222. have_sndio_hdr=yes
  17223. fi
  17224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17225. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17226. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17227. $as_echo_n "(cached) " >&6
  17228. else
  17229. ac_check_lib_save_LIBS=$LIBS
  17230. LIBS="-lsndio $LIBS"
  17231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17232. /* end confdefs.h. */
  17233. /* Override any GCC internal prototype to avoid an error.
  17234. Use char because int might match the return type of a GCC
  17235. builtin and then its argument prototype would still apply. */
  17236. #ifdef __cplusplus
  17237. extern "C"
  17238. #endif
  17239. char sio_open ();
  17240. int
  17241. main ()
  17242. {
  17243. return sio_open ();
  17244. ;
  17245. return 0;
  17246. }
  17247. _ACEOF
  17248. if ac_fn_c_try_link "$LINENO"; then :
  17249. ac_cv_lib_sndio_sio_open=yes
  17250. else
  17251. ac_cv_lib_sndio_sio_open=no
  17252. fi
  17253. rm -f core conftest.err conftest.$ac_objext \
  17254. conftest$ac_exeext conftest.$ac_ext
  17255. LIBS=$ac_check_lib_save_LIBS
  17256. fi
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17258. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17259. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17260. have_sndio_lib=yes
  17261. fi
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17263. $as_echo_n "checking for sndio audio support... " >&6; }
  17264. have_sndio=no
  17265. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17266. have_sndio=yes
  17267. SNDIO_LIBS="-lsndio"
  17268. fi
  17269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17270. $as_echo "$have_sndio" >&6; }
  17271. if test x$have_sndio = xyes; then
  17272. # Check whether --enable-sndio-shared was given.
  17273. if test "${enable_sndio_shared+set}" = set; then :
  17274. enableval=$enable_sndio_shared;
  17275. else
  17276. enable_sndio_shared=yes
  17277. fi
  17278. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17279. if test x$have_loadso != xyes && \
  17280. test x$enable_sndio_shared = xyes; then
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17282. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17283. fi
  17284. if test x$have_loadso = xyes && \
  17285. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17286. echo "-- dynamic libsndio -> $sndio_lib"
  17287. cat >>confdefs.h <<_ACEOF
  17288. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17289. _ACEOF
  17290. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17291. else
  17292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17293. SUMMARY_audio="${SUMMARY_audio} sndio"
  17294. fi
  17295. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17296. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17297. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17298. have_audio=yes
  17299. fi
  17300. fi
  17301. }
  17302. CheckFusionSound()
  17303. {
  17304. # Check whether --enable-fusionsound was given.
  17305. if test "${enable_fusionsound+set}" = set; then :
  17306. enableval=$enable_fusionsound;
  17307. else
  17308. enable_fusionsound=no
  17309. fi
  17310. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17311. pkg_failed=no
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17313. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17314. if test -n "$FUSIONSOUND_CFLAGS"; then
  17315. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17316. elif test -n "$PKG_CONFIG"; then
  17317. if test -n "$PKG_CONFIG" && \
  17318. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17319. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17320. ac_status=$?
  17321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17322. test $ac_status = 0; }; then
  17323. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17324. test "x$?" != "x0" && pkg_failed=yes
  17325. else
  17326. pkg_failed=yes
  17327. fi
  17328. else
  17329. pkg_failed=untried
  17330. fi
  17331. if test -n "$FUSIONSOUND_LIBS"; then
  17332. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17333. elif test -n "$PKG_CONFIG"; then
  17334. if test -n "$PKG_CONFIG" && \
  17335. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17336. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17337. ac_status=$?
  17338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17339. test $ac_status = 0; }; then
  17340. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17341. test "x$?" != "x0" && pkg_failed=yes
  17342. else
  17343. pkg_failed=yes
  17344. fi
  17345. else
  17346. pkg_failed=untried
  17347. fi
  17348. if test $pkg_failed = yes; then
  17349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17350. $as_echo "no" >&6; }
  17351. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17352. _pkg_short_errors_supported=yes
  17353. else
  17354. _pkg_short_errors_supported=no
  17355. fi
  17356. if test $_pkg_short_errors_supported = yes; then
  17357. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17358. else
  17359. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17360. fi
  17361. # Put the nasty error message in config.log where it belongs
  17362. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17363. fusionsound=no
  17364. elif test $pkg_failed = untried; then
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17366. $as_echo "no" >&6; }
  17367. fusionsound=no
  17368. else
  17369. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17370. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17372. $as_echo "yes" >&6; }
  17373. fusionsound=yes
  17374. fi
  17375. if test x$fusionsound = xyes; then
  17376. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17377. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17378. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17379. # Check whether --enable-fusionsound-shared was given.
  17380. if test "${enable_fusionsound_shared+set}" = set; then :
  17381. enableval=$enable_fusionsound_shared;
  17382. else
  17383. enable_fusionsound_shared=yes
  17384. fi
  17385. fusionsound_shared=no
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17387. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17388. if test x$have_loadso != xyes && \
  17389. test x$enable_fusionsound_shared = xyes; then
  17390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17391. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17392. fi
  17393. if test x$have_loadso = xyes && \
  17394. test x$enable_fusionsound_shared = xyes; then
  17395. cat >>confdefs.h <<_ACEOF
  17396. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17397. _ACEOF
  17398. fusionsound_shared=yes
  17399. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17400. else
  17401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17402. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17403. fi
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17405. $as_echo "$fusionsound_shared" >&6; }
  17406. have_audio=yes
  17407. fi
  17408. fi
  17409. }
  17410. CheckDiskAudio()
  17411. {
  17412. # Check whether --enable-diskaudio was given.
  17413. if test "${enable_diskaudio+set}" = set; then :
  17414. enableval=$enable_diskaudio;
  17415. else
  17416. enable_diskaudio=yes
  17417. fi
  17418. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17419. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17420. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17421. SUMMARY_audio="${SUMMARY_audio} disk"
  17422. have_audio=yes
  17423. fi
  17424. }
  17425. CheckDummyAudio()
  17426. {
  17427. # Check whether --enable-dummyaudio was given.
  17428. if test "${enable_dummyaudio+set}" = set; then :
  17429. enableval=$enable_dummyaudio;
  17430. else
  17431. enable_dummyaudio=yes
  17432. fi
  17433. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17434. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17435. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17436. SUMMARY_audio="${SUMMARY_audio} dummy"
  17437. have_audio=yes
  17438. fi
  17439. }
  17440. CheckLibSampleRate()
  17441. {
  17442. # Check whether --enable-libsamplerate was given.
  17443. if test "${enable_libsamplerate+set}" = set; then :
  17444. enableval=$enable_libsamplerate;
  17445. else
  17446. enable_libsamplerate=yes
  17447. fi
  17448. if test x$enable_libsamplerate = xyes; then
  17449. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17450. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17451. have_samplerate_h_hdr=yes
  17452. else
  17453. have_samplerate_h_hdr=no
  17454. fi
  17455. if test x$have_samplerate_h_hdr = xyes; then
  17456. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17457. # Check whether --enable-libsamplerate-shared was given.
  17458. if test "${enable_libsamplerate_shared+set}" = set; then :
  17459. enableval=$enable_libsamplerate_shared;
  17460. else
  17461. enable_libsamplerate_shared=yes
  17462. fi
  17463. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17464. if test x$have_loadso != xyes && \
  17465. test x$enable_libsamplerate_shared = xyes; then
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17467. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17468. fi
  17469. if test x$have_loadso = xyes && \
  17470. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17471. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17472. cat >>confdefs.h <<_ACEOF
  17473. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17474. _ACEOF
  17475. else
  17476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17477. fi
  17478. fi
  17479. fi
  17480. }
  17481. CheckARM()
  17482. {
  17483. # Check whether --enable-arm-simd was given.
  17484. if test "${enable_arm_simd+set}" = set; then :
  17485. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17486. else
  17487. enable_arm_simd=no
  17488. fi
  17489. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17490. save_CFLAGS="$CFLAGS"
  17491. have_arm_simd=no
  17492. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17494. $as_echo_n "checking for ARM SIMD... " >&6; }
  17495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17496. /* end confdefs.h. */
  17497. .text
  17498. .arch armv6
  17499. .object_arch armv4
  17500. .arm
  17501. .altmacro
  17502. #ifndef __ARM_EABI__
  17503. #error EABI is required (to be sure that calling conventions are compatible)
  17504. #endif
  17505. pld [r0]
  17506. uqadd8 r0, r0, r0
  17507. _ACEOF
  17508. if ac_fn_c_try_compile "$LINENO"; then :
  17509. have_arm_simd=yes
  17510. fi
  17511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17513. $as_echo "$have_arm_simd" >&6; }
  17514. CFLAGS="$save_CFLAGS"
  17515. if test x$have_arm_simd = xyes; then
  17516. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17517. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17518. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17519. fi
  17520. fi
  17521. }
  17522. CheckNEON()
  17523. {
  17524. # Check whether --enable-arm-neon was given.
  17525. if test "${enable_arm_neon+set}" = set; then :
  17526. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17527. else
  17528. enable_arm_neon=no
  17529. fi
  17530. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17531. save_CFLAGS="$CFLAGS"
  17532. have_arm_neon=no
  17533. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17535. $as_echo_n "checking for ARM NEON... " >&6; }
  17536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17537. /* end confdefs.h. */
  17538. .text
  17539. .fpu neon
  17540. .arch armv7a
  17541. .object_arch armv4
  17542. .eabi_attribute 10, 0
  17543. .arm
  17544. .altmacro
  17545. #ifndef __ARM_EABI__
  17546. #error EABI is required (to be sure that calling conventions are compatible)
  17547. #endif
  17548. pld [r0]
  17549. vmovn.u16 d0, q0
  17550. _ACEOF
  17551. if ac_fn_c_try_compile "$LINENO"; then :
  17552. have_arm_neon=yes
  17553. fi
  17554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17556. $as_echo "$have_arm_neon" >&6; }
  17557. CFLAGS="$save_CFLAGS"
  17558. if test x$have_arm_neon = xyes; then
  17559. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17560. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17561. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17562. fi
  17563. fi
  17564. }
  17565. CheckVisibilityHidden()
  17566. {
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17568. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17569. have_gcc_fvisibility=no
  17570. visibility_CFLAGS="-fvisibility=hidden"
  17571. save_CFLAGS="$CFLAGS"
  17572. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17574. /* end confdefs.h. */
  17575. #if !defined(__GNUC__) || __GNUC__ < 4
  17576. #error SDL only uses visibility attributes in GCC 4 or newer
  17577. #endif
  17578. int
  17579. main ()
  17580. {
  17581. ;
  17582. return 0;
  17583. }
  17584. _ACEOF
  17585. if ac_fn_c_try_compile "$LINENO"; then :
  17586. have_gcc_fvisibility=yes
  17587. fi
  17588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17590. $as_echo "$have_gcc_fvisibility" >&6; }
  17591. CFLAGS="$save_CFLAGS"
  17592. if test x$have_gcc_fvisibility = xyes; then
  17593. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17594. fi
  17595. }
  17596. CheckNoStrictAliasing()
  17597. {
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17599. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17600. have_gcc_no_strict_aliasing=no
  17601. save_CFLAGS="$CFLAGS"
  17602. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17604. /* end confdefs.h. */
  17605. int x = 0;
  17606. int
  17607. main ()
  17608. {
  17609. ;
  17610. return 0;
  17611. }
  17612. _ACEOF
  17613. if ac_fn_c_try_compile "$LINENO"; then :
  17614. have_gcc_no_strict_aliasing=yes
  17615. fi
  17616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17618. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17619. CFLAGS="$save_CFLAGS"
  17620. if test x$have_gcc_no_strict_aliasing = xyes; then
  17621. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17622. fi
  17623. }
  17624. CheckStackBoundary()
  17625. {
  17626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17627. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17628. have_gcc_preferred_stack_boundary=no
  17629. save_CFLAGS="$CFLAGS"
  17630. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17632. /* end confdefs.h. */
  17633. int x = 0;
  17634. int
  17635. main ()
  17636. {
  17637. ;
  17638. return 0;
  17639. }
  17640. _ACEOF
  17641. if ac_fn_c_try_compile "$LINENO"; then :
  17642. have_gcc_preferred_stack_boundary=yes
  17643. fi
  17644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17646. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17647. CFLAGS="$save_CFLAGS"
  17648. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17649. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17650. fi
  17651. }
  17652. CheckDeclarationAfterStatement()
  17653. {
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17655. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17656. have_gcc_declaration_after_statement=no
  17657. save_CFLAGS="$CFLAGS"
  17658. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17660. /* end confdefs.h. */
  17661. int x = 0;
  17662. int
  17663. main ()
  17664. {
  17665. ;
  17666. return 0;
  17667. }
  17668. _ACEOF
  17669. if ac_fn_c_try_compile "$LINENO"; then :
  17670. have_gcc_declaration_after_statement=yes
  17671. fi
  17672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17674. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17675. CFLAGS="$save_CFLAGS"
  17676. if test x$have_gcc_declaration_after_statement = xyes; then
  17677. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17678. fi
  17679. }
  17680. CheckWarnAll()
  17681. {
  17682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17683. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17684. have_gcc_Wall=no
  17685. save_CFLAGS="$CFLAGS"
  17686. CFLAGS="$save_CFLAGS -Wall"
  17687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17688. /* end confdefs.h. */
  17689. int x = 0;
  17690. int
  17691. main ()
  17692. {
  17693. ;
  17694. return 0;
  17695. }
  17696. _ACEOF
  17697. if ac_fn_c_try_compile "$LINENO"; then :
  17698. have_gcc_Wall=yes
  17699. fi
  17700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17702. $as_echo "$have_gcc_Wall" >&6; }
  17703. CFLAGS="$save_CFLAGS"
  17704. if test x$have_gcc_Wall = xyes; then
  17705. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17707. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17708. need_gcc_Wno_multichar=no
  17709. case "$host" in
  17710. *-*-haiku*)
  17711. need_gcc_Wno_multichar=yes
  17712. ;;
  17713. esac
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17715. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17716. if test x$need_gcc_Wno_multichar = xyes; then
  17717. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17718. fi
  17719. fi
  17720. }
  17721. CheckWayland()
  17722. {
  17723. # Check whether --enable-video-wayland was given.
  17724. if test "${enable_video_wayland+set}" = set; then :
  17725. enableval=$enable_video_wayland;
  17726. else
  17727. enable_video_wayland=yes
  17728. fi
  17729. # Check whether --enable-video-wayland-qt-touch was given.
  17730. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17731. enableval=$enable_video_wayland_qt_touch;
  17732. else
  17733. enable_video_wayland_qt_touch=yes
  17734. fi
  17735. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17737. $as_echo_n "checking for Wayland support... " >&6; }
  17738. video_wayland=no
  17739. if test x$video_opengl_egl = xyes && \
  17740. test x$video_opengles_v2 = xyes; then
  17741. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17742. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17743. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17744. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17745. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17746. WAYLAND_SCANNER_CODE_MODE=private-code
  17747. else
  17748. WAYLAND_SCANNER_CODE_MODE=code
  17749. fi
  17750. video_wayland=yes
  17751. fi
  17752. fi
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17754. $as_echo "$video_wayland" >&6; }
  17755. if test x$video_wayland = xyes; then
  17756. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17757. if test x$enable_video_wayland_qt_touch = xyes; then
  17758. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17759. fi
  17760. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17761. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17762. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17763. # Check whether --enable-wayland-shared was given.
  17764. if test "${enable_wayland_shared+set}" = set; then :
  17765. enableval=$enable_wayland_shared;
  17766. else
  17767. enable_wayland_shared=maybe
  17768. fi
  17769. case "$host" in
  17770. *)
  17771. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17772. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17773. if test x$wayland_egl_lib = x; then
  17774. # This works in Ubuntu 13.10, maybe others
  17775. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17776. fi
  17777. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17778. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17779. ;;
  17780. esac
  17781. if test x$enable_wayland_shared = xmaybe; then
  17782. enable_wayland_shared=yes
  17783. fi
  17784. if test x$have_loadso != xyes && \
  17785. test x$enable_wayland_shared = xyes; then
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17787. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17788. enable_wayland_shared=no
  17789. fi
  17790. if test x$have_loadso = xyes && \
  17791. test x$enable_wayland_shared = xyes && \
  17792. test x$wayland_client_lib != x && \
  17793. test x$wayland_egl_lib != x && \
  17794. test x$wayland_cursor_lib != x && \
  17795. test x$xkbcommon_lib != x; then
  17796. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17797. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17798. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17799. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17800. cat >>confdefs.h <<_ACEOF
  17801. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17802. _ACEOF
  17803. cat >>confdefs.h <<_ACEOF
  17804. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17805. _ACEOF
  17806. cat >>confdefs.h <<_ACEOF
  17807. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17808. _ACEOF
  17809. cat >>confdefs.h <<_ACEOF
  17810. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17811. _ACEOF
  17812. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17813. else
  17814. enable_wayland_shared=no
  17815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17816. SUMMARY_video="${SUMMARY_video} wayland"
  17817. fi
  17818. have_video=yes
  17819. # Check whether --enable-libdecor was given.
  17820. if test "${enable_libdecor+set}" = set; then :
  17821. enableval=$enable_libdecor;
  17822. else
  17823. enable_libdecor=yes
  17824. fi
  17825. if test x$enable_libdecor = xyes; then
  17826. pkg_failed=no
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17828. $as_echo_n "checking for libdecor-0... " >&6; }
  17829. if test -n "$DECOR_CFLAGS"; then
  17830. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17831. elif test -n "$PKG_CONFIG"; then
  17832. if test -n "$PKG_CONFIG" && \
  17833. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17834. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17835. ac_status=$?
  17836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17837. test $ac_status = 0; }; then
  17838. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17839. test "x$?" != "x0" && pkg_failed=yes
  17840. else
  17841. pkg_failed=yes
  17842. fi
  17843. else
  17844. pkg_failed=untried
  17845. fi
  17846. if test -n "$DECOR_LIBS"; then
  17847. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17848. elif test -n "$PKG_CONFIG"; then
  17849. if test -n "$PKG_CONFIG" && \
  17850. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17851. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17852. ac_status=$?
  17853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17854. test $ac_status = 0; }; then
  17855. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17856. test "x$?" != "x0" && pkg_failed=yes
  17857. else
  17858. pkg_failed=yes
  17859. fi
  17860. else
  17861. pkg_failed=untried
  17862. fi
  17863. if test $pkg_failed = yes; then
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17865. $as_echo "no" >&6; }
  17866. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17867. _pkg_short_errors_supported=yes
  17868. else
  17869. _pkg_short_errors_supported=no
  17870. fi
  17871. if test $_pkg_short_errors_supported = yes; then
  17872. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17873. else
  17874. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17875. fi
  17876. # Put the nasty error message in config.log where it belongs
  17877. echo "$DECOR_PKG_ERRORS" >&5
  17878. video_libdecor=no
  17879. elif test $pkg_failed = untried; then
  17880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17881. $as_echo "no" >&6; }
  17882. video_libdecor=no
  17883. else
  17884. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17885. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17887. $as_echo "yes" >&6; }
  17888. video_libdecor=yes
  17889. fi
  17890. if test x$video_libdecor = xyes; then
  17891. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17892. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17893. # Check whether --enable-libdecor-shared was given.
  17894. if test "${enable_libdecor_shared+set}" = set; then :
  17895. enableval=$enable_libdecor_shared;
  17896. else
  17897. enable_libdecor_shared=yes
  17898. fi
  17899. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17900. if test x$enable_wayland_shared != xyes; then
  17901. enable_libdecor_shared=no
  17902. fi
  17903. if test x$have_loadso != xyes && \
  17904. test x$enable_libdecor_shared = xyes; then
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17906. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17907. fi
  17908. if test x$have_loadso = xyes && \
  17909. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17910. echo "-- dynamic libdecor -> $decor_lib"
  17911. cat >>confdefs.h <<_ACEOF
  17912. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17913. _ACEOF
  17914. else
  17915. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17916. fi
  17917. fi
  17918. fi
  17919. fi
  17920. fi
  17921. }
  17922. CheckNativeClient()
  17923. {
  17924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17925. /* end confdefs.h. */
  17926. #if !defined(__native_client__)
  17927. #error "NO NACL"
  17928. #endif
  17929. int
  17930. main ()
  17931. {
  17932. ;
  17933. return 0;
  17934. }
  17935. _ACEOF
  17936. if ac_fn_c_try_compile "$LINENO"; then :
  17937. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17938. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17939. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17940. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17941. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17942. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17943. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17944. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17945. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17946. SUMMARY_audio="${SUMMARY_audio} nacl"
  17947. have_audio=yes
  17948. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17949. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17950. have_video=yes
  17951. fi
  17952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17953. }
  17954. CheckRPI()
  17955. {
  17956. # Check whether --enable-video-rpi was given.
  17957. if test "${enable_video_rpi+set}" = set; then :
  17958. enableval=$enable_video_rpi;
  17959. else
  17960. enable_video_rpi=yes
  17961. fi
  17962. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17963. pkg_failed=no
  17964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17965. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17966. if test -n "$RPI_CFLAGS"; then
  17967. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17968. elif test -n "$PKG_CONFIG"; then
  17969. if test -n "$PKG_CONFIG" && \
  17970. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17971. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17972. ac_status=$?
  17973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17974. test $ac_status = 0; }; then
  17975. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17976. test "x$?" != "x0" && pkg_failed=yes
  17977. else
  17978. pkg_failed=yes
  17979. fi
  17980. else
  17981. pkg_failed=untried
  17982. fi
  17983. if test -n "$RPI_LIBS"; then
  17984. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17985. elif test -n "$PKG_CONFIG"; then
  17986. if test -n "$PKG_CONFIG" && \
  17987. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17988. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17989. ac_status=$?
  17990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17991. test $ac_status = 0; }; then
  17992. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17993. test "x$?" != "x0" && pkg_failed=yes
  17994. else
  17995. pkg_failed=yes
  17996. fi
  17997. else
  17998. pkg_failed=untried
  17999. fi
  18000. if test $pkg_failed = yes; then
  18001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18002. $as_echo "no" >&6; }
  18003. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18004. _pkg_short_errors_supported=yes
  18005. else
  18006. _pkg_short_errors_supported=no
  18007. fi
  18008. if test $_pkg_short_errors_supported = yes; then
  18009. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18010. else
  18011. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18012. fi
  18013. # Put the nasty error message in config.log where it belongs
  18014. echo "$RPI_PKG_ERRORS" >&5
  18015. video_rpi=no
  18016. elif test $pkg_failed = untried; then
  18017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18018. $as_echo "no" >&6; }
  18019. video_rpi=no
  18020. else
  18021. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18022. RPI_LIBS=$pkg_cv_RPI_LIBS
  18023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18024. $as_echo "yes" >&6; }
  18025. video_rpi=yes
  18026. fi
  18027. if test x$video_rpi = xno; then
  18028. if test x$ARCH = xnetbsd; then
  18029. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18030. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18031. else
  18032. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18033. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18034. fi
  18035. fi
  18036. # Save the original compiler flags and libraries
  18037. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18038. # Add the Raspberry Pi compiler flags and libraries
  18039. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18041. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18042. have_video_rpi=no
  18043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18044. /* end confdefs.h. */
  18045. #include <bcm_host.h>
  18046. #include <EGL/eglplatform.h>
  18047. int
  18048. main ()
  18049. {
  18050. EGL_DISPMANX_WINDOW_T window;
  18051. bcm_host_init();
  18052. ;
  18053. return 0;
  18054. }
  18055. _ACEOF
  18056. if ac_fn_c_try_link "$LINENO"; then :
  18057. have_video_rpi=yes
  18058. fi
  18059. rm -f core conftest.err conftest.$ac_objext \
  18060. conftest$ac_exeext conftest.$ac_ext
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18062. $as_echo "$have_video_rpi" >&6; }
  18063. # Restore the compiler flags and libraries
  18064. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18065. if test x$have_video_rpi = xyes; then
  18066. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18067. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18068. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18070. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18071. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18072. SUMMARY_video="${SUMMARY_video} rpi"
  18073. have_video=yes
  18074. fi
  18075. fi
  18076. }
  18077. CheckX11()
  18078. {
  18079. # Check whether --enable-video-x11 was given.
  18080. if test "${enable_video_x11+set}" = set; then :
  18081. enableval=$enable_video_x11;
  18082. else
  18083. enable_video_x11=yes
  18084. fi
  18085. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18086. case "$host" in
  18087. *-*-darwin*)
  18088. # This isn't necessary for X11, but fixes GLX detection
  18089. if test "x$x_includes" = xNONE && \
  18090. test "x$x_libraries" = xNONE && \
  18091. test -d /opt/X11/include && \
  18092. test -d /opt/X11/lib; then
  18093. x_includes="/opt/X11/include"
  18094. x_libraries="/opt/X11/lib"
  18095. fi
  18096. ;;
  18097. esac
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18099. $as_echo_n "checking for X... " >&6; }
  18100. # Check whether --with-x was given.
  18101. if test "${with_x+set}" = set; then :
  18102. withval=$with_x;
  18103. fi
  18104. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18105. if test "x$with_x" = xno; then
  18106. # The user explicitly disabled X.
  18107. have_x=disabled
  18108. else
  18109. case $x_includes,$x_libraries in #(
  18110. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18111. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18112. $as_echo_n "(cached) " >&6
  18113. else
  18114. # One or both of the vars are not set, and there is no cached value.
  18115. ac_x_includes=no
  18116. ac_x_libraries=no
  18117. # Do we need to do anything special at all?
  18118. ac_save_LIBS=$LIBS
  18119. LIBS="-lX11 $LIBS"
  18120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18121. /* end confdefs.h. */
  18122. #include <X11/Xlib.h>
  18123. int
  18124. main ()
  18125. {
  18126. XrmInitialize ()
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. if ac_fn_c_try_link "$LINENO"; then :
  18132. # We can compile and link X programs with no special options.
  18133. ac_x_includes=
  18134. ac_x_libraries=
  18135. fi
  18136. rm -f core conftest.err conftest.$ac_objext \
  18137. conftest$ac_exeext conftest.$ac_ext
  18138. LIBS="$ac_save_LIBS"
  18139. # If that didn't work, only try xmkmf and filesystem searches
  18140. # for native compilation.
  18141. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18142. rm -f -r conftest.dir
  18143. if mkdir conftest.dir; then
  18144. cd conftest.dir
  18145. cat >Imakefile <<'_ACEOF'
  18146. incroot:
  18147. @echo incroot='${INCROOT}'
  18148. usrlibdir:
  18149. @echo usrlibdir='${USRLIBDIR}'
  18150. libdir:
  18151. @echo libdir='${LIBDIR}'
  18152. _ACEOF
  18153. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18154. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18155. for ac_var in incroot usrlibdir libdir; do
  18156. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18157. done
  18158. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18159. for ac_extension in a so sl dylib la dll; do
  18160. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18161. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18162. ac_im_usrlibdir=$ac_im_libdir; break
  18163. fi
  18164. done
  18165. # Screen out bogus values from the imake configuration. They are
  18166. # bogus both because they are the default anyway, and because
  18167. # using them would break gcc on systems where it needs fixed includes.
  18168. case $ac_im_incroot in
  18169. /usr/include) ac_x_includes= ;;
  18170. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18171. esac
  18172. case $ac_im_usrlibdir in
  18173. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18174. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18175. esac
  18176. fi
  18177. cd ..
  18178. rm -f -r conftest.dir
  18179. fi
  18180. # Standard set of common directories for X headers.
  18181. # Check X11 before X11Rn because it is often a symlink to the current release.
  18182. ac_x_header_dirs='
  18183. /usr/X11/include
  18184. /usr/X11R7/include
  18185. /usr/X11R6/include
  18186. /usr/X11R5/include
  18187. /usr/X11R4/include
  18188. /usr/include/X11
  18189. /usr/include/X11R7
  18190. /usr/include/X11R6
  18191. /usr/include/X11R5
  18192. /usr/include/X11R4
  18193. /usr/local/X11/include
  18194. /usr/local/X11R7/include
  18195. /usr/local/X11R6/include
  18196. /usr/local/X11R5/include
  18197. /usr/local/X11R4/include
  18198. /usr/local/include/X11
  18199. /usr/local/include/X11R7
  18200. /usr/local/include/X11R6
  18201. /usr/local/include/X11R5
  18202. /usr/local/include/X11R4
  18203. /opt/X11/include
  18204. /usr/X386/include
  18205. /usr/x386/include
  18206. /usr/XFree86/include/X11
  18207. /usr/include
  18208. /usr/local/include
  18209. /usr/unsupported/include
  18210. /usr/athena/include
  18211. /usr/local/x11r5/include
  18212. /usr/lpp/Xamples/include
  18213. /usr/openwin/include
  18214. /usr/openwin/share/include'
  18215. if test "$ac_x_includes" = no; then
  18216. # Guess where to find include files, by looking for Xlib.h.
  18217. # First, try using that file with no special directory specified.
  18218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18219. /* end confdefs.h. */
  18220. #include <X11/Xlib.h>
  18221. _ACEOF
  18222. if ac_fn_c_try_cpp "$LINENO"; then :
  18223. # We can compile using X headers with no special include directory.
  18224. ac_x_includes=
  18225. else
  18226. for ac_dir in $ac_x_header_dirs; do
  18227. if test -r "$ac_dir/X11/Xlib.h"; then
  18228. ac_x_includes=$ac_dir
  18229. break
  18230. fi
  18231. done
  18232. fi
  18233. rm -f conftest.err conftest.i conftest.$ac_ext
  18234. fi # $ac_x_includes = no
  18235. if test "$ac_x_libraries" = no; then
  18236. # Check for the libraries.
  18237. # See if we find them without any special options.
  18238. # Don't add to $LIBS permanently.
  18239. ac_save_LIBS=$LIBS
  18240. LIBS="-lX11 $LIBS"
  18241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18242. /* end confdefs.h. */
  18243. #include <X11/Xlib.h>
  18244. int
  18245. main ()
  18246. {
  18247. XrmInitialize ()
  18248. ;
  18249. return 0;
  18250. }
  18251. _ACEOF
  18252. if ac_fn_c_try_link "$LINENO"; then :
  18253. LIBS=$ac_save_LIBS
  18254. # We can link X programs with no special library path.
  18255. ac_x_libraries=
  18256. else
  18257. LIBS=$ac_save_LIBS
  18258. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18259. do
  18260. # Don't even attempt the hair of trying to link an X program!
  18261. for ac_extension in a so sl dylib la dll; do
  18262. if test -r "$ac_dir/libX11.$ac_extension"; then
  18263. ac_x_libraries=$ac_dir
  18264. break 2
  18265. fi
  18266. done
  18267. done
  18268. fi
  18269. rm -f core conftest.err conftest.$ac_objext \
  18270. conftest$ac_exeext conftest.$ac_ext
  18271. fi # $ac_x_libraries = no
  18272. fi
  18273. # Record the results.
  18274. case $ac_x_includes,$ac_x_libraries in #(
  18275. no,* | *,no | *\'*) :
  18276. # Didn't find X, or a directory has "'" in its name.
  18277. ac_cv_have_x="have_x=no" ;; #(
  18278. *) :
  18279. # Record where we found X for the cache.
  18280. ac_cv_have_x="have_x=yes\
  18281. ac_x_includes='$ac_x_includes'\
  18282. ac_x_libraries='$ac_x_libraries'" ;;
  18283. esac
  18284. fi
  18285. ;; #(
  18286. *) have_x=yes;;
  18287. esac
  18288. eval "$ac_cv_have_x"
  18289. fi # $with_x != no
  18290. if test "$have_x" != yes; then
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18292. $as_echo "$have_x" >&6; }
  18293. no_x=yes
  18294. else
  18295. # If each of the values was on the command line, it overrides each guess.
  18296. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18297. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18298. # Update the cache value to reflect the command line values.
  18299. ac_cv_have_x="have_x=yes\
  18300. ac_x_includes='$x_includes'\
  18301. ac_x_libraries='$x_libraries'"
  18302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18303. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18304. fi
  18305. if test "$no_x" = yes; then
  18306. # Not all programs may use this symbol, but it does not hurt to define it.
  18307. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18308. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18309. else
  18310. if test -n "$x_includes"; then
  18311. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18312. fi
  18313. # It would also be nice to do this for all -L options, not just this one.
  18314. if test -n "$x_libraries"; then
  18315. X_LIBS="$X_LIBS -L$x_libraries"
  18316. # For Solaris; some versions of Sun CC require a space after -R and
  18317. # others require no space. Words are not sufficient . . . .
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18319. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18320. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18321. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18322. ac_c_werror_flag=yes
  18323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18324. /* end confdefs.h. */
  18325. int
  18326. main ()
  18327. {
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_link "$LINENO"; then :
  18333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18334. $as_echo "no" >&6; }
  18335. X_LIBS="$X_LIBS -R$x_libraries"
  18336. else
  18337. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. int
  18341. main ()
  18342. {
  18343. ;
  18344. return 0;
  18345. }
  18346. _ACEOF
  18347. if ac_fn_c_try_link "$LINENO"; then :
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18349. $as_echo "yes" >&6; }
  18350. X_LIBS="$X_LIBS -R $x_libraries"
  18351. else
  18352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18353. $as_echo "neither works" >&6; }
  18354. fi
  18355. rm -f core conftest.err conftest.$ac_objext \
  18356. conftest$ac_exeext conftest.$ac_ext
  18357. fi
  18358. rm -f core conftest.err conftest.$ac_objext \
  18359. conftest$ac_exeext conftest.$ac_ext
  18360. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18361. LIBS=$ac_xsave_LIBS
  18362. fi
  18363. # Check for system-dependent libraries X programs must link with.
  18364. # Do this before checking for the system-independent R6 libraries
  18365. # (-lICE), since we may need -lsocket or whatever for X linking.
  18366. if test "$ISC" = yes; then
  18367. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18368. else
  18369. # Martyn Johnson says this is needed for Ultrix, if the X
  18370. # libraries were built with DECnet support. And Karl Berry says
  18371. # the Alpha needs dnet_stub (dnet does not exist).
  18372. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18374. /* end confdefs.h. */
  18375. /* Override any GCC internal prototype to avoid an error.
  18376. Use char because int might match the return type of a GCC
  18377. builtin and then its argument prototype would still apply. */
  18378. #ifdef __cplusplus
  18379. extern "C"
  18380. #endif
  18381. char XOpenDisplay ();
  18382. int
  18383. main ()
  18384. {
  18385. return XOpenDisplay ();
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_link "$LINENO"; then :
  18391. else
  18392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18393. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18394. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18395. $as_echo_n "(cached) " >&6
  18396. else
  18397. ac_check_lib_save_LIBS=$LIBS
  18398. LIBS="-ldnet $LIBS"
  18399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18400. /* end confdefs.h. */
  18401. /* Override any GCC internal prototype to avoid an error.
  18402. Use char because int might match the return type of a GCC
  18403. builtin and then its argument prototype would still apply. */
  18404. #ifdef __cplusplus
  18405. extern "C"
  18406. #endif
  18407. char dnet_ntoa ();
  18408. int
  18409. main ()
  18410. {
  18411. return dnet_ntoa ();
  18412. ;
  18413. return 0;
  18414. }
  18415. _ACEOF
  18416. if ac_fn_c_try_link "$LINENO"; then :
  18417. ac_cv_lib_dnet_dnet_ntoa=yes
  18418. else
  18419. ac_cv_lib_dnet_dnet_ntoa=no
  18420. fi
  18421. rm -f core conftest.err conftest.$ac_objext \
  18422. conftest$ac_exeext conftest.$ac_ext
  18423. LIBS=$ac_check_lib_save_LIBS
  18424. fi
  18425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18426. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18427. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18428. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18429. fi
  18430. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18432. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18433. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18434. $as_echo_n "(cached) " >&6
  18435. else
  18436. ac_check_lib_save_LIBS=$LIBS
  18437. LIBS="-ldnet_stub $LIBS"
  18438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18439. /* end confdefs.h. */
  18440. /* Override any GCC internal prototype to avoid an error.
  18441. Use char because int might match the return type of a GCC
  18442. builtin and then its argument prototype would still apply. */
  18443. #ifdef __cplusplus
  18444. extern "C"
  18445. #endif
  18446. char dnet_ntoa ();
  18447. int
  18448. main ()
  18449. {
  18450. return dnet_ntoa ();
  18451. ;
  18452. return 0;
  18453. }
  18454. _ACEOF
  18455. if ac_fn_c_try_link "$LINENO"; then :
  18456. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18457. else
  18458. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18459. fi
  18460. rm -f core conftest.err conftest.$ac_objext \
  18461. conftest$ac_exeext conftest.$ac_ext
  18462. LIBS=$ac_check_lib_save_LIBS
  18463. fi
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18465. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18466. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18467. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18468. fi
  18469. fi
  18470. fi
  18471. rm -f core conftest.err conftest.$ac_objext \
  18472. conftest$ac_exeext conftest.$ac_ext
  18473. LIBS="$ac_xsave_LIBS"
  18474. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18475. # to get the SysV transport functions.
  18476. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18477. # needs -lnsl.
  18478. # The nsl library prevents programs from opening the X display
  18479. # on Irix 5.2, according to T.E. Dickey.
  18480. # The functions gethostbyname, getservbyname, and inet_addr are
  18481. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18482. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18483. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18484. fi
  18485. if test $ac_cv_func_gethostbyname = no; then
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18487. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18488. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18489. $as_echo_n "(cached) " >&6
  18490. else
  18491. ac_check_lib_save_LIBS=$LIBS
  18492. LIBS="-lnsl $LIBS"
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. /* Override any GCC internal prototype to avoid an error.
  18496. Use char because int might match the return type of a GCC
  18497. builtin and then its argument prototype would still apply. */
  18498. #ifdef __cplusplus
  18499. extern "C"
  18500. #endif
  18501. char gethostbyname ();
  18502. int
  18503. main ()
  18504. {
  18505. return gethostbyname ();
  18506. ;
  18507. return 0;
  18508. }
  18509. _ACEOF
  18510. if ac_fn_c_try_link "$LINENO"; then :
  18511. ac_cv_lib_nsl_gethostbyname=yes
  18512. else
  18513. ac_cv_lib_nsl_gethostbyname=no
  18514. fi
  18515. rm -f core conftest.err conftest.$ac_objext \
  18516. conftest$ac_exeext conftest.$ac_ext
  18517. LIBS=$ac_check_lib_save_LIBS
  18518. fi
  18519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18520. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18521. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18522. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18523. fi
  18524. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18526. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18527. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18528. $as_echo_n "(cached) " >&6
  18529. else
  18530. ac_check_lib_save_LIBS=$LIBS
  18531. LIBS="-lbsd $LIBS"
  18532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18533. /* end confdefs.h. */
  18534. /* Override any GCC internal prototype to avoid an error.
  18535. Use char because int might match the return type of a GCC
  18536. builtin and then its argument prototype would still apply. */
  18537. #ifdef __cplusplus
  18538. extern "C"
  18539. #endif
  18540. char gethostbyname ();
  18541. int
  18542. main ()
  18543. {
  18544. return gethostbyname ();
  18545. ;
  18546. return 0;
  18547. }
  18548. _ACEOF
  18549. if ac_fn_c_try_link "$LINENO"; then :
  18550. ac_cv_lib_bsd_gethostbyname=yes
  18551. else
  18552. ac_cv_lib_bsd_gethostbyname=no
  18553. fi
  18554. rm -f core conftest.err conftest.$ac_objext \
  18555. conftest$ac_exeext conftest.$ac_ext
  18556. LIBS=$ac_check_lib_save_LIBS
  18557. fi
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18559. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18560. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18561. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18562. fi
  18563. fi
  18564. fi
  18565. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18566. # socket/setsockopt and other routines are undefined under SCO ODT
  18567. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18568. # on later versions), says Simon Leinen: it contains gethostby*
  18569. # variants that don't use the name server (or something). -lsocket
  18570. # must be given before -lnsl if both are needed. We assume that
  18571. # if connect needs -lnsl, so does gethostbyname.
  18572. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18573. if test "x$ac_cv_func_connect" = xyes; then :
  18574. fi
  18575. if test $ac_cv_func_connect = no; then
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18577. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18578. if ${ac_cv_lib_socket_connect+:} false; then :
  18579. $as_echo_n "(cached) " >&6
  18580. else
  18581. ac_check_lib_save_LIBS=$LIBS
  18582. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18584. /* end confdefs.h. */
  18585. /* Override any GCC internal prototype to avoid an error.
  18586. Use char because int might match the return type of a GCC
  18587. builtin and then its argument prototype would still apply. */
  18588. #ifdef __cplusplus
  18589. extern "C"
  18590. #endif
  18591. char connect ();
  18592. int
  18593. main ()
  18594. {
  18595. return connect ();
  18596. ;
  18597. return 0;
  18598. }
  18599. _ACEOF
  18600. if ac_fn_c_try_link "$LINENO"; then :
  18601. ac_cv_lib_socket_connect=yes
  18602. else
  18603. ac_cv_lib_socket_connect=no
  18604. fi
  18605. rm -f core conftest.err conftest.$ac_objext \
  18606. conftest$ac_exeext conftest.$ac_ext
  18607. LIBS=$ac_check_lib_save_LIBS
  18608. fi
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18610. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18611. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18612. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18613. fi
  18614. fi
  18615. # Guillermo Gomez says -lposix is necessary on A/UX.
  18616. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18617. if test "x$ac_cv_func_remove" = xyes; then :
  18618. fi
  18619. if test $ac_cv_func_remove = no; then
  18620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18621. $as_echo_n "checking for remove in -lposix... " >&6; }
  18622. if ${ac_cv_lib_posix_remove+:} false; then :
  18623. $as_echo_n "(cached) " >&6
  18624. else
  18625. ac_check_lib_save_LIBS=$LIBS
  18626. LIBS="-lposix $LIBS"
  18627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18628. /* end confdefs.h. */
  18629. /* Override any GCC internal prototype to avoid an error.
  18630. Use char because int might match the return type of a GCC
  18631. builtin and then its argument prototype would still apply. */
  18632. #ifdef __cplusplus
  18633. extern "C"
  18634. #endif
  18635. char remove ();
  18636. int
  18637. main ()
  18638. {
  18639. return remove ();
  18640. ;
  18641. return 0;
  18642. }
  18643. _ACEOF
  18644. if ac_fn_c_try_link "$LINENO"; then :
  18645. ac_cv_lib_posix_remove=yes
  18646. else
  18647. ac_cv_lib_posix_remove=no
  18648. fi
  18649. rm -f core conftest.err conftest.$ac_objext \
  18650. conftest$ac_exeext conftest.$ac_ext
  18651. LIBS=$ac_check_lib_save_LIBS
  18652. fi
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18654. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18655. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18656. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18657. fi
  18658. fi
  18659. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18660. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18661. if test "x$ac_cv_func_shmat" = xyes; then :
  18662. fi
  18663. if test $ac_cv_func_shmat = no; then
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18665. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18666. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18667. $as_echo_n "(cached) " >&6
  18668. else
  18669. ac_check_lib_save_LIBS=$LIBS
  18670. LIBS="-lipc $LIBS"
  18671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18672. /* end confdefs.h. */
  18673. /* Override any GCC internal prototype to avoid an error.
  18674. Use char because int might match the return type of a GCC
  18675. builtin and then its argument prototype would still apply. */
  18676. #ifdef __cplusplus
  18677. extern "C"
  18678. #endif
  18679. char shmat ();
  18680. int
  18681. main ()
  18682. {
  18683. return shmat ();
  18684. ;
  18685. return 0;
  18686. }
  18687. _ACEOF
  18688. if ac_fn_c_try_link "$LINENO"; then :
  18689. ac_cv_lib_ipc_shmat=yes
  18690. else
  18691. ac_cv_lib_ipc_shmat=no
  18692. fi
  18693. rm -f core conftest.err conftest.$ac_objext \
  18694. conftest$ac_exeext conftest.$ac_ext
  18695. LIBS=$ac_check_lib_save_LIBS
  18696. fi
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18698. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18699. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18700. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18701. fi
  18702. fi
  18703. fi
  18704. # Check for libraries that X11R6 Xt/Xaw programs need.
  18705. ac_save_LDFLAGS=$LDFLAGS
  18706. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18707. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18708. # check for ICE first), but we must link in the order -lSM -lICE or
  18709. # we get undefined symbols. So assume we have SM if we have ICE.
  18710. # These have to be linked with before -lX11, unlike the other
  18711. # libraries we check for below, so use a different variable.
  18712. # John Interrante, Karl Berry
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18714. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18715. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18716. $as_echo_n "(cached) " >&6
  18717. else
  18718. ac_check_lib_save_LIBS=$LIBS
  18719. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18721. /* end confdefs.h. */
  18722. /* Override any GCC internal prototype to avoid an error.
  18723. Use char because int might match the return type of a GCC
  18724. builtin and then its argument prototype would still apply. */
  18725. #ifdef __cplusplus
  18726. extern "C"
  18727. #endif
  18728. char IceConnectionNumber ();
  18729. int
  18730. main ()
  18731. {
  18732. return IceConnectionNumber ();
  18733. ;
  18734. return 0;
  18735. }
  18736. _ACEOF
  18737. if ac_fn_c_try_link "$LINENO"; then :
  18738. ac_cv_lib_ICE_IceConnectionNumber=yes
  18739. else
  18740. ac_cv_lib_ICE_IceConnectionNumber=no
  18741. fi
  18742. rm -f core conftest.err conftest.$ac_objext \
  18743. conftest$ac_exeext conftest.$ac_ext
  18744. LIBS=$ac_check_lib_save_LIBS
  18745. fi
  18746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18747. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18748. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18749. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18750. fi
  18751. LDFLAGS=$ac_save_LDFLAGS
  18752. fi
  18753. if test x$have_x = xyes; then
  18754. # Check whether --enable-x11-shared was given.
  18755. if test "${enable_x11_shared+set}" = set; then :
  18756. enableval=$enable_x11_shared;
  18757. else
  18758. enable_x11_shared=maybe
  18759. fi
  18760. case "$host" in
  18761. *-*-darwin*)
  18762. # Apple now puts this in /opt/X11
  18763. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18764. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18765. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18766. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18767. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18768. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18769. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18770. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18771. ;;
  18772. *-*-openbsd*)
  18773. x11_lib='libX11.so'
  18774. x11ext_lib='libXext.so'
  18775. xcursor_lib='libXcursor.so'
  18776. xinput_lib='libXi.so'
  18777. xfixes_lib='libXfixes.so'
  18778. xrandr_lib='libXrandr.so'
  18779. xrender_lib='libXrender.so'
  18780. xss_lib='libXss.so'
  18781. ;;
  18782. *)
  18783. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18784. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18785. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18786. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18787. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18788. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18789. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18790. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18791. ;;
  18792. esac
  18793. if test x$ac_cv_func_shmat != xyes; then
  18794. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18795. fi
  18796. CFLAGS="$CFLAGS $X_CFLAGS"
  18797. LDFLAGS="$LDFLAGS $X_LIBS"
  18798. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18799. #include <X11/Xproto.h>
  18800. "
  18801. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18802. have_xext_h_hdr=yes
  18803. else
  18804. have_xext_h_hdr=no
  18805. fi
  18806. if test x$have_xext_h_hdr != xyes; then
  18807. as_fn_error $? "
  18808. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18809. " "$LINENO" 5
  18810. fi
  18811. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18812. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18813. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18814. # Needed so SDL applications can include SDL_syswm.h
  18815. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18816. if test x$enable_x11_shared = xmaybe; then
  18817. enable_x11_shared=yes
  18818. fi
  18819. if test x$have_loadso != xyes && \
  18820. test x$enable_x11_shared = xyes; then
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18822. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18823. enable_x11_shared=no
  18824. fi
  18825. if test x$have_loadso = xyes && \
  18826. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18827. echo "-- dynamic libX11 -> $x11_lib"
  18828. echo "-- dynamic libX11ext -> $x11ext_lib"
  18829. cat >>confdefs.h <<_ACEOF
  18830. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18831. _ACEOF
  18832. cat >>confdefs.h <<_ACEOF
  18833. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18834. _ACEOF
  18835. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18836. else
  18837. enable_x11_shared=no
  18838. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18839. SUMMARY_video="${SUMMARY_video} x11"
  18840. fi
  18841. have_video=yes
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18843. $as_echo_n "checking for XGenericEvent... " >&6; }
  18844. have_XGenericEvent=no
  18845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18846. /* end confdefs.h. */
  18847. #include <X11/Xlib.h>
  18848. int
  18849. main ()
  18850. {
  18851. Display *display;
  18852. XEvent event;
  18853. XGenericEventCookie *cookie = &event.xcookie;
  18854. XNextEvent(display, &event);
  18855. XGetEventData(display, cookie);
  18856. XFreeEventData(display, cookie);
  18857. ;
  18858. return 0;
  18859. }
  18860. _ACEOF
  18861. if ac_fn_c_try_compile "$LINENO"; then :
  18862. have_XGenericEvent=yes
  18863. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18864. fi
  18865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18867. $as_echo "$have_XGenericEvent" >&6; }
  18868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18869. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18870. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18871. $as_echo_n "(cached) " >&6
  18872. else
  18873. ac_check_lib_save_LIBS=$LIBS
  18874. LIBS="-lX11 $LIBS"
  18875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18876. /* end confdefs.h. */
  18877. /* Override any GCC internal prototype to avoid an error.
  18878. Use char because int might match the return type of a GCC
  18879. builtin and then its argument prototype would still apply. */
  18880. #ifdef __cplusplus
  18881. extern "C"
  18882. #endif
  18883. char XkbKeycodeToKeysym ();
  18884. int
  18885. main ()
  18886. {
  18887. return XkbKeycodeToKeysym ();
  18888. ;
  18889. return 0;
  18890. }
  18891. _ACEOF
  18892. if ac_fn_c_try_link "$LINENO"; then :
  18893. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18894. else
  18895. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18896. fi
  18897. rm -f core conftest.err conftest.$ac_objext \
  18898. conftest$ac_exeext conftest.$ac_ext
  18899. LIBS=$ac_check_lib_save_LIBS
  18900. fi
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18902. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18903. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18904. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18905. fi
  18906. # Check whether --enable-video-x11-xcursor was given.
  18907. if test "${enable_video_x11_xcursor+set}" = set; then :
  18908. enableval=$enable_video_x11_xcursor;
  18909. else
  18910. enable_video_x11_xcursor=yes
  18911. fi
  18912. if test x$enable_video_x11_xcursor = xyes; then
  18913. definitely_enable_video_x11_xcursor=no
  18914. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18915. "
  18916. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18917. have_xcursor_h_hdr=yes
  18918. else
  18919. have_xcursor_h_hdr=no
  18920. fi
  18921. if test x$have_xcursor_h_hdr = xyes; then
  18922. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18923. echo "-- dynamic libXcursor -> $xcursor_lib"
  18924. cat >>confdefs.h <<_ACEOF
  18925. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18926. _ACEOF
  18927. definitely_enable_video_x11_xcursor=yes
  18928. else
  18929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18930. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18931. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18932. $as_echo_n "(cached) " >&6
  18933. else
  18934. ac_check_lib_save_LIBS=$LIBS
  18935. LIBS="-lXcursor $LIBS"
  18936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18937. /* end confdefs.h. */
  18938. /* Override any GCC internal prototype to avoid an error.
  18939. Use char because int might match the return type of a GCC
  18940. builtin and then its argument prototype would still apply. */
  18941. #ifdef __cplusplus
  18942. extern "C"
  18943. #endif
  18944. char XcursorImageCreate ();
  18945. int
  18946. main ()
  18947. {
  18948. return XcursorImageCreate ();
  18949. ;
  18950. return 0;
  18951. }
  18952. _ACEOF
  18953. if ac_fn_c_try_link "$LINENO"; then :
  18954. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18955. else
  18956. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18957. fi
  18958. rm -f core conftest.err conftest.$ac_objext \
  18959. conftest$ac_exeext conftest.$ac_ext
  18960. LIBS=$ac_check_lib_save_LIBS
  18961. fi
  18962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18963. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18964. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18965. have_xcursor_lib=yes
  18966. fi
  18967. if test x$have_xcursor_lib = xyes ; then
  18968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18969. definitely_enable_video_x11_xcursor=yes
  18970. fi
  18971. fi
  18972. fi
  18973. fi
  18974. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18975. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18976. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18977. fi
  18978. # Check whether --enable-video-x11-xdbe was given.
  18979. if test "${enable_video_x11_xdbe+set}" = set; then :
  18980. enableval=$enable_video_x11_xdbe;
  18981. else
  18982. enable_video_x11_xdbe=yes
  18983. fi
  18984. if test x$enable_video_x11_xdbe = xyes; then
  18985. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18986. "
  18987. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18988. have_dbe_h_hdr=yes
  18989. else
  18990. have_dbe_h_hdr=no
  18991. fi
  18992. if test x$have_dbe_h_hdr = xyes; then
  18993. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18994. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18995. fi
  18996. fi
  18997. # Check whether --enable-video-x11-xinput was given.
  18998. if test "${enable_video_x11_xinput+set}" = set; then :
  18999. enableval=$enable_video_x11_xinput;
  19000. else
  19001. enable_video_x11_xinput=yes
  19002. fi
  19003. if test x$enable_video_x11_xinput = xyes; then
  19004. definitely_enable_video_x11_xinput=no
  19005. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19006. "
  19007. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19008. have_xinput_h_hdr=yes
  19009. else
  19010. have_xinput_h_hdr=no
  19011. fi
  19012. if test x$have_xinput_h_hdr = xyes; then
  19013. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19014. echo "-- dynamic libXi -> $xinput_lib"
  19015. cat >>confdefs.h <<_ACEOF
  19016. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19017. _ACEOF
  19018. definitely_enable_video_x11_xinput=yes
  19019. else
  19020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19021. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19022. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19023. $as_echo_n "(cached) " >&6
  19024. else
  19025. ac_check_lib_save_LIBS=$LIBS
  19026. LIBS="-lXi $LIBS"
  19027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19028. /* end confdefs.h. */
  19029. /* Override any GCC internal prototype to avoid an error.
  19030. Use char because int might match the return type of a GCC
  19031. builtin and then its argument prototype would still apply. */
  19032. #ifdef __cplusplus
  19033. extern "C"
  19034. #endif
  19035. char XOpenDevice ();
  19036. int
  19037. main ()
  19038. {
  19039. return XOpenDevice ();
  19040. ;
  19041. return 0;
  19042. }
  19043. _ACEOF
  19044. if ac_fn_c_try_link "$LINENO"; then :
  19045. ac_cv_lib_Xi_XOpenDevice=yes
  19046. else
  19047. ac_cv_lib_Xi_XOpenDevice=no
  19048. fi
  19049. rm -f core conftest.err conftest.$ac_objext \
  19050. conftest$ac_exeext conftest.$ac_ext
  19051. LIBS=$ac_check_lib_save_LIBS
  19052. fi
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19054. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19055. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19056. have_xinput_lib=yes
  19057. fi
  19058. if test x$have_xinput_lib = xyes ; then
  19059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19060. definitely_enable_video_x11_xinput=yes
  19061. fi
  19062. fi
  19063. fi
  19064. fi
  19065. if test x$definitely_enable_video_x11_xinput = xyes; then
  19066. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19067. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19069. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19070. have_xinput2_multitouch=no
  19071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19072. /* end confdefs.h. */
  19073. #include <X11/Xlib.h>
  19074. #include <X11/Xproto.h>
  19075. #include <X11/extensions/XInput2.h>
  19076. int
  19077. main ()
  19078. {
  19079. int event_type = XI_TouchBegin;
  19080. XITouchClassInfo *t;
  19081. ;
  19082. return 0;
  19083. }
  19084. _ACEOF
  19085. if ac_fn_c_try_compile "$LINENO"; then :
  19086. have_xinput2_multitouch=yes
  19087. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19088. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19089. fi
  19090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19092. $as_echo "$have_xinput2_multitouch" >&6; }
  19093. fi
  19094. # Check whether --enable-video-x11-xfixes was given.
  19095. if test "${enable_video_x11_xfixes+set}" = set; then :
  19096. enableval=$enable_video_x11_xfixes;
  19097. else
  19098. enable_video_x11_xfixes=yes
  19099. fi
  19100. if test x$enable_video_x11_xfixes = xyes; then
  19101. definitely_enable_video_x11_xfixes=no
  19102. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19104. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19106. /* end confdefs.h. */
  19107. #include <X11/Xlib.h>
  19108. #include <X11/Xproto.h>
  19109. #include <X11/extensions/XInput2.h>
  19110. #include <X11/extensions/Xfixes.h>
  19111. int
  19112. main ()
  19113. {
  19114. BarrierEventID b;
  19115. ;
  19116. return 0;
  19117. }
  19118. _ACEOF
  19119. if ac_fn_c_try_compile "$LINENO"; then :
  19120. have_xfixes_h_hdr=yes
  19121. else
  19122. have_xfixes_h_hdr=no
  19123. fi
  19124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19126. $as_echo "$have_xfixes_h_hdr" >&6; }
  19127. if test x$have_xfixes_h_hdr = xyes; then
  19128. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19129. echo "-- dynamic libXfixes -> $xfixes_lib"
  19130. cat >>confdefs.h <<_ACEOF
  19131. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19132. _ACEOF
  19133. definitely_enable_video_x11_xfixes=yes
  19134. else
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19136. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19137. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19138. $as_echo_n "(cached) " >&6
  19139. else
  19140. ac_check_lib_save_LIBS=$LIBS
  19141. LIBS="-lXfixes $LIBS"
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. /* Override any GCC internal prototype to avoid an error.
  19145. Use char because int might match the return type of a GCC
  19146. builtin and then its argument prototype would still apply. */
  19147. #ifdef __cplusplus
  19148. extern "C"
  19149. #endif
  19150. char XFixesCreatePointerBarrier ();
  19151. int
  19152. main ()
  19153. {
  19154. return XFixesCreatePointerBarrier ();
  19155. ;
  19156. return 0;
  19157. }
  19158. _ACEOF
  19159. if ac_fn_c_try_link "$LINENO"; then :
  19160. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19161. else
  19162. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19163. fi
  19164. rm -f core conftest.err conftest.$ac_objext \
  19165. conftest$ac_exeext conftest.$ac_ext
  19166. LIBS=$ac_check_lib_save_LIBS
  19167. fi
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19169. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19170. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19171. have_xfixes_lib=yes
  19172. fi
  19173. if test x$have_xfixes_lib = xyes ; then
  19174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19175. definitely_enable_video_x11_xfixes=yes
  19176. fi
  19177. fi
  19178. fi
  19179. fi
  19180. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19181. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19182. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19183. fi
  19184. # Check whether --enable-video-x11-xrandr was given.
  19185. if test "${enable_video_x11_xrandr+set}" = set; then :
  19186. enableval=$enable_video_x11_xrandr;
  19187. else
  19188. enable_video_x11_xrandr=yes
  19189. fi
  19190. if test x$enable_video_x11_xrandr = xyes; then
  19191. definitely_enable_video_x11_xrandr=no
  19192. have_xrandr_h_hdr=no
  19193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19194. /* end confdefs.h. */
  19195. #include <X11/Xlib.h>
  19196. #include <X11/extensions/Xrandr.h>
  19197. int
  19198. main ()
  19199. {
  19200. XRRScreenResources *res = NULL;
  19201. ;
  19202. return 0;
  19203. }
  19204. _ACEOF
  19205. if ac_fn_c_try_compile "$LINENO"; then :
  19206. have_xrandr_h_hdr=yes
  19207. fi
  19208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19209. if test x$have_xrandr_h_hdr = xyes; then
  19210. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19211. echo "-- dynamic libXrandr -> $xrandr_lib"
  19212. cat >>confdefs.h <<_ACEOF
  19213. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19214. _ACEOF
  19215. definitely_enable_video_x11_xrandr=yes
  19216. else
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19218. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19219. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19220. $as_echo_n "(cached) " >&6
  19221. else
  19222. ac_check_lib_save_LIBS=$LIBS
  19223. LIBS="-lXrandr $LIBS"
  19224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19225. /* end confdefs.h. */
  19226. /* Override any GCC internal prototype to avoid an error.
  19227. Use char because int might match the return type of a GCC
  19228. builtin and then its argument prototype would still apply. */
  19229. #ifdef __cplusplus
  19230. extern "C"
  19231. #endif
  19232. char XRRQueryExtension ();
  19233. int
  19234. main ()
  19235. {
  19236. return XRRQueryExtension ();
  19237. ;
  19238. return 0;
  19239. }
  19240. _ACEOF
  19241. if ac_fn_c_try_link "$LINENO"; then :
  19242. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19243. else
  19244. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19245. fi
  19246. rm -f core conftest.err conftest.$ac_objext \
  19247. conftest$ac_exeext conftest.$ac_ext
  19248. LIBS=$ac_check_lib_save_LIBS
  19249. fi
  19250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19251. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19252. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19253. have_xrandr_lib=yes
  19254. fi
  19255. if test x$have_xrandr_lib = xyes ; then
  19256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19257. definitely_enable_video_x11_xrandr=yes
  19258. fi
  19259. fi
  19260. fi
  19261. fi
  19262. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19263. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19264. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19265. fi
  19266. # Check whether --enable-video-x11-scrnsaver was given.
  19267. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19268. enableval=$enable_video_x11_scrnsaver;
  19269. else
  19270. enable_video_x11_scrnsaver=yes
  19271. fi
  19272. if test x$enable_video_x11_scrnsaver = xyes; then
  19273. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19274. "
  19275. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19276. have_scrnsaver_h_hdr=yes
  19277. else
  19278. have_scrnsaver_h_hdr=no
  19279. fi
  19280. if test x$have_scrnsaver_h_hdr = xyes; then
  19281. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19282. echo "-- dynamic libXss -> $xss_lib"
  19283. cat >>confdefs.h <<_ACEOF
  19284. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19285. _ACEOF
  19286. definitely_enable_video_x11_scrnsaver=yes
  19287. else
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19289. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19290. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19291. $as_echo_n "(cached) " >&6
  19292. else
  19293. ac_check_lib_save_LIBS=$LIBS
  19294. LIBS="-lXss $LIBS"
  19295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19296. /* end confdefs.h. */
  19297. /* Override any GCC internal prototype to avoid an error.
  19298. Use char because int might match the return type of a GCC
  19299. builtin and then its argument prototype would still apply. */
  19300. #ifdef __cplusplus
  19301. extern "C"
  19302. #endif
  19303. char XScreenSaverSuspend ();
  19304. int
  19305. main ()
  19306. {
  19307. return XScreenSaverSuspend ();
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. if ac_fn_c_try_link "$LINENO"; then :
  19313. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19314. else
  19315. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19316. fi
  19317. rm -f core conftest.err conftest.$ac_objext \
  19318. conftest$ac_exeext conftest.$ac_ext
  19319. LIBS=$ac_check_lib_save_LIBS
  19320. fi
  19321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19322. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19323. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19324. have_xss_lib=yes
  19325. fi
  19326. if test x$have_xss_lib = xyes ; then
  19327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19328. definitely_enable_video_x11_scrnsaver=yes
  19329. fi
  19330. fi
  19331. fi
  19332. fi
  19333. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19334. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19335. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19336. fi
  19337. # Check whether --enable-video-x11-xshape was given.
  19338. if test "${enable_video_x11_xshape+set}" = set; then :
  19339. enableval=$enable_video_x11_xshape;
  19340. else
  19341. enable_video_x11_xshape=yes
  19342. fi
  19343. if test x$enable_video_x11_xshape = xyes; then
  19344. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19345. "
  19346. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19347. have_shape_h_hdr=yes
  19348. else
  19349. have_shape_h_hdr=no
  19350. fi
  19351. if test x$have_shape_h_hdr = xyes; then
  19352. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19353. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19354. fi
  19355. fi
  19356. fi
  19357. fi
  19358. if test x$have_x != xyes; then
  19359. # Prevent Mesa from including X11 headers
  19360. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19361. fi
  19362. }
  19363. CheckVivanteVideo()
  19364. {
  19365. # Check whether --enable-video-vivante was given.
  19366. if test "${enable_video_vivante+set}" = set; then :
  19367. enableval=$enable_video_vivante;
  19368. else
  19369. enable_video_vivante=yes
  19370. fi
  19371. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19373. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19374. have_vivante_vdk=no
  19375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19376. /* end confdefs.h. */
  19377. #define LINUX
  19378. #define EGL_API_FB
  19379. #include <gc_vdk.h>
  19380. int
  19381. main ()
  19382. {
  19383. ;
  19384. return 0;
  19385. }
  19386. _ACEOF
  19387. if ac_fn_c_try_compile "$LINENO"; then :
  19388. have_vivante_vdk=yes
  19389. fi
  19390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19392. $as_echo "$have_vivante_vdk" >&6; }
  19393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19394. $as_echo_n "checking for Vivante FB API... " >&6; }
  19395. have_vivante_egl=no
  19396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19397. /* end confdefs.h. */
  19398. #define LINUX
  19399. #define EGL_API_FB
  19400. #include <EGL/eglvivante.h>
  19401. int
  19402. main ()
  19403. {
  19404. ;
  19405. return 0;
  19406. }
  19407. _ACEOF
  19408. if ac_fn_c_try_compile "$LINENO"; then :
  19409. have_vivante_egl=yes
  19410. fi
  19411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19413. $as_echo "$have_vivante_egl" >&6; }
  19414. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19415. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19416. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19417. if test x$have_vivante_vdk = xyes; then
  19418. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19420. fi
  19421. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19422. SUMMARY_video="${SUMMARY_video} vivante"
  19423. have_video=yes
  19424. fi
  19425. fi
  19426. }
  19427. CheckHaikuVideo()
  19428. {
  19429. if test x$enable_video = xyes; then
  19430. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19431. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19432. have_video=yes
  19433. SUMMARY_video="${SUMMARY_video} haiku"
  19434. fi
  19435. }
  19436. CheckCOCOA()
  19437. {
  19438. # Check whether --enable-video-cocoa was given.
  19439. if test "${enable_video_cocoa+set}" = set; then :
  19440. enableval=$enable_video_cocoa;
  19441. else
  19442. enable_video_cocoa=yes
  19443. fi
  19444. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19445. save_CFLAGS="$CFLAGS"
  19446. CFLAGS="$CFLAGS -x objective-c"
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19448. $as_echo_n "checking for Cocoa framework... " >&6; }
  19449. have_cocoa=no
  19450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19451. /* end confdefs.h. */
  19452. #import <Cocoa/Cocoa.h>
  19453. int
  19454. main ()
  19455. {
  19456. ;
  19457. return 0;
  19458. }
  19459. _ACEOF
  19460. if ac_fn_c_try_compile "$LINENO"; then :
  19461. have_cocoa=yes
  19462. fi
  19463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19465. $as_echo "$have_cocoa" >&6; }
  19466. CFLAGS="$save_CFLAGS"
  19467. if test x$have_cocoa = xyes; then
  19468. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19469. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19470. SUMMARY_video="${SUMMARY_video} cocoa"
  19471. have_video=yes
  19472. fi
  19473. fi
  19474. }
  19475. CheckMETAL()
  19476. {
  19477. # Check whether --enable-video-metal was given.
  19478. if test "${enable_video_metal+set}" = set; then :
  19479. enableval=$enable_video_metal;
  19480. else
  19481. enable_video_metal=yes
  19482. fi
  19483. # Check whether --enable-render-metal was given.
  19484. if test "${enable_render_metal+set}" = set; then :
  19485. enableval=$enable_render_metal;
  19486. else
  19487. enable_render_metal=yes
  19488. fi
  19489. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19490. save_CFLAGS="$CFLAGS"
  19491. CFLAGS="$CFLAGS -x objective-c"
  19492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19493. $as_echo_n "checking for Metal framework... " >&6; }
  19494. have_metal=no
  19495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19496. /* end confdefs.h. */
  19497. #import <Cocoa/Cocoa.h>
  19498. #import <Metal/Metal.h>
  19499. #import <QuartzCore/CAMetalLayer.h>
  19500. #if TARGET_CPU_X86
  19501. #error Metal doesn't work on this configuration
  19502. #endif
  19503. int
  19504. main ()
  19505. {
  19506. ;
  19507. return 0;
  19508. }
  19509. _ACEOF
  19510. if ac_fn_c_try_compile "$LINENO"; then :
  19511. have_metal=yes
  19512. fi
  19513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19514. CFLAGS="$save_CFLAGS"
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19516. $as_echo "$have_metal" >&6; }
  19517. if test x$have_metal = xyes; then
  19518. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19519. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19520. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19521. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19522. fi
  19523. SUMMARY_video="${SUMMARY_video} metal"
  19524. else
  19525. enable_video_metal=no
  19526. enable_render_metal=no
  19527. fi
  19528. fi
  19529. }
  19530. CheckDirectFB()
  19531. {
  19532. # Check whether --enable-video-directfb was given.
  19533. if test "${enable_video_directfb+set}" = set; then :
  19534. enableval=$enable_video_directfb;
  19535. else
  19536. enable_video_directfb=no
  19537. fi
  19538. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19539. pkg_failed=no
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19541. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19542. if test -n "$DIRECTFB_CFLAGS"; then
  19543. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19544. elif test -n "$PKG_CONFIG"; then
  19545. if test -n "$PKG_CONFIG" && \
  19546. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19547. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19548. ac_status=$?
  19549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19550. test $ac_status = 0; }; then
  19551. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19552. test "x$?" != "x0" && pkg_failed=yes
  19553. else
  19554. pkg_failed=yes
  19555. fi
  19556. else
  19557. pkg_failed=untried
  19558. fi
  19559. if test -n "$DIRECTFB_LIBS"; then
  19560. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19561. elif test -n "$PKG_CONFIG"; then
  19562. if test -n "$PKG_CONFIG" && \
  19563. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19564. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19565. ac_status=$?
  19566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19567. test $ac_status = 0; }; then
  19568. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19569. test "x$?" != "x0" && pkg_failed=yes
  19570. else
  19571. pkg_failed=yes
  19572. fi
  19573. else
  19574. pkg_failed=untried
  19575. fi
  19576. if test $pkg_failed = yes; then
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19578. $as_echo "no" >&6; }
  19579. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19580. _pkg_short_errors_supported=yes
  19581. else
  19582. _pkg_short_errors_supported=no
  19583. fi
  19584. if test $_pkg_short_errors_supported = yes; then
  19585. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19586. else
  19587. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19588. fi
  19589. # Put the nasty error message in config.log where it belongs
  19590. echo "$DIRECTFB_PKG_ERRORS" >&5
  19591. video_directfb=no
  19592. elif test $pkg_failed = untried; then
  19593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19594. $as_echo "no" >&6; }
  19595. video_directfb=no
  19596. else
  19597. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19598. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19600. $as_echo "yes" >&6; }
  19601. video_directfb=yes
  19602. fi
  19603. if test x$video_directfb = xyes; then
  19604. # SuSE 11.1 installs directfb-config without directfb-devel
  19605. save_CPPFLAGS="$CPPFLAGS"
  19606. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19607. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19608. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19609. have_directfb_hdr=yes
  19610. else
  19611. have_directfb_hdr=no
  19612. fi
  19613. CPPFLAGS="$save_CPPFLAGS"
  19614. video_directfb=$have_directfb_hdr
  19615. fi
  19616. if test x$video_directfb = xyes; then
  19617. # Check whether --enable-directfb-shared was given.
  19618. if test "${enable_directfb_shared+set}" = set; then :
  19619. enableval=$enable_directfb_shared;
  19620. else
  19621. enable_directfb_shared=yes
  19622. fi
  19623. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19624. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19625. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19626. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19627. directfb_shared=no
  19628. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19629. if test x$have_loadso != xyes && \
  19630. test x$enable_directfb_shared = xyes; then
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19632. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19633. fi
  19634. if test x$have_loadso = xyes && \
  19635. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19636. directfb_shared=yes
  19637. echo "-- dynamic libdirectfb -> $directfb_lib"
  19638. cat >>confdefs.h <<_ACEOF
  19639. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19640. _ACEOF
  19641. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19642. else
  19643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19644. SUMMARY_video="${SUMMARY_video} directfb"
  19645. fi
  19646. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19647. have_video=yes
  19648. fi
  19649. fi
  19650. }
  19651. CheckKMSDRM()
  19652. {
  19653. # Check whether --enable-video-kmsdrm was given.
  19654. if test "${enable_video_kmsdrm+set}" = set; then :
  19655. enableval=$enable_video_kmsdrm;
  19656. else
  19657. enable_video_kmsdrm=yes
  19658. fi
  19659. if test x$enable_video = xyes && \
  19660. test x$enable_video_kmsdrm = xyes && \
  19661. test x$video_opengl_egl = xyes; then
  19662. video_kmsdrm=no
  19663. pkg_failed=no
  19664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19665. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19666. if test -n "$LIBDRM_CFLAGS"; then
  19667. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19668. elif test -n "$PKG_CONFIG"; then
  19669. if test -n "$PKG_CONFIG" && \
  19670. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19671. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19672. ac_status=$?
  19673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19674. test $ac_status = 0; }; then
  19675. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19676. test "x$?" != "x0" && pkg_failed=yes
  19677. else
  19678. pkg_failed=yes
  19679. fi
  19680. else
  19681. pkg_failed=untried
  19682. fi
  19683. if test -n "$LIBDRM_LIBS"; then
  19684. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19685. elif test -n "$PKG_CONFIG"; then
  19686. if test -n "$PKG_CONFIG" && \
  19687. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19688. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19689. ac_status=$?
  19690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19691. test $ac_status = 0; }; then
  19692. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19693. test "x$?" != "x0" && pkg_failed=yes
  19694. else
  19695. pkg_failed=yes
  19696. fi
  19697. else
  19698. pkg_failed=untried
  19699. fi
  19700. if test $pkg_failed = yes; then
  19701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19702. $as_echo "no" >&6; }
  19703. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19704. _pkg_short_errors_supported=yes
  19705. else
  19706. _pkg_short_errors_supported=no
  19707. fi
  19708. if test $_pkg_short_errors_supported = yes; then
  19709. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19710. else
  19711. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19712. fi
  19713. # Put the nasty error message in config.log where it belongs
  19714. echo "$LIBDRM_PKG_ERRORS" >&5
  19715. libdrm_avail=no
  19716. elif test $pkg_failed = untried; then
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19718. $as_echo "no" >&6; }
  19719. libdrm_avail=no
  19720. else
  19721. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19722. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19724. $as_echo "yes" >&6; }
  19725. libdrm_avail=yes
  19726. fi
  19727. pkg_failed=no
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19729. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19730. if test -n "$LIBGBM_CFLAGS"; then
  19731. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19732. elif test -n "$PKG_CONFIG"; then
  19733. if test -n "$PKG_CONFIG" && \
  19734. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19735. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19736. ac_status=$?
  19737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19738. test $ac_status = 0; }; then
  19739. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19740. test "x$?" != "x0" && pkg_failed=yes
  19741. else
  19742. pkg_failed=yes
  19743. fi
  19744. else
  19745. pkg_failed=untried
  19746. fi
  19747. if test -n "$LIBGBM_LIBS"; then
  19748. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19749. elif test -n "$PKG_CONFIG"; then
  19750. if test -n "$PKG_CONFIG" && \
  19751. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19752. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19753. ac_status=$?
  19754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19755. test $ac_status = 0; }; then
  19756. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19757. test "x$?" != "x0" && pkg_failed=yes
  19758. else
  19759. pkg_failed=yes
  19760. fi
  19761. else
  19762. pkg_failed=untried
  19763. fi
  19764. if test $pkg_failed = yes; then
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19766. $as_echo "no" >&6; }
  19767. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19768. _pkg_short_errors_supported=yes
  19769. else
  19770. _pkg_short_errors_supported=no
  19771. fi
  19772. if test $_pkg_short_errors_supported = yes; then
  19773. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19774. else
  19775. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19776. fi
  19777. # Put the nasty error message in config.log where it belongs
  19778. echo "$LIBGBM_PKG_ERRORS" >&5
  19779. libgbm_avail=no
  19780. elif test $pkg_failed = untried; then
  19781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19782. $as_echo "no" >&6; }
  19783. libgbm_avail=no
  19784. else
  19785. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19786. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19788. $as_echo "yes" >&6; }
  19789. libgbm_avail=yes
  19790. fi
  19791. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19792. video_kmsdrm=yes
  19793. fi
  19794. if test x$video_kmsdrm = xyes; then
  19795. # Check whether --enable-kmsdrm-shared was given.
  19796. if test "${enable_kmsdrm_shared+set}" = set; then :
  19797. enableval=$enable_kmsdrm_shared;
  19798. else
  19799. enable_kmsdrm_shared=yes
  19800. fi
  19801. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19802. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19803. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19805. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19806. kmsdrm_shared=no
  19807. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19808. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19809. if test x$have_loadso != xyes && \
  19810. test x$enable_kmsdrm_shared = xyes; then
  19811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19812. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19813. fi
  19814. if test x$have_loadso = xyes && \
  19815. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19816. kmsdrm_shared=yes
  19817. cat >>confdefs.h <<_ACEOF
  19818. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19819. _ACEOF
  19820. cat >>confdefs.h <<_ACEOF
  19821. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19822. _ACEOF
  19823. cat >>confdefs.h <<_ACEOF
  19824. #define HAVE_KMSDRM_SHARED "TRUE"
  19825. _ACEOF
  19826. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19827. else
  19828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19829. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19830. fi
  19831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19832. $as_echo "$kmsdrm_shared" >&6; }
  19833. if test x$kmsdrm_shared = xyes; then
  19834. echo "-- dynamic libdrm -> $drm_lib"
  19835. echo "-- dynamic libgbm -> $gbm_lib"
  19836. fi
  19837. have_video=yes
  19838. fi
  19839. fi
  19840. }
  19841. CheckDummyVideo()
  19842. {
  19843. # Check whether --enable-video-dummy was given.
  19844. if test "${enable_video_dummy+set}" = set; then :
  19845. enableval=$enable_video_dummy;
  19846. else
  19847. enable_video_dummy=yes
  19848. fi
  19849. if test x$enable_video_dummy = xyes; then
  19850. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19851. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19852. have_video=yes
  19853. SUMMARY_video="${SUMMARY_video} dummy"
  19854. fi
  19855. }
  19856. CheckOffscreenVideo()
  19857. {
  19858. # Check whether --enable-video-offscreen was given.
  19859. if test "${enable_video_offscreen+set}" = set; then :
  19860. enableval=$enable_video_offscreen;
  19861. else
  19862. enable_video_offscreen=no
  19863. fi
  19864. if test x$enable_video_offscreen = xyes; then
  19865. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19866. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19867. have_video=yes
  19868. SUMMARY_video="${SUMMARY_video} offscreen"
  19869. fi
  19870. }
  19871. CheckQNXVideo()
  19872. {
  19873. if test x$enable_video = xyes; then
  19874. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19875. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19876. have_video=yes
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19878. SUMMARY_video="${SUMMARY_video} qnx"
  19879. fi
  19880. }
  19881. CheckQNXAudio()
  19882. {
  19883. if test x$enable_audio = xyes; then
  19884. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19885. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19886. have_audio=yes
  19887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19888. SUMMARY_audio="${SUMMARY_audio} qsa"
  19889. fi
  19890. }
  19891. # Check whether --enable-video-opengl was given.
  19892. if test "${enable_video_opengl+set}" = set; then :
  19893. enableval=$enable_video_opengl;
  19894. else
  19895. enable_video_opengl=yes
  19896. fi
  19897. CheckGLX()
  19898. {
  19899. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19901. $as_echo_n "checking for GLX support... " >&6; }
  19902. video_opengl_glx=no
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. #include <GL/glx.h>
  19906. int
  19907. main ()
  19908. {
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_compile "$LINENO"; then :
  19914. video_opengl_glx=yes
  19915. fi
  19916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19918. $as_echo "$video_opengl_glx" >&6; }
  19919. if test x$video_opengl_glx = xyes; then
  19920. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19921. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19922. fi
  19923. fi
  19924. }
  19925. # Check whether --enable-video-opengles was given.
  19926. if test "${enable_video_opengles+set}" = set; then :
  19927. enableval=$enable_video_opengles;
  19928. else
  19929. enable_video_opengles=yes
  19930. fi
  19931. # Check whether --enable-video-opengles1 was given.
  19932. if test "${enable_video_opengles1+set}" = set; then :
  19933. enableval=$enable_video_opengles1;
  19934. else
  19935. enable_video_opengles1=yes
  19936. fi
  19937. # Check whether --enable-video-opengles2 was given.
  19938. if test "${enable_video_opengles2+set}" = set; then :
  19939. enableval=$enable_video_opengles2;
  19940. else
  19941. enable_video_opengles2=yes
  19942. fi
  19943. CheckEGL()
  19944. {
  19945. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19947. $as_echo_n "checking for EGL support... " >&6; }
  19948. video_opengl_egl=no
  19949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19950. /* end confdefs.h. */
  19951. #define LINUX
  19952. #define EGL_API_FB
  19953. #define MESA_EGL_NO_X11_HEADERS
  19954. #define EGL_NO_X11
  19955. #include <EGL/egl.h>
  19956. #include <EGL/eglext.h>
  19957. int
  19958. main ()
  19959. {
  19960. ;
  19961. return 0;
  19962. }
  19963. _ACEOF
  19964. if ac_fn_c_try_compile "$LINENO"; then :
  19965. video_opengl_egl=yes
  19966. fi
  19967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19969. $as_echo "$video_opengl_egl" >&6; }
  19970. if test x$video_opengl_egl = xyes; then
  19971. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19972. fi
  19973. fi
  19974. }
  19975. CheckOpenGL()
  19976. {
  19977. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19979. $as_echo_n "checking for OpenGL headers... " >&6; }
  19980. video_opengl=no
  19981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19982. /* end confdefs.h. */
  19983. #include <GL/gl.h>
  19984. #include <GL/glext.h>
  19985. int
  19986. main ()
  19987. {
  19988. ;
  19989. return 0;
  19990. }
  19991. _ACEOF
  19992. if ac_fn_c_try_compile "$LINENO"; then :
  19993. video_opengl=yes
  19994. fi
  19995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19997. $as_echo "$video_opengl" >&6; }
  19998. if test x$video_opengl = xyes; then
  19999. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20000. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20001. SUMMARY_video="${SUMMARY_video} opengl"
  20002. fi
  20003. fi
  20004. }
  20005. CheckOpenGLES()
  20006. {
  20007. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20008. if test x$enable_video_opengles1 = xyes; then
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20010. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20011. video_opengles_v1=no
  20012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20013. /* end confdefs.h. */
  20014. #include <GLES/gl.h>
  20015. #include <GLES/glext.h>
  20016. int
  20017. main ()
  20018. {
  20019. ;
  20020. return 0;
  20021. }
  20022. _ACEOF
  20023. if ac_fn_c_try_compile "$LINENO"; then :
  20024. video_opengles_v1=yes
  20025. fi
  20026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20028. $as_echo "$video_opengles_v1" >&6; }
  20029. if test x$video_opengles_v1 = xyes; then
  20030. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20031. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20032. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20033. fi
  20034. fi
  20035. if test x$enable_video_opengles2 = xyes; then
  20036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20037. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20038. video_opengles_v2=no
  20039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20040. /* end confdefs.h. */
  20041. #include <GLES2/gl2.h>
  20042. #include <GLES2/gl2ext.h>
  20043. int
  20044. main ()
  20045. {
  20046. ;
  20047. return 0;
  20048. }
  20049. _ACEOF
  20050. if ac_fn_c_try_compile "$LINENO"; then :
  20051. video_opengles_v2=yes
  20052. fi
  20053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20055. $as_echo "$video_opengles_v2" >&6; }
  20056. if test x$video_opengles_v2 = xyes; then
  20057. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20058. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20059. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20060. fi
  20061. fi
  20062. fi
  20063. }
  20064. CheckWINDOWSGL()
  20065. {
  20066. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20067. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20068. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20069. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20070. SUMMARY_video="${SUMMARY_video} opengl"
  20071. fi
  20072. }
  20073. CheckWINDOWSGLES()
  20074. {
  20075. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20077. $as_echo_n "checking for EGL support... " >&6; }
  20078. video_opengl_egl=no
  20079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20080. /* end confdefs.h. */
  20081. #include <EGL/egl.h>
  20082. int
  20083. main ()
  20084. {
  20085. ;
  20086. return 0;
  20087. }
  20088. _ACEOF
  20089. if ac_fn_c_try_compile "$LINENO"; then :
  20090. video_opengl_egl=yes
  20091. fi
  20092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20094. $as_echo "$video_opengl_egl" >&6; }
  20095. if test x$video_opengl_egl = xyes; then
  20096. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20097. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20098. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20099. fi
  20100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20101. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20102. video_opengles_v2=no
  20103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20104. /* end confdefs.h. */
  20105. #include <GLES2/gl2.h>
  20106. #include <GLES2/gl2ext.h>
  20107. int
  20108. main ()
  20109. {
  20110. ;
  20111. return 0;
  20112. }
  20113. _ACEOF
  20114. if ac_fn_c_try_compile "$LINENO"; then :
  20115. video_opengles_v2=yes
  20116. fi
  20117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20119. $as_echo "$video_opengles_v2" >&6; }
  20120. if test x$video_opengles_v2 = xyes; then
  20121. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20122. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20123. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20124. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20125. fi
  20126. fi
  20127. }
  20128. CheckHaikuGL()
  20129. {
  20130. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20131. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20132. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20133. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20135. SUMMARY_video="${SUMMARY_video} opengl"
  20136. fi
  20137. }
  20138. CheckMacGL()
  20139. {
  20140. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20141. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20142. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20143. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20144. SUMMARY_video="${SUMMARY_video} opengl"
  20145. fi
  20146. }
  20147. CheckMacGLES()
  20148. {
  20149. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20150. video_opengl_egl=yes
  20151. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20152. video_opengles_v2=yes
  20153. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20154. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20155. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20156. fi
  20157. }
  20158. CheckEmscriptenGLES()
  20159. {
  20160. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20162. $as_echo_n "checking for EGL support... " >&6; }
  20163. video_opengl_egl=no
  20164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20165. /* end confdefs.h. */
  20166. #include <EGL/egl.h>
  20167. int
  20168. main ()
  20169. {
  20170. ;
  20171. return 0;
  20172. }
  20173. _ACEOF
  20174. if ac_fn_c_try_compile "$LINENO"; then :
  20175. video_opengl_egl=yes
  20176. fi
  20177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20179. $as_echo "$video_opengl_egl" >&6; }
  20180. if test x$video_opengl_egl = xyes; then
  20181. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20182. fi
  20183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20184. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20185. video_opengles_v2=no
  20186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20187. /* end confdefs.h. */
  20188. #include <GLES2/gl2.h>
  20189. #include <GLES2/gl2ext.h>
  20190. int
  20191. main ()
  20192. {
  20193. ;
  20194. return 0;
  20195. }
  20196. _ACEOF
  20197. if ac_fn_c_try_compile "$LINENO"; then :
  20198. video_opengles_v2=yes
  20199. fi
  20200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20202. $as_echo "$video_opengles_v2" >&6; }
  20203. if test x$video_opengles_v2 = xyes; then
  20204. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20205. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20206. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20207. fi
  20208. fi
  20209. }
  20210. # Check whether --enable-video-vulkan was given.
  20211. if test "${enable_video_vulkan+set}" = set; then :
  20212. enableval=$enable_video_vulkan;
  20213. else
  20214. enable_video_vulkan=yes
  20215. fi
  20216. CheckVulkan()
  20217. {
  20218. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20219. case "$host" in
  20220. *-*-android*)
  20221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20222. /* end confdefs.h. */
  20223. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20224. #error Vulkan doesn't work on this configuration
  20225. #endif
  20226. int
  20227. main ()
  20228. {
  20229. ;
  20230. return 0;
  20231. }
  20232. _ACEOF
  20233. if ac_fn_c_try_compile "$LINENO"; then :
  20234. else
  20235. enable_video_vulkan=no
  20236. fi
  20237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20238. ;;
  20239. *-*-darwin*)
  20240. save_CFLAGS="$CFLAGS"
  20241. CFLAGS="$CFLAGS -x objective-c"
  20242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20243. /* end confdefs.h. */
  20244. #include <Cocoa/Cocoa.h>
  20245. #include <Metal/Metal.h>
  20246. #include <QuartzCore/CAMetalLayer.h>
  20247. #if TARGET_CPU_X86
  20248. #error Vulkan doesn't work on this configuration
  20249. #endif
  20250. int
  20251. main ()
  20252. {
  20253. ;
  20254. return 0;
  20255. }
  20256. _ACEOF
  20257. if ac_fn_c_try_compile "$LINENO"; then :
  20258. else
  20259. enable_video_vulkan=no
  20260. fi
  20261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20262. CFLAGS="$save_CFLAGS"
  20263. ;;
  20264. *)
  20265. ;;
  20266. esac
  20267. if test x$enable_video_vulkan = xno; then
  20268. # For reasons I am totally unable to see, I get an undefined macro error if
  20269. # I put this in the AC_TRY_COMPILE.
  20270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20271. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20272. fi
  20273. fi
  20274. if test x$have_loadso != xyes; then
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20276. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20277. enable_video_vulkan=no
  20278. fi
  20279. if test x$enable_video_vulkan = xyes; then
  20280. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20281. SUMMARY_video="${SUMMARY_video} vulkan"
  20282. fi
  20283. }
  20284. CheckInputEvents()
  20285. {
  20286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20287. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20288. use_input_events=no
  20289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20290. /* end confdefs.h. */
  20291. #include <linux/input.h>
  20292. int
  20293. main ()
  20294. {
  20295. #ifndef EVIOCGNAME
  20296. #error EVIOCGNAME() ioctl not available
  20297. #endif
  20298. ;
  20299. return 0;
  20300. }
  20301. _ACEOF
  20302. if ac_fn_c_try_compile "$LINENO"; then :
  20303. use_input_events=yes
  20304. fi
  20305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20307. $as_echo "$use_input_events" >&6; }
  20308. if test x$use_input_events = xyes; then
  20309. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20310. SUMMARY_input="${SUMMARY_input} linuxev"
  20311. fi
  20312. }
  20313. CheckInputKD()
  20314. {
  20315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20316. $as_echo_n "checking for Linux kd.h... " >&6; }
  20317. use_input_kd=no
  20318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20319. /* end confdefs.h. */
  20320. #include <linux/kd.h>
  20321. #include <linux/keyboard.h>
  20322. int
  20323. main ()
  20324. {
  20325. struct kbentry kbe;
  20326. kbe.kb_table = KG_CTRL;
  20327. ioctl(0, KDGKBENT, &kbe);
  20328. ;
  20329. return 0;
  20330. }
  20331. _ACEOF
  20332. if ac_fn_c_try_compile "$LINENO"; then :
  20333. use_input_kd=yes
  20334. fi
  20335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20337. $as_echo "$use_input_kd" >&6; }
  20338. if test x$use_input_kd = xyes; then
  20339. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20340. SUMMARY_input="${SUMMARY_input} linuxkd"
  20341. fi
  20342. }
  20343. CheckInputKBIO()
  20344. {
  20345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20346. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20347. use_input_kbio=no
  20348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20349. /* end confdefs.h. */
  20350. #include <sys/kbio.h>
  20351. #include <sys/ioctl.h>
  20352. int
  20353. main ()
  20354. {
  20355. accentmap_t accTable;
  20356. ioctl(0, KDENABIO, 1);
  20357. ;
  20358. return 0;
  20359. }
  20360. _ACEOF
  20361. if ac_fn_c_try_compile "$LINENO"; then :
  20362. use_input_kbio=yes
  20363. fi
  20364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20366. $as_echo "$use_input_kbio" >&6; }
  20367. if test x$use_input_kbio = xyes; then
  20368. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20369. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20370. fi
  20371. }
  20372. CheckInputWSCONS()
  20373. {
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20375. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20376. use_input_wscons=no
  20377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20378. /* end confdefs.h. */
  20379. #include <sys/time.h>
  20380. #include <dev/wscons/wsconsio.h>
  20381. #include <dev/wscons/wsksymdef.h>
  20382. #include <dev/wscons/wsksymvar.h>
  20383. #include <sys/ioctl.h>
  20384. int
  20385. main ()
  20386. {
  20387. struct wskbd_map_data data;
  20388. ioctl(0, WSKBDIO_GETMAP, &data);
  20389. ;
  20390. return 0;
  20391. }
  20392. _ACEOF
  20393. if ac_fn_c_try_compile "$LINENO"; then :
  20394. use_input_wscons=yes
  20395. fi
  20396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20398. $as_echo "$use_input_wscons" >&6; }
  20399. if test x$use_input_wscons = xyes; then
  20400. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20401. SUMMARY_input="${SUMMARY_input} wscons"
  20402. fi
  20403. }
  20404. CheckLibUDev()
  20405. {
  20406. # Check whether --enable-libudev was given.
  20407. if test "${enable_libudev+set}" = set; then :
  20408. enableval=$enable_libudev;
  20409. else
  20410. enable_libudev=yes
  20411. fi
  20412. if test x$enable_libudev = xyes; then
  20413. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20414. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20415. have_libudev_h_hdr=yes
  20416. else
  20417. have_libudev_h_hdr=no
  20418. fi
  20419. if test x$have_libudev_h_hdr = xyes; then
  20420. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20421. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20422. if test x$udev_lib != x; then
  20423. echo "-- dynamic udev -> $udev_lib"
  20424. cat >>confdefs.h <<_ACEOF
  20425. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20426. _ACEOF
  20427. fi
  20428. fi
  20429. fi
  20430. }
  20431. CheckDBus()
  20432. {
  20433. # Check whether --enable-dbus was given.
  20434. if test "${enable_dbus+set}" = set; then :
  20435. enableval=$enable_dbus;
  20436. else
  20437. enable_dbus=yes
  20438. fi
  20439. if test x$enable_dbus = xyes; then
  20440. pkg_failed=no
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20442. $as_echo_n "checking for dbus-1... " >&6; }
  20443. if test -n "$DBUS_CFLAGS"; then
  20444. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20445. elif test -n "$PKG_CONFIG"; then
  20446. if test -n "$PKG_CONFIG" && \
  20447. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20448. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20449. ac_status=$?
  20450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20451. test $ac_status = 0; }; then
  20452. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20453. test "x$?" != "x0" && pkg_failed=yes
  20454. else
  20455. pkg_failed=yes
  20456. fi
  20457. else
  20458. pkg_failed=untried
  20459. fi
  20460. if test -n "$DBUS_LIBS"; then
  20461. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20462. elif test -n "$PKG_CONFIG"; then
  20463. if test -n "$PKG_CONFIG" && \
  20464. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20465. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20466. ac_status=$?
  20467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20468. test $ac_status = 0; }; then
  20469. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20470. test "x$?" != "x0" && pkg_failed=yes
  20471. else
  20472. pkg_failed=yes
  20473. fi
  20474. else
  20475. pkg_failed=untried
  20476. fi
  20477. if test $pkg_failed = yes; then
  20478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20479. $as_echo "no" >&6; }
  20480. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20481. _pkg_short_errors_supported=yes
  20482. else
  20483. _pkg_short_errors_supported=no
  20484. fi
  20485. if test $_pkg_short_errors_supported = yes; then
  20486. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20487. else
  20488. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20489. fi
  20490. # Put the nasty error message in config.log where it belongs
  20491. echo "$DBUS_PKG_ERRORS" >&5
  20492. have_dbus=no
  20493. elif test $pkg_failed = untried; then
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20495. $as_echo "no" >&6; }
  20496. have_dbus=no
  20497. else
  20498. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20499. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20501. $as_echo "yes" >&6; }
  20502. have_dbus=yes
  20503. fi
  20504. save_CPPFLAGS="$CPPFLAGS"
  20505. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20506. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20507. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20508. have_dbus_dbus_h_hdr=yes
  20509. else
  20510. have_dbus_dbus_h_hdr=no
  20511. fi
  20512. CPPFLAGS="$save_CPPFLAGS"
  20513. if test x$have_dbus_dbus_h_hdr = xyes; then
  20514. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20515. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20516. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20517. fi
  20518. fi
  20519. }
  20520. CheckIME()
  20521. {
  20522. # Check whether --enable-ime was given.
  20523. if test "${enable_ime+set}" = set; then :
  20524. enableval=$enable_ime;
  20525. else
  20526. enable_ime=yes
  20527. fi
  20528. if test x$enable_ime = xyes; then
  20529. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20530. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20531. fi
  20532. }
  20533. CheckInotify()
  20534. {
  20535. save_LIBS="$LIBS"
  20536. case "$host" in
  20537. *-*-freebsd*) LIBS="$LIBS -linotify"
  20538. ;;
  20539. esac
  20540. for ac_header in sys/inotify.h
  20541. do :
  20542. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20543. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20544. cat >>confdefs.h <<_ACEOF
  20545. #define HAVE_SYS_INOTIFY_H 1
  20546. _ACEOF
  20547. have_inotify_inotify_h_hdr=yes
  20548. fi
  20549. done
  20550. for ac_func in inotify_init
  20551. do :
  20552. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20553. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20554. cat >>confdefs.h <<_ACEOF
  20555. #define HAVE_INOTIFY_INIT 1
  20556. _ACEOF
  20557. have_inotify=yes
  20558. fi
  20559. done
  20560. for ac_func in inotify_init1
  20561. do :
  20562. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20563. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20564. cat >>confdefs.h <<_ACEOF
  20565. #define HAVE_INOTIFY_INIT1 1
  20566. _ACEOF
  20567. fi
  20568. done
  20569. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20570. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20571. case "$host" in
  20572. *-*-freebsd*)
  20573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20574. ;;
  20575. esac
  20576. fi
  20577. LIBS="$save_LIBS"
  20578. }
  20579. CheckIBus()
  20580. {
  20581. # Check whether --enable-ibus was given.
  20582. if test "${enable_ibus+set}" = set; then :
  20583. enableval=$enable_ibus;
  20584. else
  20585. enable_ibus=yes
  20586. fi
  20587. if test x$enable_ibus = xyes; then
  20588. pkg_failed=no
  20589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20590. $as_echo_n "checking for ibus-1.0... " >&6; }
  20591. if test -n "$IBUS_CFLAGS"; then
  20592. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20593. elif test -n "$PKG_CONFIG"; then
  20594. if test -n "$PKG_CONFIG" && \
  20595. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20596. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20597. ac_status=$?
  20598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20599. test $ac_status = 0; }; then
  20600. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20601. test "x$?" != "x0" && pkg_failed=yes
  20602. else
  20603. pkg_failed=yes
  20604. fi
  20605. else
  20606. pkg_failed=untried
  20607. fi
  20608. if test -n "$IBUS_LIBS"; then
  20609. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20610. elif test -n "$PKG_CONFIG"; then
  20611. if test -n "$PKG_CONFIG" && \
  20612. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20613. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20614. ac_status=$?
  20615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20616. test $ac_status = 0; }; then
  20617. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20618. test "x$?" != "x0" && pkg_failed=yes
  20619. else
  20620. pkg_failed=yes
  20621. fi
  20622. else
  20623. pkg_failed=untried
  20624. fi
  20625. if test $pkg_failed = yes; then
  20626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20627. $as_echo "no" >&6; }
  20628. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20629. _pkg_short_errors_supported=yes
  20630. else
  20631. _pkg_short_errors_supported=no
  20632. fi
  20633. if test $_pkg_short_errors_supported = yes; then
  20634. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20635. else
  20636. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20637. fi
  20638. # Put the nasty error message in config.log where it belongs
  20639. echo "$IBUS_PKG_ERRORS" >&5
  20640. have_ibus=no
  20641. elif test $pkg_failed = untried; then
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20643. $as_echo "no" >&6; }
  20644. have_ibus=no
  20645. else
  20646. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20647. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20649. $as_echo "yes" >&6; }
  20650. have_ibus=yes
  20651. fi
  20652. save_CPPFLAGS="$CPPFLAGS"
  20653. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20654. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20655. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20656. have_ibus_ibus_h_hdr=yes
  20657. else
  20658. have_ibus_ibus_h_hdr=no
  20659. fi
  20660. CPPFLAGS="$save_CPPFLAGS"
  20661. if test x$have_ibus_ibus_h_hdr = xyes; then
  20662. if test x$enable_ime != xyes; then
  20663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20664. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20665. have_ibus_ibus_h_hdr=no
  20666. elif test x$enable_dbus != xyes; then
  20667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20668. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20669. have_ibus_ibus_h_hdr=no
  20670. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20672. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20673. have_ibus_ibus_h_hdr=no
  20674. else
  20675. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20676. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20677. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20678. fi
  20679. fi
  20680. fi
  20681. }
  20682. CheckFcitx()
  20683. {
  20684. # Check whether --enable-fcitx was given.
  20685. if test "${enable_fcitx+set}" = set; then :
  20686. enableval=$enable_fcitx;
  20687. else
  20688. enable_fcitx=yes
  20689. fi
  20690. if test x$enable_fcitx = xyes; then
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20692. $as_echo_n "checking for fcitx support... " >&6; }
  20693. have_fcitx=no
  20694. if test x$enable_ime != xyes; then
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20696. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20697. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20699. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20700. else
  20701. have_fcitx=yes
  20702. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20703. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20704. fi
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20706. $as_echo "$have_fcitx" >&6; }
  20707. fi
  20708. }
  20709. CheckJoystickMFI()
  20710. {
  20711. # Check whether --enable-joystick-mfi was given.
  20712. if test "${enable_joystick_mfi+set}" = set; then :
  20713. enableval=$enable_joystick_mfi;
  20714. else
  20715. enable_joystick_mfi=yes
  20716. fi
  20717. if test x$enable_joystick_mfi = xyes; then
  20718. save_CFLAGS="$CFLAGS"
  20719. save_LDFLAGS="$LDFLAGS"
  20720. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20721. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20723. $as_echo_n "checking for GameController framework... " >&6; }
  20724. enable_joystick_mfi=no
  20725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20726. /* end confdefs.h. */
  20727. #include <AvailabilityMacros.h>
  20728. #include <TargetConditionals.h>
  20729. #import <GameController/GameController.h>
  20730. int
  20731. main ()
  20732. {
  20733. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20734. #error GameController framework doesn't work on this configuration
  20735. #endif
  20736. #if TARGET_CPU_X86
  20737. #error GameController framework doesn't work on this configuration
  20738. #endif
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"; then :
  20744. enable_joystick_mfi=yes
  20745. fi
  20746. rm -f core conftest.err conftest.$ac_objext \
  20747. conftest$ac_exeext conftest.$ac_ext
  20748. CFLAGS="$save_CFLAGS"
  20749. LDFLAGS="$save_LDFLAGS"
  20750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20751. $as_echo "$enable_joystick_mfi" >&6; }
  20752. if test x$enable_joystick_mfi = xyes; then
  20753. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20754. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20756. fi
  20757. fi
  20758. }
  20759. CheckPTHREAD()
  20760. {
  20761. case "$host" in
  20762. *-*-emscripten*)
  20763. enable_pthreads_default=no
  20764. ;;
  20765. *)
  20766. enable_pthreads_default=yes
  20767. ;;
  20768. esac
  20769. # Check whether --enable-pthreads was given.
  20770. if test "${enable_pthreads+set}" = set; then :
  20771. enableval=$enable_pthreads;
  20772. else
  20773. enable_pthreads=maybe
  20774. fi
  20775. # Check whether --enable-pthread-sem was given.
  20776. if test "${enable_pthread_sem+set}" = set; then :
  20777. enableval=$enable_pthread_sem;
  20778. else
  20779. enable_pthread_sem=maybe
  20780. fi
  20781. if test x$enable_pthreads = xmaybe; then
  20782. enable_pthreads=$enable_pthreads_default
  20783. fi
  20784. if test x$enable_pthread_sem = xmaybe; then
  20785. enable_pthread_sem=$enable_pthreads
  20786. fi
  20787. case "$host" in
  20788. *-*-android*)
  20789. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20790. pthread_lib=""
  20791. ;;
  20792. *-*-linux*|*-*-uclinux*)
  20793. pthread_cflags="-D_REENTRANT"
  20794. pthread_lib="-lpthread"
  20795. ;;
  20796. *-*-bsdi*)
  20797. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20798. pthread_lib=""
  20799. ;;
  20800. *-*-darwin*)
  20801. pthread_cflags="-D_THREAD_SAFE"
  20802. # causes Carbon.p complaints?
  20803. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20804. ;;
  20805. *-*-freebsd*|*-*-dragonfly*)
  20806. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20807. pthread_lib="-pthread"
  20808. ;;
  20809. *-*-netbsd*)
  20810. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20811. pthread_lib="-lpthread"
  20812. ;;
  20813. *-*-openbsd*)
  20814. pthread_cflags="-D_REENTRANT"
  20815. pthread_lib="-pthread"
  20816. ;;
  20817. *-*-solaris2.9)
  20818. # From Solaris 9+, posix4's preferred name is rt.
  20819. pthread_cflags="-D_REENTRANT"
  20820. pthread_lib="-lpthread -lrt"
  20821. ;;
  20822. *-*-solaris2.10)
  20823. # Solaris 10+ merged pthread into libc.
  20824. pthread_cflags="-D_REENTRANT"
  20825. pthread_lib="-lrt"
  20826. ;;
  20827. *-*-solaris*)
  20828. # Solaris 11+ merged rt into libc.
  20829. pthread_cflags="-D_REENTRANT"
  20830. pthread_lib=""
  20831. ;;
  20832. *-*-sysv5*)
  20833. pthread_cflags="-D_REENTRANT -Kthread"
  20834. pthread_lib=""
  20835. ;;
  20836. *-*-aix*)
  20837. pthread_cflags="-D_REENTRANT -mthreads"
  20838. pthread_lib="-lpthread"
  20839. ;;
  20840. *-*-hpux11*)
  20841. pthread_cflags="-D_REENTRANT"
  20842. pthread_lib="-L/usr/lib -lpthread"
  20843. ;;
  20844. *-*-haiku*)
  20845. pthread_cflags="-D_REENTRANT"
  20846. pthread_lib=""
  20847. ;;
  20848. *-*-nto*)
  20849. pthread_cflags="-D_REENTRANT"
  20850. pthread_lib=""
  20851. ;;
  20852. *-*-emscripten*)
  20853. pthread_cflags="-D_REENTRANT -pthread"
  20854. pthread_lib="-pthread"
  20855. ;;
  20856. *)
  20857. pthread_cflags="-D_REENTRANT"
  20858. pthread_lib="-lpthread"
  20859. ;;
  20860. esac
  20861. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20862. # Save the original compiler flags and libraries
  20863. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20864. # Add the pthread compiler flags and libraries
  20865. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20866. # Check to see if we have pthread support on this system
  20867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20868. $as_echo_n "checking for pthreads... " >&6; }
  20869. use_pthreads=no
  20870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20871. /* end confdefs.h. */
  20872. #include <pthread.h>
  20873. int
  20874. main ()
  20875. {
  20876. pthread_attr_t type;
  20877. pthread_attr_init(&type);
  20878. ;
  20879. return 0;
  20880. }
  20881. _ACEOF
  20882. if ac_fn_c_try_link "$LINENO"; then :
  20883. use_pthreads=yes
  20884. fi
  20885. rm -f core conftest.err conftest.$ac_objext \
  20886. conftest$ac_exeext conftest.$ac_ext
  20887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20888. $as_echo "$use_pthreads" >&6; }
  20889. # Restore the compiler flags and libraries
  20890. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20891. # Do futher testing if we have pthread support...
  20892. if test x$use_pthreads = xyes; then
  20893. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20894. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20896. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20897. # Save the original compiler flags and libraries
  20898. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20899. # Add the pthread compiler flags and libraries
  20900. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20901. # Check to see if recursive mutexes are available
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20903. $as_echo_n "checking for recursive mutexes... " >&6; }
  20904. has_recursive_mutexes=no
  20905. if test x$has_recursive_mutexes = xno; then
  20906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20907. /* end confdefs.h. */
  20908. #define _GNU_SOURCE 1
  20909. #include <pthread.h>
  20910. int
  20911. main ()
  20912. {
  20913. pthread_mutexattr_t attr;
  20914. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20915. ;
  20916. return 0;
  20917. }
  20918. _ACEOF
  20919. if ac_fn_c_try_link "$LINENO"; then :
  20920. has_recursive_mutexes=yes
  20921. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20922. fi
  20923. rm -f core conftest.err conftest.$ac_objext \
  20924. conftest$ac_exeext conftest.$ac_ext
  20925. fi
  20926. if test x$has_recursive_mutexes = xno; then
  20927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20928. /* end confdefs.h. */
  20929. #define _GNU_SOURCE 1
  20930. #include <pthread.h>
  20931. int
  20932. main ()
  20933. {
  20934. pthread_mutexattr_t attr;
  20935. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20936. ;
  20937. return 0;
  20938. }
  20939. _ACEOF
  20940. if ac_fn_c_try_link "$LINENO"; then :
  20941. has_recursive_mutexes=yes
  20942. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20943. fi
  20944. rm -f core conftest.err conftest.$ac_objext \
  20945. conftest$ac_exeext conftest.$ac_ext
  20946. fi
  20947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20948. $as_echo "$has_recursive_mutexes" >&6; }
  20949. # Check to see if pthread semaphore support is missing
  20950. if test x$enable_pthread_sem = xyes; then
  20951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20952. $as_echo_n "checking for pthread semaphores... " >&6; }
  20953. have_pthread_sem=no
  20954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20955. /* end confdefs.h. */
  20956. #include <pthread.h>
  20957. #include <semaphore.h>
  20958. int
  20959. main ()
  20960. {
  20961. ;
  20962. return 0;
  20963. }
  20964. _ACEOF
  20965. if ac_fn_c_try_compile "$LINENO"; then :
  20966. have_pthread_sem=yes
  20967. fi
  20968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20970. $as_echo "$have_pthread_sem" >&6; }
  20971. fi
  20972. if test x$have_pthread_sem = xyes; then
  20973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20974. $as_echo_n "checking for sem_timedwait... " >&6; }
  20975. have_sem_timedwait=no
  20976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20977. /* end confdefs.h. */
  20978. #include <pthread.h>
  20979. #include <semaphore.h>
  20980. int
  20981. main ()
  20982. {
  20983. sem_timedwait(NULL, NULL);
  20984. ;
  20985. return 0;
  20986. }
  20987. _ACEOF
  20988. if ac_fn_c_try_link "$LINENO"; then :
  20989. have_sem_timedwait=yes
  20990. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20991. fi
  20992. rm -f core conftest.err conftest.$ac_objext \
  20993. conftest$ac_exeext conftest.$ac_ext
  20994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20995. $as_echo "$have_sem_timedwait" >&6; }
  20996. fi
  20997. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20998. "
  20999. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21000. have_pthread_np_h=yes
  21001. else
  21002. have_pthread_np_h=no
  21003. fi
  21004. if test x$have_pthread_np_h = xyes; then
  21005. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21006. fi
  21007. # Check to see if pthread naming is available
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21009. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21011. /* end confdefs.h. */
  21012. /* Override any GCC internal prototype to avoid an error.
  21013. Use char because int might match the return type of a GCC
  21014. builtin and then its argument prototype would still apply. */
  21015. #ifdef __cplusplus
  21016. extern "C"
  21017. #endif
  21018. char pthread_setname_np ();
  21019. int
  21020. main ()
  21021. {
  21022. return pthread_setname_np ();
  21023. ;
  21024. return 0;
  21025. }
  21026. _ACEOF
  21027. if ac_fn_c_try_link "$LINENO"; then :
  21028. has_pthread_setname_np=yes
  21029. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21030. else
  21031. has_pthread_setname_np=no
  21032. fi
  21033. rm -f core conftest.err conftest.$ac_objext \
  21034. conftest$ac_exeext conftest.$ac_ext
  21035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21036. $as_echo "$has_pthread_setname_np" >&6; }
  21037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21038. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21040. /* end confdefs.h. */
  21041. /* Override any GCC internal prototype to avoid an error.
  21042. Use char because int might match the return type of a GCC
  21043. builtin and then its argument prototype would still apply. */
  21044. #ifdef __cplusplus
  21045. extern "C"
  21046. #endif
  21047. char pthread_set_name_np ();
  21048. int
  21049. main ()
  21050. {
  21051. return pthread_set_name_np ();
  21052. ;
  21053. return 0;
  21054. }
  21055. _ACEOF
  21056. if ac_fn_c_try_link "$LINENO"; then :
  21057. has_pthread_set_name_np=yes
  21058. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21059. else
  21060. has_pthread_set_name_np=no
  21061. fi
  21062. rm -f core conftest.err conftest.$ac_objext \
  21063. conftest$ac_exeext conftest.$ac_ext
  21064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21065. $as_echo "$has_pthread_set_name_np" >&6; }
  21066. # Restore the compiler flags and libraries
  21067. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21068. # Basic thread creation functions
  21069. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21070. # Semaphores
  21071. # We can fake these with mutexes and condition variables if necessary
  21072. if test x$have_pthread_sem = xyes; then
  21073. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21074. else
  21075. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21076. fi
  21077. # Mutexes
  21078. # We can fake these with semaphores if necessary
  21079. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21080. # Condition variables
  21081. # We can fake these with semaphores and mutexes if necessary
  21082. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21083. # Thread local storage
  21084. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21085. have_threads=yes
  21086. fi
  21087. fi
  21088. }
  21089. CheckWINDOWS()
  21090. {
  21091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21092. $as_echo_n "checking Windows compiler... " >&6; }
  21093. have_win32_gcc=no
  21094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21095. /* end confdefs.h. */
  21096. #include <windows.h>
  21097. int
  21098. main ()
  21099. {
  21100. ;
  21101. return 0;
  21102. }
  21103. _ACEOF
  21104. if ac_fn_c_try_compile "$LINENO"; then :
  21105. have_win32_gcc=yes
  21106. fi
  21107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21109. $as_echo "$have_win32_gcc" >&6; }
  21110. if test x$have_win32_gcc != xyes; then
  21111. as_fn_error $? "
  21112. *** Your compiler ($CC) does not produce Windows executables!
  21113. " "$LINENO" 5
  21114. fi
  21115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21116. $as_echo_n "checking Windows CE... " >&6; }
  21117. have_wince=no
  21118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21119. /* end confdefs.h. */
  21120. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21121. #error This is not Windows CE
  21122. #endif
  21123. int
  21124. main ()
  21125. {
  21126. ;
  21127. return 0;
  21128. }
  21129. _ACEOF
  21130. if ac_fn_c_try_compile "$LINENO"; then :
  21131. have_wince=yes
  21132. as_fn_error $? "
  21133. *** Sorry, Windows CE is no longer supported.
  21134. " "$LINENO" 5
  21135. fi
  21136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21138. $as_echo "$have_wince" >&6; }
  21139. # This fixes Windows stack alignment with newer GCC
  21140. CheckStackBoundary
  21141. # headers needed elsewhere
  21142. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21143. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21144. have_tpcshrd_h=yes
  21145. fi
  21146. if test x$have_tpcshrd_h = xyes; then
  21147. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21148. fi
  21149. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21150. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21151. have_roapi_h=yes
  21152. fi
  21153. if test x$have_roapi_h = xyes; then
  21154. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21155. fi
  21156. }
  21157. CheckOS2()
  21158. {
  21159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21160. $as_echo_n "checking OS/2 compiler... " >&6; }
  21161. have_os2_gcc=no
  21162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21163. /* end confdefs.h. */
  21164. #include <os2.h>
  21165. int
  21166. main ()
  21167. {
  21168. ;
  21169. return 0;
  21170. }
  21171. _ACEOF
  21172. if ac_fn_c_try_compile "$LINENO"; then :
  21173. have_os2_gcc=yes
  21174. fi
  21175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21177. $as_echo "$have_os2_gcc" >&6; }
  21178. if test x$have_os2_gcc != xyes; then
  21179. as_fn_error $? "
  21180. *** Your compiler ($CC) does not produce OS/2 executables!
  21181. " "$LINENO" 5
  21182. fi
  21183. }
  21184. CheckDIRECTX()
  21185. {
  21186. # Check whether --enable-directx was given.
  21187. if test "${enable_directx+set}" = set; then :
  21188. enableval=$enable_directx;
  21189. else
  21190. enable_directx=yes
  21191. fi
  21192. if test x$enable_directx = xyes; then
  21193. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21194. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21195. have_d3d=yes
  21196. fi
  21197. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21198. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21199. have_d3d11=yes
  21200. fi
  21201. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21202. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21203. have_ddraw=yes
  21204. fi
  21205. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21206. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21207. have_dsound=yes
  21208. fi
  21209. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21210. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21211. have_dinput=yes
  21212. fi
  21213. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21214. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21215. have_dxgi=yes
  21216. fi
  21217. if test x$have_ddraw = xyes; then
  21218. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21219. fi
  21220. if test x$have_dinput = xyes; then
  21221. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21222. fi
  21223. if test x$have_dsound = xyes; then
  21224. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21225. fi
  21226. if test x$have_dxgi = xyes; then
  21227. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21228. fi
  21229. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21230. # FIXME: ...so force it off for now.
  21231. case "$host" in
  21232. *-*-cygwin*)
  21233. have_dinput=false
  21234. ;;
  21235. esac
  21236. fi
  21237. # Check whether --enable-xinput was given.
  21238. if test "${enable_xinput+set}" = set; then :
  21239. enableval=$enable_xinput;
  21240. else
  21241. enable_xinput=yes
  21242. fi
  21243. if test x$enable_xinput = xyes; then
  21244. have_xinput_gamepadex=no
  21245. have_xinput_stateex=no
  21246. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21247. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21248. have_xinput=yes
  21249. fi
  21250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21251. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21253. /* end confdefs.h. */
  21254. #include <windows.h>
  21255. #include <xinput.h>
  21256. XINPUT_GAMEPAD_EX x1;
  21257. int
  21258. main ()
  21259. {
  21260. ;
  21261. return 0;
  21262. }
  21263. _ACEOF
  21264. if ac_fn_c_try_compile "$LINENO"; then :
  21265. have_xinput_gamepadex=yes
  21266. fi
  21267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21269. $as_echo "$have_xinput_gamepadex" >&6; }
  21270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21271. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21273. /* end confdefs.h. */
  21274. #include <windows.h>
  21275. #include <xinput.h>
  21276. XINPUT_STATE_EX s1;
  21277. int
  21278. main ()
  21279. {
  21280. ;
  21281. return 0;
  21282. }
  21283. _ACEOF
  21284. if ac_fn_c_try_compile "$LINENO"; then :
  21285. have_xinput_stateex=yes
  21286. fi
  21287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21289. $as_echo "$have_xinput_stateex" >&6; }
  21290. if test x$have_xinput = xyes; then
  21291. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21292. fi
  21293. if test x$have_xinput_gamepadex = xyes; then
  21294. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21295. fi
  21296. if test x$have_xinput_stateex = xyes; then
  21297. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21298. fi
  21299. fi
  21300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21301. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21303. /* end confdefs.h. */
  21304. #define COBJMACROS
  21305. #include <windows.gaming.input.h>
  21306. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21307. int
  21308. main ()
  21309. {
  21310. ;
  21311. return 0;
  21312. }
  21313. _ACEOF
  21314. if ac_fn_c_try_compile "$LINENO"; then :
  21315. have_wgi=yes
  21316. else
  21317. have_wgi=no
  21318. fi
  21319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21321. $as_echo "$have_wgi" >&6; }
  21322. if test x$have_wgi = xyes; then
  21323. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21324. fi
  21325. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21326. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21327. have_wasapi=yes
  21328. fi
  21329. if test x$have_wasapi = xyes; then
  21330. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21331. fi
  21332. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21333. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21334. else
  21335. have_wasapi=no
  21336. fi
  21337. if test x$have_wasapi = xyes; then
  21338. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21339. fi
  21340. # Check whether --enable-wasapi was given.
  21341. if test "${enable_wasapi+set}" = set; then :
  21342. enableval=$enable_wasapi;
  21343. else
  21344. enable_wasapi=yes
  21345. fi
  21346. }
  21347. CheckDLOPEN()
  21348. {
  21349. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21350. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21351. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21352. have_dlfcn_h=yes
  21353. else
  21354. have_dlfcn_h=no
  21355. fi
  21356. have_dlopen=no
  21357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21358. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21359. if ${ac_cv_lib_c_dlopen+:} false; then :
  21360. $as_echo_n "(cached) " >&6
  21361. else
  21362. ac_check_lib_save_LIBS=$LIBS
  21363. LIBS="-lc $LIBS"
  21364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21365. /* end confdefs.h. */
  21366. /* Override any GCC internal prototype to avoid an error.
  21367. Use char because int might match the return type of a GCC
  21368. builtin and then its argument prototype would still apply. */
  21369. #ifdef __cplusplus
  21370. extern "C"
  21371. #endif
  21372. char dlopen ();
  21373. int
  21374. main ()
  21375. {
  21376. return dlopen ();
  21377. ;
  21378. return 0;
  21379. }
  21380. _ACEOF
  21381. if ac_fn_c_try_link "$LINENO"; then :
  21382. ac_cv_lib_c_dlopen=yes
  21383. else
  21384. ac_cv_lib_c_dlopen=no
  21385. fi
  21386. rm -f core conftest.err conftest.$ac_objext \
  21387. conftest$ac_exeext conftest.$ac_ext
  21388. LIBS=$ac_check_lib_save_LIBS
  21389. fi
  21390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21391. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21392. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21393. have_dlopen=yes
  21394. else
  21395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21396. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21397. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21398. $as_echo_n "(cached) " >&6
  21399. else
  21400. ac_check_lib_save_LIBS=$LIBS
  21401. LIBS="-ldl $LIBS"
  21402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21403. /* end confdefs.h. */
  21404. /* Override any GCC internal prototype to avoid an error.
  21405. Use char because int might match the return type of a GCC
  21406. builtin and then its argument prototype would still apply. */
  21407. #ifdef __cplusplus
  21408. extern "C"
  21409. #endif
  21410. char dlopen ();
  21411. int
  21412. main ()
  21413. {
  21414. return dlopen ();
  21415. ;
  21416. return 0;
  21417. }
  21418. _ACEOF
  21419. if ac_fn_c_try_link "$LINENO"; then :
  21420. ac_cv_lib_dl_dlopen=yes
  21421. else
  21422. ac_cv_lib_dl_dlopen=no
  21423. fi
  21424. rm -f core conftest.err conftest.$ac_objext \
  21425. conftest$ac_exeext conftest.$ac_ext
  21426. LIBS=$ac_check_lib_save_LIBS
  21427. fi
  21428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21429. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21430. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21431. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21432. fi
  21433. fi
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21435. $as_echo_n "checking for dlopen... " >&6; }
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21437. $as_echo "$have_dlopen" >&6; }
  21438. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21439. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21440. if test x$enable_loadso = xyes; then
  21441. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21443. have_loadso=yes
  21444. fi
  21445. fi
  21446. }
  21447. CheckO_CLOEXEC()
  21448. {
  21449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21450. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21452. /* end confdefs.h. */
  21453. #include <fcntl.h>
  21454. int flag = O_CLOEXEC;
  21455. int
  21456. main ()
  21457. {
  21458. ;
  21459. return 0;
  21460. }
  21461. _ACEOF
  21462. if ac_fn_c_try_compile "$LINENO"; then :
  21463. have_o_cloexec=yes
  21464. else
  21465. have_o_cloexec=no
  21466. fi
  21467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21469. $as_echo "$have_o_cloexec" >&6; }
  21470. if test $have_o_cloexec = yes; then
  21471. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21472. fi
  21473. }
  21474. CheckUSBHID()
  21475. {
  21476. case "$host" in
  21477. *-*-*bsd*|*-*-dragonfly*)
  21478. if test x$enable_joystick = xyes; then
  21479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21480. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21481. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21482. $as_echo_n "(cached) " >&6
  21483. else
  21484. ac_check_lib_save_LIBS=$LIBS
  21485. LIBS="-lusbhid $LIBS"
  21486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21487. /* end confdefs.h. */
  21488. /* Override any GCC internal prototype to avoid an error.
  21489. Use char because int might match the return type of a GCC
  21490. builtin and then its argument prototype would still apply. */
  21491. #ifdef __cplusplus
  21492. extern "C"
  21493. #endif
  21494. char hid_init ();
  21495. int
  21496. main ()
  21497. {
  21498. return hid_init ();
  21499. ;
  21500. return 0;
  21501. }
  21502. _ACEOF
  21503. if ac_fn_c_try_link "$LINENO"; then :
  21504. ac_cv_lib_usbhid_hid_init=yes
  21505. else
  21506. ac_cv_lib_usbhid_hid_init=no
  21507. fi
  21508. rm -f core conftest.err conftest.$ac_objext \
  21509. conftest$ac_exeext conftest.$ac_ext
  21510. LIBS=$ac_check_lib_save_LIBS
  21511. fi
  21512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21513. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21514. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21515. have_libusbhid=yes
  21516. fi
  21517. if test x$have_libusbhid = xyes; then
  21518. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21519. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21520. USB_CFLAGS="-DHAVE_USBHID_H"
  21521. fi
  21522. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21523. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21524. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21525. fi
  21526. USB_LIBS="$USB_LIBS -lusbhid"
  21527. else
  21528. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21529. if test "x$ac_cv_header_usb_h" = xyes; then :
  21530. USB_CFLAGS="-DHAVE_USB_H"
  21531. fi
  21532. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21533. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21534. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21535. fi
  21536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21537. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21538. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21539. $as_echo_n "(cached) " >&6
  21540. else
  21541. ac_check_lib_save_LIBS=$LIBS
  21542. LIBS="-lusb $LIBS"
  21543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21544. /* end confdefs.h. */
  21545. /* Override any GCC internal prototype to avoid an error.
  21546. Use char because int might match the return type of a GCC
  21547. builtin and then its argument prototype would still apply. */
  21548. #ifdef __cplusplus
  21549. extern "C"
  21550. #endif
  21551. char hid_init ();
  21552. int
  21553. main ()
  21554. {
  21555. return hid_init ();
  21556. ;
  21557. return 0;
  21558. }
  21559. _ACEOF
  21560. if ac_fn_c_try_link "$LINENO"; then :
  21561. ac_cv_lib_usb_hid_init=yes
  21562. else
  21563. ac_cv_lib_usb_hid_init=no
  21564. fi
  21565. rm -f core conftest.err conftest.$ac_objext \
  21566. conftest$ac_exeext conftest.$ac_ext
  21567. LIBS=$ac_check_lib_save_LIBS
  21568. fi
  21569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21570. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21571. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21572. USB_LIBS="$USB_LIBS -lusb"
  21573. fi
  21574. fi
  21575. save_CFLAGS="$CFLAGS"
  21576. CFLAGS="$CFLAGS $USB_CFLAGS"
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21578. $as_echo_n "checking for usbhid... " >&6; }
  21579. have_usbhid=no
  21580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21581. /* end confdefs.h. */
  21582. #include <sys/types.h>
  21583. #if defined(HAVE_USB_H)
  21584. #include <usb.h>
  21585. #endif
  21586. #ifdef __DragonFly__
  21587. # include <bus/u4b/usb.h>
  21588. # include <bus/u4b/usbhid.h>
  21589. #else
  21590. # include <dev/usb/usb.h>
  21591. # include <dev/usb/usbhid.h>
  21592. #endif
  21593. #if defined(HAVE_USBHID_H)
  21594. #include <usbhid.h>
  21595. #elif defined(HAVE_LIBUSB_H)
  21596. #include <libusb.h>
  21597. #elif defined(HAVE_LIBUSBHID_H)
  21598. #include <libusbhid.h>
  21599. #endif
  21600. int
  21601. main ()
  21602. {
  21603. struct report_desc *repdesc;
  21604. struct usb_ctl_report *repbuf;
  21605. hid_kind_t hidkind;
  21606. ;
  21607. return 0;
  21608. }
  21609. _ACEOF
  21610. if ac_fn_c_try_compile "$LINENO"; then :
  21611. have_usbhid=yes
  21612. fi
  21613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21615. $as_echo "$have_usbhid" >&6; }
  21616. if test x$have_usbhid = xyes; then
  21617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21618. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21619. have_usbhid_ucr_data=no
  21620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21621. /* end confdefs.h. */
  21622. #include <sys/types.h>
  21623. #if defined(HAVE_USB_H)
  21624. #include <usb.h>
  21625. #endif
  21626. #ifdef __DragonFly__
  21627. # include <bus/u4b/usb.h>
  21628. # include <bus/u4b/usbhid.h>
  21629. #else
  21630. # include <dev/usb/usb.h>
  21631. # include <dev/usb/usbhid.h>
  21632. #endif
  21633. #if defined(HAVE_USBHID_H)
  21634. #include <usbhid.h>
  21635. #elif defined(HAVE_LIBUSB_H)
  21636. #include <libusb.h>
  21637. #elif defined(HAVE_LIBUSBHID_H)
  21638. #include <libusbhid.h>
  21639. #endif
  21640. int
  21641. main ()
  21642. {
  21643. struct usb_ctl_report buf;
  21644. if (buf.ucr_data) { }
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. if ac_fn_c_try_compile "$LINENO"; then :
  21650. have_usbhid_ucr_data=yes
  21651. fi
  21652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21653. if test x$have_usbhid_ucr_data = xyes; then
  21654. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21655. fi
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21657. $as_echo "$have_usbhid_ucr_data" >&6; }
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21659. $as_echo_n "checking for new usbhid API... " >&6; }
  21660. have_usbhid_new=no
  21661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21662. /* end confdefs.h. */
  21663. #include <sys/types.h>
  21664. #if defined(HAVE_USB_H)
  21665. #include <usb.h>
  21666. #endif
  21667. #ifdef __DragonFly__
  21668. #include <bus/u4b/usb.h>
  21669. #include <bus/u4b/usbhid.h>
  21670. #else
  21671. #include <dev/usb/usb.h>
  21672. #include <dev/usb/usbhid.h>
  21673. #endif
  21674. #if defined(HAVE_USBHID_H)
  21675. #include <usbhid.h>
  21676. #elif defined(HAVE_LIBUSB_H)
  21677. #include <libusb.h>
  21678. #elif defined(HAVE_LIBUSBHID_H)
  21679. #include <libusbhid.h>
  21680. #endif
  21681. int
  21682. main ()
  21683. {
  21684. report_desc_t d;
  21685. hid_start_parse(d, 1, 1);
  21686. ;
  21687. return 0;
  21688. }
  21689. _ACEOF
  21690. if ac_fn_c_try_compile "$LINENO"; then :
  21691. have_usbhid_new=yes
  21692. fi
  21693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21694. if test x$have_usbhid_new = xyes; then
  21695. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21696. fi
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21698. $as_echo "$have_usbhid_new" >&6; }
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21700. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21701. have_machine_joystick=no
  21702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21703. /* end confdefs.h. */
  21704. #include <machine/joystick.h>
  21705. int
  21706. main ()
  21707. {
  21708. struct joystick t;
  21709. ;
  21710. return 0;
  21711. }
  21712. _ACEOF
  21713. if ac_fn_c_try_compile "$LINENO"; then :
  21714. have_machine_joystick=yes
  21715. fi
  21716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21717. if test x$have_machine_joystick = xyes; then
  21718. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21719. fi
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21721. $as_echo "$have_machine_joystick" >&6; }
  21722. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21723. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21724. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21726. have_joystick=yes
  21727. fi
  21728. CFLAGS="$save_CFLAGS"
  21729. fi
  21730. ;;
  21731. esac
  21732. }
  21733. CheckHIDAPI()
  21734. {
  21735. # Check whether --enable-hidapi-joystick was given.
  21736. if test "${enable_hidapi_joystick+set}" = set; then :
  21737. enableval=$enable_hidapi_joystick;
  21738. else
  21739. enable_hidapi_joystick=yes
  21740. fi
  21741. # Check whether --enable-hidapi-libusb was given.
  21742. if test "${enable_hidapi_libusb+set}" = set; then :
  21743. enableval=$enable_hidapi_libusb;
  21744. else
  21745. enable_hidapi_libusb=maybe
  21746. fi
  21747. if test x$enable_hidapi = xyes; then
  21748. case "$host" in
  21749. # libusb does not support iOS
  21750. *-ios-* )
  21751. enable_hidapi_libusb=no
  21752. ;;
  21753. # On the other hand, *BSD specifically uses libusb only
  21754. *-*-*bsd* )
  21755. enable_hidapi_libusb=yes
  21756. require_hidapi_libusb=yes
  21757. ;;
  21758. *-*-os2* )
  21759. enable_hidapi_libusb=yes
  21760. ;;
  21761. esac
  21762. hidapi_support=yes
  21763. if test x$enable_hidapi_libusb = xyes; then
  21764. pkg_failed=no
  21765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21766. $as_echo_n "checking for libusb-1.0... " >&6; }
  21767. if test -n "$LIBUSB_CFLAGS"; then
  21768. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21769. elif test -n "$PKG_CONFIG"; then
  21770. if test -n "$PKG_CONFIG" && \
  21771. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21772. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21773. ac_status=$?
  21774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21775. test $ac_status = 0; }; then
  21776. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21777. test "x$?" != "x0" && pkg_failed=yes
  21778. else
  21779. pkg_failed=yes
  21780. fi
  21781. else
  21782. pkg_failed=untried
  21783. fi
  21784. if test -n "$LIBUSB_LIBS"; then
  21785. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21786. elif test -n "$PKG_CONFIG"; then
  21787. if test -n "$PKG_CONFIG" && \
  21788. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21789. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21790. ac_status=$?
  21791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21792. test $ac_status = 0; }; then
  21793. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21794. test "x$?" != "x0" && pkg_failed=yes
  21795. else
  21796. pkg_failed=yes
  21797. fi
  21798. else
  21799. pkg_failed=untried
  21800. fi
  21801. if test $pkg_failed = yes; then
  21802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21803. $as_echo "no" >&6; }
  21804. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21805. _pkg_short_errors_supported=yes
  21806. else
  21807. _pkg_short_errors_supported=no
  21808. fi
  21809. if test $_pkg_short_errors_supported = yes; then
  21810. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21811. else
  21812. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21813. fi
  21814. # Put the nasty error message in config.log where it belongs
  21815. echo "$LIBUSB_PKG_ERRORS" >&5
  21816. have_libusb=no
  21817. elif test $pkg_failed = untried; then
  21818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21819. $as_echo "no" >&6; }
  21820. have_libusb=no
  21821. else
  21822. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21823. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21825. $as_echo "yes" >&6; }
  21826. have_libusb=yes
  21827. fi
  21828. save_CPPFLAGS="$CPPFLAGS"
  21829. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21830. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21831. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21832. have_libusb_h=yes
  21833. else
  21834. have_libusb_h=no
  21835. fi
  21836. CPPFLAGS="$save_CPPFLAGS"
  21837. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21838. hidapi_support=no
  21839. fi
  21840. fi
  21841. if test x$hidapi_support = xyes; then
  21842. if test x$have_libusb_h = xyes; then
  21843. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21844. if test x$require_hidapi_libusb = xyes; then
  21845. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21846. else
  21847. if test x$have_loadso != xyes; then
  21848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21849. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21850. fi
  21851. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21852. libusb_lib=""
  21853. case "$host" in
  21854. *-*-darwin* )
  21855. libusb_lib="libusb-1.0.0.dylib"
  21856. ;;
  21857. *-*-cygwin* | *-*-mingw* )
  21858. libusb_lib="libusb-1.0.dll"
  21859. ;;
  21860. *-*-os2* )
  21861. libusb_lib="usb100.dll"
  21862. ;;
  21863. esac
  21864. if test x$libusb_lib = x; then
  21865. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21866. fi
  21867. cat >>confdefs.h <<_ACEOF
  21868. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21869. _ACEOF
  21870. fi
  21871. fi
  21872. fi
  21873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21874. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21876. $as_echo "$hidapi_support" >&6; }
  21877. fi
  21878. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21879. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21880. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21881. fi
  21882. }
  21883. CheckClockGettime()
  21884. {
  21885. # Check whether --enable-clock_gettime was given.
  21886. if test "${enable_clock_gettime+set}" = set; then :
  21887. enableval=$enable_clock_gettime;
  21888. else
  21889. enable_clock_gettime=yes
  21890. fi
  21891. if test x$enable_clock_gettime = xyes; then
  21892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21893. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21894. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21895. $as_echo_n "(cached) " >&6
  21896. else
  21897. ac_check_lib_save_LIBS=$LIBS
  21898. LIBS="-lrt $LIBS"
  21899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21900. /* end confdefs.h. */
  21901. /* Override any GCC internal prototype to avoid an error.
  21902. Use char because int might match the return type of a GCC
  21903. builtin and then its argument prototype would still apply. */
  21904. #ifdef __cplusplus
  21905. extern "C"
  21906. #endif
  21907. char clock_gettime ();
  21908. int
  21909. main ()
  21910. {
  21911. return clock_gettime ();
  21912. ;
  21913. return 0;
  21914. }
  21915. _ACEOF
  21916. if ac_fn_c_try_link "$LINENO"; then :
  21917. ac_cv_lib_rt_clock_gettime=yes
  21918. else
  21919. ac_cv_lib_rt_clock_gettime=no
  21920. fi
  21921. rm -f core conftest.err conftest.$ac_objext \
  21922. conftest$ac_exeext conftest.$ac_ext
  21923. LIBS=$ac_check_lib_save_LIBS
  21924. fi
  21925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21926. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21927. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21928. have_clock_gettime=yes
  21929. fi
  21930. if test x$have_clock_gettime = xyes; then
  21931. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21933. else
  21934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21935. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21936. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21937. $as_echo_n "(cached) " >&6
  21938. else
  21939. ac_check_lib_save_LIBS=$LIBS
  21940. LIBS="-lc $LIBS"
  21941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21942. /* end confdefs.h. */
  21943. /* Override any GCC internal prototype to avoid an error.
  21944. Use char because int might match the return type of a GCC
  21945. builtin and then its argument prototype would still apply. */
  21946. #ifdef __cplusplus
  21947. extern "C"
  21948. #endif
  21949. char clock_gettime ();
  21950. int
  21951. main ()
  21952. {
  21953. return clock_gettime ();
  21954. ;
  21955. return 0;
  21956. }
  21957. _ACEOF
  21958. if ac_fn_c_try_link "$LINENO"; then :
  21959. ac_cv_lib_c_clock_gettime=yes
  21960. else
  21961. ac_cv_lib_c_clock_gettime=no
  21962. fi
  21963. rm -f core conftest.err conftest.$ac_objext \
  21964. conftest$ac_exeext conftest.$ac_ext
  21965. LIBS=$ac_check_lib_save_LIBS
  21966. fi
  21967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21968. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21969. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21970. have_clock_gettime=yes
  21971. fi
  21972. if test x$have_clock_gettime = xyes; then
  21973. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21975. fi
  21976. fi
  21977. fi
  21978. }
  21979. CheckLinuxVersion()
  21980. {
  21981. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21982. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21983. have_linux_version_h=yes
  21984. fi
  21985. if test x$have_linux_version_h = xyes; then
  21986. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21987. fi
  21988. }
  21989. CheckRPATH()
  21990. {
  21991. # Check whether --enable-rpath was given.
  21992. if test "${enable_rpath+set}" = set; then :
  21993. enableval=$enable_rpath;
  21994. else
  21995. enable_rpath=yes
  21996. fi
  21997. }
  21998. CheckEventSignals()
  21999. {
  22000. # Check whether --enable-backgrounding-signal was given.
  22001. if test "${enable_backgrounding_signal+set}" = set; then :
  22002. enableval=$enable_backgrounding_signal;
  22003. else
  22004. enable_backgrounding_signal=no
  22005. fi
  22006. if test x$enable_backgrounding_signal != xno; then
  22007. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22008. fi
  22009. # Check whether --enable-foregrounding-signal was given.
  22010. if test "${enable_foregrounding_signal+set}" = set; then :
  22011. enableval=$enable_foregrounding_signal;
  22012. else
  22013. enable_foregrounding_signal=no
  22014. fi
  22015. if test x$enable_foregrounding_signal != xno; then
  22016. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22017. fi
  22018. }
  22019. CheckVirtualJoystick()
  22020. {
  22021. # Check whether --enable-joystick-virtual was given.
  22022. if test "${enable_joystick_virtual+set}" = set; then :
  22023. enableval=$enable_joystick_virtual;
  22024. else
  22025. enable_joystick_virtual=yes
  22026. fi
  22027. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22028. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22029. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22030. have_joystick_virtual=yes
  22031. fi
  22032. }
  22033. CheckWarnAll
  22034. CheckNoStrictAliasing
  22035. CheckEventSignals
  22036. have_locale=no
  22037. case "$host" in
  22038. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22039. case "$host" in
  22040. *-*-android*)
  22041. # Android
  22042. ARCH=android
  22043. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22044. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22045. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22046. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22048. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22049. if test x$enable_video = xyes; then
  22050. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22051. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22052. SUMMARY_video="${SUMMARY_video} android"
  22053. have_video=yes
  22054. fi
  22055. ;;
  22056. *-*-linux*) ARCH=linux ;;
  22057. *-*-uclinux*) ARCH=linux ;;
  22058. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22059. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22060. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22061. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22062. *-*-bsdi*) ARCH=bsdi ;;
  22063. *-*-freebsd*) ARCH=freebsd ;;
  22064. *-*-dragonfly*) ARCH=freebsd ;;
  22065. *-*-netbsd*) ARCH=netbsd ;;
  22066. *-*-openbsd*) ARCH=openbsd ;;
  22067. *-*-sysv5*) ARCH=sysv5 ;;
  22068. *-*-solaris*) ARCH=solaris ;;
  22069. *-*-hpux*) ARCH=hpux ;;
  22070. *-*-aix*) ARCH=aix ;;
  22071. *-*-minix*) ARCH=minix ;;
  22072. *-*-nto*) ARCH=nto
  22073. CheckQNXVideo
  22074. ;;
  22075. esac
  22076. CheckVisibilityHidden
  22077. CheckDeclarationAfterStatement
  22078. CheckDummyVideo
  22079. CheckOffscreenVideo
  22080. CheckDiskAudio
  22081. CheckDummyAudio
  22082. CheckDLOPEN
  22083. CheckARM
  22084. CheckNEON
  22085. CheckO_CLOEXEC
  22086. CheckOSS
  22087. CheckALSA
  22088. CheckPipewire
  22089. CheckPulseAudio
  22090. CheckJACK
  22091. CheckARTSC
  22092. CheckESD
  22093. CheckNAS
  22094. CheckSNDIO
  22095. CheckFusionSound
  22096. CheckLibSampleRate
  22097. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22098. CheckRPI
  22099. CheckX11
  22100. CheckDirectFB
  22101. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22102. CheckEGL
  22103. CheckKMSDRM
  22104. CheckGLX
  22105. CheckOpenGL
  22106. CheckOpenGLES
  22107. CheckVulkan
  22108. CheckWayland
  22109. CheckInputEvents
  22110. CheckLibUDev
  22111. CheckDBus
  22112. CheckIME
  22113. CheckInotify
  22114. CheckIBus
  22115. CheckFcitx
  22116. case $ARCH in
  22117. linux)
  22118. CheckInputKD
  22119. ;;
  22120. freebsd)
  22121. CheckInputKBIO
  22122. ;;
  22123. openbsd|netbsd)
  22124. CheckInputWSCONS
  22125. ;;
  22126. esac
  22127. CheckUSBHID
  22128. CheckHIDAPI
  22129. CheckPTHREAD
  22130. CheckClockGettime
  22131. CheckLinuxVersion
  22132. CheckRPATH
  22133. CheckVivanteVideo
  22134. # Set up files for the misc library
  22135. if test x$enable_misc = xyes; then
  22136. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22137. have_misc=yes
  22138. fi
  22139. # Set up files for the locale library
  22140. if test x$enable_locale = xyes; then
  22141. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22142. have_locale=yes
  22143. fi
  22144. # Set up files for the audio library
  22145. if test x$enable_audio = xyes; then
  22146. case $ARCH in
  22147. sysv5|solaris|hpux)
  22148. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22149. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22150. SUMMARY_audio="${SUMMARY_audio} sun"
  22151. have_audio=yes
  22152. ;;
  22153. netbsd) # Don't use this on OpenBSD, it's busted.
  22154. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22155. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22156. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22157. have_audio=yes
  22158. ;;
  22159. aix)
  22160. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22161. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22162. SUMMARY_audio="${SUMMARY_audio} paudio"
  22163. have_audio=yes
  22164. ;;
  22165. android)
  22166. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22167. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22168. SUMMARY_audio="${SUMMARY_audio} android"
  22169. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22170. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22171. SUMMARY_audio="${SUMMARY_audio} openslES"
  22172. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22173. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22174. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22175. have_audio=yes
  22176. ;;
  22177. nto)
  22178. CheckQNXAudio
  22179. ;;
  22180. esac
  22181. fi
  22182. # Set up files for the joystick library
  22183. if test x$enable_joystick = xyes; then
  22184. case $ARCH in
  22185. linux)
  22186. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22187. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22188. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22189. have_joystick=yes
  22190. ;;
  22191. freebsd)
  22192. if test x$use_input_events = xyes; then
  22193. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22194. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22195. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22196. have_joystick=yes
  22197. fi
  22198. ;;
  22199. android)
  22200. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22201. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22202. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22203. have_joystick=yes
  22204. ;;
  22205. esac
  22206. fi
  22207. # Set up files for the haptic library
  22208. if test x$enable_haptic = xyes; then
  22209. case $ARCH in
  22210. linux|freebsd)
  22211. if test x$use_input_events = xyes; then
  22212. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22213. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22214. have_haptic=yes
  22215. fi
  22216. ;;
  22217. android)
  22218. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22219. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22220. have_haptic=yes
  22221. ;;
  22222. esac
  22223. fi
  22224. # Set up files for the sensor library
  22225. if test x$enable_sensor = xyes; then
  22226. case $ARCH in
  22227. android)
  22228. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22229. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22230. have_sensor=yes
  22231. ;;
  22232. esac
  22233. fi
  22234. # Set up files for the power library
  22235. if test x$enable_power = xyes; then
  22236. case $ARCH in
  22237. linux)
  22238. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22239. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22240. have_power=yes
  22241. ;;
  22242. android)
  22243. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22244. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22245. have_power=yes
  22246. ;;
  22247. esac
  22248. fi
  22249. # Set up files for the filesystem library
  22250. if test x$enable_filesystem = xyes; then
  22251. case $ARCH in
  22252. android)
  22253. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22254. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22255. have_filesystem=yes
  22256. ;;
  22257. *)
  22258. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22259. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22260. have_filesystem=yes
  22261. ;;
  22262. esac
  22263. fi
  22264. # Set up files for the timer library
  22265. if test x$enable_timers = xyes; then
  22266. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22267. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22268. have_timers=yes
  22269. fi
  22270. # Set up files for udev hotplugging support
  22271. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22272. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22273. fi
  22274. # Set up files for evdev input
  22275. if test x$use_input_events = xyes; then
  22276. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22277. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22278. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22279. fi
  22280. # Set up files for wscons input
  22281. if test x$use_input_wscons = xyes; then
  22282. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22283. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22284. fi
  22285. # Set up other core UNIX files
  22286. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22287. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22288. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22289. ;;
  22290. *-*-cygwin* | *-*-mingw*)
  22291. ARCH=win32
  22292. if test "$build" != "$host"; then # cross-compiling
  22293. # Default cross-compile location
  22294. ac_default_prefix=/usr/local/cross-tools/$host
  22295. else
  22296. # Look for the location of the tools and install there
  22297. if test "$BUILD_PREFIX" != ""; then
  22298. ac_default_prefix=$BUILD_PREFIX
  22299. fi
  22300. fi
  22301. if test x$enable_loadso = xyes; then
  22302. have_loadso=yes
  22303. fi
  22304. CheckDeclarationAfterStatement
  22305. CheckDummyVideo
  22306. CheckOffscreenVideo
  22307. CheckDiskAudio
  22308. CheckDummyAudio
  22309. CheckWINDOWS
  22310. CheckWINDOWSGL
  22311. CheckWINDOWSGLES
  22312. CheckVulkan
  22313. CheckDIRECTX
  22314. CheckHIDAPI
  22315. # Set up the core platform files
  22316. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22317. # Set up files for the misc library
  22318. if test x$enable_misc = xyes; then
  22319. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22320. have_misc=yes
  22321. fi
  22322. # Use the Windows locale APIs.
  22323. if test x$enable_locale = xyes; then
  22324. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22325. have_locale=yes
  22326. fi
  22327. # Set up files for the video library
  22328. if test x$enable_video = xyes; then
  22329. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22330. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22331. have_video=yes
  22332. # Check whether --enable-render-d3d was given.
  22333. if test "${enable_render_d3d+set}" = set; then :
  22334. enableval=$enable_render_d3d;
  22335. else
  22336. enable_render_d3d=yes
  22337. fi
  22338. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22339. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22340. SUMMARY_video="${SUMMARY_video} d3d9"
  22341. fi
  22342. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22343. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22344. SUMMARY_video="${SUMMARY_video} d3d11"
  22345. fi
  22346. fi
  22347. # Set up files for the audio library
  22348. if test x$enable_audio = xyes; then
  22349. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22350. SUMMARY_audio="${SUMMARY_audio} winmm"
  22351. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22352. if test x$have_dsound = xyes; then
  22353. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22354. SUMMARY_audio="${SUMMARY_audio} directsound"
  22355. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22356. fi
  22357. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22358. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22359. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22360. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22361. fi
  22362. have_audio=yes
  22363. fi
  22364. # Set up files for the joystick library
  22365. if test x$enable_joystick = xyes; then
  22366. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22367. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22368. if test x$have_xinput = xyes; then
  22369. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22370. fi
  22371. if test x$have_wgi = xyes; then
  22372. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22373. fi
  22374. if test x$have_dinput = xyes; then
  22375. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22377. fi
  22378. fi
  22379. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22380. have_joystick=yes
  22381. fi
  22382. if test x$enable_haptic = xyes; then
  22383. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22384. if test x$have_xinput = xyes; then
  22385. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22386. fi
  22387. if test x$have_dinput = xyes; then
  22388. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22389. fi
  22390. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22391. have_haptic=yes
  22392. fi
  22393. fi
  22394. # Set up files for the sensor library
  22395. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22396. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22397. have_winsensors=yes
  22398. else
  22399. have_winsensors=no
  22400. fi
  22401. if test x$have_winsensors = xyes; then
  22402. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22403. fi
  22404. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22405. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22406. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22407. have_sensor=yes
  22408. fi
  22409. # Set up files for the power library
  22410. if test x$enable_power = xyes; then
  22411. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22412. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22413. have_power=yes
  22414. fi
  22415. # Set up files for the filesystem library
  22416. if test x$enable_filesystem = xyes; then
  22417. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22418. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22419. have_filesystem=yes
  22420. fi
  22421. # Set up files for the thread library
  22422. if test x$enable_threads = xyes; then
  22423. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22424. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22425. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22426. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22427. have_threads=yes
  22428. fi
  22429. # Set up files for the timer library
  22430. if test x$enable_timers = xyes; then
  22431. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22432. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22433. have_timers=yes
  22434. fi
  22435. # Set up files for the shared object loading library
  22436. if test x$enable_loadso = xyes; then
  22437. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22438. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22439. fi
  22440. # Set up the system libraries we need
  22441. if test -f /lib/w32api/libuuid.a; then
  22442. LIBUUID=/lib/w32api/libuuid.a
  22443. else
  22444. LIBUUID=-luuid
  22445. fi
  22446. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22447. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22448. # The Windows platform requires special setup
  22449. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22450. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22451. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22452. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22453. # Check to see if this is a mingw or cygwin build
  22454. have_mingw32=
  22455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22456. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22457. if ${ac_cv_lib_mingw32_main+:} false; then :
  22458. $as_echo_n "(cached) " >&6
  22459. else
  22460. ac_check_lib_save_LIBS=$LIBS
  22461. LIBS="-lmingw32 $LIBS"
  22462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22463. /* end confdefs.h. */
  22464. int
  22465. main ()
  22466. {
  22467. return main ();
  22468. ;
  22469. return 0;
  22470. }
  22471. _ACEOF
  22472. if ac_fn_c_try_link "$LINENO"; then :
  22473. ac_cv_lib_mingw32_main=yes
  22474. else
  22475. ac_cv_lib_mingw32_main=no
  22476. fi
  22477. rm -f core conftest.err conftest.$ac_objext \
  22478. conftest$ac_exeext conftest.$ac_ext
  22479. LIBS=$ac_check_lib_save_LIBS
  22480. fi
  22481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22482. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22483. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22484. have_mingw32=yes
  22485. fi
  22486. if test x$have_mingw32 = xyes; then
  22487. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22488. else
  22489. SDL_LIBS="-lcygwin $SDL_LIBS"
  22490. fi
  22491. ;;
  22492. *-*-beos*)
  22493. as_fn_error $? "
  22494. *** BeOS support has been removed as of SDL 2.0.2.
  22495. " "$LINENO" 5
  22496. ;;
  22497. *-*-haiku*)
  22498. ARCH=haiku
  22499. ac_default_prefix=/boot/system
  22500. CheckDummyVideo
  22501. CheckOffscreenVideo
  22502. CheckDiskAudio
  22503. CheckDummyAudio
  22504. CheckDLOPEN
  22505. CheckO_CLOEXEC
  22506. CheckHaikuVideo
  22507. CheckHaikuGL
  22508. CheckPTHREAD
  22509. # Set up files for the audio library
  22510. if test x$enable_audio = xyes; then
  22511. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22512. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22513. SUMMARY_audio="${SUMMARY_audio} haiku"
  22514. have_audio=yes
  22515. fi
  22516. # Set up files for the joystick library
  22517. if test x$enable_joystick = xyes; then
  22518. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22519. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22520. have_joystick=yes
  22521. fi
  22522. # Set up files for the timer library
  22523. if test x$enable_timers = xyes; then
  22524. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22525. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22526. have_timers=yes
  22527. fi
  22528. # Set up files for the system power library
  22529. if test x$enable_power = xyes; then
  22530. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22531. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22532. have_power=yes
  22533. fi
  22534. # Set up files for the system filesystem library
  22535. if test x$enable_filesystem = xyes; then
  22536. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22537. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22538. have_filesystem=yes
  22539. fi
  22540. # Set up files for the misc library
  22541. if test x$enable_misc = xyes; then
  22542. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22543. have_misc=yes
  22544. fi
  22545. # Set up files for the locale library
  22546. if test x$enable_locale = xyes; then
  22547. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22548. have_locale=yes
  22549. fi
  22550. # The Haiku platform requires special setup.
  22551. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22553. ;;
  22554. *-ios-*)
  22555. ARCH=ios
  22556. CheckVisibilityHidden
  22557. CheckDeclarationAfterStatement
  22558. CheckDummyVideo
  22559. CheckOffscreenVideo
  22560. CheckDiskAudio
  22561. CheckDummyAudio
  22562. CheckDLOPEN
  22563. CheckO_CLOEXEC
  22564. CheckMETAL
  22565. CheckVulkan
  22566. CheckPTHREAD
  22567. # Set up files for the misc library
  22568. if test x$enable_misc = xyes; then
  22569. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22570. have_misc=yes
  22571. fi
  22572. # Set up files for the locale library
  22573. if test x$enable_locale = xyes; then
  22574. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22575. have_locale=yes
  22576. fi
  22577. # Set up files for the audio library
  22578. if test x$enable_audio = xyes; then
  22579. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22580. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22581. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22582. have_audio=yes
  22583. fi
  22584. # Set up files for the joystick library
  22585. if test x$enable_joystick = xyes; then
  22586. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22587. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22588. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22589. have_joystick=yes
  22590. else
  22591. # Need this code for accelerometer as joystick support
  22592. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22593. fi
  22594. # Set up files for the haptic library
  22595. #if test x$enable_haptic = xyes; then
  22596. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22597. # have_haptic=yes
  22598. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22599. #fi
  22600. # Set up files for the sensor library
  22601. if test x$enable_sensor = xyes; then
  22602. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22603. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22604. have_sensor=yes
  22605. fi
  22606. # Set up files for the power library
  22607. if test x$enable_power = xyes; then
  22608. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22609. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22610. have_power=yes
  22611. fi
  22612. # Set up files for the filesystem library
  22613. if test x$enable_filesystem = xyes; then
  22614. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22615. have_filesystem=yes
  22616. fi
  22617. # Set up additional files for the file library
  22618. if test x$enable_file = xyes; then
  22619. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22620. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22621. fi
  22622. # Set up files for the timer library
  22623. if test x$enable_timers = xyes; then
  22624. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22625. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22626. have_timers=yes
  22627. fi
  22628. # Set up other core UNIX files
  22629. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22630. # The iOS platform requires special setup.
  22631. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22632. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22633. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22634. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22635. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22636. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22637. SUMMARY_video="${SUMMARY_video} uikit"
  22638. have_video=yes
  22639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22647. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22649. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22650. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22651. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22652. fi
  22653. ;;
  22654. *-*-darwin* )
  22655. # This could be either full "Mac OS X", or plain "Darwin" which is
  22656. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22657. # Next line is broken, and a few files below require Mac OS X (full)
  22658. ARCH=macosx
  22659. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22660. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22661. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22662. CheckVisibilityHidden
  22663. CheckDeclarationAfterStatement
  22664. CheckDummyVideo
  22665. CheckOffscreenVideo
  22666. CheckDiskAudio
  22667. CheckDummyAudio
  22668. CheckDLOPEN
  22669. CheckO_CLOEXEC
  22670. CheckCOCOA
  22671. CheckMETAL
  22672. CheckX11
  22673. CheckMacGL
  22674. CheckMacGLES
  22675. CheckGLX
  22676. CheckOpenGL
  22677. CheckVulkan
  22678. CheckPTHREAD
  22679. CheckHIDAPI
  22680. # Set up files for the misc library
  22681. if test x$enable_misc = xyes; then
  22682. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22683. have_misc=yes
  22684. fi
  22685. # Set up files for the locale library
  22686. if test x$enable_locale = xyes; then
  22687. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22688. have_locale=yes
  22689. fi
  22690. # Set up files for the audio library
  22691. if test x$enable_audio = xyes; then
  22692. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22693. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22695. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22696. have_audio=yes
  22697. fi
  22698. # Set up files for the joystick library
  22699. if test x$enable_joystick = xyes; then
  22700. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22701. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22702. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22703. CheckJoystickMFI
  22704. have_joystick=yes
  22705. fi
  22706. # Set up files for the haptic library
  22707. if test x$enable_haptic = xyes; then
  22708. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22709. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22710. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22711. have_haptic=yes
  22712. fi
  22713. # Set up files for the power library
  22714. if test x$enable_power = xyes; then
  22715. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22716. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22717. have_power=yes
  22718. fi
  22719. # Set up files for the filesystem library
  22720. if test x$enable_filesystem = xyes; then
  22721. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22722. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22723. have_filesystem=yes
  22724. fi
  22725. # Set up files for the timer library
  22726. if test x$enable_timers = xyes; then
  22727. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22728. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22729. have_timers=yes
  22730. fi
  22731. # Set up additional files for the file library
  22732. if test x$enable_file = xyes; then
  22733. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22734. fi
  22735. # Set up other core UNIX files
  22736. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22737. # The Mac OS X platform requires special setup.
  22738. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22741. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22742. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22743. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22745. fi
  22746. ;;
  22747. *-nacl|*-pnacl)
  22748. ARCH=nacl
  22749. CheckNativeClient
  22750. CheckDummyAudio
  22751. CheckDummyVideo
  22752. CheckOffscreenVideo
  22753. CheckInputEvents
  22754. CheckPTHREAD
  22755. CheckO_CLOEXEC
  22756. # Set up files for the timer library
  22757. if test x$enable_timers = xyes; then
  22758. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22759. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22760. have_timers=yes
  22761. fi
  22762. if test x$enable_filesystem = xyes; then
  22763. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22764. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22765. have_filesystem=yes
  22766. fi
  22767. ;;
  22768. *-*-emscripten* )
  22769. if test x$enable_video = xyes; then
  22770. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22771. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22772. have_video=yes
  22773. SUMMARY_video="${SUMMARY_video} emscripten"
  22774. fi
  22775. if test x$enable_audio = xyes; then
  22776. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22777. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22778. have_audio=yes
  22779. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22780. fi
  22781. CheckVisibilityHidden
  22782. CheckDeclarationAfterStatement
  22783. CheckDummyVideo
  22784. CheckOffscreenVideo
  22785. CheckDiskAudio
  22786. CheckDummyAudio
  22787. CheckPTHREAD
  22788. CheckDLOPEN
  22789. CheckClockGettime
  22790. CheckEmscriptenGLES
  22791. # Set up files for the misc library
  22792. if test x$enable_misc = xyes; then
  22793. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22794. have_misc=yes
  22795. fi
  22796. # Set up files for the power library
  22797. if test x$enable_power = xyes; then
  22798. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22799. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22800. have_power=yes
  22801. fi
  22802. # Set up files for the joystick library
  22803. if test x$enable_joystick = xyes; then
  22804. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22805. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22806. have_joystick=yes
  22807. fi
  22808. # Set up files for the filesystem library
  22809. if test x$enable_filesystem = xyes; then
  22810. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22811. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22812. have_filesystem=yes
  22813. fi
  22814. # Set up files for the timer library
  22815. if test x$enable_timers = xyes; then
  22816. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22817. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22818. have_timers=yes
  22819. fi
  22820. # Set up files for the locale library
  22821. if test x$enable_locale = xyes; then
  22822. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22823. have_locale=yes
  22824. fi
  22825. ;;
  22826. *-*-riscos*)
  22827. ARCH=riscos
  22828. CheckVisibilityHidden
  22829. CheckDeclarationAfterStatement
  22830. CheckDummyVideo
  22831. CheckOffscreenVideo
  22832. CheckDiskAudio
  22833. CheckDummyAudio
  22834. CheckDLOPEN
  22835. CheckO_CLOEXEC
  22836. CheckOSS
  22837. CheckPTHREAD
  22838. CheckClockGettime
  22839. # Set up files for the misc library
  22840. if test x$enable_misc = xyes; then
  22841. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22842. have_misc=yes
  22843. fi
  22844. # Set up files for the video library
  22845. if test x$enable_video = xyes; then
  22846. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22847. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22848. have_video=yes
  22849. SUMMARY_video="${SUMMARY_video} riscos"
  22850. fi
  22851. # Set up files for the filesystem library
  22852. if test x$enable_filesystem = xyes; then
  22853. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22854. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22855. have_filesystem=yes
  22856. fi
  22857. # Set up files for the timer library
  22858. if test x$enable_timers = xyes; then
  22859. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22860. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22861. have_timers=yes
  22862. fi
  22863. ;;
  22864. *-*-os2*)
  22865. ARCH=os2
  22866. if test "$build" != "$host"; then # cross-compiling
  22867. # Default cross-compile location
  22868. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22869. else
  22870. # Look for the location of the tools and install there
  22871. if test "$BUILD_PREFIX" != ""; then
  22872. ac_default_prefix=$BUILD_PREFIX
  22873. fi
  22874. fi
  22875. enable_static=no # disable static builds
  22876. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22877. CheckOS2
  22878. CheckDeclarationAfterStatement
  22879. CheckDummyVideo
  22880. CheckDiskAudio
  22881. CheckDummyAudio
  22882. CheckHIDAPI
  22883. # Set up the core platform files
  22884. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22885. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22886. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22887. fi
  22888. # Use the Unix locale APIs.
  22889. if test x$enable_locale = xyes; then
  22890. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22891. have_locale=yes
  22892. fi
  22893. # Set up files for the video library
  22894. if test x$enable_video = xyes; then
  22895. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22897. have_video=yes
  22898. SUMMARY_video="${SUMMARY_video} os/2"
  22899. fi
  22900. # Set up files for the audio library
  22901. if test x$enable_audio = xyes; then
  22902. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22903. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22904. have_audio=yes
  22905. SUMMARY_audio="${SUMMARY_audio} os/2"
  22906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22907. fi
  22908. # Set up files for the thread library
  22909. if test x$enable_threads = xyes; then
  22910. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22911. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22912. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22913. have_threads=yes
  22914. fi
  22915. # Set up files for the timer library
  22916. if test x$enable_timers = xyes; then
  22917. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22918. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22919. have_timers=yes
  22920. fi
  22921. # Set up files for the shared object loading library
  22922. if test x$enable_loadso = xyes; then
  22923. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22924. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22925. have_loadso=yes
  22926. fi
  22927. # Set up files for the filesystem library
  22928. if test x$enable_filesystem = xyes; then
  22929. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22930. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22931. have_filesystem=yes
  22932. fi
  22933. # Set up files for the joystick library
  22934. if test x$enable_joystick = xyes; then
  22935. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22936. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22937. have_joystick=yes
  22938. fi
  22939. ;;
  22940. *)
  22941. as_fn_error $? "
  22942. *** Unsupported host: Please add to configure.ac
  22943. " "$LINENO" 5
  22944. ;;
  22945. esac
  22946. CheckVirtualJoystick
  22947. # Check whether to install sdl2-config
  22948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22949. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22950. # Check whether --enable-sdl2-config was given.
  22951. if test "${enable_sdl2_config+set}" = set; then :
  22952. enableval=$enable_sdl2_config; case "${enableval}" in
  22953. yes) enable_sdl2_config="TRUE" ;;
  22954. no) enable_sdl2_config="FALSE" ;;
  22955. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22956. esac
  22957. else
  22958. enable_sdl2_config="TRUE"
  22959. fi
  22960. if test "$enable_sdl2_config" = "TRUE"; then
  22961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22962. $as_echo "yes" >&6; }
  22963. else
  22964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22965. $as_echo "no" >&6; }
  22966. fi
  22967. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22968. # Verify that we have all the platform specific files we need
  22969. if test x$have_audio != xyes; then
  22970. if test x$enable_audio = xyes; then
  22971. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  22972. fi
  22973. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  22974. fi
  22975. if test x$have_video != xyes; then
  22976. if test x$enable_video = xyes; then
  22977. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22978. fi
  22979. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22980. fi
  22981. if test x$have_misc != xyes; then
  22982. if test x$enable_misc = xyes; then
  22983. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  22984. fi
  22985. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22986. fi
  22987. if test x$have_locale != xyes; then
  22988. if test x$enable_locale = xyes; then
  22989. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  22990. fi
  22991. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22992. fi
  22993. if test x$have_joystick != xyes; then
  22994. if test x$enable_joystick = xyes; then
  22995. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22996. fi
  22997. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22998. fi
  22999. if test x$have_haptic != xyes; then
  23000. if test x$enable_haptic = xyes; then
  23001. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23002. fi
  23003. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23004. fi
  23005. if test x$have_sensor != xyes; then
  23006. if test x$enable_sensor = xyes; then
  23007. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23008. fi
  23009. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23010. fi
  23011. if test x$have_threads != xyes; then
  23012. if test x$enable_threads = xyes; then
  23013. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23014. fi
  23015. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23016. fi
  23017. if test x$have_timers != xyes; then
  23018. if test x$enable_timers = xyes; then
  23019. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23020. fi
  23021. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23022. fi
  23023. if test x$have_filesystem != xyes; then
  23024. if test x$enable_filesystem = xyes; then
  23025. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23026. fi
  23027. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23028. fi
  23029. if test x$have_loadso != xyes; then
  23030. if test x$enable_loadso = xyes; then
  23031. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23032. fi
  23033. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23034. fi
  23035. if test x$SDLMAIN_SOURCES = x; then
  23036. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23037. fi
  23038. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23039. if test x$video_wayland = xyes; then
  23040. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23041. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23042. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23043. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23044. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23045. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23046. echo ;\
  23047. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23048. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23049. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23050. echo ;\
  23051. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23052. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23053. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23054. echo ;\
  23055. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23056. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23057. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23058. done ;\
  23059. echo ;\
  23060. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23061. fi
  23062. OBJECTS=`echo $SOURCES`
  23063. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23064. for EXT in asm cc m c S; do
  23065. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23066. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23067. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23068. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23069. done
  23070. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23071. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23072. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23073. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23074. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23075. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23076. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23077. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23078. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23079. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23080. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23081. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23082. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23083. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23084. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23085. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23086. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23087. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23088. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23089. # Set runtime shared library paths as needed
  23090. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23091. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23092. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23094. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23095. have_enable_new_dtags=no
  23096. save_LDFLAGS="$LDFLAGS"
  23097. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23099. /* end confdefs.h. */
  23100. int
  23101. main ()
  23102. {
  23103. ;
  23104. return 0;
  23105. }
  23106. _ACEOF
  23107. if ac_fn_c_try_link "$LINENO"; then :
  23108. have_enable_new_dtags=yes
  23109. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23110. fi
  23111. rm -f core conftest.err conftest.$ac_objext \
  23112. conftest$ac_exeext conftest.$ac_ext
  23113. LDFLAGS="$save_LDFLAGS"
  23114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23115. $as_echo "$have_enable_new_dtags" >&6; }
  23116. fi
  23117. if test $ARCH = solaris; then
  23118. SDL_RLD_FLAGS="-R\${libdir}"
  23119. fi
  23120. else
  23121. SDL_RLD_FLAGS=""
  23122. fi
  23123. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23124. if test x$enable_shared = xyes; then
  23125. PKGCONFIG_LIBS_PRIV="
  23126. Libs.private:"
  23127. ENABLE_SHARED_TRUE=
  23128. ENABLE_SHARED_FALSE="#"
  23129. else
  23130. PKGCONFIG_LIBS_PRIV=
  23131. ENABLE_SHARED_TRUE="#"
  23132. ENABLE_SHARED_FALSE=
  23133. fi
  23134. if test x$enable_static = xyes; then
  23135. ENABLE_STATIC_TRUE=
  23136. ENABLE_STATIC_FALSE="#"
  23137. else
  23138. ENABLE_STATIC_TRUE="#"
  23139. ENABLE_STATIC_FALSE=
  23140. fi
  23141. cat >Makefile.rules <<__EOF__
  23142. # Build rules for objects
  23143. -include \$(OBJECTS:.lo=.d)
  23144. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23145. $srcdir/src/SDL.c: update-revision
  23146. $DEPENDS
  23147. $VERSION_DEPENDS
  23148. $SDLMAIN_DEPENDS
  23149. $SDLTEST_DEPENDS
  23150. $WAYLAND_PROTOCOLS_DEPENDS
  23151. __EOF__
  23152. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23153. ac_config_commands="$ac_config_commands sdl2_config"
  23154. SUMMARY="SDL2 Configure Summary:\n"
  23155. if test x$enable_shared = xyes; then
  23156. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23157. fi
  23158. if test x$enable_static = xyes; then
  23159. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23160. fi
  23161. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23162. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23163. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23164. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23165. if test x$have_x = xyes; then
  23166. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23167. fi
  23168. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23169. if test x$have_joystick_virtual = xyes; then
  23170. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23171. else
  23172. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23173. fi
  23174. if test x$have_samplerate_h_hdr = xyes; then
  23175. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23176. else
  23177. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23178. fi
  23179. if test x$have_libudev_h_hdr = xyes; then
  23180. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23181. else
  23182. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23183. fi
  23184. if test x$have_dbus_dbus_h_hdr = xyes; then
  23185. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23186. else
  23187. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23188. fi
  23189. if test x$enable_ime = xyes; then
  23190. SUMMARY="${SUMMARY}Using ime : YES\n"
  23191. else
  23192. SUMMARY="${SUMMARY}Using ime : NO\n"
  23193. fi
  23194. if test x$have_ibus_ibus_h_hdr = xyes; then
  23195. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23196. else
  23197. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23198. fi
  23199. if test x$have_fcitx = xyes; then
  23200. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23201. else
  23202. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23203. fi
  23204. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23205. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23206. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23207. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23208. SUMMARY="${SUMMARY}configure script with:\n"
  23209. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23210. fi
  23211. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23212. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23213. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23214. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23215. SUMMARY="${SUMMARY}configure script with:\n"
  23216. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23217. fi
  23218. ac_config_commands="$ac_config_commands summary"
  23219. cat >confcache <<\_ACEOF
  23220. # This file is a shell script that caches the results of configure
  23221. # tests run on this system so they can be shared between configure
  23222. # scripts and configure runs, see configure's option --config-cache.
  23223. # It is not useful on other systems. If it contains results you don't
  23224. # want to keep, you may remove or edit it.
  23225. #
  23226. # config.status only pays attention to the cache file if you give it
  23227. # the --recheck option to rerun configure.
  23228. #
  23229. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23230. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23231. # following values.
  23232. _ACEOF
  23233. # The following way of writing the cache mishandles newlines in values,
  23234. # but we know of no workaround that is simple, portable, and efficient.
  23235. # So, we kill variables containing newlines.
  23236. # Ultrix sh set writes to stderr and can't be redirected directly,
  23237. # and sets the high bit in the cache file unless we assign to the vars.
  23238. (
  23239. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23240. eval ac_val=\$$ac_var
  23241. case $ac_val in #(
  23242. *${as_nl}*)
  23243. case $ac_var in #(
  23244. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23245. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23246. esac
  23247. case $ac_var in #(
  23248. _ | IFS | as_nl) ;; #(
  23249. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23250. *) { eval $ac_var=; unset $ac_var;} ;;
  23251. esac ;;
  23252. esac
  23253. done
  23254. (set) 2>&1 |
  23255. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23256. *${as_nl}ac_space=\ *)
  23257. # `set' does not quote correctly, so add quotes: double-quote
  23258. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23259. sed -n \
  23260. "s/'/'\\\\''/g;
  23261. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23262. ;; #(
  23263. *)
  23264. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23266. ;;
  23267. esac |
  23268. sort
  23269. ) |
  23270. sed '
  23271. /^ac_cv_env_/b end
  23272. t clear
  23273. :clear
  23274. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23275. t end
  23276. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23277. :end' >>confcache
  23278. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23279. if test -w "$cache_file"; then
  23280. if test "x$cache_file" != "x/dev/null"; then
  23281. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23282. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23283. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23284. cat confcache >"$cache_file"
  23285. else
  23286. case $cache_file in #(
  23287. */* | ?:*)
  23288. mv -f confcache "$cache_file"$$ &&
  23289. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23290. *)
  23291. mv -f confcache "$cache_file" ;;
  23292. esac
  23293. fi
  23294. fi
  23295. else
  23296. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23297. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23298. fi
  23299. fi
  23300. rm -f confcache
  23301. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23302. # Let make expand exec_prefix.
  23303. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23304. DEFS=-DHAVE_CONFIG_H
  23305. ac_libobjs=
  23306. ac_ltlibobjs=
  23307. U=
  23308. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23309. # 1. Remove the extension, and $U if already installed.
  23310. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23311. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23312. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23313. # will be set to the directory where LIBOBJS objects are built.
  23314. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23315. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23316. done
  23317. LIBOBJS=$ac_libobjs
  23318. LTLIBOBJS=$ac_ltlibobjs
  23319. : "${CONFIG_STATUS=./config.status}"
  23320. ac_write_fail=0
  23321. ac_clean_files_save=$ac_clean_files
  23322. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23323. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23324. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23325. as_write_fail=0
  23326. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23327. #! $SHELL
  23328. # Generated by $as_me.
  23329. # Run this file to recreate the current configuration.
  23330. # Compiler output produced by configure, useful for debugging
  23331. # configure, is in config.log if it exists.
  23332. debug=false
  23333. ac_cs_recheck=false
  23334. ac_cs_silent=false
  23335. SHELL=\${CONFIG_SHELL-$SHELL}
  23336. export SHELL
  23337. _ASEOF
  23338. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23339. ## -------------------- ##
  23340. ## M4sh Initialization. ##
  23341. ## -------------------- ##
  23342. # Be more Bourne compatible
  23343. DUALCASE=1; export DUALCASE # for MKS sh
  23344. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23345. emulate sh
  23346. NULLCMD=:
  23347. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23348. # is contrary to our usage. Disable this feature.
  23349. alias -g '${1+"$@"}'='"$@"'
  23350. setopt NO_GLOB_SUBST
  23351. else
  23352. case `(set -o) 2>/dev/null` in #(
  23353. *posix*) :
  23354. set -o posix ;; #(
  23355. *) :
  23356. ;;
  23357. esac
  23358. fi
  23359. as_nl='
  23360. '
  23361. export as_nl
  23362. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23363. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23364. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23365. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23366. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23367. # but without wasting forks for bash or zsh.
  23368. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23369. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23370. as_echo='print -r --'
  23371. as_echo_n='print -rn --'
  23372. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23373. as_echo='printf %s\n'
  23374. as_echo_n='printf %s'
  23375. else
  23376. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23377. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23378. as_echo_n='/usr/ucb/echo -n'
  23379. else
  23380. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23381. as_echo_n_body='eval
  23382. arg=$1;
  23383. case $arg in #(
  23384. *"$as_nl"*)
  23385. expr "X$arg" : "X\\(.*\\)$as_nl";
  23386. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23387. esac;
  23388. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23389. '
  23390. export as_echo_n_body
  23391. as_echo_n='sh -c $as_echo_n_body as_echo'
  23392. fi
  23393. export as_echo_body
  23394. as_echo='sh -c $as_echo_body as_echo'
  23395. fi
  23396. # The user is always right.
  23397. if test "${PATH_SEPARATOR+set}" != set; then
  23398. PATH_SEPARATOR=:
  23399. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23400. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23401. PATH_SEPARATOR=';'
  23402. }
  23403. fi
  23404. # IFS
  23405. # We need space, tab and new line, in precisely that order. Quoting is
  23406. # there to prevent editors from complaining about space-tab.
  23407. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23408. # splitting by setting IFS to empty value.)
  23409. IFS=" "" $as_nl"
  23410. # Find who we are. Look in the path if we contain no directory separator.
  23411. as_myself=
  23412. case $0 in #((
  23413. *[\\/]* ) as_myself=$0 ;;
  23414. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23415. for as_dir in $PATH
  23416. do
  23417. IFS=$as_save_IFS
  23418. test -z "$as_dir" && as_dir=.
  23419. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23420. done
  23421. IFS=$as_save_IFS
  23422. ;;
  23423. esac
  23424. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23425. # in which case we are not to be found in the path.
  23426. if test "x$as_myself" = x; then
  23427. as_myself=$0
  23428. fi
  23429. if test ! -f "$as_myself"; then
  23430. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23431. exit 1
  23432. fi
  23433. # Unset variables that we do not need and which cause bugs (e.g. in
  23434. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23435. # suppresses any "Segmentation fault" message there. '((' could
  23436. # trigger a bug in pdksh 5.2.14.
  23437. for as_var in BASH_ENV ENV MAIL MAILPATH
  23438. do eval test x\${$as_var+set} = xset \
  23439. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23440. done
  23441. PS1='$ '
  23442. PS2='> '
  23443. PS4='+ '
  23444. # NLS nuisances.
  23445. LC_ALL=C
  23446. export LC_ALL
  23447. LANGUAGE=C
  23448. export LANGUAGE
  23449. # CDPATH.
  23450. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23451. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23452. # ----------------------------------------
  23453. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23454. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23455. # script with STATUS, using 1 if that was 0.
  23456. as_fn_error ()
  23457. {
  23458. as_status=$1; test $as_status -eq 0 && as_status=1
  23459. if test "$4"; then
  23460. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23461. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23462. fi
  23463. $as_echo "$as_me: error: $2" >&2
  23464. as_fn_exit $as_status
  23465. } # as_fn_error
  23466. # as_fn_set_status STATUS
  23467. # -----------------------
  23468. # Set $? to STATUS, without forking.
  23469. as_fn_set_status ()
  23470. {
  23471. return $1
  23472. } # as_fn_set_status
  23473. # as_fn_exit STATUS
  23474. # -----------------
  23475. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23476. as_fn_exit ()
  23477. {
  23478. set +e
  23479. as_fn_set_status $1
  23480. exit $1
  23481. } # as_fn_exit
  23482. # as_fn_unset VAR
  23483. # ---------------
  23484. # Portably unset VAR.
  23485. as_fn_unset ()
  23486. {
  23487. { eval $1=; unset $1;}
  23488. }
  23489. as_unset=as_fn_unset
  23490. # as_fn_append VAR VALUE
  23491. # ----------------------
  23492. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23493. # advantage of any shell optimizations that allow amortized linear growth over
  23494. # repeated appends, instead of the typical quadratic growth present in naive
  23495. # implementations.
  23496. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23497. eval 'as_fn_append ()
  23498. {
  23499. eval $1+=\$2
  23500. }'
  23501. else
  23502. as_fn_append ()
  23503. {
  23504. eval $1=\$$1\$2
  23505. }
  23506. fi # as_fn_append
  23507. # as_fn_arith ARG...
  23508. # ------------------
  23509. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23510. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23511. # must be portable across $(()) and expr.
  23512. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23513. eval 'as_fn_arith ()
  23514. {
  23515. as_val=$(( $* ))
  23516. }'
  23517. else
  23518. as_fn_arith ()
  23519. {
  23520. as_val=`expr "$@" || test $? -eq 1`
  23521. }
  23522. fi # as_fn_arith
  23523. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23524. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23525. as_expr=expr
  23526. else
  23527. as_expr=false
  23528. fi
  23529. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23530. as_basename=basename
  23531. else
  23532. as_basename=false
  23533. fi
  23534. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23535. as_dirname=dirname
  23536. else
  23537. as_dirname=false
  23538. fi
  23539. as_me=`$as_basename -- "$0" ||
  23540. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23541. X"$0" : 'X\(//\)$' \| \
  23542. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23543. $as_echo X/"$0" |
  23544. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23545. s//\1/
  23546. q
  23547. }
  23548. /^X\/\(\/\/\)$/{
  23549. s//\1/
  23550. q
  23551. }
  23552. /^X\/\(\/\).*/{
  23553. s//\1/
  23554. q
  23555. }
  23556. s/.*/./; q'`
  23557. # Avoid depending upon Character Ranges.
  23558. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23559. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23560. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23561. as_cr_digits='0123456789'
  23562. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23563. ECHO_C= ECHO_N= ECHO_T=
  23564. case `echo -n x` in #(((((
  23565. -n*)
  23566. case `echo 'xy\c'` in
  23567. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23568. xy) ECHO_C='\c';;
  23569. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23570. ECHO_T=' ';;
  23571. esac;;
  23572. *)
  23573. ECHO_N='-n';;
  23574. esac
  23575. rm -f conf$$ conf$$.exe conf$$.file
  23576. if test -d conf$$.dir; then
  23577. rm -f conf$$.dir/conf$$.file
  23578. else
  23579. rm -f conf$$.dir
  23580. mkdir conf$$.dir 2>/dev/null
  23581. fi
  23582. if (echo >conf$$.file) 2>/dev/null; then
  23583. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23584. as_ln_s='ln -s'
  23585. # ... but there are two gotchas:
  23586. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23587. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23588. # In both cases, we have to default to `cp -pR'.
  23589. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23590. as_ln_s='cp -pR'
  23591. elif ln conf$$.file conf$$ 2>/dev/null; then
  23592. as_ln_s=ln
  23593. else
  23594. as_ln_s='cp -pR'
  23595. fi
  23596. else
  23597. as_ln_s='cp -pR'
  23598. fi
  23599. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23600. rmdir conf$$.dir 2>/dev/null
  23601. # as_fn_mkdir_p
  23602. # -------------
  23603. # Create "$as_dir" as a directory, including parents if necessary.
  23604. as_fn_mkdir_p ()
  23605. {
  23606. case $as_dir in #(
  23607. -*) as_dir=./$as_dir;;
  23608. esac
  23609. test -d "$as_dir" || eval $as_mkdir_p || {
  23610. as_dirs=
  23611. while :; do
  23612. case $as_dir in #(
  23613. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23614. *) as_qdir=$as_dir;;
  23615. esac
  23616. as_dirs="'$as_qdir' $as_dirs"
  23617. as_dir=`$as_dirname -- "$as_dir" ||
  23618. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23619. X"$as_dir" : 'X\(//\)[^/]' \| \
  23620. X"$as_dir" : 'X\(//\)$' \| \
  23621. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23622. $as_echo X"$as_dir" |
  23623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23624. s//\1/
  23625. q
  23626. }
  23627. /^X\(\/\/\)[^/].*/{
  23628. s//\1/
  23629. q
  23630. }
  23631. /^X\(\/\/\)$/{
  23632. s//\1/
  23633. q
  23634. }
  23635. /^X\(\/\).*/{
  23636. s//\1/
  23637. q
  23638. }
  23639. s/.*/./; q'`
  23640. test -d "$as_dir" && break
  23641. done
  23642. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23643. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23644. } # as_fn_mkdir_p
  23645. if mkdir -p . 2>/dev/null; then
  23646. as_mkdir_p='mkdir -p "$as_dir"'
  23647. else
  23648. test -d ./-p && rmdir ./-p
  23649. as_mkdir_p=false
  23650. fi
  23651. # as_fn_executable_p FILE
  23652. # -----------------------
  23653. # Test if FILE is an executable regular file.
  23654. as_fn_executable_p ()
  23655. {
  23656. test -f "$1" && test -x "$1"
  23657. } # as_fn_executable_p
  23658. as_test_x='test -x'
  23659. as_executable_p=as_fn_executable_p
  23660. # Sed expression to map a string onto a valid CPP name.
  23661. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23662. # Sed expression to map a string onto a valid variable name.
  23663. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23664. exec 6>&1
  23665. ## ----------------------------------- ##
  23666. ## Main body of $CONFIG_STATUS script. ##
  23667. ## ----------------------------------- ##
  23668. _ASEOF
  23669. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23671. # Save the log message, to keep $0 and so on meaningful, and to
  23672. # report actual input values of CONFIG_FILES etc. instead of their
  23673. # values after options handling.
  23674. ac_log="
  23675. This file was extended by $as_me, which was
  23676. generated by GNU Autoconf 2.69. Invocation command line was
  23677. CONFIG_FILES = $CONFIG_FILES
  23678. CONFIG_HEADERS = $CONFIG_HEADERS
  23679. CONFIG_LINKS = $CONFIG_LINKS
  23680. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23681. $ $0 $@
  23682. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23683. "
  23684. _ACEOF
  23685. case $ac_config_files in *"
  23686. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23687. esac
  23688. case $ac_config_headers in *"
  23689. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23690. esac
  23691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23692. # Files that config.status was made for.
  23693. config_files="$ac_config_files"
  23694. config_headers="$ac_config_headers"
  23695. config_commands="$ac_config_commands"
  23696. _ACEOF
  23697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23698. ac_cs_usage="\
  23699. \`$as_me' instantiates files and other configuration actions
  23700. from templates according to the current configuration. Unless the files
  23701. and actions are specified as TAGs, all are instantiated by default.
  23702. Usage: $0 [OPTION]... [TAG]...
  23703. -h, --help print this help, then exit
  23704. -V, --version print version number and configuration settings, then exit
  23705. --config print configuration, then exit
  23706. -q, --quiet, --silent
  23707. do not print progress messages
  23708. -d, --debug don't remove temporary files
  23709. --recheck update $as_me by reconfiguring in the same conditions
  23710. --file=FILE[:TEMPLATE]
  23711. instantiate the configuration file FILE
  23712. --header=FILE[:TEMPLATE]
  23713. instantiate the configuration header FILE
  23714. Configuration files:
  23715. $config_files
  23716. Configuration headers:
  23717. $config_headers
  23718. Configuration commands:
  23719. $config_commands
  23720. Report bugs to the package provider."
  23721. _ACEOF
  23722. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23723. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23724. ac_cs_version="\\
  23725. config.status
  23726. configured by $0, generated by GNU Autoconf 2.69,
  23727. with options \\"\$ac_cs_config\\"
  23728. Copyright (C) 2012 Free Software Foundation, Inc.
  23729. This config.status script is free software; the Free Software Foundation
  23730. gives unlimited permission to copy, distribute and modify it."
  23731. ac_pwd='$ac_pwd'
  23732. srcdir='$srcdir'
  23733. INSTALL='$INSTALL'
  23734. AWK='$AWK'
  23735. test -n "\$AWK" || AWK=awk
  23736. _ACEOF
  23737. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23738. # The default lists apply if the user does not specify any file.
  23739. ac_need_defaults=:
  23740. while test $# != 0
  23741. do
  23742. case $1 in
  23743. --*=?*)
  23744. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23745. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23746. ac_shift=:
  23747. ;;
  23748. --*=)
  23749. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23750. ac_optarg=
  23751. ac_shift=:
  23752. ;;
  23753. *)
  23754. ac_option=$1
  23755. ac_optarg=$2
  23756. ac_shift=shift
  23757. ;;
  23758. esac
  23759. case $ac_option in
  23760. # Handling of the options.
  23761. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23762. ac_cs_recheck=: ;;
  23763. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23764. $as_echo "$ac_cs_version"; exit ;;
  23765. --config | --confi | --conf | --con | --co | --c )
  23766. $as_echo "$ac_cs_config"; exit ;;
  23767. --debug | --debu | --deb | --de | --d | -d )
  23768. debug=: ;;
  23769. --file | --fil | --fi | --f )
  23770. $ac_shift
  23771. case $ac_optarg in
  23772. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23773. '') as_fn_error $? "missing file argument" ;;
  23774. esac
  23775. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23776. ac_need_defaults=false;;
  23777. --header | --heade | --head | --hea )
  23778. $ac_shift
  23779. case $ac_optarg in
  23780. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23781. esac
  23782. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23783. ac_need_defaults=false;;
  23784. --he | --h)
  23785. # Conflict between --help and --header
  23786. as_fn_error $? "ambiguous option: \`$1'
  23787. Try \`$0 --help' for more information.";;
  23788. --help | --hel | -h )
  23789. $as_echo "$ac_cs_usage"; exit ;;
  23790. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23791. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23792. ac_cs_silent=: ;;
  23793. # This is an error.
  23794. -*) as_fn_error $? "unrecognized option: \`$1'
  23795. Try \`$0 --help' for more information." ;;
  23796. *) as_fn_append ac_config_targets " $1"
  23797. ac_need_defaults=false ;;
  23798. esac
  23799. shift
  23800. done
  23801. ac_configure_extra_args=
  23802. if $ac_cs_silent; then
  23803. exec 6>/dev/null
  23804. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23805. fi
  23806. _ACEOF
  23807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23808. if \$ac_cs_recheck; then
  23809. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23810. shift
  23811. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23812. CONFIG_SHELL='$SHELL'
  23813. export CONFIG_SHELL
  23814. exec "\$@"
  23815. fi
  23816. _ACEOF
  23817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23818. exec 5>>config.log
  23819. {
  23820. echo
  23821. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23822. ## Running $as_me. ##
  23823. _ASBOX
  23824. $as_echo "$ac_log"
  23825. } >&5
  23826. _ACEOF
  23827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23828. #
  23829. # INIT-COMMANDS
  23830. #
  23831. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23832. # if CDPATH is set.
  23833. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23834. sed_quote_subst='$sed_quote_subst'
  23835. double_quote_subst='$double_quote_subst'
  23836. delay_variable_subst='$delay_variable_subst'
  23837. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23838. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23839. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23840. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23841. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23842. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23843. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23844. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23845. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23846. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23847. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23848. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23849. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23850. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23851. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23852. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23853. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23854. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23855. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23856. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23857. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23858. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23859. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23860. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23861. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23862. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23863. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23864. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23865. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23866. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23867. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23868. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23869. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23870. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23871. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23872. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23873. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23874. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23875. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23876. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23877. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23878. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23879. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23880. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23881. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23882. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23883. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23884. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23885. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23886. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23887. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23888. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23889. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23890. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23891. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23892. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23893. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23894. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23895. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23896. 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"`'
  23897. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23898. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23899. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23900. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23901. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23902. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23903. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23904. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23905. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23906. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23907. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23908. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23909. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23910. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23911. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23912. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23913. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23914. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23915. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23916. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23917. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23918. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23919. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23920. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23921. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23922. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23923. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23924. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23925. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23926. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23927. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23928. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23929. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23930. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23931. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23932. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23933. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23934. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23935. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23936. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23937. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23938. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23939. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23940. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23941. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23942. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23943. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23944. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23945. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23946. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23947. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23948. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23949. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23950. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23951. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23952. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23953. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23954. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23955. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23956. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23957. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23958. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23959. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23960. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23961. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23962. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23963. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23964. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23965. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  23966. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  23967. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23968. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23969. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23970. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23971. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23972. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23973. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23974. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23975. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23976. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23977. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23978. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23979. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23980. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23981. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23982. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23983. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23984. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23985. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23986. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23987. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23988. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23989. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23990. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23991. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23992. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23993. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23994. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23995. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23996. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23997. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23998. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23999. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24000. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24001. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24002. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24003. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24004. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24005. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24006. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24007. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24008. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24009. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24010. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24011. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24012. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24013. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24014. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24015. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24016. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24017. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24018. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24019. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24020. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24021. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24022. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24023. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24024. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24025. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24026. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24027. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24028. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24029. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24030. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24031. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24032. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24033. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24034. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24035. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24036. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24037. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24038. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24039. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24040. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24041. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24042. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24043. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24044. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24045. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24046. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24047. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24048. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24049. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24050. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24051. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24052. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24053. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24054. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24055. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24056. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24057. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24058. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24059. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24060. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24061. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24062. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24063. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24064. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24065. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24066. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24067. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24068. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24069. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24070. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24071. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24072. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24073. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24074. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24075. LTCC='$LTCC'
  24076. LTCFLAGS='$LTCFLAGS'
  24077. compiler='$compiler_DEFAULT'
  24078. # A function that is used when there is no print builtin or printf.
  24079. func_fallback_echo ()
  24080. {
  24081. eval 'cat <<_LTECHO_EOF
  24082. \$1
  24083. _LTECHO_EOF'
  24084. }
  24085. # Quote evaled strings.
  24086. for var in AS \
  24087. DLLTOOL \
  24088. OBJDUMP \
  24089. SHELL \
  24090. ECHO \
  24091. PATH_SEPARATOR \
  24092. SED \
  24093. GREP \
  24094. EGREP \
  24095. FGREP \
  24096. LD \
  24097. NM \
  24098. LN_S \
  24099. lt_SP2NL \
  24100. lt_NL2SP \
  24101. reload_flag \
  24102. deplibs_check_method \
  24103. file_magic_cmd \
  24104. file_magic_glob \
  24105. want_nocaseglob \
  24106. sharedlib_from_linklib_cmd \
  24107. AR \
  24108. AR_FLAGS \
  24109. archiver_list_spec \
  24110. STRIP \
  24111. RANLIB \
  24112. CC \
  24113. CFLAGS \
  24114. compiler \
  24115. lt_cv_sys_global_symbol_pipe \
  24116. lt_cv_sys_global_symbol_to_cdecl \
  24117. lt_cv_sys_global_symbol_to_import \
  24118. lt_cv_sys_global_symbol_to_c_name_address \
  24119. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24120. lt_cv_nm_interface \
  24121. nm_file_list_spec \
  24122. lt_cv_truncate_bin \
  24123. lt_prog_compiler_no_builtin_flag \
  24124. lt_prog_compiler_pic \
  24125. lt_prog_compiler_wl \
  24126. lt_prog_compiler_static \
  24127. lt_cv_prog_compiler_c_o \
  24128. need_locks \
  24129. MANIFEST_TOOL \
  24130. DSYMUTIL \
  24131. NMEDIT \
  24132. LIPO \
  24133. OTOOL \
  24134. OTOOL64 \
  24135. shrext_cmds \
  24136. export_dynamic_flag_spec \
  24137. whole_archive_flag_spec \
  24138. compiler_needs_object \
  24139. with_gnu_ld \
  24140. allow_undefined_flag \
  24141. no_undefined_flag \
  24142. hardcode_libdir_flag_spec \
  24143. hardcode_libdir_separator \
  24144. exclude_expsyms \
  24145. include_expsyms \
  24146. file_list_spec \
  24147. variables_saved_for_relink \
  24148. libname_spec \
  24149. library_names_spec \
  24150. soname_spec \
  24151. install_override_mode \
  24152. finish_eval \
  24153. old_striplib \
  24154. striplib \
  24155. compiler_lib_search_dirs \
  24156. predep_objects \
  24157. postdep_objects \
  24158. predeps \
  24159. postdeps \
  24160. compiler_lib_search_path \
  24161. LD_RC \
  24162. LD_CXX \
  24163. reload_flag_RC \
  24164. reload_flag_CXX \
  24165. compiler_RC \
  24166. compiler_CXX \
  24167. lt_prog_compiler_no_builtin_flag_RC \
  24168. lt_prog_compiler_no_builtin_flag_CXX \
  24169. lt_prog_compiler_pic_RC \
  24170. lt_prog_compiler_pic_CXX \
  24171. lt_prog_compiler_wl_RC \
  24172. lt_prog_compiler_wl_CXX \
  24173. lt_prog_compiler_static_RC \
  24174. lt_prog_compiler_static_CXX \
  24175. lt_cv_prog_compiler_c_o_RC \
  24176. lt_cv_prog_compiler_c_o_CXX \
  24177. export_dynamic_flag_spec_RC \
  24178. export_dynamic_flag_spec_CXX \
  24179. whole_archive_flag_spec_RC \
  24180. whole_archive_flag_spec_CXX \
  24181. compiler_needs_object_RC \
  24182. compiler_needs_object_CXX \
  24183. with_gnu_ld_RC \
  24184. with_gnu_ld_CXX \
  24185. allow_undefined_flag_RC \
  24186. allow_undefined_flag_CXX \
  24187. no_undefined_flag_RC \
  24188. no_undefined_flag_CXX \
  24189. hardcode_libdir_flag_spec_RC \
  24190. hardcode_libdir_flag_spec_CXX \
  24191. hardcode_libdir_separator_RC \
  24192. hardcode_libdir_separator_CXX \
  24193. exclude_expsyms_RC \
  24194. exclude_expsyms_CXX \
  24195. include_expsyms_RC \
  24196. include_expsyms_CXX \
  24197. file_list_spec_RC \
  24198. file_list_spec_CXX \
  24199. compiler_lib_search_dirs_RC \
  24200. compiler_lib_search_dirs_CXX \
  24201. predep_objects_RC \
  24202. predep_objects_CXX \
  24203. postdep_objects_RC \
  24204. postdep_objects_CXX \
  24205. predeps_RC \
  24206. predeps_CXX \
  24207. postdeps_RC \
  24208. postdeps_CXX \
  24209. compiler_lib_search_path_RC \
  24210. compiler_lib_search_path_CXX; do
  24211. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24212. *[\\\\\\\`\\"\\\$]*)
  24213. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24214. ;;
  24215. *)
  24216. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24217. ;;
  24218. esac
  24219. done
  24220. # Double-quote double-evaled strings.
  24221. for var in reload_cmds \
  24222. old_postinstall_cmds \
  24223. old_postuninstall_cmds \
  24224. old_archive_cmds \
  24225. extract_expsyms_cmds \
  24226. old_archive_from_new_cmds \
  24227. old_archive_from_expsyms_cmds \
  24228. archive_cmds \
  24229. archive_expsym_cmds \
  24230. module_cmds \
  24231. module_expsym_cmds \
  24232. export_symbols_cmds \
  24233. prelink_cmds \
  24234. postlink_cmds \
  24235. postinstall_cmds \
  24236. postuninstall_cmds \
  24237. finish_cmds \
  24238. sys_lib_search_path_spec \
  24239. configure_time_dlsearch_path \
  24240. configure_time_lt_sys_library_path \
  24241. reload_cmds_RC \
  24242. reload_cmds_CXX \
  24243. old_archive_cmds_RC \
  24244. old_archive_cmds_CXX \
  24245. old_archive_from_new_cmds_RC \
  24246. old_archive_from_new_cmds_CXX \
  24247. old_archive_from_expsyms_cmds_RC \
  24248. old_archive_from_expsyms_cmds_CXX \
  24249. archive_cmds_RC \
  24250. archive_cmds_CXX \
  24251. archive_expsym_cmds_RC \
  24252. archive_expsym_cmds_CXX \
  24253. module_cmds_RC \
  24254. module_cmds_CXX \
  24255. module_expsym_cmds_RC \
  24256. module_expsym_cmds_CXX \
  24257. export_symbols_cmds_RC \
  24258. export_symbols_cmds_CXX \
  24259. prelink_cmds_RC \
  24260. prelink_cmds_CXX \
  24261. postlink_cmds_RC \
  24262. postlink_cmds_CXX; do
  24263. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24264. *[\\\\\\\`\\"\\\$]*)
  24265. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24266. ;;
  24267. *)
  24268. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24269. ;;
  24270. esac
  24271. done
  24272. ac_aux_dir='$ac_aux_dir'
  24273. # See if we are running on zsh, and set the options that allow our
  24274. # commands through without removal of \ escapes INIT.
  24275. if test -n "\${ZSH_VERSION+set}"; then
  24276. setopt NO_GLOB_SUBST
  24277. fi
  24278. PACKAGE='$PACKAGE'
  24279. VERSION='$VERSION'
  24280. RM='$RM'
  24281. ofile='$ofile'
  24282. SUMMARY="$SUMMARY"
  24283. _ACEOF
  24284. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24285. # Handling of arguments.
  24286. for ac_config_target in $ac_config_targets
  24287. do
  24288. case $ac_config_target in
  24289. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24290. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24291. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24292. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24293. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24294. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24295. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24296. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24297. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24298. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24299. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24300. esac
  24301. done
  24302. # If the user did not use the arguments to specify the items to instantiate,
  24303. # then the envvar interface is used. Set only those that are not.
  24304. # We use the long form for the default assignment because of an extremely
  24305. # bizarre bug on SunOS 4.1.3.
  24306. if $ac_need_defaults; then
  24307. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24308. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24309. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24310. fi
  24311. # Have a temporary directory for convenience. Make it in the build tree
  24312. # simply because there is no reason against having it here, and in addition,
  24313. # creating and moving files from /tmp can sometimes cause problems.
  24314. # Hook for its removal unless debugging.
  24315. # Note that there is a small window in which the directory will not be cleaned:
  24316. # after its creation but before its name has been assigned to `$tmp'.
  24317. $debug ||
  24318. {
  24319. tmp= ac_tmp=
  24320. trap 'exit_status=$?
  24321. : "${ac_tmp:=$tmp}"
  24322. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24323. ' 0
  24324. trap 'as_fn_exit 1' 1 2 13 15
  24325. }
  24326. # Create a (secure) tmp directory for tmp files.
  24327. {
  24328. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24329. test -d "$tmp"
  24330. } ||
  24331. {
  24332. tmp=./conf$$-$RANDOM
  24333. (umask 077 && mkdir "$tmp")
  24334. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24335. ac_tmp=$tmp
  24336. # Set up the scripts for CONFIG_FILES section.
  24337. # No need to generate them if there are no CONFIG_FILES.
  24338. # This happens for instance with `./config.status config.h'.
  24339. if test -n "$CONFIG_FILES"; then
  24340. ac_cr=`echo X | tr X '\015'`
  24341. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24342. # But we know of no other shell where ac_cr would be empty at this
  24343. # point, so we can use a bashism as a fallback.
  24344. if test "x$ac_cr" = x; then
  24345. eval ac_cr=\$\'\\r\'
  24346. fi
  24347. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24348. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24349. ac_cs_awk_cr='\\r'
  24350. else
  24351. ac_cs_awk_cr=$ac_cr
  24352. fi
  24353. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24354. _ACEOF
  24355. {
  24356. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24357. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24358. echo "_ACEOF"
  24359. } >conf$$subs.sh ||
  24360. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24361. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24362. ac_delim='%!_!# '
  24363. for ac_last_try in false false false false false :; do
  24364. . ./conf$$subs.sh ||
  24365. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24366. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24367. if test $ac_delim_n = $ac_delim_num; then
  24368. break
  24369. elif $ac_last_try; then
  24370. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24371. else
  24372. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24373. fi
  24374. done
  24375. rm -f conf$$subs.sh
  24376. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24377. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24378. _ACEOF
  24379. sed -n '
  24380. h
  24381. s/^/S["/; s/!.*/"]=/
  24382. p
  24383. g
  24384. s/^[^!]*!//
  24385. :repl
  24386. t repl
  24387. s/'"$ac_delim"'$//
  24388. t delim
  24389. :nl
  24390. h
  24391. s/\(.\{148\}\)..*/\1/
  24392. t more1
  24393. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24394. p
  24395. n
  24396. b repl
  24397. :more1
  24398. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24399. p
  24400. g
  24401. s/.\{148\}//
  24402. t nl
  24403. :delim
  24404. h
  24405. s/\(.\{148\}\)..*/\1/
  24406. t more2
  24407. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24408. p
  24409. b
  24410. :more2
  24411. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24412. p
  24413. g
  24414. s/.\{148\}//
  24415. t delim
  24416. ' <conf$$subs.awk | sed '
  24417. /^[^""]/{
  24418. N
  24419. s/\n//
  24420. }
  24421. ' >>$CONFIG_STATUS || ac_write_fail=1
  24422. rm -f conf$$subs.awk
  24423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24424. _ACAWK
  24425. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24426. for (key in S) S_is_set[key] = 1
  24427. FS = ""
  24428. }
  24429. {
  24430. line = $ 0
  24431. nfields = split(line, field, "@")
  24432. substed = 0
  24433. len = length(field[1])
  24434. for (i = 2; i < nfields; i++) {
  24435. key = field[i]
  24436. keylen = length(key)
  24437. if (S_is_set[key]) {
  24438. value = S[key]
  24439. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24440. len += length(value) + length(field[++i])
  24441. substed = 1
  24442. } else
  24443. len += 1 + keylen
  24444. }
  24445. print line
  24446. }
  24447. _ACAWK
  24448. _ACEOF
  24449. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24450. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24451. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24452. else
  24453. cat
  24454. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24455. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24456. _ACEOF
  24457. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24458. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24459. # trailing colons and then remove the whole line if VPATH becomes empty
  24460. # (actually we leave an empty line to preserve line numbers).
  24461. if test "x$srcdir" = x.; then
  24462. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24463. h
  24464. s///
  24465. s/^/:/
  24466. s/[ ]*$/:/
  24467. s/:\$(srcdir):/:/g
  24468. s/:\${srcdir}:/:/g
  24469. s/:@srcdir@:/:/g
  24470. s/^:*//
  24471. s/:*$//
  24472. x
  24473. s/\(=[ ]*\).*/\1/
  24474. G
  24475. s/\n//
  24476. s/^[^=]*=[ ]*$//
  24477. }'
  24478. fi
  24479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24480. fi # test -n "$CONFIG_FILES"
  24481. # Set up the scripts for CONFIG_HEADERS section.
  24482. # No need to generate them if there are no CONFIG_HEADERS.
  24483. # This happens for instance with `./config.status Makefile'.
  24484. if test -n "$CONFIG_HEADERS"; then
  24485. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24486. BEGIN {
  24487. _ACEOF
  24488. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24489. # here-document in config.status, that substitutes the proper values into
  24490. # config.h.in to produce config.h.
  24491. # Create a delimiter string that does not exist in confdefs.h, to ease
  24492. # handling of long lines.
  24493. ac_delim='%!_!# '
  24494. for ac_last_try in false false :; do
  24495. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24496. if test -z "$ac_tt"; then
  24497. break
  24498. elif $ac_last_try; then
  24499. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24500. else
  24501. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24502. fi
  24503. done
  24504. # For the awk script, D is an array of macro values keyed by name,
  24505. # likewise P contains macro parameters if any. Preserve backslash
  24506. # newline sequences.
  24507. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24508. sed -n '
  24509. s/.\{148\}/&'"$ac_delim"'/g
  24510. t rset
  24511. :rset
  24512. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24513. t def
  24514. d
  24515. :def
  24516. s/\\$//
  24517. t bsnl
  24518. s/["\\]/\\&/g
  24519. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24520. D["\1"]=" \3"/p
  24521. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24522. d
  24523. :bsnl
  24524. s/["\\]/\\&/g
  24525. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24526. D["\1"]=" \3\\\\\\n"\\/p
  24527. t cont
  24528. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24529. t cont
  24530. d
  24531. :cont
  24532. n
  24533. s/.\{148\}/&'"$ac_delim"'/g
  24534. t clear
  24535. :clear
  24536. s/\\$//
  24537. t bsnlc
  24538. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24539. d
  24540. :bsnlc
  24541. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24542. b cont
  24543. ' <confdefs.h | sed '
  24544. s/'"$ac_delim"'/"\\\
  24545. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24546. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24547. for (key in D) D_is_set[key] = 1
  24548. FS = ""
  24549. }
  24550. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24551. line = \$ 0
  24552. split(line, arg, " ")
  24553. if (arg[1] == "#") {
  24554. defundef = arg[2]
  24555. mac1 = arg[3]
  24556. } else {
  24557. defundef = substr(arg[1], 2)
  24558. mac1 = arg[2]
  24559. }
  24560. split(mac1, mac2, "(") #)
  24561. macro = mac2[1]
  24562. prefix = substr(line, 1, index(line, defundef) - 1)
  24563. if (D_is_set[macro]) {
  24564. # Preserve the white space surrounding the "#".
  24565. print prefix "define", macro P[macro] D[macro]
  24566. next
  24567. } else {
  24568. # Replace #undef with comments. This is necessary, for example,
  24569. # in the case of _POSIX_SOURCE, which is predefined and required
  24570. # on some systems where configure will not decide to define it.
  24571. if (defundef == "undef") {
  24572. print "/*", prefix defundef, macro, "*/"
  24573. next
  24574. }
  24575. }
  24576. }
  24577. { print }
  24578. _ACAWK
  24579. _ACEOF
  24580. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24581. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24582. fi # test -n "$CONFIG_HEADERS"
  24583. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24584. shift
  24585. for ac_tag
  24586. do
  24587. case $ac_tag in
  24588. :[FHLC]) ac_mode=$ac_tag; continue;;
  24589. esac
  24590. case $ac_mode$ac_tag in
  24591. :[FHL]*:*);;
  24592. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24593. :[FH]-) ac_tag=-:-;;
  24594. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24595. esac
  24596. ac_save_IFS=$IFS
  24597. IFS=:
  24598. set x $ac_tag
  24599. IFS=$ac_save_IFS
  24600. shift
  24601. ac_file=$1
  24602. shift
  24603. case $ac_mode in
  24604. :L) ac_source=$1;;
  24605. :[FH])
  24606. ac_file_inputs=
  24607. for ac_f
  24608. do
  24609. case $ac_f in
  24610. -) ac_f="$ac_tmp/stdin";;
  24611. *) # Look for the file first in the build tree, then in the source tree
  24612. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24613. # because $ac_f cannot contain `:'.
  24614. test -f "$ac_f" ||
  24615. case $ac_f in
  24616. [\\/$]*) false;;
  24617. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24618. esac ||
  24619. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24620. esac
  24621. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24622. as_fn_append ac_file_inputs " '$ac_f'"
  24623. done
  24624. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24625. # use $as_me), people would be surprised to read:
  24626. # /* config.h. Generated by config.status. */
  24627. configure_input='Generated from '`
  24628. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24629. `' by configure.'
  24630. if test x"$ac_file" != x-; then
  24631. configure_input="$ac_file. $configure_input"
  24632. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24633. $as_echo "$as_me: creating $ac_file" >&6;}
  24634. fi
  24635. # Neutralize special characters interpreted by sed in replacement strings.
  24636. case $configure_input in #(
  24637. *\&* | *\|* | *\\* )
  24638. ac_sed_conf_input=`$as_echo "$configure_input" |
  24639. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24640. *) ac_sed_conf_input=$configure_input;;
  24641. esac
  24642. case $ac_tag in
  24643. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24644. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24645. esac
  24646. ;;
  24647. esac
  24648. ac_dir=`$as_dirname -- "$ac_file" ||
  24649. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24650. X"$ac_file" : 'X\(//\)[^/]' \| \
  24651. X"$ac_file" : 'X\(//\)$' \| \
  24652. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24653. $as_echo X"$ac_file" |
  24654. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24655. s//\1/
  24656. q
  24657. }
  24658. /^X\(\/\/\)[^/].*/{
  24659. s//\1/
  24660. q
  24661. }
  24662. /^X\(\/\/\)$/{
  24663. s//\1/
  24664. q
  24665. }
  24666. /^X\(\/\).*/{
  24667. s//\1/
  24668. q
  24669. }
  24670. s/.*/./; q'`
  24671. as_dir="$ac_dir"; as_fn_mkdir_p
  24672. ac_builddir=.
  24673. case "$ac_dir" in
  24674. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24675. *)
  24676. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24677. # A ".." for each directory in $ac_dir_suffix.
  24678. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24679. case $ac_top_builddir_sub in
  24680. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24681. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24682. esac ;;
  24683. esac
  24684. ac_abs_top_builddir=$ac_pwd
  24685. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24686. # for backward compatibility:
  24687. ac_top_builddir=$ac_top_build_prefix
  24688. case $srcdir in
  24689. .) # We are building in place.
  24690. ac_srcdir=.
  24691. ac_top_srcdir=$ac_top_builddir_sub
  24692. ac_abs_top_srcdir=$ac_pwd ;;
  24693. [\\/]* | ?:[\\/]* ) # Absolute name.
  24694. ac_srcdir=$srcdir$ac_dir_suffix;
  24695. ac_top_srcdir=$srcdir
  24696. ac_abs_top_srcdir=$srcdir ;;
  24697. *) # Relative name.
  24698. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24699. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24700. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24701. esac
  24702. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24703. case $ac_mode in
  24704. :F)
  24705. #
  24706. # CONFIG_FILE
  24707. #
  24708. case $INSTALL in
  24709. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24710. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24711. esac
  24712. _ACEOF
  24713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24714. # If the template does not know about datarootdir, expand it.
  24715. # FIXME: This hack should be removed a few years after 2.60.
  24716. ac_datarootdir_hack=; ac_datarootdir_seen=
  24717. ac_sed_dataroot='
  24718. /datarootdir/ {
  24719. p
  24720. q
  24721. }
  24722. /@datadir@/p
  24723. /@docdir@/p
  24724. /@infodir@/p
  24725. /@localedir@/p
  24726. /@mandir@/p'
  24727. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24728. *datarootdir*) ac_datarootdir_seen=yes;;
  24729. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24731. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24732. _ACEOF
  24733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24734. ac_datarootdir_hack='
  24735. s&@datadir@&$datadir&g
  24736. s&@docdir@&$docdir&g
  24737. s&@infodir@&$infodir&g
  24738. s&@localedir@&$localedir&g
  24739. s&@mandir@&$mandir&g
  24740. s&\\\${datarootdir}&$datarootdir&g' ;;
  24741. esac
  24742. _ACEOF
  24743. # Neutralize VPATH when `$srcdir' = `.'.
  24744. # Shell code in configure.ac might set extrasub.
  24745. # FIXME: do we really want to maintain this feature?
  24746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24747. ac_sed_extra="$ac_vpsub
  24748. $extrasub
  24749. _ACEOF
  24750. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24751. :t
  24752. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24753. s|@configure_input@|$ac_sed_conf_input|;t t
  24754. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24755. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24756. s&@srcdir@&$ac_srcdir&;t t
  24757. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24758. s&@top_srcdir@&$ac_top_srcdir&;t t
  24759. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24760. s&@builddir@&$ac_builddir&;t t
  24761. s&@abs_builddir@&$ac_abs_builddir&;t t
  24762. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24763. s&@INSTALL@&$ac_INSTALL&;t t
  24764. $ac_datarootdir_hack
  24765. "
  24766. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24767. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24768. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24769. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24770. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24771. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24773. which seems to be undefined. Please make sure it is defined" >&5
  24774. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24775. which seems to be undefined. Please make sure it is defined" >&2;}
  24776. rm -f "$ac_tmp/stdin"
  24777. case $ac_file in
  24778. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24779. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24780. esac \
  24781. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24782. ;;
  24783. :H)
  24784. #
  24785. # CONFIG_HEADER
  24786. #
  24787. if test x"$ac_file" != x-; then
  24788. {
  24789. $as_echo "/* $configure_input */" \
  24790. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24791. } >"$ac_tmp/config.h" \
  24792. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24793. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24794. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24795. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24796. else
  24797. rm -f "$ac_file"
  24798. mv "$ac_tmp/config.h" "$ac_file" \
  24799. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24800. fi
  24801. else
  24802. $as_echo "/* $configure_input */" \
  24803. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24804. || as_fn_error $? "could not create -" "$LINENO" 5
  24805. fi
  24806. ;;
  24807. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24808. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24809. ;;
  24810. esac
  24811. case $ac_file$ac_mode in
  24812. "libtool":C)
  24813. # See if we are running on zsh, and set the options that allow our
  24814. # commands through without removal of \ escapes.
  24815. if test -n "${ZSH_VERSION+set}"; then
  24816. setopt NO_GLOB_SUBST
  24817. fi
  24818. cfgfile=${ofile}T
  24819. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24820. $RM "$cfgfile"
  24821. cat <<_LT_EOF >> "$cfgfile"
  24822. #! $SHELL
  24823. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24824. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24825. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24826. # Provide generalized library-building support services.
  24827. # Written by Gordon Matzigkeit, 1996
  24828. # Copyright (C) 2014 Free Software Foundation, Inc.
  24829. # This is free software; see the source for copying conditions. There is NO
  24830. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24831. # GNU Libtool is free software; you can redistribute it and/or modify
  24832. # it under the terms of the GNU General Public License as published by
  24833. # the Free Software Foundation; either version 2 of of the License, or
  24834. # (at your option) any later version.
  24835. #
  24836. # As a special exception to the GNU General Public License, if you
  24837. # distribute this file as part of a program or library that is built
  24838. # using GNU Libtool, you may include this file under the same
  24839. # distribution terms that you use for the rest of that program.
  24840. #
  24841. # GNU Libtool is distributed in the hope that it will be useful, but
  24842. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24843. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24844. # GNU General Public License for more details.
  24845. #
  24846. # You should have received a copy of the GNU General Public License
  24847. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24848. # The names of the tagged configurations supported by this script.
  24849. available_tags='RC CXX '
  24850. # Configured defaults for sys_lib_dlsearch_path munging.
  24851. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24852. # ### BEGIN LIBTOOL CONFIG
  24853. # Which release of libtool.m4 was used?
  24854. macro_version=$macro_version
  24855. macro_revision=$macro_revision
  24856. # Assembler program.
  24857. AS=$lt_AS
  24858. # DLL creation program.
  24859. DLLTOOL=$lt_DLLTOOL
  24860. # Object dumper program.
  24861. OBJDUMP=$lt_OBJDUMP
  24862. # Whether or not to build shared libraries.
  24863. build_libtool_libs=$enable_shared
  24864. # Whether or not to build static libraries.
  24865. build_old_libs=$enable_static
  24866. # What type of objects to build.
  24867. pic_mode=$pic_mode
  24868. # Whether or not to optimize for fast installation.
  24869. fast_install=$enable_fast_install
  24870. # Shared archive member basename,for filename based shared library versioning on AIX.
  24871. shared_archive_member_spec=$shared_archive_member_spec
  24872. # Shell to use when invoking shell scripts.
  24873. SHELL=$lt_SHELL
  24874. # An echo program that protects backslashes.
  24875. ECHO=$lt_ECHO
  24876. # The PATH separator for the build system.
  24877. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24878. # The host system.
  24879. host_alias=$host_alias
  24880. host=$host
  24881. host_os=$host_os
  24882. # The build system.
  24883. build_alias=$build_alias
  24884. build=$build
  24885. build_os=$build_os
  24886. # A sed program that does not truncate output.
  24887. SED=$lt_SED
  24888. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24889. Xsed="\$SED -e 1s/^X//"
  24890. # A grep program that handles long lines.
  24891. GREP=$lt_GREP
  24892. # An ERE matcher.
  24893. EGREP=$lt_EGREP
  24894. # A literal string matcher.
  24895. FGREP=$lt_FGREP
  24896. # A BSD- or MS-compatible name lister.
  24897. NM=$lt_NM
  24898. # Whether we need soft or hard links.
  24899. LN_S=$lt_LN_S
  24900. # What is the maximum length of a command?
  24901. max_cmd_len=$max_cmd_len
  24902. # Object file suffix (normally "o").
  24903. objext=$ac_objext
  24904. # Executable file suffix (normally "").
  24905. exeext=$exeext
  24906. # whether the shell understands "unset".
  24907. lt_unset=$lt_unset
  24908. # turn spaces into newlines.
  24909. SP2NL=$lt_lt_SP2NL
  24910. # turn newlines into spaces.
  24911. NL2SP=$lt_lt_NL2SP
  24912. # convert \$build file names to \$host format.
  24913. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24914. # convert \$build files to toolchain format.
  24915. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24916. # Method to check whether dependent libraries are shared objects.
  24917. deplibs_check_method=$lt_deplibs_check_method
  24918. # Command to use when deplibs_check_method = "file_magic".
  24919. file_magic_cmd=$lt_file_magic_cmd
  24920. # How to find potential files when deplibs_check_method = "file_magic".
  24921. file_magic_glob=$lt_file_magic_glob
  24922. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24923. want_nocaseglob=$lt_want_nocaseglob
  24924. # Command to associate shared and link libraries.
  24925. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24926. # The archiver.
  24927. AR=$lt_AR
  24928. # Flags to create an archive.
  24929. AR_FLAGS=$lt_AR_FLAGS
  24930. # How to feed a file listing to the archiver.
  24931. archiver_list_spec=$lt_archiver_list_spec
  24932. # A symbol stripping program.
  24933. STRIP=$lt_STRIP
  24934. # Commands used to install an old-style archive.
  24935. RANLIB=$lt_RANLIB
  24936. old_postinstall_cmds=$lt_old_postinstall_cmds
  24937. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24938. # Whether to use a lock for old archive extraction.
  24939. lock_old_archive_extraction=$lock_old_archive_extraction
  24940. # A C compiler.
  24941. LTCC=$lt_CC
  24942. # LTCC compiler flags.
  24943. LTCFLAGS=$lt_CFLAGS
  24944. # Take the output of nm and produce a listing of raw symbols and C names.
  24945. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24946. # Transform the output of nm in a proper C declaration.
  24947. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24948. # Transform the output of nm into a list of symbols to manually relocate.
  24949. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24950. # Transform the output of nm in a C name address pair.
  24951. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24952. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24953. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24954. # The name lister interface.
  24955. nm_interface=$lt_lt_cv_nm_interface
  24956. # Specify filename containing input files for \$NM.
  24957. nm_file_list_spec=$lt_nm_file_list_spec
  24958. # The root where to search for dependent libraries,and where our libraries should be installed.
  24959. lt_sysroot=$lt_sysroot
  24960. # Command to truncate a binary pipe.
  24961. lt_truncate_bin=$lt_lt_cv_truncate_bin
  24962. # The name of the directory that contains temporary libtool files.
  24963. objdir=$objdir
  24964. # Used to examine libraries when file_magic_cmd begins with "file".
  24965. MAGIC_CMD=$MAGIC_CMD
  24966. # Must we lock files when doing compilation?
  24967. need_locks=$lt_need_locks
  24968. # Manifest tool.
  24969. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24970. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24971. DSYMUTIL=$lt_DSYMUTIL
  24972. # Tool to change global to local symbols on Mac OS X.
  24973. NMEDIT=$lt_NMEDIT
  24974. # Tool to manipulate fat objects and archives on Mac OS X.
  24975. LIPO=$lt_LIPO
  24976. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24977. OTOOL=$lt_OTOOL
  24978. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24979. OTOOL64=$lt_OTOOL64
  24980. # Old archive suffix (normally "a").
  24981. libext=$libext
  24982. # Shared library suffix (normally ".so").
  24983. shrext_cmds=$lt_shrext_cmds
  24984. # The commands to extract the exported symbol list from a shared archive.
  24985. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24986. # Variables whose values should be saved in libtool wrapper scripts and
  24987. # restored at link time.
  24988. variables_saved_for_relink=$lt_variables_saved_for_relink
  24989. # Do we need the "lib" prefix for modules?
  24990. need_lib_prefix=$need_lib_prefix
  24991. # Do we need a version for libraries?
  24992. need_version=$need_version
  24993. # Library versioning type.
  24994. version_type=$version_type
  24995. # Shared library runtime path variable.
  24996. runpath_var=$runpath_var
  24997. # Shared library path variable.
  24998. shlibpath_var=$shlibpath_var
  24999. # Is shlibpath searched before the hard-coded library search path?
  25000. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25001. # Format of library name prefix.
  25002. libname_spec=$lt_libname_spec
  25003. # List of archive names. First name is the real one, the rest are links.
  25004. # The last name is the one that the linker finds with -lNAME
  25005. library_names_spec=$lt_library_names_spec
  25006. # The coded name of the library, if different from the real name.
  25007. soname_spec=$lt_soname_spec
  25008. # Permission mode override for installation of shared libraries.
  25009. install_override_mode=$lt_install_override_mode
  25010. # Command to use after installation of a shared archive.
  25011. postinstall_cmds=$lt_postinstall_cmds
  25012. # Command to use after uninstallation of a shared archive.
  25013. postuninstall_cmds=$lt_postuninstall_cmds
  25014. # Commands used to finish a libtool library installation in a directory.
  25015. finish_cmds=$lt_finish_cmds
  25016. # As "finish_cmds", except a single script fragment to be evaled but
  25017. # not shown.
  25018. finish_eval=$lt_finish_eval
  25019. # Whether we should hardcode library paths into libraries.
  25020. hardcode_into_libs=$hardcode_into_libs
  25021. # Compile-time system search path for libraries.
  25022. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25023. # Detected run-time system search path for libraries.
  25024. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25025. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25026. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25027. # Whether dlopen is supported.
  25028. dlopen_support=$enable_dlopen
  25029. # Whether dlopen of programs is supported.
  25030. dlopen_self=$enable_dlopen_self
  25031. # Whether dlopen of statically linked programs is supported.
  25032. dlopen_self_static=$enable_dlopen_self_static
  25033. # Commands to strip libraries.
  25034. old_striplib=$lt_old_striplib
  25035. striplib=$lt_striplib
  25036. # The linker used to build libraries.
  25037. LD=$lt_LD
  25038. # How to create reloadable object files.
  25039. reload_flag=$lt_reload_flag
  25040. reload_cmds=$lt_reload_cmds
  25041. # Commands used to build an old-style archive.
  25042. old_archive_cmds=$lt_old_archive_cmds
  25043. # A language specific compiler.
  25044. CC=$lt_compiler
  25045. # Is the compiler the GNU compiler?
  25046. with_gcc=$GCC
  25047. # Compiler flag to turn off builtin functions.
  25048. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25049. # Additional compiler flags for building library objects.
  25050. pic_flag=$lt_lt_prog_compiler_pic
  25051. # How to pass a linker flag through the compiler.
  25052. wl=$lt_lt_prog_compiler_wl
  25053. # Compiler flag to prevent dynamic linking.
  25054. link_static_flag=$lt_lt_prog_compiler_static
  25055. # Does compiler simultaneously support -c and -o options?
  25056. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25057. # Whether or not to add -lc for building shared libraries.
  25058. build_libtool_need_lc=$archive_cmds_need_lc
  25059. # Whether or not to disallow shared libs when runtime libs are static.
  25060. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25061. # Compiler flag to allow reflexive dlopens.
  25062. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25063. # Compiler flag to generate shared objects directly from archives.
  25064. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25065. # Whether the compiler copes with passing no objects directly.
  25066. compiler_needs_object=$lt_compiler_needs_object
  25067. # Create an old-style archive from a shared archive.
  25068. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25069. # Create a temporary old-style archive to link instead of a shared archive.
  25070. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25071. # Commands used to build a shared archive.
  25072. archive_cmds=$lt_archive_cmds
  25073. archive_expsym_cmds=$lt_archive_expsym_cmds
  25074. # Commands used to build a loadable module if different from building
  25075. # a shared archive.
  25076. module_cmds=$lt_module_cmds
  25077. module_expsym_cmds=$lt_module_expsym_cmds
  25078. # Whether we are building with GNU ld or not.
  25079. with_gnu_ld=$lt_with_gnu_ld
  25080. # Flag that allows shared libraries with undefined symbols to be built.
  25081. allow_undefined_flag=$lt_allow_undefined_flag
  25082. # Flag that enforces no undefined symbols.
  25083. no_undefined_flag=$lt_no_undefined_flag
  25084. # Flag to hardcode \$libdir into a binary during linking.
  25085. # This must work even if \$libdir does not exist
  25086. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25087. # Whether we need a single "-rpath" flag with a separated argument.
  25088. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25089. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25090. # DIR into the resulting binary.
  25091. hardcode_direct=$hardcode_direct
  25092. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25093. # DIR into the resulting binary and the resulting library dependency is
  25094. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25095. # library is relocated.
  25096. hardcode_direct_absolute=$hardcode_direct_absolute
  25097. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25098. # into the resulting binary.
  25099. hardcode_minus_L=$hardcode_minus_L
  25100. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25101. # into the resulting binary.
  25102. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25103. # Set to "yes" if building a shared library automatically hardcodes DIR
  25104. # into the library and all subsequent libraries and executables linked
  25105. # against it.
  25106. hardcode_automatic=$hardcode_automatic
  25107. # Set to yes if linker adds runtime paths of dependent libraries
  25108. # to runtime path list.
  25109. inherit_rpath=$inherit_rpath
  25110. # Whether libtool must link a program against all its dependency libraries.
  25111. link_all_deplibs=$link_all_deplibs
  25112. # Set to "yes" if exported symbols are required.
  25113. always_export_symbols=$always_export_symbols
  25114. # The commands to list exported symbols.
  25115. export_symbols_cmds=$lt_export_symbols_cmds
  25116. # Symbols that should not be listed in the preloaded symbols.
  25117. exclude_expsyms=$lt_exclude_expsyms
  25118. # Symbols that must always be exported.
  25119. include_expsyms=$lt_include_expsyms
  25120. # Commands necessary for linking programs (against libraries) with templates.
  25121. prelink_cmds=$lt_prelink_cmds
  25122. # Commands necessary for finishing linking programs.
  25123. postlink_cmds=$lt_postlink_cmds
  25124. # Specify filename containing input files.
  25125. file_list_spec=$lt_file_list_spec
  25126. # How to hardcode a shared library path into an executable.
  25127. hardcode_action=$hardcode_action
  25128. # The directories searched by this compiler when creating a shared library.
  25129. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25130. # Dependencies to place before and after the objects being linked to
  25131. # create a shared library.
  25132. predep_objects=$lt_predep_objects
  25133. postdep_objects=$lt_postdep_objects
  25134. predeps=$lt_predeps
  25135. postdeps=$lt_postdeps
  25136. # The library search path used internally by the compiler when linking
  25137. # a shared library.
  25138. compiler_lib_search_path=$lt_compiler_lib_search_path
  25139. # ### END LIBTOOL CONFIG
  25140. _LT_EOF
  25141. cat <<'_LT_EOF' >> "$cfgfile"
  25142. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25143. # func_munge_path_list VARIABLE PATH
  25144. # -----------------------------------
  25145. # VARIABLE is name of variable containing _space_ separated list of
  25146. # directories to be munged by the contents of PATH, which is string
  25147. # having a format:
  25148. # "DIR[:DIR]:"
  25149. # string "DIR[ DIR]" will be prepended to VARIABLE
  25150. # ":DIR[:DIR]"
  25151. # string "DIR[ DIR]" will be appended to VARIABLE
  25152. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25153. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25154. # "DIRA[ DIRA]" will be appended to VARIABLE
  25155. # "DIR[:DIR]"
  25156. # VARIABLE will be replaced by "DIR[ DIR]"
  25157. func_munge_path_list ()
  25158. {
  25159. case x$2 in
  25160. x)
  25161. ;;
  25162. *:)
  25163. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25164. ;;
  25165. x:*)
  25166. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25167. ;;
  25168. *::*)
  25169. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25170. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25171. ;;
  25172. *)
  25173. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25174. ;;
  25175. esac
  25176. }
  25177. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25178. func_cc_basename ()
  25179. {
  25180. for cc_temp in $*""; do
  25181. case $cc_temp in
  25182. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25183. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25184. \-*) ;;
  25185. *) break;;
  25186. esac
  25187. done
  25188. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25189. }
  25190. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25191. _LT_EOF
  25192. case $host_os in
  25193. aix3*)
  25194. cat <<\_LT_EOF >> "$cfgfile"
  25195. # AIX sometimes has problems with the GCC collect2 program. For some
  25196. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25197. # vanish in a puff of smoke.
  25198. if test set != "${COLLECT_NAMES+set}"; then
  25199. COLLECT_NAMES=
  25200. export COLLECT_NAMES
  25201. fi
  25202. _LT_EOF
  25203. ;;
  25204. esac
  25205. ltmain=$ac_aux_dir/ltmain.sh
  25206. # We use sed instead of cat because bash on DJGPP gets confused if
  25207. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25208. # text mode, it properly converts lines to CR/LF. This bash problem
  25209. # is reportedly fixed, but why not run on old versions too?
  25210. sed '$q' "$ltmain" >> "$cfgfile" \
  25211. || (rm -f "$cfgfile"; exit 1)
  25212. mv -f "$cfgfile" "$ofile" ||
  25213. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25214. chmod +x "$ofile"
  25215. cat <<_LT_EOF >> "$ofile"
  25216. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25217. # The linker used to build libraries.
  25218. LD=$lt_LD_RC
  25219. # How to create reloadable object files.
  25220. reload_flag=$lt_reload_flag_RC
  25221. reload_cmds=$lt_reload_cmds_RC
  25222. # Commands used to build an old-style archive.
  25223. old_archive_cmds=$lt_old_archive_cmds_RC
  25224. # A language specific compiler.
  25225. CC=$lt_compiler_RC
  25226. # Is the compiler the GNU compiler?
  25227. with_gcc=$GCC_RC
  25228. # Compiler flag to turn off builtin functions.
  25229. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25230. # Additional compiler flags for building library objects.
  25231. pic_flag=$lt_lt_prog_compiler_pic_RC
  25232. # How to pass a linker flag through the compiler.
  25233. wl=$lt_lt_prog_compiler_wl_RC
  25234. # Compiler flag to prevent dynamic linking.
  25235. link_static_flag=$lt_lt_prog_compiler_static_RC
  25236. # Does compiler simultaneously support -c and -o options?
  25237. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25238. # Whether or not to add -lc for building shared libraries.
  25239. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25240. # Whether or not to disallow shared libs when runtime libs are static.
  25241. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25242. # Compiler flag to allow reflexive dlopens.
  25243. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25244. # Compiler flag to generate shared objects directly from archives.
  25245. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25246. # Whether the compiler copes with passing no objects directly.
  25247. compiler_needs_object=$lt_compiler_needs_object_RC
  25248. # Create an old-style archive from a shared archive.
  25249. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25250. # Create a temporary old-style archive to link instead of a shared archive.
  25251. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25252. # Commands used to build a shared archive.
  25253. archive_cmds=$lt_archive_cmds_RC
  25254. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25255. # Commands used to build a loadable module if different from building
  25256. # a shared archive.
  25257. module_cmds=$lt_module_cmds_RC
  25258. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25259. # Whether we are building with GNU ld or not.
  25260. with_gnu_ld=$lt_with_gnu_ld_RC
  25261. # Flag that allows shared libraries with undefined symbols to be built.
  25262. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25263. # Flag that enforces no undefined symbols.
  25264. no_undefined_flag=$lt_no_undefined_flag_RC
  25265. # Flag to hardcode \$libdir into a binary during linking.
  25266. # This must work even if \$libdir does not exist
  25267. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25268. # Whether we need a single "-rpath" flag with a separated argument.
  25269. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25270. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25271. # DIR into the resulting binary.
  25272. hardcode_direct=$hardcode_direct_RC
  25273. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25274. # DIR into the resulting binary and the resulting library dependency is
  25275. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25276. # library is relocated.
  25277. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25278. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25279. # into the resulting binary.
  25280. hardcode_minus_L=$hardcode_minus_L_RC
  25281. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25282. # into the resulting binary.
  25283. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25284. # Set to "yes" if building a shared library automatically hardcodes DIR
  25285. # into the library and all subsequent libraries and executables linked
  25286. # against it.
  25287. hardcode_automatic=$hardcode_automatic_RC
  25288. # Set to yes if linker adds runtime paths of dependent libraries
  25289. # to runtime path list.
  25290. inherit_rpath=$inherit_rpath_RC
  25291. # Whether libtool must link a program against all its dependency libraries.
  25292. link_all_deplibs=$link_all_deplibs_RC
  25293. # Set to "yes" if exported symbols are required.
  25294. always_export_symbols=$always_export_symbols_RC
  25295. # The commands to list exported symbols.
  25296. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25297. # Symbols that should not be listed in the preloaded symbols.
  25298. exclude_expsyms=$lt_exclude_expsyms_RC
  25299. # Symbols that must always be exported.
  25300. include_expsyms=$lt_include_expsyms_RC
  25301. # Commands necessary for linking programs (against libraries) with templates.
  25302. prelink_cmds=$lt_prelink_cmds_RC
  25303. # Commands necessary for finishing linking programs.
  25304. postlink_cmds=$lt_postlink_cmds_RC
  25305. # Specify filename containing input files.
  25306. file_list_spec=$lt_file_list_spec_RC
  25307. # How to hardcode a shared library path into an executable.
  25308. hardcode_action=$hardcode_action_RC
  25309. # The directories searched by this compiler when creating a shared library.
  25310. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25311. # Dependencies to place before and after the objects being linked to
  25312. # create a shared library.
  25313. predep_objects=$lt_predep_objects_RC
  25314. postdep_objects=$lt_postdep_objects_RC
  25315. predeps=$lt_predeps_RC
  25316. postdeps=$lt_postdeps_RC
  25317. # The library search path used internally by the compiler when linking
  25318. # a shared library.
  25319. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25320. # ### END LIBTOOL TAG CONFIG: RC
  25321. _LT_EOF
  25322. cat <<_LT_EOF >> "$ofile"
  25323. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25324. # The linker used to build libraries.
  25325. LD=$lt_LD_CXX
  25326. # How to create reloadable object files.
  25327. reload_flag=$lt_reload_flag_CXX
  25328. reload_cmds=$lt_reload_cmds_CXX
  25329. # Commands used to build an old-style archive.
  25330. old_archive_cmds=$lt_old_archive_cmds_CXX
  25331. # A language specific compiler.
  25332. CC=$lt_compiler_CXX
  25333. # Is the compiler the GNU compiler?
  25334. with_gcc=$GCC_CXX
  25335. # Compiler flag to turn off builtin functions.
  25336. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25337. # Additional compiler flags for building library objects.
  25338. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25339. # How to pass a linker flag through the compiler.
  25340. wl=$lt_lt_prog_compiler_wl_CXX
  25341. # Compiler flag to prevent dynamic linking.
  25342. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25343. # Does compiler simultaneously support -c and -o options?
  25344. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25345. # Whether or not to add -lc for building shared libraries.
  25346. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25347. # Whether or not to disallow shared libs when runtime libs are static.
  25348. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25349. # Compiler flag to allow reflexive dlopens.
  25350. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25351. # Compiler flag to generate shared objects directly from archives.
  25352. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25353. # Whether the compiler copes with passing no objects directly.
  25354. compiler_needs_object=$lt_compiler_needs_object_CXX
  25355. # Create an old-style archive from a shared archive.
  25356. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25357. # Create a temporary old-style archive to link instead of a shared archive.
  25358. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25359. # Commands used to build a shared archive.
  25360. archive_cmds=$lt_archive_cmds_CXX
  25361. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25362. # Commands used to build a loadable module if different from building
  25363. # a shared archive.
  25364. module_cmds=$lt_module_cmds_CXX
  25365. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25366. # Whether we are building with GNU ld or not.
  25367. with_gnu_ld=$lt_with_gnu_ld_CXX
  25368. # Flag that allows shared libraries with undefined symbols to be built.
  25369. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25370. # Flag that enforces no undefined symbols.
  25371. no_undefined_flag=$lt_no_undefined_flag_CXX
  25372. # Flag to hardcode \$libdir into a binary during linking.
  25373. # This must work even if \$libdir does not exist
  25374. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25375. # Whether we need a single "-rpath" flag with a separated argument.
  25376. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25377. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25378. # DIR into the resulting binary.
  25379. hardcode_direct=$hardcode_direct_CXX
  25380. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25381. # DIR into the resulting binary and the resulting library dependency is
  25382. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25383. # library is relocated.
  25384. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25385. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25386. # into the resulting binary.
  25387. hardcode_minus_L=$hardcode_minus_L_CXX
  25388. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25389. # into the resulting binary.
  25390. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25391. # Set to "yes" if building a shared library automatically hardcodes DIR
  25392. # into the library and all subsequent libraries and executables linked
  25393. # against it.
  25394. hardcode_automatic=$hardcode_automatic_CXX
  25395. # Set to yes if linker adds runtime paths of dependent libraries
  25396. # to runtime path list.
  25397. inherit_rpath=$inherit_rpath_CXX
  25398. # Whether libtool must link a program against all its dependency libraries.
  25399. link_all_deplibs=$link_all_deplibs_CXX
  25400. # Set to "yes" if exported symbols are required.
  25401. always_export_symbols=$always_export_symbols_CXX
  25402. # The commands to list exported symbols.
  25403. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25404. # Symbols that should not be listed in the preloaded symbols.
  25405. exclude_expsyms=$lt_exclude_expsyms_CXX
  25406. # Symbols that must always be exported.
  25407. include_expsyms=$lt_include_expsyms_CXX
  25408. # Commands necessary for linking programs (against libraries) with templates.
  25409. prelink_cmds=$lt_prelink_cmds_CXX
  25410. # Commands necessary for finishing linking programs.
  25411. postlink_cmds=$lt_postlink_cmds_CXX
  25412. # Specify filename containing input files.
  25413. file_list_spec=$lt_file_list_spec_CXX
  25414. # How to hardcode a shared library path into an executable.
  25415. hardcode_action=$hardcode_action_CXX
  25416. # The directories searched by this compiler when creating a shared library.
  25417. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25418. # Dependencies to place before and after the objects being linked to
  25419. # create a shared library.
  25420. predep_objects=$lt_predep_objects_CXX
  25421. postdep_objects=$lt_postdep_objects_CXX
  25422. predeps=$lt_predeps_CXX
  25423. postdeps=$lt_postdeps_CXX
  25424. # The library search path used internally by the compiler when linking
  25425. # a shared library.
  25426. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25427. # ### END LIBTOOL TAG CONFIG: CXX
  25428. _LT_EOF
  25429. ;;
  25430. "sdl2_config":C) chmod a+x sdl2-config ;;
  25431. "summary":C) printf "$SUMMARY" ;;
  25432. esac
  25433. done # for ac_tag
  25434. as_fn_exit 0
  25435. _ACEOF
  25436. ac_clean_files=$ac_clean_files_save
  25437. test $ac_write_fail = 0 ||
  25438. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25439. # configure is writing to config.log, and then calls config.status.
  25440. # config.status does its own redirection, appending to config.log.
  25441. # Unfortunately, on DOS this fails, as config.log is still kept open
  25442. # by configure, so config.status won't be able to write to it; its
  25443. # output is simply discarded. So we exec the FD to /dev/null,
  25444. # effectively closing config.log, so it can be properly (re)opened and
  25445. # appended to by config.status. When coming back to configure, we
  25446. # need to make the FD available again.
  25447. if test "$no_create" != yes; then
  25448. ac_cs_success=:
  25449. ac_config_status_args=
  25450. test "$silent" = yes &&
  25451. ac_config_status_args="$ac_config_status_args --quiet"
  25452. exec 5>/dev/null
  25453. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25454. exec 5>>config.log
  25455. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25456. # would make configure fail if this is the last instruction.
  25457. $ac_cs_success || as_fn_exit 1
  25458. fi
  25459. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25461. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25462. fi