configure 963 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_LIBS
  647. RPI_CFLAGS
  648. DECOR_LIBS
  649. DECOR_CFLAGS
  650. FUSIONSOUND_LIBS
  651. FUSIONSOUND_CFLAGS
  652. SNDIO_LIBS
  653. SNDIO_CFLAGS
  654. ARTSCONFIG
  655. PULSEAUDIO_LIBS
  656. PULSEAUDIO_CFLAGS
  657. PIPEWIRE_LIBS
  658. PIPEWIRE_CFLAGS
  659. ESD_CONFIG
  660. ESD_LIBS
  661. ESD_CFLAGS
  662. JACK_LIBS
  663. JACK_CFLAGS
  664. ALSA_LIBS
  665. ALSA_CFLAGS
  666. ALLOCA
  667. CPP
  668. LIBTOOLLINKERTAG
  669. LINKER
  670. SORT
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. SET_MAKE
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. CXXCPP
  679. ac_ct_CXX
  680. CXXFLAGS
  681. CXX
  682. LT_AGE
  683. LT_REVISION
  684. LT_CURRENT
  685. LT_RELEASE
  686. RC
  687. LT_SYS_LIBRARY_PATH
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. AWK
  695. RANLIB
  696. STRIP
  697. ac_ct_AR
  698. AR
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. OBJDUMP
  725. DLLTOOL
  726. AS
  727. SDL_VERSION
  728. SDL_BINARY_AGE
  729. SDL_INTERFACE_AGE
  730. SDL_MICRO_VERSION
  731. SDL_MINOR_VERSION
  732. SDL_MAJOR_VERSION
  733. target_alias
  734. host_alias
  735. build_alias
  736. LIBS
  737. ECHO_T
  738. ECHO_N
  739. ECHO_C
  740. DEFS
  741. mandir
  742. localedir
  743. libdir
  744. psdir
  745. pdfdir
  746. dvidir
  747. htmldir
  748. infodir
  749. docdir
  750. oldincludedir
  751. includedir
  752. runstatedir
  753. localstatedir
  754. sharedstatedir
  755. sysconfdir
  756. datadir
  757. datarootdir
  758. libexecdir
  759. sbindir
  760. bindir
  761. program_transform_name
  762. prefix
  763. exec_prefix
  764. PACKAGE_URL
  765. PACKAGE_BUGREPORT
  766. PACKAGE_STRING
  767. PACKAGE_VERSION
  768. PACKAGE_TARNAME
  769. PACKAGE_NAME
  770. PATH_SEPARATOR
  771. SHELL'
  772. ac_subst_files=''
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_shared
  776. enable_static
  777. with_pic
  778. enable_fast_install
  779. with_aix_soname
  780. with_gnu_ld
  781. with_sysroot
  782. enable_libtool_lock
  783. enable_largefile
  784. enable_assertions
  785. enable_dependency_tracking
  786. enable_libc
  787. enable_system_iconv
  788. enable_libiconv
  789. enable_gcc_atomics
  790. enable_atomic
  791. enable_audio
  792. enable_video
  793. enable_render
  794. enable_events
  795. enable_joystick
  796. enable_haptic
  797. enable_hidapi
  798. enable_sensor
  799. enable_power
  800. enable_filesystem
  801. enable_timers
  802. enable_file
  803. enable_misc
  804. enable_locale
  805. enable_loadso
  806. enable_cpuinfo
  807. enable_assembly
  808. enable_ssemath
  809. enable_mmx
  810. enable_3dnow
  811. enable_sse
  812. enable_sse2
  813. enable_sse3
  814. enable_altivec
  815. enable_lsx
  816. enable_lasx
  817. enable_oss
  818. enable_alsa
  819. with_alsa_prefix
  820. with_alsa_inc_prefix
  821. enable_alsatest
  822. enable_alsa_shared
  823. enable_jack
  824. enable_jack_shared
  825. enable_esd
  826. with_esd_prefix
  827. with_esd_exec_prefix
  828. enable_esdtest
  829. enable_esd_shared
  830. enable_pipewire
  831. enable_pipewire_shared
  832. enable_pulseaudio
  833. enable_pulseaudio_shared
  834. enable_arts
  835. enable_arts_shared
  836. enable_nas
  837. enable_nas_shared
  838. enable_sndio
  839. enable_sndio_shared
  840. enable_fusionsound
  841. enable_fusionsound_shared
  842. enable_diskaudio
  843. enable_dummyaudio
  844. enable_libsamplerate
  845. enable_libsamplerate_shared
  846. enable_arm_simd
  847. enable_arm_neon
  848. enable_werror
  849. enable_video_wayland
  850. enable_video_wayland_qt_touch
  851. enable_wayland_shared
  852. enable_libdecor
  853. enable_libdecor_shared
  854. enable_video_rpi
  855. enable_video_x11
  856. with_x
  857. enable_x11_shared
  858. enable_video_x11_xcursor
  859. enable_video_x11_xdbe
  860. enable_video_x11_xinput
  861. enable_video_x11_xfixes
  862. enable_video_x11_xrandr
  863. enable_video_x11_scrnsaver
  864. enable_video_x11_xshape
  865. enable_video_vivante
  866. enable_video_cocoa
  867. enable_video_metal
  868. enable_render_metal
  869. enable_video_directfb
  870. enable_directfb_shared
  871. enable_video_kmsdrm
  872. enable_kmsdrm_shared
  873. enable_video_dummy
  874. enable_video_offscreen
  875. enable_video_opengl
  876. enable_video_opengles
  877. enable_video_opengles1
  878. enable_video_opengles2
  879. enable_video_vulkan
  880. enable_libudev
  881. enable_dbus
  882. enable_ime
  883. enable_ibus
  884. enable_fcitx
  885. enable_joystick_mfi
  886. enable_pthreads
  887. enable_pthread_sem
  888. enable_directx
  889. enable_xinput
  890. enable_wasapi
  891. enable_hidapi_joystick
  892. enable_hidapi_libusb
  893. enable_clock_gettime
  894. enable_rpath
  895. enable_backgrounding_signal
  896. enable_foregrounding_signal
  897. enable_joystick_virtual
  898. enable_render_d3d
  899. enable_sdl2_config
  900. enable_vendor_info
  901. '
  902. ac_precious_vars='build_alias
  903. host_alias
  904. target_alias
  905. CC
  906. CFLAGS
  907. LDFLAGS
  908. LIBS
  909. CPPFLAGS
  910. LT_SYS_LIBRARY_PATH
  911. CXX
  912. CXXFLAGS
  913. CCC
  914. CXXCPP
  915. PKG_CONFIG
  916. PKG_CONFIG_PATH
  917. PKG_CONFIG_LIBDIR
  918. CPP
  919. JACK_CFLAGS
  920. JACK_LIBS
  921. ESD_CFLAGS
  922. ESD_LIBS
  923. PIPEWIRE_CFLAGS
  924. PIPEWIRE_LIBS
  925. PULSEAUDIO_CFLAGS
  926. PULSEAUDIO_LIBS
  927. SNDIO_CFLAGS
  928. SNDIO_LIBS
  929. FUSIONSOUND_CFLAGS
  930. FUSIONSOUND_LIBS
  931. DECOR_CFLAGS
  932. DECOR_LIBS
  933. RPI_CFLAGS
  934. RPI_LIBS
  935. XMKMF
  936. DIRECTFB_CFLAGS
  937. DIRECTFB_LIBS
  938. LIBDRM_CFLAGS
  939. LIBDRM_LIBS
  940. LIBGBM_CFLAGS
  941. LIBGBM_LIBS
  942. DBUS_CFLAGS
  943. DBUS_LIBS
  944. IBUS_CFLAGS
  945. IBUS_LIBS
  946. LIBUSB_CFLAGS
  947. LIBUSB_LIBS'
  948. # Initialize some variables set by options.
  949. ac_init_help=
  950. ac_init_version=false
  951. ac_unrecognized_opts=
  952. ac_unrecognized_sep=
  953. # The variables have the same names as the options, with
  954. # dashes changed to underlines.
  955. cache_file=/dev/null
  956. exec_prefix=NONE
  957. no_create=
  958. no_recursion=
  959. prefix=NONE
  960. program_prefix=NONE
  961. program_suffix=NONE
  962. program_transform_name=s,x,x,
  963. silent=
  964. site=
  965. srcdir=
  966. verbose=
  967. x_includes=NONE
  968. x_libraries=NONE
  969. # Installation directory options.
  970. # These are left unexpanded so users can "make install exec_prefix=/foo"
  971. # and all the variables that are supposed to be based on exec_prefix
  972. # by default will actually change.
  973. # Use braces instead of parens because sh, perl, etc. also accept them.
  974. # (The list follows the same order as the GNU Coding Standards.)
  975. bindir='${exec_prefix}/bin'
  976. sbindir='${exec_prefix}/sbin'
  977. libexecdir='${exec_prefix}/libexec'
  978. datarootdir='${prefix}/share'
  979. datadir='${datarootdir}'
  980. sysconfdir='${prefix}/etc'
  981. sharedstatedir='${prefix}/com'
  982. localstatedir='${prefix}/var'
  983. runstatedir='${localstatedir}/run'
  984. includedir='${prefix}/include'
  985. oldincludedir='/usr/include'
  986. docdir='${datarootdir}/doc/${PACKAGE}'
  987. infodir='${datarootdir}/info'
  988. htmldir='${docdir}'
  989. dvidir='${docdir}'
  990. pdfdir='${docdir}'
  991. psdir='${docdir}'
  992. libdir='${exec_prefix}/lib'
  993. localedir='${datarootdir}/locale'
  994. mandir='${datarootdir}/man'
  995. ac_prev=
  996. ac_dashdash=
  997. for ac_option
  998. do
  999. # If the previous option needs an argument, assign it.
  1000. if test -n "$ac_prev"; then
  1001. eval $ac_prev=\$ac_option
  1002. ac_prev=
  1003. continue
  1004. fi
  1005. case $ac_option in
  1006. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1007. *=) ac_optarg= ;;
  1008. *) ac_optarg=yes ;;
  1009. esac
  1010. case $ac_dashdash$ac_option in
  1011. --)
  1012. ac_dashdash=yes ;;
  1013. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1014. ac_prev=bindir ;;
  1015. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1016. bindir=$ac_optarg ;;
  1017. -build | --build | --buil | --bui | --bu)
  1018. ac_prev=build_alias ;;
  1019. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1020. build_alias=$ac_optarg ;;
  1021. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1022. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1023. ac_prev=cache_file ;;
  1024. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1025. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1026. cache_file=$ac_optarg ;;
  1027. --config-cache | -C)
  1028. cache_file=config.cache ;;
  1029. -datadir | --datadir | --datadi | --datad)
  1030. ac_prev=datadir ;;
  1031. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1032. datadir=$ac_optarg ;;
  1033. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1034. | --dataroo | --dataro | --datar)
  1035. ac_prev=datarootdir ;;
  1036. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1037. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1038. datarootdir=$ac_optarg ;;
  1039. -disable-* | --disable-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "enable_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval enable_$ac_useropt=no ;;
  1054. -docdir | --docdir | --docdi | --doc | --do)
  1055. ac_prev=docdir ;;
  1056. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1057. docdir=$ac_optarg ;;
  1058. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1059. ac_prev=dvidir ;;
  1060. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1061. dvidir=$ac_optarg ;;
  1062. -enable-* | --enable-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "enable_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval enable_$ac_useropt=\$ac_optarg ;;
  1077. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1078. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1079. | --exec | --exe | --ex)
  1080. ac_prev=exec_prefix ;;
  1081. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1082. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1083. | --exec=* | --exe=* | --ex=*)
  1084. exec_prefix=$ac_optarg ;;
  1085. -gas | --gas | --ga | --g)
  1086. # Obsolete; use --with-gas.
  1087. with_gas=yes ;;
  1088. -help | --help | --hel | --he | -h)
  1089. ac_init_help=long ;;
  1090. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1091. ac_init_help=recursive ;;
  1092. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1093. ac_init_help=short ;;
  1094. -host | --host | --hos | --ho)
  1095. ac_prev=host_alias ;;
  1096. -host=* | --host=* | --hos=* | --ho=*)
  1097. host_alias=$ac_optarg ;;
  1098. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1099. ac_prev=htmldir ;;
  1100. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1101. | --ht=*)
  1102. htmldir=$ac_optarg ;;
  1103. -includedir | --includedir | --includedi | --included | --include \
  1104. | --includ | --inclu | --incl | --inc)
  1105. ac_prev=includedir ;;
  1106. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1107. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1108. includedir=$ac_optarg ;;
  1109. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1110. ac_prev=infodir ;;
  1111. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1112. infodir=$ac_optarg ;;
  1113. -libdir | --libdir | --libdi | --libd)
  1114. ac_prev=libdir ;;
  1115. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1116. libdir=$ac_optarg ;;
  1117. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1118. | --libexe | --libex | --libe)
  1119. ac_prev=libexecdir ;;
  1120. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1121. | --libexe=* | --libex=* | --libe=*)
  1122. libexecdir=$ac_optarg ;;
  1123. -localedir | --localedir | --localedi | --localed | --locale)
  1124. ac_prev=localedir ;;
  1125. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1126. localedir=$ac_optarg ;;
  1127. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1128. | --localstate | --localstat | --localsta | --localst | --locals)
  1129. ac_prev=localstatedir ;;
  1130. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1131. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1132. localstatedir=$ac_optarg ;;
  1133. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1134. ac_prev=mandir ;;
  1135. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1136. mandir=$ac_optarg ;;
  1137. -nfp | --nfp | --nf)
  1138. # Obsolete; use --without-fp.
  1139. with_fp=no ;;
  1140. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1141. | --no-cr | --no-c | -n)
  1142. no_create=yes ;;
  1143. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1144. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1145. no_recursion=yes ;;
  1146. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1147. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1148. | --oldin | --oldi | --old | --ol | --o)
  1149. ac_prev=oldincludedir ;;
  1150. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1151. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1152. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1153. oldincludedir=$ac_optarg ;;
  1154. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1155. ac_prev=prefix ;;
  1156. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1157. prefix=$ac_optarg ;;
  1158. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1159. | --program-pre | --program-pr | --program-p)
  1160. ac_prev=program_prefix ;;
  1161. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1162. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1163. program_prefix=$ac_optarg ;;
  1164. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1165. | --program-suf | --program-su | --program-s)
  1166. ac_prev=program_suffix ;;
  1167. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1168. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1169. program_suffix=$ac_optarg ;;
  1170. -program-transform-name | --program-transform-name \
  1171. | --program-transform-nam | --program-transform-na \
  1172. | --program-transform-n | --program-transform- \
  1173. | --program-transform | --program-transfor \
  1174. | --program-transfo | --program-transf \
  1175. | --program-trans | --program-tran \
  1176. | --progr-tra | --program-tr | --program-t)
  1177. ac_prev=program_transform_name ;;
  1178. -program-transform-name=* | --program-transform-name=* \
  1179. | --program-transform-nam=* | --program-transform-na=* \
  1180. | --program-transform-n=* | --program-transform-=* \
  1181. | --program-transform=* | --program-transfor=* \
  1182. | --program-transfo=* | --program-transf=* \
  1183. | --program-trans=* | --program-tran=* \
  1184. | --progr-tra=* | --program-tr=* | --program-t=*)
  1185. program_transform_name=$ac_optarg ;;
  1186. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1187. ac_prev=pdfdir ;;
  1188. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1189. pdfdir=$ac_optarg ;;
  1190. -psdir | --psdir | --psdi | --psd | --ps)
  1191. ac_prev=psdir ;;
  1192. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1193. psdir=$ac_optarg ;;
  1194. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1195. | -silent | --silent | --silen | --sile | --sil)
  1196. silent=yes ;;
  1197. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1198. | --runstate | --runstat | --runsta | --runst | --runs \
  1199. | --run | --ru | --r)
  1200. ac_prev=runstatedir ;;
  1201. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1202. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1203. | --run=* | --ru=* | --r=*)
  1204. runstatedir=$ac_optarg ;;
  1205. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1206. ac_prev=sbindir ;;
  1207. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1208. | --sbi=* | --sb=*)
  1209. sbindir=$ac_optarg ;;
  1210. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1211. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1212. | --sharedst | --shareds | --shared | --share | --shar \
  1213. | --sha | --sh)
  1214. ac_prev=sharedstatedir ;;
  1215. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1216. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1217. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1218. | --sha=* | --sh=*)
  1219. sharedstatedir=$ac_optarg ;;
  1220. -site | --site | --sit)
  1221. ac_prev=site ;;
  1222. -site=* | --site=* | --sit=*)
  1223. site=$ac_optarg ;;
  1224. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1225. ac_prev=srcdir ;;
  1226. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1227. srcdir=$ac_optarg ;;
  1228. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1229. | --syscon | --sysco | --sysc | --sys | --sy)
  1230. ac_prev=sysconfdir ;;
  1231. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1232. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1233. sysconfdir=$ac_optarg ;;
  1234. -target | --target | --targe | --targ | --tar | --ta | --t)
  1235. ac_prev=target_alias ;;
  1236. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1237. target_alias=$ac_optarg ;;
  1238. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1239. verbose=yes ;;
  1240. -version | --version | --versio | --versi | --vers | -V)
  1241. ac_init_version=: ;;
  1242. -with-* | --with-*)
  1243. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1244. # Reject names that are not valid shell variable names.
  1245. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1246. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1247. ac_useropt_orig=$ac_useropt
  1248. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1249. case $ac_user_opts in
  1250. *"
  1251. "with_$ac_useropt"
  1252. "*) ;;
  1253. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1254. ac_unrecognized_sep=', ';;
  1255. esac
  1256. eval with_$ac_useropt=\$ac_optarg ;;
  1257. -without-* | --without-*)
  1258. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1259. # Reject names that are not valid shell variable names.
  1260. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1261. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1262. ac_useropt_orig=$ac_useropt
  1263. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1264. case $ac_user_opts in
  1265. *"
  1266. "with_$ac_useropt"
  1267. "*) ;;
  1268. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1269. ac_unrecognized_sep=', ';;
  1270. esac
  1271. eval with_$ac_useropt=no ;;
  1272. --x)
  1273. # Obsolete; use --with-x.
  1274. with_x=yes ;;
  1275. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1276. | --x-incl | --x-inc | --x-in | --x-i)
  1277. ac_prev=x_includes ;;
  1278. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1279. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1280. x_includes=$ac_optarg ;;
  1281. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1282. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1283. ac_prev=x_libraries ;;
  1284. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1285. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1286. x_libraries=$ac_optarg ;;
  1287. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1288. Try \`$0 --help' for more information"
  1289. ;;
  1290. *=*)
  1291. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1292. # Reject names that are not valid shell variable names.
  1293. case $ac_envvar in #(
  1294. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1295. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1296. esac
  1297. eval $ac_envvar=\$ac_optarg
  1298. export $ac_envvar ;;
  1299. *)
  1300. # FIXME: should be removed in autoconf 3.0.
  1301. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1302. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1303. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1304. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1305. ;;
  1306. esac
  1307. done
  1308. if test -n "$ac_prev"; then
  1309. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1310. as_fn_error $? "missing argument to $ac_option"
  1311. fi
  1312. if test -n "$ac_unrecognized_opts"; then
  1313. case $enable_option_checking in
  1314. no) ;;
  1315. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1316. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1317. esac
  1318. fi
  1319. # Check all directory arguments for consistency.
  1320. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1321. datadir sysconfdir sharedstatedir localstatedir includedir \
  1322. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1323. libdir localedir mandir runstatedir
  1324. do
  1325. eval ac_val=\$$ac_var
  1326. # Remove trailing slashes.
  1327. case $ac_val in
  1328. */ )
  1329. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1330. eval $ac_var=\$ac_val;;
  1331. esac
  1332. # Be sure to have absolute directory names.
  1333. case $ac_val in
  1334. [\\/$]* | ?:[\\/]* ) continue;;
  1335. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1336. esac
  1337. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1338. done
  1339. # There might be people who depend on the old broken behavior: `$host'
  1340. # used to hold the argument of --host etc.
  1341. # FIXME: To remove some day.
  1342. build=$build_alias
  1343. host=$host_alias
  1344. target=$target_alias
  1345. # FIXME: To remove some day.
  1346. if test "x$host_alias" != x; then
  1347. if test "x$build_alias" = x; then
  1348. cross_compiling=maybe
  1349. elif test "x$build_alias" != "x$host_alias"; then
  1350. cross_compiling=yes
  1351. fi
  1352. fi
  1353. ac_tool_prefix=
  1354. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1355. test "$silent" = yes && exec 6>/dev/null
  1356. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1357. ac_ls_di=`ls -di .` &&
  1358. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1359. as_fn_error $? "working directory cannot be determined"
  1360. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1361. as_fn_error $? "pwd does not report name of working directory"
  1362. # Find the source files, if location was not specified.
  1363. if test -z "$srcdir"; then
  1364. ac_srcdir_defaulted=yes
  1365. # Try the directory containing this script, then the parent directory.
  1366. ac_confdir=`$as_dirname -- "$as_myself" ||
  1367. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1368. X"$as_myself" : 'X\(//\)[^/]' \| \
  1369. X"$as_myself" : 'X\(//\)$' \| \
  1370. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1371. printf "%s\n" X"$as_myself" |
  1372. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1373. s//\1/
  1374. q
  1375. }
  1376. /^X\(\/\/\)[^/].*/{
  1377. s//\1/
  1378. q
  1379. }
  1380. /^X\(\/\/\)$/{
  1381. s//\1/
  1382. q
  1383. }
  1384. /^X\(\/\).*/{
  1385. s//\1/
  1386. q
  1387. }
  1388. s/.*/./; q'`
  1389. srcdir=$ac_confdir
  1390. if test ! -r "$srcdir/$ac_unique_file"; then
  1391. srcdir=..
  1392. fi
  1393. else
  1394. ac_srcdir_defaulted=no
  1395. fi
  1396. if test ! -r "$srcdir/$ac_unique_file"; then
  1397. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1398. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1399. fi
  1400. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1401. ac_abs_confdir=`(
  1402. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1403. pwd)`
  1404. # When building in place, set srcdir=.
  1405. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1406. srcdir=.
  1407. fi
  1408. # Remove unnecessary trailing slashes from srcdir.
  1409. # Double slashes in file names in object file debugging info
  1410. # mess up M-x gdb in Emacs.
  1411. case $srcdir in
  1412. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1413. esac
  1414. for ac_var in $ac_precious_vars; do
  1415. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_env_${ac_var}_value=\$${ac_var}
  1417. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1418. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1419. done
  1420. #
  1421. # Report the --help message.
  1422. #
  1423. if test "$ac_init_help" = "long"; then
  1424. # Omit some internal or obsolete options to make the list less imposing.
  1425. # This message is too long to be a string in the A/UX 3.1 sh.
  1426. cat <<_ACEOF
  1427. \`configure' configures this package to adapt to many kinds of systems.
  1428. Usage: $0 [OPTION]... [VAR=VALUE]...
  1429. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1430. VAR=VALUE. See below for descriptions of some of the useful variables.
  1431. Defaults for the options are specified in brackets.
  1432. Configuration:
  1433. -h, --help display this help and exit
  1434. --help=short display options specific to this package
  1435. --help=recursive display the short help of all the included packages
  1436. -V, --version display version information and exit
  1437. -q, --quiet, --silent do not print \`checking ...' messages
  1438. --cache-file=FILE cache test results in FILE [disabled]
  1439. -C, --config-cache alias for \`--cache-file=config.cache'
  1440. -n, --no-create do not create output files
  1441. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1442. Installation directories:
  1443. --prefix=PREFIX install architecture-independent files in PREFIX
  1444. [$ac_default_prefix]
  1445. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1446. [PREFIX]
  1447. By default, \`make install' will install all the files in
  1448. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1449. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1450. for instance \`--prefix=\$HOME'.
  1451. For better control, use the options below.
  1452. Fine tuning of the installation directories:
  1453. --bindir=DIR user executables [EPREFIX/bin]
  1454. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1455. --libexecdir=DIR program executables [EPREFIX/libexec]
  1456. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1457. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1458. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1459. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1460. --libdir=DIR object code libraries [EPREFIX/lib]
  1461. --includedir=DIR C header files [PREFIX/include]
  1462. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1463. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1464. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1465. --infodir=DIR info documentation [DATAROOTDIR/info]
  1466. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1467. --mandir=DIR man documentation [DATAROOTDIR/man]
  1468. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1469. --htmldir=DIR html documentation [DOCDIR]
  1470. --dvidir=DIR dvi documentation [DOCDIR]
  1471. --pdfdir=DIR pdf documentation [DOCDIR]
  1472. --psdir=DIR ps documentation [DOCDIR]
  1473. _ACEOF
  1474. cat <<\_ACEOF
  1475. X features:
  1476. --x-includes=DIR X include files are in DIR
  1477. --x-libraries=DIR X library files are in DIR
  1478. System types:
  1479. --build=BUILD configure for building on BUILD [guessed]
  1480. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1481. _ACEOF
  1482. fi
  1483. if test -n "$ac_init_help"; then
  1484. cat <<\_ACEOF
  1485. Optional Features:
  1486. --disable-option-checking ignore unrecognized --enable/--with options
  1487. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1488. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1489. --enable-shared[=PKGS] build shared libraries [default=yes]
  1490. --enable-static[=PKGS] build static libraries [default=yes]
  1491. --enable-fast-install[=PKGS]
  1492. optimize for fast installation [default=yes]
  1493. --disable-libtool-lock avoid locking (might break parallel builds)
  1494. --disable-largefile omit support for large files
  1495. --enable-assertions Enable internal sanity checks
  1496. (auto/disabled/release/enabled/paranoid)
  1497. [default=auto]
  1498. --enable-dependency-tracking
  1499. Use gcc -MMD -MT dependency tracking [default=yes]
  1500. --enable-libc Use the system C library [default=yes]
  1501. --enable-system-iconv Use iconv() from system-installed libraries
  1502. [default=no for windows, yes for others]
  1503. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1504. libc version [default=no]
  1505. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1506. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1507. --enable-audio Enable the audio subsystem [default=yes]
  1508. --enable-video Enable the video subsystem [default=yes]
  1509. --enable-render Enable the render subsystem [default=yes]
  1510. --enable-events Enable the events subsystem [default=yes]
  1511. --enable-joystick Enable the joystick subsystem [default=yes]
  1512. --enable-haptic Enable the haptic (force feedback) subsystem
  1513. [default=yes]
  1514. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1515. --enable-sensor Enable the sensor subsystem [default=yes]
  1516. --enable-power Enable the power subsystem [default=yes]
  1517. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1518. --enable-timers Enable the timer subsystem [default=yes]
  1519. --enable-file Enable the file subsystem [default=yes]
  1520. --enable-misc Enable the misc subsystem [default=yes]
  1521. --enable-locale Enable the locale subsystem [default=yes]
  1522. --enable-loadso Enable the shared object loading subsystem
  1523. [default=yes]
  1524. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1525. --enable-assembly Enable assembly routines [default=yes]
  1526. --enable-ssemath Allow GCC to use SSE floating point math
  1527. [default=maybe]
  1528. --enable-mmx use MMX assembly routines [default=yes]
  1529. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1530. --enable-sse use SSE assembly routines [default=yes]
  1531. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1532. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1533. --enable-altivec use Altivec assembly routines [default=yes]
  1534. --enable-lsx use LSX assembly routines [default=yes]
  1535. --enable-lasx use LASX assembly routines [default=yes]
  1536. --enable-oss support the OSS audio API [default=maybe]
  1537. --enable-alsa support the ALSA audio API [default=yes]
  1538. --disable-alsatest Do not try to compile and run a test Alsa program
  1539. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1540. --enable-jack use JACK audio [default=yes]
  1541. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1542. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1543. --disable-esdtest Do not try to compile and run a test ESD program
  1544. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1545. --enable-pipewire use Pipewire audio [default=yes]
  1546. --enable-pipewire-shared
  1547. dynamically load Pipewire support [default=yes]
  1548. --enable-pulseaudio use PulseAudio [default=yes]
  1549. --enable-pulseaudio-shared
  1550. dynamically load PulseAudio support [default=yes]
  1551. --enable-arts support the Analog Real Time Synthesizer
  1552. [default=yes]
  1553. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1554. --enable-nas support the NAS audio API [default=yes]
  1555. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1556. --enable-sndio support the sndio audio API [default=yes]
  1557. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1558. --enable-fusionsound use FusionSound audio driver [default=no]
  1559. --enable-fusionsound-shared
  1560. dynamically load fusionsound audio support
  1561. [default=yes]
  1562. --enable-diskaudio support the disk writer audio driver [default=yes]
  1563. --enable-dummyaudio support the dummy audio driver [default=yes]
  1564. --enable-libsamplerate use libsamplerate for audio rate conversion
  1565. [default=yes]
  1566. --enable-libsamplerate-shared
  1567. dynamically load libsamplerate [default=yes]
  1568. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1569. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1570. --enable-werror treat warnings as errors [default=no]
  1571. --enable-video-wayland use Wayland video driver [default=yes]
  1572. --enable-video-wayland-qt-touch
  1573. QtWayland server support for Wayland video driver
  1574. [default=yes]
  1575. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1576. --enable-libdecor use libdecor for Wayland client-side decorations
  1577. [default=yes]
  1578. --enable-libdecor-shared
  1579. dynamically load libdecor [default=yes]
  1580. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1581. --enable-video-x11 use X11 video driver [default=maybe]
  1582. --enable-x11-shared dynamically load X11 support [default=maybe]
  1583. --enable-video-x11-xcursor
  1584. enable X11 Xcursor support [default=yes]
  1585. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1586. --enable-video-x11-xinput
  1587. enable X11 XInput extension for manymouse, tablets,
  1588. etc [default=yes]
  1589. --enable-video-x11-xfixes
  1590. enable X11 Xfixes support [default=yes]
  1591. --enable-video-x11-xrandr
  1592. enable X11 Xrandr extension for fullscreen
  1593. [default=yes]
  1594. --enable-video-x11-scrnsaver
  1595. enable X11 screensaver extension [default=yes]
  1596. --enable-video-x11-xshape
  1597. enable X11 XShape support [default=yes]
  1598. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1599. --enable-video-cocoa use Cocoa video driver [default=yes]
  1600. --enable-video-metal include Metal support [default=yes]
  1601. --enable-render-metal enable the Metal render driver [default=yes]
  1602. --enable-video-directfb use DirectFB video driver [default=no]
  1603. --enable-directfb-shared
  1604. dynamically load directfb support [default=yes]
  1605. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1606. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1607. --enable-video-dummy use dummy video driver [default=yes]
  1608. --enable-video-offscreen
  1609. use offscreen video driver [default=yes]
  1610. --enable-video-opengl include OpenGL support [default=yes]
  1611. --enable-video-opengles include OpenGL ES support [default=yes]
  1612. --enable-video-opengles1
  1613. include OpenGL ES 1.1 support [default=yes]
  1614. --enable-video-opengles2
  1615. include OpenGL ES 2.0 support [default=yes]
  1616. --enable-video-vulkan include Vulkan support [default=yes]
  1617. --enable-libudev enable libudev support [default=yes]
  1618. --enable-dbus enable D-Bus support [default=yes]
  1619. --enable-ime enable IME support [default=yes]
  1620. --enable-ibus enable IBus support [default=yes]
  1621. --enable-fcitx enable fcitx support [default=yes]
  1622. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1623. --enable-pthreads use POSIX threads for multi-threading
  1624. [default=maybe]
  1625. --enable-pthread-sem use pthread semaphores [default=maybe]
  1626. --enable-directx use DirectX for Windows audio/video [default=yes]
  1627. --enable-xinput use Xinput for Windows [default=yes]
  1628. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1629. --enable-hidapi-joystick
  1630. use HIDAPI for low level joystick drivers
  1631. [default=yes]
  1632. --enable-hidapi-libusb use libusb for low level joystick drivers
  1633. [default=maybe]
  1634. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1635. UNIX [default=yes]
  1636. --enable-rpath use an rpath when linking SDL [default=yes]
  1637. --enable-backgrounding-signal
  1638. number to use for magic backgrounding signal or 'no'
  1639. [default=no]
  1640. --enable-foregrounding-signal
  1641. number to use for magic foregrounding signal or 'no'
  1642. [default=no]
  1643. --enable-joystick-virtual
  1644. enable virtual joystick APIs [default=yes]
  1645. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1646. --enable-sdl2-config Install sdl2-config [default=yes]
  1647. --enable-vendor-info=STRING
  1648. Add vendor info to SDL_REVISION
  1649. Optional Packages:
  1650. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1651. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1652. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1653. both]
  1654. --with-aix-soname=aix|svr4|both
  1655. shared library versioning (aka "SONAME") variant to
  1656. provide on AIX, [default=aix].
  1657. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1658. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1659. compiler's sysroot if not specified).
  1660. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1661. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1662. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1663. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1664. --with-x use the X Window System
  1665. Some influential environment variables:
  1666. CC C compiler command
  1667. CFLAGS C compiler flags
  1668. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1669. nonstandard directory <lib dir>
  1670. LIBS libraries to pass to the linker, e.g. -l<library>
  1671. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1672. you have headers in a nonstandard directory <include dir>
  1673. LT_SYS_LIBRARY_PATH
  1674. User-defined run-time library search path.
  1675. CXX C++ compiler command
  1676. CXXFLAGS C++ compiler flags
  1677. CXXCPP C++ preprocessor
  1678. PKG_CONFIG path to pkg-config utility
  1679. PKG_CONFIG_PATH
  1680. directories to add to pkg-config's search path
  1681. PKG_CONFIG_LIBDIR
  1682. path overriding pkg-config's built-in search path
  1683. CPP C preprocessor
  1684. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1685. JACK_LIBS linker flags for JACK, overriding pkg-config
  1686. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1687. ESD_LIBS linker flags for ESD, overriding pkg-config
  1688. PIPEWIRE_CFLAGS
  1689. C compiler flags for PIPEWIRE, overriding pkg-config
  1690. PIPEWIRE_LIBS
  1691. linker flags for PIPEWIRE, overriding pkg-config
  1692. PULSEAUDIO_CFLAGS
  1693. C compiler flags for PULSEAUDIO, overriding pkg-config
  1694. PULSEAUDIO_LIBS
  1695. linker flags for PULSEAUDIO, overriding pkg-config
  1696. SNDIO_CFLAGS
  1697. C compiler flags for SNDIO, overriding pkg-config
  1698. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1699. FUSIONSOUND_CFLAGS
  1700. C compiler flags for FUSIONSOUND, overriding pkg-config
  1701. FUSIONSOUND_LIBS
  1702. linker flags for FUSIONSOUND, overriding pkg-config
  1703. DECOR_CFLAGS
  1704. C compiler flags for DECOR, overriding pkg-config
  1705. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1706. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1707. RPI_LIBS linker flags for RPI, overriding pkg-config
  1708. XMKMF Path to xmkmf, Makefile generator for X Window System
  1709. DIRECTFB_CFLAGS
  1710. C compiler flags for DIRECTFB, overriding pkg-config
  1711. DIRECTFB_LIBS
  1712. linker flags for DIRECTFB, overriding pkg-config
  1713. LIBDRM_CFLAGS
  1714. C compiler flags for LIBDRM, overriding pkg-config
  1715. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1716. LIBGBM_CFLAGS
  1717. C compiler flags for LIBGBM, overriding pkg-config
  1718. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1719. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1720. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1721. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1722. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1723. LIBUSB_CFLAGS
  1724. C compiler flags for LIBUSB, overriding pkg-config
  1725. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1726. Use these variables to override the choices made by `configure' or to help
  1727. it to find libraries and programs with nonstandard names/locations.
  1728. Report bugs to the package provider.
  1729. _ACEOF
  1730. ac_status=$?
  1731. fi
  1732. if test "$ac_init_help" = "recursive"; then
  1733. # If there are subdirs, report their specific --help.
  1734. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1735. test -d "$ac_dir" ||
  1736. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1737. continue
  1738. ac_builddir=.
  1739. case "$ac_dir" in
  1740. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1741. *)
  1742. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1743. # A ".." for each directory in $ac_dir_suffix.
  1744. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1745. case $ac_top_builddir_sub in
  1746. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1748. esac ;;
  1749. esac
  1750. ac_abs_top_builddir=$ac_pwd
  1751. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1752. # for backward compatibility:
  1753. ac_top_builddir=$ac_top_build_prefix
  1754. case $srcdir in
  1755. .) # We are building in place.
  1756. ac_srcdir=.
  1757. ac_top_srcdir=$ac_top_builddir_sub
  1758. ac_abs_top_srcdir=$ac_pwd ;;
  1759. [\\/]* | ?:[\\/]* ) # Absolute name.
  1760. ac_srcdir=$srcdir$ac_dir_suffix;
  1761. ac_top_srcdir=$srcdir
  1762. ac_abs_top_srcdir=$srcdir ;;
  1763. *) # Relative name.
  1764. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1765. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1766. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1767. esac
  1768. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1769. cd "$ac_dir" || { ac_status=$?; continue; }
  1770. # Check for configure.gnu first; this name is used for a wrapper for
  1771. # Metaconfig's "Configure" on case-insensitive file systems.
  1772. if test -f "$ac_srcdir/configure.gnu"; then
  1773. echo &&
  1774. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1775. elif test -f "$ac_srcdir/configure"; then
  1776. echo &&
  1777. $SHELL "$ac_srcdir/configure" --help=recursive
  1778. else
  1779. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1780. fi || ac_status=$?
  1781. cd "$ac_pwd" || { ac_status=$?; break; }
  1782. done
  1783. fi
  1784. test -n "$ac_init_help" && exit $ac_status
  1785. if $ac_init_version; then
  1786. cat <<\_ACEOF
  1787. configure
  1788. generated by GNU Autoconf 2.71
  1789. Copyright (C) 2021 Free Software Foundation, Inc.
  1790. This configure script is free software; the Free Software Foundation
  1791. gives unlimited permission to copy, distribute and modify it.
  1792. _ACEOF
  1793. exit
  1794. fi
  1795. ## ------------------------ ##
  1796. ## Autoconf initialization. ##
  1797. ## ------------------------ ##
  1798. # ac_fn_c_try_compile LINENO
  1799. # --------------------------
  1800. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_c_try_compile ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest.beam
  1805. if { { ac_try="$ac_compile"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. printf "%s\n" "$ac_try_echo"; } >&5
  1812. (eval "$ac_compile") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_c_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest.$ac_objext
  1824. then :
  1825. ac_retval=0
  1826. else $as_nop
  1827. printf "%s\n" "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_c_try_compile
  1834. # ac_fn_c_try_link LINENO
  1835. # -----------------------
  1836. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_c_try_link ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1841. if { { ac_try="$ac_link"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1847. printf "%s\n" "$ac_try_echo"; } >&5
  1848. (eval "$ac_link") 2>conftest.err
  1849. ac_status=$?
  1850. if test -s conftest.err; then
  1851. grep -v '^ *+' conftest.err >conftest.er1
  1852. cat conftest.er1 >&5
  1853. mv -f conftest.er1 conftest.err
  1854. fi
  1855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } && {
  1857. test -z "$ac_c_werror_flag" ||
  1858. test ! -s conftest.err
  1859. } && test -s conftest$ac_exeext && {
  1860. test "$cross_compiling" = yes ||
  1861. test -x conftest$ac_exeext
  1862. }
  1863. then :
  1864. ac_retval=0
  1865. else $as_nop
  1866. printf "%s\n" "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=1
  1869. fi
  1870. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1871. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1872. # interfere with the next link command; also delete a directory that is
  1873. # left behind by Apple's compiler. We do this before executing the actions.
  1874. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_try_link
  1878. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1879. # -------------------------------------------------------
  1880. # Tests whether HEADER exists and can be compiled using the include files in
  1881. # INCLUDES, setting the cache variable VAR accordingly.
  1882. ac_fn_c_check_header_compile ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1886. printf %s "checking for $2... " >&6; }
  1887. if eval test \${$3+y}
  1888. then :
  1889. printf %s "(cached) " >&6
  1890. else $as_nop
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. #include <$2>
  1895. _ACEOF
  1896. if ac_fn_c_try_compile "$LINENO"
  1897. then :
  1898. eval "$3=yes"
  1899. else $as_nop
  1900. eval "$3=no"
  1901. fi
  1902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1903. fi
  1904. eval ac_res=\$$3
  1905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. printf "%s\n" "$ac_res" >&6; }
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. } # ac_fn_c_check_header_compile
  1909. # ac_fn_c_check_func LINENO FUNC VAR
  1910. # ----------------------------------
  1911. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1912. ac_fn_c_check_func ()
  1913. {
  1914. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1916. printf %s "checking for $2... " >&6; }
  1917. if eval test \${$3+y}
  1918. then :
  1919. printf %s "(cached) " >&6
  1920. else $as_nop
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1924. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1925. #define $2 innocuous_$2
  1926. /* System header to define __stub macros and hopefully few prototypes,
  1927. which can conflict with char $2 (); below. */
  1928. #include <limits.h>
  1929. #undef $2
  1930. /* Override any GCC internal prototype to avoid an error.
  1931. Use char because int might match the return type of a GCC
  1932. builtin and then its argument prototype would still apply. */
  1933. #ifdef __cplusplus
  1934. extern "C"
  1935. #endif
  1936. char $2 ();
  1937. /* The GNU C library defines this for functions which it implements
  1938. to always fail with ENOSYS. Some functions are actually named
  1939. something starting with __ and the normal name is an alias. */
  1940. #if defined __stub_$2 || defined __stub___$2
  1941. choke me
  1942. #endif
  1943. int
  1944. main (void)
  1945. {
  1946. return $2 ();
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_link "$LINENO"
  1952. then :
  1953. eval "$3=yes"
  1954. else $as_nop
  1955. eval "$3=no"
  1956. fi
  1957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1958. conftest$ac_exeext conftest.$ac_ext
  1959. fi
  1960. eval ac_res=\$$3
  1961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1962. printf "%s\n" "$ac_res" >&6; }
  1963. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1964. } # ac_fn_c_check_func
  1965. # ac_fn_cxx_try_compile LINENO
  1966. # ----------------------------
  1967. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1968. ac_fn_cxx_try_compile ()
  1969. {
  1970. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1971. rm -f conftest.$ac_objext conftest.beam
  1972. if { { ac_try="$ac_compile"
  1973. case "(($ac_try" in
  1974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1975. *) ac_try_echo=$ac_try;;
  1976. esac
  1977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1978. printf "%s\n" "$ac_try_echo"; } >&5
  1979. (eval "$ac_compile") 2>conftest.err
  1980. ac_status=$?
  1981. if test -s conftest.err; then
  1982. grep -v '^ *+' conftest.err >conftest.er1
  1983. cat conftest.er1 >&5
  1984. mv -f conftest.er1 conftest.err
  1985. fi
  1986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1987. test $ac_status = 0; } && {
  1988. test -z "$ac_cxx_werror_flag" ||
  1989. test ! -s conftest.err
  1990. } && test -s conftest.$ac_objext
  1991. then :
  1992. ac_retval=0
  1993. else $as_nop
  1994. printf "%s\n" "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. ac_retval=1
  1997. fi
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. as_fn_set_status $ac_retval
  2000. } # ac_fn_cxx_try_compile
  2001. # ac_fn_cxx_try_cpp LINENO
  2002. # ------------------------
  2003. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_cxx_try_cpp ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. printf "%s\n" "$ac_try_echo"; } >&5
  2014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } > conftest.i && {
  2023. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2024. test ! -s conftest.err
  2025. }
  2026. then :
  2027. ac_retval=0
  2028. else $as_nop
  2029. printf "%s\n" "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1
  2032. fi
  2033. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034. as_fn_set_status $ac_retval
  2035. } # ac_fn_cxx_try_cpp
  2036. # ac_fn_cxx_try_link LINENO
  2037. # -------------------------
  2038. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2039. ac_fn_cxx_try_link ()
  2040. {
  2041. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2042. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2043. if { { ac_try="$ac_link"
  2044. case "(($ac_try" in
  2045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2046. *) ac_try_echo=$ac_try;;
  2047. esac
  2048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2049. printf "%s\n" "$ac_try_echo"; } >&5
  2050. (eval "$ac_link") 2>conftest.err
  2051. ac_status=$?
  2052. if test -s conftest.err; then
  2053. grep -v '^ *+' conftest.err >conftest.er1
  2054. cat conftest.er1 >&5
  2055. mv -f conftest.er1 conftest.err
  2056. fi
  2057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2058. test $ac_status = 0; } && {
  2059. test -z "$ac_cxx_werror_flag" ||
  2060. test ! -s conftest.err
  2061. } && test -s conftest$ac_exeext && {
  2062. test "$cross_compiling" = yes ||
  2063. test -x conftest$ac_exeext
  2064. }
  2065. then :
  2066. ac_retval=0
  2067. else $as_nop
  2068. printf "%s\n" "$as_me: failed program was:" >&5
  2069. sed 's/^/| /' conftest.$ac_ext >&5
  2070. ac_retval=1
  2071. fi
  2072. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2073. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2074. # interfere with the next link command; also delete a directory that is
  2075. # left behind by Apple's compiler. We do this before executing the actions.
  2076. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2077. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2078. as_fn_set_status $ac_retval
  2079. } # ac_fn_cxx_try_link
  2080. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2081. # -------------------------------------------
  2082. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2083. # variable VAR accordingly.
  2084. ac_fn_c_check_type ()
  2085. {
  2086. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2088. printf %s "checking for $2... " >&6; }
  2089. if eval test \${$3+y}
  2090. then :
  2091. printf %s "(cached) " >&6
  2092. else $as_nop
  2093. eval "$3=no"
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $4
  2097. int
  2098. main (void)
  2099. {
  2100. if (sizeof ($2))
  2101. return 0;
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. if ac_fn_c_try_compile "$LINENO"
  2107. then :
  2108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2109. /* end confdefs.h. */
  2110. $4
  2111. int
  2112. main (void)
  2113. {
  2114. if (sizeof (($2)))
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"
  2121. then :
  2122. else $as_nop
  2123. eval "$3=yes"
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2128. fi
  2129. eval ac_res=\$$3
  2130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2131. printf "%s\n" "$ac_res" >&6; }
  2132. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2133. } # ac_fn_c_check_type
  2134. # ac_fn_c_try_cpp LINENO
  2135. # ----------------------
  2136. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2137. ac_fn_c_try_cpp ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2141. case "(($ac_try" in
  2142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2143. *) ac_try_echo=$ac_try;;
  2144. esac
  2145. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2146. printf "%s\n" "$ac_try_echo"; } >&5
  2147. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2148. ac_status=$?
  2149. if test -s conftest.err; then
  2150. grep -v '^ *+' conftest.err >conftest.er1
  2151. cat conftest.er1 >&5
  2152. mv -f conftest.er1 conftest.err
  2153. fi
  2154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2155. test $ac_status = 0; } > conftest.i && {
  2156. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2157. test ! -s conftest.err
  2158. }
  2159. then :
  2160. ac_retval=0
  2161. else $as_nop
  2162. printf "%s\n" "$as_me: failed program was:" >&5
  2163. sed 's/^/| /' conftest.$ac_ext >&5
  2164. ac_retval=1
  2165. fi
  2166. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2167. as_fn_set_status $ac_retval
  2168. } # ac_fn_c_try_cpp
  2169. # ac_fn_c_try_run LINENO
  2170. # ----------------------
  2171. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2172. # executables *can* be run.
  2173. ac_fn_c_try_run ()
  2174. {
  2175. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2176. if { { ac_try="$ac_link"
  2177. case "(($ac_try" in
  2178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2179. *) ac_try_echo=$ac_try;;
  2180. esac
  2181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2182. printf "%s\n" "$ac_try_echo"; } >&5
  2183. (eval "$ac_link") 2>&5
  2184. ac_status=$?
  2185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2186. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2187. { { case "(($ac_try" in
  2188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2189. *) ac_try_echo=$ac_try;;
  2190. esac
  2191. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2192. printf "%s\n" "$ac_try_echo"; } >&5
  2193. (eval "$ac_try") 2>&5
  2194. ac_status=$?
  2195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2196. test $ac_status = 0; }; }
  2197. then :
  2198. ac_retval=0
  2199. else $as_nop
  2200. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2201. printf "%s\n" "$as_me: failed program was:" >&5
  2202. sed 's/^/| /' conftest.$ac_ext >&5
  2203. ac_retval=$ac_status
  2204. fi
  2205. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2206. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2207. as_fn_set_status $ac_retval
  2208. } # ac_fn_c_try_run
  2209. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2210. # ----------------------------------------------------
  2211. # Tries to find if the field MEMBER exists in type AGGR, after including
  2212. # INCLUDES, setting cache variable VAR accordingly.
  2213. ac_fn_c_check_member ()
  2214. {
  2215. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2217. printf %s "checking for $2.$3... " >&6; }
  2218. if eval test \${$4+y}
  2219. then :
  2220. printf %s "(cached) " >&6
  2221. else $as_nop
  2222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2223. /* end confdefs.h. */
  2224. $5
  2225. int
  2226. main (void)
  2227. {
  2228. static $2 ac_aggr;
  2229. if (ac_aggr.$3)
  2230. return 0;
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"
  2236. then :
  2237. eval "$4=yes"
  2238. else $as_nop
  2239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2240. /* end confdefs.h. */
  2241. $5
  2242. int
  2243. main (void)
  2244. {
  2245. static $2 ac_aggr;
  2246. if (sizeof ac_aggr.$3)
  2247. return 0;
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. if ac_fn_c_try_compile "$LINENO"
  2253. then :
  2254. eval "$4=yes"
  2255. else $as_nop
  2256. eval "$4=no"
  2257. fi
  2258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2259. fi
  2260. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2261. fi
  2262. eval ac_res=\$$4
  2263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2264. printf "%s\n" "$ac_res" >&6; }
  2265. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2266. } # ac_fn_c_check_member
  2267. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2268. # ------------------------------------------------------------------
  2269. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2270. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2271. ac_fn_check_decl ()
  2272. {
  2273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2274. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2276. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2277. if eval test \${$3+y}
  2278. then :
  2279. printf %s "(cached) " >&6
  2280. else $as_nop
  2281. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2282. eval ac_save_FLAGS=\$$6
  2283. as_fn_append $6 " $5"
  2284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2285. /* end confdefs.h. */
  2286. $4
  2287. int
  2288. main (void)
  2289. {
  2290. #ifndef $as_decl_name
  2291. #ifdef __cplusplus
  2292. (void) $as_decl_use;
  2293. #else
  2294. (void) $as_decl_name;
  2295. #endif
  2296. #endif
  2297. ;
  2298. return 0;
  2299. }
  2300. _ACEOF
  2301. if ac_fn_c_try_compile "$LINENO"
  2302. then :
  2303. eval "$3=yes"
  2304. else $as_nop
  2305. eval "$3=no"
  2306. fi
  2307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2308. eval $6=\$ac_save_FLAGS
  2309. fi
  2310. eval ac_res=\$$3
  2311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2312. printf "%s\n" "$ac_res" >&6; }
  2313. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2314. } # ac_fn_check_decl
  2315. ac_configure_args_raw=
  2316. for ac_arg
  2317. do
  2318. case $ac_arg in
  2319. *\'*)
  2320. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2321. esac
  2322. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2323. done
  2324. case $ac_configure_args_raw in
  2325. *$as_nl*)
  2326. ac_safe_unquote= ;;
  2327. *)
  2328. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2329. ac_unsafe_a="$ac_unsafe_z#~"
  2330. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2331. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2332. esac
  2333. cat >config.log <<_ACEOF
  2334. This file contains any messages produced by compilers while
  2335. running configure, to aid debugging if configure makes a mistake.
  2336. It was created by $as_me, which was
  2337. generated by GNU Autoconf 2.71. Invocation command line was
  2338. $ $0$ac_configure_args_raw
  2339. _ACEOF
  2340. exec 5>>config.log
  2341. {
  2342. cat <<_ASUNAME
  2343. ## --------- ##
  2344. ## Platform. ##
  2345. ## --------- ##
  2346. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2347. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2348. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2349. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2350. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2351. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2352. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2353. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2354. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2355. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2356. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2357. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2358. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2359. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2360. _ASUNAME
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. case $as_dir in #(((
  2366. '') as_dir=./ ;;
  2367. */) ;;
  2368. *) as_dir=$as_dir/ ;;
  2369. esac
  2370. printf "%s\n" "PATH: $as_dir"
  2371. done
  2372. IFS=$as_save_IFS
  2373. } >&5
  2374. cat >&5 <<_ACEOF
  2375. ## ----------- ##
  2376. ## Core tests. ##
  2377. ## ----------- ##
  2378. _ACEOF
  2379. # Keep a trace of the command line.
  2380. # Strip out --no-create and --no-recursion so they do not pile up.
  2381. # Strip out --silent because we don't want to record it for future runs.
  2382. # Also quote any args containing shell meta-characters.
  2383. # Make two passes to allow for proper duplicate-argument suppression.
  2384. ac_configure_args=
  2385. ac_configure_args0=
  2386. ac_configure_args1=
  2387. ac_must_keep_next=false
  2388. for ac_pass in 1 2
  2389. do
  2390. for ac_arg
  2391. do
  2392. case $ac_arg in
  2393. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2394. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2395. | -silent | --silent | --silen | --sile | --sil)
  2396. continue ;;
  2397. *\'*)
  2398. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2399. esac
  2400. case $ac_pass in
  2401. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2402. 2)
  2403. as_fn_append ac_configure_args1 " '$ac_arg'"
  2404. if test $ac_must_keep_next = true; then
  2405. ac_must_keep_next=false # Got value, back to normal.
  2406. else
  2407. case $ac_arg in
  2408. *=* | --config-cache | -C | -disable-* | --disable-* \
  2409. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2410. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2411. | -with-* | --with-* | -without-* | --without-* | --x)
  2412. case "$ac_configure_args0 " in
  2413. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2414. esac
  2415. ;;
  2416. -* ) ac_must_keep_next=true ;;
  2417. esac
  2418. fi
  2419. as_fn_append ac_configure_args " '$ac_arg'"
  2420. ;;
  2421. esac
  2422. done
  2423. done
  2424. { ac_configure_args0=; unset ac_configure_args0;}
  2425. { ac_configure_args1=; unset ac_configure_args1;}
  2426. # When interrupted or exit'd, cleanup temporary files, and complete
  2427. # config.log. We remove comments because anyway the quotes in there
  2428. # would cause problems or look ugly.
  2429. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2430. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2431. trap 'exit_status=$?
  2432. # Sanitize IFS.
  2433. IFS=" "" $as_nl"
  2434. # Save into config.log some information that might help in debugging.
  2435. {
  2436. echo
  2437. printf "%s\n" "## ---------------- ##
  2438. ## Cache variables. ##
  2439. ## ---------------- ##"
  2440. echo
  2441. # The following way of writing the cache mishandles newlines in values,
  2442. (
  2443. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2444. eval ac_val=\$$ac_var
  2445. case $ac_val in #(
  2446. *${as_nl}*)
  2447. case $ac_var in #(
  2448. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2449. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2450. esac
  2451. case $ac_var in #(
  2452. _ | IFS | as_nl) ;; #(
  2453. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2454. *) { eval $ac_var=; unset $ac_var;} ;;
  2455. esac ;;
  2456. esac
  2457. done
  2458. (set) 2>&1 |
  2459. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2460. *${as_nl}ac_space=\ *)
  2461. sed -n \
  2462. "s/'\''/'\''\\\\'\'''\''/g;
  2463. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2464. ;; #(
  2465. *)
  2466. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2467. ;;
  2468. esac |
  2469. sort
  2470. )
  2471. echo
  2472. printf "%s\n" "## ----------------- ##
  2473. ## Output variables. ##
  2474. ## ----------------- ##"
  2475. echo
  2476. for ac_var in $ac_subst_vars
  2477. do
  2478. eval ac_val=\$$ac_var
  2479. case $ac_val in
  2480. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2481. esac
  2482. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2483. done | sort
  2484. echo
  2485. if test -n "$ac_subst_files"; then
  2486. printf "%s\n" "## ------------------- ##
  2487. ## File substitutions. ##
  2488. ## ------------------- ##"
  2489. echo
  2490. for ac_var in $ac_subst_files
  2491. do
  2492. eval ac_val=\$$ac_var
  2493. case $ac_val in
  2494. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2495. esac
  2496. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2497. done | sort
  2498. echo
  2499. fi
  2500. if test -s confdefs.h; then
  2501. printf "%s\n" "## ----------- ##
  2502. ## confdefs.h. ##
  2503. ## ----------- ##"
  2504. echo
  2505. cat confdefs.h
  2506. echo
  2507. fi
  2508. test "$ac_signal" != 0 &&
  2509. printf "%s\n" "$as_me: caught signal $ac_signal"
  2510. printf "%s\n" "$as_me: exit $exit_status"
  2511. } >&5
  2512. rm -f core *.core core.conftest.* &&
  2513. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2514. exit $exit_status
  2515. ' 0
  2516. for ac_signal in 1 2 13 15; do
  2517. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2518. done
  2519. ac_signal=0
  2520. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2521. rm -f -r conftest* confdefs.h
  2522. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2523. # Predefined preprocessor variables.
  2524. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2525. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2526. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2527. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2528. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2529. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2530. # Let the site file select an alternate cache file if it wants to.
  2531. # Prefer an explicitly selected file to automatically selected ones.
  2532. if test -n "$CONFIG_SITE"; then
  2533. ac_site_files="$CONFIG_SITE"
  2534. elif test "x$prefix" != xNONE; then
  2535. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2536. else
  2537. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2538. fi
  2539. for ac_site_file in $ac_site_files
  2540. do
  2541. case $ac_site_file in #(
  2542. */*) :
  2543. ;; #(
  2544. *) :
  2545. ac_site_file=./$ac_site_file ;;
  2546. esac
  2547. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2549. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2550. sed 's/^/| /' "$ac_site_file" >&5
  2551. . "$ac_site_file" \
  2552. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2553. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2554. as_fn_error $? "failed to load site script $ac_site_file
  2555. See \`config.log' for more details" "$LINENO" 5; }
  2556. fi
  2557. done
  2558. if test -r "$cache_file"; then
  2559. # Some versions of bash will fail to source /dev/null (special files
  2560. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2561. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2563. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2564. case $cache_file in
  2565. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2566. *) . "./$cache_file";;
  2567. esac
  2568. fi
  2569. else
  2570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2571. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2572. >$cache_file
  2573. fi
  2574. # Test code for whether the C compiler supports C89 (global declarations)
  2575. ac_c_conftest_c89_globals='
  2576. /* Does the compiler advertise C89 conformance?
  2577. Do not test the value of __STDC__, because some compilers set it to 0
  2578. while being otherwise adequately conformant. */
  2579. #if !defined __STDC__
  2580. # error "Compiler does not advertise C89 conformance"
  2581. #endif
  2582. #include <stddef.h>
  2583. #include <stdarg.h>
  2584. struct stat;
  2585. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2586. struct buf { int x; };
  2587. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2588. static char *e (p, i)
  2589. char **p;
  2590. int i;
  2591. {
  2592. return p[i];
  2593. }
  2594. static char *f (char * (*g) (char **, int), char **p, ...)
  2595. {
  2596. char *s;
  2597. va_list v;
  2598. va_start (v,p);
  2599. s = g (p, va_arg (v,int));
  2600. va_end (v);
  2601. return s;
  2602. }
  2603. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2604. function prototypes and stuff, but not \xHH hex character constants.
  2605. These do not provoke an error unfortunately, instead are silently treated
  2606. as an "x". The following induces an error, until -std is added to get
  2607. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2608. array size at least. It is necessary to write \x00 == 0 to get something
  2609. that is true only with -std. */
  2610. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2611. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2612. inside strings and character constants. */
  2613. #define FOO(x) '\''x'\''
  2614. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2615. int test (int i, double x);
  2616. struct s1 {int (*f) (int a);};
  2617. struct s2 {int (*f) (double a);};
  2618. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2619. int, int);'
  2620. # Test code for whether the C compiler supports C89 (body of main).
  2621. ac_c_conftest_c89_main='
  2622. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2623. '
  2624. # Test code for whether the C compiler supports C99 (global declarations)
  2625. ac_c_conftest_c99_globals='
  2626. // Does the compiler advertise C99 conformance?
  2627. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2628. # error "Compiler does not advertise C99 conformance"
  2629. #endif
  2630. #include <stdbool.h>
  2631. extern int puts (const char *);
  2632. extern int printf (const char *, ...);
  2633. extern int dprintf (int, const char *, ...);
  2634. extern void *malloc (size_t);
  2635. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2636. // dprintf is used instead of fprintf to avoid needing to declare
  2637. // FILE and stderr.
  2638. #define debug(...) dprintf (2, __VA_ARGS__)
  2639. #define showlist(...) puts (#__VA_ARGS__)
  2640. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2641. static void
  2642. test_varargs_macros (void)
  2643. {
  2644. int x = 1234;
  2645. int y = 5678;
  2646. debug ("Flag");
  2647. debug ("X = %d\n", x);
  2648. showlist (The first, second, and third items.);
  2649. report (x>y, "x is %d but y is %d", x, y);
  2650. }
  2651. // Check long long types.
  2652. #define BIG64 18446744073709551615ull
  2653. #define BIG32 4294967295ul
  2654. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2655. #if !BIG_OK
  2656. #error "your preprocessor is broken"
  2657. #endif
  2658. #if BIG_OK
  2659. #else
  2660. #error "your preprocessor is broken"
  2661. #endif
  2662. static long long int bignum = -9223372036854775807LL;
  2663. static unsigned long long int ubignum = BIG64;
  2664. struct incomplete_array
  2665. {
  2666. int datasize;
  2667. double data[];
  2668. };
  2669. struct named_init {
  2670. int number;
  2671. const wchar_t *name;
  2672. double average;
  2673. };
  2674. typedef const char *ccp;
  2675. static inline int
  2676. test_restrict (ccp restrict text)
  2677. {
  2678. // See if C++-style comments work.
  2679. // Iterate through items via the restricted pointer.
  2680. // Also check for declarations in for loops.
  2681. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2682. continue;
  2683. return 0;
  2684. }
  2685. // Check varargs and va_copy.
  2686. static bool
  2687. test_varargs (const char *format, ...)
  2688. {
  2689. va_list args;
  2690. va_start (args, format);
  2691. va_list args_copy;
  2692. va_copy (args_copy, args);
  2693. const char *str = "";
  2694. int number = 0;
  2695. float fnumber = 0;
  2696. while (*format)
  2697. {
  2698. switch (*format++)
  2699. {
  2700. case '\''s'\'': // string
  2701. str = va_arg (args_copy, const char *);
  2702. break;
  2703. case '\''d'\'': // int
  2704. number = va_arg (args_copy, int);
  2705. break;
  2706. case '\''f'\'': // float
  2707. fnumber = va_arg (args_copy, double);
  2708. break;
  2709. default:
  2710. break;
  2711. }
  2712. }
  2713. va_end (args_copy);
  2714. va_end (args);
  2715. return *str && number && fnumber;
  2716. }
  2717. '
  2718. # Test code for whether the C compiler supports C99 (body of main).
  2719. ac_c_conftest_c99_main='
  2720. // Check bool.
  2721. _Bool success = false;
  2722. success |= (argc != 0);
  2723. // Check restrict.
  2724. if (test_restrict ("String literal") == 0)
  2725. success = true;
  2726. char *restrict newvar = "Another string";
  2727. // Check varargs.
  2728. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2729. test_varargs_macros ();
  2730. // Check flexible array members.
  2731. struct incomplete_array *ia =
  2732. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2733. ia->datasize = 10;
  2734. for (int i = 0; i < ia->datasize; ++i)
  2735. ia->data[i] = i * 1.234;
  2736. // Check named initializers.
  2737. struct named_init ni = {
  2738. .number = 34,
  2739. .name = L"Test wide string",
  2740. .average = 543.34343,
  2741. };
  2742. ni.number = 58;
  2743. int dynamic_array[ni.number];
  2744. dynamic_array[0] = argv[0][0];
  2745. dynamic_array[ni.number - 1] = 543;
  2746. // work around unused variable warnings
  2747. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2748. || dynamic_array[ni.number - 1] != 543);
  2749. '
  2750. # Test code for whether the C compiler supports C11 (global declarations)
  2751. ac_c_conftest_c11_globals='
  2752. // Does the compiler advertise C11 conformance?
  2753. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2754. # error "Compiler does not advertise C11 conformance"
  2755. #endif
  2756. // Check _Alignas.
  2757. char _Alignas (double) aligned_as_double;
  2758. char _Alignas (0) no_special_alignment;
  2759. extern char aligned_as_int;
  2760. char _Alignas (0) _Alignas (int) aligned_as_int;
  2761. // Check _Alignof.
  2762. enum
  2763. {
  2764. int_alignment = _Alignof (int),
  2765. int_array_alignment = _Alignof (int[100]),
  2766. char_alignment = _Alignof (char)
  2767. };
  2768. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2769. // Check _Noreturn.
  2770. int _Noreturn does_not_return (void) { for (;;) continue; }
  2771. // Check _Static_assert.
  2772. struct test_static_assert
  2773. {
  2774. int x;
  2775. _Static_assert (sizeof (int) <= sizeof (long int),
  2776. "_Static_assert does not work in struct");
  2777. long int y;
  2778. };
  2779. // Check UTF-8 literals.
  2780. #define u8 syntax error!
  2781. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2782. // Check duplicate typedefs.
  2783. typedef long *long_ptr;
  2784. typedef long int *long_ptr;
  2785. typedef long_ptr long_ptr;
  2786. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2787. struct anonymous
  2788. {
  2789. union {
  2790. struct { int i; int j; };
  2791. struct { int k; long int l; } w;
  2792. };
  2793. int m;
  2794. } v1;
  2795. '
  2796. # Test code for whether the C compiler supports C11 (body of main).
  2797. ac_c_conftest_c11_main='
  2798. _Static_assert ((offsetof (struct anonymous, i)
  2799. == offsetof (struct anonymous, w.k)),
  2800. "Anonymous union alignment botch");
  2801. v1.i = 2;
  2802. v1.w.k = 5;
  2803. ok |= v1.i != 5;
  2804. '
  2805. # Test code for whether the C compiler supports C11 (complete).
  2806. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2807. ${ac_c_conftest_c99_globals}
  2808. ${ac_c_conftest_c11_globals}
  2809. int
  2810. main (int argc, char **argv)
  2811. {
  2812. int ok = 0;
  2813. ${ac_c_conftest_c89_main}
  2814. ${ac_c_conftest_c99_main}
  2815. ${ac_c_conftest_c11_main}
  2816. return ok;
  2817. }
  2818. "
  2819. # Test code for whether the C compiler supports C99 (complete).
  2820. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2821. ${ac_c_conftest_c99_globals}
  2822. int
  2823. main (int argc, char **argv)
  2824. {
  2825. int ok = 0;
  2826. ${ac_c_conftest_c89_main}
  2827. ${ac_c_conftest_c99_main}
  2828. return ok;
  2829. }
  2830. "
  2831. # Test code for whether the C compiler supports C89 (complete).
  2832. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2833. int
  2834. main (int argc, char **argv)
  2835. {
  2836. int ok = 0;
  2837. ${ac_c_conftest_c89_main}
  2838. return ok;
  2839. }
  2840. "
  2841. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2842. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2843. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2844. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2845. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2846. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2847. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2848. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2849. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2850. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2851. ac_cxx_conftest_cxx98_globals='
  2852. // Does the compiler advertise C++98 conformance?
  2853. #if !defined __cplusplus || __cplusplus < 199711L
  2854. # error "Compiler does not advertise C++98 conformance"
  2855. #endif
  2856. // These inclusions are to reject old compilers that
  2857. // lack the unsuffixed header files.
  2858. #include <cstdlib>
  2859. #include <exception>
  2860. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2861. extern void assert (int);
  2862. namespace std {
  2863. extern int strcmp (const char *, const char *);
  2864. }
  2865. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2866. using std::exception;
  2867. using std::strcmp;
  2868. namespace {
  2869. void test_exception_syntax()
  2870. {
  2871. try {
  2872. throw "test";
  2873. } catch (const char *s) {
  2874. // Extra parentheses suppress a warning when building autoconf itself,
  2875. // due to lint rules shared with more typical C programs.
  2876. assert (!(strcmp) (s, "test"));
  2877. }
  2878. }
  2879. template <typename T> struct test_template
  2880. {
  2881. T const val;
  2882. explicit test_template(T t) : val(t) {}
  2883. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2884. };
  2885. } // anonymous namespace
  2886. '
  2887. # Test code for whether the C++ compiler supports C++98 (body of main)
  2888. ac_cxx_conftest_cxx98_main='
  2889. assert (argc);
  2890. assert (! argv[0]);
  2891. {
  2892. test_exception_syntax ();
  2893. test_template<double> tt (2.0);
  2894. assert (tt.add (4) == 6.0);
  2895. assert (true && !false);
  2896. }
  2897. '
  2898. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2899. ac_cxx_conftest_cxx11_globals='
  2900. // Does the compiler advertise C++ 2011 conformance?
  2901. #if !defined __cplusplus || __cplusplus < 201103L
  2902. # error "Compiler does not advertise C++11 conformance"
  2903. #endif
  2904. namespace cxx11test
  2905. {
  2906. constexpr int get_val() { return 20; }
  2907. struct testinit
  2908. {
  2909. int i;
  2910. double d;
  2911. };
  2912. class delegate
  2913. {
  2914. public:
  2915. delegate(int n) : n(n) {}
  2916. delegate(): delegate(2354) {}
  2917. virtual int getval() { return this->n; };
  2918. protected:
  2919. int n;
  2920. };
  2921. class overridden : public delegate
  2922. {
  2923. public:
  2924. overridden(int n): delegate(n) {}
  2925. virtual int getval() override final { return this->n * 2; }
  2926. };
  2927. class nocopy
  2928. {
  2929. public:
  2930. nocopy(int i): i(i) {}
  2931. nocopy() = default;
  2932. nocopy(const nocopy&) = delete;
  2933. nocopy & operator=(const nocopy&) = delete;
  2934. private:
  2935. int i;
  2936. };
  2937. // for testing lambda expressions
  2938. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2939. {
  2940. return f(v);
  2941. }
  2942. // for testing variadic templates and trailing return types
  2943. template <typename V> auto sum(V first) -> V
  2944. {
  2945. return first;
  2946. }
  2947. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2948. {
  2949. return first + sum(rest...);
  2950. }
  2951. }
  2952. '
  2953. # Test code for whether the C++ compiler supports C++11 (body of main)
  2954. ac_cxx_conftest_cxx11_main='
  2955. {
  2956. // Test auto and decltype
  2957. auto a1 = 6538;
  2958. auto a2 = 48573953.4;
  2959. auto a3 = "String literal";
  2960. int total = 0;
  2961. for (auto i = a3; *i; ++i) { total += *i; }
  2962. decltype(a2) a4 = 34895.034;
  2963. }
  2964. {
  2965. // Test constexpr
  2966. short sa[cxx11test::get_val()] = { 0 };
  2967. }
  2968. {
  2969. // Test initializer lists
  2970. cxx11test::testinit il = { 4323, 435234.23544 };
  2971. }
  2972. {
  2973. // Test range-based for
  2974. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2975. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2976. for (auto &x : array) { x += 23; }
  2977. }
  2978. {
  2979. // Test lambda expressions
  2980. using cxx11test::eval;
  2981. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2982. double d = 2.0;
  2983. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2984. assert (d == 5.0);
  2985. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2986. assert (d == 5.0);
  2987. }
  2988. {
  2989. // Test use of variadic templates
  2990. using cxx11test::sum;
  2991. auto a = sum(1);
  2992. auto b = sum(1, 2);
  2993. auto c = sum(1.0, 2.0, 3.0);
  2994. }
  2995. {
  2996. // Test constructor delegation
  2997. cxx11test::delegate d1;
  2998. cxx11test::delegate d2();
  2999. cxx11test::delegate d3(45);
  3000. }
  3001. {
  3002. // Test override and final
  3003. cxx11test::overridden o1(55464);
  3004. }
  3005. {
  3006. // Test nullptr
  3007. char *c = nullptr;
  3008. }
  3009. {
  3010. // Test template brackets
  3011. test_template<::test_template<int>> v(test_template<int>(12));
  3012. }
  3013. {
  3014. // Unicode literals
  3015. char const *utf8 = u8"UTF-8 string \u2500";
  3016. char16_t const *utf16 = u"UTF-8 string \u2500";
  3017. char32_t const *utf32 = U"UTF-32 string \u2500";
  3018. }
  3019. '
  3020. # Test code for whether the C compiler supports C++11 (complete).
  3021. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3022. ${ac_cxx_conftest_cxx11_globals}
  3023. int
  3024. main (int argc, char **argv)
  3025. {
  3026. int ok = 0;
  3027. ${ac_cxx_conftest_cxx98_main}
  3028. ${ac_cxx_conftest_cxx11_main}
  3029. return ok;
  3030. }
  3031. "
  3032. # Test code for whether the C compiler supports C++98 (complete).
  3033. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3034. int
  3035. main (int argc, char **argv)
  3036. {
  3037. int ok = 0;
  3038. ${ac_cxx_conftest_cxx98_main}
  3039. return ok;
  3040. }
  3041. "
  3042. # Auxiliary files required by this configure script.
  3043. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3044. # Locations in which to look for auxiliary files.
  3045. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3046. # Search for a directory containing all of the required auxiliary files,
  3047. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3048. # If we don't find one directory that contains all the files we need,
  3049. # we report the set of missing files from the *first* directory in
  3050. # $ac_aux_dir_candidates and give up.
  3051. ac_missing_aux_files=""
  3052. ac_first_candidate=:
  3053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3055. as_found=false
  3056. for as_dir in $ac_aux_dir_candidates
  3057. do
  3058. IFS=$as_save_IFS
  3059. case $as_dir in #(((
  3060. '') as_dir=./ ;;
  3061. */) ;;
  3062. *) as_dir=$as_dir/ ;;
  3063. esac
  3064. as_found=:
  3065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3066. ac_aux_dir_found=yes
  3067. ac_install_sh=
  3068. for ac_aux in $ac_aux_files
  3069. do
  3070. # As a special case, if "install-sh" is required, that requirement
  3071. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3072. # and $ac_install_sh is set appropriately for whichever one is found.
  3073. if test x"$ac_aux" = x"install-sh"
  3074. then
  3075. if test -f "${as_dir}install-sh"; then
  3076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3077. ac_install_sh="${as_dir}install-sh -c"
  3078. elif test -f "${as_dir}install.sh"; then
  3079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3080. ac_install_sh="${as_dir}install.sh -c"
  3081. elif test -f "${as_dir}shtool"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3083. ac_install_sh="${as_dir}shtool install -c"
  3084. else
  3085. ac_aux_dir_found=no
  3086. if $ac_first_candidate; then
  3087. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3088. else
  3089. break
  3090. fi
  3091. fi
  3092. else
  3093. if test -f "${as_dir}${ac_aux}"; then
  3094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3095. else
  3096. ac_aux_dir_found=no
  3097. if $ac_first_candidate; then
  3098. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3099. else
  3100. break
  3101. fi
  3102. fi
  3103. fi
  3104. done
  3105. if test "$ac_aux_dir_found" = yes; then
  3106. ac_aux_dir="$as_dir"
  3107. break
  3108. fi
  3109. ac_first_candidate=false
  3110. as_found=false
  3111. done
  3112. IFS=$as_save_IFS
  3113. if $as_found
  3114. then :
  3115. else $as_nop
  3116. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3117. fi
  3118. # These three variables are undocumented and unsupported,
  3119. # and are intended to be withdrawn in a future Autoconf release.
  3120. # They can cause serious problems if a builder's source tree is in a directory
  3121. # whose full name contains unusual characters.
  3122. if test -f "${ac_aux_dir}config.guess"; then
  3123. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3124. fi
  3125. if test -f "${ac_aux_dir}config.sub"; then
  3126. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3127. fi
  3128. if test -f "$ac_aux_dir/configure"; then
  3129. ac_configure="$SHELL ${ac_aux_dir}configure"
  3130. fi
  3131. # Check that the precious variables saved in the cache have kept the same
  3132. # value.
  3133. ac_cache_corrupted=false
  3134. for ac_var in $ac_precious_vars; do
  3135. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3136. eval ac_new_set=\$ac_env_${ac_var}_set
  3137. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3138. eval ac_new_val=\$ac_env_${ac_var}_value
  3139. case $ac_old_set,$ac_new_set in
  3140. set,)
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3142. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3143. ac_cache_corrupted=: ;;
  3144. ,set)
  3145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3146. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3147. ac_cache_corrupted=: ;;
  3148. ,);;
  3149. *)
  3150. if test "x$ac_old_val" != "x$ac_new_val"; then
  3151. # differences in whitespace do not lead to failure.
  3152. ac_old_val_w=`echo x $ac_old_val`
  3153. ac_new_val_w=`echo x $ac_new_val`
  3154. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3156. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3157. ac_cache_corrupted=:
  3158. else
  3159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3160. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3161. eval $ac_var=\$ac_old_val
  3162. fi
  3163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3164. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3166. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3167. fi;;
  3168. esac
  3169. # Pass precious variables to config.status.
  3170. if test "$ac_new_set" = set; then
  3171. case $ac_new_val in
  3172. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3173. *) ac_arg=$ac_var=$ac_new_val ;;
  3174. esac
  3175. case " $ac_configure_args " in
  3176. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3177. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3178. esac
  3179. fi
  3180. done
  3181. if $ac_cache_corrupted; then
  3182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3185. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3186. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3187. and start over" "$LINENO" 5
  3188. fi
  3189. ## -------------------- ##
  3190. ## Main body of script. ##
  3191. ## -------------------- ##
  3192. ac_ext=c
  3193. ac_cpp='$CPP $CPPFLAGS'
  3194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3197. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3198. orig_CFLAGS="$CFLAGS"
  3199. # See docs/release_checklist.md
  3200. SDL_MAJOR_VERSION=2
  3201. SDL_MINOR_VERSION=30
  3202. SDL_MICRO_VERSION=2
  3203. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3204. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3205. case "$SDL_MINOR_VERSION" in #(
  3206. *[02468]) :
  3207. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3208. *) :
  3209. SDL_INTERFACE_AGE=0 ;; #(
  3210. *) :
  3211. ;;
  3212. esac
  3213. # libtool versioning
  3214. case `pwd` in
  3215. *\ * | *\ *)
  3216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3217. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3218. esac
  3219. macro_version='2.4.6'
  3220. macro_revision='2.4.6'
  3221. ltmain=$ac_aux_dir/ltmain.sh
  3222. # Make sure we can run config.sub.
  3223. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3224. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3226. printf %s "checking build system type... " >&6; }
  3227. if test ${ac_cv_build+y}
  3228. then :
  3229. printf %s "(cached) " >&6
  3230. else $as_nop
  3231. ac_build_alias=$build_alias
  3232. test "x$ac_build_alias" = x &&
  3233. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3234. test "x$ac_build_alias" = x &&
  3235. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3236. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3237. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3238. fi
  3239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3240. printf "%s\n" "$ac_cv_build" >&6; }
  3241. case $ac_cv_build in
  3242. *-*-*) ;;
  3243. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3244. esac
  3245. build=$ac_cv_build
  3246. ac_save_IFS=$IFS; IFS='-'
  3247. set x $ac_cv_build
  3248. shift
  3249. build_cpu=$1
  3250. build_vendor=$2
  3251. shift; shift
  3252. # Remember, the first character of IFS is used to create $*,
  3253. # except with old shells:
  3254. build_os=$*
  3255. IFS=$ac_save_IFS
  3256. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3258. printf %s "checking host system type... " >&6; }
  3259. if test ${ac_cv_host+y}
  3260. then :
  3261. printf %s "(cached) " >&6
  3262. else $as_nop
  3263. if test "x$host_alias" = x; then
  3264. ac_cv_host=$ac_cv_build
  3265. else
  3266. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3267. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3268. fi
  3269. fi
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3271. printf "%s\n" "$ac_cv_host" >&6; }
  3272. case $ac_cv_host in
  3273. *-*-*) ;;
  3274. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3275. esac
  3276. host=$ac_cv_host
  3277. ac_save_IFS=$IFS; IFS='-'
  3278. set x $ac_cv_host
  3279. shift
  3280. host_cpu=$1
  3281. host_vendor=$2
  3282. shift; shift
  3283. # Remember, the first character of IFS is used to create $*,
  3284. # except with old shells:
  3285. host_os=$*
  3286. IFS=$ac_save_IFS
  3287. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3288. # Backslashify metacharacters that are still active within
  3289. # double-quoted strings.
  3290. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3291. # Same as above, but do not quote variable references.
  3292. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3293. # Sed substitution to delay expansion of an escaped shell variable in a
  3294. # double_quote_subst'ed string.
  3295. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3296. # Sed substitution to delay expansion of an escaped single quote.
  3297. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3298. # Sed substitution to avoid accidental globbing in evaled expressions
  3299. no_glob_subst='s/\*/\\\*/g'
  3300. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3301. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3302. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3304. printf %s "checking how to print strings... " >&6; }
  3305. # Test print first, because it will be a builtin if present.
  3306. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3307. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3308. ECHO='print -r --'
  3309. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3310. ECHO='printf %s\n'
  3311. else
  3312. # Use this function as a fallback that always works.
  3313. func_fallback_echo ()
  3314. {
  3315. eval 'cat <<_LTECHO_EOF
  3316. $1
  3317. _LTECHO_EOF'
  3318. }
  3319. ECHO='func_fallback_echo'
  3320. fi
  3321. # func_echo_all arg...
  3322. # Invoke $ECHO with all args, space-separated.
  3323. func_echo_all ()
  3324. {
  3325. $ECHO ""
  3326. }
  3327. case $ECHO in
  3328. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3329. printf "%s\n" "printf" >&6; } ;;
  3330. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3331. printf "%s\n" "print -r" >&6; } ;;
  3332. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3333. printf "%s\n" "cat" >&6; } ;;
  3334. esac
  3335. ac_ext=c
  3336. ac_cpp='$CPP $CPPFLAGS'
  3337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3340. if test -n "$ac_tool_prefix"; then
  3341. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3342. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. printf %s "checking for $ac_word... " >&6; }
  3345. if test ${ac_cv_prog_CC+y}
  3346. then :
  3347. printf %s "(cached) " >&6
  3348. else $as_nop
  3349. if test -n "$CC"; then
  3350. ac_cv_prog_CC="$CC" # Let the user override the test.
  3351. else
  3352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3353. for as_dir in $PATH
  3354. do
  3355. IFS=$as_save_IFS
  3356. case $as_dir in #(((
  3357. '') as_dir=./ ;;
  3358. */) ;;
  3359. *) as_dir=$as_dir/ ;;
  3360. esac
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3363. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. CC=$ac_cv_prog_CC
  3373. if test -n "$CC"; then
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3375. printf "%s\n" "$CC" >&6; }
  3376. else
  3377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. printf "%s\n" "no" >&6; }
  3379. fi
  3380. fi
  3381. if test -z "$ac_cv_prog_CC"; then
  3382. ac_ct_CC=$CC
  3383. # Extract the first word of "gcc", so it can be a program name with args.
  3384. set dummy gcc; ac_word=$2
  3385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3386. printf %s "checking for $ac_word... " >&6; }
  3387. if test ${ac_cv_prog_ac_ct_CC+y}
  3388. then :
  3389. printf %s "(cached) " >&6
  3390. else $as_nop
  3391. if test -n "$ac_ct_CC"; then
  3392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3393. else
  3394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3395. for as_dir in $PATH
  3396. do
  3397. IFS=$as_save_IFS
  3398. case $as_dir in #(((
  3399. '') as_dir=./ ;;
  3400. */) ;;
  3401. *) as_dir=$as_dir/ ;;
  3402. esac
  3403. for ac_exec_ext in '' $ac_executable_extensions; do
  3404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3405. ac_cv_prog_ac_ct_CC="gcc"
  3406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3407. break 2
  3408. fi
  3409. done
  3410. done
  3411. IFS=$as_save_IFS
  3412. fi
  3413. fi
  3414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3415. if test -n "$ac_ct_CC"; then
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3417. printf "%s\n" "$ac_ct_CC" >&6; }
  3418. else
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. printf "%s\n" "no" >&6; }
  3421. fi
  3422. if test "x$ac_ct_CC" = x; then
  3423. CC=""
  3424. else
  3425. case $cross_compiling:$ac_tool_warned in
  3426. yes:)
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3429. ac_tool_warned=yes ;;
  3430. esac
  3431. CC=$ac_ct_CC
  3432. fi
  3433. else
  3434. CC="$ac_cv_prog_CC"
  3435. fi
  3436. if test -z "$CC"; then
  3437. if test -n "$ac_tool_prefix"; then
  3438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3441. printf %s "checking for $ac_word... " >&6; }
  3442. if test ${ac_cv_prog_CC+y}
  3443. then :
  3444. printf %s "(cached) " >&6
  3445. else $as_nop
  3446. if test -n "$CC"; then
  3447. ac_cv_prog_CC="$CC" # Let the user override the test.
  3448. else
  3449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3450. for as_dir in $PATH
  3451. do
  3452. IFS=$as_save_IFS
  3453. case $as_dir in #(((
  3454. '') as_dir=./ ;;
  3455. */) ;;
  3456. *) as_dir=$as_dir/ ;;
  3457. esac
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3460. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3462. break 2
  3463. fi
  3464. done
  3465. done
  3466. IFS=$as_save_IFS
  3467. fi
  3468. fi
  3469. CC=$ac_cv_prog_CC
  3470. if test -n "$CC"; then
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3472. printf "%s\n" "$CC" >&6; }
  3473. else
  3474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3475. printf "%s\n" "no" >&6; }
  3476. fi
  3477. fi
  3478. fi
  3479. if test -z "$CC"; then
  3480. # Extract the first word of "cc", so it can be a program name with args.
  3481. set dummy cc; ac_word=$2
  3482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3483. printf %s "checking for $ac_word... " >&6; }
  3484. if test ${ac_cv_prog_CC+y}
  3485. then :
  3486. printf %s "(cached) " >&6
  3487. else $as_nop
  3488. if test -n "$CC"; then
  3489. ac_cv_prog_CC="$CC" # Let the user override the test.
  3490. else
  3491. ac_prog_rejected=no
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH
  3494. do
  3495. IFS=$as_save_IFS
  3496. case $as_dir in #(((
  3497. '') as_dir=./ ;;
  3498. */) ;;
  3499. *) as_dir=$as_dir/ ;;
  3500. esac
  3501. for ac_exec_ext in '' $ac_executable_extensions; do
  3502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3503. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3504. ac_prog_rejected=yes
  3505. continue
  3506. fi
  3507. ac_cv_prog_CC="cc"
  3508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. if test $ac_prog_rejected = yes; then
  3515. # We found a bogon in the path, so make sure we never use it.
  3516. set dummy $ac_cv_prog_CC
  3517. shift
  3518. if test $# != 0; then
  3519. # We chose a different compiler from the bogus one.
  3520. # However, it has the same basename, so the bogon will be chosen
  3521. # first if we set CC to just the basename; use the full file name.
  3522. shift
  3523. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3524. fi
  3525. fi
  3526. fi
  3527. fi
  3528. CC=$ac_cv_prog_CC
  3529. if test -n "$CC"; then
  3530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3531. printf "%s\n" "$CC" >&6; }
  3532. else
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3534. printf "%s\n" "no" >&6; }
  3535. fi
  3536. fi
  3537. if test -z "$CC"; then
  3538. if test -n "$ac_tool_prefix"; then
  3539. for ac_prog in cl.exe
  3540. do
  3541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3544. printf %s "checking for $ac_word... " >&6; }
  3545. if test ${ac_cv_prog_CC+y}
  3546. then :
  3547. printf %s "(cached) " >&6
  3548. else $as_nop
  3549. if test -n "$CC"; then
  3550. ac_cv_prog_CC="$CC" # Let the user override the test.
  3551. else
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH
  3554. do
  3555. IFS=$as_save_IFS
  3556. case $as_dir in #(((
  3557. '') as_dir=./ ;;
  3558. */) ;;
  3559. *) as_dir=$as_dir/ ;;
  3560. esac
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3565. break 2
  3566. fi
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. fi
  3571. fi
  3572. CC=$ac_cv_prog_CC
  3573. if test -n "$CC"; then
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3575. printf "%s\n" "$CC" >&6; }
  3576. else
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3578. printf "%s\n" "no" >&6; }
  3579. fi
  3580. test -n "$CC" && break
  3581. done
  3582. fi
  3583. if test -z "$CC"; then
  3584. ac_ct_CC=$CC
  3585. for ac_prog in cl.exe
  3586. do
  3587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3588. set dummy $ac_prog; ac_word=$2
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. printf %s "checking for $ac_word... " >&6; }
  3591. if test ${ac_cv_prog_ac_ct_CC+y}
  3592. then :
  3593. printf %s "(cached) " >&6
  3594. else $as_nop
  3595. if test -n "$ac_ct_CC"; then
  3596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601. IFS=$as_save_IFS
  3602. case $as_dir in #(((
  3603. '') as_dir=./ ;;
  3604. */) ;;
  3605. *) as_dir=$as_dir/ ;;
  3606. esac
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3609. ac_cv_prog_ac_ct_CC="$ac_prog"
  3610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3611. break 2
  3612. fi
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. fi
  3617. fi
  3618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3619. if test -n "$ac_ct_CC"; then
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3621. printf "%s\n" "$ac_ct_CC" >&6; }
  3622. else
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. printf "%s\n" "no" >&6; }
  3625. fi
  3626. test -n "$ac_ct_CC" && break
  3627. done
  3628. if test "x$ac_ct_CC" = x; then
  3629. CC=""
  3630. else
  3631. case $cross_compiling:$ac_tool_warned in
  3632. yes:)
  3633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3634. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3635. ac_tool_warned=yes ;;
  3636. esac
  3637. CC=$ac_ct_CC
  3638. fi
  3639. fi
  3640. fi
  3641. if test -z "$CC"; then
  3642. if test -n "$ac_tool_prefix"; then
  3643. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3644. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3646. printf %s "checking for $ac_word... " >&6; }
  3647. if test ${ac_cv_prog_CC+y}
  3648. then :
  3649. printf %s "(cached) " >&6
  3650. else $as_nop
  3651. if test -n "$CC"; then
  3652. ac_cv_prog_CC="$CC" # Let the user override the test.
  3653. else
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. case $as_dir in #(((
  3659. '') as_dir=./ ;;
  3660. */) ;;
  3661. *) as_dir=$as_dir/ ;;
  3662. esac
  3663. for ac_exec_ext in '' $ac_executable_extensions; do
  3664. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3665. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3667. break 2
  3668. fi
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. fi
  3673. fi
  3674. CC=$ac_cv_prog_CC
  3675. if test -n "$CC"; then
  3676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3677. printf "%s\n" "$CC" >&6; }
  3678. else
  3679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3680. printf "%s\n" "no" >&6; }
  3681. fi
  3682. fi
  3683. if test -z "$ac_cv_prog_CC"; then
  3684. ac_ct_CC=$CC
  3685. # Extract the first word of "clang", so it can be a program name with args.
  3686. set dummy clang; ac_word=$2
  3687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. printf %s "checking for $ac_word... " >&6; }
  3689. if test ${ac_cv_prog_ac_ct_CC+y}
  3690. then :
  3691. printf %s "(cached) " >&6
  3692. else $as_nop
  3693. if test -n "$ac_ct_CC"; then
  3694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3695. else
  3696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3697. for as_dir in $PATH
  3698. do
  3699. IFS=$as_save_IFS
  3700. case $as_dir in #(((
  3701. '') as_dir=./ ;;
  3702. */) ;;
  3703. *) as_dir=$as_dir/ ;;
  3704. esac
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3707. ac_cv_prog_ac_ct_CC="clang"
  3708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3709. break 2
  3710. fi
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. fi
  3715. fi
  3716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3717. if test -n "$ac_ct_CC"; then
  3718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3719. printf "%s\n" "$ac_ct_CC" >&6; }
  3720. else
  3721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3722. printf "%s\n" "no" >&6; }
  3723. fi
  3724. if test "x$ac_ct_CC" = x; then
  3725. CC=""
  3726. else
  3727. case $cross_compiling:$ac_tool_warned in
  3728. yes:)
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3731. ac_tool_warned=yes ;;
  3732. esac
  3733. CC=$ac_ct_CC
  3734. fi
  3735. else
  3736. CC="$ac_cv_prog_CC"
  3737. fi
  3738. fi
  3739. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3740. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3741. as_fn_error $? "no acceptable C compiler found in \$PATH
  3742. See \`config.log' for more details" "$LINENO" 5; }
  3743. # Provide some information about the compiler.
  3744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3745. set X $ac_compile
  3746. ac_compiler=$2
  3747. for ac_option in --version -v -V -qversion -version; do
  3748. { { ac_try="$ac_compiler $ac_option >&5"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3754. printf "%s\n" "$ac_try_echo"; } >&5
  3755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3756. ac_status=$?
  3757. if test -s conftest.err; then
  3758. sed '10a\
  3759. ... rest of stderr output deleted ...
  3760. 10q' conftest.err >conftest.er1
  3761. cat conftest.er1 >&5
  3762. fi
  3763. rm -f conftest.er1 conftest.err
  3764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }
  3766. done
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int
  3770. main (void)
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. ac_clean_files_save=$ac_clean_files
  3777. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3778. # Try to create an executable without -o first, disregard a.out.
  3779. # It will help us diagnose broken compilers, and finding out an intuition
  3780. # of exeext.
  3781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3782. printf %s "checking whether the C compiler works... " >&6; }
  3783. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3784. # The possible output files:
  3785. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3786. ac_rmfiles=
  3787. for ac_file in $ac_files
  3788. do
  3789. case $ac_file in
  3790. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3791. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3792. esac
  3793. done
  3794. rm -f $ac_rmfiles
  3795. if { { ac_try="$ac_link_default"
  3796. case "(($ac_try" in
  3797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3798. *) ac_try_echo=$ac_try;;
  3799. esac
  3800. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3801. printf "%s\n" "$ac_try_echo"; } >&5
  3802. (eval "$ac_link_default") 2>&5
  3803. ac_status=$?
  3804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3805. test $ac_status = 0; }
  3806. then :
  3807. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3808. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3809. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3810. # so that the user can short-circuit this test for compilers unknown to
  3811. # Autoconf.
  3812. for ac_file in $ac_files ''
  3813. do
  3814. test -f "$ac_file" || continue
  3815. case $ac_file in
  3816. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3817. ;;
  3818. [ab].out )
  3819. # We found the default executable, but exeext='' is most
  3820. # certainly right.
  3821. break;;
  3822. *.* )
  3823. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3824. then :; else
  3825. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3826. fi
  3827. # We set ac_cv_exeext here because the later test for it is not
  3828. # safe: cross compilers may not add the suffix if given an `-o'
  3829. # argument, so we may need to know it at that point already.
  3830. # Even if this section looks crufty: it has the advantage of
  3831. # actually working.
  3832. break;;
  3833. * )
  3834. break;;
  3835. esac
  3836. done
  3837. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3838. else $as_nop
  3839. ac_file=''
  3840. fi
  3841. if test -z "$ac_file"
  3842. then :
  3843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. printf "%s\n" "no" >&6; }
  3845. printf "%s\n" "$as_me: failed program was:" >&5
  3846. sed 's/^/| /' conftest.$ac_ext >&5
  3847. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3848. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3849. as_fn_error 77 "C compiler cannot create executables
  3850. See \`config.log' for more details" "$LINENO" 5; }
  3851. else $as_nop
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3853. printf "%s\n" "yes" >&6; }
  3854. fi
  3855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3856. printf %s "checking for C compiler default output file name... " >&6; }
  3857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3858. printf "%s\n" "$ac_file" >&6; }
  3859. ac_exeext=$ac_cv_exeext
  3860. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3861. ac_clean_files=$ac_clean_files_save
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3863. printf %s "checking for suffix of executables... " >&6; }
  3864. if { { ac_try="$ac_link"
  3865. case "(($ac_try" in
  3866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3867. *) ac_try_echo=$ac_try;;
  3868. esac
  3869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3870. printf "%s\n" "$ac_try_echo"; } >&5
  3871. (eval "$ac_link") 2>&5
  3872. ac_status=$?
  3873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3874. test $ac_status = 0; }
  3875. then :
  3876. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3877. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3878. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3879. # `rm'.
  3880. for ac_file in conftest.exe conftest conftest.*; do
  3881. test -f "$ac_file" || continue
  3882. case $ac_file in
  3883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3884. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3885. break;;
  3886. * ) break;;
  3887. esac
  3888. done
  3889. else $as_nop
  3890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3891. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3892. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3893. See \`config.log' for more details" "$LINENO" 5; }
  3894. fi
  3895. rm -f conftest conftest$ac_cv_exeext
  3896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3897. printf "%s\n" "$ac_cv_exeext" >&6; }
  3898. rm -f conftest.$ac_ext
  3899. EXEEXT=$ac_cv_exeext
  3900. ac_exeext=$EXEEXT
  3901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3902. /* end confdefs.h. */
  3903. #include <stdio.h>
  3904. int
  3905. main (void)
  3906. {
  3907. FILE *f = fopen ("conftest.out", "w");
  3908. return ferror (f) || fclose (f) != 0;
  3909. ;
  3910. return 0;
  3911. }
  3912. _ACEOF
  3913. ac_clean_files="$ac_clean_files conftest.out"
  3914. # Check that the compiler produces executables we can run. If not, either
  3915. # the compiler is broken, or we cross compile.
  3916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3917. printf %s "checking whether we are cross compiling... " >&6; }
  3918. if test "$cross_compiling" != yes; then
  3919. { { ac_try="$ac_link"
  3920. case "(($ac_try" in
  3921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3922. *) ac_try_echo=$ac_try;;
  3923. esac
  3924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3925. printf "%s\n" "$ac_try_echo"; } >&5
  3926. (eval "$ac_link") 2>&5
  3927. ac_status=$?
  3928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3929. test $ac_status = 0; }
  3930. if { ac_try='./conftest$ac_cv_exeext'
  3931. { { case "(($ac_try" in
  3932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3933. *) ac_try_echo=$ac_try;;
  3934. esac
  3935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3936. printf "%s\n" "$ac_try_echo"; } >&5
  3937. (eval "$ac_try") 2>&5
  3938. ac_status=$?
  3939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3940. test $ac_status = 0; }; }; then
  3941. cross_compiling=no
  3942. else
  3943. if test "$cross_compiling" = maybe; then
  3944. cross_compiling=yes
  3945. else
  3946. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3947. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3948. as_fn_error 77 "cannot run C compiled programs.
  3949. If you meant to cross compile, use \`--host'.
  3950. See \`config.log' for more details" "$LINENO" 5; }
  3951. fi
  3952. fi
  3953. fi
  3954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3955. printf "%s\n" "$cross_compiling" >&6; }
  3956. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3957. ac_clean_files=$ac_clean_files_save
  3958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3959. printf %s "checking for suffix of object files... " >&6; }
  3960. if test ${ac_cv_objext+y}
  3961. then :
  3962. printf %s "(cached) " >&6
  3963. else $as_nop
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. int
  3967. main (void)
  3968. {
  3969. ;
  3970. return 0;
  3971. }
  3972. _ACEOF
  3973. rm -f conftest.o conftest.obj
  3974. if { { ac_try="$ac_compile"
  3975. case "(($ac_try" in
  3976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3977. *) ac_try_echo=$ac_try;;
  3978. esac
  3979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3980. printf "%s\n" "$ac_try_echo"; } >&5
  3981. (eval "$ac_compile") 2>&5
  3982. ac_status=$?
  3983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3984. test $ac_status = 0; }
  3985. then :
  3986. for ac_file in conftest.o conftest.obj conftest.*; do
  3987. test -f "$ac_file" || continue;
  3988. case $ac_file in
  3989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3990. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3991. break;;
  3992. esac
  3993. done
  3994. else $as_nop
  3995. printf "%s\n" "$as_me: failed program was:" >&5
  3996. sed 's/^/| /' conftest.$ac_ext >&5
  3997. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3998. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3999. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4000. See \`config.log' for more details" "$LINENO" 5; }
  4001. fi
  4002. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4003. fi
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4005. printf "%s\n" "$ac_cv_objext" >&6; }
  4006. OBJEXT=$ac_cv_objext
  4007. ac_objext=$OBJEXT
  4008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4009. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4010. if test ${ac_cv_c_compiler_gnu+y}
  4011. then :
  4012. printf %s "(cached) " >&6
  4013. else $as_nop
  4014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4015. /* end confdefs.h. */
  4016. int
  4017. main (void)
  4018. {
  4019. #ifndef __GNUC__
  4020. choke me
  4021. #endif
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. if ac_fn_c_try_compile "$LINENO"
  4027. then :
  4028. ac_compiler_gnu=yes
  4029. else $as_nop
  4030. ac_compiler_gnu=no
  4031. fi
  4032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4033. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4034. fi
  4035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4036. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4038. if test $ac_compiler_gnu = yes; then
  4039. GCC=yes
  4040. else
  4041. GCC=
  4042. fi
  4043. ac_test_CFLAGS=${CFLAGS+y}
  4044. ac_save_CFLAGS=$CFLAGS
  4045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4046. printf %s "checking whether $CC accepts -g... " >&6; }
  4047. if test ${ac_cv_prog_cc_g+y}
  4048. then :
  4049. printf %s "(cached) " >&6
  4050. else $as_nop
  4051. ac_save_c_werror_flag=$ac_c_werror_flag
  4052. ac_c_werror_flag=yes
  4053. ac_cv_prog_cc_g=no
  4054. CFLAGS="-g"
  4055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4056. /* end confdefs.h. */
  4057. int
  4058. main (void)
  4059. {
  4060. ;
  4061. return 0;
  4062. }
  4063. _ACEOF
  4064. if ac_fn_c_try_compile "$LINENO"
  4065. then :
  4066. ac_cv_prog_cc_g=yes
  4067. else $as_nop
  4068. CFLAGS=""
  4069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4070. /* end confdefs.h. */
  4071. int
  4072. main (void)
  4073. {
  4074. ;
  4075. return 0;
  4076. }
  4077. _ACEOF
  4078. if ac_fn_c_try_compile "$LINENO"
  4079. then :
  4080. else $as_nop
  4081. ac_c_werror_flag=$ac_save_c_werror_flag
  4082. CFLAGS="-g"
  4083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4084. /* end confdefs.h. */
  4085. int
  4086. main (void)
  4087. {
  4088. ;
  4089. return 0;
  4090. }
  4091. _ACEOF
  4092. if ac_fn_c_try_compile "$LINENO"
  4093. then :
  4094. ac_cv_prog_cc_g=yes
  4095. fi
  4096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4099. fi
  4100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4101. ac_c_werror_flag=$ac_save_c_werror_flag
  4102. fi
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4104. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4105. if test $ac_test_CFLAGS; then
  4106. CFLAGS=$ac_save_CFLAGS
  4107. elif test $ac_cv_prog_cc_g = yes; then
  4108. if test "$GCC" = yes; then
  4109. CFLAGS="-g -O2"
  4110. else
  4111. CFLAGS="-g"
  4112. fi
  4113. else
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-O2"
  4116. else
  4117. CFLAGS=
  4118. fi
  4119. fi
  4120. ac_prog_cc_stdc=no
  4121. if test x$ac_prog_cc_stdc = xno
  4122. then :
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4124. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4125. if test ${ac_cv_prog_cc_c11+y}
  4126. then :
  4127. printf %s "(cached) " >&6
  4128. else $as_nop
  4129. ac_cv_prog_cc_c11=no
  4130. ac_save_CC=$CC
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. $ac_c_conftest_c11_program
  4134. _ACEOF
  4135. for ac_arg in '' -std=gnu11
  4136. do
  4137. CC="$ac_save_CC $ac_arg"
  4138. if ac_fn_c_try_compile "$LINENO"
  4139. then :
  4140. ac_cv_prog_cc_c11=$ac_arg
  4141. fi
  4142. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4143. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4144. done
  4145. rm -f conftest.$ac_ext
  4146. CC=$ac_save_CC
  4147. fi
  4148. if test "x$ac_cv_prog_cc_c11" = xno
  4149. then :
  4150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4151. printf "%s\n" "unsupported" >&6; }
  4152. else $as_nop
  4153. if test "x$ac_cv_prog_cc_c11" = x
  4154. then :
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4156. printf "%s\n" "none needed" >&6; }
  4157. else $as_nop
  4158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4159. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4160. CC="$CC $ac_cv_prog_cc_c11"
  4161. fi
  4162. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4163. ac_prog_cc_stdc=c11
  4164. fi
  4165. fi
  4166. if test x$ac_prog_cc_stdc = xno
  4167. then :
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4169. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4170. if test ${ac_cv_prog_cc_c99+y}
  4171. then :
  4172. printf %s "(cached) " >&6
  4173. else $as_nop
  4174. ac_cv_prog_cc_c99=no
  4175. ac_save_CC=$CC
  4176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4177. /* end confdefs.h. */
  4178. $ac_c_conftest_c99_program
  4179. _ACEOF
  4180. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4181. do
  4182. CC="$ac_save_CC $ac_arg"
  4183. if ac_fn_c_try_compile "$LINENO"
  4184. then :
  4185. ac_cv_prog_cc_c99=$ac_arg
  4186. fi
  4187. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4188. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4189. done
  4190. rm -f conftest.$ac_ext
  4191. CC=$ac_save_CC
  4192. fi
  4193. if test "x$ac_cv_prog_cc_c99" = xno
  4194. then :
  4195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4196. printf "%s\n" "unsupported" >&6; }
  4197. else $as_nop
  4198. if test "x$ac_cv_prog_cc_c99" = x
  4199. then :
  4200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4201. printf "%s\n" "none needed" >&6; }
  4202. else $as_nop
  4203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4204. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4205. CC="$CC $ac_cv_prog_cc_c99"
  4206. fi
  4207. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4208. ac_prog_cc_stdc=c99
  4209. fi
  4210. fi
  4211. if test x$ac_prog_cc_stdc = xno
  4212. then :
  4213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4214. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4215. if test ${ac_cv_prog_cc_c89+y}
  4216. then :
  4217. printf %s "(cached) " >&6
  4218. else $as_nop
  4219. ac_cv_prog_cc_c89=no
  4220. ac_save_CC=$CC
  4221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4222. /* end confdefs.h. */
  4223. $ac_c_conftest_c89_program
  4224. _ACEOF
  4225. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4226. do
  4227. CC="$ac_save_CC $ac_arg"
  4228. if ac_fn_c_try_compile "$LINENO"
  4229. then :
  4230. ac_cv_prog_cc_c89=$ac_arg
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4233. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4234. done
  4235. rm -f conftest.$ac_ext
  4236. CC=$ac_save_CC
  4237. fi
  4238. if test "x$ac_cv_prog_cc_c89" = xno
  4239. then :
  4240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4241. printf "%s\n" "unsupported" >&6; }
  4242. else $as_nop
  4243. if test "x$ac_cv_prog_cc_c89" = x
  4244. then :
  4245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4246. printf "%s\n" "none needed" >&6; }
  4247. else $as_nop
  4248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4249. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4250. CC="$CC $ac_cv_prog_cc_c89"
  4251. fi
  4252. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4253. ac_prog_cc_stdc=c89
  4254. fi
  4255. fi
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4262. printf %s "checking for a sed that does not truncate output... " >&6; }
  4263. if test ${ac_cv_path_SED+y}
  4264. then :
  4265. printf %s "(cached) " >&6
  4266. else $as_nop
  4267. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4268. for ac_i in 1 2 3 4 5 6 7; do
  4269. ac_script="$ac_script$as_nl$ac_script"
  4270. done
  4271. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4272. { ac_script=; unset ac_script;}
  4273. if test -z "$SED"; then
  4274. ac_path_SED_found=false
  4275. # Loop through the user's path and test for each of PROGNAME-LIST
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. case $as_dir in #(((
  4281. '') as_dir=./ ;;
  4282. */) ;;
  4283. *) as_dir=$as_dir/ ;;
  4284. esac
  4285. for ac_prog in sed gsed
  4286. do
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4289. as_fn_executable_p "$ac_path_SED" || continue
  4290. # Check for GNU ac_path_SED and select it if it is found.
  4291. # Check for GNU $ac_path_SED
  4292. case `"$ac_path_SED" --version 2>&1` in
  4293. *GNU*)
  4294. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4295. *)
  4296. ac_count=0
  4297. printf %s 0123456789 >"conftest.in"
  4298. while :
  4299. do
  4300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4301. mv "conftest.tmp" "conftest.in"
  4302. cp "conftest.in" "conftest.nl"
  4303. printf "%s\n" '' >> "conftest.nl"
  4304. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4307. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4308. # Best one so far, save it but keep looking for a better one
  4309. ac_cv_path_SED="$ac_path_SED"
  4310. ac_path_SED_max=$ac_count
  4311. fi
  4312. # 10*(2^10) chars as input seems more than enough
  4313. test $ac_count -gt 10 && break
  4314. done
  4315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4316. esac
  4317. $ac_path_SED_found && break 3
  4318. done
  4319. done
  4320. done
  4321. IFS=$as_save_IFS
  4322. if test -z "$ac_cv_path_SED"; then
  4323. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4324. fi
  4325. else
  4326. ac_cv_path_SED=$SED
  4327. fi
  4328. fi
  4329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4330. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4331. SED="$ac_cv_path_SED"
  4332. rm -f conftest.sed
  4333. test -z "$SED" && SED=sed
  4334. Xsed="$SED -e 1s/^X//"
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4336. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4337. if test ${ac_cv_path_GREP+y}
  4338. then :
  4339. printf %s "(cached) " >&6
  4340. else $as_nop
  4341. if test -z "$GREP"; then
  4342. ac_path_GREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. case $as_dir in #(((
  4349. '') as_dir=./ ;;
  4350. */) ;;
  4351. *) as_dir=$as_dir/ ;;
  4352. esac
  4353. for ac_prog in grep ggrep
  4354. do
  4355. for ac_exec_ext in '' $ac_executable_extensions; do
  4356. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4357. as_fn_executable_p "$ac_path_GREP" || continue
  4358. # Check for GNU ac_path_GREP and select it if it is found.
  4359. # Check for GNU $ac_path_GREP
  4360. case `"$ac_path_GREP" --version 2>&1` in
  4361. *GNU*)
  4362. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4363. *)
  4364. ac_count=0
  4365. printf %s 0123456789 >"conftest.in"
  4366. while :
  4367. do
  4368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4369. mv "conftest.tmp" "conftest.in"
  4370. cp "conftest.in" "conftest.nl"
  4371. printf "%s\n" 'GREP' >> "conftest.nl"
  4372. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4375. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4376. # Best one so far, save it but keep looking for a better one
  4377. ac_cv_path_GREP="$ac_path_GREP"
  4378. ac_path_GREP_max=$ac_count
  4379. fi
  4380. # 10*(2^10) chars as input seems more than enough
  4381. test $ac_count -gt 10 && break
  4382. done
  4383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4384. esac
  4385. $ac_path_GREP_found && break 3
  4386. done
  4387. done
  4388. done
  4389. IFS=$as_save_IFS
  4390. if test -z "$ac_cv_path_GREP"; then
  4391. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4392. fi
  4393. else
  4394. ac_cv_path_GREP=$GREP
  4395. fi
  4396. fi
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4398. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4399. GREP="$ac_cv_path_GREP"
  4400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4401. printf %s "checking for egrep... " >&6; }
  4402. if test ${ac_cv_path_EGREP+y}
  4403. then :
  4404. printf %s "(cached) " >&6
  4405. else $as_nop
  4406. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4407. then ac_cv_path_EGREP="$GREP -E"
  4408. else
  4409. if test -z "$EGREP"; then
  4410. ac_path_EGREP_found=false
  4411. # Loop through the user's path and test for each of PROGNAME-LIST
  4412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4413. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4414. do
  4415. IFS=$as_save_IFS
  4416. case $as_dir in #(((
  4417. '') as_dir=./ ;;
  4418. */) ;;
  4419. *) as_dir=$as_dir/ ;;
  4420. esac
  4421. for ac_prog in egrep
  4422. do
  4423. for ac_exec_ext in '' $ac_executable_extensions; do
  4424. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4425. as_fn_executable_p "$ac_path_EGREP" || continue
  4426. # Check for GNU ac_path_EGREP and select it if it is found.
  4427. # Check for GNU $ac_path_EGREP
  4428. case `"$ac_path_EGREP" --version 2>&1` in
  4429. *GNU*)
  4430. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4431. *)
  4432. ac_count=0
  4433. printf %s 0123456789 >"conftest.in"
  4434. while :
  4435. do
  4436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4437. mv "conftest.tmp" "conftest.in"
  4438. cp "conftest.in" "conftest.nl"
  4439. printf "%s\n" 'EGREP' >> "conftest.nl"
  4440. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4442. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4443. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4444. # Best one so far, save it but keep looking for a better one
  4445. ac_cv_path_EGREP="$ac_path_EGREP"
  4446. ac_path_EGREP_max=$ac_count
  4447. fi
  4448. # 10*(2^10) chars as input seems more than enough
  4449. test $ac_count -gt 10 && break
  4450. done
  4451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4452. esac
  4453. $ac_path_EGREP_found && break 3
  4454. done
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. if test -z "$ac_cv_path_EGREP"; then
  4459. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4460. fi
  4461. else
  4462. ac_cv_path_EGREP=$EGREP
  4463. fi
  4464. fi
  4465. fi
  4466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4467. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4468. EGREP="$ac_cv_path_EGREP"
  4469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4470. printf %s "checking for fgrep... " >&6; }
  4471. if test ${ac_cv_path_FGREP+y}
  4472. then :
  4473. printf %s "(cached) " >&6
  4474. else $as_nop
  4475. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4476. then ac_cv_path_FGREP="$GREP -F"
  4477. else
  4478. if test -z "$FGREP"; then
  4479. ac_path_FGREP_found=false
  4480. # Loop through the user's path and test for each of PROGNAME-LIST
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4483. do
  4484. IFS=$as_save_IFS
  4485. case $as_dir in #(((
  4486. '') as_dir=./ ;;
  4487. */) ;;
  4488. *) as_dir=$as_dir/ ;;
  4489. esac
  4490. for ac_prog in fgrep
  4491. do
  4492. for ac_exec_ext in '' $ac_executable_extensions; do
  4493. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4494. as_fn_executable_p "$ac_path_FGREP" || continue
  4495. # Check for GNU ac_path_FGREP and select it if it is found.
  4496. # Check for GNU $ac_path_FGREP
  4497. case `"$ac_path_FGREP" --version 2>&1` in
  4498. *GNU*)
  4499. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4500. *)
  4501. ac_count=0
  4502. printf %s 0123456789 >"conftest.in"
  4503. while :
  4504. do
  4505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4506. mv "conftest.tmp" "conftest.in"
  4507. cp "conftest.in" "conftest.nl"
  4508. printf "%s\n" 'FGREP' >> "conftest.nl"
  4509. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4512. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4513. # Best one so far, save it but keep looking for a better one
  4514. ac_cv_path_FGREP="$ac_path_FGREP"
  4515. ac_path_FGREP_max=$ac_count
  4516. fi
  4517. # 10*(2^10) chars as input seems more than enough
  4518. test $ac_count -gt 10 && break
  4519. done
  4520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4521. esac
  4522. $ac_path_FGREP_found && break 3
  4523. done
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. if test -z "$ac_cv_path_FGREP"; then
  4528. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4529. fi
  4530. else
  4531. ac_cv_path_FGREP=$FGREP
  4532. fi
  4533. fi
  4534. fi
  4535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4536. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4537. FGREP="$ac_cv_path_FGREP"
  4538. test -z "$GREP" && GREP=grep
  4539. # Check whether --with-gnu-ld was given.
  4540. if test ${with_gnu_ld+y}
  4541. then :
  4542. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4543. else $as_nop
  4544. with_gnu_ld=no
  4545. fi
  4546. ac_prog=ld
  4547. if test yes = "$GCC"; then
  4548. # Check if gcc -print-prog-name=ld gives a path.
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4550. printf %s "checking for ld used by $CC... " >&6; }
  4551. case $host in
  4552. *-*-mingw* | *-*-windows*)
  4553. # gcc leaves a trailing carriage return, which upsets mingw
  4554. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4555. *)
  4556. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4557. esac
  4558. case $ac_prog in
  4559. # Accept absolute paths.
  4560. [\\/]* | ?:[\\/]*)
  4561. re_direlt='/[^/][^/]*/\.\./'
  4562. # Canonicalize the pathname of ld
  4563. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4564. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4565. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4566. done
  4567. test -z "$LD" && LD=$ac_prog
  4568. ;;
  4569. "")
  4570. # If it fails, then pretend we aren't using GCC.
  4571. ac_prog=ld
  4572. ;;
  4573. *)
  4574. # If it is relative, then search for the first ld in PATH.
  4575. with_gnu_ld=unknown
  4576. ;;
  4577. esac
  4578. elif test yes = "$with_gnu_ld"; then
  4579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4580. printf %s "checking for GNU ld... " >&6; }
  4581. else
  4582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4583. printf %s "checking for non-GNU ld... " >&6; }
  4584. fi
  4585. if test ${lt_cv_path_LD+y}
  4586. then :
  4587. printf %s "(cached) " >&6
  4588. else $as_nop
  4589. if test -z "$LD"; then
  4590. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4591. for ac_dir in $PATH; do
  4592. IFS=$lt_save_ifs
  4593. test -z "$ac_dir" && ac_dir=.
  4594. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4595. lt_cv_path_LD=$ac_dir/$ac_prog
  4596. # Check to see if the program is GNU ld. I'd rather use --version,
  4597. # but apparently some variants of GNU ld only accept -v.
  4598. # Break only if it was the GNU/non-GNU ld that we prefer.
  4599. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4600. *GNU* | *'with BFD'*)
  4601. test no != "$with_gnu_ld" && break
  4602. ;;
  4603. *)
  4604. test yes != "$with_gnu_ld" && break
  4605. ;;
  4606. esac
  4607. fi
  4608. done
  4609. IFS=$lt_save_ifs
  4610. else
  4611. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4612. fi
  4613. fi
  4614. LD=$lt_cv_path_LD
  4615. if test -n "$LD"; then
  4616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4617. printf "%s\n" "$LD" >&6; }
  4618. else
  4619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4620. printf "%s\n" "no" >&6; }
  4621. fi
  4622. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4624. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4625. if test ${lt_cv_prog_gnu_ld+y}
  4626. then :
  4627. printf %s "(cached) " >&6
  4628. else $as_nop
  4629. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4630. case `$LD -v 2>&1 </dev/null` in
  4631. *GNU* | *'with BFD'*)
  4632. lt_cv_prog_gnu_ld=yes
  4633. ;;
  4634. *)
  4635. lt_cv_prog_gnu_ld=no
  4636. ;;
  4637. esac
  4638. fi
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4640. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4641. with_gnu_ld=$lt_cv_prog_gnu_ld
  4642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4643. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4644. if test ${lt_cv_path_NM+y}
  4645. then :
  4646. printf %s "(cached) " >&6
  4647. else $as_nop
  4648. if test -n "$NM"; then
  4649. # Let the user override the test.
  4650. lt_cv_path_NM=$NM
  4651. else
  4652. lt_nm_to_check=${ac_tool_prefix}nm
  4653. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4654. lt_nm_to_check="$lt_nm_to_check nm"
  4655. fi
  4656. for lt_tmp_nm in $lt_nm_to_check; do
  4657. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4658. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4659. IFS=$lt_save_ifs
  4660. test -z "$ac_dir" && ac_dir=.
  4661. tmp_nm=$ac_dir/$lt_tmp_nm
  4662. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4663. # Check to see if the nm accepts a BSD-compat flag.
  4664. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4665. # nm: unknown option "B" ignored
  4666. # Tru64's nm complains that /dev/null is an invalid object file
  4667. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4668. case $build_os in
  4669. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4670. *) lt_bad_file=/dev/null ;;
  4671. esac
  4672. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4673. *$lt_bad_file* | *'Invalid file or object type'*)
  4674. lt_cv_path_NM="$tmp_nm -B"
  4675. break 2
  4676. ;;
  4677. *)
  4678. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4679. */dev/null*)
  4680. lt_cv_path_NM="$tmp_nm -p"
  4681. break 2
  4682. ;;
  4683. *)
  4684. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4685. continue # so that we can try to find one that supports BSD flags
  4686. ;;
  4687. esac
  4688. ;;
  4689. esac
  4690. fi
  4691. done
  4692. IFS=$lt_save_ifs
  4693. done
  4694. : ${lt_cv_path_NM=no}
  4695. fi
  4696. fi
  4697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4698. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4699. if test no != "$lt_cv_path_NM"; then
  4700. NM=$lt_cv_path_NM
  4701. else
  4702. # Didn't find any BSD compatible name lister, look for dumpbin.
  4703. if test -n "$DUMPBIN"; then :
  4704. # Let the user override the test.
  4705. else
  4706. if test -n "$ac_tool_prefix"; then
  4707. for ac_prog in dumpbin "link -dump"
  4708. do
  4709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. printf %s "checking for $ac_word... " >&6; }
  4713. if test ${ac_cv_prog_DUMPBIN+y}
  4714. then :
  4715. printf %s "(cached) " >&6
  4716. else $as_nop
  4717. if test -n "$DUMPBIN"; then
  4718. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4719. else
  4720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4721. for as_dir in $PATH
  4722. do
  4723. IFS=$as_save_IFS
  4724. case $as_dir in #(((
  4725. '') as_dir=./ ;;
  4726. */) ;;
  4727. *) as_dir=$as_dir/ ;;
  4728. esac
  4729. for ac_exec_ext in '' $ac_executable_extensions; do
  4730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4731. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4733. break 2
  4734. fi
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. fi
  4739. fi
  4740. DUMPBIN=$ac_cv_prog_DUMPBIN
  4741. if test -n "$DUMPBIN"; then
  4742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4743. printf "%s\n" "$DUMPBIN" >&6; }
  4744. else
  4745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4746. printf "%s\n" "no" >&6; }
  4747. fi
  4748. test -n "$DUMPBIN" && break
  4749. done
  4750. fi
  4751. if test -z "$DUMPBIN"; then
  4752. ac_ct_DUMPBIN=$DUMPBIN
  4753. for ac_prog in dumpbin "link -dump"
  4754. do
  4755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4756. set dummy $ac_prog; ac_word=$2
  4757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4758. printf %s "checking for $ac_word... " >&6; }
  4759. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4760. then :
  4761. printf %s "(cached) " >&6
  4762. else $as_nop
  4763. if test -n "$ac_ct_DUMPBIN"; then
  4764. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4765. else
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH
  4768. do
  4769. IFS=$as_save_IFS
  4770. case $as_dir in #(((
  4771. '') as_dir=./ ;;
  4772. */) ;;
  4773. *) as_dir=$as_dir/ ;;
  4774. esac
  4775. for ac_exec_ext in '' $ac_executable_extensions; do
  4776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4777. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4779. break 2
  4780. fi
  4781. done
  4782. done
  4783. IFS=$as_save_IFS
  4784. fi
  4785. fi
  4786. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4787. if test -n "$ac_ct_DUMPBIN"; then
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4789. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4790. else
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4792. printf "%s\n" "no" >&6; }
  4793. fi
  4794. test -n "$ac_ct_DUMPBIN" && break
  4795. done
  4796. if test "x$ac_ct_DUMPBIN" = x; then
  4797. DUMPBIN=":"
  4798. else
  4799. case $cross_compiling:$ac_tool_warned in
  4800. yes:)
  4801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4802. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4803. ac_tool_warned=yes ;;
  4804. esac
  4805. DUMPBIN=$ac_ct_DUMPBIN
  4806. fi
  4807. fi
  4808. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4809. *COFF*)
  4810. DUMPBIN="$DUMPBIN -symbols -headers"
  4811. ;;
  4812. *)
  4813. DUMPBIN=:
  4814. ;;
  4815. esac
  4816. fi
  4817. if test : != "$DUMPBIN"; then
  4818. NM=$DUMPBIN
  4819. fi
  4820. fi
  4821. test -z "$NM" && NM=nm
  4822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4823. printf %s "checking the name lister ($NM) interface... " >&6; }
  4824. if test ${lt_cv_nm_interface+y}
  4825. then :
  4826. printf %s "(cached) " >&6
  4827. else $as_nop
  4828. lt_cv_nm_interface="BSD nm"
  4829. echo "int some_variable = 0;" > conftest.$ac_ext
  4830. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4831. (eval "$ac_compile" 2>conftest.err)
  4832. cat conftest.err >&5
  4833. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4834. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4835. cat conftest.err >&5
  4836. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4837. cat conftest.out >&5
  4838. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4839. lt_cv_nm_interface="MS dumpbin"
  4840. fi
  4841. rm -f conftest*
  4842. fi
  4843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4844. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4846. printf %s "checking whether ln -s works... " >&6; }
  4847. LN_S=$as_ln_s
  4848. if test "$LN_S" = "ln -s"; then
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4850. printf "%s\n" "yes" >&6; }
  4851. else
  4852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4853. printf "%s\n" "no, using $LN_S" >&6; }
  4854. fi
  4855. # find the maximum length of command line arguments
  4856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4857. printf %s "checking the maximum length of command line arguments... " >&6; }
  4858. if test ${lt_cv_sys_max_cmd_len+y}
  4859. then :
  4860. printf %s "(cached) " >&6
  4861. else $as_nop
  4862. i=0
  4863. teststring=ABCD
  4864. case $build_os in
  4865. msdosdjgpp*)
  4866. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4867. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4868. # during glob expansion). Even if it were fixed, the result of this
  4869. # check would be larger than it should be.
  4870. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4871. ;;
  4872. gnu*)
  4873. # Under GNU Hurd, this test is not required because there is
  4874. # no limit to the length of command line arguments.
  4875. # Libtool will interpret -1 as no limit whatsoever
  4876. lt_cv_sys_max_cmd_len=-1;
  4877. ;;
  4878. cygwin* | mingw* | windows* | cegcc*)
  4879. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4880. # about 5 minutes as the teststring grows exponentially.
  4881. # Worse, since 9x/ME are not pre-emptively multitasking,
  4882. # you end up with a "frozen" computer, even though with patience
  4883. # the test eventually succeeds (with a max line length of 256k).
  4884. # Instead, let's just punt: use the minimum linelength reported by
  4885. # all of the supported platforms: 8192 (on NT/2K/XP).
  4886. lt_cv_sys_max_cmd_len=8192;
  4887. ;;
  4888. mint*)
  4889. # On MiNT this can take a long time and run out of memory.
  4890. lt_cv_sys_max_cmd_len=8192;
  4891. ;;
  4892. amigaos*)
  4893. # On AmigaOS with pdksh, this test takes hours, literally.
  4894. # So we just punt and use a minimum line length of 8192.
  4895. lt_cv_sys_max_cmd_len=8192;
  4896. ;;
  4897. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4898. # This has been around since 386BSD, at least. Likely further.
  4899. if test -x /sbin/sysctl; then
  4900. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4901. elif test -x /usr/sbin/sysctl; then
  4902. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4903. else
  4904. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4905. fi
  4906. # And add a safety zone
  4907. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4908. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4909. ;;
  4910. interix*)
  4911. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4912. lt_cv_sys_max_cmd_len=196608
  4913. ;;
  4914. os2*)
  4915. # The test takes a long time on OS/2.
  4916. lt_cv_sys_max_cmd_len=8192
  4917. ;;
  4918. osf*)
  4919. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4920. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4921. # nice to cause kernel panics so lets avoid the loop below.
  4922. # First set a reasonable default.
  4923. lt_cv_sys_max_cmd_len=16384
  4924. #
  4925. if test -x /sbin/sysconfig; then
  4926. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4927. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4928. esac
  4929. fi
  4930. ;;
  4931. sco3.2v5*)
  4932. lt_cv_sys_max_cmd_len=102400
  4933. ;;
  4934. sysv5* | sco5v6* | sysv4.2uw2*)
  4935. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4936. if test -n "$kargmax"; then
  4937. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4938. else
  4939. lt_cv_sys_max_cmd_len=32768
  4940. fi
  4941. ;;
  4942. *)
  4943. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4944. if test -n "$lt_cv_sys_max_cmd_len" && \
  4945. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4948. else
  4949. # Make teststring a little bigger before we do anything with it.
  4950. # a 1K string should be a reasonable start.
  4951. for i in 1 2 3 4 5 6 7 8; do
  4952. teststring=$teststring$teststring
  4953. done
  4954. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4955. # If test is not a shell built-in, we'll probably end up computing a
  4956. # maximum length that is only half of the actual maximum length, but
  4957. # we can't tell.
  4958. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4959. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4960. test 17 != "$i" # 1/2 MB should be enough
  4961. do
  4962. i=`expr $i + 1`
  4963. teststring=$teststring$teststring
  4964. done
  4965. # Only check the string length outside the loop.
  4966. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4967. teststring=
  4968. # Add a significant safety factor because C++ compilers can tack on
  4969. # massive amounts of additional arguments before passing them to the
  4970. # linker. It appears as though 1/2 is a usable value.
  4971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4972. fi
  4973. ;;
  4974. esac
  4975. fi
  4976. if test -n "$lt_cv_sys_max_cmd_len"; then
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4978. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4979. else
  4980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4981. printf "%s\n" "none" >&6; }
  4982. fi
  4983. max_cmd_len=$lt_cv_sys_max_cmd_len
  4984. : ${CP="cp -f"}
  4985. : ${MV="mv -f"}
  4986. : ${RM="rm -f"}
  4987. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4988. lt_unset=unset
  4989. else
  4990. lt_unset=false
  4991. fi
  4992. # test EBCDIC or ASCII
  4993. case `echo X|tr X '\101'` in
  4994. A) # ASCII based system
  4995. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4996. lt_SP2NL='tr \040 \012'
  4997. lt_NL2SP='tr \015\012 \040\040'
  4998. ;;
  4999. *) # EBCDIC based system
  5000. lt_SP2NL='tr \100 \n'
  5001. lt_NL2SP='tr \r\n \100\100'
  5002. ;;
  5003. esac
  5004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5005. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5006. if test ${lt_cv_to_host_file_cmd+y}
  5007. then :
  5008. printf %s "(cached) " >&6
  5009. else $as_nop
  5010. case $host in
  5011. *-*-mingw* )
  5012. case $build in
  5013. *-*-mingw* | *-*-windows* ) # actually msys
  5014. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5015. ;;
  5016. *-*-cygwin* )
  5017. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5018. ;;
  5019. * ) # otherwise, assume *nix
  5020. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5021. ;;
  5022. esac
  5023. ;;
  5024. *-*-cygwin* )
  5025. case $build in
  5026. *-*-mingw* | *-*-windows* ) # actually msys
  5027. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5028. ;;
  5029. *-*-cygwin* )
  5030. lt_cv_to_host_file_cmd=func_convert_file_noop
  5031. ;;
  5032. * ) # otherwise, assume *nix
  5033. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5034. ;;
  5035. esac
  5036. ;;
  5037. * ) # unhandled hosts (and "normal" native builds)
  5038. lt_cv_to_host_file_cmd=func_convert_file_noop
  5039. ;;
  5040. esac
  5041. fi
  5042. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5044. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5046. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5047. if test ${lt_cv_to_tool_file_cmd+y}
  5048. then :
  5049. printf %s "(cached) " >&6
  5050. else $as_nop
  5051. #assume ordinary cross tools, or native build.
  5052. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5053. case $host in
  5054. *-*-mingw* | *-*-windows* )
  5055. case $build in
  5056. *-*-mingw* | *-*-windows* ) # actually msys
  5057. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5058. ;;
  5059. esac
  5060. ;;
  5061. esac
  5062. fi
  5063. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5065. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5067. printf %s "checking for $LD option to reload object files... " >&6; }
  5068. if test ${lt_cv_ld_reload_flag+y}
  5069. then :
  5070. printf %s "(cached) " >&6
  5071. else $as_nop
  5072. lt_cv_ld_reload_flag='-r'
  5073. fi
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5075. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5076. reload_flag=$lt_cv_ld_reload_flag
  5077. case $reload_flag in
  5078. "" | " "*) ;;
  5079. *) reload_flag=" $reload_flag" ;;
  5080. esac
  5081. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5082. case $host_os in
  5083. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5084. if test yes != "$GCC"; then
  5085. reload_cmds=false
  5086. fi
  5087. ;;
  5088. darwin*)
  5089. if test yes = "$GCC"; then
  5090. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5091. else
  5092. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5093. fi
  5094. ;;
  5095. esac
  5096. if test -n "$ac_tool_prefix"; then
  5097. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5098. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5100. printf %s "checking for $ac_word... " >&6; }
  5101. if test ${ac_cv_prog_OBJDUMP+y}
  5102. then :
  5103. printf %s "(cached) " >&6
  5104. else $as_nop
  5105. if test -n "$OBJDUMP"; then
  5106. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5107. else
  5108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5109. for as_dir in $PATH
  5110. do
  5111. IFS=$as_save_IFS
  5112. case $as_dir in #(((
  5113. '') as_dir=./ ;;
  5114. */) ;;
  5115. *) as_dir=$as_dir/ ;;
  5116. esac
  5117. for ac_exec_ext in '' $ac_executable_extensions; do
  5118. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5119. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5120. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5121. break 2
  5122. fi
  5123. done
  5124. done
  5125. IFS=$as_save_IFS
  5126. fi
  5127. fi
  5128. OBJDUMP=$ac_cv_prog_OBJDUMP
  5129. if test -n "$OBJDUMP"; then
  5130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5131. printf "%s\n" "$OBJDUMP" >&6; }
  5132. else
  5133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5134. printf "%s\n" "no" >&6; }
  5135. fi
  5136. fi
  5137. if test -z "$ac_cv_prog_OBJDUMP"; then
  5138. ac_ct_OBJDUMP=$OBJDUMP
  5139. # Extract the first word of "objdump", so it can be a program name with args.
  5140. set dummy objdump; ac_word=$2
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5142. printf %s "checking for $ac_word... " >&6; }
  5143. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5144. then :
  5145. printf %s "(cached) " >&6
  5146. else $as_nop
  5147. if test -n "$ac_ct_OBJDUMP"; then
  5148. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. case $as_dir in #(((
  5155. '') as_dir=./ ;;
  5156. */) ;;
  5157. *) as_dir=$as_dir/ ;;
  5158. esac
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5161. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5162. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. fi
  5169. fi
  5170. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5171. if test -n "$ac_ct_OBJDUMP"; then
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5173. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5174. else
  5175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5176. printf "%s\n" "no" >&6; }
  5177. fi
  5178. if test "x$ac_ct_OBJDUMP" = x; then
  5179. OBJDUMP="false"
  5180. else
  5181. case $cross_compiling:$ac_tool_warned in
  5182. yes:)
  5183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5184. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5185. ac_tool_warned=yes ;;
  5186. esac
  5187. OBJDUMP=$ac_ct_OBJDUMP
  5188. fi
  5189. else
  5190. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5191. fi
  5192. test -z "$OBJDUMP" && OBJDUMP=objdump
  5193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5194. printf %s "checking how to recognize dependent libraries... " >&6; }
  5195. if test ${lt_cv_deplibs_check_method+y}
  5196. then :
  5197. printf %s "(cached) " >&6
  5198. else $as_nop
  5199. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5200. lt_cv_file_magic_test_file=
  5201. lt_cv_deplibs_check_method='unknown'
  5202. # Need to set the preceding variable on all platforms that support
  5203. # interlibrary dependencies.
  5204. # 'none' -- dependencies not supported.
  5205. # 'unknown' -- same as none, but documents that we really don't know.
  5206. # 'pass_all' -- all dependencies passed with no checks.
  5207. # 'test_compile' -- check by making test program.
  5208. # 'file_magic [[regex]]' -- check by looking for files in library path
  5209. # that responds to the $file_magic_cmd with a given extended regex.
  5210. # If you have 'file' or equivalent on your system and you're not sure
  5211. # whether 'pass_all' will *always* work, you probably want this one.
  5212. case $host_os in
  5213. aix[4-9]*)
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. beos*)
  5217. lt_cv_deplibs_check_method=pass_all
  5218. ;;
  5219. bsdi[45]*)
  5220. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5221. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5222. lt_cv_file_magic_test_file=/shlib/libc.so
  5223. ;;
  5224. cygwin*)
  5225. # func_win32_libid is a shell function defined in ltmain.sh
  5226. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5227. lt_cv_file_magic_cmd='func_win32_libid'
  5228. lt_cv_deplibs_check_method=pass_all # SDL customization
  5229. ;;
  5230. mingw* | windows* | pw32*)
  5231. # Base MSYS/MinGW do not provide the 'file' command needed by
  5232. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5233. # unless we find 'file', for example because we are cross-compiling.
  5234. if ( file / ) >/dev/null 2>&1; then
  5235. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5236. lt_cv_file_magic_cmd='func_win32_libid'
  5237. else
  5238. # Keep this pattern in sync with the one in func_win32_libid.
  5239. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5240. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5241. fi
  5242. lt_cv_deplibs_check_method=pass_all # SDL customization
  5243. ;;
  5244. cegcc*)
  5245. # use the weaker test based on 'objdump'. See mingw*.
  5246. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5247. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5248. ;;
  5249. darwin* | rhapsody*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. freebsd* | dragonfly* | midnightbsd*)
  5253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5254. case $host_cpu in
  5255. i*86 )
  5256. # Not sure whether the presence of OpenBSD here was a mistake.
  5257. # Let's accept both of them until this is cleared up.
  5258. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5259. lt_cv_file_magic_cmd=/usr/bin/file
  5260. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5261. ;;
  5262. esac
  5263. else
  5264. lt_cv_deplibs_check_method=pass_all
  5265. fi
  5266. ;;
  5267. haiku*)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. hpux10.20* | hpux11*)
  5271. lt_cv_file_magic_cmd=/usr/bin/file
  5272. case $host_cpu in
  5273. ia64*)
  5274. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5275. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5276. ;;
  5277. hppa*64*)
  5278. 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]'
  5279. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5280. ;;
  5281. *)
  5282. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5283. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5284. ;;
  5285. esac
  5286. ;;
  5287. interix[3-9]*)
  5288. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5289. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5290. ;;
  5291. irix5* | irix6* | nonstopux*)
  5292. case $LD in
  5293. *-32|*"-32 ") libmagic=32-bit;;
  5294. *-n32|*"-n32 ") libmagic=N32;;
  5295. *-64|*"-64 ") libmagic=64-bit;;
  5296. *) libmagic=never-match;;
  5297. esac
  5298. lt_cv_deplibs_check_method=pass_all
  5299. ;;
  5300. # This must be glibc/ELF.
  5301. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. netbsd*)
  5305. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5307. else
  5308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5309. fi
  5310. ;;
  5311. newos6*)
  5312. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5313. lt_cv_file_magic_cmd=/usr/bin/file
  5314. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5315. ;;
  5316. *nto* | *qnx*)
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. openbsd* | bitrig*)
  5320. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5322. else
  5323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5324. fi
  5325. ;;
  5326. osf3* | osf4* | osf5*)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. rdos*)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. solaris*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. sysv4 | sysv4.3*)
  5339. case $host_vendor in
  5340. motorola)
  5341. 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]'
  5342. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5343. ;;
  5344. ncr)
  5345. lt_cv_deplibs_check_method=pass_all
  5346. ;;
  5347. sequent)
  5348. lt_cv_file_magic_cmd='/bin/file'
  5349. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5350. ;;
  5351. sni)
  5352. lt_cv_file_magic_cmd='/bin/file'
  5353. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5354. lt_cv_file_magic_test_file=/lib/libc.so
  5355. ;;
  5356. siemens)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. pc)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. esac
  5363. ;;
  5364. tpf*)
  5365. lt_cv_deplibs_check_method=pass_all
  5366. ;;
  5367. os2*)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. esac
  5371. fi
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5373. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5374. file_magic_glob=
  5375. want_nocaseglob=no
  5376. if test "$build" = "$host"; then
  5377. case $host_os in
  5378. mingw* | windows* | pw32*)
  5379. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5380. want_nocaseglob=yes
  5381. else
  5382. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5383. fi
  5384. ;;
  5385. esac
  5386. fi
  5387. file_magic_cmd=$lt_cv_file_magic_cmd
  5388. deplibs_check_method=$lt_cv_deplibs_check_method
  5389. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5390. if test -n "$ac_tool_prefix"; then
  5391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5394. printf %s "checking for $ac_word... " >&6; }
  5395. if test ${ac_cv_prog_DLLTOOL+y}
  5396. then :
  5397. printf %s "(cached) " >&6
  5398. else $as_nop
  5399. if test -n "$DLLTOOL"; then
  5400. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. case $as_dir in #(((
  5407. '') as_dir=./ ;;
  5408. */) ;;
  5409. *) as_dir=$as_dir/ ;;
  5410. esac
  5411. for ac_exec_ext in '' $ac_executable_extensions; do
  5412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5413. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5415. break 2
  5416. fi
  5417. done
  5418. done
  5419. IFS=$as_save_IFS
  5420. fi
  5421. fi
  5422. DLLTOOL=$ac_cv_prog_DLLTOOL
  5423. if test -n "$DLLTOOL"; then
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5425. printf "%s\n" "$DLLTOOL" >&6; }
  5426. else
  5427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5428. printf "%s\n" "no" >&6; }
  5429. fi
  5430. fi
  5431. if test -z "$ac_cv_prog_DLLTOOL"; then
  5432. ac_ct_DLLTOOL=$DLLTOOL
  5433. # Extract the first word of "dlltool", so it can be a program name with args.
  5434. set dummy dlltool; ac_word=$2
  5435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5436. printf %s "checking for $ac_word... " >&6; }
  5437. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5438. then :
  5439. printf %s "(cached) " >&6
  5440. else $as_nop
  5441. if test -n "$ac_ct_DLLTOOL"; then
  5442. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5443. else
  5444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5445. for as_dir in $PATH
  5446. do
  5447. IFS=$as_save_IFS
  5448. case $as_dir in #(((
  5449. '') as_dir=./ ;;
  5450. */) ;;
  5451. *) as_dir=$as_dir/ ;;
  5452. esac
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5455. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5457. break 2
  5458. fi
  5459. done
  5460. done
  5461. IFS=$as_save_IFS
  5462. fi
  5463. fi
  5464. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5465. if test -n "$ac_ct_DLLTOOL"; then
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5467. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5468. else
  5469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5470. printf "%s\n" "no" >&6; }
  5471. fi
  5472. if test "x$ac_ct_DLLTOOL" = x; then
  5473. DLLTOOL="false"
  5474. else
  5475. case $cross_compiling:$ac_tool_warned in
  5476. yes:)
  5477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5478. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5479. ac_tool_warned=yes ;;
  5480. esac
  5481. DLLTOOL=$ac_ct_DLLTOOL
  5482. fi
  5483. else
  5484. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5485. fi
  5486. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5488. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5489. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5490. then :
  5491. printf %s "(cached) " >&6
  5492. else $as_nop
  5493. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5494. case $host_os in
  5495. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5496. # two different shell functions defined in ltmain.sh;
  5497. # decide which one to use based on capabilities of $DLLTOOL
  5498. case `$DLLTOOL --help 2>&1` in
  5499. *--identify-strict*)
  5500. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5501. ;;
  5502. *)
  5503. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5504. ;;
  5505. esac
  5506. ;;
  5507. *)
  5508. # fallback: assume linklib IS sharedlib
  5509. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5510. ;;
  5511. esac
  5512. fi
  5513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5514. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5515. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5516. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5517. if test -n "$ac_tool_prefix"; then
  5518. for ac_prog in ar
  5519. do
  5520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. printf %s "checking for $ac_word... " >&6; }
  5524. if test ${ac_cv_prog_AR+y}
  5525. then :
  5526. printf %s "(cached) " >&6
  5527. else $as_nop
  5528. if test -n "$AR"; then
  5529. ac_cv_prog_AR="$AR" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. case $as_dir in #(((
  5536. '') as_dir=./ ;;
  5537. */) ;;
  5538. *) as_dir=$as_dir/ ;;
  5539. esac
  5540. for ac_exec_ext in '' $ac_executable_extensions; do
  5541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5542. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5544. break 2
  5545. fi
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. fi
  5550. fi
  5551. AR=$ac_cv_prog_AR
  5552. if test -n "$AR"; then
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5554. printf "%s\n" "$AR" >&6; }
  5555. else
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5557. printf "%s\n" "no" >&6; }
  5558. fi
  5559. test -n "$AR" && break
  5560. done
  5561. fi
  5562. if test -z "$AR"; then
  5563. ac_ct_AR=$AR
  5564. for ac_prog in ar
  5565. do
  5566. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5567. set dummy $ac_prog; ac_word=$2
  5568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5569. printf %s "checking for $ac_word... " >&6; }
  5570. if test ${ac_cv_prog_ac_ct_AR+y}
  5571. then :
  5572. printf %s "(cached) " >&6
  5573. else $as_nop
  5574. if test -n "$ac_ct_AR"; then
  5575. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. case $as_dir in #(((
  5582. '') as_dir=./ ;;
  5583. */) ;;
  5584. *) as_dir=$as_dir/ ;;
  5585. esac
  5586. for ac_exec_ext in '' $ac_executable_extensions; do
  5587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5588. ac_cv_prog_ac_ct_AR="$ac_prog"
  5589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5590. break 2
  5591. fi
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. fi
  5596. fi
  5597. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5598. if test -n "$ac_ct_AR"; then
  5599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5600. printf "%s\n" "$ac_ct_AR" >&6; }
  5601. else
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. printf "%s\n" "no" >&6; }
  5604. fi
  5605. test -n "$ac_ct_AR" && break
  5606. done
  5607. if test "x$ac_ct_AR" = x; then
  5608. AR="false"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. AR=$ac_ct_AR
  5617. fi
  5618. fi
  5619. : ${AR=ar}
  5620. : ${AR_FLAGS=cru}
  5621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5622. printf %s "checking for archiver @FILE support... " >&6; }
  5623. if test ${lt_cv_ar_at_file+y}
  5624. then :
  5625. printf %s "(cached) " >&6
  5626. else $as_nop
  5627. lt_cv_ar_at_file=no
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. int
  5631. main (void)
  5632. {
  5633. ;
  5634. return 0;
  5635. }
  5636. _ACEOF
  5637. if ac_fn_c_try_compile "$LINENO"
  5638. then :
  5639. echo conftest.$ac_objext > conftest.lst
  5640. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5641. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5642. (eval $lt_ar_try) 2>&5
  5643. ac_status=$?
  5644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5645. test $ac_status = 0; }
  5646. if test 0 -eq "$ac_status"; then
  5647. # Ensure the archiver fails upon bogus file names.
  5648. rm -f conftest.$ac_objext libconftest.a
  5649. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5650. (eval $lt_ar_try) 2>&5
  5651. ac_status=$?
  5652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5653. test $ac_status = 0; }
  5654. if test 0 -ne "$ac_status"; then
  5655. lt_cv_ar_at_file=@
  5656. fi
  5657. fi
  5658. rm -f conftest.* libconftest.a
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5661. fi
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5663. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5664. if test no = "$lt_cv_ar_at_file"; then
  5665. archiver_list_spec=
  5666. else
  5667. archiver_list_spec=$lt_cv_ar_at_file
  5668. fi
  5669. if test -n "$ac_tool_prefix"; then
  5670. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5671. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. printf %s "checking for $ac_word... " >&6; }
  5674. if test ${ac_cv_prog_STRIP+y}
  5675. then :
  5676. printf %s "(cached) " >&6
  5677. else $as_nop
  5678. if test -n "$STRIP"; then
  5679. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. case $as_dir in #(((
  5686. '') as_dir=./ ;;
  5687. */) ;;
  5688. *) as_dir=$as_dir/ ;;
  5689. esac
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5692. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. STRIP=$ac_cv_prog_STRIP
  5702. if test -n "$STRIP"; then
  5703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5704. printf "%s\n" "$STRIP" >&6; }
  5705. else
  5706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. printf "%s\n" "no" >&6; }
  5708. fi
  5709. fi
  5710. if test -z "$ac_cv_prog_STRIP"; then
  5711. ac_ct_STRIP=$STRIP
  5712. # Extract the first word of "strip", so it can be a program name with args.
  5713. set dummy strip; ac_word=$2
  5714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5715. printf %s "checking for $ac_word... " >&6; }
  5716. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5717. then :
  5718. printf %s "(cached) " >&6
  5719. else $as_nop
  5720. if test -n "$ac_ct_STRIP"; then
  5721. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. case $as_dir in #(((
  5728. '') as_dir=./ ;;
  5729. */) ;;
  5730. *) as_dir=$as_dir/ ;;
  5731. esac
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5734. ac_cv_prog_ac_ct_STRIP="strip"
  5735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. fi
  5742. fi
  5743. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5744. if test -n "$ac_ct_STRIP"; then
  5745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5746. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5747. else
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. printf "%s\n" "no" >&6; }
  5750. fi
  5751. if test "x$ac_ct_STRIP" = x; then
  5752. STRIP=":"
  5753. else
  5754. case $cross_compiling:$ac_tool_warned in
  5755. yes:)
  5756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5757. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5758. ac_tool_warned=yes ;;
  5759. esac
  5760. STRIP=$ac_ct_STRIP
  5761. fi
  5762. else
  5763. STRIP="$ac_cv_prog_STRIP"
  5764. fi
  5765. test -z "$STRIP" && STRIP=:
  5766. if test -n "$ac_tool_prefix"; then
  5767. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5768. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5770. printf %s "checking for $ac_word... " >&6; }
  5771. if test ${ac_cv_prog_RANLIB+y}
  5772. then :
  5773. printf %s "(cached) " >&6
  5774. else $as_nop
  5775. if test -n "$RANLIB"; then
  5776. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. case $as_dir in #(((
  5783. '') as_dir=./ ;;
  5784. */) ;;
  5785. *) as_dir=$as_dir/ ;;
  5786. esac
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5789. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. fi
  5797. fi
  5798. RANLIB=$ac_cv_prog_RANLIB
  5799. if test -n "$RANLIB"; then
  5800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5801. printf "%s\n" "$RANLIB" >&6; }
  5802. else
  5803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5804. printf "%s\n" "no" >&6; }
  5805. fi
  5806. fi
  5807. if test -z "$ac_cv_prog_RANLIB"; then
  5808. ac_ct_RANLIB=$RANLIB
  5809. # Extract the first word of "ranlib", so it can be a program name with args.
  5810. set dummy ranlib; ac_word=$2
  5811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5812. printf %s "checking for $ac_word... " >&6; }
  5813. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5814. then :
  5815. printf %s "(cached) " >&6
  5816. else $as_nop
  5817. if test -n "$ac_ct_RANLIB"; then
  5818. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. case $as_dir in #(((
  5825. '') as_dir=./ ;;
  5826. */) ;;
  5827. *) as_dir=$as_dir/ ;;
  5828. esac
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5841. if test -n "$ac_ct_RANLIB"; then
  5842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5843. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5844. else
  5845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. printf "%s\n" "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_RANLIB" = x; then
  5849. RANLIB=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. RANLIB=$ac_ct_RANLIB
  5858. fi
  5859. else
  5860. RANLIB="$ac_cv_prog_RANLIB"
  5861. fi
  5862. test -z "$RANLIB" && RANLIB=:
  5863. # Determine commands to create old-style static archives.
  5864. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5865. old_postinstall_cmds='chmod 644 $oldlib'
  5866. old_postuninstall_cmds=
  5867. if test -n "$RANLIB"; then
  5868. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5869. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5870. fi
  5871. case $host_os in
  5872. darwin*)
  5873. lock_old_archive_extraction=yes ;;
  5874. *)
  5875. lock_old_archive_extraction=no ;;
  5876. esac
  5877. for ac_prog in gawk mawk nawk awk
  5878. do
  5879. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5880. set dummy $ac_prog; ac_word=$2
  5881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. printf %s "checking for $ac_word... " >&6; }
  5883. if test ${ac_cv_prog_AWK+y}
  5884. then :
  5885. printf %s "(cached) " >&6
  5886. else $as_nop
  5887. if test -n "$AWK"; then
  5888. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. case $as_dir in #(((
  5895. '') as_dir=./ ;;
  5896. */) ;;
  5897. *) as_dir=$as_dir/ ;;
  5898. esac
  5899. for ac_exec_ext in '' $ac_executable_extensions; do
  5900. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5901. ac_cv_prog_AWK="$ac_prog"
  5902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5903. break 2
  5904. fi
  5905. done
  5906. done
  5907. IFS=$as_save_IFS
  5908. fi
  5909. fi
  5910. AWK=$ac_cv_prog_AWK
  5911. if test -n "$AWK"; then
  5912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5913. printf "%s\n" "$AWK" >&6; }
  5914. else
  5915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5916. printf "%s\n" "no" >&6; }
  5917. fi
  5918. test -n "$AWK" && break
  5919. done
  5920. # If no C compiler was specified, use CC.
  5921. LTCC=${LTCC-"$CC"}
  5922. # If no C compiler flags were specified, use CFLAGS.
  5923. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5924. # Allow CC to be a program name with arguments.
  5925. compiler=$CC
  5926. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5928. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5929. if test ${lt_cv_sys_global_symbol_pipe+y}
  5930. then :
  5931. printf %s "(cached) " >&6
  5932. else $as_nop
  5933. # These are sane defaults that work on at least a few old systems.
  5934. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5935. # Character class describing NM global symbol codes.
  5936. symcode='[BCDEGRST]'
  5937. # Regexp to match symbols that can be accessed directly from C.
  5938. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5939. # Define system-specific variables.
  5940. case $host_os in
  5941. aix*)
  5942. symcode='[BCDT]'
  5943. ;;
  5944. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5945. symcode='[ABCDGISTW]'
  5946. ;;
  5947. hpux*)
  5948. if test ia64 = "$host_cpu"; then
  5949. symcode='[ABCDEGRST]'
  5950. fi
  5951. ;;
  5952. irix* | nonstopux*)
  5953. symcode='[BCDEGRST]'
  5954. ;;
  5955. osf*)
  5956. symcode='[BCDEGQRST]'
  5957. ;;
  5958. solaris*)
  5959. symcode='[BCDRT]'
  5960. ;;
  5961. sco3.2v5*)
  5962. symcode='[DT]'
  5963. ;;
  5964. sysv4.2uw2*)
  5965. symcode='[DT]'
  5966. ;;
  5967. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5968. symcode='[ABDT]'
  5969. ;;
  5970. sysv4)
  5971. symcode='[DFNSTU]'
  5972. ;;
  5973. esac
  5974. # If we're using GNU nm, then use its standard symbol codes.
  5975. case `$NM -V 2>&1` in
  5976. *GNU* | *'with BFD'*)
  5977. symcode='[ABCDGIRSTW]' ;;
  5978. esac
  5979. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5980. # Gets list of data symbols to import.
  5981. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5982. # Adjust the below global symbol transforms to fixup imported variables.
  5983. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5984. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5985. lt_c_name_lib_hook="\
  5986. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5987. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5988. else
  5989. # Disable hooks by default.
  5990. lt_cv_sys_global_symbol_to_import=
  5991. lt_cdecl_hook=
  5992. lt_c_name_hook=
  5993. lt_c_name_lib_hook=
  5994. fi
  5995. # Transform an extracted symbol line into a proper C declaration.
  5996. # Some systems (esp. on ia64) link data and code symbols differently,
  5997. # so use this general approach.
  5998. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5999. $lt_cdecl_hook\
  6000. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6001. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6002. # Transform an extracted symbol line into symbol name and symbol address
  6003. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6004. $lt_c_name_hook\
  6005. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6006. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6007. # Transform an extracted symbol line into symbol name with lib prefix and
  6008. # symbol address.
  6009. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6010. $lt_c_name_lib_hook\
  6011. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6012. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6013. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6014. # Handle CRLF in mingw tool chain
  6015. opt_cr=
  6016. case $build_os in
  6017. mingw* | windows*)
  6018. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6019. ;;
  6020. esac
  6021. # Try without a prefix underscore, then with it.
  6022. for ac_symprfx in "" "_"; do
  6023. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6024. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6025. # Write the raw and C identifiers.
  6026. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6027. # Fake it for dumpbin and say T for any non-static function,
  6028. # D for any global variable and I for any imported variable.
  6029. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6030. # which start with @ or ?.
  6031. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6032. " {last_section=section; section=\$ 3};"\
  6033. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6034. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6035. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6036. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6037. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6038. " \$ 0!~/External *\|/{next};"\
  6039. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6040. " {if(hide[section]) next};"\
  6041. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6042. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6043. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6044. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6045. " ' prfx=^$ac_symprfx"
  6046. else
  6047. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6048. fi
  6049. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6050. # Check to see that the pipe works correctly.
  6051. pipe_works=no
  6052. rm -f conftest*
  6053. cat > conftest.$ac_ext <<_LT_EOF
  6054. #ifdef __cplusplus
  6055. extern "C" {
  6056. #endif
  6057. char nm_test_var;
  6058. void nm_test_func(void);
  6059. void nm_test_func(void){}
  6060. #ifdef __cplusplus
  6061. }
  6062. #endif
  6063. int main(){nm_test_var='a';nm_test_func();return(0);}
  6064. _LT_EOF
  6065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6066. (eval $ac_compile) 2>&5
  6067. ac_status=$?
  6068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6069. test $ac_status = 0; }; then
  6070. # Now try to grab the symbols.
  6071. nlist=conftest.nm
  6072. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6073. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6074. ac_status=$?
  6075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6076. test $ac_status = 0; } && test -s "$nlist"; then
  6077. # Try sorting and uniquifying the output.
  6078. if sort "$nlist" | uniq > "$nlist"T; then
  6079. mv -f "$nlist"T "$nlist"
  6080. else
  6081. rm -f "$nlist"T
  6082. fi
  6083. # Make sure that we snagged all the symbols we need.
  6084. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6085. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6086. cat <<_LT_EOF > conftest.$ac_ext
  6087. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6088. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6089. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6090. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6091. # define LT_DLSYM_CONST
  6092. #elif defined __osf__
  6093. /* This system does not cope well with relocations in const data. */
  6094. # define LT_DLSYM_CONST
  6095. #else
  6096. # define LT_DLSYM_CONST const
  6097. #endif
  6098. #ifdef __cplusplus
  6099. extern "C" {
  6100. #endif
  6101. _LT_EOF
  6102. # Now generate the symbol file.
  6103. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6104. cat <<_LT_EOF >> conftest.$ac_ext
  6105. /* The mapping between symbol names and symbols. */
  6106. LT_DLSYM_CONST struct {
  6107. const char *name;
  6108. void *address;
  6109. }
  6110. lt__PROGRAM__LTX_preloaded_symbols[] =
  6111. {
  6112. { "@PROGRAM@", (void *) 0 },
  6113. _LT_EOF
  6114. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6115. cat <<\_LT_EOF >> conftest.$ac_ext
  6116. {0, (void *) 0}
  6117. };
  6118. /* This works around a problem in FreeBSD linker */
  6119. #ifdef FREEBSD_WORKAROUND
  6120. static const void *lt_preloaded_setup() {
  6121. return lt__PROGRAM__LTX_preloaded_symbols;
  6122. }
  6123. #endif
  6124. #ifdef __cplusplus
  6125. }
  6126. #endif
  6127. _LT_EOF
  6128. # Now try linking the two files.
  6129. mv conftest.$ac_objext conftstm.$ac_objext
  6130. lt_globsym_save_LIBS=$LIBS
  6131. lt_globsym_save_CFLAGS=$CFLAGS
  6132. LIBS=conftstm.$ac_objext
  6133. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6134. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6135. (eval $ac_link) 2>&5
  6136. ac_status=$?
  6137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6138. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6139. pipe_works=yes
  6140. fi
  6141. LIBS=$lt_globsym_save_LIBS
  6142. CFLAGS=$lt_globsym_save_CFLAGS
  6143. else
  6144. echo "cannot find nm_test_func in $nlist" >&5
  6145. fi
  6146. else
  6147. echo "cannot find nm_test_var in $nlist" >&5
  6148. fi
  6149. else
  6150. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6151. fi
  6152. else
  6153. echo "$progname: failed program was:" >&5
  6154. cat conftest.$ac_ext >&5
  6155. fi
  6156. rm -rf conftest* conftst*
  6157. # Do not use the global_symbol_pipe unless it works.
  6158. if test yes = "$pipe_works"; then
  6159. break
  6160. else
  6161. lt_cv_sys_global_symbol_pipe=
  6162. fi
  6163. done
  6164. fi
  6165. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6166. lt_cv_sys_global_symbol_to_cdecl=
  6167. fi
  6168. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6170. printf "%s\n" "failed" >&6; }
  6171. else
  6172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6173. printf "%s\n" "ok" >&6; }
  6174. fi
  6175. # Response file support.
  6176. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6177. nm_file_list_spec='@'
  6178. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6179. nm_file_list_spec='@'
  6180. fi
  6181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6182. printf %s "checking for sysroot... " >&6; }
  6183. # Check whether --with-sysroot was given.
  6184. if test ${with_sysroot+y}
  6185. then :
  6186. withval=$with_sysroot;
  6187. else $as_nop
  6188. with_sysroot=no
  6189. fi
  6190. lt_sysroot=
  6191. case $with_sysroot in #(
  6192. yes)
  6193. if test yes = "$GCC"; then
  6194. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6195. fi
  6196. ;; #(
  6197. /*)
  6198. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6199. ;; #(
  6200. no|'')
  6201. ;; #(
  6202. *)
  6203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6204. printf "%s\n" "$with_sysroot" >&6; }
  6205. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6206. ;;
  6207. esac
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6209. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6211. printf %s "checking for a working dd... " >&6; }
  6212. if test ${ac_cv_path_lt_DD+y}
  6213. then :
  6214. printf %s "(cached) " >&6
  6215. else $as_nop
  6216. printf 0123456789abcdef0123456789abcdef >conftest.i
  6217. cat conftest.i conftest.i >conftest2.i
  6218. : ${lt_DD:=$DD}
  6219. if test -z "$lt_DD"; then
  6220. ac_path_lt_DD_found=false
  6221. # Loop through the user's path and test for each of PROGNAME-LIST
  6222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6223. for as_dir in $PATH
  6224. do
  6225. IFS=$as_save_IFS
  6226. case $as_dir in #(((
  6227. '') as_dir=./ ;;
  6228. */) ;;
  6229. *) as_dir=$as_dir/ ;;
  6230. esac
  6231. for ac_prog in dd
  6232. do
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6235. as_fn_executable_p "$ac_path_lt_DD" || continue
  6236. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6237. cmp -s conftest.i conftest.out \
  6238. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6239. fi
  6240. $ac_path_lt_DD_found && break 3
  6241. done
  6242. done
  6243. done
  6244. IFS=$as_save_IFS
  6245. if test -z "$ac_cv_path_lt_DD"; then
  6246. :
  6247. fi
  6248. else
  6249. ac_cv_path_lt_DD=$lt_DD
  6250. fi
  6251. rm -f conftest.i conftest2.i conftest.out
  6252. fi
  6253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6254. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6256. printf %s "checking how to truncate binary pipes... " >&6; }
  6257. if test ${lt_cv_truncate_bin+y}
  6258. then :
  6259. printf %s "(cached) " >&6
  6260. else $as_nop
  6261. printf 0123456789abcdef0123456789abcdef >conftest.i
  6262. cat conftest.i conftest.i >conftest2.i
  6263. lt_cv_truncate_bin=
  6264. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6265. cmp -s conftest.i conftest.out \
  6266. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6267. fi
  6268. rm -f conftest.i conftest2.i conftest.out
  6269. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6270. fi
  6271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6272. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6273. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6274. func_cc_basename ()
  6275. {
  6276. for cc_temp in $*""; do
  6277. case $cc_temp in
  6278. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6279. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6280. \-*) ;;
  6281. *) break;;
  6282. esac
  6283. done
  6284. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6285. }
  6286. # Check whether --enable-libtool-lock was given.
  6287. if test ${enable_libtool_lock+y}
  6288. then :
  6289. enableval=$enable_libtool_lock;
  6290. fi
  6291. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6292. # Some flags need to be propagated to the compiler or linker for good
  6293. # libtool support.
  6294. case $host in
  6295. ia64-*-hpux*)
  6296. # Find out what ABI is being produced by ac_compile, and set mode
  6297. # options accordingly.
  6298. echo 'int i;' > conftest.$ac_ext
  6299. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6300. (eval $ac_compile) 2>&5
  6301. ac_status=$?
  6302. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6303. test $ac_status = 0; }; then
  6304. case `/usr/bin/file conftest.$ac_objext` in
  6305. *ELF-32*)
  6306. HPUX_IA64_MODE=32
  6307. ;;
  6308. *ELF-64*)
  6309. HPUX_IA64_MODE=64
  6310. ;;
  6311. esac
  6312. fi
  6313. rm -rf conftest*
  6314. ;;
  6315. *-*-irix6*)
  6316. # Find out what ABI is being produced by ac_compile, and set linker
  6317. # options accordingly.
  6318. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6320. (eval $ac_compile) 2>&5
  6321. ac_status=$?
  6322. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6323. test $ac_status = 0; }; then
  6324. if test yes = "$lt_cv_prog_gnu_ld"; then
  6325. case `/usr/bin/file conftest.$ac_objext` in
  6326. *32-bit*)
  6327. LD="${LD-ld} -melf32bsmip"
  6328. ;;
  6329. *N32*)
  6330. LD="${LD-ld} -melf32bmipn32"
  6331. ;;
  6332. *64-bit*)
  6333. LD="${LD-ld} -melf64bmip"
  6334. ;;
  6335. esac
  6336. else
  6337. case `/usr/bin/file conftest.$ac_objext` in
  6338. *32-bit*)
  6339. LD="${LD-ld} -32"
  6340. ;;
  6341. *N32*)
  6342. LD="${LD-ld} -n32"
  6343. ;;
  6344. *64-bit*)
  6345. LD="${LD-ld} -64"
  6346. ;;
  6347. esac
  6348. fi
  6349. fi
  6350. rm -rf conftest*
  6351. ;;
  6352. mips64*-*linux*)
  6353. # Find out what ABI is being produced by ac_compile, and set linker
  6354. # options accordingly.
  6355. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6357. (eval $ac_compile) 2>&5
  6358. ac_status=$?
  6359. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6360. test $ac_status = 0; }; then
  6361. emul=elf
  6362. case `/usr/bin/file conftest.$ac_objext` in
  6363. *32-bit*)
  6364. emul="${emul}32"
  6365. ;;
  6366. *64-bit*)
  6367. emul="${emul}64"
  6368. ;;
  6369. esac
  6370. case `/usr/bin/file conftest.$ac_objext` in
  6371. *MSB*)
  6372. emul="${emul}btsmip"
  6373. ;;
  6374. *LSB*)
  6375. emul="${emul}ltsmip"
  6376. ;;
  6377. esac
  6378. case `/usr/bin/file conftest.$ac_objext` in
  6379. *N32*)
  6380. emul="${emul}n32"
  6381. ;;
  6382. esac
  6383. LD="${LD-ld} -m $emul"
  6384. fi
  6385. rm -rf conftest*
  6386. ;;
  6387. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6388. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6389. # Find out what ABI is being produced by ac_compile, and set linker
  6390. # options accordingly. Note that the listed cases only cover the
  6391. # situations where additional linker options are needed (such as when
  6392. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6393. # vice versa); the common cases where no linker options are needed do
  6394. # not appear in the list.
  6395. echo 'int i;' > conftest.$ac_ext
  6396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6397. (eval $ac_compile) 2>&5
  6398. ac_status=$?
  6399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6400. test $ac_status = 0; }; then
  6401. case `/usr/bin/file conftest.o` in
  6402. *32-bit*)
  6403. case $host in
  6404. x86_64-*kfreebsd*-gnu)
  6405. LD="${LD-ld} -m elf_i386_fbsd"
  6406. ;;
  6407. x86_64-*linux*|x86_64-gnu*)
  6408. case `/usr/bin/file conftest.o` in
  6409. *x86-64*)
  6410. LD="${LD-ld} -m elf32_x86_64"
  6411. ;;
  6412. *)
  6413. LD="${LD-ld} -m elf_i386"
  6414. ;;
  6415. esac
  6416. ;;
  6417. powerpc64le-*linux*)
  6418. LD="${LD-ld} -m elf32lppclinux"
  6419. ;;
  6420. powerpc64-*linux*)
  6421. LD="${LD-ld} -m elf32ppclinux"
  6422. ;;
  6423. s390x-*linux*)
  6424. LD="${LD-ld} -m elf_s390"
  6425. ;;
  6426. sparc64-*linux*)
  6427. LD="${LD-ld} -m elf32_sparc"
  6428. ;;
  6429. esac
  6430. ;;
  6431. *64-bit*)
  6432. case $host in
  6433. x86_64-*kfreebsd*-gnu)
  6434. LD="${LD-ld} -m elf_x86_64_fbsd"
  6435. ;;
  6436. x86_64-*linux*|x86_64-gnu*)
  6437. LD="${LD-ld} -m elf_x86_64"
  6438. ;;
  6439. powerpcle-*linux*|powerpc64le-*linux*)
  6440. LD="${LD-ld} -m elf64lppc"
  6441. ;;
  6442. powerpc-*linux*|powerpc64-*linux*)
  6443. LD="${LD-ld} -m elf64ppc"
  6444. ;;
  6445. s390*-*linux*|s390*-*tpf*)
  6446. LD="${LD-ld} -m elf64_s390"
  6447. ;;
  6448. sparc*-*linux*)
  6449. LD="${LD-ld} -m elf64_sparc"
  6450. ;;
  6451. esac
  6452. ;;
  6453. esac
  6454. fi
  6455. rm -rf conftest*
  6456. ;;
  6457. *-*-sco3.2v5*)
  6458. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6459. SAVE_CFLAGS=$CFLAGS
  6460. CFLAGS="$CFLAGS -belf"
  6461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6462. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6463. if test ${lt_cv_cc_needs_belf+y}
  6464. then :
  6465. printf %s "(cached) " >&6
  6466. else $as_nop
  6467. ac_ext=c
  6468. ac_cpp='$CPP $CPPFLAGS'
  6469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6473. /* end confdefs.h. */
  6474. int
  6475. main (void)
  6476. {
  6477. ;
  6478. return 0;
  6479. }
  6480. _ACEOF
  6481. if ac_fn_c_try_link "$LINENO"
  6482. then :
  6483. lt_cv_cc_needs_belf=yes
  6484. else $as_nop
  6485. lt_cv_cc_needs_belf=no
  6486. fi
  6487. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6488. conftest$ac_exeext conftest.$ac_ext
  6489. ac_ext=c
  6490. ac_cpp='$CPP $CPPFLAGS'
  6491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6494. fi
  6495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6496. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6497. if test yes != "$lt_cv_cc_needs_belf"; then
  6498. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6499. CFLAGS=$SAVE_CFLAGS
  6500. fi
  6501. ;;
  6502. *-*solaris*)
  6503. # Find out what ABI is being produced by ac_compile, and set linker
  6504. # options accordingly.
  6505. echo 'int i;' > conftest.$ac_ext
  6506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6507. (eval $ac_compile) 2>&5
  6508. ac_status=$?
  6509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }; then
  6511. case `/usr/bin/file conftest.o` in
  6512. *64-bit*)
  6513. case $lt_cv_prog_gnu_ld in
  6514. yes*)
  6515. case $host in
  6516. i?86-*-solaris*|x86_64-*-solaris*)
  6517. LD="${LD-ld} -m elf_x86_64"
  6518. ;;
  6519. sparc*-*-solaris*)
  6520. LD="${LD-ld} -m elf64_sparc"
  6521. ;;
  6522. esac
  6523. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6524. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6525. LD=${LD-ld}_sol2
  6526. fi
  6527. ;;
  6528. *)
  6529. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6530. LD="${LD-ld} -64"
  6531. fi
  6532. ;;
  6533. esac
  6534. ;;
  6535. esac
  6536. fi
  6537. rm -rf conftest*
  6538. ;;
  6539. esac
  6540. need_locks=$enable_libtool_lock
  6541. if test -n "$ac_tool_prefix"; then
  6542. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6543. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6545. printf %s "checking for $ac_word... " >&6; }
  6546. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6547. then :
  6548. printf %s "(cached) " >&6
  6549. else $as_nop
  6550. if test -n "$MANIFEST_TOOL"; then
  6551. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6552. else
  6553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6554. for as_dir in $PATH
  6555. do
  6556. IFS=$as_save_IFS
  6557. case $as_dir in #(((
  6558. '') as_dir=./ ;;
  6559. */) ;;
  6560. *) as_dir=$as_dir/ ;;
  6561. esac
  6562. for ac_exec_ext in '' $ac_executable_extensions; do
  6563. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6564. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6565. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6566. break 2
  6567. fi
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. fi
  6572. fi
  6573. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6574. if test -n "$MANIFEST_TOOL"; then
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6576. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6577. else
  6578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. printf "%s\n" "no" >&6; }
  6580. fi
  6581. fi
  6582. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6583. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6584. # Extract the first word of "mt", so it can be a program name with args.
  6585. set dummy mt; ac_word=$2
  6586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6587. printf %s "checking for $ac_word... " >&6; }
  6588. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6589. then :
  6590. printf %s "(cached) " >&6
  6591. else $as_nop
  6592. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6593. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6594. else
  6595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6596. for as_dir in $PATH
  6597. do
  6598. IFS=$as_save_IFS
  6599. case $as_dir in #(((
  6600. '') as_dir=./ ;;
  6601. */) ;;
  6602. *) as_dir=$as_dir/ ;;
  6603. esac
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6606. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6616. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6618. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6619. else
  6620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. printf "%s\n" "no" >&6; }
  6622. fi
  6623. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6624. MANIFEST_TOOL=":"
  6625. else
  6626. case $cross_compiling:$ac_tool_warned in
  6627. yes:)
  6628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6629. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6630. ac_tool_warned=yes ;;
  6631. esac
  6632. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6633. fi
  6634. else
  6635. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6636. fi
  6637. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6639. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6640. if test ${lt_cv_path_mainfest_tool+y}
  6641. then :
  6642. printf %s "(cached) " >&6
  6643. else $as_nop
  6644. lt_cv_path_mainfest_tool=no
  6645. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6646. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6647. cat conftest.err >&5
  6648. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6649. lt_cv_path_mainfest_tool=yes
  6650. fi
  6651. rm -f conftest*
  6652. fi
  6653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6654. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6655. if test yes != "$lt_cv_path_mainfest_tool"; then
  6656. MANIFEST_TOOL=:
  6657. fi
  6658. case $host_os in
  6659. rhapsody* | darwin*)
  6660. if test -n "$ac_tool_prefix"; then
  6661. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6662. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6664. printf %s "checking for $ac_word... " >&6; }
  6665. if test ${ac_cv_prog_DSYMUTIL+y}
  6666. then :
  6667. printf %s "(cached) " >&6
  6668. else $as_nop
  6669. if test -n "$DSYMUTIL"; then
  6670. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6671. else
  6672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6673. for as_dir in $PATH
  6674. do
  6675. IFS=$as_save_IFS
  6676. case $as_dir in #(((
  6677. '') as_dir=./ ;;
  6678. */) ;;
  6679. *) as_dir=$as_dir/ ;;
  6680. esac
  6681. for ac_exec_ext in '' $ac_executable_extensions; do
  6682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6683. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6685. break 2
  6686. fi
  6687. done
  6688. done
  6689. IFS=$as_save_IFS
  6690. fi
  6691. fi
  6692. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6693. if test -n "$DSYMUTIL"; then
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6695. printf "%s\n" "$DSYMUTIL" >&6; }
  6696. else
  6697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6698. printf "%s\n" "no" >&6; }
  6699. fi
  6700. fi
  6701. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6702. ac_ct_DSYMUTIL=$DSYMUTIL
  6703. # Extract the first word of "dsymutil", so it can be a program name with args.
  6704. set dummy dsymutil; ac_word=$2
  6705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. printf %s "checking for $ac_word... " >&6; }
  6707. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6708. then :
  6709. printf %s "(cached) " >&6
  6710. else $as_nop
  6711. if test -n "$ac_ct_DSYMUTIL"; then
  6712. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6713. else
  6714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6715. for as_dir in $PATH
  6716. do
  6717. IFS=$as_save_IFS
  6718. case $as_dir in #(((
  6719. '') as_dir=./ ;;
  6720. */) ;;
  6721. *) as_dir=$as_dir/ ;;
  6722. esac
  6723. for ac_exec_ext in '' $ac_executable_extensions; do
  6724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6725. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6727. break 2
  6728. fi
  6729. done
  6730. done
  6731. IFS=$as_save_IFS
  6732. fi
  6733. fi
  6734. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6735. if test -n "$ac_ct_DSYMUTIL"; then
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6737. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6738. else
  6739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6740. printf "%s\n" "no" >&6; }
  6741. fi
  6742. if test "x$ac_ct_DSYMUTIL" = x; then
  6743. DSYMUTIL=":"
  6744. else
  6745. case $cross_compiling:$ac_tool_warned in
  6746. yes:)
  6747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6748. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6749. ac_tool_warned=yes ;;
  6750. esac
  6751. DSYMUTIL=$ac_ct_DSYMUTIL
  6752. fi
  6753. else
  6754. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6755. fi
  6756. if test -n "$ac_tool_prefix"; then
  6757. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6758. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6760. printf %s "checking for $ac_word... " >&6; }
  6761. if test ${ac_cv_prog_NMEDIT+y}
  6762. then :
  6763. printf %s "(cached) " >&6
  6764. else $as_nop
  6765. if test -n "$NMEDIT"; then
  6766. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6767. else
  6768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6769. for as_dir in $PATH
  6770. do
  6771. IFS=$as_save_IFS
  6772. case $as_dir in #(((
  6773. '') as_dir=./ ;;
  6774. */) ;;
  6775. *) as_dir=$as_dir/ ;;
  6776. esac
  6777. for ac_exec_ext in '' $ac_executable_extensions; do
  6778. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6779. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6781. break 2
  6782. fi
  6783. done
  6784. done
  6785. IFS=$as_save_IFS
  6786. fi
  6787. fi
  6788. NMEDIT=$ac_cv_prog_NMEDIT
  6789. if test -n "$NMEDIT"; then
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6791. printf "%s\n" "$NMEDIT" >&6; }
  6792. else
  6793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6794. printf "%s\n" "no" >&6; }
  6795. fi
  6796. fi
  6797. if test -z "$ac_cv_prog_NMEDIT"; then
  6798. ac_ct_NMEDIT=$NMEDIT
  6799. # Extract the first word of "nmedit", so it can be a program name with args.
  6800. set dummy nmedit; ac_word=$2
  6801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6802. printf %s "checking for $ac_word... " >&6; }
  6803. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6804. then :
  6805. printf %s "(cached) " >&6
  6806. else $as_nop
  6807. if test -n "$ac_ct_NMEDIT"; then
  6808. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6809. else
  6810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6811. for as_dir in $PATH
  6812. do
  6813. IFS=$as_save_IFS
  6814. case $as_dir in #(((
  6815. '') as_dir=./ ;;
  6816. */) ;;
  6817. *) as_dir=$as_dir/ ;;
  6818. esac
  6819. for ac_exec_ext in '' $ac_executable_extensions; do
  6820. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6821. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6823. break 2
  6824. fi
  6825. done
  6826. done
  6827. IFS=$as_save_IFS
  6828. fi
  6829. fi
  6830. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6831. if test -n "$ac_ct_NMEDIT"; then
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6833. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6834. else
  6835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6836. printf "%s\n" "no" >&6; }
  6837. fi
  6838. if test "x$ac_ct_NMEDIT" = x; then
  6839. NMEDIT=":"
  6840. else
  6841. case $cross_compiling:$ac_tool_warned in
  6842. yes:)
  6843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6844. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6845. ac_tool_warned=yes ;;
  6846. esac
  6847. NMEDIT=$ac_ct_NMEDIT
  6848. fi
  6849. else
  6850. NMEDIT="$ac_cv_prog_NMEDIT"
  6851. fi
  6852. if test -n "$ac_tool_prefix"; then
  6853. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6854. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6856. printf %s "checking for $ac_word... " >&6; }
  6857. if test ${ac_cv_prog_LIPO+y}
  6858. then :
  6859. printf %s "(cached) " >&6
  6860. else $as_nop
  6861. if test -n "$LIPO"; then
  6862. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6863. else
  6864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6865. for as_dir in $PATH
  6866. do
  6867. IFS=$as_save_IFS
  6868. case $as_dir in #(((
  6869. '') as_dir=./ ;;
  6870. */) ;;
  6871. *) as_dir=$as_dir/ ;;
  6872. esac
  6873. for ac_exec_ext in '' $ac_executable_extensions; do
  6874. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6875. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6877. break 2
  6878. fi
  6879. done
  6880. done
  6881. IFS=$as_save_IFS
  6882. fi
  6883. fi
  6884. LIPO=$ac_cv_prog_LIPO
  6885. if test -n "$LIPO"; then
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6887. printf "%s\n" "$LIPO" >&6; }
  6888. else
  6889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6890. printf "%s\n" "no" >&6; }
  6891. fi
  6892. fi
  6893. if test -z "$ac_cv_prog_LIPO"; then
  6894. ac_ct_LIPO=$LIPO
  6895. # Extract the first word of "lipo", so it can be a program name with args.
  6896. set dummy lipo; ac_word=$2
  6897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6898. printf %s "checking for $ac_word... " >&6; }
  6899. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6900. then :
  6901. printf %s "(cached) " >&6
  6902. else $as_nop
  6903. if test -n "$ac_ct_LIPO"; then
  6904. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6905. else
  6906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6907. for as_dir in $PATH
  6908. do
  6909. IFS=$as_save_IFS
  6910. case $as_dir in #(((
  6911. '') as_dir=./ ;;
  6912. */) ;;
  6913. *) as_dir=$as_dir/ ;;
  6914. esac
  6915. for ac_exec_ext in '' $ac_executable_extensions; do
  6916. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6917. ac_cv_prog_ac_ct_LIPO="lipo"
  6918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6919. break 2
  6920. fi
  6921. done
  6922. done
  6923. IFS=$as_save_IFS
  6924. fi
  6925. fi
  6926. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6927. if test -n "$ac_ct_LIPO"; then
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6929. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6930. else
  6931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. printf "%s\n" "no" >&6; }
  6933. fi
  6934. if test "x$ac_ct_LIPO" = x; then
  6935. LIPO=":"
  6936. else
  6937. case $cross_compiling:$ac_tool_warned in
  6938. yes:)
  6939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6940. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6941. ac_tool_warned=yes ;;
  6942. esac
  6943. LIPO=$ac_ct_LIPO
  6944. fi
  6945. else
  6946. LIPO="$ac_cv_prog_LIPO"
  6947. fi
  6948. if test -n "$ac_tool_prefix"; then
  6949. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6950. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6952. printf %s "checking for $ac_word... " >&6; }
  6953. if test ${ac_cv_prog_OTOOL+y}
  6954. then :
  6955. printf %s "(cached) " >&6
  6956. else $as_nop
  6957. if test -n "$OTOOL"; then
  6958. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6959. else
  6960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6961. for as_dir in $PATH
  6962. do
  6963. IFS=$as_save_IFS
  6964. case $as_dir in #(((
  6965. '') as_dir=./ ;;
  6966. */) ;;
  6967. *) as_dir=$as_dir/ ;;
  6968. esac
  6969. for ac_exec_ext in '' $ac_executable_extensions; do
  6970. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6971. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6973. break 2
  6974. fi
  6975. done
  6976. done
  6977. IFS=$as_save_IFS
  6978. fi
  6979. fi
  6980. OTOOL=$ac_cv_prog_OTOOL
  6981. if test -n "$OTOOL"; then
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6983. printf "%s\n" "$OTOOL" >&6; }
  6984. else
  6985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6986. printf "%s\n" "no" >&6; }
  6987. fi
  6988. fi
  6989. if test -z "$ac_cv_prog_OTOOL"; then
  6990. ac_ct_OTOOL=$OTOOL
  6991. # Extract the first word of "otool", so it can be a program name with args.
  6992. set dummy otool; ac_word=$2
  6993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6994. printf %s "checking for $ac_word... " >&6; }
  6995. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6996. then :
  6997. printf %s "(cached) " >&6
  6998. else $as_nop
  6999. if test -n "$ac_ct_OTOOL"; then
  7000. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7001. else
  7002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7003. for as_dir in $PATH
  7004. do
  7005. IFS=$as_save_IFS
  7006. case $as_dir in #(((
  7007. '') as_dir=./ ;;
  7008. */) ;;
  7009. *) as_dir=$as_dir/ ;;
  7010. esac
  7011. for ac_exec_ext in '' $ac_executable_extensions; do
  7012. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7013. ac_cv_prog_ac_ct_OTOOL="otool"
  7014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7015. break 2
  7016. fi
  7017. done
  7018. done
  7019. IFS=$as_save_IFS
  7020. fi
  7021. fi
  7022. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7023. if test -n "$ac_ct_OTOOL"; then
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7025. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7026. else
  7027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7028. printf "%s\n" "no" >&6; }
  7029. fi
  7030. if test "x$ac_ct_OTOOL" = x; then
  7031. OTOOL=":"
  7032. else
  7033. case $cross_compiling:$ac_tool_warned in
  7034. yes:)
  7035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7036. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7037. ac_tool_warned=yes ;;
  7038. esac
  7039. OTOOL=$ac_ct_OTOOL
  7040. fi
  7041. else
  7042. OTOOL="$ac_cv_prog_OTOOL"
  7043. fi
  7044. if test -n "$ac_tool_prefix"; then
  7045. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7046. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7048. printf %s "checking for $ac_word... " >&6; }
  7049. if test ${ac_cv_prog_OTOOL64+y}
  7050. then :
  7051. printf %s "(cached) " >&6
  7052. else $as_nop
  7053. if test -n "$OTOOL64"; then
  7054. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7055. else
  7056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7057. for as_dir in $PATH
  7058. do
  7059. IFS=$as_save_IFS
  7060. case $as_dir in #(((
  7061. '') as_dir=./ ;;
  7062. */) ;;
  7063. *) as_dir=$as_dir/ ;;
  7064. esac
  7065. for ac_exec_ext in '' $ac_executable_extensions; do
  7066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7067. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7069. break 2
  7070. fi
  7071. done
  7072. done
  7073. IFS=$as_save_IFS
  7074. fi
  7075. fi
  7076. OTOOL64=$ac_cv_prog_OTOOL64
  7077. if test -n "$OTOOL64"; then
  7078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7079. printf "%s\n" "$OTOOL64" >&6; }
  7080. else
  7081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7082. printf "%s\n" "no" >&6; }
  7083. fi
  7084. fi
  7085. if test -z "$ac_cv_prog_OTOOL64"; then
  7086. ac_ct_OTOOL64=$OTOOL64
  7087. # Extract the first word of "otool64", so it can be a program name with args.
  7088. set dummy otool64; ac_word=$2
  7089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7090. printf %s "checking for $ac_word... " >&6; }
  7091. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7092. then :
  7093. printf %s "(cached) " >&6
  7094. else $as_nop
  7095. if test -n "$ac_ct_OTOOL64"; then
  7096. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7097. else
  7098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7099. for as_dir in $PATH
  7100. do
  7101. IFS=$as_save_IFS
  7102. case $as_dir in #(((
  7103. '') as_dir=./ ;;
  7104. */) ;;
  7105. *) as_dir=$as_dir/ ;;
  7106. esac
  7107. for ac_exec_ext in '' $ac_executable_extensions; do
  7108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7109. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7111. break 2
  7112. fi
  7113. done
  7114. done
  7115. IFS=$as_save_IFS
  7116. fi
  7117. fi
  7118. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7119. if test -n "$ac_ct_OTOOL64"; then
  7120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7121. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7122. else
  7123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7124. printf "%s\n" "no" >&6; }
  7125. fi
  7126. if test "x$ac_ct_OTOOL64" = x; then
  7127. OTOOL64=":"
  7128. else
  7129. case $cross_compiling:$ac_tool_warned in
  7130. yes:)
  7131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7132. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7133. ac_tool_warned=yes ;;
  7134. esac
  7135. OTOOL64=$ac_ct_OTOOL64
  7136. fi
  7137. else
  7138. OTOOL64="$ac_cv_prog_OTOOL64"
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7141. printf %s "checking for -single_module linker flag... " >&6; }
  7142. if test ${lt_cv_apple_cc_single_mod+y}
  7143. then :
  7144. printf %s "(cached) " >&6
  7145. else $as_nop
  7146. lt_cv_apple_cc_single_mod=no
  7147. if test -z "$LT_MULTI_MODULE"; then
  7148. # By default we will add the -single_module flag. You can override
  7149. # by either setting the environment variable LT_MULTI_MODULE
  7150. # non-empty at configure time, or by adding -multi_module to the
  7151. # link flags.
  7152. rm -rf libconftest.dylib*
  7153. echo "int foo(void){return 1;}" > conftest.c
  7154. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7155. -dynamiclib -Wl,-single_module conftest.c" >&5
  7156. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7157. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7158. _lt_result=$?
  7159. # If there is a non-empty error log, and "single_module"
  7160. # appears in it, assume the flag caused a linker warning
  7161. if test -s conftest.err && $GREP single_module conftest.err; then
  7162. cat conftest.err >&5
  7163. # Otherwise, if the output was created with a 0 exit code from
  7164. # the compiler, it worked.
  7165. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7166. lt_cv_apple_cc_single_mod=yes
  7167. else
  7168. cat conftest.err >&5
  7169. fi
  7170. rm -rf libconftest.dylib*
  7171. rm -f conftest.*
  7172. fi
  7173. fi
  7174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7175. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7177. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7178. if test ${lt_cv_ld_exported_symbols_list+y}
  7179. then :
  7180. printf %s "(cached) " >&6
  7181. else $as_nop
  7182. lt_cv_ld_exported_symbols_list=no
  7183. save_LDFLAGS=$LDFLAGS
  7184. echo "_main" > conftest.sym
  7185. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7187. /* end confdefs.h. */
  7188. int
  7189. main (void)
  7190. {
  7191. ;
  7192. return 0;
  7193. }
  7194. _ACEOF
  7195. if ac_fn_c_try_link "$LINENO"
  7196. then :
  7197. lt_cv_ld_exported_symbols_list=yes
  7198. else $as_nop
  7199. lt_cv_ld_exported_symbols_list=no
  7200. fi
  7201. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7202. conftest$ac_exeext conftest.$ac_ext
  7203. LDFLAGS=$save_LDFLAGS
  7204. fi
  7205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7206. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7208. printf %s "checking for -force_load linker flag... " >&6; }
  7209. if test ${lt_cv_ld_force_load+y}
  7210. then :
  7211. printf %s "(cached) " >&6
  7212. else $as_nop
  7213. lt_cv_ld_force_load=no
  7214. cat > conftest.c << _LT_EOF
  7215. int forced_loaded() { return 2;}
  7216. _LT_EOF
  7217. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7218. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7219. echo "$AR cru libconftest.a conftest.o" >&5
  7220. $AR cru libconftest.a conftest.o 2>&5
  7221. echo "$RANLIB libconftest.a" >&5
  7222. $RANLIB libconftest.a 2>&5
  7223. cat > conftest.c << _LT_EOF
  7224. int main() { return 0;}
  7225. _LT_EOF
  7226. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7227. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7228. _lt_result=$?
  7229. if test -s conftest.err && $GREP force_load conftest.err; then
  7230. cat conftest.err >&5
  7231. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7232. lt_cv_ld_force_load=yes
  7233. else
  7234. cat conftest.err >&5
  7235. fi
  7236. rm -f conftest.err libconftest.a conftest conftest.c
  7237. rm -rf conftest.dSYM
  7238. fi
  7239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7240. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7241. case $host_os in
  7242. rhapsody* | darwin1.[012])
  7243. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7244. darwin1.*)
  7245. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7246. darwin*)
  7247. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7248. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7249. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7250. *)
  7251. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7252. esac
  7253. ;;
  7254. esac
  7255. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7256. _lt_dar_single_mod='$single_module'
  7257. fi
  7258. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7259. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7260. else
  7261. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7262. fi
  7263. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7264. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7265. else
  7266. _lt_dsymutil=
  7267. fi
  7268. ;;
  7269. esac
  7270. # func_munge_path_list VARIABLE PATH
  7271. # -----------------------------------
  7272. # VARIABLE is name of variable containing _space_ separated list of
  7273. # directories to be munged by the contents of PATH, which is string
  7274. # having a format:
  7275. # "DIR[:DIR]:"
  7276. # string "DIR[ DIR]" will be prepended to VARIABLE
  7277. # ":DIR[:DIR]"
  7278. # string "DIR[ DIR]" will be appended to VARIABLE
  7279. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7280. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7281. # "DIRA[ DIRA]" will be appended to VARIABLE
  7282. # "DIR[:DIR]"
  7283. # VARIABLE will be replaced by "DIR[ DIR]"
  7284. func_munge_path_list ()
  7285. {
  7286. case x$2 in
  7287. x)
  7288. ;;
  7289. *:)
  7290. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7291. ;;
  7292. x:*)
  7293. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7294. ;;
  7295. *::*)
  7296. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7297. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7298. ;;
  7299. *)
  7300. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7301. ;;
  7302. esac
  7303. }
  7304. ac_header= ac_cache=
  7305. for ac_item in $ac_header_c_list
  7306. do
  7307. if test $ac_cache; then
  7308. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7309. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7310. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7311. fi
  7312. ac_header= ac_cache=
  7313. elif test $ac_header; then
  7314. ac_cache=$ac_item
  7315. else
  7316. ac_header=$ac_item
  7317. fi
  7318. done
  7319. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7320. then :
  7321. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7322. fi
  7323. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7324. "
  7325. if test "x$ac_cv_header_dlfcn_h" = xyes
  7326. then :
  7327. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7328. fi
  7329. # Set options
  7330. enable_win32_dll=yes
  7331. case $host in
  7332. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7333. if test -n "$ac_tool_prefix"; then
  7334. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7335. set dummy ${ac_tool_prefix}as; ac_word=$2
  7336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7337. printf %s "checking for $ac_word... " >&6; }
  7338. if test ${ac_cv_prog_AS+y}
  7339. then :
  7340. printf %s "(cached) " >&6
  7341. else $as_nop
  7342. if test -n "$AS"; then
  7343. ac_cv_prog_AS="$AS" # Let the user override the test.
  7344. else
  7345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7346. for as_dir in $PATH
  7347. do
  7348. IFS=$as_save_IFS
  7349. case $as_dir in #(((
  7350. '') as_dir=./ ;;
  7351. */) ;;
  7352. *) as_dir=$as_dir/ ;;
  7353. esac
  7354. for ac_exec_ext in '' $ac_executable_extensions; do
  7355. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7356. ac_cv_prog_AS="${ac_tool_prefix}as"
  7357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7358. break 2
  7359. fi
  7360. done
  7361. done
  7362. IFS=$as_save_IFS
  7363. fi
  7364. fi
  7365. AS=$ac_cv_prog_AS
  7366. if test -n "$AS"; then
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7368. printf "%s\n" "$AS" >&6; }
  7369. else
  7370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7371. printf "%s\n" "no" >&6; }
  7372. fi
  7373. fi
  7374. if test -z "$ac_cv_prog_AS"; then
  7375. ac_ct_AS=$AS
  7376. # Extract the first word of "as", so it can be a program name with args.
  7377. set dummy as; ac_word=$2
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. printf %s "checking for $ac_word... " >&6; }
  7380. if test ${ac_cv_prog_ac_ct_AS+y}
  7381. then :
  7382. printf %s "(cached) " >&6
  7383. else $as_nop
  7384. if test -n "$ac_ct_AS"; then
  7385. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7386. else
  7387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7388. for as_dir in $PATH
  7389. do
  7390. IFS=$as_save_IFS
  7391. case $as_dir in #(((
  7392. '') as_dir=./ ;;
  7393. */) ;;
  7394. *) as_dir=$as_dir/ ;;
  7395. esac
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7398. ac_cv_prog_ac_ct_AS="as"
  7399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7408. if test -n "$ac_ct_AS"; then
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7410. printf "%s\n" "$ac_ct_AS" >&6; }
  7411. else
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. printf "%s\n" "no" >&6; }
  7414. fi
  7415. if test "x$ac_ct_AS" = x; then
  7416. AS="false"
  7417. else
  7418. case $cross_compiling:$ac_tool_warned in
  7419. yes:)
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7421. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7422. ac_tool_warned=yes ;;
  7423. esac
  7424. AS=$ac_ct_AS
  7425. fi
  7426. else
  7427. AS="$ac_cv_prog_AS"
  7428. fi
  7429. if test -n "$ac_tool_prefix"; then
  7430. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7431. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7433. printf %s "checking for $ac_word... " >&6; }
  7434. if test ${ac_cv_prog_DLLTOOL+y}
  7435. then :
  7436. printf %s "(cached) " >&6
  7437. else $as_nop
  7438. if test -n "$DLLTOOL"; then
  7439. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7440. else
  7441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7442. for as_dir in $PATH
  7443. do
  7444. IFS=$as_save_IFS
  7445. case $as_dir in #(((
  7446. '') as_dir=./ ;;
  7447. */) ;;
  7448. *) as_dir=$as_dir/ ;;
  7449. esac
  7450. for ac_exec_ext in '' $ac_executable_extensions; do
  7451. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7452. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7454. break 2
  7455. fi
  7456. done
  7457. done
  7458. IFS=$as_save_IFS
  7459. fi
  7460. fi
  7461. DLLTOOL=$ac_cv_prog_DLLTOOL
  7462. if test -n "$DLLTOOL"; then
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7464. printf "%s\n" "$DLLTOOL" >&6; }
  7465. else
  7466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7467. printf "%s\n" "no" >&6; }
  7468. fi
  7469. fi
  7470. if test -z "$ac_cv_prog_DLLTOOL"; then
  7471. ac_ct_DLLTOOL=$DLLTOOL
  7472. # Extract the first word of "dlltool", so it can be a program name with args.
  7473. set dummy dlltool; ac_word=$2
  7474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7475. printf %s "checking for $ac_word... " >&6; }
  7476. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7477. then :
  7478. printf %s "(cached) " >&6
  7479. else $as_nop
  7480. if test -n "$ac_ct_DLLTOOL"; then
  7481. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7482. else
  7483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7484. for as_dir in $PATH
  7485. do
  7486. IFS=$as_save_IFS
  7487. case $as_dir in #(((
  7488. '') as_dir=./ ;;
  7489. */) ;;
  7490. *) as_dir=$as_dir/ ;;
  7491. esac
  7492. for ac_exec_ext in '' $ac_executable_extensions; do
  7493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7494. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7496. break 2
  7497. fi
  7498. done
  7499. done
  7500. IFS=$as_save_IFS
  7501. fi
  7502. fi
  7503. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7504. if test -n "$ac_ct_DLLTOOL"; then
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7506. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7507. else
  7508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7509. printf "%s\n" "no" >&6; }
  7510. fi
  7511. if test "x$ac_ct_DLLTOOL" = x; then
  7512. DLLTOOL="false"
  7513. else
  7514. case $cross_compiling:$ac_tool_warned in
  7515. yes:)
  7516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7517. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7518. ac_tool_warned=yes ;;
  7519. esac
  7520. DLLTOOL=$ac_ct_DLLTOOL
  7521. fi
  7522. else
  7523. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7524. fi
  7525. if test -n "$ac_tool_prefix"; then
  7526. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7527. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7529. printf %s "checking for $ac_word... " >&6; }
  7530. if test ${ac_cv_prog_OBJDUMP+y}
  7531. then :
  7532. printf %s "(cached) " >&6
  7533. else $as_nop
  7534. if test -n "$OBJDUMP"; then
  7535. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7536. else
  7537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7538. for as_dir in $PATH
  7539. do
  7540. IFS=$as_save_IFS
  7541. case $as_dir in #(((
  7542. '') as_dir=./ ;;
  7543. */) ;;
  7544. *) as_dir=$as_dir/ ;;
  7545. esac
  7546. for ac_exec_ext in '' $ac_executable_extensions; do
  7547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7548. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7550. break 2
  7551. fi
  7552. done
  7553. done
  7554. IFS=$as_save_IFS
  7555. fi
  7556. fi
  7557. OBJDUMP=$ac_cv_prog_OBJDUMP
  7558. if test -n "$OBJDUMP"; then
  7559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7560. printf "%s\n" "$OBJDUMP" >&6; }
  7561. else
  7562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7563. printf "%s\n" "no" >&6; }
  7564. fi
  7565. fi
  7566. if test -z "$ac_cv_prog_OBJDUMP"; then
  7567. ac_ct_OBJDUMP=$OBJDUMP
  7568. # Extract the first word of "objdump", so it can be a program name with args.
  7569. set dummy objdump; ac_word=$2
  7570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7571. printf %s "checking for $ac_word... " >&6; }
  7572. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7573. then :
  7574. printf %s "(cached) " >&6
  7575. else $as_nop
  7576. if test -n "$ac_ct_OBJDUMP"; then
  7577. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7578. else
  7579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7580. for as_dir in $PATH
  7581. do
  7582. IFS=$as_save_IFS
  7583. case $as_dir in #(((
  7584. '') as_dir=./ ;;
  7585. */) ;;
  7586. *) as_dir=$as_dir/ ;;
  7587. esac
  7588. for ac_exec_ext in '' $ac_executable_extensions; do
  7589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7590. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7592. break 2
  7593. fi
  7594. done
  7595. done
  7596. IFS=$as_save_IFS
  7597. fi
  7598. fi
  7599. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7600. if test -n "$ac_ct_OBJDUMP"; then
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7602. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7603. else
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. printf "%s\n" "no" >&6; }
  7606. fi
  7607. if test "x$ac_ct_OBJDUMP" = x; then
  7608. OBJDUMP="false"
  7609. else
  7610. case $cross_compiling:$ac_tool_warned in
  7611. yes:)
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7613. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7614. ac_tool_warned=yes ;;
  7615. esac
  7616. OBJDUMP=$ac_ct_OBJDUMP
  7617. fi
  7618. else
  7619. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7620. fi
  7621. ;;
  7622. esac
  7623. test -z "$AS" && AS=as
  7624. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7625. test -z "$OBJDUMP" && OBJDUMP=objdump
  7626. enable_dlopen=no
  7627. # Check whether --enable-shared was given.
  7628. if test ${enable_shared+y}
  7629. then :
  7630. enableval=$enable_shared; p=${PACKAGE-default}
  7631. case $enableval in
  7632. yes) enable_shared=yes ;;
  7633. no) enable_shared=no ;;
  7634. *)
  7635. enable_shared=no
  7636. # Look at the argument we got. We use all the common list separators.
  7637. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7638. for pkg in $enableval; do
  7639. IFS=$lt_save_ifs
  7640. if test "X$pkg" = "X$p"; then
  7641. enable_shared=yes
  7642. fi
  7643. done
  7644. IFS=$lt_save_ifs
  7645. ;;
  7646. esac
  7647. else $as_nop
  7648. enable_shared=yes
  7649. fi
  7650. # Check whether --enable-static was given.
  7651. if test ${enable_static+y}
  7652. then :
  7653. enableval=$enable_static; p=${PACKAGE-default}
  7654. case $enableval in
  7655. yes) enable_static=yes ;;
  7656. no) enable_static=no ;;
  7657. *)
  7658. enable_static=no
  7659. # Look at the argument we got. We use all the common list separators.
  7660. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7661. for pkg in $enableval; do
  7662. IFS=$lt_save_ifs
  7663. if test "X$pkg" = "X$p"; then
  7664. enable_static=yes
  7665. fi
  7666. done
  7667. IFS=$lt_save_ifs
  7668. ;;
  7669. esac
  7670. else $as_nop
  7671. enable_static=yes
  7672. fi
  7673. # Check whether --with-pic was given.
  7674. if test ${with_pic+y}
  7675. then :
  7676. withval=$with_pic; lt_p=${PACKAGE-default}
  7677. case $withval in
  7678. yes|no) pic_mode=$withval ;;
  7679. *)
  7680. pic_mode=default
  7681. # Look at the argument we got. We use all the common list separators.
  7682. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7683. for lt_pkg in $withval; do
  7684. IFS=$lt_save_ifs
  7685. if test "X$lt_pkg" = "X$lt_p"; then
  7686. pic_mode=yes
  7687. fi
  7688. done
  7689. IFS=$lt_save_ifs
  7690. ;;
  7691. esac
  7692. else $as_nop
  7693. pic_mode=default
  7694. fi
  7695. # Check whether --enable-fast-install was given.
  7696. if test ${enable_fast_install+y}
  7697. then :
  7698. enableval=$enable_fast_install; p=${PACKAGE-default}
  7699. case $enableval in
  7700. yes) enable_fast_install=yes ;;
  7701. no) enable_fast_install=no ;;
  7702. *)
  7703. enable_fast_install=no
  7704. # Look at the argument we got. We use all the common list separators.
  7705. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7706. for pkg in $enableval; do
  7707. IFS=$lt_save_ifs
  7708. if test "X$pkg" = "X$p"; then
  7709. enable_fast_install=yes
  7710. fi
  7711. done
  7712. IFS=$lt_save_ifs
  7713. ;;
  7714. esac
  7715. else $as_nop
  7716. enable_fast_install=yes
  7717. fi
  7718. shared_archive_member_spec=
  7719. case $host,$enable_shared in
  7720. power*-*-aix[5-9]*,yes)
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7722. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7723. # Check whether --with-aix-soname was given.
  7724. if test ${with_aix_soname+y}
  7725. then :
  7726. withval=$with_aix_soname; case $withval in
  7727. aix|svr4|both)
  7728. ;;
  7729. *)
  7730. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7731. ;;
  7732. esac
  7733. lt_cv_with_aix_soname=$with_aix_soname
  7734. else $as_nop
  7735. if test ${lt_cv_with_aix_soname+y}
  7736. then :
  7737. printf %s "(cached) " >&6
  7738. else $as_nop
  7739. lt_cv_with_aix_soname=aix
  7740. fi
  7741. with_aix_soname=$lt_cv_with_aix_soname
  7742. fi
  7743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7744. printf "%s\n" "$with_aix_soname" >&6; }
  7745. if test aix != "$with_aix_soname"; then
  7746. # For the AIX way of multilib, we name the shared archive member
  7747. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7748. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7749. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7750. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7751. if test 64 = "${OBJECT_MODE-32}"; then
  7752. shared_archive_member_spec=shr_64
  7753. else
  7754. shared_archive_member_spec=shr
  7755. fi
  7756. fi
  7757. ;;
  7758. *)
  7759. with_aix_soname=aix
  7760. ;;
  7761. esac
  7762. # This can be used to rebuild libtool when needed
  7763. LIBTOOL_DEPS=$ltmain
  7764. # Always use our own libtool.
  7765. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7766. test -z "$LN_S" && LN_S="ln -s"
  7767. if test -n "${ZSH_VERSION+set}"; then
  7768. setopt NO_GLOB_SUBST
  7769. fi
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7771. printf %s "checking for objdir... " >&6; }
  7772. if test ${lt_cv_objdir+y}
  7773. then :
  7774. printf %s "(cached) " >&6
  7775. else $as_nop
  7776. rm -f .libs 2>/dev/null
  7777. mkdir .libs 2>/dev/null
  7778. if test -d .libs; then
  7779. lt_cv_objdir=.libs
  7780. else
  7781. # MS-DOS does not allow filenames that begin with a dot.
  7782. lt_cv_objdir=_libs
  7783. fi
  7784. rmdir .libs 2>/dev/null
  7785. fi
  7786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7787. printf "%s\n" "$lt_cv_objdir" >&6; }
  7788. objdir=$lt_cv_objdir
  7789. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7790. case $host_os in
  7791. aix3*)
  7792. # AIX sometimes has problems with the GCC collect2 program. For some
  7793. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7794. # vanish in a puff of smoke.
  7795. if test set != "${COLLECT_NAMES+set}"; then
  7796. COLLECT_NAMES=
  7797. export COLLECT_NAMES
  7798. fi
  7799. ;;
  7800. esac
  7801. # Global variables:
  7802. ofile=libtool
  7803. can_build_shared=yes
  7804. # All known linkers require a '.a' archive for static linking (except MSVC and
  7805. # ICC, which need '.lib').
  7806. libext=a
  7807. with_gnu_ld=$lt_cv_prog_gnu_ld
  7808. old_CC=$CC
  7809. old_CFLAGS=$CFLAGS
  7810. # Set sane defaults for various variables
  7811. test -z "$CC" && CC=cc
  7812. test -z "$LTCC" && LTCC=$CC
  7813. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7814. test -z "$LD" && LD=ld
  7815. test -z "$ac_objext" && ac_objext=o
  7816. func_cc_basename $compiler
  7817. cc_basename=$func_cc_basename_result
  7818. # Only perform the check for file, if the check method requires it
  7819. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7820. case $deplibs_check_method in
  7821. file_magic*)
  7822. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7824. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7825. if test ${lt_cv_path_MAGIC_CMD+y}
  7826. then :
  7827. printf %s "(cached) " >&6
  7828. else $as_nop
  7829. case $MAGIC_CMD in
  7830. [\\/*] | ?:[\\/]*)
  7831. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7832. ;;
  7833. *)
  7834. lt_save_MAGIC_CMD=$MAGIC_CMD
  7835. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7836. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7837. for ac_dir in $ac_dummy; do
  7838. IFS=$lt_save_ifs
  7839. test -z "$ac_dir" && ac_dir=.
  7840. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7841. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7842. if test -n "$file_magic_test_file"; then
  7843. case $deplibs_check_method in
  7844. "file_magic "*)
  7845. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7846. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7847. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7848. $EGREP "$file_magic_regex" > /dev/null; then
  7849. :
  7850. else
  7851. cat <<_LT_EOF 1>&2
  7852. *** Warning: the command libtool uses to detect shared libraries,
  7853. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7854. *** The result is that libtool may fail to recognize shared libraries
  7855. *** as such. This will affect the creation of libtool libraries that
  7856. *** depend on shared libraries, but programs linked with such libtool
  7857. *** libraries will work regardless of this problem. Nevertheless, you
  7858. *** may want to report the problem to your system manager and/or to
  7859. *** bug-libtool@gnu.org
  7860. _LT_EOF
  7861. fi ;;
  7862. esac
  7863. fi
  7864. break
  7865. fi
  7866. done
  7867. IFS=$lt_save_ifs
  7868. MAGIC_CMD=$lt_save_MAGIC_CMD
  7869. ;;
  7870. esac
  7871. fi
  7872. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7873. if test -n "$MAGIC_CMD"; then
  7874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7875. printf "%s\n" "$MAGIC_CMD" >&6; }
  7876. else
  7877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7878. printf "%s\n" "no" >&6; }
  7879. fi
  7880. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7881. if test -n "$ac_tool_prefix"; then
  7882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7883. printf %s "checking for file... " >&6; }
  7884. if test ${lt_cv_path_MAGIC_CMD+y}
  7885. then :
  7886. printf %s "(cached) " >&6
  7887. else $as_nop
  7888. case $MAGIC_CMD in
  7889. [\\/*] | ?:[\\/]*)
  7890. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7891. ;;
  7892. *)
  7893. lt_save_MAGIC_CMD=$MAGIC_CMD
  7894. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7895. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7896. for ac_dir in $ac_dummy; do
  7897. IFS=$lt_save_ifs
  7898. test -z "$ac_dir" && ac_dir=.
  7899. if test -f "$ac_dir/file"; then
  7900. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7901. if test -n "$file_magic_test_file"; then
  7902. case $deplibs_check_method in
  7903. "file_magic "*)
  7904. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7905. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7906. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7907. $EGREP "$file_magic_regex" > /dev/null; then
  7908. :
  7909. else
  7910. cat <<_LT_EOF 1>&2
  7911. *** Warning: the command libtool uses to detect shared libraries,
  7912. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7913. *** The result is that libtool may fail to recognize shared libraries
  7914. *** as such. This will affect the creation of libtool libraries that
  7915. *** depend on shared libraries, but programs linked with such libtool
  7916. *** libraries will work regardless of this problem. Nevertheless, you
  7917. *** may want to report the problem to your system manager and/or to
  7918. *** bug-libtool@gnu.org
  7919. _LT_EOF
  7920. fi ;;
  7921. esac
  7922. fi
  7923. break
  7924. fi
  7925. done
  7926. IFS=$lt_save_ifs
  7927. MAGIC_CMD=$lt_save_MAGIC_CMD
  7928. ;;
  7929. esac
  7930. fi
  7931. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7932. if test -n "$MAGIC_CMD"; then
  7933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7934. printf "%s\n" "$MAGIC_CMD" >&6; }
  7935. else
  7936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7937. printf "%s\n" "no" >&6; }
  7938. fi
  7939. else
  7940. MAGIC_CMD=:
  7941. fi
  7942. fi
  7943. fi
  7944. ;;
  7945. esac
  7946. # Use C for the default configuration in the libtool script
  7947. lt_save_CC=$CC
  7948. ac_ext=c
  7949. ac_cpp='$CPP $CPPFLAGS'
  7950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7953. # Source file extension for C test sources.
  7954. ac_ext=c
  7955. # Object file extension for compiled C test sources.
  7956. objext=o
  7957. objext=$objext
  7958. # Code to be used in simple compile tests
  7959. lt_simple_compile_test_code="int some_variable = 0;"
  7960. # Code to be used in simple link tests
  7961. lt_simple_link_test_code='int main(){return(0);}'
  7962. # If no C compiler was specified, use CC.
  7963. LTCC=${LTCC-"$CC"}
  7964. # If no C compiler flags were specified, use CFLAGS.
  7965. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7966. # Allow CC to be a program name with arguments.
  7967. compiler=$CC
  7968. # Save the default compiler, since it gets overwritten when the other
  7969. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7970. compiler_DEFAULT=$CC
  7971. # save warnings/boilerplate of simple test code
  7972. ac_outfile=conftest.$ac_objext
  7973. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7974. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7975. _lt_compiler_boilerplate=`cat conftest.err`
  7976. $RM conftest*
  7977. ac_outfile=conftest.$ac_objext
  7978. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7979. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7980. _lt_linker_boilerplate=`cat conftest.err`
  7981. $RM -r conftest*
  7982. ## CAVEAT EMPTOR:
  7983. ## There is no encapsulation within the following macros, do not change
  7984. ## the running order or otherwise move them around unless you know exactly
  7985. ## what you are doing...
  7986. if test -n "$compiler"; then
  7987. lt_prog_compiler_no_builtin_flag=
  7988. if test yes = "$GCC"; then
  7989. case $cc_basename in
  7990. nvcc*)
  7991. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7992. *)
  7993. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7994. esac
  7995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7996. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7997. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7998. then :
  7999. printf %s "(cached) " >&6
  8000. else $as_nop
  8001. lt_cv_prog_compiler_rtti_exceptions=no
  8002. ac_outfile=conftest.$ac_objext
  8003. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8004. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8005. # Insert the option either (1) after the last *FLAGS variable, or
  8006. # (2) before a word containing "conftest.", or (3) at the end.
  8007. # Note that $ac_compile itself does not contain backslashes and begins
  8008. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8009. # The option is referenced via a variable to avoid confusing sed.
  8010. lt_compile=`echo "$ac_compile" | $SED \
  8011. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8012. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8013. -e 's:$: $lt_compiler_flag:'`
  8014. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8015. (eval "$lt_compile" 2>conftest.err)
  8016. ac_status=$?
  8017. cat conftest.err >&5
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. if (exit $ac_status) && test -s "$ac_outfile"; then
  8020. # The compiler can only warn and ignore the option if not recognized
  8021. # So say no if there are warnings other than the usual output.
  8022. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8023. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8024. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8025. lt_cv_prog_compiler_rtti_exceptions=yes
  8026. fi
  8027. fi
  8028. $RM conftest*
  8029. fi
  8030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8031. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8032. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8033. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8034. else
  8035. :
  8036. fi
  8037. fi
  8038. lt_prog_compiler_wl=
  8039. lt_prog_compiler_pic=
  8040. lt_prog_compiler_static=
  8041. if test yes = "$GCC"; then
  8042. lt_prog_compiler_wl='-Wl,'
  8043. lt_prog_compiler_static='-static'
  8044. case $host_os in
  8045. aix*)
  8046. # All AIX code is PIC.
  8047. if test ia64 = "$host_cpu"; then
  8048. # AIX 5 now supports IA64 processor
  8049. lt_prog_compiler_static='-Bstatic'
  8050. fi
  8051. lt_prog_compiler_pic='-fPIC'
  8052. ;;
  8053. amigaos*)
  8054. case $host_cpu in
  8055. powerpc)
  8056. # see comment about AmigaOS4 .so support
  8057. lt_prog_compiler_pic='-fPIC'
  8058. ;;
  8059. m68k)
  8060. # FIXME: we need at least 68020 code to build shared libraries, but
  8061. # adding the '-m68020' flag to GCC prevents building anything better,
  8062. # like '-m68040'.
  8063. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8064. ;;
  8065. esac
  8066. ;;
  8067. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8068. # PIC is the default for these OSes.
  8069. ;;
  8070. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8071. # This hack is so that the source file can tell whether it is being
  8072. # built for inclusion in a dll (and should export symbols for example).
  8073. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8074. # (--disable-auto-import) libraries
  8075. lt_prog_compiler_pic='-DDLL_EXPORT'
  8076. case $host_os in
  8077. os2*)
  8078. lt_prog_compiler_static='$wl-static'
  8079. ;;
  8080. esac
  8081. ;;
  8082. darwin* | rhapsody*)
  8083. # PIC is the default on this platform
  8084. # Common symbols not allowed in MH_DYLIB files
  8085. lt_prog_compiler_pic='-fno-common'
  8086. ;;
  8087. haiku*)
  8088. # PIC is the default for Haiku.
  8089. # The "-static" flag exists, but is broken.
  8090. lt_prog_compiler_static=
  8091. ;;
  8092. hpux*)
  8093. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8094. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8095. # sets the default TLS model and affects inlining.
  8096. case $host_cpu in
  8097. hppa*64*)
  8098. # +Z the default
  8099. ;;
  8100. *)
  8101. lt_prog_compiler_pic='-fPIC'
  8102. ;;
  8103. esac
  8104. ;;
  8105. interix[3-9]*)
  8106. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8107. # Instead, we relocate shared libraries at runtime.
  8108. ;;
  8109. msdosdjgpp*)
  8110. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8111. # on systems that don't support them.
  8112. lt_prog_compiler_can_build_shared=no
  8113. enable_shared=no
  8114. ;;
  8115. *nto* | *qnx*)
  8116. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8117. # it will coredump.
  8118. lt_prog_compiler_pic='-fPIC -shared'
  8119. ;;
  8120. sysv4*MP*)
  8121. if test -d /usr/nec; then
  8122. lt_prog_compiler_pic=-Kconform_pic
  8123. fi
  8124. ;;
  8125. *)
  8126. lt_prog_compiler_pic='-fPIC'
  8127. ;;
  8128. esac
  8129. case $cc_basename in
  8130. nvcc*) # Cuda Compiler Driver 2.2
  8131. lt_prog_compiler_wl='-Xlinker '
  8132. if test -n "$lt_prog_compiler_pic"; then
  8133. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8134. fi
  8135. ;;
  8136. esac
  8137. else
  8138. # PORTME Check for flag to pass linker flags through the system compiler.
  8139. case $host_os in
  8140. aix*)
  8141. lt_prog_compiler_wl='-Wl,'
  8142. if test ia64 = "$host_cpu"; then
  8143. # AIX 5 now supports IA64 processor
  8144. lt_prog_compiler_static='-Bstatic'
  8145. else
  8146. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8147. fi
  8148. ;;
  8149. darwin* | rhapsody*)
  8150. # PIC is the default on this platform
  8151. # Common symbols not allowed in MH_DYLIB files
  8152. lt_prog_compiler_pic='-fno-common'
  8153. case $cc_basename in
  8154. nagfor*)
  8155. # NAG Fortran compiler
  8156. lt_prog_compiler_wl='-Wl,-Wl,,'
  8157. lt_prog_compiler_pic='-PIC'
  8158. lt_prog_compiler_static='-Bstatic'
  8159. ;;
  8160. esac
  8161. ;;
  8162. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8163. # This hack is so that the source file can tell whether it is being
  8164. # built for inclusion in a dll (and should export symbols for example).
  8165. lt_prog_compiler_pic='-DDLL_EXPORT'
  8166. case $host_os in
  8167. os2*)
  8168. lt_prog_compiler_static='$wl-static'
  8169. ;;
  8170. esac
  8171. ;;
  8172. hpux9* | hpux10* | hpux11*)
  8173. lt_prog_compiler_wl='-Wl,'
  8174. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8175. # not for PA HP-UX.
  8176. case $host_cpu in
  8177. hppa*64*|ia64*)
  8178. # +Z the default
  8179. ;;
  8180. *)
  8181. lt_prog_compiler_pic='+Z'
  8182. ;;
  8183. esac
  8184. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8185. lt_prog_compiler_static='$wl-a ${wl}archive'
  8186. ;;
  8187. irix5* | irix6* | nonstopux*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # PIC (with -KPIC) is the default.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8193. case $cc_basename in
  8194. # old Intel for x86_64, which still supported -KPIC.
  8195. ecc*)
  8196. lt_prog_compiler_wl='-Wl,'
  8197. lt_prog_compiler_pic='-KPIC'
  8198. lt_prog_compiler_static='-static'
  8199. ;;
  8200. # icc used to be incompatible with GCC.
  8201. # ICC 10 doesn't accept -KPIC any more.
  8202. icc* | ifort*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-fPIC'
  8205. lt_prog_compiler_static='-static'
  8206. ;;
  8207. # Lahey Fortran 8.1.
  8208. lf95*)
  8209. lt_prog_compiler_wl='-Wl,'
  8210. lt_prog_compiler_pic='--shared'
  8211. lt_prog_compiler_static='--static'
  8212. ;;
  8213. nagfor*)
  8214. # NAG Fortran compiler
  8215. lt_prog_compiler_wl='-Wl,-Wl,,'
  8216. lt_prog_compiler_pic='-PIC'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. ;;
  8219. tcc*)
  8220. # Fabrice Bellard et al's Tiny C Compiler
  8221. lt_prog_compiler_wl='-Wl,'
  8222. lt_prog_compiler_pic='-fPIC'
  8223. lt_prog_compiler_static='-static'
  8224. ;;
  8225. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8226. # Portland Group compilers (*not* the Pentium gcc compiler,
  8227. # which looks to be a dead project)
  8228. lt_prog_compiler_wl='-Wl,'
  8229. lt_prog_compiler_pic='-fpic'
  8230. lt_prog_compiler_static='-Bstatic'
  8231. ;;
  8232. ccc*)
  8233. lt_prog_compiler_wl='-Wl,'
  8234. # All Alpha code is PIC.
  8235. lt_prog_compiler_static='-non_shared'
  8236. ;;
  8237. xl* | bgxl* | bgf* | mpixl*)
  8238. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8239. lt_prog_compiler_wl='-Wl,'
  8240. lt_prog_compiler_pic='-qpic'
  8241. lt_prog_compiler_static='-qstaticlink'
  8242. ;;
  8243. *)
  8244. case `$CC -V 2>&1 | sed 5q` in
  8245. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8246. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8247. lt_prog_compiler_pic='-KPIC'
  8248. lt_prog_compiler_static='-Bstatic'
  8249. lt_prog_compiler_wl=''
  8250. ;;
  8251. *Sun\ F* | *Sun*Fortran*)
  8252. lt_prog_compiler_pic='-KPIC'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. lt_prog_compiler_wl='-Qoption ld '
  8255. ;;
  8256. *Sun\ C*)
  8257. # Sun C 5.9
  8258. lt_prog_compiler_pic='-KPIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. lt_prog_compiler_wl='-Wl,'
  8261. ;;
  8262. *Intel*\ [CF]*Compiler*)
  8263. lt_prog_compiler_wl='-Wl,'
  8264. lt_prog_compiler_pic='-fPIC'
  8265. lt_prog_compiler_static='-static'
  8266. ;;
  8267. *Portland\ Group*)
  8268. lt_prog_compiler_wl='-Wl,'
  8269. lt_prog_compiler_pic='-fpic'
  8270. lt_prog_compiler_static='-Bstatic'
  8271. ;;
  8272. esac
  8273. ;;
  8274. esac
  8275. ;;
  8276. newsos6)
  8277. lt_prog_compiler_pic='-KPIC'
  8278. lt_prog_compiler_static='-Bstatic'
  8279. ;;
  8280. *nto* | *qnx*)
  8281. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8282. # it will coredump.
  8283. lt_prog_compiler_pic='-fPIC -shared'
  8284. ;;
  8285. osf3* | osf4* | osf5*)
  8286. lt_prog_compiler_wl='-Wl,'
  8287. # All OSF/1 code is PIC.
  8288. lt_prog_compiler_static='-non_shared'
  8289. ;;
  8290. rdos*)
  8291. lt_prog_compiler_static='-non_shared'
  8292. ;;
  8293. solaris*)
  8294. lt_prog_compiler_pic='-KPIC'
  8295. lt_prog_compiler_static='-Bstatic'
  8296. case $cc_basename in
  8297. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8298. lt_prog_compiler_wl='-Qoption ld ';;
  8299. *)
  8300. lt_prog_compiler_wl='-Wl,';;
  8301. esac
  8302. ;;
  8303. sunos4*)
  8304. lt_prog_compiler_wl='-Qoption ld '
  8305. lt_prog_compiler_pic='-PIC'
  8306. lt_prog_compiler_static='-Bstatic'
  8307. ;;
  8308. sysv4 | sysv4.2uw2* | sysv4.3*)
  8309. lt_prog_compiler_wl='-Wl,'
  8310. lt_prog_compiler_pic='-KPIC'
  8311. lt_prog_compiler_static='-Bstatic'
  8312. ;;
  8313. sysv4*MP*)
  8314. if test -d /usr/nec; then
  8315. lt_prog_compiler_pic='-Kconform_pic'
  8316. lt_prog_compiler_static='-Bstatic'
  8317. fi
  8318. ;;
  8319. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8320. lt_prog_compiler_wl='-Wl,'
  8321. lt_prog_compiler_pic='-KPIC'
  8322. lt_prog_compiler_static='-Bstatic'
  8323. ;;
  8324. unicos*)
  8325. lt_prog_compiler_wl='-Wl,'
  8326. lt_prog_compiler_can_build_shared=no
  8327. ;;
  8328. uts4*)
  8329. lt_prog_compiler_pic='-pic'
  8330. lt_prog_compiler_static='-Bstatic'
  8331. ;;
  8332. *)
  8333. lt_prog_compiler_can_build_shared=no
  8334. ;;
  8335. esac
  8336. fi
  8337. case $host_os in
  8338. # For platforms that do not support PIC, -DPIC is meaningless:
  8339. *djgpp*)
  8340. lt_prog_compiler_pic=
  8341. ;;
  8342. *)
  8343. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8344. ;;
  8345. esac
  8346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8347. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8348. if test ${lt_cv_prog_compiler_pic+y}
  8349. then :
  8350. printf %s "(cached) " >&6
  8351. else $as_nop
  8352. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8353. fi
  8354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8355. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8356. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8357. #
  8358. # Check to make sure the PIC flag actually works.
  8359. #
  8360. if test -n "$lt_prog_compiler_pic"; then
  8361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8362. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8363. if test ${lt_cv_prog_compiler_pic_works+y}
  8364. then :
  8365. printf %s "(cached) " >&6
  8366. else $as_nop
  8367. lt_cv_prog_compiler_pic_works=no
  8368. ac_outfile=conftest.$ac_objext
  8369. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8370. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8371. # Insert the option either (1) after the last *FLAGS variable, or
  8372. # (2) before a word containing "conftest.", or (3) at the end.
  8373. # Note that $ac_compile itself does not contain backslashes and begins
  8374. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8375. # The option is referenced via a variable to avoid confusing sed.
  8376. lt_compile=`echo "$ac_compile" | $SED \
  8377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8379. -e 's:$: $lt_compiler_flag:'`
  8380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8381. (eval "$lt_compile" 2>conftest.err)
  8382. ac_status=$?
  8383. cat conftest.err >&5
  8384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8385. if (exit $ac_status) && test -s "$ac_outfile"; then
  8386. # The compiler can only warn and ignore the option if not recognized
  8387. # So say no if there are warnings other than the usual output.
  8388. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8389. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8390. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8391. lt_cv_prog_compiler_pic_works=yes
  8392. fi
  8393. fi
  8394. $RM conftest*
  8395. fi
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8397. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8398. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8399. case $lt_prog_compiler_pic in
  8400. "" | " "*) ;;
  8401. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8402. esac
  8403. else
  8404. lt_prog_compiler_pic=
  8405. lt_prog_compiler_can_build_shared=no
  8406. fi
  8407. fi
  8408. #
  8409. # Check to make sure the static flag actually works.
  8410. #
  8411. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8413. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8414. if test ${lt_cv_prog_compiler_static_works+y}
  8415. then :
  8416. printf %s "(cached) " >&6
  8417. else $as_nop
  8418. lt_cv_prog_compiler_static_works=no
  8419. save_LDFLAGS=$LDFLAGS
  8420. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8421. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8422. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8423. # The linker can only warn and ignore the option if not recognized
  8424. # So say no if there are warnings
  8425. if test -s conftest.err; then
  8426. # Append any errors to the config.log.
  8427. cat conftest.err 1>&5
  8428. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8429. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8430. if diff conftest.exp conftest.er2 >/dev/null; then
  8431. lt_cv_prog_compiler_static_works=yes
  8432. fi
  8433. else
  8434. lt_cv_prog_compiler_static_works=yes
  8435. fi
  8436. fi
  8437. $RM -r conftest*
  8438. LDFLAGS=$save_LDFLAGS
  8439. fi
  8440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8441. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8442. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8443. :
  8444. else
  8445. lt_prog_compiler_static=
  8446. fi
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8448. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8449. if test ${lt_cv_prog_compiler_c_o+y}
  8450. then :
  8451. printf %s "(cached) " >&6
  8452. else $as_nop
  8453. lt_cv_prog_compiler_c_o=no
  8454. $RM -r conftest 2>/dev/null
  8455. mkdir conftest
  8456. cd conftest
  8457. mkdir out
  8458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8460. # Insert the option either (1) after the last *FLAGS variable, or
  8461. # (2) before a word containing "conftest.", or (3) at the end.
  8462. # Note that $ac_compile itself does not contain backslashes and begins
  8463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8464. lt_compile=`echo "$ac_compile" | $SED \
  8465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8467. -e 's:$: $lt_compiler_flag:'`
  8468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8469. (eval "$lt_compile" 2>out/conftest.err)
  8470. ac_status=$?
  8471. cat out/conftest.err >&5
  8472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8474. then
  8475. # The compiler can only warn and ignore the option if not recognized
  8476. # So say no if there are warnings
  8477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8480. lt_cv_prog_compiler_c_o=yes
  8481. fi
  8482. fi
  8483. chmod u+w . 2>&5
  8484. $RM conftest*
  8485. # SGI C++ compiler will create directory out/ii_files/ for
  8486. # template instantiation
  8487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8488. $RM out/* && rmdir out
  8489. cd ..
  8490. $RM -r conftest
  8491. $RM conftest*
  8492. fi
  8493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8494. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8496. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8497. if test ${lt_cv_prog_compiler_c_o+y}
  8498. then :
  8499. printf %s "(cached) " >&6
  8500. else $as_nop
  8501. lt_cv_prog_compiler_c_o=no
  8502. $RM -r conftest 2>/dev/null
  8503. mkdir conftest
  8504. cd conftest
  8505. mkdir out
  8506. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8507. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8508. # Insert the option either (1) after the last *FLAGS variable, or
  8509. # (2) before a word containing "conftest.", or (3) at the end.
  8510. # Note that $ac_compile itself does not contain backslashes and begins
  8511. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8512. lt_compile=`echo "$ac_compile" | $SED \
  8513. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8514. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8515. -e 's:$: $lt_compiler_flag:'`
  8516. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8517. (eval "$lt_compile" 2>out/conftest.err)
  8518. ac_status=$?
  8519. cat out/conftest.err >&5
  8520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8522. then
  8523. # The compiler can only warn and ignore the option if not recognized
  8524. # So say no if there are warnings
  8525. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8526. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8527. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8528. lt_cv_prog_compiler_c_o=yes
  8529. fi
  8530. fi
  8531. chmod u+w . 2>&5
  8532. $RM conftest*
  8533. # SGI C++ compiler will create directory out/ii_files/ for
  8534. # template instantiation
  8535. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8536. $RM out/* && rmdir out
  8537. cd ..
  8538. $RM -r conftest
  8539. $RM conftest*
  8540. fi
  8541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8542. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8543. hard_links=nottested
  8544. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8545. # do not overwrite the value of need_locks provided by the user
  8546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8547. printf %s "checking if we can lock with hard links... " >&6; }
  8548. hard_links=yes
  8549. $RM conftest*
  8550. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8551. touch conftest.a
  8552. ln conftest.a conftest.b 2>&5 || hard_links=no
  8553. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8555. printf "%s\n" "$hard_links" >&6; }
  8556. if test no = "$hard_links"; then
  8557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8558. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8559. need_locks=warn
  8560. fi
  8561. else
  8562. need_locks=no
  8563. fi
  8564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8565. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8566. runpath_var=
  8567. allow_undefined_flag=
  8568. always_export_symbols=no
  8569. archive_cmds=
  8570. archive_expsym_cmds=
  8571. compiler_needs_object=no
  8572. enable_shared_with_static_runtimes=no
  8573. export_dynamic_flag_spec=
  8574. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8575. hardcode_automatic=no
  8576. hardcode_direct=no
  8577. hardcode_direct_absolute=no
  8578. hardcode_libdir_flag_spec=
  8579. hardcode_libdir_separator=
  8580. hardcode_minus_L=no
  8581. hardcode_shlibpath_var=unsupported
  8582. inherit_rpath=no
  8583. link_all_deplibs=unknown
  8584. module_cmds=
  8585. module_expsym_cmds=
  8586. old_archive_from_new_cmds=
  8587. old_archive_from_expsyms_cmds=
  8588. thread_safe_flag_spec=
  8589. whole_archive_flag_spec=
  8590. # include_expsyms should be a list of space-separated symbols to be *always*
  8591. # included in the symbol list
  8592. include_expsyms=
  8593. # exclude_expsyms can be an extended regexp of symbols to exclude
  8594. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8595. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8596. # as well as any symbol that contains 'd'.
  8597. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8598. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8599. # platforms (ab)use it in PIC code, but their linkers get confused if
  8600. # the symbol is explicitly referenced. Since portable code cannot
  8601. # rely on this symbol name, it's probably fine to never include it in
  8602. # preloaded symbol tables.
  8603. # Exclude shared library initialization/finalization symbols.
  8604. extract_expsyms_cmds=
  8605. case $host_os in
  8606. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8607. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8608. # When not using gcc, we currently assume that we are using
  8609. # Microsoft Visual C++ or Intel C++ Compiler.
  8610. if test yes != "$GCC"; then
  8611. with_gnu_ld=no
  8612. fi
  8613. ;;
  8614. interix*)
  8615. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8616. with_gnu_ld=yes
  8617. ;;
  8618. openbsd* | bitrig*)
  8619. with_gnu_ld=no
  8620. ;;
  8621. esac
  8622. ld_shlibs=yes
  8623. # On some targets, GNU ld is compatible enough with the native linker
  8624. # that we're better off using the native interface for both.
  8625. lt_use_gnu_ld_interface=no
  8626. if test yes = "$with_gnu_ld"; then
  8627. case $host_os in
  8628. aix*)
  8629. # The AIX port of GNU ld has always aspired to compatibility
  8630. # with the native linker. However, as the warning in the GNU ld
  8631. # block says, versions before 2.19.5* couldn't really create working
  8632. # shared libraries, regardless of the interface used.
  8633. case `$LD -v 2>&1` in
  8634. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8635. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8636. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8637. *)
  8638. lt_use_gnu_ld_interface=yes
  8639. ;;
  8640. esac
  8641. ;;
  8642. *)
  8643. lt_use_gnu_ld_interface=yes
  8644. ;;
  8645. esac
  8646. fi
  8647. if test yes = "$lt_use_gnu_ld_interface"; then
  8648. # If archive_cmds runs LD, not CC, wlarc should be empty
  8649. wlarc='$wl'
  8650. # Set some defaults for GNU ld with shared library support. These
  8651. # are reset later if shared libraries are not supported. Putting them
  8652. # here allows them to be overridden if necessary.
  8653. runpath_var=LD_RUN_PATH
  8654. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8655. export_dynamic_flag_spec='$wl--export-dynamic'
  8656. # ancient GNU ld didn't support --whole-archive et. al.
  8657. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8658. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8659. else
  8660. whole_archive_flag_spec=
  8661. fi
  8662. supports_anon_versioning=no
  8663. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8664. *GNU\ gold*) supports_anon_versioning=yes ;;
  8665. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8666. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8667. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8668. *\ 2.11.*) ;; # other 2.11 versions
  8669. *) supports_anon_versioning=yes ;;
  8670. esac
  8671. # See if GNU ld supports shared libraries.
  8672. case $host_os in
  8673. aix[3-9]*)
  8674. # On AIX/PPC, the GNU linker is very broken
  8675. if test ia64 != "$host_cpu"; then
  8676. ld_shlibs=no
  8677. cat <<_LT_EOF 1>&2
  8678. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8679. *** to be unable to reliably create shared libraries on AIX.
  8680. *** Therefore, libtool is disabling shared libraries support. If you
  8681. *** really care for shared libraries, you may want to install binutils
  8682. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8683. *** You will then need to restart the configuration process.
  8684. _LT_EOF
  8685. fi
  8686. ;;
  8687. amigaos*)
  8688. case $host_cpu in
  8689. powerpc)
  8690. # see comment about AmigaOS4 .so support
  8691. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8692. archive_expsym_cmds=''
  8693. ;;
  8694. m68k)
  8695. 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)'
  8696. hardcode_libdir_flag_spec='-L$libdir'
  8697. hardcode_minus_L=yes
  8698. ;;
  8699. esac
  8700. ;;
  8701. beos*)
  8702. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8703. allow_undefined_flag=unsupported
  8704. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8705. # support --undefined. This deserves some investigation. FIXME
  8706. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8707. else
  8708. ld_shlibs=no
  8709. fi
  8710. ;;
  8711. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8712. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8713. # as there is no search path for DLLs.
  8714. hardcode_libdir_flag_spec='-L$libdir'
  8715. export_dynamic_flag_spec='$wl--export-all-symbols'
  8716. allow_undefined_flag=unsupported
  8717. always_export_symbols=no
  8718. enable_shared_with_static_runtimes=yes
  8719. 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'
  8720. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8721. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8722. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8723. # If the export-symbols file already is a .def file, use it as
  8724. # is; otherwise, prepend EXPORTS...
  8725. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8726. cp $export_symbols $output_objdir/$soname.def;
  8727. else
  8728. echo EXPORTS > $output_objdir/$soname.def;
  8729. cat $export_symbols >> $output_objdir/$soname.def;
  8730. fi~
  8731. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8732. else
  8733. ld_shlibs=no
  8734. fi
  8735. ;;
  8736. haiku*)
  8737. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8738. link_all_deplibs=yes
  8739. ;;
  8740. os2*)
  8741. hardcode_libdir_flag_spec='-L$libdir'
  8742. hardcode_minus_L=yes
  8743. allow_undefined_flag=unsupported
  8744. shrext_cmds=.dll
  8745. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8746. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8747. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8748. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8749. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8750. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8751. emximp -o $lib $output_objdir/$libname.def'
  8752. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8753. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8754. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8755. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8756. prefix_cmds="$SED"~
  8757. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8758. prefix_cmds="$prefix_cmds -e 1d";
  8759. fi~
  8760. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8761. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8762. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8763. emximp -o $lib $output_objdir/$libname.def'
  8764. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8765. enable_shared_with_static_runtimes=yes
  8766. file_list_spec='@'
  8767. ;;
  8768. interix[3-9]*)
  8769. hardcode_direct=no
  8770. hardcode_shlibpath_var=no
  8771. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8772. export_dynamic_flag_spec='$wl-E'
  8773. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8774. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8775. # default) and relocated if they conflict, which is a slow very memory
  8776. # consuming and fragmenting process. To avoid this, we pick a random,
  8777. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8778. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8779. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8780. 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'
  8781. ;;
  8782. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8783. tmp_diet=no
  8784. if test linux-dietlibc = "$host_os"; then
  8785. case $cc_basename in
  8786. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8787. esac
  8788. fi
  8789. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8790. && test no = "$tmp_diet"
  8791. then
  8792. tmp_addflag=' $pic_flag'
  8793. tmp_sharedflag='-shared'
  8794. case $cc_basename,$host_cpu in
  8795. pgcc*) # Portland Group C compiler
  8796. 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'
  8797. tmp_addflag=' $pic_flag'
  8798. ;;
  8799. pgf77* | pgf90* | pgf95* | pgfortran*)
  8800. # Portland Group f77 and f90 compilers
  8801. 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'
  8802. tmp_addflag=' $pic_flag -Mnomain' ;;
  8803. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8804. tmp_addflag=' -i_dynamic' ;;
  8805. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8806. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8807. ifc* | ifort*) # Intel Fortran compiler
  8808. tmp_addflag=' -nofor_main' ;;
  8809. lf95*) # Lahey Fortran 8.1
  8810. whole_archive_flag_spec=
  8811. tmp_sharedflag='--shared' ;;
  8812. nagfor*) # NAGFOR 5.3
  8813. tmp_sharedflag='-Wl,-shared' ;;
  8814. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8815. tmp_sharedflag='-qmkshrobj'
  8816. tmp_addflag= ;;
  8817. nvcc*) # Cuda Compiler Driver 2.2
  8818. 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'
  8819. compiler_needs_object=yes
  8820. ;;
  8821. esac
  8822. case `$CC -V 2>&1 | sed 5q` in
  8823. *Sun\ C*) # Sun C 5.9
  8824. 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'
  8825. compiler_needs_object=yes
  8826. tmp_sharedflag='-G' ;;
  8827. *Sun\ F*) # Sun Fortran 8.3
  8828. tmp_sharedflag='-G' ;;
  8829. esac
  8830. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8831. if test yes = "$supports_anon_versioning"; then
  8832. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8833. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8834. echo "local: *; };" >> $output_objdir/$libname.ver~
  8835. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8836. fi
  8837. case $cc_basename in
  8838. tcc*)
  8839. export_dynamic_flag_spec='-rdynamic'
  8840. ;;
  8841. xlf* | bgf* | bgxlf* | mpixlf*)
  8842. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8843. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8844. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8845. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8846. if test yes = "$supports_anon_versioning"; then
  8847. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8848. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8849. echo "local: *; };" >> $output_objdir/$libname.ver~
  8850. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8851. fi
  8852. ;;
  8853. esac
  8854. else
  8855. ld_shlibs=no
  8856. fi
  8857. ;;
  8858. netbsd*)
  8859. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8860. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8861. wlarc=
  8862. else
  8863. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8864. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8865. fi
  8866. ;;
  8867. solaris*)
  8868. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8869. ld_shlibs=no
  8870. cat <<_LT_EOF 1>&2
  8871. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8872. *** create shared libraries on Solaris systems. Therefore, libtool
  8873. *** is disabling shared libraries support. We urge you to upgrade GNU
  8874. *** binutils to release 2.9.1 or newer. Another option is to modify
  8875. *** your PATH or compiler configuration so that the native linker is
  8876. *** used, and then restart.
  8877. _LT_EOF
  8878. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8879. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8880. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8881. else
  8882. ld_shlibs=no
  8883. fi
  8884. ;;
  8885. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8886. case `$LD -v 2>&1` in
  8887. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8888. ld_shlibs=no
  8889. cat <<_LT_EOF 1>&2
  8890. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8891. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8892. *** is disabling shared libraries support. We urge you to upgrade GNU
  8893. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8894. *** your PATH or compiler configuration so that the native linker is
  8895. *** used, and then restart.
  8896. _LT_EOF
  8897. ;;
  8898. *)
  8899. # For security reasons, it is highly recommended that you always
  8900. # use absolute paths for naming shared libraries, and exclude the
  8901. # DT_RUNPATH tag from executables and libraries. But doing so
  8902. # requires that you compile everything twice, which is a pain.
  8903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8904. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8905. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8906. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8907. else
  8908. ld_shlibs=no
  8909. fi
  8910. ;;
  8911. esac
  8912. ;;
  8913. sunos4*)
  8914. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8915. wlarc=
  8916. hardcode_direct=yes
  8917. hardcode_shlibpath_var=no
  8918. ;;
  8919. *)
  8920. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8921. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8922. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8923. else
  8924. ld_shlibs=no
  8925. fi
  8926. ;;
  8927. esac
  8928. if test no = "$ld_shlibs"; then
  8929. runpath_var=
  8930. hardcode_libdir_flag_spec=
  8931. export_dynamic_flag_spec=
  8932. whole_archive_flag_spec=
  8933. fi
  8934. else
  8935. # PORTME fill in a description of your system's linker (not GNU ld)
  8936. case $host_os in
  8937. aix3*)
  8938. allow_undefined_flag=unsupported
  8939. always_export_symbols=yes
  8940. 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'
  8941. # Note: this linker hardcodes the directories in LIBPATH if there
  8942. # are no directories specified by -L.
  8943. hardcode_minus_L=yes
  8944. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8945. # Neither direct hardcoding nor static linking is supported with a
  8946. # broken collect2.
  8947. hardcode_direct=unsupported
  8948. fi
  8949. ;;
  8950. aix[4-9]*)
  8951. if test ia64 = "$host_cpu"; then
  8952. # On IA64, the linker does run time linking by default, so we don't
  8953. # have to do anything special.
  8954. aix_use_runtimelinking=no
  8955. exp_sym_flag='-Bexport'
  8956. no_entry_flag=
  8957. else
  8958. # If we're using GNU nm, then we don't want the "-C" option.
  8959. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8960. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8961. # weak defined symbols like other global defined symbols, whereas
  8962. # GNU nm marks them as "W".
  8963. # While the 'weak' keyword is ignored in the Export File, we need
  8964. # it in the Import File for the 'aix-soname' feature, so we have
  8965. # to replace the "-B" option with "-P" for AIX nm.
  8966. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8967. 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'
  8968. else
  8969. 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'
  8970. fi
  8971. aix_use_runtimelinking=no
  8972. # Test if we are trying to use run time linking or normal
  8973. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8974. # have runtime linking enabled, and use it for executables.
  8975. # For shared libraries, we enable/disable runtime linking
  8976. # depending on the kind of the shared library created -
  8977. # when "with_aix_soname,aix_use_runtimelinking" is:
  8978. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8979. # "aix,yes" lib.so shared, rtl:yes, for executables
  8980. # lib.a static archive
  8981. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8982. # lib.a(lib.so.V) shared, rtl:no, for executables
  8983. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8984. # lib.a(lib.so.V) shared, rtl:no
  8985. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8986. # lib.a static archive
  8987. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8988. for ld_flag in $LDFLAGS; do
  8989. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8990. aix_use_runtimelinking=yes
  8991. break
  8992. fi
  8993. done
  8994. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8995. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8996. # so we don't have lib.a shared libs to link our executables.
  8997. # We have to force runtime linking in this case.
  8998. aix_use_runtimelinking=yes
  8999. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9000. fi
  9001. ;;
  9002. esac
  9003. exp_sym_flag='-bexport'
  9004. no_entry_flag='-bnoentry'
  9005. fi
  9006. # When large executables or shared objects are built, AIX ld can
  9007. # have problems creating the table of contents. If linking a library
  9008. # or program results in "error TOC overflow" add -mminimal-toc to
  9009. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9010. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9011. archive_cmds=''
  9012. hardcode_direct=yes
  9013. hardcode_direct_absolute=yes
  9014. hardcode_libdir_separator=':'
  9015. link_all_deplibs=yes
  9016. file_list_spec='$wl-f,'
  9017. case $with_aix_soname,$aix_use_runtimelinking in
  9018. aix,*) ;; # traditional, no import file
  9019. svr4,* | *,yes) # use import file
  9020. # The Import File defines what to hardcode.
  9021. hardcode_direct=no
  9022. hardcode_direct_absolute=no
  9023. ;;
  9024. esac
  9025. if test yes = "$GCC"; then
  9026. case $host_os in aix4.[012]|aix4.[012].*)
  9027. # We only want to do this on AIX 4.2 and lower, the check
  9028. # below for broken collect2 doesn't work under 4.3+
  9029. collect2name=`$CC -print-prog-name=collect2`
  9030. if test -f "$collect2name" &&
  9031. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9032. then
  9033. # We have reworked collect2
  9034. :
  9035. else
  9036. # We have old collect2
  9037. hardcode_direct=unsupported
  9038. # It fails to find uninstalled libraries when the uninstalled
  9039. # path is not listed in the libpath. Setting hardcode_minus_L
  9040. # to unsupported forces relinking
  9041. hardcode_minus_L=yes
  9042. hardcode_libdir_flag_spec='-L$libdir'
  9043. hardcode_libdir_separator=
  9044. fi
  9045. ;;
  9046. esac
  9047. shared_flag='-shared'
  9048. if test yes = "$aix_use_runtimelinking"; then
  9049. shared_flag="$shared_flag "'$wl-G'
  9050. fi
  9051. # Need to ensure runtime linking is disabled for the traditional
  9052. # shared library, or the linker may eventually find shared libraries
  9053. # /with/ Import File - we do not want to mix them.
  9054. shared_flag_aix='-shared'
  9055. shared_flag_svr4='-shared $wl-G'
  9056. else
  9057. # not using gcc
  9058. if test ia64 = "$host_cpu"; then
  9059. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9060. # chokes on -Wl,-G. The following line is correct:
  9061. shared_flag='-G'
  9062. else
  9063. if test yes = "$aix_use_runtimelinking"; then
  9064. shared_flag='$wl-G'
  9065. else
  9066. shared_flag='$wl-bM:SRE'
  9067. fi
  9068. shared_flag_aix='$wl-bM:SRE'
  9069. shared_flag_svr4='$wl-G'
  9070. fi
  9071. fi
  9072. export_dynamic_flag_spec='$wl-bexpall'
  9073. # It seems that -bexpall does not export symbols beginning with
  9074. # underscore (_), so it is better to generate a list of symbols to export.
  9075. always_export_symbols=yes
  9076. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9077. # Warning - without using the other runtime loading flags (-brtl),
  9078. # -berok will link without error, but may produce a broken library.
  9079. allow_undefined_flag='-berok'
  9080. # Determine the default libpath from the value encoded in an
  9081. # empty executable.
  9082. if test set = "${lt_cv_aix_libpath+set}"; then
  9083. aix_libpath=$lt_cv_aix_libpath
  9084. else
  9085. if test ${lt_cv_aix_libpath_+y}
  9086. then :
  9087. printf %s "(cached) " >&6
  9088. else $as_nop
  9089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9090. /* end confdefs.h. */
  9091. int
  9092. main (void)
  9093. {
  9094. ;
  9095. return 0;
  9096. }
  9097. _ACEOF
  9098. if ac_fn_c_try_link "$LINENO"
  9099. then :
  9100. lt_aix_libpath_sed='
  9101. /Import File Strings/,/^$/ {
  9102. /^0/ {
  9103. s/^0 *\([^ ]*\) *$/\1/
  9104. p
  9105. }
  9106. }'
  9107. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9108. # Check for a 64-bit object if we didn't find anything.
  9109. if test -z "$lt_cv_aix_libpath_"; then
  9110. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9111. fi
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. if test -z "$lt_cv_aix_libpath_"; then
  9116. lt_cv_aix_libpath_=/usr/lib:/lib
  9117. fi
  9118. fi
  9119. aix_libpath=$lt_cv_aix_libpath_
  9120. fi
  9121. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9122. 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
  9123. else
  9124. if test ia64 = "$host_cpu"; then
  9125. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9126. allow_undefined_flag="-z nodefs"
  9127. 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"
  9128. else
  9129. # Determine the default libpath from the value encoded in an
  9130. # empty executable.
  9131. if test set = "${lt_cv_aix_libpath+set}"; then
  9132. aix_libpath=$lt_cv_aix_libpath
  9133. else
  9134. if test ${lt_cv_aix_libpath_+y}
  9135. then :
  9136. printf %s "(cached) " >&6
  9137. else $as_nop
  9138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9139. /* end confdefs.h. */
  9140. int
  9141. main (void)
  9142. {
  9143. ;
  9144. return 0;
  9145. }
  9146. _ACEOF
  9147. if ac_fn_c_try_link "$LINENO"
  9148. then :
  9149. lt_aix_libpath_sed='
  9150. /Import File Strings/,/^$/ {
  9151. /^0/ {
  9152. s/^0 *\([^ ]*\) *$/\1/
  9153. p
  9154. }
  9155. }'
  9156. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9157. # Check for a 64-bit object if we didn't find anything.
  9158. if test -z "$lt_cv_aix_libpath_"; then
  9159. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9160. fi
  9161. fi
  9162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9163. conftest$ac_exeext conftest.$ac_ext
  9164. if test -z "$lt_cv_aix_libpath_"; then
  9165. lt_cv_aix_libpath_=/usr/lib:/lib
  9166. fi
  9167. fi
  9168. aix_libpath=$lt_cv_aix_libpath_
  9169. fi
  9170. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9171. # Warning - without using the other run time loading flags,
  9172. # -berok will link without error, but may produce a broken library.
  9173. no_undefined_flag=' $wl-bernotok'
  9174. allow_undefined_flag=' $wl-berok'
  9175. if test yes = "$with_gnu_ld"; then
  9176. # We only use this code for GNU lds that support --whole-archive.
  9177. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9178. else
  9179. # Exported symbols can be pulled into shared objects from archives
  9180. whole_archive_flag_spec='$convenience'
  9181. fi
  9182. archive_cmds_need_lc=yes
  9183. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9184. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9185. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9186. if test svr4 != "$with_aix_soname"; then
  9187. # This is similar to how AIX traditionally builds its shared libraries.
  9188. 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'
  9189. fi
  9190. if test aix != "$with_aix_soname"; then
  9191. 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'
  9192. else
  9193. # used by -dlpreopen to get the symbols
  9194. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9195. fi
  9196. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9197. fi
  9198. fi
  9199. ;;
  9200. amigaos*)
  9201. case $host_cpu in
  9202. powerpc)
  9203. # see comment about AmigaOS4 .so support
  9204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9205. archive_expsym_cmds=''
  9206. ;;
  9207. m68k)
  9208. 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)'
  9209. hardcode_libdir_flag_spec='-L$libdir'
  9210. hardcode_minus_L=yes
  9211. ;;
  9212. esac
  9213. ;;
  9214. bsdi[45]*)
  9215. export_dynamic_flag_spec=-rdynamic
  9216. ;;
  9217. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9218. # When not using gcc, we currently assume that we are using
  9219. # Microsoft Visual C++ or Intel C++ Compiler.
  9220. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9221. # no search path for DLLs.
  9222. case $cc_basename in
  9223. cl* | icl*)
  9224. # Native MSVC or ICC
  9225. hardcode_libdir_flag_spec=' '
  9226. allow_undefined_flag=unsupported
  9227. always_export_symbols=yes
  9228. file_list_spec='@'
  9229. # Tell ltmain to make .lib files, not .a files.
  9230. libext=lib
  9231. # Tell ltmain to make .dll files, not .so files.
  9232. shrext_cmds=.dll
  9233. # FIXME: Setting linknames here is a bad hack.
  9234. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9235. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9236. cp "$export_symbols" "$output_objdir/$soname.def";
  9237. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9238. else
  9239. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9240. fi~
  9241. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9242. linknames='
  9243. # The linker will not automatically build a static lib if we build a DLL.
  9244. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9245. enable_shared_with_static_runtimes=yes
  9246. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9247. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9248. # Don't use ranlib
  9249. old_postinstall_cmds='chmod 644 $oldlib'
  9250. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9251. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9252. case $lt_outputfile in
  9253. *.exe|*.EXE) ;;
  9254. *)
  9255. lt_outputfile=$lt_outputfile.exe
  9256. lt_tool_outputfile=$lt_tool_outputfile.exe
  9257. ;;
  9258. esac~
  9259. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9260. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9261. $RM "$lt_outputfile.manifest";
  9262. fi'
  9263. ;;
  9264. *)
  9265. # Assume MSVC and ICC wrapper
  9266. hardcode_libdir_flag_spec=' '
  9267. allow_undefined_flag=unsupported
  9268. # Tell ltmain to make .lib files, not .a files.
  9269. libext=lib
  9270. # Tell ltmain to make .dll files, not .so files.
  9271. shrext_cmds=.dll
  9272. # FIXME: Setting linknames here is a bad hack.
  9273. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9274. # The linker will automatically build a .lib file if we build a DLL.
  9275. old_archive_from_new_cmds='true'
  9276. # FIXME: Should let the user specify the lib program.
  9277. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9278. enable_shared_with_static_runtimes=yes
  9279. ;;
  9280. esac
  9281. ;;
  9282. darwin* | rhapsody*)
  9283. archive_cmds_need_lc=no
  9284. hardcode_direct=no
  9285. hardcode_automatic=yes
  9286. hardcode_shlibpath_var=unsupported
  9287. if test yes = "$lt_cv_ld_force_load"; then
  9288. 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\"`'
  9289. else
  9290. whole_archive_flag_spec=''
  9291. fi
  9292. link_all_deplibs=yes
  9293. allow_undefined_flag=$_lt_dar_allow_undefined
  9294. case $cc_basename in
  9295. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9296. *) _lt_dar_can_shared=$GCC ;;
  9297. esac
  9298. if test yes = "$_lt_dar_can_shared"; then
  9299. output_verbose_link_cmd=func_echo_all
  9300. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9301. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9302. 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"
  9303. 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"
  9304. else
  9305. ld_shlibs=no
  9306. fi
  9307. ;;
  9308. dgux*)
  9309. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9310. hardcode_libdir_flag_spec='-L$libdir'
  9311. hardcode_shlibpath_var=no
  9312. ;;
  9313. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9314. # support. Future versions do this automatically, but an explicit c++rt0.o
  9315. # does not break anything, and helps significantly (at the cost of a little
  9316. # extra space).
  9317. freebsd2.2*)
  9318. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9319. hardcode_libdir_flag_spec='-R$libdir'
  9320. hardcode_direct=yes
  9321. hardcode_shlibpath_var=no
  9322. ;;
  9323. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9324. freebsd2.*)
  9325. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9326. hardcode_direct=yes
  9327. hardcode_minus_L=yes
  9328. hardcode_shlibpath_var=no
  9329. ;;
  9330. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9331. freebsd* | dragonfly* | midnightbsd*)
  9332. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9333. hardcode_libdir_flag_spec='-R$libdir'
  9334. hardcode_direct=yes
  9335. hardcode_shlibpath_var=no
  9336. ;;
  9337. hpux9*)
  9338. if test yes = "$GCC"; then
  9339. 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'
  9340. else
  9341. 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'
  9342. fi
  9343. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9344. hardcode_libdir_separator=:
  9345. hardcode_direct=yes
  9346. # hardcode_minus_L: Not really in the search PATH,
  9347. # but as the default location of the library.
  9348. hardcode_minus_L=yes
  9349. export_dynamic_flag_spec='$wl-E'
  9350. ;;
  9351. hpux10*)
  9352. if test yes,no = "$GCC,$with_gnu_ld"; then
  9353. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9354. else
  9355. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9356. fi
  9357. if test no = "$with_gnu_ld"; then
  9358. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9359. hardcode_libdir_separator=:
  9360. hardcode_direct=yes
  9361. hardcode_direct_absolute=yes
  9362. export_dynamic_flag_spec='$wl-E'
  9363. # hardcode_minus_L: Not really in the search PATH,
  9364. # but as the default location of the library.
  9365. hardcode_minus_L=yes
  9366. fi
  9367. ;;
  9368. hpux11*)
  9369. if test yes,no = "$GCC,$with_gnu_ld"; then
  9370. case $host_cpu in
  9371. hppa*64*)
  9372. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9373. ;;
  9374. ia64*)
  9375. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9376. ;;
  9377. *)
  9378. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9379. ;;
  9380. esac
  9381. else
  9382. case $host_cpu in
  9383. hppa*64*)
  9384. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9385. ;;
  9386. ia64*)
  9387. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9388. ;;
  9389. *)
  9390. # Older versions of the 11.00 compiler do not understand -b yet
  9391. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9393. printf %s "checking if $CC understands -b... " >&6; }
  9394. if test ${lt_cv_prog_compiler__b+y}
  9395. then :
  9396. printf %s "(cached) " >&6
  9397. else $as_nop
  9398. lt_cv_prog_compiler__b=no
  9399. save_LDFLAGS=$LDFLAGS
  9400. LDFLAGS="$LDFLAGS -b"
  9401. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9402. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9403. # The linker can only warn and ignore the option if not recognized
  9404. # So say no if there are warnings
  9405. if test -s conftest.err; then
  9406. # Append any errors to the config.log.
  9407. cat conftest.err 1>&5
  9408. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9409. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9410. if diff conftest.exp conftest.er2 >/dev/null; then
  9411. lt_cv_prog_compiler__b=yes
  9412. fi
  9413. else
  9414. lt_cv_prog_compiler__b=yes
  9415. fi
  9416. fi
  9417. $RM -r conftest*
  9418. LDFLAGS=$save_LDFLAGS
  9419. fi
  9420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9421. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9422. if test yes = "$lt_cv_prog_compiler__b"; then
  9423. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9424. else
  9425. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9426. fi
  9427. ;;
  9428. esac
  9429. fi
  9430. if test no = "$with_gnu_ld"; then
  9431. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9432. hardcode_libdir_separator=:
  9433. case $host_cpu in
  9434. hppa*64*|ia64*)
  9435. hardcode_direct=no
  9436. hardcode_shlibpath_var=no
  9437. ;;
  9438. *)
  9439. hardcode_direct=yes
  9440. hardcode_direct_absolute=yes
  9441. export_dynamic_flag_spec='$wl-E'
  9442. # hardcode_minus_L: Not really in the search PATH,
  9443. # but as the default location of the library.
  9444. hardcode_minus_L=yes
  9445. ;;
  9446. esac
  9447. fi
  9448. ;;
  9449. irix5* | irix6* | nonstopux*)
  9450. if test yes = "$GCC"; then
  9451. 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'
  9452. # Try to use the -exported_symbol ld option, if it does not
  9453. # work, assume that -exports_file does not work either and
  9454. # implicitly export all symbols.
  9455. # This should be the same for all languages, so no per-tag cache variable.
  9456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9457. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9458. if test ${lt_cv_irix_exported_symbol+y}
  9459. then :
  9460. printf %s "(cached) " >&6
  9461. else $as_nop
  9462. save_LDFLAGS=$LDFLAGS
  9463. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9465. /* end confdefs.h. */
  9466. int foo (void) { return 0; }
  9467. _ACEOF
  9468. if ac_fn_c_try_link "$LINENO"
  9469. then :
  9470. lt_cv_irix_exported_symbol=yes
  9471. else $as_nop
  9472. lt_cv_irix_exported_symbol=no
  9473. fi
  9474. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9475. conftest$ac_exeext conftest.$ac_ext
  9476. LDFLAGS=$save_LDFLAGS
  9477. fi
  9478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9479. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9480. if test yes = "$lt_cv_irix_exported_symbol"; then
  9481. 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'
  9482. fi
  9483. else
  9484. 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'
  9485. 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'
  9486. fi
  9487. archive_cmds_need_lc='no'
  9488. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9489. hardcode_libdir_separator=:
  9490. inherit_rpath=yes
  9491. link_all_deplibs=yes
  9492. ;;
  9493. linux*)
  9494. case $cc_basename in
  9495. tcc*)
  9496. # Fabrice Bellard et al's Tiny C Compiler
  9497. ld_shlibs=yes
  9498. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9499. ;;
  9500. esac
  9501. ;;
  9502. netbsd*)
  9503. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9504. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9505. else
  9506. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9507. fi
  9508. hardcode_libdir_flag_spec='-R$libdir'
  9509. hardcode_direct=yes
  9510. hardcode_shlibpath_var=no
  9511. ;;
  9512. newsos6)
  9513. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9514. hardcode_direct=yes
  9515. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9516. hardcode_libdir_separator=:
  9517. hardcode_shlibpath_var=no
  9518. ;;
  9519. *nto* | *qnx*)
  9520. ;;
  9521. openbsd* | bitrig*)
  9522. if test -f /usr/libexec/ld.so; then
  9523. hardcode_direct=yes
  9524. hardcode_shlibpath_var=no
  9525. hardcode_direct_absolute=yes
  9526. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9527. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9528. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9529. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9530. export_dynamic_flag_spec='$wl-E'
  9531. else
  9532. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9533. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9534. fi
  9535. else
  9536. ld_shlibs=no
  9537. fi
  9538. ;;
  9539. os2*)
  9540. hardcode_libdir_flag_spec='-L$libdir'
  9541. hardcode_minus_L=yes
  9542. allow_undefined_flag=unsupported
  9543. shrext_cmds=.dll
  9544. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9545. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9546. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9547. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9548. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9549. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9550. emximp -o $lib $output_objdir/$libname.def'
  9551. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9552. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9553. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9554. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9555. prefix_cmds="$SED"~
  9556. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9557. prefix_cmds="$prefix_cmds -e 1d";
  9558. fi~
  9559. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9560. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9561. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9562. emximp -o $lib $output_objdir/$libname.def'
  9563. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9564. enable_shared_with_static_runtimes=yes
  9565. file_list_spec='@'
  9566. ;;
  9567. osf3*)
  9568. if test yes = "$GCC"; then
  9569. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9570. 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'
  9571. else
  9572. allow_undefined_flag=' -expect_unresolved \*'
  9573. 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'
  9574. fi
  9575. archive_cmds_need_lc='no'
  9576. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9577. hardcode_libdir_separator=:
  9578. ;;
  9579. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9580. if test yes = "$GCC"; then
  9581. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9582. 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'
  9583. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9584. else
  9585. allow_undefined_flag=' -expect_unresolved \*'
  9586. 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'
  9587. 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~
  9588. $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'
  9589. # Both c and cxx compiler support -rpath directly
  9590. hardcode_libdir_flag_spec='-rpath $libdir'
  9591. fi
  9592. archive_cmds_need_lc='no'
  9593. hardcode_libdir_separator=:
  9594. ;;
  9595. solaris*)
  9596. no_undefined_flag=' -z defs'
  9597. if test yes = "$GCC"; then
  9598. wlarc='$wl'
  9599. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9600. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9601. $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'
  9602. else
  9603. case `$CC -V 2>&1` in
  9604. *"Compilers 5.0"*)
  9605. wlarc=''
  9606. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9607. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9608. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9609. ;;
  9610. *)
  9611. wlarc='$wl'
  9612. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9613. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9614. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9615. ;;
  9616. esac
  9617. fi
  9618. hardcode_libdir_flag_spec='-R$libdir'
  9619. hardcode_shlibpath_var=no
  9620. case $host_os in
  9621. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9622. *)
  9623. # The compiler driver will combine and reorder linker options,
  9624. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9625. # but is careful enough not to reorder.
  9626. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9627. if test yes = "$GCC"; then
  9628. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9629. else
  9630. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9631. fi
  9632. ;;
  9633. esac
  9634. link_all_deplibs=yes
  9635. ;;
  9636. sunos4*)
  9637. if test sequent = "$host_vendor"; then
  9638. # Use $CC to link under sequent, because it throws in some extra .o
  9639. # files that make .init and .fini sections work.
  9640. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9641. else
  9642. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9643. fi
  9644. hardcode_libdir_flag_spec='-L$libdir'
  9645. hardcode_direct=yes
  9646. hardcode_minus_L=yes
  9647. hardcode_shlibpath_var=no
  9648. ;;
  9649. sysv4)
  9650. case $host_vendor in
  9651. sni)
  9652. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9653. hardcode_direct=yes # is this really true???
  9654. ;;
  9655. siemens)
  9656. ## LD is ld it makes a PLAMLIB
  9657. ## CC just makes a GrossModule.
  9658. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9659. reload_cmds='$CC -r -o $output$reload_objs'
  9660. hardcode_direct=no
  9661. ;;
  9662. motorola)
  9663. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9664. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9665. ;;
  9666. esac
  9667. runpath_var='LD_RUN_PATH'
  9668. hardcode_shlibpath_var=no
  9669. ;;
  9670. sysv4.3*)
  9671. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9672. hardcode_shlibpath_var=no
  9673. export_dynamic_flag_spec='-Bexport'
  9674. ;;
  9675. sysv4*MP*)
  9676. if test -d /usr/nec; then
  9677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9678. hardcode_shlibpath_var=no
  9679. runpath_var=LD_RUN_PATH
  9680. hardcode_runpath_var=yes
  9681. ld_shlibs=yes
  9682. fi
  9683. ;;
  9684. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9685. no_undefined_flag='$wl-z,text'
  9686. archive_cmds_need_lc=no
  9687. hardcode_shlibpath_var=no
  9688. runpath_var='LD_RUN_PATH'
  9689. if test yes = "$GCC"; then
  9690. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9691. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9692. else
  9693. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9694. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9695. fi
  9696. ;;
  9697. sysv5* | sco3.2v5* | sco5v6*)
  9698. # Note: We CANNOT use -z defs as we might desire, because we do not
  9699. # link with -lc, and that would cause any symbols used from libc to
  9700. # always be unresolved, which means just about no library would
  9701. # ever link correctly. If we're not using GNU ld we use -z text
  9702. # though, which does catch some bad symbols but isn't as heavy-handed
  9703. # as -z defs.
  9704. no_undefined_flag='$wl-z,text'
  9705. allow_undefined_flag='$wl-z,nodefs'
  9706. archive_cmds_need_lc=no
  9707. hardcode_shlibpath_var=no
  9708. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9709. hardcode_libdir_separator=':'
  9710. link_all_deplibs=yes
  9711. export_dynamic_flag_spec='$wl-Bexport'
  9712. runpath_var='LD_RUN_PATH'
  9713. if test yes = "$GCC"; then
  9714. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9715. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9716. else
  9717. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9718. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9719. fi
  9720. ;;
  9721. uts4*)
  9722. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9723. hardcode_libdir_flag_spec='-L$libdir'
  9724. hardcode_shlibpath_var=no
  9725. ;;
  9726. *)
  9727. ld_shlibs=no
  9728. ;;
  9729. esac
  9730. if test sni = "$host_vendor"; then
  9731. case $host in
  9732. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9733. export_dynamic_flag_spec='$wl-Blargedynsym'
  9734. ;;
  9735. esac
  9736. fi
  9737. fi
  9738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9739. printf "%s\n" "$ld_shlibs" >&6; }
  9740. test no = "$ld_shlibs" && can_build_shared=no
  9741. with_gnu_ld=$with_gnu_ld
  9742. #
  9743. # Do we need to explicitly link libc?
  9744. #
  9745. case "x$archive_cmds_need_lc" in
  9746. x|xyes)
  9747. # Assume -lc should be added
  9748. archive_cmds_need_lc=yes
  9749. if test yes,yes = "$GCC,$enable_shared"; then
  9750. case $archive_cmds in
  9751. *'~'*)
  9752. # FIXME: we may have to deal with multi-command sequences.
  9753. ;;
  9754. '$CC '*)
  9755. # Test whether the compiler implicitly links with -lc since on some
  9756. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9757. # to ld, don't add -lc before -lgcc.
  9758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9759. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9760. if test ${lt_cv_archive_cmds_need_lc+y}
  9761. then :
  9762. printf %s "(cached) " >&6
  9763. else $as_nop
  9764. $RM conftest*
  9765. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9767. (eval $ac_compile) 2>&5
  9768. ac_status=$?
  9769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9770. test $ac_status = 0; } 2>conftest.err; then
  9771. soname=conftest
  9772. lib=conftest
  9773. libobjs=conftest.$ac_objext
  9774. deplibs=
  9775. wl=$lt_prog_compiler_wl
  9776. pic_flag=$lt_prog_compiler_pic
  9777. compiler_flags=-v
  9778. linker_flags=-v
  9779. verstring=
  9780. output_objdir=.
  9781. libname=conftest
  9782. lt_save_allow_undefined_flag=$allow_undefined_flag
  9783. allow_undefined_flag=
  9784. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9785. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9786. ac_status=$?
  9787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9788. test $ac_status = 0; }
  9789. then
  9790. lt_cv_archive_cmds_need_lc=no
  9791. else
  9792. lt_cv_archive_cmds_need_lc=yes
  9793. fi
  9794. allow_undefined_flag=$lt_save_allow_undefined_flag
  9795. else
  9796. cat conftest.err 1>&5
  9797. fi
  9798. $RM conftest*
  9799. fi
  9800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9801. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9802. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9803. ;;
  9804. esac
  9805. fi
  9806. ;;
  9807. esac
  9808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9809. printf %s "checking dynamic linker characteristics... " >&6; }
  9810. if test yes = "$GCC"; then
  9811. case $host_os in
  9812. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9813. *) lt_awk_arg='/^libraries:/' ;;
  9814. esac
  9815. case $host_os in
  9816. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9817. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9818. esac
  9819. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9820. case $lt_search_path_spec in
  9821. *\;*)
  9822. # if the path contains ";" then we assume it to be the separator
  9823. # otherwise default to the standard path separator (i.e. ":") - it is
  9824. # assumed that no part of a normal pathname contains ";" but that should
  9825. # okay in the real world where ";" in dirpaths is itself problematic.
  9826. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9827. ;;
  9828. *)
  9829. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9830. ;;
  9831. esac
  9832. # Ok, now we have the path, separated by spaces, we can step through it
  9833. # and add multilib dir if necessary...
  9834. lt_tmp_lt_search_path_spec=
  9835. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9836. # ...but if some path component already ends with the multilib dir we assume
  9837. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9838. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9839. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9840. lt_multi_os_dir=
  9841. ;;
  9842. esac
  9843. for lt_sys_path in $lt_search_path_spec; do
  9844. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9845. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9846. elif test -n "$lt_multi_os_dir"; then
  9847. test -d "$lt_sys_path" && \
  9848. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9849. fi
  9850. done
  9851. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9852. BEGIN {RS = " "; FS = "/|\n";} {
  9853. lt_foo = "";
  9854. lt_count = 0;
  9855. for (lt_i = NF; lt_i > 0; lt_i--) {
  9856. if ($lt_i != "" && $lt_i != ".") {
  9857. if ($lt_i == "..") {
  9858. lt_count++;
  9859. } else {
  9860. if (lt_count == 0) {
  9861. lt_foo = "/" $lt_i lt_foo;
  9862. } else {
  9863. lt_count--;
  9864. }
  9865. }
  9866. }
  9867. }
  9868. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9869. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9870. }'`
  9871. # AWK program above erroneously prepends '/' to C:/dos/paths
  9872. # for these hosts.
  9873. case $host_os in
  9874. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9875. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9876. esac
  9877. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9878. else
  9879. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9880. fi
  9881. library_names_spec=
  9882. libname_spec='lib$name'
  9883. soname_spec=
  9884. shrext_cmds=.so
  9885. postinstall_cmds=
  9886. postuninstall_cmds=
  9887. finish_cmds=
  9888. finish_eval=
  9889. shlibpath_var=
  9890. shlibpath_overrides_runpath=unknown
  9891. version_type=none
  9892. dynamic_linker="$host_os ld.so"
  9893. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9894. need_lib_prefix=unknown
  9895. hardcode_into_libs=no
  9896. # when you set need_version to no, make sure it does not cause -set_version
  9897. # flags to be left without arguments
  9898. need_version=unknown
  9899. case $host_os in
  9900. aix3*)
  9901. version_type=linux # correct to gnu/linux during the next big refactor
  9902. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9903. shlibpath_var=LIBPATH
  9904. # AIX 3 has no versioning support, so we append a major version to the name.
  9905. soname_spec='$libname$release$shared_ext$major'
  9906. ;;
  9907. aix[4-9]*)
  9908. version_type=linux # correct to gnu/linux during the next big refactor
  9909. need_lib_prefix=no
  9910. need_version=no
  9911. hardcode_into_libs=yes
  9912. if test ia64 = "$host_cpu"; then
  9913. # AIX 5 supports IA64
  9914. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9915. shlibpath_var=LD_LIBRARY_PATH
  9916. else
  9917. # With GCC up to 2.95.x, collect2 would create an import file
  9918. # for dependence libraries. The import file would start with
  9919. # the line '#! .'. This would cause the generated library to
  9920. # depend on '.', always an invalid library. This was fixed in
  9921. # development snapshots of GCC prior to 3.0.
  9922. case $host_os in
  9923. aix4 | aix4.[01] | aix4.[01].*)
  9924. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9925. echo ' yes '
  9926. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9927. :
  9928. else
  9929. can_build_shared=no
  9930. fi
  9931. ;;
  9932. esac
  9933. # Using Import Files as archive members, it is possible to support
  9934. # filename-based versioning of shared library archives on AIX. While
  9935. # this would work for both with and without runtime linking, it will
  9936. # prevent static linking of such archives. So we do filename-based
  9937. # shared library versioning with .so extension only, which is used
  9938. # when both runtime linking and shared linking is enabled.
  9939. # Unfortunately, runtime linking may impact performance, so we do
  9940. # not want this to be the default eventually. Also, we use the
  9941. # versioned .so libs for executables only if there is the -brtl
  9942. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9943. # To allow for filename-based versioning support, we need to create
  9944. # libNAME.so.V as an archive file, containing:
  9945. # *) an Import File, referring to the versioned filename of the
  9946. # archive as well as the shared archive member, telling the
  9947. # bitwidth (32 or 64) of that shared object, and providing the
  9948. # list of exported symbols of that shared object, eventually
  9949. # decorated with the 'weak' keyword
  9950. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9951. # it being seen by the linker.
  9952. # At run time we better use the real file rather than another symlink,
  9953. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9954. case $with_aix_soname,$aix_use_runtimelinking in
  9955. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9956. # soname into executable. Probably we can add versioning support to
  9957. # collect2, so additional links can be useful in future.
  9958. aix,yes) # traditional libtool
  9959. dynamic_linker='AIX unversionable lib.so'
  9960. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9961. # instead of lib<name>.a to let people know that these are not
  9962. # typical AIX shared libraries.
  9963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9964. ;;
  9965. aix,no) # traditional AIX only
  9966. dynamic_linker='AIX lib.a(lib.so.V)'
  9967. # We preserve .a as extension for shared libraries through AIX4.2
  9968. # and later when we are not doing run time linking.
  9969. library_names_spec='$libname$release.a $libname.a'
  9970. soname_spec='$libname$release$shared_ext$major'
  9971. ;;
  9972. svr4,*) # full svr4 only
  9973. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9974. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9975. # We do not specify a path in Import Files, so LIBPATH fires.
  9976. shlibpath_overrides_runpath=yes
  9977. ;;
  9978. *,yes) # both, prefer svr4
  9979. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9980. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9981. # unpreferred sharedlib libNAME.a needs extra handling
  9982. 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"'
  9983. 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"'
  9984. # We do not specify a path in Import Files, so LIBPATH fires.
  9985. shlibpath_overrides_runpath=yes
  9986. ;;
  9987. *,no) # both, prefer aix
  9988. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9989. library_names_spec='$libname$release.a $libname.a'
  9990. soname_spec='$libname$release$shared_ext$major'
  9991. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9992. 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)'
  9993. 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"'
  9994. ;;
  9995. esac
  9996. shlibpath_var=LIBPATH
  9997. fi
  9998. ;;
  9999. amigaos*)
  10000. case $host_cpu in
  10001. powerpc)
  10002. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10003. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10005. ;;
  10006. m68k)
  10007. library_names_spec='$libname.ixlibrary $libname.a'
  10008. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10009. 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'
  10010. ;;
  10011. esac
  10012. ;;
  10013. beos*)
  10014. library_names_spec='$libname$shared_ext'
  10015. dynamic_linker="$host_os ld.so"
  10016. shlibpath_var=LIBRARY_PATH
  10017. ;;
  10018. bsdi[45]*)
  10019. version_type=linux # correct to gnu/linux during the next big refactor
  10020. need_version=no
  10021. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10022. soname_spec='$libname$release$shared_ext$major'
  10023. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10024. shlibpath_var=LD_LIBRARY_PATH
  10025. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10026. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10027. # the default ld.so.conf also contains /usr/contrib/lib and
  10028. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10029. # libtool to hard-code these into programs
  10030. ;;
  10031. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10032. version_type=windows
  10033. shrext_cmds=.dll
  10034. need_version=no
  10035. need_lib_prefix=no
  10036. case $GCC,$cc_basename in
  10037. yes,*)
  10038. # gcc
  10039. library_names_spec='$libname.dll.a'
  10040. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10041. postinstall_cmds='base_file=`basename \$file`~
  10042. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10043. dldir=$destdir/`dirname \$dlpath`~
  10044. test -d \$dldir || mkdir -p \$dldir~
  10045. $install_prog $dir/$dlname \$dldir/$dlname~
  10046. chmod a+x \$dldir/$dlname~
  10047. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10048. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10049. fi'
  10050. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10051. dlpath=$dir/\$dldll~
  10052. $RM \$dlpath'
  10053. shlibpath_overrides_runpath=yes
  10054. case $host_os in
  10055. cygwin*)
  10056. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10057. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10058. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10059. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10060. ;;
  10061. mingw* | windows* | cegcc*)
  10062. # MinGW DLLs use traditional 'lib' prefix
  10063. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10064. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10065. ;;
  10066. pw32*)
  10067. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10068. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10069. ;;
  10070. esac
  10071. dynamic_linker='Win32 ld.exe'
  10072. ;;
  10073. *,cl* | *,icl*)
  10074. # Native MSVC or ICC
  10075. libname_spec='$name'
  10076. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10077. library_names_spec='$libname.dll.lib'
  10078. case $build_os in
  10079. mingw* | windows*)
  10080. sys_lib_search_path_spec=
  10081. lt_save_ifs=$IFS
  10082. IFS=';'
  10083. for lt_path in $LIB
  10084. do
  10085. IFS=$lt_save_ifs
  10086. # Let DOS variable expansion print the short 8.3 style file name.
  10087. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10088. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10089. done
  10090. IFS=$lt_save_ifs
  10091. # Convert to MSYS style.
  10092. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10093. ;;
  10094. cygwin*)
  10095. # Convert to unix form, then to dos form, then back to unix form
  10096. # but this time dos style (no spaces!) so that the unix form looks
  10097. # like /cygdrive/c/PROGRA~1:/cygdr...
  10098. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10099. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10100. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10101. ;;
  10102. *)
  10103. sys_lib_search_path_spec=$LIB
  10104. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10105. # It is most probably a Windows format PATH.
  10106. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10107. else
  10108. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10109. fi
  10110. # FIXME: find the short name or the path components, as spaces are
  10111. # common. (e.g. "Program Files" -> "PROGRA~1")
  10112. ;;
  10113. esac
  10114. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10115. postinstall_cmds='base_file=`basename \$file`~
  10116. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10117. dldir=$destdir/`dirname \$dlpath`~
  10118. test -d \$dldir || mkdir -p \$dldir~
  10119. $install_prog $dir/$dlname \$dldir/$dlname'
  10120. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10121. dlpath=$dir/\$dldll~
  10122. $RM \$dlpath'
  10123. shlibpath_overrides_runpath=yes
  10124. dynamic_linker='Win32 link.exe'
  10125. ;;
  10126. *)
  10127. # Assume MSVC and ICC wrapper
  10128. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10129. dynamic_linker='Win32 ld.exe'
  10130. ;;
  10131. esac
  10132. # FIXME: first we should search . and the directory the executable is in
  10133. shlibpath_var=PATH
  10134. ;;
  10135. darwin* | rhapsody*)
  10136. dynamic_linker="$host_os dyld"
  10137. version_type=darwin
  10138. need_lib_prefix=no
  10139. need_version=no
  10140. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10141. soname_spec='$libname$release$major$shared_ext'
  10142. shlibpath_overrides_runpath=yes
  10143. shlibpath_var=DYLD_LIBRARY_PATH
  10144. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10145. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10146. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10147. ;;
  10148. dgux*)
  10149. version_type=linux # correct to gnu/linux during the next big refactor
  10150. need_lib_prefix=no
  10151. need_version=no
  10152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10153. soname_spec='$libname$release$shared_ext$major'
  10154. shlibpath_var=LD_LIBRARY_PATH
  10155. ;;
  10156. freebsd* | dragonfly* | midnightbsd*)
  10157. # DragonFly does not have aout. When/if they implement a new
  10158. # versioning mechanism, adjust this.
  10159. if test -x /usr/bin/objformat; then
  10160. objformat=`/usr/bin/objformat`
  10161. else
  10162. case $host_os in
  10163. freebsd[23].*) objformat=aout ;;
  10164. *) objformat=elf ;;
  10165. esac
  10166. fi
  10167. version_type=freebsd-$objformat
  10168. case $version_type in
  10169. freebsd-elf*)
  10170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10171. soname_spec='$libname$release$shared_ext$major'
  10172. need_version=no
  10173. need_lib_prefix=no
  10174. ;;
  10175. freebsd-*)
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10177. need_version=yes
  10178. ;;
  10179. esac
  10180. shlibpath_var=LD_LIBRARY_PATH
  10181. case $host_os in
  10182. freebsd2.*)
  10183. shlibpath_overrides_runpath=yes
  10184. ;;
  10185. freebsd3.[01]* | freebsdelf3.[01]*)
  10186. shlibpath_overrides_runpath=yes
  10187. hardcode_into_libs=yes
  10188. ;;
  10189. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10190. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10191. shlibpath_overrides_runpath=no
  10192. hardcode_into_libs=yes
  10193. ;;
  10194. *) # from 4.6 on, and DragonFly
  10195. shlibpath_overrides_runpath=yes
  10196. hardcode_into_libs=yes
  10197. ;;
  10198. esac
  10199. ;;
  10200. haiku*)
  10201. version_type=linux # correct to gnu/linux during the next big refactor
  10202. need_lib_prefix=no
  10203. need_version=no
  10204. dynamic_linker="$host_os runtime_loader"
  10205. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10206. soname_spec='$libname$release$shared_ext$major'
  10207. shlibpath_var=LIBRARY_PATH
  10208. shlibpath_overrides_runpath=no
  10209. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10210. hardcode_into_libs=yes
  10211. ;;
  10212. hpux9* | hpux10* | hpux11*)
  10213. # Give a soname corresponding to the major version so that dld.sl refuses to
  10214. # link against other versions.
  10215. version_type=sunos
  10216. need_lib_prefix=no
  10217. need_version=no
  10218. case $host_cpu in
  10219. ia64*)
  10220. shrext_cmds='.so'
  10221. hardcode_into_libs=yes
  10222. dynamic_linker="$host_os dld.so"
  10223. shlibpath_var=LD_LIBRARY_PATH
  10224. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10225. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10226. soname_spec='$libname$release$shared_ext$major'
  10227. if test 32 = "$HPUX_IA64_MODE"; then
  10228. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10229. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10230. else
  10231. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10232. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10233. fi
  10234. ;;
  10235. hppa*64*)
  10236. shrext_cmds='.sl'
  10237. hardcode_into_libs=yes
  10238. dynamic_linker="$host_os dld.sl"
  10239. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10240. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10241. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10242. soname_spec='$libname$release$shared_ext$major'
  10243. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10244. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10245. ;;
  10246. *)
  10247. shrext_cmds='.sl'
  10248. dynamic_linker="$host_os dld.sl"
  10249. shlibpath_var=SHLIB_PATH
  10250. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10252. soname_spec='$libname$release$shared_ext$major'
  10253. ;;
  10254. esac
  10255. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10256. postinstall_cmds='chmod 555 $lib'
  10257. # or fails outright, so override atomically:
  10258. install_override_mode=555
  10259. ;;
  10260. interix[3-9]*)
  10261. version_type=linux # correct to gnu/linux during the next big refactor
  10262. need_lib_prefix=no
  10263. need_version=no
  10264. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10265. soname_spec='$libname$release$shared_ext$major'
  10266. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10267. shlibpath_var=LD_LIBRARY_PATH
  10268. shlibpath_overrides_runpath=no
  10269. hardcode_into_libs=yes
  10270. ;;
  10271. irix5* | irix6* | nonstopux*)
  10272. case $host_os in
  10273. nonstopux*) version_type=nonstopux ;;
  10274. *)
  10275. if test yes = "$lt_cv_prog_gnu_ld"; then
  10276. version_type=linux # correct to gnu/linux during the next big refactor
  10277. else
  10278. version_type=irix
  10279. fi ;;
  10280. esac
  10281. need_lib_prefix=no
  10282. need_version=no
  10283. soname_spec='$libname$release$shared_ext$major'
  10284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10285. case $host_os in
  10286. irix5* | nonstopux*)
  10287. libsuff= shlibsuff=
  10288. ;;
  10289. *)
  10290. case $LD in # libtool.m4 will add one of these switches to LD
  10291. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10292. libsuff= shlibsuff= libmagic=32-bit;;
  10293. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10294. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10295. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10296. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10297. *) libsuff= shlibsuff= libmagic=never-match;;
  10298. esac
  10299. ;;
  10300. esac
  10301. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10302. shlibpath_overrides_runpath=no
  10303. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10304. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10305. hardcode_into_libs=yes
  10306. ;;
  10307. # No shared lib support for Linux oldld, aout, or coff.
  10308. linux*oldld* | linux*aout* | linux*coff*)
  10309. dynamic_linker=no
  10310. ;;
  10311. linux*android*)
  10312. version_type=none # Android doesn't support versioned libraries.
  10313. need_lib_prefix=no
  10314. need_version=no
  10315. library_names_spec='$libname$release$shared_ext'
  10316. soname_spec='$libname$release$shared_ext'
  10317. finish_cmds=
  10318. shlibpath_var=LD_LIBRARY_PATH
  10319. shlibpath_overrides_runpath=yes
  10320. # This implies no fast_install, which is unacceptable.
  10321. # Some rework will be needed to allow for fast_install
  10322. # before this can be enabled.
  10323. hardcode_into_libs=yes
  10324. dynamic_linker='Android linker'
  10325. # Don't embed -rpath directories since the linker doesn't support them.
  10326. hardcode_libdir_flag_spec='-L$libdir'
  10327. ;;
  10328. # This must be glibc/ELF.
  10329. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10330. version_type=linux # correct to gnu/linux during the next big refactor
  10331. need_lib_prefix=no
  10332. need_version=no
  10333. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10334. soname_spec='$libname$release$shared_ext$major'
  10335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10336. shlibpath_var=LD_LIBRARY_PATH
  10337. shlibpath_overrides_runpath=no
  10338. # Some binutils ld are patched to set DT_RUNPATH
  10339. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10340. then :
  10341. printf %s "(cached) " >&6
  10342. else $as_nop
  10343. lt_cv_shlibpath_overrides_runpath=no
  10344. save_LDFLAGS=$LDFLAGS
  10345. save_libdir=$libdir
  10346. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10347. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10349. /* end confdefs.h. */
  10350. int
  10351. main (void)
  10352. {
  10353. ;
  10354. return 0;
  10355. }
  10356. _ACEOF
  10357. if ac_fn_c_try_link "$LINENO"
  10358. then :
  10359. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10360. then :
  10361. lt_cv_shlibpath_overrides_runpath=yes
  10362. fi
  10363. fi
  10364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10365. conftest$ac_exeext conftest.$ac_ext
  10366. LDFLAGS=$save_LDFLAGS
  10367. libdir=$save_libdir
  10368. fi
  10369. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10370. # This implies no fast_install, which is unacceptable.
  10371. # Some rework will be needed to allow for fast_install
  10372. # before this can be enabled.
  10373. hardcode_into_libs=yes
  10374. # Add ABI-specific directories to the system library path.
  10375. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10376. # Ideally, we could use ldconfig to report *all* directores which are
  10377. # searched for libraries, however this is still not possible. Aside from not
  10378. # being certain /sbin/ldconfig is available, command
  10379. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10380. # even though it is searched at run-time. Try to do the best guess by
  10381. # appending ld.so.conf contents (and includes) to the search path.
  10382. if test -f /etc/ld.so.conf; then
  10383. 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' ' '`
  10384. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10385. fi
  10386. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10387. # powerpc, because MkLinux only supported shared libraries with the
  10388. # GNU dynamic linker. Since this was broken with cross compilers,
  10389. # most powerpc-linux boxes support dynamic linking these days and
  10390. # people can always --disable-shared, the test was removed, and we
  10391. # assume the GNU/Linux dynamic linker is in use.
  10392. dynamic_linker='GNU/Linux ld.so'
  10393. ;;
  10394. netbsd*)
  10395. version_type=sunos
  10396. need_lib_prefix=no
  10397. need_version=no
  10398. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10399. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10400. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10401. dynamic_linker='NetBSD (a.out) ld.so'
  10402. else
  10403. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10404. soname_spec='$libname$release$shared_ext$major'
  10405. dynamic_linker='NetBSD ld.elf_so'
  10406. fi
  10407. shlibpath_var=LD_LIBRARY_PATH
  10408. shlibpath_overrides_runpath=yes
  10409. hardcode_into_libs=yes
  10410. ;;
  10411. newsos6)
  10412. version_type=linux # correct to gnu/linux during the next big refactor
  10413. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. shlibpath_overrides_runpath=yes
  10416. ;;
  10417. *nto* | *qnx*)
  10418. version_type=qnx
  10419. need_lib_prefix=no
  10420. need_version=no
  10421. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10422. soname_spec='$libname$release$shared_ext$major'
  10423. shlibpath_var=LD_LIBRARY_PATH
  10424. shlibpath_overrides_runpath=no
  10425. hardcode_into_libs=yes
  10426. dynamic_linker='ldqnx.so'
  10427. ;;
  10428. openbsd* | bitrig*)
  10429. version_type=sunos
  10430. sys_lib_dlsearch_path_spec=/usr/lib
  10431. need_lib_prefix=no
  10432. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10433. need_version=no
  10434. else
  10435. need_version=yes
  10436. fi
  10437. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10438. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10439. shlibpath_var=LD_LIBRARY_PATH
  10440. shlibpath_overrides_runpath=yes
  10441. ;;
  10442. os2*)
  10443. libname_spec='$name'
  10444. shrext_cmds=.dll
  10445. need_lib_prefix=no
  10446. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10447. # SDL customization: removed versioning support.
  10448. # version_type=windows
  10449. # need_version=no
  10450. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10451. # v=$($ECHO $release$versuffix | tr -d .-);
  10452. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10453. # $ECHO $n$v`$shared_ext'
  10454. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10455. library_names_spec='${libname}_dll.$libext'
  10456. dynamic_linker='OS/2 ld.exe'
  10457. shlibpath_var=BEGINLIBPATH
  10458. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10459. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10460. postinstall_cmds='base_file=`basename \$file`~
  10461. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10462. dldir=$destdir/`dirname \$dlpath`~
  10463. test -d \$dldir || mkdir -p \$dldir~
  10464. $install_prog $dir/$dlname \$dldir/$dlname~
  10465. chmod a+x \$dldir/$dlname~
  10466. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10467. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10468. fi'
  10469. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10470. dlpath=$dir/\$dldll~
  10471. $RM \$dlpath'
  10472. ;;
  10473. osf3* | osf4* | osf5*)
  10474. version_type=osf
  10475. need_lib_prefix=no
  10476. need_version=no
  10477. soname_spec='$libname$release$shared_ext$major'
  10478. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10479. shlibpath_var=LD_LIBRARY_PATH
  10480. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10481. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10482. ;;
  10483. rdos*)
  10484. dynamic_linker=no
  10485. ;;
  10486. solaris*)
  10487. version_type=linux # correct to gnu/linux during the next big refactor
  10488. need_lib_prefix=no
  10489. need_version=no
  10490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10491. soname_spec='$libname$release$shared_ext$major'
  10492. shlibpath_var=LD_LIBRARY_PATH
  10493. shlibpath_overrides_runpath=yes
  10494. hardcode_into_libs=yes
  10495. # ldd complains unless libraries are executable
  10496. postinstall_cmds='chmod +x $lib'
  10497. ;;
  10498. sunos4*)
  10499. version_type=sunos
  10500. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10501. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10502. shlibpath_var=LD_LIBRARY_PATH
  10503. shlibpath_overrides_runpath=yes
  10504. if test yes = "$with_gnu_ld"; then
  10505. need_lib_prefix=no
  10506. fi
  10507. need_version=yes
  10508. ;;
  10509. sysv4 | sysv4.3*)
  10510. version_type=linux # correct to gnu/linux during the next big refactor
  10511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10512. soname_spec='$libname$release$shared_ext$major'
  10513. shlibpath_var=LD_LIBRARY_PATH
  10514. case $host_vendor in
  10515. sni)
  10516. shlibpath_overrides_runpath=no
  10517. need_lib_prefix=no
  10518. runpath_var=LD_RUN_PATH
  10519. ;;
  10520. siemens)
  10521. need_lib_prefix=no
  10522. ;;
  10523. motorola)
  10524. need_lib_prefix=no
  10525. need_version=no
  10526. shlibpath_overrides_runpath=no
  10527. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10528. ;;
  10529. esac
  10530. ;;
  10531. sysv4*MP*)
  10532. if test -d /usr/nec; then
  10533. version_type=linux # correct to gnu/linux during the next big refactor
  10534. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10535. soname_spec='$libname$shared_ext.$major'
  10536. shlibpath_var=LD_LIBRARY_PATH
  10537. fi
  10538. ;;
  10539. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10540. version_type=sco
  10541. need_lib_prefix=no
  10542. need_version=no
  10543. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10544. soname_spec='$libname$release$shared_ext$major'
  10545. shlibpath_var=LD_LIBRARY_PATH
  10546. shlibpath_overrides_runpath=yes
  10547. hardcode_into_libs=yes
  10548. if test yes = "$with_gnu_ld"; then
  10549. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10550. else
  10551. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10552. case $host_os in
  10553. sco3.2v5*)
  10554. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10555. ;;
  10556. esac
  10557. fi
  10558. sys_lib_dlsearch_path_spec='/usr/lib'
  10559. ;;
  10560. tpf*)
  10561. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10562. version_type=linux # correct to gnu/linux during the next big refactor
  10563. need_lib_prefix=no
  10564. need_version=no
  10565. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10566. shlibpath_var=LD_LIBRARY_PATH
  10567. shlibpath_overrides_runpath=no
  10568. hardcode_into_libs=yes
  10569. ;;
  10570. uts4*)
  10571. version_type=linux # correct to gnu/linux during the next big refactor
  10572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10573. soname_spec='$libname$release$shared_ext$major'
  10574. shlibpath_var=LD_LIBRARY_PATH
  10575. ;;
  10576. *)
  10577. dynamic_linker=no
  10578. ;;
  10579. esac
  10580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10581. printf "%s\n" "$dynamic_linker" >&6; }
  10582. test no = "$dynamic_linker" && can_build_shared=no
  10583. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10584. if test yes = "$GCC"; then
  10585. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10586. fi
  10587. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10588. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10589. fi
  10590. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10591. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10592. fi
  10593. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10594. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10595. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10596. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10597. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10598. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10600. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10601. hardcode_action=
  10602. if test -n "$hardcode_libdir_flag_spec" ||
  10603. test -n "$runpath_var" ||
  10604. test yes = "$hardcode_automatic"; then
  10605. # We can hardcode non-existent directories.
  10606. if test no != "$hardcode_direct" &&
  10607. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10608. # have to relink, otherwise we might link with an installed library
  10609. # when we should be linking with a yet-to-be-installed one
  10610. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10611. test no != "$hardcode_minus_L"; then
  10612. # Linking always hardcodes the temporary library directory.
  10613. hardcode_action=relink
  10614. else
  10615. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10616. hardcode_action=immediate
  10617. fi
  10618. else
  10619. # We cannot hardcode anything, or else we can only hardcode existing
  10620. # directories.
  10621. hardcode_action=unsupported
  10622. fi
  10623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10624. printf "%s\n" "$hardcode_action" >&6; }
  10625. if test relink = "$hardcode_action" ||
  10626. test yes = "$inherit_rpath"; then
  10627. # Fast installation is not supported
  10628. enable_fast_install=no
  10629. elif test yes = "$shlibpath_overrides_runpath" ||
  10630. test no = "$enable_shared"; then
  10631. # Fast installation is not necessary
  10632. enable_fast_install=needless
  10633. fi
  10634. if test yes != "$enable_dlopen"; then
  10635. enable_dlopen=unknown
  10636. enable_dlopen_self=unknown
  10637. enable_dlopen_self_static=unknown
  10638. else
  10639. lt_cv_dlopen=no
  10640. lt_cv_dlopen_libs=
  10641. case $host_os in
  10642. beos*)
  10643. lt_cv_dlopen=load_add_on
  10644. lt_cv_dlopen_libs=
  10645. lt_cv_dlopen_self=yes
  10646. ;;
  10647. mingw* | windows* | pw32* | cegcc*)
  10648. lt_cv_dlopen=LoadLibrary
  10649. lt_cv_dlopen_libs=
  10650. ;;
  10651. cygwin*)
  10652. lt_cv_dlopen=dlopen
  10653. lt_cv_dlopen_libs=
  10654. ;;
  10655. darwin*)
  10656. # if libdl is installed we need to link against it
  10657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10658. printf %s "checking for dlopen in -ldl... " >&6; }
  10659. if test ${ac_cv_lib_dl_dlopen+y}
  10660. then :
  10661. printf %s "(cached) " >&6
  10662. else $as_nop
  10663. ac_check_lib_save_LIBS=$LIBS
  10664. LIBS="-ldl $LIBS"
  10665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10666. /* end confdefs.h. */
  10667. /* Override any GCC internal prototype to avoid an error.
  10668. Use char because int might match the return type of a GCC
  10669. builtin and then its argument prototype would still apply. */
  10670. char dlopen ();
  10671. int
  10672. main (void)
  10673. {
  10674. return dlopen ();
  10675. ;
  10676. return 0;
  10677. }
  10678. _ACEOF
  10679. if ac_fn_c_try_link "$LINENO"
  10680. then :
  10681. ac_cv_lib_dl_dlopen=yes
  10682. else $as_nop
  10683. ac_cv_lib_dl_dlopen=no
  10684. fi
  10685. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. LIBS=$ac_check_lib_save_LIBS
  10688. fi
  10689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10690. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10691. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10692. then :
  10693. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10694. else $as_nop
  10695. lt_cv_dlopen=dyld
  10696. lt_cv_dlopen_libs=
  10697. lt_cv_dlopen_self=yes
  10698. fi
  10699. ;;
  10700. tpf*)
  10701. # Don't try to run any link tests for TPF. We know it's impossible
  10702. # because TPF is a cross-compiler, and we know how we open DSOs.
  10703. lt_cv_dlopen=dlopen
  10704. lt_cv_dlopen_libs=
  10705. lt_cv_dlopen_self=no
  10706. ;;
  10707. *)
  10708. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10709. if test "x$ac_cv_func_shl_load" = xyes
  10710. then :
  10711. lt_cv_dlopen=shl_load
  10712. else $as_nop
  10713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10714. printf %s "checking for shl_load in -ldld... " >&6; }
  10715. if test ${ac_cv_lib_dld_shl_load+y}
  10716. then :
  10717. printf %s "(cached) " >&6
  10718. else $as_nop
  10719. ac_check_lib_save_LIBS=$LIBS
  10720. LIBS="-ldld $LIBS"
  10721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10722. /* end confdefs.h. */
  10723. /* Override any GCC internal prototype to avoid an error.
  10724. Use char because int might match the return type of a GCC
  10725. builtin and then its argument prototype would still apply. */
  10726. char shl_load ();
  10727. int
  10728. main (void)
  10729. {
  10730. return shl_load ();
  10731. ;
  10732. return 0;
  10733. }
  10734. _ACEOF
  10735. if ac_fn_c_try_link "$LINENO"
  10736. then :
  10737. ac_cv_lib_dld_shl_load=yes
  10738. else $as_nop
  10739. ac_cv_lib_dld_shl_load=no
  10740. fi
  10741. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10742. conftest$ac_exeext conftest.$ac_ext
  10743. LIBS=$ac_check_lib_save_LIBS
  10744. fi
  10745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10746. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10747. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10748. then :
  10749. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10750. else $as_nop
  10751. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10752. if test "x$ac_cv_func_dlopen" = xyes
  10753. then :
  10754. lt_cv_dlopen=dlopen
  10755. else $as_nop
  10756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10757. printf %s "checking for dlopen in -ldl... " >&6; }
  10758. if test ${ac_cv_lib_dl_dlopen+y}
  10759. then :
  10760. printf %s "(cached) " >&6
  10761. else $as_nop
  10762. ac_check_lib_save_LIBS=$LIBS
  10763. LIBS="-ldl $LIBS"
  10764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10765. /* end confdefs.h. */
  10766. /* Override any GCC internal prototype to avoid an error.
  10767. Use char because int might match the return type of a GCC
  10768. builtin and then its argument prototype would still apply. */
  10769. char dlopen ();
  10770. int
  10771. main (void)
  10772. {
  10773. return dlopen ();
  10774. ;
  10775. return 0;
  10776. }
  10777. _ACEOF
  10778. if ac_fn_c_try_link "$LINENO"
  10779. then :
  10780. ac_cv_lib_dl_dlopen=yes
  10781. else $as_nop
  10782. ac_cv_lib_dl_dlopen=no
  10783. fi
  10784. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10785. conftest$ac_exeext conftest.$ac_ext
  10786. LIBS=$ac_check_lib_save_LIBS
  10787. fi
  10788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10789. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10790. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10791. then :
  10792. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10793. else $as_nop
  10794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10795. printf %s "checking for dlopen in -lsvld... " >&6; }
  10796. if test ${ac_cv_lib_svld_dlopen+y}
  10797. then :
  10798. printf %s "(cached) " >&6
  10799. else $as_nop
  10800. ac_check_lib_save_LIBS=$LIBS
  10801. LIBS="-lsvld $LIBS"
  10802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10803. /* end confdefs.h. */
  10804. /* Override any GCC internal prototype to avoid an error.
  10805. Use char because int might match the return type of a GCC
  10806. builtin and then its argument prototype would still apply. */
  10807. char dlopen ();
  10808. int
  10809. main (void)
  10810. {
  10811. return dlopen ();
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. if ac_fn_c_try_link "$LINENO"
  10817. then :
  10818. ac_cv_lib_svld_dlopen=yes
  10819. else $as_nop
  10820. ac_cv_lib_svld_dlopen=no
  10821. fi
  10822. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10823. conftest$ac_exeext conftest.$ac_ext
  10824. LIBS=$ac_check_lib_save_LIBS
  10825. fi
  10826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10827. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10828. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10829. then :
  10830. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10831. else $as_nop
  10832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10833. printf %s "checking for dld_link in -ldld... " >&6; }
  10834. if test ${ac_cv_lib_dld_dld_link+y}
  10835. then :
  10836. printf %s "(cached) " >&6
  10837. else $as_nop
  10838. ac_check_lib_save_LIBS=$LIBS
  10839. LIBS="-ldld $LIBS"
  10840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10841. /* end confdefs.h. */
  10842. /* Override any GCC internal prototype to avoid an error.
  10843. Use char because int might match the return type of a GCC
  10844. builtin and then its argument prototype would still apply. */
  10845. char dld_link ();
  10846. int
  10847. main (void)
  10848. {
  10849. return dld_link ();
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. if ac_fn_c_try_link "$LINENO"
  10855. then :
  10856. ac_cv_lib_dld_dld_link=yes
  10857. else $as_nop
  10858. ac_cv_lib_dld_dld_link=no
  10859. fi
  10860. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10861. conftest$ac_exeext conftest.$ac_ext
  10862. LIBS=$ac_check_lib_save_LIBS
  10863. fi
  10864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10865. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10866. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10867. then :
  10868. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10869. fi
  10870. fi
  10871. fi
  10872. fi
  10873. fi
  10874. fi
  10875. ;;
  10876. esac
  10877. if test no = "$lt_cv_dlopen"; then
  10878. enable_dlopen=no
  10879. else
  10880. enable_dlopen=yes
  10881. fi
  10882. case $lt_cv_dlopen in
  10883. dlopen)
  10884. save_CPPFLAGS=$CPPFLAGS
  10885. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10886. save_LDFLAGS=$LDFLAGS
  10887. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10888. save_LIBS=$LIBS
  10889. LIBS="$lt_cv_dlopen_libs $LIBS"
  10890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10891. printf %s "checking whether a program can dlopen itself... " >&6; }
  10892. if test ${lt_cv_dlopen_self+y}
  10893. then :
  10894. printf %s "(cached) " >&6
  10895. else $as_nop
  10896. if test yes = "$cross_compiling"; then :
  10897. lt_cv_dlopen_self=cross
  10898. else
  10899. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10900. lt_status=$lt_dlunknown
  10901. cat > conftest.$ac_ext <<_LT_EOF
  10902. #line $LINENO "configure"
  10903. #include "confdefs.h"
  10904. #if HAVE_DLFCN_H
  10905. #include <dlfcn.h>
  10906. #endif
  10907. #include <stdio.h>
  10908. #ifdef RTLD_GLOBAL
  10909. # define LT_DLGLOBAL RTLD_GLOBAL
  10910. #else
  10911. # ifdef DL_GLOBAL
  10912. # define LT_DLGLOBAL DL_GLOBAL
  10913. # else
  10914. # define LT_DLGLOBAL 0
  10915. # endif
  10916. #endif
  10917. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10918. find out it does not work in some platform. */
  10919. #ifndef LT_DLLAZY_OR_NOW
  10920. # ifdef RTLD_LAZY
  10921. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10922. # else
  10923. # ifdef DL_LAZY
  10924. # define LT_DLLAZY_OR_NOW DL_LAZY
  10925. # else
  10926. # ifdef RTLD_NOW
  10927. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10928. # else
  10929. # ifdef DL_NOW
  10930. # define LT_DLLAZY_OR_NOW DL_NOW
  10931. # else
  10932. # define LT_DLLAZY_OR_NOW 0
  10933. # endif
  10934. # endif
  10935. # endif
  10936. # endif
  10937. #endif
  10938. /* When -fvisibility=hidden is used, assume the code has been annotated
  10939. correspondingly for the symbols needed. */
  10940. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10941. int fnord () __attribute__((visibility("default")));
  10942. #endif
  10943. int fnord () { return 42; }
  10944. int main ()
  10945. {
  10946. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10947. int status = $lt_dlunknown;
  10948. if (self)
  10949. {
  10950. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10951. else
  10952. {
  10953. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10954. else puts (dlerror ());
  10955. }
  10956. /* dlclose (self); */
  10957. }
  10958. else
  10959. puts (dlerror ());
  10960. return status;
  10961. }
  10962. _LT_EOF
  10963. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10964. (eval $ac_link) 2>&5
  10965. ac_status=$?
  10966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10967. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10968. (./conftest; exit; ) >&5 2>/dev/null
  10969. lt_status=$?
  10970. case x$lt_status in
  10971. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10972. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10973. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10974. esac
  10975. else :
  10976. # compilation failed
  10977. lt_cv_dlopen_self=no
  10978. fi
  10979. fi
  10980. rm -fr conftest*
  10981. fi
  10982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10983. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10984. if test yes = "$lt_cv_dlopen_self"; then
  10985. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10987. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10988. if test ${lt_cv_dlopen_self_static+y}
  10989. then :
  10990. printf %s "(cached) " >&6
  10991. else $as_nop
  10992. if test yes = "$cross_compiling"; then :
  10993. lt_cv_dlopen_self_static=cross
  10994. else
  10995. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10996. lt_status=$lt_dlunknown
  10997. cat > conftest.$ac_ext <<_LT_EOF
  10998. #line $LINENO "configure"
  10999. #include "confdefs.h"
  11000. #if HAVE_DLFCN_H
  11001. #include <dlfcn.h>
  11002. #endif
  11003. #include <stdio.h>
  11004. #ifdef RTLD_GLOBAL
  11005. # define LT_DLGLOBAL RTLD_GLOBAL
  11006. #else
  11007. # ifdef DL_GLOBAL
  11008. # define LT_DLGLOBAL DL_GLOBAL
  11009. # else
  11010. # define LT_DLGLOBAL 0
  11011. # endif
  11012. #endif
  11013. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11014. find out it does not work in some platform. */
  11015. #ifndef LT_DLLAZY_OR_NOW
  11016. # ifdef RTLD_LAZY
  11017. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11018. # else
  11019. # ifdef DL_LAZY
  11020. # define LT_DLLAZY_OR_NOW DL_LAZY
  11021. # else
  11022. # ifdef RTLD_NOW
  11023. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11024. # else
  11025. # ifdef DL_NOW
  11026. # define LT_DLLAZY_OR_NOW DL_NOW
  11027. # else
  11028. # define LT_DLLAZY_OR_NOW 0
  11029. # endif
  11030. # endif
  11031. # endif
  11032. # endif
  11033. #endif
  11034. /* When -fvisibility=hidden is used, assume the code has been annotated
  11035. correspondingly for the symbols needed. */
  11036. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11037. int fnord () __attribute__((visibility("default")));
  11038. #endif
  11039. int fnord () { return 42; }
  11040. int main ()
  11041. {
  11042. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11043. int status = $lt_dlunknown;
  11044. if (self)
  11045. {
  11046. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11047. else
  11048. {
  11049. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11050. else puts (dlerror ());
  11051. }
  11052. /* dlclose (self); */
  11053. }
  11054. else
  11055. puts (dlerror ());
  11056. return status;
  11057. }
  11058. _LT_EOF
  11059. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11060. (eval $ac_link) 2>&5
  11061. ac_status=$?
  11062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11063. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11064. (./conftest; exit; ) >&5 2>/dev/null
  11065. lt_status=$?
  11066. case x$lt_status in
  11067. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11068. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11069. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11070. esac
  11071. else :
  11072. # compilation failed
  11073. lt_cv_dlopen_self_static=no
  11074. fi
  11075. fi
  11076. rm -fr conftest*
  11077. fi
  11078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11079. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11080. fi
  11081. CPPFLAGS=$save_CPPFLAGS
  11082. LDFLAGS=$save_LDFLAGS
  11083. LIBS=$save_LIBS
  11084. ;;
  11085. esac
  11086. case $lt_cv_dlopen_self in
  11087. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11088. *) enable_dlopen_self=unknown ;;
  11089. esac
  11090. case $lt_cv_dlopen_self_static in
  11091. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11092. *) enable_dlopen_self_static=unknown ;;
  11093. esac
  11094. fi
  11095. striplib=
  11096. old_striplib=
  11097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11098. printf %s "checking whether stripping libraries is possible... " >&6; }
  11099. if test -z "$STRIP"; then
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11101. printf "%s\n" "no" >&6; }
  11102. else
  11103. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11104. old_striplib="$STRIP --strip-debug"
  11105. striplib="$STRIP --strip-unneeded"
  11106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11107. printf "%s\n" "yes" >&6; }
  11108. else
  11109. case $host_os in
  11110. darwin*)
  11111. # FIXME - insert some real tests, host_os isn't really good enough
  11112. striplib="$STRIP -x"
  11113. old_striplib="$STRIP -S"
  11114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11115. printf "%s\n" "yes" >&6; }
  11116. ;;
  11117. freebsd*)
  11118. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11119. old_striplib="$STRIP --strip-debug"
  11120. striplib="$STRIP --strip-unneeded"
  11121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11122. printf "%s\n" "yes" >&6; }
  11123. else
  11124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11125. printf "%s\n" "no" >&6; }
  11126. fi
  11127. ;;
  11128. *)
  11129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11130. printf "%s\n" "no" >&6; }
  11131. ;;
  11132. esac
  11133. fi
  11134. fi
  11135. # Report what library types will actually be built
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11137. printf %s "checking if libtool supports shared libraries... " >&6; }
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11139. printf "%s\n" "$can_build_shared" >&6; }
  11140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11141. printf %s "checking whether to build shared libraries... " >&6; }
  11142. test no = "$can_build_shared" && enable_shared=no
  11143. # On AIX, shared libraries and static libraries use the same namespace, and
  11144. # are all built from PIC.
  11145. case $host_os in
  11146. aix3*)
  11147. test yes = "$enable_shared" && enable_static=no
  11148. if test -n "$RANLIB"; then
  11149. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11150. postinstall_cmds='$RANLIB $lib'
  11151. fi
  11152. ;;
  11153. aix[4-9]*)
  11154. if test ia64 != "$host_cpu"; then
  11155. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11156. yes,aix,yes) ;; # shared object as lib.so file only
  11157. yes,svr4,*) ;; # shared object as lib.so archive member only
  11158. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11159. esac
  11160. fi
  11161. ;;
  11162. esac
  11163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11164. printf "%s\n" "$enable_shared" >&6; }
  11165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11166. printf %s "checking whether to build static libraries... " >&6; }
  11167. # Make sure either enable_shared or enable_static is yes.
  11168. test yes = "$enable_shared" || enable_static=yes
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11170. printf "%s\n" "$enable_static" >&6; }
  11171. fi
  11172. ac_ext=c
  11173. ac_cpp='$CPP $CPPFLAGS'
  11174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11177. CC=$lt_save_CC
  11178. ac_config_commands="$ac_config_commands libtool"
  11179. # Only expand once:
  11180. if test -n "$ac_tool_prefix"; then
  11181. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11182. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11184. printf %s "checking for $ac_word... " >&6; }
  11185. if test ${ac_cv_prog_RC+y}
  11186. then :
  11187. printf %s "(cached) " >&6
  11188. else $as_nop
  11189. if test -n "$RC"; then
  11190. ac_cv_prog_RC="$RC" # Let the user override the test.
  11191. else
  11192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11193. for as_dir in $PATH
  11194. do
  11195. IFS=$as_save_IFS
  11196. case $as_dir in #(((
  11197. '') as_dir=./ ;;
  11198. */) ;;
  11199. *) as_dir=$as_dir/ ;;
  11200. esac
  11201. for ac_exec_ext in '' $ac_executable_extensions; do
  11202. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11203. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11205. break 2
  11206. fi
  11207. done
  11208. done
  11209. IFS=$as_save_IFS
  11210. fi
  11211. fi
  11212. RC=$ac_cv_prog_RC
  11213. if test -n "$RC"; then
  11214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11215. printf "%s\n" "$RC" >&6; }
  11216. else
  11217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11218. printf "%s\n" "no" >&6; }
  11219. fi
  11220. fi
  11221. if test -z "$ac_cv_prog_RC"; then
  11222. ac_ct_RC=$RC
  11223. # Extract the first word of "windres", so it can be a program name with args.
  11224. set dummy windres; ac_word=$2
  11225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11226. printf %s "checking for $ac_word... " >&6; }
  11227. if test ${ac_cv_prog_ac_ct_RC+y}
  11228. then :
  11229. printf %s "(cached) " >&6
  11230. else $as_nop
  11231. if test -n "$ac_ct_RC"; then
  11232. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11233. else
  11234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11235. for as_dir in $PATH
  11236. do
  11237. IFS=$as_save_IFS
  11238. case $as_dir in #(((
  11239. '') as_dir=./ ;;
  11240. */) ;;
  11241. *) as_dir=$as_dir/ ;;
  11242. esac
  11243. for ac_exec_ext in '' $ac_executable_extensions; do
  11244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11245. ac_cv_prog_ac_ct_RC="windres"
  11246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11247. break 2
  11248. fi
  11249. done
  11250. done
  11251. IFS=$as_save_IFS
  11252. fi
  11253. fi
  11254. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11255. if test -n "$ac_ct_RC"; then
  11256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11257. printf "%s\n" "$ac_ct_RC" >&6; }
  11258. else
  11259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11260. printf "%s\n" "no" >&6; }
  11261. fi
  11262. if test "x$ac_ct_RC" = x; then
  11263. RC=""
  11264. else
  11265. case $cross_compiling:$ac_tool_warned in
  11266. yes:)
  11267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11268. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11269. ac_tool_warned=yes ;;
  11270. esac
  11271. RC=$ac_ct_RC
  11272. fi
  11273. else
  11274. RC="$ac_cv_prog_RC"
  11275. fi
  11276. # Source file extension for RC test sources.
  11277. ac_ext=rc
  11278. # Object file extension for compiled RC test sources.
  11279. objext=o
  11280. objext_RC=$objext
  11281. # Code to be used in simple compile tests
  11282. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11283. # Code to be used in simple link tests
  11284. lt_simple_link_test_code=$lt_simple_compile_test_code
  11285. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11286. # If no C compiler was specified, use CC.
  11287. LTCC=${LTCC-"$CC"}
  11288. # If no C compiler flags were specified, use CFLAGS.
  11289. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11290. # Allow CC to be a program name with arguments.
  11291. compiler=$CC
  11292. # save warnings/boilerplate of simple test code
  11293. ac_outfile=conftest.$ac_objext
  11294. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11295. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11296. _lt_compiler_boilerplate=`cat conftest.err`
  11297. $RM conftest*
  11298. ac_outfile=conftest.$ac_objext
  11299. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11300. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11301. _lt_linker_boilerplate=`cat conftest.err`
  11302. $RM -r conftest*
  11303. # Allow CC to be a program name with arguments.
  11304. lt_save_CC=$CC
  11305. lt_save_CFLAGS=$CFLAGS
  11306. lt_save_GCC=$GCC
  11307. GCC=
  11308. CC=${RC-"windres"}
  11309. CFLAGS=
  11310. compiler=$CC
  11311. compiler_RC=$CC
  11312. func_cc_basename $compiler
  11313. cc_basename=$func_cc_basename_result
  11314. lt_cv_prog_compiler_c_o_RC=yes
  11315. if test -n "$compiler"; then
  11316. :
  11317. fi
  11318. GCC=$lt_save_GCC
  11319. ac_ext=c
  11320. ac_cpp='$CPP $CPPFLAGS'
  11321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11324. CC=$lt_save_CC
  11325. CFLAGS=$lt_save_CFLAGS
  11326. # For historical reasons, the library name redundantly includes the major
  11327. # version twice: libSDL2-2.0.so.0.
  11328. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11329. LT_RELEASE=2.0
  11330. # Increment this if there is an incompatible change - but if that happens,
  11331. # we should rename the library from SDL2 to SDL3, at which point this would
  11332. # reset to 0 anyway.
  11333. LT_MAJOR=0
  11334. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11335. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11336. LT_REVISION=$SDL_INTERFACE_AGE
  11337. for ac_prog in gawk mawk nawk awk
  11338. do
  11339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11340. set dummy $ac_prog; ac_word=$2
  11341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11342. printf %s "checking for $ac_word... " >&6; }
  11343. if test ${ac_cv_prog_AWK+y}
  11344. then :
  11345. printf %s "(cached) " >&6
  11346. else $as_nop
  11347. if test -n "$AWK"; then
  11348. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11349. else
  11350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11351. for as_dir in $PATH
  11352. do
  11353. IFS=$as_save_IFS
  11354. case $as_dir in #(((
  11355. '') as_dir=./ ;;
  11356. */) ;;
  11357. *) as_dir=$as_dir/ ;;
  11358. esac
  11359. for ac_exec_ext in '' $ac_executable_extensions; do
  11360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11361. ac_cv_prog_AWK="$ac_prog"
  11362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11363. break 2
  11364. fi
  11365. done
  11366. done
  11367. IFS=$as_save_IFS
  11368. fi
  11369. fi
  11370. AWK=$ac_cv_prog_AWK
  11371. if test -n "$AWK"; then
  11372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11373. printf "%s\n" "$AWK" >&6; }
  11374. else
  11375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11376. printf "%s\n" "no" >&6; }
  11377. fi
  11378. test -n "$AWK" && break
  11379. done
  11380. ac_ext=c
  11381. ac_cpp='$CPP $CPPFLAGS'
  11382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11385. if test -n "$ac_tool_prefix"; then
  11386. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11387. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11389. printf %s "checking for $ac_word... " >&6; }
  11390. if test ${ac_cv_prog_CC+y}
  11391. then :
  11392. printf %s "(cached) " >&6
  11393. else $as_nop
  11394. if test -n "$CC"; then
  11395. ac_cv_prog_CC="$CC" # Let the user override the test.
  11396. else
  11397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11398. for as_dir in $PATH
  11399. do
  11400. IFS=$as_save_IFS
  11401. case $as_dir in #(((
  11402. '') as_dir=./ ;;
  11403. */) ;;
  11404. *) as_dir=$as_dir/ ;;
  11405. esac
  11406. for ac_exec_ext in '' $ac_executable_extensions; do
  11407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11408. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11410. break 2
  11411. fi
  11412. done
  11413. done
  11414. IFS=$as_save_IFS
  11415. fi
  11416. fi
  11417. CC=$ac_cv_prog_CC
  11418. if test -n "$CC"; then
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11420. printf "%s\n" "$CC" >&6; }
  11421. else
  11422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11423. printf "%s\n" "no" >&6; }
  11424. fi
  11425. fi
  11426. if test -z "$ac_cv_prog_CC"; then
  11427. ac_ct_CC=$CC
  11428. # Extract the first word of "gcc", so it can be a program name with args.
  11429. set dummy gcc; ac_word=$2
  11430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11431. printf %s "checking for $ac_word... " >&6; }
  11432. if test ${ac_cv_prog_ac_ct_CC+y}
  11433. then :
  11434. printf %s "(cached) " >&6
  11435. else $as_nop
  11436. if test -n "$ac_ct_CC"; then
  11437. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11438. else
  11439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11440. for as_dir in $PATH
  11441. do
  11442. IFS=$as_save_IFS
  11443. case $as_dir in #(((
  11444. '') as_dir=./ ;;
  11445. */) ;;
  11446. *) as_dir=$as_dir/ ;;
  11447. esac
  11448. for ac_exec_ext in '' $ac_executable_extensions; do
  11449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11450. ac_cv_prog_ac_ct_CC="gcc"
  11451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11452. break 2
  11453. fi
  11454. done
  11455. done
  11456. IFS=$as_save_IFS
  11457. fi
  11458. fi
  11459. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11460. if test -n "$ac_ct_CC"; then
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11462. printf "%s\n" "$ac_ct_CC" >&6; }
  11463. else
  11464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11465. printf "%s\n" "no" >&6; }
  11466. fi
  11467. if test "x$ac_ct_CC" = x; then
  11468. CC=""
  11469. else
  11470. case $cross_compiling:$ac_tool_warned in
  11471. yes:)
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11473. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11474. ac_tool_warned=yes ;;
  11475. esac
  11476. CC=$ac_ct_CC
  11477. fi
  11478. else
  11479. CC="$ac_cv_prog_CC"
  11480. fi
  11481. if test -z "$CC"; then
  11482. if test -n "$ac_tool_prefix"; then
  11483. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11484. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11486. printf %s "checking for $ac_word... " >&6; }
  11487. if test ${ac_cv_prog_CC+y}
  11488. then :
  11489. printf %s "(cached) " >&6
  11490. else $as_nop
  11491. if test -n "$CC"; then
  11492. ac_cv_prog_CC="$CC" # Let the user override the test.
  11493. else
  11494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11495. for as_dir in $PATH
  11496. do
  11497. IFS=$as_save_IFS
  11498. case $as_dir in #(((
  11499. '') as_dir=./ ;;
  11500. */) ;;
  11501. *) as_dir=$as_dir/ ;;
  11502. esac
  11503. for ac_exec_ext in '' $ac_executable_extensions; do
  11504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11505. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11507. break 2
  11508. fi
  11509. done
  11510. done
  11511. IFS=$as_save_IFS
  11512. fi
  11513. fi
  11514. CC=$ac_cv_prog_CC
  11515. if test -n "$CC"; then
  11516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11517. printf "%s\n" "$CC" >&6; }
  11518. else
  11519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11520. printf "%s\n" "no" >&6; }
  11521. fi
  11522. fi
  11523. fi
  11524. if test -z "$CC"; then
  11525. # Extract the first word of "cc", so it can be a program name with args.
  11526. set dummy cc; ac_word=$2
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. printf %s "checking for $ac_word... " >&6; }
  11529. if test ${ac_cv_prog_CC+y}
  11530. then :
  11531. printf %s "(cached) " >&6
  11532. else $as_nop
  11533. if test -n "$CC"; then
  11534. ac_cv_prog_CC="$CC" # Let the user override the test.
  11535. else
  11536. ac_prog_rejected=no
  11537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11538. for as_dir in $PATH
  11539. do
  11540. IFS=$as_save_IFS
  11541. case $as_dir in #(((
  11542. '') as_dir=./ ;;
  11543. */) ;;
  11544. *) as_dir=$as_dir/ ;;
  11545. esac
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11548. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11549. ac_prog_rejected=yes
  11550. continue
  11551. fi
  11552. ac_cv_prog_CC="cc"
  11553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11554. break 2
  11555. fi
  11556. done
  11557. done
  11558. IFS=$as_save_IFS
  11559. if test $ac_prog_rejected = yes; then
  11560. # We found a bogon in the path, so make sure we never use it.
  11561. set dummy $ac_cv_prog_CC
  11562. shift
  11563. if test $# != 0; then
  11564. # We chose a different compiler from the bogus one.
  11565. # However, it has the same basename, so the bogon will be chosen
  11566. # first if we set CC to just the basename; use the full file name.
  11567. shift
  11568. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11569. fi
  11570. fi
  11571. fi
  11572. fi
  11573. CC=$ac_cv_prog_CC
  11574. if test -n "$CC"; then
  11575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11576. printf "%s\n" "$CC" >&6; }
  11577. else
  11578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11579. printf "%s\n" "no" >&6; }
  11580. fi
  11581. fi
  11582. if test -z "$CC"; then
  11583. if test -n "$ac_tool_prefix"; then
  11584. for ac_prog in cl.exe
  11585. do
  11586. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11587. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11589. printf %s "checking for $ac_word... " >&6; }
  11590. if test ${ac_cv_prog_CC+y}
  11591. then :
  11592. printf %s "(cached) " >&6
  11593. else $as_nop
  11594. if test -n "$CC"; then
  11595. ac_cv_prog_CC="$CC" # Let the user override the test.
  11596. else
  11597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11598. for as_dir in $PATH
  11599. do
  11600. IFS=$as_save_IFS
  11601. case $as_dir in #(((
  11602. '') as_dir=./ ;;
  11603. */) ;;
  11604. *) as_dir=$as_dir/ ;;
  11605. esac
  11606. for ac_exec_ext in '' $ac_executable_extensions; do
  11607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11608. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11610. break 2
  11611. fi
  11612. done
  11613. done
  11614. IFS=$as_save_IFS
  11615. fi
  11616. fi
  11617. CC=$ac_cv_prog_CC
  11618. if test -n "$CC"; then
  11619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11620. printf "%s\n" "$CC" >&6; }
  11621. else
  11622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11623. printf "%s\n" "no" >&6; }
  11624. fi
  11625. test -n "$CC" && break
  11626. done
  11627. fi
  11628. if test -z "$CC"; then
  11629. ac_ct_CC=$CC
  11630. for ac_prog in cl.exe
  11631. do
  11632. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11633. set dummy $ac_prog; ac_word=$2
  11634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11635. printf %s "checking for $ac_word... " >&6; }
  11636. if test ${ac_cv_prog_ac_ct_CC+y}
  11637. then :
  11638. printf %s "(cached) " >&6
  11639. else $as_nop
  11640. if test -n "$ac_ct_CC"; then
  11641. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11642. else
  11643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11644. for as_dir in $PATH
  11645. do
  11646. IFS=$as_save_IFS
  11647. case $as_dir in #(((
  11648. '') as_dir=./ ;;
  11649. */) ;;
  11650. *) as_dir=$as_dir/ ;;
  11651. esac
  11652. for ac_exec_ext in '' $ac_executable_extensions; do
  11653. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11654. ac_cv_prog_ac_ct_CC="$ac_prog"
  11655. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11656. break 2
  11657. fi
  11658. done
  11659. done
  11660. IFS=$as_save_IFS
  11661. fi
  11662. fi
  11663. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11664. if test -n "$ac_ct_CC"; then
  11665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11666. printf "%s\n" "$ac_ct_CC" >&6; }
  11667. else
  11668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11669. printf "%s\n" "no" >&6; }
  11670. fi
  11671. test -n "$ac_ct_CC" && break
  11672. done
  11673. if test "x$ac_ct_CC" = x; then
  11674. CC=""
  11675. else
  11676. case $cross_compiling:$ac_tool_warned in
  11677. yes:)
  11678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11679. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11680. ac_tool_warned=yes ;;
  11681. esac
  11682. CC=$ac_ct_CC
  11683. fi
  11684. fi
  11685. fi
  11686. if test -z "$CC"; then
  11687. if test -n "$ac_tool_prefix"; then
  11688. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11689. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11691. printf %s "checking for $ac_word... " >&6; }
  11692. if test ${ac_cv_prog_CC+y}
  11693. then :
  11694. printf %s "(cached) " >&6
  11695. else $as_nop
  11696. if test -n "$CC"; then
  11697. ac_cv_prog_CC="$CC" # Let the user override the test.
  11698. else
  11699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11700. for as_dir in $PATH
  11701. do
  11702. IFS=$as_save_IFS
  11703. case $as_dir in #(((
  11704. '') as_dir=./ ;;
  11705. */) ;;
  11706. *) as_dir=$as_dir/ ;;
  11707. esac
  11708. for ac_exec_ext in '' $ac_executable_extensions; do
  11709. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11710. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11711. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11712. break 2
  11713. fi
  11714. done
  11715. done
  11716. IFS=$as_save_IFS
  11717. fi
  11718. fi
  11719. CC=$ac_cv_prog_CC
  11720. if test -n "$CC"; then
  11721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11722. printf "%s\n" "$CC" >&6; }
  11723. else
  11724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11725. printf "%s\n" "no" >&6; }
  11726. fi
  11727. fi
  11728. if test -z "$ac_cv_prog_CC"; then
  11729. ac_ct_CC=$CC
  11730. # Extract the first word of "clang", so it can be a program name with args.
  11731. set dummy clang; ac_word=$2
  11732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11733. printf %s "checking for $ac_word... " >&6; }
  11734. if test ${ac_cv_prog_ac_ct_CC+y}
  11735. then :
  11736. printf %s "(cached) " >&6
  11737. else $as_nop
  11738. if test -n "$ac_ct_CC"; then
  11739. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11740. else
  11741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11742. for as_dir in $PATH
  11743. do
  11744. IFS=$as_save_IFS
  11745. case $as_dir in #(((
  11746. '') as_dir=./ ;;
  11747. */) ;;
  11748. *) as_dir=$as_dir/ ;;
  11749. esac
  11750. for ac_exec_ext in '' $ac_executable_extensions; do
  11751. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11752. ac_cv_prog_ac_ct_CC="clang"
  11753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11754. break 2
  11755. fi
  11756. done
  11757. done
  11758. IFS=$as_save_IFS
  11759. fi
  11760. fi
  11761. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11762. if test -n "$ac_ct_CC"; then
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11764. printf "%s\n" "$ac_ct_CC" >&6; }
  11765. else
  11766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11767. printf "%s\n" "no" >&6; }
  11768. fi
  11769. if test "x$ac_ct_CC" = x; then
  11770. CC=""
  11771. else
  11772. case $cross_compiling:$ac_tool_warned in
  11773. yes:)
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11775. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11776. ac_tool_warned=yes ;;
  11777. esac
  11778. CC=$ac_ct_CC
  11779. fi
  11780. else
  11781. CC="$ac_cv_prog_CC"
  11782. fi
  11783. fi
  11784. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11785. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11786. as_fn_error $? "no acceptable C compiler found in \$PATH
  11787. See \`config.log' for more details" "$LINENO" 5; }
  11788. # Provide some information about the compiler.
  11789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11790. set X $ac_compile
  11791. ac_compiler=$2
  11792. for ac_option in --version -v -V -qversion -version; do
  11793. { { ac_try="$ac_compiler $ac_option >&5"
  11794. case "(($ac_try" in
  11795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11796. *) ac_try_echo=$ac_try;;
  11797. esac
  11798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11799. printf "%s\n" "$ac_try_echo"; } >&5
  11800. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11801. ac_status=$?
  11802. if test -s conftest.err; then
  11803. sed '10a\
  11804. ... rest of stderr output deleted ...
  11805. 10q' conftest.err >conftest.er1
  11806. cat conftest.er1 >&5
  11807. fi
  11808. rm -f conftest.er1 conftest.err
  11809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11810. test $ac_status = 0; }
  11811. done
  11812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11813. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11814. if test ${ac_cv_c_compiler_gnu+y}
  11815. then :
  11816. printf %s "(cached) " >&6
  11817. else $as_nop
  11818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11819. /* end confdefs.h. */
  11820. int
  11821. main (void)
  11822. {
  11823. #ifndef __GNUC__
  11824. choke me
  11825. #endif
  11826. ;
  11827. return 0;
  11828. }
  11829. _ACEOF
  11830. if ac_fn_c_try_compile "$LINENO"
  11831. then :
  11832. ac_compiler_gnu=yes
  11833. else $as_nop
  11834. ac_compiler_gnu=no
  11835. fi
  11836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11837. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11838. fi
  11839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11840. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11842. if test $ac_compiler_gnu = yes; then
  11843. GCC=yes
  11844. else
  11845. GCC=
  11846. fi
  11847. ac_test_CFLAGS=${CFLAGS+y}
  11848. ac_save_CFLAGS=$CFLAGS
  11849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11850. printf %s "checking whether $CC accepts -g... " >&6; }
  11851. if test ${ac_cv_prog_cc_g+y}
  11852. then :
  11853. printf %s "(cached) " >&6
  11854. else $as_nop
  11855. ac_save_c_werror_flag=$ac_c_werror_flag
  11856. ac_c_werror_flag=yes
  11857. ac_cv_prog_cc_g=no
  11858. CFLAGS="-g"
  11859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11860. /* end confdefs.h. */
  11861. int
  11862. main (void)
  11863. {
  11864. ;
  11865. return 0;
  11866. }
  11867. _ACEOF
  11868. if ac_fn_c_try_compile "$LINENO"
  11869. then :
  11870. ac_cv_prog_cc_g=yes
  11871. else $as_nop
  11872. CFLAGS=""
  11873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11874. /* end confdefs.h. */
  11875. int
  11876. main (void)
  11877. {
  11878. ;
  11879. return 0;
  11880. }
  11881. _ACEOF
  11882. if ac_fn_c_try_compile "$LINENO"
  11883. then :
  11884. else $as_nop
  11885. ac_c_werror_flag=$ac_save_c_werror_flag
  11886. CFLAGS="-g"
  11887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11888. /* end confdefs.h. */
  11889. int
  11890. main (void)
  11891. {
  11892. ;
  11893. return 0;
  11894. }
  11895. _ACEOF
  11896. if ac_fn_c_try_compile "$LINENO"
  11897. then :
  11898. ac_cv_prog_cc_g=yes
  11899. fi
  11900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11901. fi
  11902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11905. ac_c_werror_flag=$ac_save_c_werror_flag
  11906. fi
  11907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11908. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11909. if test $ac_test_CFLAGS; then
  11910. CFLAGS=$ac_save_CFLAGS
  11911. elif test $ac_cv_prog_cc_g = yes; then
  11912. if test "$GCC" = yes; then
  11913. CFLAGS="-g -O2"
  11914. else
  11915. CFLAGS="-g"
  11916. fi
  11917. else
  11918. if test "$GCC" = yes; then
  11919. CFLAGS="-O2"
  11920. else
  11921. CFLAGS=
  11922. fi
  11923. fi
  11924. ac_prog_cc_stdc=no
  11925. if test x$ac_prog_cc_stdc = xno
  11926. then :
  11927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11928. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11929. if test ${ac_cv_prog_cc_c11+y}
  11930. then :
  11931. printf %s "(cached) " >&6
  11932. else $as_nop
  11933. ac_cv_prog_cc_c11=no
  11934. ac_save_CC=$CC
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. $ac_c_conftest_c11_program
  11938. _ACEOF
  11939. for ac_arg in '' -std=gnu11
  11940. do
  11941. CC="$ac_save_CC $ac_arg"
  11942. if ac_fn_c_try_compile "$LINENO"
  11943. then :
  11944. ac_cv_prog_cc_c11=$ac_arg
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11947. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11948. done
  11949. rm -f conftest.$ac_ext
  11950. CC=$ac_save_CC
  11951. fi
  11952. if test "x$ac_cv_prog_cc_c11" = xno
  11953. then :
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11955. printf "%s\n" "unsupported" >&6; }
  11956. else $as_nop
  11957. if test "x$ac_cv_prog_cc_c11" = x
  11958. then :
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11960. printf "%s\n" "none needed" >&6; }
  11961. else $as_nop
  11962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11963. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11964. CC="$CC $ac_cv_prog_cc_c11"
  11965. fi
  11966. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11967. ac_prog_cc_stdc=c11
  11968. fi
  11969. fi
  11970. if test x$ac_prog_cc_stdc = xno
  11971. then :
  11972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11973. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11974. if test ${ac_cv_prog_cc_c99+y}
  11975. then :
  11976. printf %s "(cached) " >&6
  11977. else $as_nop
  11978. ac_cv_prog_cc_c99=no
  11979. ac_save_CC=$CC
  11980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11981. /* end confdefs.h. */
  11982. $ac_c_conftest_c99_program
  11983. _ACEOF
  11984. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11985. do
  11986. CC="$ac_save_CC $ac_arg"
  11987. if ac_fn_c_try_compile "$LINENO"
  11988. then :
  11989. ac_cv_prog_cc_c99=$ac_arg
  11990. fi
  11991. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11992. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11993. done
  11994. rm -f conftest.$ac_ext
  11995. CC=$ac_save_CC
  11996. fi
  11997. if test "x$ac_cv_prog_cc_c99" = xno
  11998. then :
  11999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12000. printf "%s\n" "unsupported" >&6; }
  12001. else $as_nop
  12002. if test "x$ac_cv_prog_cc_c99" = x
  12003. then :
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12005. printf "%s\n" "none needed" >&6; }
  12006. else $as_nop
  12007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12008. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12009. CC="$CC $ac_cv_prog_cc_c99"
  12010. fi
  12011. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12012. ac_prog_cc_stdc=c99
  12013. fi
  12014. fi
  12015. if test x$ac_prog_cc_stdc = xno
  12016. then :
  12017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12018. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12019. if test ${ac_cv_prog_cc_c89+y}
  12020. then :
  12021. printf %s "(cached) " >&6
  12022. else $as_nop
  12023. ac_cv_prog_cc_c89=no
  12024. ac_save_CC=$CC
  12025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12026. /* end confdefs.h. */
  12027. $ac_c_conftest_c89_program
  12028. _ACEOF
  12029. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12030. do
  12031. CC="$ac_save_CC $ac_arg"
  12032. if ac_fn_c_try_compile "$LINENO"
  12033. then :
  12034. ac_cv_prog_cc_c89=$ac_arg
  12035. fi
  12036. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12037. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12038. done
  12039. rm -f conftest.$ac_ext
  12040. CC=$ac_save_CC
  12041. fi
  12042. if test "x$ac_cv_prog_cc_c89" = xno
  12043. then :
  12044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12045. printf "%s\n" "unsupported" >&6; }
  12046. else $as_nop
  12047. if test "x$ac_cv_prog_cc_c89" = x
  12048. then :
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12050. printf "%s\n" "none needed" >&6; }
  12051. else $as_nop
  12052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12053. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12054. CC="$CC $ac_cv_prog_cc_c89"
  12055. fi
  12056. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12057. ac_prog_cc_stdc=c89
  12058. fi
  12059. fi
  12060. ac_ext=c
  12061. ac_cpp='$CPP $CPPFLAGS'
  12062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12065. ac_ext=cpp
  12066. ac_cpp='$CXXCPP $CPPFLAGS'
  12067. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12068. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12069. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12070. if test -z "$CXX"; then
  12071. if test -n "$CCC"; then
  12072. CXX=$CCC
  12073. else
  12074. if test -n "$ac_tool_prefix"; then
  12075. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12076. do
  12077. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12078. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12080. printf %s "checking for $ac_word... " >&6; }
  12081. if test ${ac_cv_prog_CXX+y}
  12082. then :
  12083. printf %s "(cached) " >&6
  12084. else $as_nop
  12085. if test -n "$CXX"; then
  12086. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12087. else
  12088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12089. for as_dir in $PATH
  12090. do
  12091. IFS=$as_save_IFS
  12092. case $as_dir in #(((
  12093. '') as_dir=./ ;;
  12094. */) ;;
  12095. *) as_dir=$as_dir/ ;;
  12096. esac
  12097. for ac_exec_ext in '' $ac_executable_extensions; do
  12098. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12099. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12101. break 2
  12102. fi
  12103. done
  12104. done
  12105. IFS=$as_save_IFS
  12106. fi
  12107. fi
  12108. CXX=$ac_cv_prog_CXX
  12109. if test -n "$CXX"; then
  12110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12111. printf "%s\n" "$CXX" >&6; }
  12112. else
  12113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12114. printf "%s\n" "no" >&6; }
  12115. fi
  12116. test -n "$CXX" && break
  12117. done
  12118. fi
  12119. if test -z "$CXX"; then
  12120. ac_ct_CXX=$CXX
  12121. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12122. do
  12123. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12124. set dummy $ac_prog; ac_word=$2
  12125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12126. printf %s "checking for $ac_word... " >&6; }
  12127. if test ${ac_cv_prog_ac_ct_CXX+y}
  12128. then :
  12129. printf %s "(cached) " >&6
  12130. else $as_nop
  12131. if test -n "$ac_ct_CXX"; then
  12132. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12133. else
  12134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12135. for as_dir in $PATH
  12136. do
  12137. IFS=$as_save_IFS
  12138. case $as_dir in #(((
  12139. '') as_dir=./ ;;
  12140. */) ;;
  12141. *) as_dir=$as_dir/ ;;
  12142. esac
  12143. for ac_exec_ext in '' $ac_executable_extensions; do
  12144. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12145. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12147. break 2
  12148. fi
  12149. done
  12150. done
  12151. IFS=$as_save_IFS
  12152. fi
  12153. fi
  12154. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12155. if test -n "$ac_ct_CXX"; then
  12156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12157. printf "%s\n" "$ac_ct_CXX" >&6; }
  12158. else
  12159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12160. printf "%s\n" "no" >&6; }
  12161. fi
  12162. test -n "$ac_ct_CXX" && break
  12163. done
  12164. if test "x$ac_ct_CXX" = x; then
  12165. CXX="g++"
  12166. else
  12167. case $cross_compiling:$ac_tool_warned in
  12168. yes:)
  12169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12170. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12171. ac_tool_warned=yes ;;
  12172. esac
  12173. CXX=$ac_ct_CXX
  12174. fi
  12175. fi
  12176. fi
  12177. fi
  12178. # Provide some information about the compiler.
  12179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12180. set X $ac_compile
  12181. ac_compiler=$2
  12182. for ac_option in --version -v -V -qversion; do
  12183. { { ac_try="$ac_compiler $ac_option >&5"
  12184. case "(($ac_try" in
  12185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12186. *) ac_try_echo=$ac_try;;
  12187. esac
  12188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12189. printf "%s\n" "$ac_try_echo"; } >&5
  12190. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12191. ac_status=$?
  12192. if test -s conftest.err; then
  12193. sed '10a\
  12194. ... rest of stderr output deleted ...
  12195. 10q' conftest.err >conftest.er1
  12196. cat conftest.er1 >&5
  12197. fi
  12198. rm -f conftest.er1 conftest.err
  12199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12200. test $ac_status = 0; }
  12201. done
  12202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12203. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12204. if test ${ac_cv_cxx_compiler_gnu+y}
  12205. then :
  12206. printf %s "(cached) " >&6
  12207. else $as_nop
  12208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12209. /* end confdefs.h. */
  12210. int
  12211. main (void)
  12212. {
  12213. #ifndef __GNUC__
  12214. choke me
  12215. #endif
  12216. ;
  12217. return 0;
  12218. }
  12219. _ACEOF
  12220. if ac_fn_cxx_try_compile "$LINENO"
  12221. then :
  12222. ac_compiler_gnu=yes
  12223. else $as_nop
  12224. ac_compiler_gnu=no
  12225. fi
  12226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12227. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12228. fi
  12229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12230. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12231. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12232. if test $ac_compiler_gnu = yes; then
  12233. GXX=yes
  12234. else
  12235. GXX=
  12236. fi
  12237. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12238. ac_save_CXXFLAGS=$CXXFLAGS
  12239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12240. printf %s "checking whether $CXX accepts -g... " >&6; }
  12241. if test ${ac_cv_prog_cxx_g+y}
  12242. then :
  12243. printf %s "(cached) " >&6
  12244. else $as_nop
  12245. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12246. ac_cxx_werror_flag=yes
  12247. ac_cv_prog_cxx_g=no
  12248. CXXFLAGS="-g"
  12249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12250. /* end confdefs.h. */
  12251. int
  12252. main (void)
  12253. {
  12254. ;
  12255. return 0;
  12256. }
  12257. _ACEOF
  12258. if ac_fn_cxx_try_compile "$LINENO"
  12259. then :
  12260. ac_cv_prog_cxx_g=yes
  12261. else $as_nop
  12262. CXXFLAGS=""
  12263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12264. /* end confdefs.h. */
  12265. int
  12266. main (void)
  12267. {
  12268. ;
  12269. return 0;
  12270. }
  12271. _ACEOF
  12272. if ac_fn_cxx_try_compile "$LINENO"
  12273. then :
  12274. else $as_nop
  12275. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12276. CXXFLAGS="-g"
  12277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12278. /* end confdefs.h. */
  12279. int
  12280. main (void)
  12281. {
  12282. ;
  12283. return 0;
  12284. }
  12285. _ACEOF
  12286. if ac_fn_cxx_try_compile "$LINENO"
  12287. then :
  12288. ac_cv_prog_cxx_g=yes
  12289. fi
  12290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12291. fi
  12292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12293. fi
  12294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12295. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12296. fi
  12297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12298. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12299. if test $ac_test_CXXFLAGS; then
  12300. CXXFLAGS=$ac_save_CXXFLAGS
  12301. elif test $ac_cv_prog_cxx_g = yes; then
  12302. if test "$GXX" = yes; then
  12303. CXXFLAGS="-g -O2"
  12304. else
  12305. CXXFLAGS="-g"
  12306. fi
  12307. else
  12308. if test "$GXX" = yes; then
  12309. CXXFLAGS="-O2"
  12310. else
  12311. CXXFLAGS=
  12312. fi
  12313. fi
  12314. ac_prog_cxx_stdcxx=no
  12315. if test x$ac_prog_cxx_stdcxx = xno
  12316. then :
  12317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12318. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12319. if test ${ac_cv_prog_cxx_11+y}
  12320. then :
  12321. printf %s "(cached) " >&6
  12322. else $as_nop
  12323. ac_cv_prog_cxx_11=no
  12324. ac_save_CXX=$CXX
  12325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12326. /* end confdefs.h. */
  12327. $ac_cxx_conftest_cxx11_program
  12328. _ACEOF
  12329. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12330. do
  12331. CXX="$ac_save_CXX $ac_arg"
  12332. if ac_fn_cxx_try_compile "$LINENO"
  12333. then :
  12334. ac_cv_prog_cxx_cxx11=$ac_arg
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12337. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12338. done
  12339. rm -f conftest.$ac_ext
  12340. CXX=$ac_save_CXX
  12341. fi
  12342. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12343. then :
  12344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12345. printf "%s\n" "unsupported" >&6; }
  12346. else $as_nop
  12347. if test "x$ac_cv_prog_cxx_cxx11" = x
  12348. then :
  12349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12350. printf "%s\n" "none needed" >&6; }
  12351. else $as_nop
  12352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12353. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12354. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12355. fi
  12356. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12357. ac_prog_cxx_stdcxx=cxx11
  12358. fi
  12359. fi
  12360. if test x$ac_prog_cxx_stdcxx = xno
  12361. then :
  12362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12363. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12364. if test ${ac_cv_prog_cxx_98+y}
  12365. then :
  12366. printf %s "(cached) " >&6
  12367. else $as_nop
  12368. ac_cv_prog_cxx_98=no
  12369. ac_save_CXX=$CXX
  12370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12371. /* end confdefs.h. */
  12372. $ac_cxx_conftest_cxx98_program
  12373. _ACEOF
  12374. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12375. do
  12376. CXX="$ac_save_CXX $ac_arg"
  12377. if ac_fn_cxx_try_compile "$LINENO"
  12378. then :
  12379. ac_cv_prog_cxx_cxx98=$ac_arg
  12380. fi
  12381. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12382. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12383. done
  12384. rm -f conftest.$ac_ext
  12385. CXX=$ac_save_CXX
  12386. fi
  12387. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12388. then :
  12389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12390. printf "%s\n" "unsupported" >&6; }
  12391. else $as_nop
  12392. if test "x$ac_cv_prog_cxx_cxx98" = x
  12393. then :
  12394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12395. printf "%s\n" "none needed" >&6; }
  12396. else $as_nop
  12397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12398. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12399. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12400. fi
  12401. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12402. ac_prog_cxx_stdcxx=cxx98
  12403. fi
  12404. fi
  12405. ac_ext=c
  12406. ac_cpp='$CPP $CPPFLAGS'
  12407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12410. func_stripname_cnf ()
  12411. {
  12412. case $2 in
  12413. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12414. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12415. esac
  12416. } # func_stripname_cnf
  12417. if test -n "$CXX" && ( test no != "$CXX" &&
  12418. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12419. (test g++ != "$CXX"))); then
  12420. ac_ext=cpp
  12421. ac_cpp='$CXXCPP $CPPFLAGS'
  12422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12426. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12427. if test -z "$CXXCPP"; then
  12428. if test ${ac_cv_prog_CXXCPP+y}
  12429. then :
  12430. printf %s "(cached) " >&6
  12431. else $as_nop
  12432. # Double quotes because $CXX needs to be expanded
  12433. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12434. do
  12435. ac_preproc_ok=false
  12436. for ac_cxx_preproc_warn_flag in '' yes
  12437. do
  12438. # Use a header file that comes with gcc, so configuring glibc
  12439. # with a fresh cross-compiler works.
  12440. # On the NeXT, cc -E runs the code through the compiler's parser,
  12441. # not just through cpp. "Syntax error" is here to catch this case.
  12442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12443. /* end confdefs.h. */
  12444. #include <limits.h>
  12445. Syntax error
  12446. _ACEOF
  12447. if ac_fn_cxx_try_cpp "$LINENO"
  12448. then :
  12449. else $as_nop
  12450. # Broken: fails on valid input.
  12451. continue
  12452. fi
  12453. rm -f conftest.err conftest.i conftest.$ac_ext
  12454. # OK, works on sane cases. Now check whether nonexistent headers
  12455. # can be detected and how.
  12456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12457. /* end confdefs.h. */
  12458. #include <ac_nonexistent.h>
  12459. _ACEOF
  12460. if ac_fn_cxx_try_cpp "$LINENO"
  12461. then :
  12462. # Broken: success on invalid input.
  12463. continue
  12464. else $as_nop
  12465. # Passes both tests.
  12466. ac_preproc_ok=:
  12467. break
  12468. fi
  12469. rm -f conftest.err conftest.i conftest.$ac_ext
  12470. done
  12471. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12472. rm -f conftest.i conftest.err conftest.$ac_ext
  12473. if $ac_preproc_ok
  12474. then :
  12475. break
  12476. fi
  12477. done
  12478. ac_cv_prog_CXXCPP=$CXXCPP
  12479. fi
  12480. CXXCPP=$ac_cv_prog_CXXCPP
  12481. else
  12482. ac_cv_prog_CXXCPP=$CXXCPP
  12483. fi
  12484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12485. printf "%s\n" "$CXXCPP" >&6; }
  12486. ac_preproc_ok=false
  12487. for ac_cxx_preproc_warn_flag in '' yes
  12488. do
  12489. # Use a header file that comes with gcc, so configuring glibc
  12490. # with a fresh cross-compiler works.
  12491. # On the NeXT, cc -E runs the code through the compiler's parser,
  12492. # not just through cpp. "Syntax error" is here to catch this case.
  12493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12494. /* end confdefs.h. */
  12495. #include <limits.h>
  12496. Syntax error
  12497. _ACEOF
  12498. if ac_fn_cxx_try_cpp "$LINENO"
  12499. then :
  12500. else $as_nop
  12501. # Broken: fails on valid input.
  12502. continue
  12503. fi
  12504. rm -f conftest.err conftest.i conftest.$ac_ext
  12505. # OK, works on sane cases. Now check whether nonexistent headers
  12506. # can be detected and how.
  12507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12508. /* end confdefs.h. */
  12509. #include <ac_nonexistent.h>
  12510. _ACEOF
  12511. if ac_fn_cxx_try_cpp "$LINENO"
  12512. then :
  12513. # Broken: success on invalid input.
  12514. continue
  12515. else $as_nop
  12516. # Passes both tests.
  12517. ac_preproc_ok=:
  12518. break
  12519. fi
  12520. rm -f conftest.err conftest.i conftest.$ac_ext
  12521. done
  12522. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12523. rm -f conftest.i conftest.err conftest.$ac_ext
  12524. if $ac_preproc_ok
  12525. then :
  12526. else $as_nop
  12527. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12528. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12529. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12530. See \`config.log' for more details" "$LINENO" 5; }
  12531. fi
  12532. ac_ext=c
  12533. ac_cpp='$CPP $CPPFLAGS'
  12534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12537. else
  12538. _lt_caught_CXX_error=yes
  12539. fi
  12540. ac_ext=cpp
  12541. ac_cpp='$CXXCPP $CPPFLAGS'
  12542. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12543. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12544. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12545. archive_cmds_need_lc_CXX=no
  12546. allow_undefined_flag_CXX=
  12547. always_export_symbols_CXX=no
  12548. archive_expsym_cmds_CXX=
  12549. compiler_needs_object_CXX=no
  12550. export_dynamic_flag_spec_CXX=
  12551. hardcode_direct_CXX=no
  12552. hardcode_direct_absolute_CXX=no
  12553. hardcode_libdir_flag_spec_CXX=
  12554. hardcode_libdir_separator_CXX=
  12555. hardcode_minus_L_CXX=no
  12556. hardcode_shlibpath_var_CXX=unsupported
  12557. hardcode_automatic_CXX=no
  12558. inherit_rpath_CXX=no
  12559. module_cmds_CXX=
  12560. module_expsym_cmds_CXX=
  12561. link_all_deplibs_CXX=unknown
  12562. old_archive_cmds_CXX=$old_archive_cmds
  12563. reload_flag_CXX=$reload_flag
  12564. reload_cmds_CXX=$reload_cmds
  12565. no_undefined_flag_CXX=
  12566. whole_archive_flag_spec_CXX=
  12567. enable_shared_with_static_runtimes_CXX=no
  12568. # Source file extension for C++ test sources.
  12569. ac_ext=cpp
  12570. # Object file extension for compiled C++ test sources.
  12571. objext=o
  12572. objext_CXX=$objext
  12573. # No sense in running all these tests if we already determined that
  12574. # the CXX compiler isn't working. Some variables (like enable_shared)
  12575. # are currently assumed to apply to all compilers on this platform,
  12576. # and will be corrupted by setting them based on a non-working compiler.
  12577. if test yes != "$_lt_caught_CXX_error"; then
  12578. # Code to be used in simple compile tests
  12579. lt_simple_compile_test_code="int some_variable = 0;"
  12580. # Code to be used in simple link tests
  12581. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12582. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12583. # If no C compiler was specified, use CC.
  12584. LTCC=${LTCC-"$CC"}
  12585. # If no C compiler flags were specified, use CFLAGS.
  12586. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12587. # Allow CC to be a program name with arguments.
  12588. compiler=$CC
  12589. # save warnings/boilerplate of simple test code
  12590. ac_outfile=conftest.$ac_objext
  12591. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12592. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12593. _lt_compiler_boilerplate=`cat conftest.err`
  12594. $RM conftest*
  12595. ac_outfile=conftest.$ac_objext
  12596. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12597. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12598. _lt_linker_boilerplate=`cat conftest.err`
  12599. $RM -r conftest*
  12600. # Allow CC to be a program name with arguments.
  12601. lt_save_CC=$CC
  12602. lt_save_CFLAGS=$CFLAGS
  12603. lt_save_LD=$LD
  12604. lt_save_GCC=$GCC
  12605. GCC=$GXX
  12606. lt_save_with_gnu_ld=$with_gnu_ld
  12607. lt_save_path_LD=$lt_cv_path_LD
  12608. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12609. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12610. else
  12611. $as_unset lt_cv_prog_gnu_ld
  12612. fi
  12613. if test -n "${lt_cv_path_LDCXX+set}"; then
  12614. lt_cv_path_LD=$lt_cv_path_LDCXX
  12615. else
  12616. $as_unset lt_cv_path_LD
  12617. fi
  12618. test -z "${LDCXX+set}" || LD=$LDCXX
  12619. CC=${CXX-"c++"}
  12620. CFLAGS=$CXXFLAGS
  12621. compiler=$CC
  12622. compiler_CXX=$CC
  12623. func_cc_basename $compiler
  12624. cc_basename=$func_cc_basename_result
  12625. if test -n "$compiler"; then
  12626. # We don't want -fno-exception when compiling C++ code, so set the
  12627. # no_builtin_flag separately
  12628. if test yes = "$GXX"; then
  12629. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12630. else
  12631. lt_prog_compiler_no_builtin_flag_CXX=
  12632. fi
  12633. if test yes = "$GXX"; then
  12634. # Set up default GNU C++ configuration
  12635. # Check whether --with-gnu-ld was given.
  12636. if test ${with_gnu_ld+y}
  12637. then :
  12638. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12639. else $as_nop
  12640. with_gnu_ld=no
  12641. fi
  12642. ac_prog=ld
  12643. if test yes = "$GCC"; then
  12644. # Check if gcc -print-prog-name=ld gives a path.
  12645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12646. printf %s "checking for ld used by $CC... " >&6; }
  12647. case $host in
  12648. *-*-mingw* | *-*-windows*)
  12649. # gcc leaves a trailing carriage return, which upsets mingw
  12650. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12651. *)
  12652. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12653. esac
  12654. case $ac_prog in
  12655. # Accept absolute paths.
  12656. [\\/]* | ?:[\\/]*)
  12657. re_direlt='/[^/][^/]*/\.\./'
  12658. # Canonicalize the pathname of ld
  12659. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12660. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12661. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12662. done
  12663. test -z "$LD" && LD=$ac_prog
  12664. ;;
  12665. "")
  12666. # If it fails, then pretend we aren't using GCC.
  12667. ac_prog=ld
  12668. ;;
  12669. *)
  12670. # If it is relative, then search for the first ld in PATH.
  12671. with_gnu_ld=unknown
  12672. ;;
  12673. esac
  12674. elif test yes = "$with_gnu_ld"; then
  12675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12676. printf %s "checking for GNU ld... " >&6; }
  12677. else
  12678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12679. printf %s "checking for non-GNU ld... " >&6; }
  12680. fi
  12681. if test ${lt_cv_path_LD+y}
  12682. then :
  12683. printf %s "(cached) " >&6
  12684. else $as_nop
  12685. if test -z "$LD"; then
  12686. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12687. for ac_dir in $PATH; do
  12688. IFS=$lt_save_ifs
  12689. test -z "$ac_dir" && ac_dir=.
  12690. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12691. lt_cv_path_LD=$ac_dir/$ac_prog
  12692. # Check to see if the program is GNU ld. I'd rather use --version,
  12693. # but apparently some variants of GNU ld only accept -v.
  12694. # Break only if it was the GNU/non-GNU ld that we prefer.
  12695. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12696. *GNU* | *'with BFD'*)
  12697. test no != "$with_gnu_ld" && break
  12698. ;;
  12699. *)
  12700. test yes != "$with_gnu_ld" && break
  12701. ;;
  12702. esac
  12703. fi
  12704. done
  12705. IFS=$lt_save_ifs
  12706. else
  12707. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12708. fi
  12709. fi
  12710. LD=$lt_cv_path_LD
  12711. if test -n "$LD"; then
  12712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12713. printf "%s\n" "$LD" >&6; }
  12714. else
  12715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12716. printf "%s\n" "no" >&6; }
  12717. fi
  12718. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12720. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12721. if test ${lt_cv_prog_gnu_ld+y}
  12722. then :
  12723. printf %s "(cached) " >&6
  12724. else $as_nop
  12725. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12726. case `$LD -v 2>&1 </dev/null` in
  12727. *GNU* | *'with BFD'*)
  12728. lt_cv_prog_gnu_ld=yes
  12729. ;;
  12730. *)
  12731. lt_cv_prog_gnu_ld=no
  12732. ;;
  12733. esac
  12734. fi
  12735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12736. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12737. with_gnu_ld=$lt_cv_prog_gnu_ld
  12738. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12739. # archiving commands below assume that GNU ld is being used.
  12740. if test yes = "$with_gnu_ld"; then
  12741. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12742. 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'
  12743. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12744. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12745. # If archive_cmds runs LD, not CC, wlarc should be empty
  12746. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12747. # investigate it a little bit more. (MM)
  12748. wlarc='$wl'
  12749. # ancient GNU ld didn't support --whole-archive et. al.
  12750. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12751. $GREP 'no-whole-archive' > /dev/null; then
  12752. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12753. else
  12754. whole_archive_flag_spec_CXX=
  12755. fi
  12756. else
  12757. with_gnu_ld=no
  12758. wlarc=
  12759. # A generic and very simple default shared library creation
  12760. # command for GNU C++ for the case where it uses the native
  12761. # linker, instead of GNU ld. If possible, this setting should
  12762. # overridden to take advantage of the native linker features on
  12763. # the platform it is being used on.
  12764. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12765. fi
  12766. # Commands to make compiler produce verbose output that lists
  12767. # what "hidden" libraries, object files and flags are used when
  12768. # linking a shared library.
  12769. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12770. else
  12771. GXX=no
  12772. with_gnu_ld=no
  12773. wlarc=
  12774. fi
  12775. # PORTME: fill in a description of your system's C++ link characteristics
  12776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12777. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12778. ld_shlibs_CXX=yes
  12779. case $host_os in
  12780. aix3*)
  12781. # FIXME: insert proper C++ library support
  12782. ld_shlibs_CXX=no
  12783. ;;
  12784. aix[4-9]*)
  12785. if test ia64 = "$host_cpu"; then
  12786. # On IA64, the linker does run time linking by default, so we don't
  12787. # have to do anything special.
  12788. aix_use_runtimelinking=no
  12789. exp_sym_flag='-Bexport'
  12790. no_entry_flag=
  12791. else
  12792. aix_use_runtimelinking=no
  12793. # Test if we are trying to use run time linking or normal
  12794. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12795. # have runtime linking enabled, and use it for executables.
  12796. # For shared libraries, we enable/disable runtime linking
  12797. # depending on the kind of the shared library created -
  12798. # when "with_aix_soname,aix_use_runtimelinking" is:
  12799. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12800. # "aix,yes" lib.so shared, rtl:yes, for executables
  12801. # lib.a static archive
  12802. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12803. # lib.a(lib.so.V) shared, rtl:no, for executables
  12804. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12805. # lib.a(lib.so.V) shared, rtl:no
  12806. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12807. # lib.a static archive
  12808. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12809. for ld_flag in $LDFLAGS; do
  12810. case $ld_flag in
  12811. *-brtl*)
  12812. aix_use_runtimelinking=yes
  12813. break
  12814. ;;
  12815. esac
  12816. done
  12817. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12818. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12819. # so we don't have lib.a shared libs to link our executables.
  12820. # We have to force runtime linking in this case.
  12821. aix_use_runtimelinking=yes
  12822. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12823. fi
  12824. ;;
  12825. esac
  12826. exp_sym_flag='-bexport'
  12827. no_entry_flag='-bnoentry'
  12828. fi
  12829. # When large executables or shared objects are built, AIX ld can
  12830. # have problems creating the table of contents. If linking a library
  12831. # or program results in "error TOC overflow" add -mminimal-toc to
  12832. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12833. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12834. archive_cmds_CXX=''
  12835. hardcode_direct_CXX=yes
  12836. hardcode_direct_absolute_CXX=yes
  12837. hardcode_libdir_separator_CXX=':'
  12838. link_all_deplibs_CXX=yes
  12839. file_list_spec_CXX='$wl-f,'
  12840. case $with_aix_soname,$aix_use_runtimelinking in
  12841. aix,*) ;; # no import file
  12842. svr4,* | *,yes) # use import file
  12843. # The Import File defines what to hardcode.
  12844. hardcode_direct_CXX=no
  12845. hardcode_direct_absolute_CXX=no
  12846. ;;
  12847. esac
  12848. if test yes = "$GXX"; then
  12849. case $host_os in aix4.[012]|aix4.[012].*)
  12850. # We only want to do this on AIX 4.2 and lower, the check
  12851. # below for broken collect2 doesn't work under 4.3+
  12852. collect2name=`$CC -print-prog-name=collect2`
  12853. if test -f "$collect2name" &&
  12854. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12855. then
  12856. # We have reworked collect2
  12857. :
  12858. else
  12859. # We have old collect2
  12860. hardcode_direct_CXX=unsupported
  12861. # It fails to find uninstalled libraries when the uninstalled
  12862. # path is not listed in the libpath. Setting hardcode_minus_L
  12863. # to unsupported forces relinking
  12864. hardcode_minus_L_CXX=yes
  12865. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12866. hardcode_libdir_separator_CXX=
  12867. fi
  12868. esac
  12869. shared_flag='-shared'
  12870. if test yes = "$aix_use_runtimelinking"; then
  12871. shared_flag=$shared_flag' $wl-G'
  12872. fi
  12873. # Need to ensure runtime linking is disabled for the traditional
  12874. # shared library, or the linker may eventually find shared libraries
  12875. # /with/ Import File - we do not want to mix them.
  12876. shared_flag_aix='-shared'
  12877. shared_flag_svr4='-shared $wl-G'
  12878. else
  12879. # not using gcc
  12880. if test ia64 = "$host_cpu"; then
  12881. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12882. # chokes on -Wl,-G. The following line is correct:
  12883. shared_flag='-G'
  12884. else
  12885. if test yes = "$aix_use_runtimelinking"; then
  12886. shared_flag='$wl-G'
  12887. else
  12888. shared_flag='$wl-bM:SRE'
  12889. fi
  12890. shared_flag_aix='$wl-bM:SRE'
  12891. shared_flag_svr4='$wl-G'
  12892. fi
  12893. fi
  12894. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12895. # It seems that -bexpall does not export symbols beginning with
  12896. # underscore (_), so it is better to generate a list of symbols to
  12897. # export.
  12898. always_export_symbols_CXX=yes
  12899. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12900. # Warning - without using the other runtime loading flags (-brtl),
  12901. # -berok will link without error, but may produce a broken library.
  12902. # The "-G" linker flag allows undefined symbols.
  12903. no_undefined_flag_CXX='-bernotok'
  12904. # Determine the default libpath from the value encoded in an empty
  12905. # executable.
  12906. if test set = "${lt_cv_aix_libpath+set}"; then
  12907. aix_libpath=$lt_cv_aix_libpath
  12908. else
  12909. if test ${lt_cv_aix_libpath__CXX+y}
  12910. then :
  12911. printf %s "(cached) " >&6
  12912. else $as_nop
  12913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12914. /* end confdefs.h. */
  12915. int
  12916. main (void)
  12917. {
  12918. ;
  12919. return 0;
  12920. }
  12921. _ACEOF
  12922. if ac_fn_cxx_try_link "$LINENO"
  12923. then :
  12924. lt_aix_libpath_sed='
  12925. /Import File Strings/,/^$/ {
  12926. /^0/ {
  12927. s/^0 *\([^ ]*\) *$/\1/
  12928. p
  12929. }
  12930. }'
  12931. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12932. # Check for a 64-bit object if we didn't find anything.
  12933. if test -z "$lt_cv_aix_libpath__CXX"; then
  12934. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12935. fi
  12936. fi
  12937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12938. conftest$ac_exeext conftest.$ac_ext
  12939. if test -z "$lt_cv_aix_libpath__CXX"; then
  12940. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12941. fi
  12942. fi
  12943. aix_libpath=$lt_cv_aix_libpath__CXX
  12944. fi
  12945. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12946. 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
  12947. else
  12948. if test ia64 = "$host_cpu"; then
  12949. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12950. allow_undefined_flag_CXX="-z nodefs"
  12951. 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"
  12952. else
  12953. # Determine the default libpath from the value encoded in an
  12954. # empty executable.
  12955. if test set = "${lt_cv_aix_libpath+set}"; then
  12956. aix_libpath=$lt_cv_aix_libpath
  12957. else
  12958. if test ${lt_cv_aix_libpath__CXX+y}
  12959. then :
  12960. printf %s "(cached) " >&6
  12961. else $as_nop
  12962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12963. /* end confdefs.h. */
  12964. int
  12965. main (void)
  12966. {
  12967. ;
  12968. return 0;
  12969. }
  12970. _ACEOF
  12971. if ac_fn_cxx_try_link "$LINENO"
  12972. then :
  12973. lt_aix_libpath_sed='
  12974. /Import File Strings/,/^$/ {
  12975. /^0/ {
  12976. s/^0 *\([^ ]*\) *$/\1/
  12977. p
  12978. }
  12979. }'
  12980. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12981. # Check for a 64-bit object if we didn't find anything.
  12982. if test -z "$lt_cv_aix_libpath__CXX"; then
  12983. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12984. fi
  12985. fi
  12986. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12987. conftest$ac_exeext conftest.$ac_ext
  12988. if test -z "$lt_cv_aix_libpath__CXX"; then
  12989. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12990. fi
  12991. fi
  12992. aix_libpath=$lt_cv_aix_libpath__CXX
  12993. fi
  12994. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12995. # Warning - without using the other run time loading flags,
  12996. # -berok will link without error, but may produce a broken library.
  12997. no_undefined_flag_CXX=' $wl-bernotok'
  12998. allow_undefined_flag_CXX=' $wl-berok'
  12999. if test yes = "$with_gnu_ld"; then
  13000. # We only use this code for GNU lds that support --whole-archive.
  13001. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13002. else
  13003. # Exported symbols can be pulled into shared objects from archives
  13004. whole_archive_flag_spec_CXX='$convenience'
  13005. fi
  13006. archive_cmds_need_lc_CXX=yes
  13007. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13008. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13009. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13010. if test svr4 != "$with_aix_soname"; then
  13011. # This is similar to how AIX traditionally builds its shared
  13012. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13013. 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'
  13014. fi
  13015. if test aix != "$with_aix_soname"; then
  13016. 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'
  13017. else
  13018. # used by -dlpreopen to get the symbols
  13019. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13020. fi
  13021. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13022. fi
  13023. fi
  13024. ;;
  13025. beos*)
  13026. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13027. allow_undefined_flag_CXX=unsupported
  13028. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13029. # support --undefined. This deserves some investigation. FIXME
  13030. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13031. else
  13032. ld_shlibs_CXX=no
  13033. fi
  13034. ;;
  13035. chorus*)
  13036. case $cc_basename in
  13037. *)
  13038. # FIXME: insert proper C++ library support
  13039. ld_shlibs_CXX=no
  13040. ;;
  13041. esac
  13042. ;;
  13043. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13044. case $GXX,$cc_basename in
  13045. ,cl* | no,cl* | ,icl* | no,icl*)
  13046. # Native MSVC or ICC
  13047. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13048. # no search path for DLLs.
  13049. hardcode_libdir_flag_spec_CXX=' '
  13050. allow_undefined_flag_CXX=unsupported
  13051. always_export_symbols_CXX=yes
  13052. file_list_spec_CXX='@'
  13053. # Tell ltmain to make .lib files, not .a files.
  13054. libext=lib
  13055. # Tell ltmain to make .dll files, not .so files.
  13056. shrext_cmds=.dll
  13057. # FIXME: Setting linknames here is a bad hack.
  13058. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13059. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13060. cp "$export_symbols" "$output_objdir/$soname.def";
  13061. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13062. else
  13063. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13064. fi~
  13065. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13066. linknames='
  13067. # The linker will not automatically build a static lib if we build a DLL.
  13068. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13069. enable_shared_with_static_runtimes_CXX=yes
  13070. # Don't use ranlib
  13071. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13072. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13073. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13074. case $lt_outputfile in
  13075. *.exe|*.EXE) ;;
  13076. *)
  13077. lt_outputfile=$lt_outputfile.exe
  13078. lt_tool_outputfile=$lt_tool_outputfile.exe
  13079. ;;
  13080. esac~
  13081. func_to_tool_file "$lt_outputfile"~
  13082. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13083. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13084. $RM "$lt_outputfile.manifest";
  13085. fi'
  13086. ;;
  13087. *)
  13088. # g++
  13089. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13090. # as there is no search path for DLLs.
  13091. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13092. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13093. allow_undefined_flag_CXX=unsupported
  13094. always_export_symbols_CXX=no
  13095. enable_shared_with_static_runtimes_CXX=yes
  13096. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13097. 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'
  13098. # If the export-symbols file already is a .def file, use it as
  13099. # is; otherwise, prepend EXPORTS...
  13100. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13101. cp $export_symbols $output_objdir/$soname.def;
  13102. else
  13103. echo EXPORTS > $output_objdir/$soname.def;
  13104. cat $export_symbols >> $output_objdir/$soname.def;
  13105. fi~
  13106. $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'
  13107. else
  13108. ld_shlibs_CXX=no
  13109. fi
  13110. ;;
  13111. esac
  13112. ;;
  13113. darwin* | rhapsody*)
  13114. archive_cmds_need_lc_CXX=no
  13115. hardcode_direct_CXX=no
  13116. hardcode_automatic_CXX=yes
  13117. hardcode_shlibpath_var_CXX=unsupported
  13118. if test yes = "$lt_cv_ld_force_load"; then
  13119. 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\"`'
  13120. else
  13121. whole_archive_flag_spec_CXX=''
  13122. fi
  13123. link_all_deplibs_CXX=yes
  13124. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13125. case $cc_basename in
  13126. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13127. *) _lt_dar_can_shared=$GCC ;;
  13128. esac
  13129. if test yes = "$_lt_dar_can_shared"; then
  13130. output_verbose_link_cmd=func_echo_all
  13131. 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"
  13132. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13133. 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"
  13134. 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"
  13135. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13136. 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"
  13137. 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"
  13138. fi
  13139. else
  13140. ld_shlibs_CXX=no
  13141. fi
  13142. ;;
  13143. os2*)
  13144. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13145. hardcode_minus_L_CXX=yes
  13146. allow_undefined_flag_CXX=unsupported
  13147. shrext_cmds=.dll
  13148. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13149. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13150. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13151. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13152. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13153. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13154. emximp -o $lib $output_objdir/$libname.def'
  13155. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13156. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13157. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13158. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13159. prefix_cmds="$SED"~
  13160. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13161. prefix_cmds="$prefix_cmds -e 1d";
  13162. fi~
  13163. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13164. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13165. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13166. emximp -o $lib $output_objdir/$libname.def'
  13167. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13168. enable_shared_with_static_runtimes_CXX=yes
  13169. file_list_spec_CXX='@'
  13170. ;;
  13171. dgux*)
  13172. case $cc_basename in
  13173. ec++*)
  13174. # FIXME: insert proper C++ library support
  13175. ld_shlibs_CXX=no
  13176. ;;
  13177. ghcx*)
  13178. # Green Hills C++ Compiler
  13179. # FIXME: insert proper C++ library support
  13180. ld_shlibs_CXX=no
  13181. ;;
  13182. *)
  13183. # FIXME: insert proper C++ library support
  13184. ld_shlibs_CXX=no
  13185. ;;
  13186. esac
  13187. ;;
  13188. freebsd2.*)
  13189. # C++ shared libraries reported to be fairly broken before
  13190. # switch to ELF
  13191. ld_shlibs_CXX=no
  13192. ;;
  13193. freebsd-elf*)
  13194. archive_cmds_need_lc_CXX=no
  13195. ;;
  13196. freebsd* | dragonfly* | midnightbsd*)
  13197. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13198. # conventions
  13199. ld_shlibs_CXX=yes
  13200. ;;
  13201. haiku*)
  13202. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13203. link_all_deplibs_CXX=yes
  13204. ;;
  13205. hpux9*)
  13206. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13207. hardcode_libdir_separator_CXX=:
  13208. export_dynamic_flag_spec_CXX='$wl-E'
  13209. hardcode_direct_CXX=yes
  13210. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13211. # but as the default
  13212. # location of the library.
  13213. case $cc_basename in
  13214. CC*)
  13215. # FIXME: insert proper C++ library support
  13216. ld_shlibs_CXX=no
  13217. ;;
  13218. aCC*)
  13219. 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'
  13220. # Commands to make compiler produce verbose output that lists
  13221. # what "hidden" libraries, object files and flags are used when
  13222. # linking a shared library.
  13223. #
  13224. # There doesn't appear to be a way to prevent this compiler from
  13225. # explicitly linking system object files so we need to strip them
  13226. # from the output so that they don't get included in the library
  13227. # dependencies.
  13228. 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"'
  13229. ;;
  13230. *)
  13231. if test yes = "$GXX"; then
  13232. 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'
  13233. else
  13234. # FIXME: insert proper C++ library support
  13235. ld_shlibs_CXX=no
  13236. fi
  13237. ;;
  13238. esac
  13239. ;;
  13240. hpux10*|hpux11*)
  13241. if test no = "$with_gnu_ld"; then
  13242. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13243. hardcode_libdir_separator_CXX=:
  13244. case $host_cpu in
  13245. hppa*64*|ia64*)
  13246. ;;
  13247. *)
  13248. export_dynamic_flag_spec_CXX='$wl-E'
  13249. ;;
  13250. esac
  13251. fi
  13252. case $host_cpu in
  13253. hppa*64*|ia64*)
  13254. hardcode_direct_CXX=no
  13255. hardcode_shlibpath_var_CXX=no
  13256. ;;
  13257. *)
  13258. hardcode_direct_CXX=yes
  13259. hardcode_direct_absolute_CXX=yes
  13260. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13261. # but as the default
  13262. # location of the library.
  13263. ;;
  13264. esac
  13265. case $cc_basename in
  13266. CC*)
  13267. # FIXME: insert proper C++ library support
  13268. ld_shlibs_CXX=no
  13269. ;;
  13270. aCC*)
  13271. case $host_cpu in
  13272. hppa*64*)
  13273. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13274. ;;
  13275. ia64*)
  13276. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13277. ;;
  13278. *)
  13279. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13280. ;;
  13281. esac
  13282. # Commands to make compiler produce verbose output that lists
  13283. # what "hidden" libraries, object files and flags are used when
  13284. # linking a shared library.
  13285. #
  13286. # There doesn't appear to be a way to prevent this compiler from
  13287. # explicitly linking system object files so we need to strip them
  13288. # from the output so that they don't get included in the library
  13289. # dependencies.
  13290. 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"'
  13291. ;;
  13292. *)
  13293. if test yes = "$GXX"; then
  13294. if test no = "$with_gnu_ld"; then
  13295. case $host_cpu in
  13296. hppa*64*)
  13297. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13298. ;;
  13299. ia64*)
  13300. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13301. ;;
  13302. *)
  13303. 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'
  13304. ;;
  13305. esac
  13306. fi
  13307. else
  13308. # FIXME: insert proper C++ library support
  13309. ld_shlibs_CXX=no
  13310. fi
  13311. ;;
  13312. esac
  13313. ;;
  13314. interix[3-9]*)
  13315. hardcode_direct_CXX=no
  13316. hardcode_shlibpath_var_CXX=no
  13317. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13318. export_dynamic_flag_spec_CXX='$wl-E'
  13319. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13320. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13321. # default) and relocated if they conflict, which is a slow very memory
  13322. # consuming and fragmenting process. To avoid this, we pick a random,
  13323. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13324. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13325. 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'
  13326. 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'
  13327. ;;
  13328. irix5* | irix6*)
  13329. case $cc_basename in
  13330. CC*)
  13331. # SGI C++
  13332. 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'
  13333. # Archives containing C++ object files must be created using
  13334. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13335. # necessary to make sure instantiated templates are included
  13336. # in the archive.
  13337. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13338. ;;
  13339. *)
  13340. if test yes = "$GXX"; then
  13341. if test no = "$with_gnu_ld"; then
  13342. 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'
  13343. else
  13344. 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'
  13345. fi
  13346. fi
  13347. link_all_deplibs_CXX=yes
  13348. ;;
  13349. esac
  13350. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13351. hardcode_libdir_separator_CXX=:
  13352. inherit_rpath_CXX=yes
  13353. ;;
  13354. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13355. case $cc_basename in
  13356. KCC*)
  13357. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13358. # KCC will only create a shared library if the output file
  13359. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13360. # to its proper name (with version) after linking.
  13361. 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'
  13362. 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'
  13363. # Commands to make compiler produce verbose output that lists
  13364. # what "hidden" libraries, object files and flags are used when
  13365. # linking a shared library.
  13366. #
  13367. # There doesn't appear to be a way to prevent this compiler from
  13368. # explicitly linking system object files so we need to strip them
  13369. # from the output so that they don't get included in the library
  13370. # dependencies.
  13371. 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"'
  13372. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13373. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13374. # Archives containing C++ object files must be created using
  13375. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13376. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13377. ;;
  13378. icpc* | ecpc* )
  13379. # Intel C++
  13380. with_gnu_ld=yes
  13381. # version 8.0 and above of icpc choke on multiply defined symbols
  13382. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13383. # earlier do not add the objects themselves.
  13384. case `$CC -V 2>&1` in
  13385. *"Version 7."*)
  13386. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13387. 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'
  13388. ;;
  13389. *) # Version 8.0 or newer
  13390. tmp_idyn=
  13391. case $host_cpu in
  13392. ia64*) tmp_idyn=' -i_dynamic';;
  13393. esac
  13394. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13395. 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'
  13396. ;;
  13397. esac
  13398. archive_cmds_need_lc_CXX=no
  13399. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13400. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13401. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13402. ;;
  13403. pgCC* | pgcpp*)
  13404. # Portland Group C++ compiler
  13405. case `$CC -V` in
  13406. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13407. prelink_cmds_CXX='tpldir=Template.dir~
  13408. rm -rf $tpldir~
  13409. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13410. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13411. old_archive_cmds_CXX='tpldir=Template.dir~
  13412. rm -rf $tpldir~
  13413. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13414. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13415. $RANLIB $oldlib'
  13416. archive_cmds_CXX='tpldir=Template.dir~
  13417. rm -rf $tpldir~
  13418. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13419. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13420. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13421. rm -rf $tpldir~
  13422. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13423. $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'
  13424. ;;
  13425. *) # Version 6 and above use weak symbols
  13426. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13427. 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'
  13428. ;;
  13429. esac
  13430. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13431. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13432. 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'
  13433. ;;
  13434. cxx*)
  13435. # Compaq C++
  13436. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13437. 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'
  13438. runpath_var=LD_RUN_PATH
  13439. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13440. hardcode_libdir_separator_CXX=:
  13441. # Commands to make compiler produce verbose output that lists
  13442. # what "hidden" libraries, object files and flags are used when
  13443. # linking a shared library.
  13444. #
  13445. # There doesn't appear to be a way to prevent this compiler from
  13446. # explicitly linking system object files so we need to strip them
  13447. # from the output so that they don't get included in the library
  13448. # dependencies.
  13449. 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'
  13450. ;;
  13451. xl* | mpixl* | bgxl*)
  13452. # IBM XL 8.0 on PPC, with GNU ld
  13453. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13454. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13455. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13456. if test yes = "$supports_anon_versioning"; then
  13457. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13458. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13459. echo "local: *; };" >> $output_objdir/$libname.ver~
  13460. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13461. fi
  13462. ;;
  13463. *)
  13464. case `$CC -V 2>&1 | sed 5q` in
  13465. *Sun\ C*)
  13466. # Sun C++ 5.9
  13467. no_undefined_flag_CXX=' -zdefs'
  13468. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13469. 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'
  13470. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13471. 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'
  13472. compiler_needs_object_CXX=yes
  13473. # Not sure whether something based on
  13474. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13475. # would be better.
  13476. output_verbose_link_cmd='func_echo_all'
  13477. # Archives containing C++ object files must be created using
  13478. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13479. # necessary to make sure instantiated templates are included
  13480. # in the archive.
  13481. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13482. ;;
  13483. esac
  13484. ;;
  13485. esac
  13486. ;;
  13487. lynxos*)
  13488. # FIXME: insert proper C++ library support
  13489. ld_shlibs_CXX=no
  13490. ;;
  13491. m88k*)
  13492. # FIXME: insert proper C++ library support
  13493. ld_shlibs_CXX=no
  13494. ;;
  13495. mvs*)
  13496. case $cc_basename in
  13497. cxx*)
  13498. # FIXME: insert proper C++ library support
  13499. ld_shlibs_CXX=no
  13500. ;;
  13501. *)
  13502. # FIXME: insert proper C++ library support
  13503. ld_shlibs_CXX=no
  13504. ;;
  13505. esac
  13506. ;;
  13507. netbsd*)
  13508. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13509. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13510. wlarc=
  13511. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13512. hardcode_direct_CXX=yes
  13513. hardcode_shlibpath_var_CXX=no
  13514. fi
  13515. # Workaround some broken pre-1.5 toolchains
  13516. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13517. ;;
  13518. *nto* | *qnx*)
  13519. ld_shlibs_CXX=yes
  13520. ;;
  13521. openbsd* | bitrig*)
  13522. if test -f /usr/libexec/ld.so; then
  13523. hardcode_direct_CXX=yes
  13524. hardcode_shlibpath_var_CXX=no
  13525. hardcode_direct_absolute_CXX=yes
  13526. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13527. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13528. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13529. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13530. export_dynamic_flag_spec_CXX='$wl-E'
  13531. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13532. fi
  13533. output_verbose_link_cmd=func_echo_all
  13534. else
  13535. ld_shlibs_CXX=no
  13536. fi
  13537. ;;
  13538. osf3* | osf4* | osf5*)
  13539. case $cc_basename in
  13540. KCC*)
  13541. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13542. # KCC will only create a shared library if the output file
  13543. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13544. # to its proper name (with version) after linking.
  13545. 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'
  13546. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13547. hardcode_libdir_separator_CXX=:
  13548. # Archives containing C++ object files must be created using
  13549. # the KAI C++ compiler.
  13550. case $host in
  13551. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13552. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13553. esac
  13554. ;;
  13555. RCC*)
  13556. # Rational C++ 2.4.1
  13557. # FIXME: insert proper C++ library support
  13558. ld_shlibs_CXX=no
  13559. ;;
  13560. cxx*)
  13561. case $host in
  13562. osf3*)
  13563. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13564. 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'
  13565. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13566. ;;
  13567. *)
  13568. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13569. 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'
  13570. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13571. echo "-hidden">> $lib.exp~
  13572. $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~
  13573. $RM $lib.exp'
  13574. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13575. ;;
  13576. esac
  13577. hardcode_libdir_separator_CXX=:
  13578. # Commands to make compiler produce verbose output that lists
  13579. # what "hidden" libraries, object files and flags are used when
  13580. # linking a shared library.
  13581. #
  13582. # There doesn't appear to be a way to prevent this compiler from
  13583. # explicitly linking system object files so we need to strip them
  13584. # from the output so that they don't get included in the library
  13585. # dependencies.
  13586. 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"'
  13587. ;;
  13588. *)
  13589. if test yes,no = "$GXX,$with_gnu_ld"; then
  13590. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13591. case $host in
  13592. osf3*)
  13593. 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'
  13594. ;;
  13595. *)
  13596. 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'
  13597. ;;
  13598. esac
  13599. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13600. hardcode_libdir_separator_CXX=:
  13601. # Commands to make compiler produce verbose output that lists
  13602. # what "hidden" libraries, object files and flags are used when
  13603. # linking a shared library.
  13604. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13605. else
  13606. # FIXME: insert proper C++ library support
  13607. ld_shlibs_CXX=no
  13608. fi
  13609. ;;
  13610. esac
  13611. ;;
  13612. psos*)
  13613. # FIXME: insert proper C++ library support
  13614. ld_shlibs_CXX=no
  13615. ;;
  13616. sunos4*)
  13617. case $cc_basename in
  13618. CC*)
  13619. # Sun C++ 4.x
  13620. # FIXME: insert proper C++ library support
  13621. ld_shlibs_CXX=no
  13622. ;;
  13623. lcc*)
  13624. # Lucid
  13625. # FIXME: insert proper C++ library support
  13626. ld_shlibs_CXX=no
  13627. ;;
  13628. *)
  13629. # FIXME: insert proper C++ library support
  13630. ld_shlibs_CXX=no
  13631. ;;
  13632. esac
  13633. ;;
  13634. solaris*)
  13635. case $cc_basename in
  13636. CC* | sunCC*)
  13637. # Sun C++ 4.2, 5.x and Centerline C++
  13638. archive_cmds_need_lc_CXX=yes
  13639. no_undefined_flag_CXX=' -zdefs'
  13640. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13641. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13642. $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'
  13643. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13644. hardcode_shlibpath_var_CXX=no
  13645. case $host_os in
  13646. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13647. *)
  13648. # The compiler driver will combine and reorder linker options,
  13649. # but understands '-z linker_flag'.
  13650. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13651. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13652. ;;
  13653. esac
  13654. link_all_deplibs_CXX=yes
  13655. output_verbose_link_cmd='func_echo_all'
  13656. # Archives containing C++ object files must be created using
  13657. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13658. # necessary to make sure instantiated templates are included
  13659. # in the archive.
  13660. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13661. ;;
  13662. gcx*)
  13663. # Green Hills C++ Compiler
  13664. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13665. # The C++ compiler must be used to create the archive.
  13666. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13667. ;;
  13668. *)
  13669. # GNU C++ compiler with Solaris linker
  13670. if test yes,no = "$GXX,$with_gnu_ld"; then
  13671. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13672. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13673. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13674. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13675. $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'
  13676. # Commands to make compiler produce verbose output that lists
  13677. # what "hidden" libraries, object files and flags are used when
  13678. # linking a shared library.
  13679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13680. else
  13681. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13682. # platform.
  13683. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13684. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13685. $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'
  13686. # Commands to make compiler produce verbose output that lists
  13687. # what "hidden" libraries, object files and flags are used when
  13688. # linking a shared library.
  13689. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13690. fi
  13691. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13692. case $host_os in
  13693. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13694. *)
  13695. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13696. ;;
  13697. esac
  13698. fi
  13699. ;;
  13700. esac
  13701. ;;
  13702. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13703. no_undefined_flag_CXX='$wl-z,text'
  13704. archive_cmds_need_lc_CXX=no
  13705. hardcode_shlibpath_var_CXX=no
  13706. runpath_var='LD_RUN_PATH'
  13707. case $cc_basename in
  13708. CC*)
  13709. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13710. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13711. ;;
  13712. *)
  13713. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13714. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13715. ;;
  13716. esac
  13717. ;;
  13718. sysv5* | sco3.2v5* | sco5v6*)
  13719. # Note: We CANNOT use -z defs as we might desire, because we do not
  13720. # link with -lc, and that would cause any symbols used from libc to
  13721. # always be unresolved, which means just about no library would
  13722. # ever link correctly. If we're not using GNU ld we use -z text
  13723. # though, which does catch some bad symbols but isn't as heavy-handed
  13724. # as -z defs.
  13725. no_undefined_flag_CXX='$wl-z,text'
  13726. allow_undefined_flag_CXX='$wl-z,nodefs'
  13727. archive_cmds_need_lc_CXX=no
  13728. hardcode_shlibpath_var_CXX=no
  13729. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13730. hardcode_libdir_separator_CXX=':'
  13731. link_all_deplibs_CXX=yes
  13732. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13733. runpath_var='LD_RUN_PATH'
  13734. case $cc_basename in
  13735. CC*)
  13736. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13737. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13738. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13739. '"$old_archive_cmds_CXX"
  13740. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13741. '"$reload_cmds_CXX"
  13742. ;;
  13743. *)
  13744. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13745. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13746. ;;
  13747. esac
  13748. ;;
  13749. tandem*)
  13750. case $cc_basename in
  13751. NCC*)
  13752. # NonStop-UX NCC 3.20
  13753. # FIXME: insert proper C++ library support
  13754. ld_shlibs_CXX=no
  13755. ;;
  13756. *)
  13757. # FIXME: insert proper C++ library support
  13758. ld_shlibs_CXX=no
  13759. ;;
  13760. esac
  13761. ;;
  13762. vxworks*)
  13763. # FIXME: insert proper C++ library support
  13764. ld_shlibs_CXX=no
  13765. ;;
  13766. *)
  13767. # FIXME: insert proper C++ library support
  13768. ld_shlibs_CXX=no
  13769. ;;
  13770. esac
  13771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13772. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13773. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13774. GCC_CXX=$GXX
  13775. LD_CXX=$LD
  13776. ## CAVEAT EMPTOR:
  13777. ## There is no encapsulation within the following macros, do not change
  13778. ## the running order or otherwise move them around unless you know exactly
  13779. ## what you are doing...
  13780. # Dependencies to place before and after the object being linked:
  13781. predep_objects_CXX=
  13782. postdep_objects_CXX=
  13783. predeps_CXX=
  13784. postdeps_CXX=
  13785. compiler_lib_search_path_CXX=
  13786. cat > conftest.$ac_ext <<_LT_EOF
  13787. class Foo
  13788. {
  13789. public:
  13790. Foo (void) { a = 0; }
  13791. private:
  13792. int a;
  13793. };
  13794. _LT_EOF
  13795. _lt_libdeps_save_CFLAGS=$CFLAGS
  13796. case "$CC $CFLAGS " in #(
  13797. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13798. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13799. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13800. esac
  13801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13802. (eval $ac_compile) 2>&5
  13803. ac_status=$?
  13804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13805. test $ac_status = 0; }; then
  13806. # Parse the compiler output and extract the necessary
  13807. # objects, libraries and library flags.
  13808. # Sentinel used to keep track of whether or not we are before
  13809. # the conftest object file.
  13810. pre_test_object_deps_done=no
  13811. for p in `eval "$output_verbose_link_cmd"`; do
  13812. case $prev$p in
  13813. -L* | -R* | -l*)
  13814. # Some compilers place space between "-{L,R}" and the path.
  13815. # Remove the space.
  13816. if test x-L = "x$p" ||
  13817. test x-R = "x$p" ||
  13818. test x-l = "x$p"; then
  13819. prev=$p
  13820. continue
  13821. fi
  13822. # Expand the sysroot to ease extracting the directories later.
  13823. if test -z "$prev"; then
  13824. case $p in
  13825. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13826. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13827. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13828. esac
  13829. fi
  13830. case $p in
  13831. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13832. esac
  13833. if test no = "$pre_test_object_deps_done"; then
  13834. case $prev in
  13835. -L | -R)
  13836. # Internal compiler library paths should come after those
  13837. # provided the user. The postdeps already come after the
  13838. # user supplied libs so there is no need to process them.
  13839. if test -z "$compiler_lib_search_path_CXX"; then
  13840. compiler_lib_search_path_CXX=$prev$p
  13841. else
  13842. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13843. fi
  13844. ;;
  13845. # The "-l" case would never come before the object being
  13846. # linked, so don't bother handling this case.
  13847. esac
  13848. else
  13849. if test -z "$postdeps_CXX"; then
  13850. postdeps_CXX=$prev$p
  13851. else
  13852. postdeps_CXX="${postdeps_CXX} $prev$p"
  13853. fi
  13854. fi
  13855. prev=
  13856. ;;
  13857. *.lto.$objext) ;; # Ignore GCC LTO objects
  13858. *.$objext)
  13859. # This assumes that the test object file only shows up
  13860. # once in the compiler output.
  13861. if test "$p" = "conftest.$objext"; then
  13862. pre_test_object_deps_done=yes
  13863. continue
  13864. fi
  13865. if test no = "$pre_test_object_deps_done"; then
  13866. if test -z "$predep_objects_CXX"; then
  13867. predep_objects_CXX=$p
  13868. else
  13869. predep_objects_CXX="$predep_objects_CXX $p"
  13870. fi
  13871. else
  13872. if test -z "$postdep_objects_CXX"; then
  13873. postdep_objects_CXX=$p
  13874. else
  13875. postdep_objects_CXX="$postdep_objects_CXX $p"
  13876. fi
  13877. fi
  13878. ;;
  13879. *) ;; # Ignore the rest.
  13880. esac
  13881. done
  13882. # Clean up.
  13883. rm -f a.out a.exe
  13884. else
  13885. echo "libtool.m4: error: problem compiling CXX test program"
  13886. fi
  13887. $RM -f confest.$objext
  13888. CFLAGS=$_lt_libdeps_save_CFLAGS
  13889. # PORTME: override above test on systems where it is broken
  13890. case $host_os in
  13891. interix[3-9]*)
  13892. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13893. # hack all around it, let's just trust "g++" to DTRT.
  13894. predep_objects_CXX=
  13895. postdep_objects_CXX=
  13896. postdeps_CXX=
  13897. ;;
  13898. esac
  13899. case " $postdeps_CXX " in
  13900. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13901. esac
  13902. compiler_lib_search_dirs_CXX=
  13903. if test -n "${compiler_lib_search_path_CXX}"; then
  13904. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13905. fi
  13906. lt_prog_compiler_wl_CXX=
  13907. lt_prog_compiler_pic_CXX=
  13908. lt_prog_compiler_static_CXX=
  13909. # C++ specific cases for pic, static, wl, etc.
  13910. if test yes = "$GXX"; then
  13911. lt_prog_compiler_wl_CXX='-Wl,'
  13912. lt_prog_compiler_static_CXX='-static'
  13913. case $host_os in
  13914. aix*)
  13915. # All AIX code is PIC.
  13916. if test ia64 = "$host_cpu"; then
  13917. # AIX 5 now supports IA64 processor
  13918. lt_prog_compiler_static_CXX='-Bstatic'
  13919. fi
  13920. lt_prog_compiler_pic_CXX='-fPIC'
  13921. ;;
  13922. amigaos*)
  13923. case $host_cpu in
  13924. powerpc)
  13925. # see comment about AmigaOS4 .so support
  13926. lt_prog_compiler_pic_CXX='-fPIC'
  13927. ;;
  13928. m68k)
  13929. # FIXME: we need at least 68020 code to build shared libraries, but
  13930. # adding the '-m68020' flag to GCC prevents building anything better,
  13931. # like '-m68040'.
  13932. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13933. ;;
  13934. esac
  13935. ;;
  13936. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13937. # PIC is the default for these OSes.
  13938. ;;
  13939. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13940. # This hack is so that the source file can tell whether it is being
  13941. # built for inclusion in a dll (and should export symbols for example).
  13942. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13943. # (--disable-auto-import) libraries
  13944. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13945. case $host_os in
  13946. os2*)
  13947. lt_prog_compiler_static_CXX='$wl-static'
  13948. ;;
  13949. esac
  13950. ;;
  13951. darwin* | rhapsody*)
  13952. # PIC is the default on this platform
  13953. # Common symbols not allowed in MH_DYLIB files
  13954. lt_prog_compiler_pic_CXX='-fno-common'
  13955. ;;
  13956. *djgpp*)
  13957. # DJGPP does not support shared libraries at all
  13958. lt_prog_compiler_pic_CXX=
  13959. ;;
  13960. haiku*)
  13961. # PIC is the default for Haiku.
  13962. # The "-static" flag exists, but is broken.
  13963. lt_prog_compiler_static_CXX=
  13964. ;;
  13965. interix[3-9]*)
  13966. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13967. # Instead, we relocate shared libraries at runtime.
  13968. ;;
  13969. sysv4*MP*)
  13970. if test -d /usr/nec; then
  13971. lt_prog_compiler_pic_CXX=-Kconform_pic
  13972. fi
  13973. ;;
  13974. hpux*)
  13975. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13976. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13977. # sets the default TLS model and affects inlining.
  13978. case $host_cpu in
  13979. hppa*64*)
  13980. ;;
  13981. *)
  13982. lt_prog_compiler_pic_CXX='-fPIC'
  13983. ;;
  13984. esac
  13985. ;;
  13986. *qnx* | *nto*)
  13987. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13988. # it will coredump.
  13989. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13990. ;;
  13991. *)
  13992. lt_prog_compiler_pic_CXX='-fPIC'
  13993. ;;
  13994. esac
  13995. else
  13996. case $host_os in
  13997. aix[4-9]*)
  13998. # All AIX code is PIC.
  13999. if test ia64 = "$host_cpu"; then
  14000. # AIX 5 now supports IA64 processor
  14001. lt_prog_compiler_static_CXX='-Bstatic'
  14002. else
  14003. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14004. fi
  14005. ;;
  14006. chorus*)
  14007. case $cc_basename in
  14008. cxch68*)
  14009. # Green Hills C++ Compiler
  14010. # _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"
  14011. ;;
  14012. esac
  14013. ;;
  14014. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14015. # This hack is so that the source file can tell whether it is being
  14016. # built for inclusion in a dll (and should export symbols for example).
  14017. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14018. ;;
  14019. dgux*)
  14020. case $cc_basename in
  14021. ec++*)
  14022. lt_prog_compiler_pic_CXX='-KPIC'
  14023. ;;
  14024. ghcx*)
  14025. # Green Hills C++ Compiler
  14026. lt_prog_compiler_pic_CXX='-pic'
  14027. ;;
  14028. *)
  14029. ;;
  14030. esac
  14031. ;;
  14032. freebsd* | dragonfly* | midnightbsd*)
  14033. # FreeBSD uses GNU C++
  14034. ;;
  14035. hpux9* | hpux10* | hpux11*)
  14036. case $cc_basename in
  14037. CC*)
  14038. lt_prog_compiler_wl_CXX='-Wl,'
  14039. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14040. if test ia64 != "$host_cpu"; then
  14041. lt_prog_compiler_pic_CXX='+Z'
  14042. fi
  14043. ;;
  14044. aCC*)
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14047. case $host_cpu in
  14048. hppa*64*|ia64*)
  14049. # +Z the default
  14050. ;;
  14051. *)
  14052. lt_prog_compiler_pic_CXX='+Z'
  14053. ;;
  14054. esac
  14055. ;;
  14056. *)
  14057. ;;
  14058. esac
  14059. ;;
  14060. interix*)
  14061. # This is c89, which is MS Visual C++ (no shared libs)
  14062. # Anyone wants to do a port?
  14063. ;;
  14064. irix5* | irix6* | nonstopux*)
  14065. case $cc_basename in
  14066. CC*)
  14067. lt_prog_compiler_wl_CXX='-Wl,'
  14068. lt_prog_compiler_static_CXX='-non_shared'
  14069. # CC pic flag -KPIC is the default.
  14070. ;;
  14071. *)
  14072. ;;
  14073. esac
  14074. ;;
  14075. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14076. case $cc_basename in
  14077. KCC*)
  14078. # KAI C++ Compiler
  14079. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14080. lt_prog_compiler_pic_CXX='-fPIC'
  14081. ;;
  14082. ecpc* )
  14083. # old Intel C++ for x86_64, which still supported -KPIC.
  14084. lt_prog_compiler_wl_CXX='-Wl,'
  14085. lt_prog_compiler_pic_CXX='-KPIC'
  14086. lt_prog_compiler_static_CXX='-static'
  14087. ;;
  14088. icpc* )
  14089. # Intel C++, used to be incompatible with GCC.
  14090. # ICC 10 doesn't accept -KPIC any more.
  14091. lt_prog_compiler_wl_CXX='-Wl,'
  14092. lt_prog_compiler_pic_CXX='-fPIC'
  14093. lt_prog_compiler_static_CXX='-static'
  14094. ;;
  14095. pgCC* | pgcpp*)
  14096. # Portland Group C++ compiler
  14097. lt_prog_compiler_wl_CXX='-Wl,'
  14098. lt_prog_compiler_pic_CXX='-fpic'
  14099. lt_prog_compiler_static_CXX='-Bstatic'
  14100. ;;
  14101. cxx*)
  14102. # Compaq C++
  14103. # Make sure the PIC flag is empty. It appears that all Alpha
  14104. # Linux and Compaq Tru64 Unix objects are PIC.
  14105. lt_prog_compiler_pic_CXX=
  14106. lt_prog_compiler_static_CXX='-non_shared'
  14107. ;;
  14108. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14109. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14110. lt_prog_compiler_wl_CXX='-Wl,'
  14111. lt_prog_compiler_pic_CXX='-qpic'
  14112. lt_prog_compiler_static_CXX='-qstaticlink'
  14113. ;;
  14114. *)
  14115. case `$CC -V 2>&1 | sed 5q` in
  14116. *Sun\ C*)
  14117. # Sun C++ 5.9
  14118. lt_prog_compiler_pic_CXX='-KPIC'
  14119. lt_prog_compiler_static_CXX='-Bstatic'
  14120. lt_prog_compiler_wl_CXX='-Qoption ld '
  14121. ;;
  14122. esac
  14123. ;;
  14124. esac
  14125. ;;
  14126. lynxos*)
  14127. ;;
  14128. m88k*)
  14129. ;;
  14130. mvs*)
  14131. case $cc_basename in
  14132. cxx*)
  14133. lt_prog_compiler_pic_CXX='-W c,exportall'
  14134. ;;
  14135. *)
  14136. ;;
  14137. esac
  14138. ;;
  14139. netbsd*)
  14140. ;;
  14141. *qnx* | *nto*)
  14142. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14143. # it will coredump.
  14144. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14145. ;;
  14146. osf3* | osf4* | osf5*)
  14147. case $cc_basename in
  14148. KCC*)
  14149. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14150. ;;
  14151. RCC*)
  14152. # Rational C++ 2.4.1
  14153. lt_prog_compiler_pic_CXX='-pic'
  14154. ;;
  14155. cxx*)
  14156. # Digital/Compaq C++
  14157. lt_prog_compiler_wl_CXX='-Wl,'
  14158. # Make sure the PIC flag is empty. It appears that all Alpha
  14159. # Linux and Compaq Tru64 Unix objects are PIC.
  14160. lt_prog_compiler_pic_CXX=
  14161. lt_prog_compiler_static_CXX='-non_shared'
  14162. ;;
  14163. *)
  14164. ;;
  14165. esac
  14166. ;;
  14167. psos*)
  14168. ;;
  14169. solaris*)
  14170. case $cc_basename in
  14171. CC* | sunCC*)
  14172. # Sun C++ 4.2, 5.x and Centerline C++
  14173. lt_prog_compiler_pic_CXX='-KPIC'
  14174. lt_prog_compiler_static_CXX='-Bstatic'
  14175. lt_prog_compiler_wl_CXX='-Qoption ld '
  14176. ;;
  14177. gcx*)
  14178. # Green Hills C++ Compiler
  14179. lt_prog_compiler_pic_CXX='-PIC'
  14180. ;;
  14181. *)
  14182. ;;
  14183. esac
  14184. ;;
  14185. sunos4*)
  14186. case $cc_basename in
  14187. CC*)
  14188. # Sun C++ 4.x
  14189. lt_prog_compiler_pic_CXX='-pic'
  14190. lt_prog_compiler_static_CXX='-Bstatic'
  14191. ;;
  14192. lcc*)
  14193. # Lucid
  14194. lt_prog_compiler_pic_CXX='-pic'
  14195. ;;
  14196. *)
  14197. ;;
  14198. esac
  14199. ;;
  14200. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14201. case $cc_basename in
  14202. CC*)
  14203. lt_prog_compiler_wl_CXX='-Wl,'
  14204. lt_prog_compiler_pic_CXX='-KPIC'
  14205. lt_prog_compiler_static_CXX='-Bstatic'
  14206. ;;
  14207. esac
  14208. ;;
  14209. tandem*)
  14210. case $cc_basename in
  14211. NCC*)
  14212. # NonStop-UX NCC 3.20
  14213. lt_prog_compiler_pic_CXX='-KPIC'
  14214. ;;
  14215. *)
  14216. ;;
  14217. esac
  14218. ;;
  14219. vxworks*)
  14220. ;;
  14221. *)
  14222. lt_prog_compiler_can_build_shared_CXX=no
  14223. ;;
  14224. esac
  14225. fi
  14226. case $host_os in
  14227. # For platforms that do not support PIC, -DPIC is meaningless:
  14228. *djgpp*)
  14229. lt_prog_compiler_pic_CXX=
  14230. ;;
  14231. *)
  14232. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14233. ;;
  14234. esac
  14235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14236. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14237. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14238. then :
  14239. printf %s "(cached) " >&6
  14240. else $as_nop
  14241. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14242. fi
  14243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14244. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14245. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14246. #
  14247. # Check to make sure the PIC flag actually works.
  14248. #
  14249. if test -n "$lt_prog_compiler_pic_CXX"; then
  14250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14251. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14252. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14253. then :
  14254. printf %s "(cached) " >&6
  14255. else $as_nop
  14256. lt_cv_prog_compiler_pic_works_CXX=no
  14257. ac_outfile=conftest.$ac_objext
  14258. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14259. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14260. # Insert the option either (1) after the last *FLAGS variable, or
  14261. # (2) before a word containing "conftest.", or (3) at the end.
  14262. # Note that $ac_compile itself does not contain backslashes and begins
  14263. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14264. # The option is referenced via a variable to avoid confusing sed.
  14265. lt_compile=`echo "$ac_compile" | $SED \
  14266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14268. -e 's:$: $lt_compiler_flag:'`
  14269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14270. (eval "$lt_compile" 2>conftest.err)
  14271. ac_status=$?
  14272. cat conftest.err >&5
  14273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14274. if (exit $ac_status) && test -s "$ac_outfile"; then
  14275. # The compiler can only warn and ignore the option if not recognized
  14276. # So say no if there are warnings other than the usual output.
  14277. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14278. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14279. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14280. lt_cv_prog_compiler_pic_works_CXX=yes
  14281. fi
  14282. fi
  14283. $RM conftest*
  14284. fi
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14286. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14287. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14288. case $lt_prog_compiler_pic_CXX in
  14289. "" | " "*) ;;
  14290. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14291. esac
  14292. else
  14293. lt_prog_compiler_pic_CXX=
  14294. lt_prog_compiler_can_build_shared_CXX=no
  14295. fi
  14296. fi
  14297. #
  14298. # Check to make sure the static flag actually works.
  14299. #
  14300. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14302. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14303. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14304. then :
  14305. printf %s "(cached) " >&6
  14306. else $as_nop
  14307. lt_cv_prog_compiler_static_works_CXX=no
  14308. save_LDFLAGS=$LDFLAGS
  14309. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14310. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14311. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14312. # The linker can only warn and ignore the option if not recognized
  14313. # So say no if there are warnings
  14314. if test -s conftest.err; then
  14315. # Append any errors to the config.log.
  14316. cat conftest.err 1>&5
  14317. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14318. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14319. if diff conftest.exp conftest.er2 >/dev/null; then
  14320. lt_cv_prog_compiler_static_works_CXX=yes
  14321. fi
  14322. else
  14323. lt_cv_prog_compiler_static_works_CXX=yes
  14324. fi
  14325. fi
  14326. $RM -r conftest*
  14327. LDFLAGS=$save_LDFLAGS
  14328. fi
  14329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14330. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14331. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14332. :
  14333. else
  14334. lt_prog_compiler_static_CXX=
  14335. fi
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14337. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14338. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14339. then :
  14340. printf %s "(cached) " >&6
  14341. else $as_nop
  14342. lt_cv_prog_compiler_c_o_CXX=no
  14343. $RM -r conftest 2>/dev/null
  14344. mkdir conftest
  14345. cd conftest
  14346. mkdir out
  14347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14349. # Insert the option either (1) after the last *FLAGS variable, or
  14350. # (2) before a word containing "conftest.", or (3) at the end.
  14351. # Note that $ac_compile itself does not contain backslashes and begins
  14352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14353. lt_compile=`echo "$ac_compile" | $SED \
  14354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14356. -e 's:$: $lt_compiler_flag:'`
  14357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14358. (eval "$lt_compile" 2>out/conftest.err)
  14359. ac_status=$?
  14360. cat out/conftest.err >&5
  14361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14363. then
  14364. # The compiler can only warn and ignore the option if not recognized
  14365. # So say no if there are warnings
  14366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14369. lt_cv_prog_compiler_c_o_CXX=yes
  14370. fi
  14371. fi
  14372. chmod u+w . 2>&5
  14373. $RM conftest*
  14374. # SGI C++ compiler will create directory out/ii_files/ for
  14375. # template instantiation
  14376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14377. $RM out/* && rmdir out
  14378. cd ..
  14379. $RM -r conftest
  14380. $RM conftest*
  14381. fi
  14382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14383. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14385. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14386. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14387. then :
  14388. printf %s "(cached) " >&6
  14389. else $as_nop
  14390. lt_cv_prog_compiler_c_o_CXX=no
  14391. $RM -r conftest 2>/dev/null
  14392. mkdir conftest
  14393. cd conftest
  14394. mkdir out
  14395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14397. # Insert the option either (1) after the last *FLAGS variable, or
  14398. # (2) before a word containing "conftest.", or (3) at the end.
  14399. # Note that $ac_compile itself does not contain backslashes and begins
  14400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14401. lt_compile=`echo "$ac_compile" | $SED \
  14402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14404. -e 's:$: $lt_compiler_flag:'`
  14405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14406. (eval "$lt_compile" 2>out/conftest.err)
  14407. ac_status=$?
  14408. cat out/conftest.err >&5
  14409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14411. then
  14412. # The compiler can only warn and ignore the option if not recognized
  14413. # So say no if there are warnings
  14414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14417. lt_cv_prog_compiler_c_o_CXX=yes
  14418. fi
  14419. fi
  14420. chmod u+w . 2>&5
  14421. $RM conftest*
  14422. # SGI C++ compiler will create directory out/ii_files/ for
  14423. # template instantiation
  14424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14425. $RM out/* && rmdir out
  14426. cd ..
  14427. $RM -r conftest
  14428. $RM conftest*
  14429. fi
  14430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14431. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14432. hard_links=nottested
  14433. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14434. # do not overwrite the value of need_locks provided by the user
  14435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14436. printf %s "checking if we can lock with hard links... " >&6; }
  14437. hard_links=yes
  14438. $RM conftest*
  14439. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14440. touch conftest.a
  14441. ln conftest.a conftest.b 2>&5 || hard_links=no
  14442. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14444. printf "%s\n" "$hard_links" >&6; }
  14445. if test no = "$hard_links"; then
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14447. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14448. need_locks=warn
  14449. fi
  14450. else
  14451. need_locks=no
  14452. fi
  14453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14454. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14455. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14456. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14457. case $host_os in
  14458. aix[4-9]*)
  14459. # If we're using GNU nm, then we don't want the "-C" option.
  14460. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14461. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14462. # weak defined symbols like other global defined symbols, whereas
  14463. # GNU nm marks them as "W".
  14464. # While the 'weak' keyword is ignored in the Export File, we need
  14465. # it in the Import File for the 'aix-soname' feature, so we have
  14466. # to replace the "-B" option with "-P" for AIX nm.
  14467. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14468. 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'
  14469. else
  14470. 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'
  14471. fi
  14472. ;;
  14473. pw32*)
  14474. export_symbols_cmds_CXX=$ltdll_cmds
  14475. ;;
  14476. cygwin* | mingw* | windows* | cegcc*)
  14477. case $cc_basename in
  14478. cl* | icl*)
  14479. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14480. ;;
  14481. *)
  14482. 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'
  14483. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14484. ;;
  14485. esac
  14486. ;;
  14487. *)
  14488. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14489. ;;
  14490. esac
  14491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14492. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14493. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14494. with_gnu_ld_CXX=$with_gnu_ld
  14495. #
  14496. # Do we need to explicitly link libc?
  14497. #
  14498. case "x$archive_cmds_need_lc_CXX" in
  14499. x|xyes)
  14500. # Assume -lc should be added
  14501. archive_cmds_need_lc_CXX=yes
  14502. if test yes,yes = "$GCC,$enable_shared"; then
  14503. case $archive_cmds_CXX in
  14504. *'~'*)
  14505. # FIXME: we may have to deal with multi-command sequences.
  14506. ;;
  14507. '$CC '*)
  14508. # Test whether the compiler implicitly links with -lc since on some
  14509. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14510. # to ld, don't add -lc before -lgcc.
  14511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14512. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14513. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14514. then :
  14515. printf %s "(cached) " >&6
  14516. else $as_nop
  14517. $RM conftest*
  14518. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14520. (eval $ac_compile) 2>&5
  14521. ac_status=$?
  14522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14523. test $ac_status = 0; } 2>conftest.err; then
  14524. soname=conftest
  14525. lib=conftest
  14526. libobjs=conftest.$ac_objext
  14527. deplibs=
  14528. wl=$lt_prog_compiler_wl_CXX
  14529. pic_flag=$lt_prog_compiler_pic_CXX
  14530. compiler_flags=-v
  14531. linker_flags=-v
  14532. verstring=
  14533. output_objdir=.
  14534. libname=conftest
  14535. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14536. allow_undefined_flag_CXX=
  14537. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14538. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14539. ac_status=$?
  14540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14541. test $ac_status = 0; }
  14542. then
  14543. lt_cv_archive_cmds_need_lc_CXX=no
  14544. else
  14545. lt_cv_archive_cmds_need_lc_CXX=yes
  14546. fi
  14547. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14548. else
  14549. cat conftest.err 1>&5
  14550. fi
  14551. $RM conftest*
  14552. fi
  14553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14554. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14555. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14556. ;;
  14557. esac
  14558. fi
  14559. ;;
  14560. esac
  14561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14562. printf %s "checking dynamic linker characteristics... " >&6; }
  14563. library_names_spec=
  14564. libname_spec='lib$name'
  14565. soname_spec=
  14566. shrext_cmds=.so
  14567. postinstall_cmds=
  14568. postuninstall_cmds=
  14569. finish_cmds=
  14570. finish_eval=
  14571. shlibpath_var=
  14572. shlibpath_overrides_runpath=unknown
  14573. version_type=none
  14574. dynamic_linker="$host_os ld.so"
  14575. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14576. need_lib_prefix=unknown
  14577. hardcode_into_libs=no
  14578. # when you set need_version to no, make sure it does not cause -set_version
  14579. # flags to be left without arguments
  14580. need_version=unknown
  14581. case $host_os in
  14582. aix3*)
  14583. version_type=linux # correct to gnu/linux during the next big refactor
  14584. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14585. shlibpath_var=LIBPATH
  14586. # AIX 3 has no versioning support, so we append a major version to the name.
  14587. soname_spec='$libname$release$shared_ext$major'
  14588. ;;
  14589. aix[4-9]*)
  14590. version_type=linux # correct to gnu/linux during the next big refactor
  14591. need_lib_prefix=no
  14592. need_version=no
  14593. hardcode_into_libs=yes
  14594. if test ia64 = "$host_cpu"; then
  14595. # AIX 5 supports IA64
  14596. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14597. shlibpath_var=LD_LIBRARY_PATH
  14598. else
  14599. # With GCC up to 2.95.x, collect2 would create an import file
  14600. # for dependence libraries. The import file would start with
  14601. # the line '#! .'. This would cause the generated library to
  14602. # depend on '.', always an invalid library. This was fixed in
  14603. # development snapshots of GCC prior to 3.0.
  14604. case $host_os in
  14605. aix4 | aix4.[01] | aix4.[01].*)
  14606. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14607. echo ' yes '
  14608. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14609. :
  14610. else
  14611. can_build_shared=no
  14612. fi
  14613. ;;
  14614. esac
  14615. # Using Import Files as archive members, it is possible to support
  14616. # filename-based versioning of shared library archives on AIX. While
  14617. # this would work for both with and without runtime linking, it will
  14618. # prevent static linking of such archives. So we do filename-based
  14619. # shared library versioning with .so extension only, which is used
  14620. # when both runtime linking and shared linking is enabled.
  14621. # Unfortunately, runtime linking may impact performance, so we do
  14622. # not want this to be the default eventually. Also, we use the
  14623. # versioned .so libs for executables only if there is the -brtl
  14624. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14625. # To allow for filename-based versioning support, we need to create
  14626. # libNAME.so.V as an archive file, containing:
  14627. # *) an Import File, referring to the versioned filename of the
  14628. # archive as well as the shared archive member, telling the
  14629. # bitwidth (32 or 64) of that shared object, and providing the
  14630. # list of exported symbols of that shared object, eventually
  14631. # decorated with the 'weak' keyword
  14632. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14633. # it being seen by the linker.
  14634. # At run time we better use the real file rather than another symlink,
  14635. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14636. case $with_aix_soname,$aix_use_runtimelinking in
  14637. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14638. # soname into executable. Probably we can add versioning support to
  14639. # collect2, so additional links can be useful in future.
  14640. aix,yes) # traditional libtool
  14641. dynamic_linker='AIX unversionable lib.so'
  14642. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14643. # instead of lib<name>.a to let people know that these are not
  14644. # typical AIX shared libraries.
  14645. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14646. ;;
  14647. aix,no) # traditional AIX only
  14648. dynamic_linker='AIX lib.a(lib.so.V)'
  14649. # We preserve .a as extension for shared libraries through AIX4.2
  14650. # and later when we are not doing run time linking.
  14651. library_names_spec='$libname$release.a $libname.a'
  14652. soname_spec='$libname$release$shared_ext$major'
  14653. ;;
  14654. svr4,*) # full svr4 only
  14655. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14656. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14657. # We do not specify a path in Import Files, so LIBPATH fires.
  14658. shlibpath_overrides_runpath=yes
  14659. ;;
  14660. *,yes) # both, prefer svr4
  14661. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14662. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14663. # unpreferred sharedlib libNAME.a needs extra handling
  14664. 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"'
  14665. 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"'
  14666. # We do not specify a path in Import Files, so LIBPATH fires.
  14667. shlibpath_overrides_runpath=yes
  14668. ;;
  14669. *,no) # both, prefer aix
  14670. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14671. library_names_spec='$libname$release.a $libname.a'
  14672. soname_spec='$libname$release$shared_ext$major'
  14673. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14674. 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)'
  14675. 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"'
  14676. ;;
  14677. esac
  14678. shlibpath_var=LIBPATH
  14679. fi
  14680. ;;
  14681. amigaos*)
  14682. case $host_cpu in
  14683. powerpc)
  14684. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14685. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14686. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14687. ;;
  14688. m68k)
  14689. library_names_spec='$libname.ixlibrary $libname.a'
  14690. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14691. 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'
  14692. ;;
  14693. esac
  14694. ;;
  14695. beos*)
  14696. library_names_spec='$libname$shared_ext'
  14697. dynamic_linker="$host_os ld.so"
  14698. shlibpath_var=LIBRARY_PATH
  14699. ;;
  14700. bsdi[45]*)
  14701. version_type=linux # correct to gnu/linux during the next big refactor
  14702. need_version=no
  14703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14704. soname_spec='$libname$release$shared_ext$major'
  14705. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14706. shlibpath_var=LD_LIBRARY_PATH
  14707. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14708. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14709. # the default ld.so.conf also contains /usr/contrib/lib and
  14710. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14711. # libtool to hard-code these into programs
  14712. ;;
  14713. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14714. version_type=windows
  14715. shrext_cmds=.dll
  14716. need_version=no
  14717. need_lib_prefix=no
  14718. case $GCC,$cc_basename in
  14719. yes,*)
  14720. # gcc
  14721. library_names_spec='$libname.dll.a'
  14722. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14723. postinstall_cmds='base_file=`basename \$file`~
  14724. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14725. dldir=$destdir/`dirname \$dlpath`~
  14726. test -d \$dldir || mkdir -p \$dldir~
  14727. $install_prog $dir/$dlname \$dldir/$dlname~
  14728. chmod a+x \$dldir/$dlname~
  14729. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14730. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14731. fi'
  14732. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14733. dlpath=$dir/\$dldll~
  14734. $RM \$dlpath'
  14735. shlibpath_overrides_runpath=yes
  14736. case $host_os in
  14737. cygwin*)
  14738. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14739. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14740. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14741. ;;
  14742. mingw* | windows* | cegcc*)
  14743. # MinGW DLLs use traditional 'lib' prefix
  14744. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14745. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14746. ;;
  14747. pw32*)
  14748. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14749. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14750. ;;
  14751. esac
  14752. dynamic_linker='Win32 ld.exe'
  14753. ;;
  14754. *,cl* | *,icl*)
  14755. # Native MSVC or ICC
  14756. libname_spec='$name'
  14757. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14758. library_names_spec='$libname.dll.lib'
  14759. case $build_os in
  14760. mingw* | windows*)
  14761. sys_lib_search_path_spec=
  14762. lt_save_ifs=$IFS
  14763. IFS=';'
  14764. for lt_path in $LIB
  14765. do
  14766. IFS=$lt_save_ifs
  14767. # Let DOS variable expansion print the short 8.3 style file name.
  14768. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14769. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14770. done
  14771. IFS=$lt_save_ifs
  14772. # Convert to MSYS style.
  14773. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14774. ;;
  14775. cygwin*)
  14776. # Convert to unix form, then to dos form, then back to unix form
  14777. # but this time dos style (no spaces!) so that the unix form looks
  14778. # like /cygdrive/c/PROGRA~1:/cygdr...
  14779. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14780. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14781. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14782. ;;
  14783. *)
  14784. sys_lib_search_path_spec=$LIB
  14785. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14786. # It is most probably a Windows format PATH.
  14787. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14788. else
  14789. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14790. fi
  14791. # FIXME: find the short name or the path components, as spaces are
  14792. # common. (e.g. "Program Files" -> "PROGRA~1")
  14793. ;;
  14794. esac
  14795. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14796. postinstall_cmds='base_file=`basename \$file`~
  14797. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14798. dldir=$destdir/`dirname \$dlpath`~
  14799. test -d \$dldir || mkdir -p \$dldir~
  14800. $install_prog $dir/$dlname \$dldir/$dlname'
  14801. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14802. dlpath=$dir/\$dldll~
  14803. $RM \$dlpath'
  14804. shlibpath_overrides_runpath=yes
  14805. dynamic_linker='Win32 link.exe'
  14806. ;;
  14807. *)
  14808. # Assume MSVC and ICC wrapper
  14809. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14810. dynamic_linker='Win32 ld.exe'
  14811. ;;
  14812. esac
  14813. # FIXME: first we should search . and the directory the executable is in
  14814. shlibpath_var=PATH
  14815. ;;
  14816. darwin* | rhapsody*)
  14817. dynamic_linker="$host_os dyld"
  14818. version_type=darwin
  14819. need_lib_prefix=no
  14820. need_version=no
  14821. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14822. soname_spec='$libname$release$major$shared_ext'
  14823. shlibpath_overrides_runpath=yes
  14824. shlibpath_var=DYLD_LIBRARY_PATH
  14825. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14826. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14827. ;;
  14828. dgux*)
  14829. version_type=linux # correct to gnu/linux during the next big refactor
  14830. need_lib_prefix=no
  14831. need_version=no
  14832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14833. soname_spec='$libname$release$shared_ext$major'
  14834. shlibpath_var=LD_LIBRARY_PATH
  14835. ;;
  14836. freebsd* | dragonfly* | midnightbsd*)
  14837. # DragonFly does not have aout. When/if they implement a new
  14838. # versioning mechanism, adjust this.
  14839. if test -x /usr/bin/objformat; then
  14840. objformat=`/usr/bin/objformat`
  14841. else
  14842. case $host_os in
  14843. freebsd[23].*) objformat=aout ;;
  14844. *) objformat=elf ;;
  14845. esac
  14846. fi
  14847. version_type=freebsd-$objformat
  14848. case $version_type in
  14849. freebsd-elf*)
  14850. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14851. soname_spec='$libname$release$shared_ext$major'
  14852. need_version=no
  14853. need_lib_prefix=no
  14854. ;;
  14855. freebsd-*)
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14857. need_version=yes
  14858. ;;
  14859. esac
  14860. shlibpath_var=LD_LIBRARY_PATH
  14861. case $host_os in
  14862. freebsd2.*)
  14863. shlibpath_overrides_runpath=yes
  14864. ;;
  14865. freebsd3.[01]* | freebsdelf3.[01]*)
  14866. shlibpath_overrides_runpath=yes
  14867. hardcode_into_libs=yes
  14868. ;;
  14869. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14870. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14871. shlibpath_overrides_runpath=no
  14872. hardcode_into_libs=yes
  14873. ;;
  14874. *) # from 4.6 on, and DragonFly
  14875. shlibpath_overrides_runpath=yes
  14876. hardcode_into_libs=yes
  14877. ;;
  14878. esac
  14879. ;;
  14880. haiku*)
  14881. version_type=linux # correct to gnu/linux during the next big refactor
  14882. need_lib_prefix=no
  14883. need_version=no
  14884. dynamic_linker="$host_os runtime_loader"
  14885. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14886. soname_spec='$libname$release$shared_ext$major'
  14887. shlibpath_var=LIBRARY_PATH
  14888. shlibpath_overrides_runpath=no
  14889. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14890. hardcode_into_libs=yes
  14891. ;;
  14892. hpux9* | hpux10* | hpux11*)
  14893. # Give a soname corresponding to the major version so that dld.sl refuses to
  14894. # link against other versions.
  14895. version_type=sunos
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. case $host_cpu in
  14899. ia64*)
  14900. shrext_cmds='.so'
  14901. hardcode_into_libs=yes
  14902. dynamic_linker="$host_os dld.so"
  14903. shlibpath_var=LD_LIBRARY_PATH
  14904. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14906. soname_spec='$libname$release$shared_ext$major'
  14907. if test 32 = "$HPUX_IA64_MODE"; then
  14908. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14909. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14910. else
  14911. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14912. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14913. fi
  14914. ;;
  14915. hppa*64*)
  14916. shrext_cmds='.sl'
  14917. hardcode_into_libs=yes
  14918. dynamic_linker="$host_os dld.sl"
  14919. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14920. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14921. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14922. soname_spec='$libname$release$shared_ext$major'
  14923. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14924. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14925. ;;
  14926. *)
  14927. shrext_cmds='.sl'
  14928. dynamic_linker="$host_os dld.sl"
  14929. shlibpath_var=SHLIB_PATH
  14930. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14931. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14932. soname_spec='$libname$release$shared_ext$major'
  14933. ;;
  14934. esac
  14935. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14936. postinstall_cmds='chmod 555 $lib'
  14937. # or fails outright, so override atomically:
  14938. install_override_mode=555
  14939. ;;
  14940. interix[3-9]*)
  14941. version_type=linux # correct to gnu/linux during the next big refactor
  14942. need_lib_prefix=no
  14943. need_version=no
  14944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14945. soname_spec='$libname$release$shared_ext$major'
  14946. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14947. shlibpath_var=LD_LIBRARY_PATH
  14948. shlibpath_overrides_runpath=no
  14949. hardcode_into_libs=yes
  14950. ;;
  14951. irix5* | irix6* | nonstopux*)
  14952. case $host_os in
  14953. nonstopux*) version_type=nonstopux ;;
  14954. *)
  14955. if test yes = "$lt_cv_prog_gnu_ld"; then
  14956. version_type=linux # correct to gnu/linux during the next big refactor
  14957. else
  14958. version_type=irix
  14959. fi ;;
  14960. esac
  14961. need_lib_prefix=no
  14962. need_version=no
  14963. soname_spec='$libname$release$shared_ext$major'
  14964. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14965. case $host_os in
  14966. irix5* | nonstopux*)
  14967. libsuff= shlibsuff=
  14968. ;;
  14969. *)
  14970. case $LD in # libtool.m4 will add one of these switches to LD
  14971. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14972. libsuff= shlibsuff= libmagic=32-bit;;
  14973. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14974. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14975. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14976. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14977. *) libsuff= shlibsuff= libmagic=never-match;;
  14978. esac
  14979. ;;
  14980. esac
  14981. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14982. shlibpath_overrides_runpath=no
  14983. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14984. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14985. hardcode_into_libs=yes
  14986. ;;
  14987. # No shared lib support for Linux oldld, aout, or coff.
  14988. linux*oldld* | linux*aout* | linux*coff*)
  14989. dynamic_linker=no
  14990. ;;
  14991. linux*android*)
  14992. version_type=none # Android doesn't support versioned libraries.
  14993. need_lib_prefix=no
  14994. need_version=no
  14995. library_names_spec='$libname$release$shared_ext'
  14996. soname_spec='$libname$release$shared_ext'
  14997. finish_cmds=
  14998. shlibpath_var=LD_LIBRARY_PATH
  14999. shlibpath_overrides_runpath=yes
  15000. # This implies no fast_install, which is unacceptable.
  15001. # Some rework will be needed to allow for fast_install
  15002. # before this can be enabled.
  15003. hardcode_into_libs=yes
  15004. dynamic_linker='Android linker'
  15005. # Don't embed -rpath directories since the linker doesn't support them.
  15006. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15007. ;;
  15008. # This must be glibc/ELF.
  15009. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15010. version_type=linux # correct to gnu/linux during the next big refactor
  15011. need_lib_prefix=no
  15012. need_version=no
  15013. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15014. soname_spec='$libname$release$shared_ext$major'
  15015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15016. shlibpath_var=LD_LIBRARY_PATH
  15017. shlibpath_overrides_runpath=no
  15018. # Some binutils ld are patched to set DT_RUNPATH
  15019. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15020. then :
  15021. printf %s "(cached) " >&6
  15022. else $as_nop
  15023. lt_cv_shlibpath_overrides_runpath=no
  15024. save_LDFLAGS=$LDFLAGS
  15025. save_libdir=$libdir
  15026. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15027. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15029. /* end confdefs.h. */
  15030. int
  15031. main (void)
  15032. {
  15033. ;
  15034. return 0;
  15035. }
  15036. _ACEOF
  15037. if ac_fn_cxx_try_link "$LINENO"
  15038. then :
  15039. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15040. then :
  15041. lt_cv_shlibpath_overrides_runpath=yes
  15042. fi
  15043. fi
  15044. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15045. conftest$ac_exeext conftest.$ac_ext
  15046. LDFLAGS=$save_LDFLAGS
  15047. libdir=$save_libdir
  15048. fi
  15049. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15050. # This implies no fast_install, which is unacceptable.
  15051. # Some rework will be needed to allow for fast_install
  15052. # before this can be enabled.
  15053. hardcode_into_libs=yes
  15054. # Add ABI-specific directories to the system library path.
  15055. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15056. # Ideally, we could use ldconfig to report *all* directores which are
  15057. # searched for libraries, however this is still not possible. Aside from not
  15058. # being certain /sbin/ldconfig is available, command
  15059. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15060. # even though it is searched at run-time. Try to do the best guess by
  15061. # appending ld.so.conf contents (and includes) to the search path.
  15062. if test -f /etc/ld.so.conf; then
  15063. 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' ' '`
  15064. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15065. fi
  15066. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15067. # powerpc, because MkLinux only supported shared libraries with the
  15068. # GNU dynamic linker. Since this was broken with cross compilers,
  15069. # most powerpc-linux boxes support dynamic linking these days and
  15070. # people can always --disable-shared, the test was removed, and we
  15071. # assume the GNU/Linux dynamic linker is in use.
  15072. dynamic_linker='GNU/Linux ld.so'
  15073. ;;
  15074. netbsd*)
  15075. version_type=sunos
  15076. need_lib_prefix=no
  15077. need_version=no
  15078. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15079. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15080. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15081. dynamic_linker='NetBSD (a.out) ld.so'
  15082. else
  15083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15084. soname_spec='$libname$release$shared_ext$major'
  15085. dynamic_linker='NetBSD ld.elf_so'
  15086. fi
  15087. shlibpath_var=LD_LIBRARY_PATH
  15088. shlibpath_overrides_runpath=yes
  15089. hardcode_into_libs=yes
  15090. ;;
  15091. newsos6)
  15092. version_type=linux # correct to gnu/linux during the next big refactor
  15093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. shlibpath_overrides_runpath=yes
  15096. ;;
  15097. *nto* | *qnx*)
  15098. version_type=qnx
  15099. need_lib_prefix=no
  15100. need_version=no
  15101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15102. soname_spec='$libname$release$shared_ext$major'
  15103. shlibpath_var=LD_LIBRARY_PATH
  15104. shlibpath_overrides_runpath=no
  15105. hardcode_into_libs=yes
  15106. dynamic_linker='ldqnx.so'
  15107. ;;
  15108. openbsd* | bitrig*)
  15109. version_type=sunos
  15110. sys_lib_dlsearch_path_spec=/usr/lib
  15111. need_lib_prefix=no
  15112. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15113. need_version=no
  15114. else
  15115. need_version=yes
  15116. fi
  15117. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15118. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15119. shlibpath_var=LD_LIBRARY_PATH
  15120. shlibpath_overrides_runpath=yes
  15121. ;;
  15122. os2*)
  15123. libname_spec='$name'
  15124. shrext_cmds=.dll
  15125. need_lib_prefix=no
  15126. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15127. # SDL customization: removed versioning support.
  15128. # version_type=windows
  15129. # need_version=no
  15130. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15131. # v=$($ECHO $release$versuffix | tr -d .-);
  15132. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15133. # $ECHO $n$v`$shared_ext'
  15134. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15135. library_names_spec='${libname}_dll.$libext'
  15136. dynamic_linker='OS/2 ld.exe'
  15137. shlibpath_var=BEGINLIBPATH
  15138. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15139. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15140. postinstall_cmds='base_file=`basename \$file`~
  15141. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15142. dldir=$destdir/`dirname \$dlpath`~
  15143. test -d \$dldir || mkdir -p \$dldir~
  15144. $install_prog $dir/$dlname \$dldir/$dlname~
  15145. chmod a+x \$dldir/$dlname~
  15146. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15147. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15148. fi'
  15149. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15150. dlpath=$dir/\$dldll~
  15151. $RM \$dlpath'
  15152. ;;
  15153. osf3* | osf4* | osf5*)
  15154. version_type=osf
  15155. need_lib_prefix=no
  15156. need_version=no
  15157. soname_spec='$libname$release$shared_ext$major'
  15158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15159. shlibpath_var=LD_LIBRARY_PATH
  15160. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15161. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15162. ;;
  15163. rdos*)
  15164. dynamic_linker=no
  15165. ;;
  15166. solaris*)
  15167. version_type=linux # correct to gnu/linux during the next big refactor
  15168. need_lib_prefix=no
  15169. need_version=no
  15170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15171. soname_spec='$libname$release$shared_ext$major'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. shlibpath_overrides_runpath=yes
  15174. hardcode_into_libs=yes
  15175. # ldd complains unless libraries are executable
  15176. postinstall_cmds='chmod +x $lib'
  15177. ;;
  15178. sunos4*)
  15179. version_type=sunos
  15180. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15181. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15182. shlibpath_var=LD_LIBRARY_PATH
  15183. shlibpath_overrides_runpath=yes
  15184. if test yes = "$with_gnu_ld"; then
  15185. need_lib_prefix=no
  15186. fi
  15187. need_version=yes
  15188. ;;
  15189. sysv4 | sysv4.3*)
  15190. version_type=linux # correct to gnu/linux during the next big refactor
  15191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15192. soname_spec='$libname$release$shared_ext$major'
  15193. shlibpath_var=LD_LIBRARY_PATH
  15194. case $host_vendor in
  15195. sni)
  15196. shlibpath_overrides_runpath=no
  15197. need_lib_prefix=no
  15198. runpath_var=LD_RUN_PATH
  15199. ;;
  15200. siemens)
  15201. need_lib_prefix=no
  15202. ;;
  15203. motorola)
  15204. need_lib_prefix=no
  15205. need_version=no
  15206. shlibpath_overrides_runpath=no
  15207. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15208. ;;
  15209. esac
  15210. ;;
  15211. sysv4*MP*)
  15212. if test -d /usr/nec; then
  15213. version_type=linux # correct to gnu/linux during the next big refactor
  15214. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15215. soname_spec='$libname$shared_ext.$major'
  15216. shlibpath_var=LD_LIBRARY_PATH
  15217. fi
  15218. ;;
  15219. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15220. version_type=sco
  15221. need_lib_prefix=no
  15222. need_version=no
  15223. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15224. soname_spec='$libname$release$shared_ext$major'
  15225. shlibpath_var=LD_LIBRARY_PATH
  15226. shlibpath_overrides_runpath=yes
  15227. hardcode_into_libs=yes
  15228. if test yes = "$with_gnu_ld"; then
  15229. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15230. else
  15231. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15232. case $host_os in
  15233. sco3.2v5*)
  15234. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15235. ;;
  15236. esac
  15237. fi
  15238. sys_lib_dlsearch_path_spec='/usr/lib'
  15239. ;;
  15240. tpf*)
  15241. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15242. version_type=linux # correct to gnu/linux during the next big refactor
  15243. need_lib_prefix=no
  15244. need_version=no
  15245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15246. shlibpath_var=LD_LIBRARY_PATH
  15247. shlibpath_overrides_runpath=no
  15248. hardcode_into_libs=yes
  15249. ;;
  15250. uts4*)
  15251. version_type=linux # correct to gnu/linux during the next big refactor
  15252. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15253. soname_spec='$libname$release$shared_ext$major'
  15254. shlibpath_var=LD_LIBRARY_PATH
  15255. ;;
  15256. *)
  15257. dynamic_linker=no
  15258. ;;
  15259. esac
  15260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15261. printf "%s\n" "$dynamic_linker" >&6; }
  15262. test no = "$dynamic_linker" && can_build_shared=no
  15263. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15264. if test yes = "$GCC"; then
  15265. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15266. fi
  15267. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15268. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15269. fi
  15270. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15271. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15272. fi
  15273. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15274. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15275. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15276. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15277. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15278. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15280. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15281. hardcode_action_CXX=
  15282. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15283. test -n "$runpath_var_CXX" ||
  15284. test yes = "$hardcode_automatic_CXX"; then
  15285. # We can hardcode non-existent directories.
  15286. if test no != "$hardcode_direct_CXX" &&
  15287. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15288. # have to relink, otherwise we might link with an installed library
  15289. # when we should be linking with a yet-to-be-installed one
  15290. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15291. test no != "$hardcode_minus_L_CXX"; then
  15292. # Linking always hardcodes the temporary library directory.
  15293. hardcode_action_CXX=relink
  15294. else
  15295. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15296. hardcode_action_CXX=immediate
  15297. fi
  15298. else
  15299. # We cannot hardcode anything, or else we can only hardcode existing
  15300. # directories.
  15301. hardcode_action_CXX=unsupported
  15302. fi
  15303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15304. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15305. if test relink = "$hardcode_action_CXX" ||
  15306. test yes = "$inherit_rpath_CXX"; then
  15307. # Fast installation is not supported
  15308. enable_fast_install=no
  15309. elif test yes = "$shlibpath_overrides_runpath" ||
  15310. test no = "$enable_shared"; then
  15311. # Fast installation is not necessary
  15312. enable_fast_install=needless
  15313. fi
  15314. fi # test -n "$compiler"
  15315. CC=$lt_save_CC
  15316. CFLAGS=$lt_save_CFLAGS
  15317. LDCXX=$LD
  15318. LD=$lt_save_LD
  15319. GCC=$lt_save_GCC
  15320. with_gnu_ld=$lt_save_with_gnu_ld
  15321. lt_cv_path_LDCXX=$lt_cv_path_LD
  15322. lt_cv_path_LD=$lt_save_path_LD
  15323. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15324. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15325. fi # test yes != "$_lt_caught_CXX_error"
  15326. ac_ext=c
  15327. ac_cpp='$CPP $CPPFLAGS'
  15328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15332. printf %s "checking for egrep... " >&6; }
  15333. if test ${ac_cv_path_EGREP+y}
  15334. then :
  15335. printf %s "(cached) " >&6
  15336. else $as_nop
  15337. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15338. then ac_cv_path_EGREP="$GREP -E"
  15339. else
  15340. if test -z "$EGREP"; then
  15341. ac_path_EGREP_found=false
  15342. # Loop through the user's path and test for each of PROGNAME-LIST
  15343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15344. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15345. do
  15346. IFS=$as_save_IFS
  15347. case $as_dir in #(((
  15348. '') as_dir=./ ;;
  15349. */) ;;
  15350. *) as_dir=$as_dir/ ;;
  15351. esac
  15352. for ac_prog in egrep
  15353. do
  15354. for ac_exec_ext in '' $ac_executable_extensions; do
  15355. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15356. as_fn_executable_p "$ac_path_EGREP" || continue
  15357. # Check for GNU ac_path_EGREP and select it if it is found.
  15358. # Check for GNU $ac_path_EGREP
  15359. case `"$ac_path_EGREP" --version 2>&1` in
  15360. *GNU*)
  15361. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15362. *)
  15363. ac_count=0
  15364. printf %s 0123456789 >"conftest.in"
  15365. while :
  15366. do
  15367. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15368. mv "conftest.tmp" "conftest.in"
  15369. cp "conftest.in" "conftest.nl"
  15370. printf "%s\n" 'EGREP' >> "conftest.nl"
  15371. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15372. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15373. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15374. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15375. # Best one so far, save it but keep looking for a better one
  15376. ac_cv_path_EGREP="$ac_path_EGREP"
  15377. ac_path_EGREP_max=$ac_count
  15378. fi
  15379. # 10*(2^10) chars as input seems more than enough
  15380. test $ac_count -gt 10 && break
  15381. done
  15382. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15383. esac
  15384. $ac_path_EGREP_found && break 3
  15385. done
  15386. done
  15387. done
  15388. IFS=$as_save_IFS
  15389. if test -z "$ac_cv_path_EGREP"; then
  15390. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15391. fi
  15392. else
  15393. ac_cv_path_EGREP=$EGREP
  15394. fi
  15395. fi
  15396. fi
  15397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15398. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15399. EGREP="$ac_cv_path_EGREP"
  15400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15401. printf %s "checking for fgrep... " >&6; }
  15402. if test ${ac_cv_path_FGREP+y}
  15403. then :
  15404. printf %s "(cached) " >&6
  15405. else $as_nop
  15406. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15407. then ac_cv_path_FGREP="$GREP -F"
  15408. else
  15409. if test -z "$FGREP"; then
  15410. ac_path_FGREP_found=false
  15411. # Loop through the user's path and test for each of PROGNAME-LIST
  15412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15413. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15414. do
  15415. IFS=$as_save_IFS
  15416. case $as_dir in #(((
  15417. '') as_dir=./ ;;
  15418. */) ;;
  15419. *) as_dir=$as_dir/ ;;
  15420. esac
  15421. for ac_prog in fgrep
  15422. do
  15423. for ac_exec_ext in '' $ac_executable_extensions; do
  15424. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15425. as_fn_executable_p "$ac_path_FGREP" || continue
  15426. # Check for GNU ac_path_FGREP and select it if it is found.
  15427. # Check for GNU $ac_path_FGREP
  15428. case `"$ac_path_FGREP" --version 2>&1` in
  15429. *GNU*)
  15430. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15431. *)
  15432. ac_count=0
  15433. printf %s 0123456789 >"conftest.in"
  15434. while :
  15435. do
  15436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15437. mv "conftest.tmp" "conftest.in"
  15438. cp "conftest.in" "conftest.nl"
  15439. printf "%s\n" 'FGREP' >> "conftest.nl"
  15440. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15442. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15443. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15444. # Best one so far, save it but keep looking for a better one
  15445. ac_cv_path_FGREP="$ac_path_FGREP"
  15446. ac_path_FGREP_max=$ac_count
  15447. fi
  15448. # 10*(2^10) chars as input seems more than enough
  15449. test $ac_count -gt 10 && break
  15450. done
  15451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15452. esac
  15453. $ac_path_FGREP_found && break 3
  15454. done
  15455. done
  15456. done
  15457. IFS=$as_save_IFS
  15458. if test -z "$ac_cv_path_FGREP"; then
  15459. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15460. fi
  15461. else
  15462. ac_cv_path_FGREP=$FGREP
  15463. fi
  15464. fi
  15465. fi
  15466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15467. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15468. FGREP="$ac_cv_path_FGREP"
  15469. # Find a good install program. We prefer a C program (faster),
  15470. # so one script is as good as another. But avoid the broken or
  15471. # incompatible versions:
  15472. # SysV /etc/install, /usr/sbin/install
  15473. # SunOS /usr/etc/install
  15474. # IRIX /sbin/install
  15475. # AIX /bin/install
  15476. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15477. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15478. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15479. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15480. # OS/2's system install, which has a completely different semantic
  15481. # ./install, which can be erroneously created by make from ./install.sh.
  15482. # Reject install programs that cannot install multiple files.
  15483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15484. printf %s "checking for a BSD-compatible install... " >&6; }
  15485. if test -z "$INSTALL"; then
  15486. if test ${ac_cv_path_install+y}
  15487. then :
  15488. printf %s "(cached) " >&6
  15489. else $as_nop
  15490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15491. for as_dir in $PATH
  15492. do
  15493. IFS=$as_save_IFS
  15494. case $as_dir in #(((
  15495. '') as_dir=./ ;;
  15496. */) ;;
  15497. *) as_dir=$as_dir/ ;;
  15498. esac
  15499. # Account for fact that we put trailing slashes in our PATH walk.
  15500. case $as_dir in #((
  15501. ./ | /[cC]/* | \
  15502. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15503. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15504. /usr/ucb/* ) ;;
  15505. *)
  15506. # OSF1 and SCO ODT 3.0 have their own names for install.
  15507. # Don't use installbsd from OSF since it installs stuff as root
  15508. # by default.
  15509. for ac_prog in ginstall scoinst install; do
  15510. for ac_exec_ext in '' $ac_executable_extensions; do
  15511. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15512. if test $ac_prog = install &&
  15513. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15514. # AIX install. It has an incompatible calling convention.
  15515. :
  15516. elif test $ac_prog = install &&
  15517. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15518. # program-specific install script used by HP pwplus--don't use.
  15519. :
  15520. else
  15521. rm -rf conftest.one conftest.two conftest.dir
  15522. echo one > conftest.one
  15523. echo two > conftest.two
  15524. mkdir conftest.dir
  15525. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15526. test -s conftest.one && test -s conftest.two &&
  15527. test -s conftest.dir/conftest.one &&
  15528. test -s conftest.dir/conftest.two
  15529. then
  15530. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15531. break 3
  15532. fi
  15533. fi
  15534. fi
  15535. done
  15536. done
  15537. ;;
  15538. esac
  15539. done
  15540. IFS=$as_save_IFS
  15541. rm -rf conftest.one conftest.two conftest.dir
  15542. fi
  15543. if test ${ac_cv_path_install+y}; then
  15544. INSTALL=$ac_cv_path_install
  15545. else
  15546. # As a last resort, use the slow shell script. Don't cache a
  15547. # value for INSTALL within a source directory, because that will
  15548. # break other packages using the cache if that directory is
  15549. # removed, or if the value is a relative name.
  15550. INSTALL=$ac_install_sh
  15551. fi
  15552. fi
  15553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15554. printf "%s\n" "$INSTALL" >&6; }
  15555. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15556. # It thinks the first close brace ends the variable substitution.
  15557. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15558. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15559. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15561. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15562. set x ${MAKE-make}
  15563. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15564. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15565. then :
  15566. printf %s "(cached) " >&6
  15567. else $as_nop
  15568. cat >conftest.make <<\_ACEOF
  15569. SHELL = /bin/sh
  15570. all:
  15571. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15572. _ACEOF
  15573. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15574. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15575. *@@@%%%=?*=@@@%%%*)
  15576. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15577. *)
  15578. eval ac_cv_prog_make_${ac_make}_set=no;;
  15579. esac
  15580. rm -f conftest.make
  15581. fi
  15582. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15584. printf "%s\n" "yes" >&6; }
  15585. SET_MAKE=
  15586. else
  15587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15588. printf "%s\n" "no" >&6; }
  15589. SET_MAKE="MAKE=${MAKE-make}"
  15590. fi
  15591. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15592. if test -n "$ac_tool_prefix"; then
  15593. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15594. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15596. printf %s "checking for $ac_word... " >&6; }
  15597. if test ${ac_cv_path_PKG_CONFIG+y}
  15598. then :
  15599. printf %s "(cached) " >&6
  15600. else $as_nop
  15601. case $PKG_CONFIG in
  15602. [\\/]* | ?:[\\/]*)
  15603. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15604. ;;
  15605. *)
  15606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15607. for as_dir in $PATH
  15608. do
  15609. IFS=$as_save_IFS
  15610. case $as_dir in #(((
  15611. '') as_dir=./ ;;
  15612. */) ;;
  15613. *) as_dir=$as_dir/ ;;
  15614. esac
  15615. for ac_exec_ext in '' $ac_executable_extensions; do
  15616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15617. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15619. break 2
  15620. fi
  15621. done
  15622. done
  15623. IFS=$as_save_IFS
  15624. ;;
  15625. esac
  15626. fi
  15627. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15628. if test -n "$PKG_CONFIG"; then
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15630. printf "%s\n" "$PKG_CONFIG" >&6; }
  15631. else
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15633. printf "%s\n" "no" >&6; }
  15634. fi
  15635. fi
  15636. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15637. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15638. # Extract the first word of "pkg-config", so it can be a program name with args.
  15639. set dummy pkg-config; ac_word=$2
  15640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15641. printf %s "checking for $ac_word... " >&6; }
  15642. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15643. then :
  15644. printf %s "(cached) " >&6
  15645. else $as_nop
  15646. case $ac_pt_PKG_CONFIG in
  15647. [\\/]* | ?:[\\/]*)
  15648. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15649. ;;
  15650. *)
  15651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15652. for as_dir in $PATH
  15653. do
  15654. IFS=$as_save_IFS
  15655. case $as_dir in #(((
  15656. '') as_dir=./ ;;
  15657. */) ;;
  15658. *) as_dir=$as_dir/ ;;
  15659. esac
  15660. for ac_exec_ext in '' $ac_executable_extensions; do
  15661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15662. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15664. break 2
  15665. fi
  15666. done
  15667. done
  15668. IFS=$as_save_IFS
  15669. ;;
  15670. esac
  15671. fi
  15672. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15673. if test -n "$ac_pt_PKG_CONFIG"; then
  15674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15675. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15676. else
  15677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15678. printf "%s\n" "no" >&6; }
  15679. fi
  15680. if test "x$ac_pt_PKG_CONFIG" = x; then
  15681. PKG_CONFIG=""
  15682. else
  15683. case $cross_compiling:$ac_tool_warned in
  15684. yes:)
  15685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15686. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15687. ac_tool_warned=yes ;;
  15688. esac
  15689. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15690. fi
  15691. else
  15692. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15693. fi
  15694. fi
  15695. if test -n "$PKG_CONFIG"; then
  15696. _pkg_min_version=0.9.0
  15697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15698. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15699. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15701. printf "%s\n" "yes" >&6; }
  15702. else
  15703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15704. printf "%s\n" "no" >&6; }
  15705. PKG_CONFIG=""
  15706. fi
  15707. fi
  15708. if test -z "$AWK" ; then
  15709. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15710. fi
  15711. for ac_prog in gsort sort
  15712. do
  15713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15714. set dummy $ac_prog; ac_word=$2
  15715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15716. printf %s "checking for $ac_word... " >&6; }
  15717. if test ${ac_cv_prog_SORT+y}
  15718. then :
  15719. printf %s "(cached) " >&6
  15720. else $as_nop
  15721. if test -n "$SORT"; then
  15722. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15723. else
  15724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15725. for as_dir in $PATH
  15726. do
  15727. IFS=$as_save_IFS
  15728. case $as_dir in #(((
  15729. '') as_dir=./ ;;
  15730. */) ;;
  15731. *) as_dir=$as_dir/ ;;
  15732. esac
  15733. for ac_exec_ext in '' $ac_executable_extensions; do
  15734. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15735. ac_cv_prog_SORT="$ac_prog"
  15736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15737. break 2
  15738. fi
  15739. done
  15740. done
  15741. IFS=$as_save_IFS
  15742. fi
  15743. fi
  15744. SORT=$ac_cv_prog_SORT
  15745. if test -n "$SORT"; then
  15746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15747. printf "%s\n" "$SORT" >&6; }
  15748. else
  15749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15750. printf "%s\n" "no" >&6; }
  15751. fi
  15752. test -n "$SORT" && break
  15753. done
  15754. test -n "$SORT" || SORT="false"
  15755. if ! "$SORT" -V </dev/null >/dev/null
  15756. then :
  15757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15758. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15759. fi
  15760. # Check whether --enable-largefile was given.
  15761. if test ${enable_largefile+y}
  15762. then :
  15763. enableval=$enable_largefile;
  15764. fi
  15765. if test "$enable_largefile" != no; then
  15766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15767. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15768. if test ${ac_cv_sys_largefile_CC+y}
  15769. then :
  15770. printf %s "(cached) " >&6
  15771. else $as_nop
  15772. ac_cv_sys_largefile_CC=no
  15773. if test "$GCC" != yes; then
  15774. ac_save_CC=$CC
  15775. while :; do
  15776. # IRIX 6.2 and later do not support large files by default,
  15777. # so use the C compiler's -n32 option if that helps.
  15778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15779. /* end confdefs.h. */
  15780. #include <sys/types.h>
  15781. /* Check that off_t can represent 2**63 - 1 correctly.
  15782. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15783. since some C++ compilers masquerading as C compilers
  15784. incorrectly reject 9223372036854775807. */
  15785. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15786. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15787. && LARGE_OFF_T % 2147483647 == 1)
  15788. ? 1 : -1];
  15789. int
  15790. main (void)
  15791. {
  15792. ;
  15793. return 0;
  15794. }
  15795. _ACEOF
  15796. if ac_fn_c_try_compile "$LINENO"
  15797. then :
  15798. break
  15799. fi
  15800. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15801. CC="$CC -n32"
  15802. if ac_fn_c_try_compile "$LINENO"
  15803. then :
  15804. ac_cv_sys_largefile_CC=' -n32'; break
  15805. fi
  15806. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15807. break
  15808. done
  15809. CC=$ac_save_CC
  15810. rm -f conftest.$ac_ext
  15811. fi
  15812. fi
  15813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15814. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15815. if test "$ac_cv_sys_largefile_CC" != no; then
  15816. CC=$CC$ac_cv_sys_largefile_CC
  15817. fi
  15818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15819. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15820. if test ${ac_cv_sys_file_offset_bits+y}
  15821. then :
  15822. printf %s "(cached) " >&6
  15823. else $as_nop
  15824. while :; do
  15825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15826. /* end confdefs.h. */
  15827. #include <sys/types.h>
  15828. /* Check that off_t can represent 2**63 - 1 correctly.
  15829. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15830. since some C++ compilers masquerading as C compilers
  15831. incorrectly reject 9223372036854775807. */
  15832. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15833. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15834. && LARGE_OFF_T % 2147483647 == 1)
  15835. ? 1 : -1];
  15836. int
  15837. main (void)
  15838. {
  15839. ;
  15840. return 0;
  15841. }
  15842. _ACEOF
  15843. if ac_fn_c_try_compile "$LINENO"
  15844. then :
  15845. ac_cv_sys_file_offset_bits=no; break
  15846. fi
  15847. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15849. /* end confdefs.h. */
  15850. #define _FILE_OFFSET_BITS 64
  15851. #include <sys/types.h>
  15852. /* Check that off_t can represent 2**63 - 1 correctly.
  15853. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15854. since some C++ compilers masquerading as C compilers
  15855. incorrectly reject 9223372036854775807. */
  15856. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15857. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15858. && LARGE_OFF_T % 2147483647 == 1)
  15859. ? 1 : -1];
  15860. int
  15861. main (void)
  15862. {
  15863. ;
  15864. return 0;
  15865. }
  15866. _ACEOF
  15867. if ac_fn_c_try_compile "$LINENO"
  15868. then :
  15869. ac_cv_sys_file_offset_bits=64; break
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15872. ac_cv_sys_file_offset_bits=unknown
  15873. break
  15874. done
  15875. fi
  15876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15877. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15878. case $ac_cv_sys_file_offset_bits in #(
  15879. no | unknown) ;;
  15880. *)
  15881. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15882. ;;
  15883. esac
  15884. rm -rf conftest*
  15885. if test $ac_cv_sys_file_offset_bits = unknown; then
  15886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15887. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15888. if test ${ac_cv_sys_large_files+y}
  15889. then :
  15890. printf %s "(cached) " >&6
  15891. else $as_nop
  15892. while :; do
  15893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. /* end confdefs.h. */
  15895. #include <sys/types.h>
  15896. /* Check that off_t can represent 2**63 - 1 correctly.
  15897. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15898. since some C++ compilers masquerading as C compilers
  15899. incorrectly reject 9223372036854775807. */
  15900. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15901. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15902. && LARGE_OFF_T % 2147483647 == 1)
  15903. ? 1 : -1];
  15904. int
  15905. main (void)
  15906. {
  15907. ;
  15908. return 0;
  15909. }
  15910. _ACEOF
  15911. if ac_fn_c_try_compile "$LINENO"
  15912. then :
  15913. ac_cv_sys_large_files=no; break
  15914. fi
  15915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15917. /* end confdefs.h. */
  15918. #define _LARGE_FILES 1
  15919. #include <sys/types.h>
  15920. /* Check that off_t can represent 2**63 - 1 correctly.
  15921. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15922. since some C++ compilers masquerading as C compilers
  15923. incorrectly reject 9223372036854775807. */
  15924. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15925. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15926. && LARGE_OFF_T % 2147483647 == 1)
  15927. ? 1 : -1];
  15928. int
  15929. main (void)
  15930. {
  15931. ;
  15932. return 0;
  15933. }
  15934. _ACEOF
  15935. if ac_fn_c_try_compile "$LINENO"
  15936. then :
  15937. ac_cv_sys_large_files=1; break
  15938. fi
  15939. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15940. ac_cv_sys_large_files=unknown
  15941. break
  15942. done
  15943. fi
  15944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15945. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15946. case $ac_cv_sys_large_files in #(
  15947. no | unknown) ;;
  15948. *)
  15949. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15950. ;;
  15951. esac
  15952. rm -rf conftest*
  15953. fi
  15954. fi
  15955. case "$host" in
  15956. *-*-mingw*)
  15957. # Except on msys, where make can't handle full pathnames (bug 1972)
  15958. ;;
  15959. *)
  15960. srcdir=`cd $srcdir && pwd`
  15961. ;;
  15962. esac
  15963. INCLUDE="-I$srcdir/include"
  15964. case "$host" in
  15965. *-*-nto-qnx*)
  15966. ;;
  15967. *)
  15968. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15969. ;;
  15970. esac
  15971. case "$host" in
  15972. *-*-haiku*)
  15973. LINKER='$(CXX)'
  15974. LIBTOOLLINKERTAG='CXX'
  15975. ;;
  15976. *)
  15977. LINKER='$(CC)'
  15978. LIBTOOLLINKERTAG='CC'
  15979. ;;
  15980. esac
  15981. if test x$srcdir != x.; then
  15982. INCLUDE="-Iinclude $INCLUDE"
  15983. elif test -d .git; then
  15984. as_fn_error $? "
  15985. *** When building from a git clone you should configure and build in a
  15986. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15987. " "$LINENO" 5
  15988. fi
  15989. BASE_CFLAGS=""
  15990. BASE_LDFLAGS=""
  15991. case "$host" in
  15992. *-*-cygwin*)
  15993. # We build SDL on cygwin without the UNIX emulation layer
  15994. save_CFLAGS="$CFLAGS"
  15995. have_no_cygwin=no
  15996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15997. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15998. CFLAGS="$save_CFLAGS -mno-cygwin"
  15999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16000. /* end confdefs.h. */
  16001. int
  16002. main (void)
  16003. {
  16004. ;
  16005. return 0;
  16006. }
  16007. _ACEOF
  16008. if ac_fn_c_try_compile "$LINENO"
  16009. then :
  16010. have_no_cygwin=yes
  16011. fi
  16012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16014. printf "%s\n" "$have_no_cygwin" >&6; }
  16015. CFLAGS="$save_CFLAGS"
  16016. if test x$have_no_cygwin = xyes; then
  16017. BASE_CFLAGS="-mno-cygwin"
  16018. BASE_LDFLAGS="-mno-cygwin"
  16019. fi
  16020. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16021. ;;
  16022. esac
  16023. # Uncomment the following line if you want to force SDL and applications
  16024. # built with it to be compiled for a particular architecture.
  16025. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16026. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16027. # The default optimization for SDL is -O3 (Bug #31)
  16028. if test "x$orig_CFLAGS" = x; then
  16029. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16030. fi
  16031. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16032. BUILD_LDFLAGS="$LDFLAGS"
  16033. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16034. ## These are common directories to find software packages
  16035. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16036. # if test -d $path/include; then
  16037. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16038. # fi
  16039. # if test -d $path/lib; then
  16040. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16041. # fi
  16042. #done
  16043. SDL_CFLAGS="$BASE_CFLAGS"
  16044. SDL_LIBS="-lSDL2"
  16045. if test "x$BASE_LDFLAGS" != x; then
  16046. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16047. fi
  16048. if test "x$EXTRA_CFLAGS" != x; then
  16049. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16050. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16051. fi
  16052. if test "x$EXTRA_LDFLAGS" != x; then
  16053. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16054. fi
  16055. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16056. find_lib()
  16057. {
  16058. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16059. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16060. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16061. if test "$cross_compiling" = yes; then
  16062. host_lib_path=""
  16063. else
  16064. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16065. fi
  16066. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16067. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  16068. if test x$lib != x; then
  16069. echo $lib
  16070. return
  16071. fi
  16072. done
  16073. }
  16074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16075. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16076. if test ${ac_cv_c_const+y}
  16077. then :
  16078. printf %s "(cached) " >&6
  16079. else $as_nop
  16080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16081. /* end confdefs.h. */
  16082. int
  16083. main (void)
  16084. {
  16085. #ifndef __cplusplus
  16086. /* Ultrix mips cc rejects this sort of thing. */
  16087. typedef int charset[2];
  16088. const charset cs = { 0, 0 };
  16089. /* SunOS 4.1.1 cc rejects this. */
  16090. char const *const *pcpcc;
  16091. char **ppc;
  16092. /* NEC SVR4.0.2 mips cc rejects this. */
  16093. struct point {int x, y;};
  16094. static struct point const zero = {0,0};
  16095. /* IBM XL C 1.02.0.0 rejects this.
  16096. It does not let you subtract one const X* pointer from another in
  16097. an arm of an if-expression whose if-part is not a constant
  16098. expression */
  16099. const char *g = "string";
  16100. pcpcc = &g + (g ? g-g : 0);
  16101. /* HPUX 7.0 cc rejects these. */
  16102. ++pcpcc;
  16103. ppc = (char**) pcpcc;
  16104. pcpcc = (char const *const *) ppc;
  16105. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16106. char tx;
  16107. char *t = &tx;
  16108. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16109. *t++ = 0;
  16110. if (s) return 0;
  16111. }
  16112. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16113. int x[] = {25, 17};
  16114. const int *foo = &x[0];
  16115. ++foo;
  16116. }
  16117. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16118. typedef const int *iptr;
  16119. iptr p = 0;
  16120. ++p;
  16121. }
  16122. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16123. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16124. struct s { int j; const int *ap[3]; } bx;
  16125. struct s *b = &bx; b->j = 5;
  16126. }
  16127. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16128. const int foo = 10;
  16129. if (!foo) return 0;
  16130. }
  16131. return !cs[0] && !zero.x;
  16132. #endif
  16133. ;
  16134. return 0;
  16135. }
  16136. _ACEOF
  16137. if ac_fn_c_try_compile "$LINENO"
  16138. then :
  16139. ac_cv_c_const=yes
  16140. else $as_nop
  16141. ac_cv_c_const=no
  16142. fi
  16143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16144. fi
  16145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16146. printf "%s\n" "$ac_cv_c_const" >&6; }
  16147. if test $ac_cv_c_const = no; then
  16148. printf "%s\n" "#define const /**/" >>confdefs.h
  16149. fi
  16150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16151. printf %s "checking for inline... " >&6; }
  16152. if test ${ac_cv_c_inline+y}
  16153. then :
  16154. printf %s "(cached) " >&6
  16155. else $as_nop
  16156. ac_cv_c_inline=no
  16157. for ac_kw in inline __inline__ __inline; do
  16158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16159. /* end confdefs.h. */
  16160. #ifndef __cplusplus
  16161. typedef int foo_t;
  16162. static $ac_kw foo_t static_foo (void) {return 0; }
  16163. $ac_kw foo_t foo (void) {return 0; }
  16164. #endif
  16165. _ACEOF
  16166. if ac_fn_c_try_compile "$LINENO"
  16167. then :
  16168. ac_cv_c_inline=$ac_kw
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16171. test "$ac_cv_c_inline" != no && break
  16172. done
  16173. fi
  16174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16175. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16176. case $ac_cv_c_inline in
  16177. inline | yes) ;;
  16178. *)
  16179. case $ac_cv_c_inline in
  16180. no) ac_val=;;
  16181. *) ac_val=$ac_cv_c_inline;;
  16182. esac
  16183. cat >>confdefs.h <<_ACEOF
  16184. #ifndef __cplusplus
  16185. #define inline $ac_val
  16186. #endif
  16187. _ACEOF
  16188. ;;
  16189. esac
  16190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16191. printf %s "checking for working volatile... " >&6; }
  16192. if test ${ac_cv_c_volatile+y}
  16193. then :
  16194. printf %s "(cached) " >&6
  16195. else $as_nop
  16196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16197. /* end confdefs.h. */
  16198. int
  16199. main (void)
  16200. {
  16201. volatile int x;
  16202. int * volatile y = (int *) 0;
  16203. return !x && !y;
  16204. ;
  16205. return 0;
  16206. }
  16207. _ACEOF
  16208. if ac_fn_c_try_compile "$LINENO"
  16209. then :
  16210. ac_cv_c_volatile=yes
  16211. else $as_nop
  16212. ac_cv_c_volatile=no
  16213. fi
  16214. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16215. fi
  16216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16217. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16218. if test $ac_cv_c_volatile = no; then
  16219. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16220. fi
  16221. # Check whether --enable-assertions was given.
  16222. if test ${enable_assertions+y}
  16223. then :
  16224. enableval=$enable_assertions;
  16225. else $as_nop
  16226. enable_assertions=auto
  16227. fi
  16228. case "$enable_assertions" in
  16229. auto) # Use optimization settings to determine assertion level
  16230. ;;
  16231. disabled)
  16232. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16233. ;;
  16234. release)
  16235. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16236. ;;
  16237. enabled)
  16238. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16239. ;;
  16240. paranoid)
  16241. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16242. ;;
  16243. *)
  16244. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16245. ;;
  16246. esac
  16247. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16248. # Check whether --enable-dependency-tracking was given.
  16249. if test ${enable_dependency_tracking+y}
  16250. then :
  16251. enableval=$enable_dependency_tracking;
  16252. else $as_nop
  16253. enable_dependency_tracking=yes
  16254. fi
  16255. if test x$enable_dependency_tracking = xyes; then
  16256. have_gcc_mmd_mt=no
  16257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16258. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16260. /* end confdefs.h. */
  16261. #if !defined(__GNUC__) || __GNUC__ < 3
  16262. #error Dependency tracking requires GCC 3.0 or newer
  16263. #endif
  16264. int
  16265. main (void)
  16266. {
  16267. ;
  16268. return 0;
  16269. }
  16270. _ACEOF
  16271. if ac_fn_c_try_compile "$LINENO"
  16272. then :
  16273. have_gcc_mmd_mt=yes
  16274. fi
  16275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16277. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16278. if test x$have_gcc_mmd_mt = xyes; then
  16279. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16280. fi
  16281. fi
  16282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16283. printf %s "checking for linker option --no-undefined... " >&6; }
  16284. have_no_undefined=no
  16285. case "$host" in
  16286. *-*-openbsd*)
  16287. ;;
  16288. *)
  16289. save_LDFLAGS="$LDFLAGS"
  16290. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16292. /* end confdefs.h. */
  16293. int
  16294. main (void)
  16295. {
  16296. ;
  16297. return 0;
  16298. }
  16299. _ACEOF
  16300. if ac_fn_c_try_link "$LINENO"
  16301. then :
  16302. have_no_undefined=yes
  16303. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16304. fi
  16305. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16306. conftest$ac_exeext conftest.$ac_ext
  16307. LDFLAGS="$save_LDFLAGS"
  16308. ;;
  16309. esac
  16310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16311. printf "%s\n" "$have_no_undefined" >&6; }
  16312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16313. printf %s "checking for linker option --dynamicbase... " >&6; }
  16314. have_dynamicbase=no
  16315. case "$host" in
  16316. *)
  16317. save_LDFLAGS="$LDFLAGS"
  16318. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16320. /* end confdefs.h. */
  16321. int
  16322. main (void)
  16323. {
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_link "$LINENO"
  16329. then :
  16330. have_dynamicbase=yes
  16331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16332. fi
  16333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16334. conftest$ac_exeext conftest.$ac_ext
  16335. LDFLAGS="$save_LDFLAGS"
  16336. ;;
  16337. esac
  16338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16339. printf "%s\n" "$have_dynamicbase" >&6; }
  16340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16341. printf %s "checking for linker option --nxcompat... " >&6; }
  16342. have_nxcompat=no
  16343. case "$host" in
  16344. *)
  16345. save_LDFLAGS="$LDFLAGS"
  16346. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16348. /* end confdefs.h. */
  16349. int
  16350. main (void)
  16351. {
  16352. ;
  16353. return 0;
  16354. }
  16355. _ACEOF
  16356. if ac_fn_c_try_link "$LINENO"
  16357. then :
  16358. have_nxcompat=yes
  16359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16360. fi
  16361. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16362. conftest$ac_exeext conftest.$ac_ext
  16363. LDFLAGS="$save_LDFLAGS"
  16364. ;;
  16365. esac
  16366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16367. printf "%s\n" "$have_nxcompat" >&6; }
  16368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16369. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16370. have_high_entropy_va=no
  16371. case "$host" in
  16372. *)
  16373. save_LDFLAGS="$LDFLAGS"
  16374. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16376. /* end confdefs.h. */
  16377. int
  16378. main (void)
  16379. {
  16380. ;
  16381. return 0;
  16382. }
  16383. _ACEOF
  16384. if ac_fn_c_try_link "$LINENO"
  16385. then :
  16386. have_high_entropy_va=yes
  16387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16388. fi
  16389. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16390. conftest$ac_exeext conftest.$ac_ext
  16391. LDFLAGS="$save_LDFLAGS"
  16392. ;;
  16393. esac
  16394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16395. printf "%s\n" "$have_high_entropy_va" >&6; }
  16396. # Check whether --enable-libc was given.
  16397. if test ${enable_libc+y}
  16398. then :
  16399. enableval=$enable_libc;
  16400. else $as_nop
  16401. enable_libc=yes
  16402. fi
  16403. enable_system_iconv_default=yes
  16404. case "$host" in
  16405. *-*-cygwin*|*-*-mingw*)
  16406. enable_system_iconv_default=no
  16407. ;;
  16408. esac
  16409. # Check whether --enable-system-iconv was given.
  16410. if test ${enable_system_iconv+y}
  16411. then :
  16412. enableval=$enable_system_iconv;
  16413. else $as_nop
  16414. enable_system_iconv=$enable_system_iconv_default
  16415. fi
  16416. # Check whether --enable-libiconv was given.
  16417. if test ${enable_libiconv+y}
  16418. then :
  16419. enableval=$enable_libiconv;
  16420. else $as_nop
  16421. enable_libiconv=no
  16422. fi
  16423. if test x$enable_libc = xyes; then
  16424. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16425. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16426. if test "x$ac_cv_header_sys_types_h" = xyes
  16427. then :
  16428. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16429. fi
  16430. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16431. if test "x$ac_cv_header_stdio_h" = xyes
  16432. then :
  16433. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16434. fi
  16435. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16436. if test "x$ac_cv_header_stdlib_h" = xyes
  16437. then :
  16438. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16439. fi
  16440. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16441. if test "x$ac_cv_header_stddef_h" = xyes
  16442. then :
  16443. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16444. fi
  16445. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16446. if test "x$ac_cv_header_stdarg_h" = xyes
  16447. then :
  16448. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16449. fi
  16450. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16451. if test "x$ac_cv_header_malloc_h" = xyes
  16452. then :
  16453. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16454. fi
  16455. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16456. if test "x$ac_cv_header_memory_h" = xyes
  16457. then :
  16458. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16459. fi
  16460. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16461. if test "x$ac_cv_header_string_h" = xyes
  16462. then :
  16463. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16464. fi
  16465. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16466. if test "x$ac_cv_header_strings_h" = xyes
  16467. then :
  16468. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16469. fi
  16470. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16471. if test "x$ac_cv_header_wchar_h" = xyes
  16472. then :
  16473. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16474. fi
  16475. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16476. if test "x$ac_cv_header_inttypes_h" = xyes
  16477. then :
  16478. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16479. fi
  16480. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16481. if test "x$ac_cv_header_stdint_h" = xyes
  16482. then :
  16483. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16484. fi
  16485. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16486. if test "x$ac_cv_header_limits_h" = xyes
  16487. then :
  16488. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16489. fi
  16490. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16491. if test "x$ac_cv_header_ctype_h" = xyes
  16492. then :
  16493. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16494. fi
  16495. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16496. if test "x$ac_cv_header_math_h" = xyes
  16497. then :
  16498. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16499. fi
  16500. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16501. if test "x$ac_cv_header_float_h" = xyes
  16502. then :
  16503. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16504. fi
  16505. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16506. if test "x$ac_cv_header_iconv_h" = xyes
  16507. then :
  16508. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16509. fi
  16510. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16511. if test "x$ac_cv_header_signal_h" = xyes
  16512. then :
  16513. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16514. fi
  16515. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16516. if test "x$ac_cv_type_size_t" = xyes
  16517. then :
  16518. else $as_nop
  16519. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16520. fi
  16521. ac_ext=c
  16522. ac_cpp='$CPP $CPPFLAGS'
  16523. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16524. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16525. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16527. printf %s "checking how to run the C preprocessor... " >&6; }
  16528. # On Suns, sometimes $CPP names a directory.
  16529. if test -n "$CPP" && test -d "$CPP"; then
  16530. CPP=
  16531. fi
  16532. if test -z "$CPP"; then
  16533. if test ${ac_cv_prog_CPP+y}
  16534. then :
  16535. printf %s "(cached) " >&6
  16536. else $as_nop
  16537. # Double quotes because $CC needs to be expanded
  16538. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16539. do
  16540. ac_preproc_ok=false
  16541. for ac_c_preproc_warn_flag in '' yes
  16542. do
  16543. # Use a header file that comes with gcc, so configuring glibc
  16544. # with a fresh cross-compiler works.
  16545. # On the NeXT, cc -E runs the code through the compiler's parser,
  16546. # not just through cpp. "Syntax error" is here to catch this case.
  16547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16548. /* end confdefs.h. */
  16549. #include <limits.h>
  16550. Syntax error
  16551. _ACEOF
  16552. if ac_fn_c_try_cpp "$LINENO"
  16553. then :
  16554. else $as_nop
  16555. # Broken: fails on valid input.
  16556. continue
  16557. fi
  16558. rm -f conftest.err conftest.i conftest.$ac_ext
  16559. # OK, works on sane cases. Now check whether nonexistent headers
  16560. # can be detected and how.
  16561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16562. /* end confdefs.h. */
  16563. #include <ac_nonexistent.h>
  16564. _ACEOF
  16565. if ac_fn_c_try_cpp "$LINENO"
  16566. then :
  16567. # Broken: success on invalid input.
  16568. continue
  16569. else $as_nop
  16570. # Passes both tests.
  16571. ac_preproc_ok=:
  16572. break
  16573. fi
  16574. rm -f conftest.err conftest.i conftest.$ac_ext
  16575. done
  16576. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16577. rm -f conftest.i conftest.err conftest.$ac_ext
  16578. if $ac_preproc_ok
  16579. then :
  16580. break
  16581. fi
  16582. done
  16583. ac_cv_prog_CPP=$CPP
  16584. fi
  16585. CPP=$ac_cv_prog_CPP
  16586. else
  16587. ac_cv_prog_CPP=$CPP
  16588. fi
  16589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16590. printf "%s\n" "$CPP" >&6; }
  16591. ac_preproc_ok=false
  16592. for ac_c_preproc_warn_flag in '' yes
  16593. do
  16594. # Use a header file that comes with gcc, so configuring glibc
  16595. # with a fresh cross-compiler works.
  16596. # On the NeXT, cc -E runs the code through the compiler's parser,
  16597. # not just through cpp. "Syntax error" is here to catch this case.
  16598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16599. /* end confdefs.h. */
  16600. #include <limits.h>
  16601. Syntax error
  16602. _ACEOF
  16603. if ac_fn_c_try_cpp "$LINENO"
  16604. then :
  16605. else $as_nop
  16606. # Broken: fails on valid input.
  16607. continue
  16608. fi
  16609. rm -f conftest.err conftest.i conftest.$ac_ext
  16610. # OK, works on sane cases. Now check whether nonexistent headers
  16611. # can be detected and how.
  16612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16613. /* end confdefs.h. */
  16614. #include <ac_nonexistent.h>
  16615. _ACEOF
  16616. if ac_fn_c_try_cpp "$LINENO"
  16617. then :
  16618. # Broken: success on invalid input.
  16619. continue
  16620. else $as_nop
  16621. # Passes both tests.
  16622. ac_preproc_ok=:
  16623. break
  16624. fi
  16625. rm -f conftest.err conftest.i conftest.$ac_ext
  16626. done
  16627. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16628. rm -f conftest.i conftest.err conftest.$ac_ext
  16629. if $ac_preproc_ok
  16630. then :
  16631. else $as_nop
  16632. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16633. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16634. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16635. See \`config.log' for more details" "$LINENO" 5; }
  16636. fi
  16637. ac_ext=c
  16638. ac_cpp='$CPP $CPPFLAGS'
  16639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16643. printf %s "checking for M_PI in math.h... " >&6; }
  16644. if test ${ac_cv_define_M_PI+y}
  16645. then :
  16646. printf %s "(cached) " >&6
  16647. else $as_nop
  16648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16649. /* end confdefs.h. */
  16650. #include <math.h>
  16651. #ifdef M_PI
  16652. YES_IS_DEFINED
  16653. #endif
  16654. _ACEOF
  16655. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16656. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16657. then :
  16658. ac_cv_define_M_PI=yes
  16659. else $as_nop
  16660. ac_cv_define_M_PI=no
  16661. fi
  16662. rm -rf conftest*
  16663. fi
  16664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16665. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16666. if test "$ac_cv_define_M_PI" = "yes" ; then
  16667. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16668. fi
  16669. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16670. # for constant arguments. Useless!
  16671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16672. printf %s "checking for working alloca.h... " >&6; }
  16673. if test ${ac_cv_working_alloca_h+y}
  16674. then :
  16675. printf %s "(cached) " >&6
  16676. else $as_nop
  16677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16678. /* end confdefs.h. */
  16679. #include <alloca.h>
  16680. int
  16681. main (void)
  16682. {
  16683. char *p = (char *) alloca (2 * sizeof (int));
  16684. if (p) return 0;
  16685. ;
  16686. return 0;
  16687. }
  16688. _ACEOF
  16689. if ac_fn_c_try_link "$LINENO"
  16690. then :
  16691. ac_cv_working_alloca_h=yes
  16692. else $as_nop
  16693. ac_cv_working_alloca_h=no
  16694. fi
  16695. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16696. conftest$ac_exeext conftest.$ac_ext
  16697. fi
  16698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16699. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16700. if test $ac_cv_working_alloca_h = yes; then
  16701. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16702. fi
  16703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16704. printf %s "checking for alloca... " >&6; }
  16705. if test ${ac_cv_func_alloca_works+y}
  16706. then :
  16707. printf %s "(cached) " >&6
  16708. else $as_nop
  16709. if test $ac_cv_working_alloca_h = yes; then
  16710. ac_cv_func_alloca_works=yes
  16711. else
  16712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16713. /* end confdefs.h. */
  16714. #include <stdlib.h>
  16715. #include <stddef.h>
  16716. #ifndef alloca
  16717. # ifdef __GNUC__
  16718. # define alloca __builtin_alloca
  16719. # elif defined _MSC_VER
  16720. # include <malloc.h>
  16721. # define alloca _alloca
  16722. # else
  16723. # ifdef __cplusplus
  16724. extern "C"
  16725. # endif
  16726. void *alloca (size_t);
  16727. # endif
  16728. #endif
  16729. int
  16730. main (void)
  16731. {
  16732. char *p = (char *) alloca (1);
  16733. if (p) return 0;
  16734. ;
  16735. return 0;
  16736. }
  16737. _ACEOF
  16738. if ac_fn_c_try_link "$LINENO"
  16739. then :
  16740. ac_cv_func_alloca_works=yes
  16741. else $as_nop
  16742. ac_cv_func_alloca_works=no
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16745. conftest$ac_exeext conftest.$ac_ext
  16746. fi
  16747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16748. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16749. fi
  16750. if test $ac_cv_func_alloca_works = yes; then
  16751. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16752. else
  16753. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16754. # that cause trouble. Some versions do not even contain alloca or
  16755. # contain a buggy version. If you still want to use their alloca,
  16756. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16757. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16758. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16760. printf %s "checking stack direction for C alloca... " >&6; }
  16761. if test ${ac_cv_c_stack_direction+y}
  16762. then :
  16763. printf %s "(cached) " >&6
  16764. else $as_nop
  16765. if test "$cross_compiling" = yes
  16766. then :
  16767. ac_cv_c_stack_direction=0
  16768. else $as_nop
  16769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16770. /* end confdefs.h. */
  16771. $ac_includes_default
  16772. int
  16773. find_stack_direction (int *addr, int depth)
  16774. {
  16775. int dir, dummy = 0;
  16776. if (! addr)
  16777. addr = &dummy;
  16778. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16779. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16780. return dir + dummy;
  16781. }
  16782. int
  16783. main (int argc, char **argv)
  16784. {
  16785. return find_stack_direction (0, argc + !argv + 20) < 0;
  16786. }
  16787. _ACEOF
  16788. if ac_fn_c_try_run "$LINENO"
  16789. then :
  16790. ac_cv_c_stack_direction=1
  16791. else $as_nop
  16792. ac_cv_c_stack_direction=-1
  16793. fi
  16794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16796. fi
  16797. fi
  16798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16799. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16800. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16803. if test "x$ac_cv_func_mprotect" = xyes
  16804. then :
  16805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16806. /* end confdefs.h. */
  16807. #include <sys/types.h>
  16808. #include <sys/mman.h>
  16809. int
  16810. main (void)
  16811. {
  16812. ;
  16813. return 0;
  16814. }
  16815. _ACEOF
  16816. if ac_fn_c_try_compile "$LINENO"
  16817. then :
  16818. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16819. fi
  16820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16823. if test "x$ac_cv_func_malloc" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16828. if test "x$ac_cv_func_calloc" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16833. if test "x$ac_cv_func_realloc" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16838. if test "x$ac_cv_func_free" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16843. if test "x$ac_cv_func_getenv" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16848. if test "x$ac_cv_func_setenv" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16853. if test "x$ac_cv_func_putenv" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16858. if test "x$ac_cv_func_unsetenv" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16863. if test "x$ac_cv_func_bsearch" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16868. if test "x$ac_cv_func_qsort" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16873. if test "x$ac_cv_func_abs" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16878. if test "x$ac_cv_func_bcopy" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16883. if test "x$ac_cv_func_memset" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16888. if test "x$ac_cv_func_memcmp" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16893. if test "x$ac_cv_func_memcpy" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16898. if test "x$ac_cv_func_memmove" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16903. if test "x$ac_cv_func_wcslen" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16908. if test "x$ac_cv_func_wcslcpy" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16913. if test "x$ac_cv_func_wcslcat" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16918. if test "x$ac_cv_func__wcsdup" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16923. if test "x$ac_cv_func_wcsdup" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16928. if test "x$ac_cv_func_wcsstr" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16933. if test "x$ac_cv_func_wcscmp" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16938. if test "x$ac_cv_func_wcsncmp" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16943. if test "x$ac_cv_func_wcscasecmp" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16948. if test "x$ac_cv_func__wcsicmp" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16953. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16958. if test "x$ac_cv_func__wcsnicmp" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16963. if test "x$ac_cv_func_strlen" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16968. if test "x$ac_cv_func_strlcpy" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16973. if test "x$ac_cv_func_strlcat" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16978. if test "x$ac_cv_func__strrev" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16983. if test "x$ac_cv_func__strupr" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16988. if test "x$ac_cv_func__strlwr" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16993. if test "x$ac_cv_func_index" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16998. if test "x$ac_cv_func_rindex" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17003. if test "x$ac_cv_func_strchr" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17008. if test "x$ac_cv_func_strrchr" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17013. if test "x$ac_cv_func_strstr" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17018. if test "x$ac_cv_func_strtok_r" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17023. if test "x$ac_cv_func_itoa" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17028. if test "x$ac_cv_func__ltoa" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17033. if test "x$ac_cv_func__uitoa" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17036. fi
  17037. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17038. if test "x$ac_cv_func__ultoa" = xyes
  17039. then :
  17040. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17041. fi
  17042. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17043. if test "x$ac_cv_func_strtod" = xyes
  17044. then :
  17045. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17046. fi
  17047. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17048. if test "x$ac_cv_func_strtol" = xyes
  17049. then :
  17050. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17051. fi
  17052. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17053. if test "x$ac_cv_func_strtoul" = xyes
  17054. then :
  17055. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17056. fi
  17057. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17058. if test "x$ac_cv_func__i64toa" = xyes
  17059. then :
  17060. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17061. fi
  17062. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17063. if test "x$ac_cv_func__ui64toa" = xyes
  17064. then :
  17065. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17066. fi
  17067. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17068. if test "x$ac_cv_func_strtoll" = xyes
  17069. then :
  17070. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17071. fi
  17072. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17073. if test "x$ac_cv_func_strtoull" = xyes
  17074. then :
  17075. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17076. fi
  17077. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17078. if test "x$ac_cv_func_atoi" = xyes
  17079. then :
  17080. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17081. fi
  17082. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17083. if test "x$ac_cv_func_atof" = xyes
  17084. then :
  17085. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17086. fi
  17087. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17088. if test "x$ac_cv_func_strcmp" = xyes
  17089. then :
  17090. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17091. fi
  17092. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17093. if test "x$ac_cv_func_strncmp" = xyes
  17094. then :
  17095. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17096. fi
  17097. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17098. if test "x$ac_cv_func__stricmp" = xyes
  17099. then :
  17100. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17101. fi
  17102. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17103. if test "x$ac_cv_func_strcasecmp" = xyes
  17104. then :
  17105. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17106. fi
  17107. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17108. if test "x$ac_cv_func__strnicmp" = xyes
  17109. then :
  17110. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17111. fi
  17112. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17113. if test "x$ac_cv_func_strncasecmp" = xyes
  17114. then :
  17115. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17118. if test "x$ac_cv_func_strcasestr" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17123. if test "x$ac_cv_func_vsscanf" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17128. if test "x$ac_cv_func_vsnprintf" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17133. if test "x$ac_cv_func_fopen64" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17138. if test "x$ac_cv_func_fseeko" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17143. if test "x$ac_cv_func_fseeko64" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17146. fi
  17147. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17148. if test "x$ac_cv_func_sigaction" = xyes
  17149. then :
  17150. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17151. fi
  17152. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17153. if test "x$ac_cv_func_setjmp" = xyes
  17154. then :
  17155. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17156. fi
  17157. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17158. if test "x$ac_cv_func_nanosleep" = xyes
  17159. then :
  17160. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17161. fi
  17162. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17163. if test "x$ac_cv_func_sysconf" = xyes
  17164. then :
  17165. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17166. fi
  17167. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17168. if test "x$ac_cv_func_sysctlbyname" = xyes
  17169. then :
  17170. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17171. fi
  17172. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17173. if test "x$ac_cv_func_getauxval" = xyes
  17174. then :
  17175. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17178. if test "x$ac_cv_func_elf_aux_info" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17183. if test "x$ac_cv_func_poll" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17188. if test "x$ac_cv_func_memfd_create" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17193. if test "x$ac_cv_func_posix_fallocate" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17198. if test "x$ac_cv_func__Exit" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17201. fi
  17202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17203. printf %s "checking for pow in -lm... " >&6; }
  17204. if test ${ac_cv_lib_m_pow+y}
  17205. then :
  17206. printf %s "(cached) " >&6
  17207. else $as_nop
  17208. ac_check_lib_save_LIBS=$LIBS
  17209. LIBS="-lm $LIBS"
  17210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17211. /* end confdefs.h. */
  17212. /* Override any GCC internal prototype to avoid an error.
  17213. Use char because int might match the return type of a GCC
  17214. builtin and then its argument prototype would still apply. */
  17215. char pow ();
  17216. int
  17217. main (void)
  17218. {
  17219. return pow ();
  17220. ;
  17221. return 0;
  17222. }
  17223. _ACEOF
  17224. if ac_fn_c_try_link "$LINENO"
  17225. then :
  17226. ac_cv_lib_m_pow=yes
  17227. else $as_nop
  17228. ac_cv_lib_m_pow=no
  17229. fi
  17230. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17231. conftest$ac_exeext conftest.$ac_ext
  17232. LIBS=$ac_check_lib_save_LIBS
  17233. fi
  17234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17235. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17236. if test "x$ac_cv_lib_m_pow" = xyes
  17237. then :
  17238. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17241. if test "x$ac_cv_func_acos" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17246. if test "x$ac_cv_func_acosf" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17251. if test "x$ac_cv_func_asin" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17254. fi
  17255. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17256. if test "x$ac_cv_func_asinf" = xyes
  17257. then :
  17258. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17259. fi
  17260. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17261. if test "x$ac_cv_func_atan" = xyes
  17262. then :
  17263. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17264. fi
  17265. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17266. if test "x$ac_cv_func_atanf" = xyes
  17267. then :
  17268. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17269. fi
  17270. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17271. if test "x$ac_cv_func_atan2" = xyes
  17272. then :
  17273. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17274. fi
  17275. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17276. if test "x$ac_cv_func_atan2f" = xyes
  17277. then :
  17278. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17279. fi
  17280. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17281. if test "x$ac_cv_func_ceil" = xyes
  17282. then :
  17283. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17284. fi
  17285. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17286. if test "x$ac_cv_func_ceilf" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17289. fi
  17290. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17291. if test "x$ac_cv_func_copysign" = xyes
  17292. then :
  17293. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17294. fi
  17295. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17296. if test "x$ac_cv_func_copysignf" = xyes
  17297. then :
  17298. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17299. fi
  17300. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17301. if test "x$ac_cv_func_cos" = xyes
  17302. then :
  17303. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17304. fi
  17305. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17306. if test "x$ac_cv_func_cosf" = xyes
  17307. then :
  17308. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17309. fi
  17310. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17311. if test "x$ac_cv_func_exp" = xyes
  17312. then :
  17313. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17314. fi
  17315. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17316. if test "x$ac_cv_func_expf" = xyes
  17317. then :
  17318. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17319. fi
  17320. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17321. if test "x$ac_cv_func_fabs" = xyes
  17322. then :
  17323. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17324. fi
  17325. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17326. if test "x$ac_cv_func_fabsf" = xyes
  17327. then :
  17328. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17329. fi
  17330. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17331. if test "x$ac_cv_func_floor" = xyes
  17332. then :
  17333. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17334. fi
  17335. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17336. if test "x$ac_cv_func_floorf" = xyes
  17337. then :
  17338. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17339. fi
  17340. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17341. if test "x$ac_cv_func_trunc" = xyes
  17342. then :
  17343. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17344. fi
  17345. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17346. if test "x$ac_cv_func_truncf" = xyes
  17347. then :
  17348. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17349. fi
  17350. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17351. if test "x$ac_cv_func_fmod" = xyes
  17352. then :
  17353. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17354. fi
  17355. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17356. if test "x$ac_cv_func_fmodf" = xyes
  17357. then :
  17358. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17359. fi
  17360. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17361. if test "x$ac_cv_func_log" = xyes
  17362. then :
  17363. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17364. fi
  17365. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17366. if test "x$ac_cv_func_logf" = xyes
  17367. then :
  17368. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17369. fi
  17370. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17371. if test "x$ac_cv_func_log10" = xyes
  17372. then :
  17373. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17374. fi
  17375. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17376. if test "x$ac_cv_func_log10f" = xyes
  17377. then :
  17378. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17379. fi
  17380. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17381. if test "x$ac_cv_func_lround" = xyes
  17382. then :
  17383. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17384. fi
  17385. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17386. if test "x$ac_cv_func_lroundf" = xyes
  17387. then :
  17388. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17389. fi
  17390. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17391. if test "x$ac_cv_func_pow" = xyes
  17392. then :
  17393. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17394. fi
  17395. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17396. if test "x$ac_cv_func_powf" = xyes
  17397. then :
  17398. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17399. fi
  17400. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17401. if test "x$ac_cv_func_round" = xyes
  17402. then :
  17403. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17404. fi
  17405. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17406. if test "x$ac_cv_func_roundf" = xyes
  17407. then :
  17408. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17409. fi
  17410. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17411. if test "x$ac_cv_func_scalbn" = xyes
  17412. then :
  17413. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17414. fi
  17415. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17416. if test "x$ac_cv_func_scalbnf" = xyes
  17417. then :
  17418. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17419. fi
  17420. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17421. if test "x$ac_cv_func_sin" = xyes
  17422. then :
  17423. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17424. fi
  17425. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17426. if test "x$ac_cv_func_sinf" = xyes
  17427. then :
  17428. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17429. fi
  17430. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17431. if test "x$ac_cv_func_sqrt" = xyes
  17432. then :
  17433. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17434. fi
  17435. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17436. if test "x$ac_cv_func_sqrtf" = xyes
  17437. then :
  17438. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17439. fi
  17440. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17441. if test "x$ac_cv_func_tan" = xyes
  17442. then :
  17443. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17444. fi
  17445. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17446. if test "x$ac_cv_func_tanf" = xyes
  17447. then :
  17448. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17449. fi
  17450. if test x$enable_system_iconv = xyes; then
  17451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17452. printf %s "checking for iconv in libc... " >&6; }
  17453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17454. /* end confdefs.h. */
  17455. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17456. #include <stddef.h>
  17457. #include <iconv.h>
  17458. int
  17459. main (void)
  17460. {
  17461. iconv_open(NULL,NULL);
  17462. ;
  17463. return 0;
  17464. }
  17465. _ACEOF
  17466. if ac_fn_c_try_link "$LINENO"
  17467. then :
  17468. have_libc_iconv=yes
  17469. else $as_nop
  17470. have_libc_iconv=no
  17471. fi
  17472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17473. conftest$ac_exeext conftest.$ac_ext
  17474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17475. printf "%s\n" "$have_libc_iconv" >&6; }
  17476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17477. printf %s "checking for iconv in libiconv... " >&6; }
  17478. save_LIBS="$LIBS"
  17479. LIBS="$LIBS -liconv"
  17480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17481. /* end confdefs.h. */
  17482. #include <stddef.h>
  17483. #include <iconv.h>
  17484. int
  17485. main (void)
  17486. {
  17487. iconv_open(NULL,NULL);
  17488. ;
  17489. return 0;
  17490. }
  17491. _ACEOF
  17492. if ac_fn_c_try_link "$LINENO"
  17493. then :
  17494. have_libiconv=yes
  17495. else $as_nop
  17496. have_libiconv=no
  17497. fi
  17498. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17499. conftest$ac_exeext conftest.$ac_ext
  17500. LIBS="$save_LIBS"
  17501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17502. printf "%s\n" "$have_libiconv" >&6; }
  17503. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17504. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17505. if test x$have_libiconv = xyes; then
  17506. if test x$have_libc_iconv != xyes; then
  17507. use_libiconv=yes
  17508. elif test x$enable_libiconv = xyes; then
  17509. use_libiconv=yes
  17510. fi
  17511. fi
  17512. if test x$use_libiconv = xyes; then
  17513. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17514. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17515. echo "-- Using iconv from libiconv"
  17516. else
  17517. echo "-- Using iconv from libc"
  17518. fi
  17519. fi
  17520. fi
  17521. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17522. "
  17523. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17524. then :
  17525. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17526. fi
  17527. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17528. if test "x$ac_cv_header_libunwind_h" = xyes
  17529. then :
  17530. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17531. fi
  17532. fi
  17533. # Check whether --enable-gcc-atomics was given.
  17534. if test ${enable_gcc_atomics+y}
  17535. then :
  17536. enableval=$enable_gcc_atomics;
  17537. else $as_nop
  17538. enable_gcc_atomics=yes
  17539. fi
  17540. if test x$enable_gcc_atomics = xyes; then
  17541. have_gcc_atomics=no
  17542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17543. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17545. /* end confdefs.h. */
  17546. int
  17547. main (void)
  17548. {
  17549. int a;
  17550. void *x, *y, *z;
  17551. __sync_lock_test_and_set(&a, 4);
  17552. __sync_lock_test_and_set(&x, y);
  17553. __sync_fetch_and_add(&a, 1);
  17554. __sync_bool_compare_and_swap(&a, 5, 10);
  17555. __sync_bool_compare_and_swap(&x, y, z);
  17556. ;
  17557. return 0;
  17558. }
  17559. _ACEOF
  17560. if ac_fn_c_try_link "$LINENO"
  17561. then :
  17562. have_gcc_atomics=yes
  17563. fi
  17564. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17565. conftest$ac_exeext conftest.$ac_ext
  17566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17567. printf "%s\n" "$have_gcc_atomics" >&6; }
  17568. if test x$have_gcc_atomics = xyes; then
  17569. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17570. else
  17571. # See if we have the minimum operation needed for GCC atomics
  17572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17573. /* end confdefs.h. */
  17574. int
  17575. main (void)
  17576. {
  17577. int a;
  17578. __sync_lock_test_and_set(&a, 1);
  17579. __sync_lock_release(&a);
  17580. ;
  17581. return 0;
  17582. }
  17583. _ACEOF
  17584. if ac_fn_c_try_link "$LINENO"
  17585. then :
  17586. have_gcc_sync_lock_test_and_set=yes
  17587. fi
  17588. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17589. conftest$ac_exeext conftest.$ac_ext
  17590. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17591. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17592. fi
  17593. fi
  17594. fi
  17595. # Standard C sources
  17596. SOURCES="$SOURCES $srcdir/src/*.c"
  17597. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17598. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17599. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17600. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17601. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17602. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17603. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17604. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17605. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17606. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17607. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17608. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17609. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17610. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17611. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17612. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17613. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17614. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17615. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17616. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17617. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17618. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17619. case "$host" in
  17620. *-*-emscripten*)
  17621. default_atomic=no
  17622. ;;
  17623. *)
  17624. default_atomic=yes
  17625. ;;
  17626. esac
  17627. # Check whether --enable-atomic was given.
  17628. if test ${enable_atomic+y}
  17629. then :
  17630. enableval=$enable_atomic;
  17631. else $as_nop
  17632. enable_atomic=$default_atomic
  17633. fi
  17634. if test x$enable_atomic != xyes; then
  17635. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17636. else
  17637. SUMMARY_modules="${SUMMARY_modules} atomic"
  17638. fi
  17639. # Check whether --enable-audio was given.
  17640. if test ${enable_audio+y}
  17641. then :
  17642. enableval=$enable_audio;
  17643. else $as_nop
  17644. enable_audio=yes
  17645. fi
  17646. if test x$enable_audio != xyes; then
  17647. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17648. else
  17649. SUMMARY_modules="${SUMMARY_modules} audio"
  17650. fi
  17651. # Check whether --enable-video was given.
  17652. if test ${enable_video+y}
  17653. then :
  17654. enableval=$enable_video;
  17655. else $as_nop
  17656. enable_video=yes
  17657. fi
  17658. if test x$enable_video != xyes; then
  17659. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17660. else
  17661. SUMMARY_modules="${SUMMARY_modules} video"
  17662. fi
  17663. # Check whether --enable-render was given.
  17664. if test ${enable_render+y}
  17665. then :
  17666. enableval=$enable_render;
  17667. else $as_nop
  17668. enable_render=yes
  17669. fi
  17670. if test x$enable_render != xyes; then
  17671. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17672. else
  17673. SUMMARY_modules="${SUMMARY_modules} render"
  17674. fi
  17675. # Check whether --enable-events was given.
  17676. if test ${enable_events+y}
  17677. then :
  17678. enableval=$enable_events;
  17679. else $as_nop
  17680. enable_events=yes
  17681. fi
  17682. if test x$enable_events != xyes; then
  17683. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17684. else
  17685. SUMMARY_modules="${SUMMARY_modules} events"
  17686. fi
  17687. # Check whether --enable-joystick was given.
  17688. if test ${enable_joystick+y}
  17689. then :
  17690. enableval=$enable_joystick;
  17691. else $as_nop
  17692. enable_joystick=yes
  17693. fi
  17694. if test x$enable_joystick != xyes; then
  17695. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17696. else
  17697. SUMMARY_modules="${SUMMARY_modules} joystick"
  17698. fi
  17699. # Check whether --enable-haptic was given.
  17700. if test ${enable_haptic+y}
  17701. then :
  17702. enableval=$enable_haptic;
  17703. else $as_nop
  17704. enable_haptic=yes
  17705. fi
  17706. if test x$enable_haptic != xyes; then
  17707. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17708. else
  17709. SUMMARY_modules="${SUMMARY_modules} haptic"
  17710. fi
  17711. # Check whether --enable-hidapi was given.
  17712. if test ${enable_hidapi+y}
  17713. then :
  17714. enableval=$enable_hidapi;
  17715. else $as_nop
  17716. enable_hidapi=yes
  17717. fi
  17718. if test x$enable_hidapi != xyes; then
  17719. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17720. else
  17721. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17722. fi
  17723. # Check whether --enable-sensor was given.
  17724. if test ${enable_sensor+y}
  17725. then :
  17726. enableval=$enable_sensor;
  17727. else $as_nop
  17728. enable_sensor=yes
  17729. fi
  17730. if test x$enable_sensor != xyes; then
  17731. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17732. else
  17733. SUMMARY_modules="${SUMMARY_modules} sensor"
  17734. fi
  17735. # Check whether --enable-power was given.
  17736. if test ${enable_power+y}
  17737. then :
  17738. enableval=$enable_power;
  17739. else $as_nop
  17740. enable_power=yes
  17741. fi
  17742. if test x$enable_power != xyes; then
  17743. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17744. else
  17745. SUMMARY_modules="${SUMMARY_modules} power"
  17746. fi
  17747. # Check whether --enable-filesystem was given.
  17748. if test ${enable_filesystem+y}
  17749. then :
  17750. enableval=$enable_filesystem;
  17751. else $as_nop
  17752. enable_filesystem=yes
  17753. fi
  17754. if test x$enable_filesystem != xyes; then
  17755. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17756. else
  17757. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17758. fi
  17759. # Many subsystems depend on threads, so leave them enabled by default
  17760. #AC_ARG_ENABLE(threads,
  17761. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17762. # , enable_threads=yes)
  17763. enable_threads=yes
  17764. if test x$enable_threads != xyes; then
  17765. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17766. else
  17767. SUMMARY_modules="${SUMMARY_modules} threads"
  17768. fi
  17769. # Check whether --enable-timers was given.
  17770. if test ${enable_timers+y}
  17771. then :
  17772. enableval=$enable_timers;
  17773. else $as_nop
  17774. enable_timers=yes
  17775. fi
  17776. if test x$enable_timers != xyes; then
  17777. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17778. else
  17779. SUMMARY_modules="${SUMMARY_modules} timers"
  17780. fi
  17781. # Check whether --enable-file was given.
  17782. if test ${enable_file+y}
  17783. then :
  17784. enableval=$enable_file;
  17785. else $as_nop
  17786. enable_file=yes
  17787. fi
  17788. if test x$enable_file != xyes; then
  17789. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17790. else
  17791. SUMMARY_modules="${SUMMARY_modules} file"
  17792. fi
  17793. # Check whether --enable-misc was given.
  17794. if test ${enable_misc+y}
  17795. then :
  17796. enableval=$enable_misc;
  17797. else $as_nop
  17798. enable_misc=yes
  17799. fi
  17800. if test x$enable_misc != xyes; then
  17801. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17802. else
  17803. SUMMARY_modules="${SUMMARY_modules} misc"
  17804. fi
  17805. # Check whether --enable-locale was given.
  17806. if test ${enable_locale+y}
  17807. then :
  17808. enableval=$enable_locale;
  17809. else $as_nop
  17810. enable_locale=yes
  17811. fi
  17812. if test x$enable_locale != xyes; then
  17813. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17814. else
  17815. SUMMARY_modules="${SUMMARY_modules} locale"
  17816. fi
  17817. # Check whether --enable-loadso was given.
  17818. if test ${enable_loadso+y}
  17819. then :
  17820. enableval=$enable_loadso;
  17821. else $as_nop
  17822. enable_loadso=yes
  17823. fi
  17824. if test x$enable_loadso != xyes; then
  17825. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17826. else
  17827. SUMMARY_modules="${SUMMARY_modules} loadso"
  17828. fi
  17829. # Check whether --enable-cpuinfo was given.
  17830. if test ${enable_cpuinfo+y}
  17831. then :
  17832. enableval=$enable_cpuinfo;
  17833. else $as_nop
  17834. enable_cpuinfo=yes
  17835. fi
  17836. if test x$enable_cpuinfo != xyes; then
  17837. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17838. else
  17839. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17840. fi
  17841. # Check whether --enable-assembly was given.
  17842. if test ${enable_assembly+y}
  17843. then :
  17844. enableval=$enable_assembly;
  17845. else $as_nop
  17846. enable_assembly=yes
  17847. fi
  17848. if test x$enable_assembly = xyes; then
  17849. SUMMARY_modules="${SUMMARY_modules} assembly"
  17850. # Make sure that we don't generate floating point code that would
  17851. # cause illegal instruction exceptions on older processors
  17852. case "$host" in
  17853. *-*-darwin*)
  17854. # Don't need to worry about Apple hardware, it's all SSE capable
  17855. default_ssemath=yes
  17856. ;;
  17857. *64-*-*)
  17858. # x86 64-bit architectures all have SSE instructions
  17859. default_ssemath=yes
  17860. ;;
  17861. *)
  17862. default_ssemath=no
  17863. ;;
  17864. esac
  17865. # Check whether --enable-ssemath was given.
  17866. if test ${enable_ssemath+y}
  17867. then :
  17868. enableval=$enable_ssemath;
  17869. else $as_nop
  17870. enable_ssemath=$default_ssemath
  17871. fi
  17872. if test x$enable_ssemath = xno; then
  17873. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17874. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17875. fi
  17876. fi
  17877. # Check whether --enable-mmx was given.
  17878. if test ${enable_mmx+y}
  17879. then :
  17880. enableval=$enable_mmx;
  17881. else $as_nop
  17882. enable_mmx=yes
  17883. fi
  17884. if test x$enable_mmx = xyes; then
  17885. save_CFLAGS="$CFLAGS"
  17886. have_gcc_mmx=no
  17887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17888. printf %s "checking for GCC -mmmx option... " >&6; }
  17889. mmx_CFLAGS="-mmmx"
  17890. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17892. /* end confdefs.h. */
  17893. #ifdef __MINGW32__
  17894. #include <_mingw.h>
  17895. #ifdef __MINGW64_VERSION_MAJOR
  17896. #include <intrin.h>
  17897. #else
  17898. #include <mmintrin.h>
  17899. #endif
  17900. #else
  17901. #include <mmintrin.h>
  17902. #endif
  17903. #ifndef __MMX__
  17904. #error Assembler CPP flag not enabled
  17905. #endif
  17906. int
  17907. main (void)
  17908. {
  17909. ;
  17910. return 0;
  17911. }
  17912. _ACEOF
  17913. if ac_fn_c_try_compile "$LINENO"
  17914. then :
  17915. have_gcc_mmx=yes
  17916. fi
  17917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17919. printf "%s\n" "$have_gcc_mmx" >&6; }
  17920. CFLAGS="$save_CFLAGS"
  17921. if test x$have_gcc_mmx = xyes; then
  17922. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17923. SUMMARY_math="${SUMMARY_math} mmx"
  17924. fi
  17925. fi
  17926. # Check whether --enable-3dnow was given.
  17927. if test ${enable_3dnow+y}
  17928. then :
  17929. enableval=$enable_3dnow;
  17930. else $as_nop
  17931. enable_3dnow=yes
  17932. fi
  17933. if test x$enable_3dnow = xyes; then
  17934. save_CFLAGS="$CFLAGS"
  17935. have_gcc_3dnow=no
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17937. printf %s "checking for GCC -m3dnow option... " >&6; }
  17938. amd3dnow_CFLAGS="-m3dnow"
  17939. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17941. /* end confdefs.h. */
  17942. #include <mm3dnow.h>
  17943. #ifndef __3dNOW__
  17944. #error Assembler CPP flag not enabled
  17945. #endif
  17946. int
  17947. main (void)
  17948. {
  17949. void *p = 0;
  17950. _m_prefetch(p);
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. if ac_fn_c_try_link "$LINENO"
  17956. then :
  17957. have_gcc_3dnow=yes
  17958. fi
  17959. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17960. conftest$ac_exeext conftest.$ac_ext
  17961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17962. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17963. CFLAGS="$save_CFLAGS"
  17964. if test x$have_gcc_3dnow = xyes; then
  17965. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17966. SUMMARY_math="${SUMMARY_math} 3dnow"
  17967. fi
  17968. fi
  17969. # Check whether --enable-sse was given.
  17970. if test ${enable_sse+y}
  17971. then :
  17972. enableval=$enable_sse;
  17973. else $as_nop
  17974. enable_sse=yes
  17975. fi
  17976. if test x$enable_sse = xyes; then
  17977. save_CFLAGS="$CFLAGS"
  17978. have_gcc_sse=no
  17979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17980. printf %s "checking for GCC -msse option... " >&6; }
  17981. sse_CFLAGS="-msse"
  17982. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. #ifdef __MINGW32__
  17986. #include <_mingw.h>
  17987. #ifdef __MINGW64_VERSION_MAJOR
  17988. #include <intrin.h>
  17989. #else
  17990. #include <xmmintrin.h>
  17991. #endif
  17992. #else
  17993. #include <xmmintrin.h>
  17994. #endif
  17995. #ifndef __SSE__
  17996. #error Assembler CPP flag not enabled
  17997. #endif
  17998. int
  17999. main (void)
  18000. {
  18001. ;
  18002. return 0;
  18003. }
  18004. _ACEOF
  18005. if ac_fn_c_try_compile "$LINENO"
  18006. then :
  18007. have_gcc_sse=yes
  18008. fi
  18009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18011. printf "%s\n" "$have_gcc_sse" >&6; }
  18012. CFLAGS="$save_CFLAGS"
  18013. if test x$have_gcc_sse = xyes; then
  18014. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18015. SUMMARY_math="${SUMMARY_math} sse"
  18016. fi
  18017. fi
  18018. # Check whether --enable-sse2 was given.
  18019. if test ${enable_sse2+y}
  18020. then :
  18021. enableval=$enable_sse2;
  18022. else $as_nop
  18023. enable_sse2=$default_ssemath
  18024. fi
  18025. if test x$enable_sse2 = xyes; then
  18026. save_CFLAGS="$CFLAGS"
  18027. have_gcc_sse2=no
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18029. printf %s "checking for GCC -msse2 option... " >&6; }
  18030. sse2_CFLAGS="-msse2"
  18031. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. #ifdef __MINGW32__
  18035. #include <_mingw.h>
  18036. #ifdef __MINGW64_VERSION_MAJOR
  18037. #include <intrin.h>
  18038. #else
  18039. #include <emmintrin.h>
  18040. #endif
  18041. #else
  18042. #include <emmintrin.h>
  18043. #endif
  18044. #ifndef __SSE2__
  18045. #error Assembler CPP flag not enabled
  18046. #endif
  18047. int
  18048. main (void)
  18049. {
  18050. ;
  18051. return 0;
  18052. }
  18053. _ACEOF
  18054. if ac_fn_c_try_compile "$LINENO"
  18055. then :
  18056. have_gcc_sse2=yes
  18057. fi
  18058. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18060. printf "%s\n" "$have_gcc_sse2" >&6; }
  18061. CFLAGS="$save_CFLAGS"
  18062. if test x$have_gcc_sse2 = xyes; then
  18063. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18064. SUMMARY_math="${SUMMARY_math} sse2"
  18065. fi
  18066. fi
  18067. # Check whether --enable-sse3 was given.
  18068. if test ${enable_sse3+y}
  18069. then :
  18070. enableval=$enable_sse3;
  18071. else $as_nop
  18072. enable_sse3=$default_ssemath
  18073. fi
  18074. if test x$enable_sse3 = xyes; then
  18075. save_CFLAGS="$CFLAGS"
  18076. have_gcc_sse3=no
  18077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18078. printf %s "checking for GCC -msse3 option... " >&6; }
  18079. sse3_CFLAGS="-msse3"
  18080. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18082. /* end confdefs.h. */
  18083. #ifdef __MINGW32__
  18084. #include <_mingw.h>
  18085. #ifdef __MINGW64_VERSION_MAJOR
  18086. #include <intrin.h>
  18087. #else
  18088. #include <pmmintrin.h>
  18089. #endif
  18090. #else
  18091. #include <pmmintrin.h>
  18092. #endif
  18093. #ifndef __SSE2__
  18094. #error Assembler CPP flag not enabled
  18095. #endif
  18096. int
  18097. main (void)
  18098. {
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_compile "$LINENO"
  18104. then :
  18105. have_gcc_sse3=yes
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18109. printf "%s\n" "$have_gcc_sse3" >&6; }
  18110. CFLAGS="$save_CFLAGS"
  18111. if test x$have_gcc_sse3 = xyes; then
  18112. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18113. SUMMARY_math="${SUMMARY_math} sse3"
  18114. fi
  18115. fi
  18116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18117. printf %s "checking for immintrin.h... " >&6; }
  18118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18119. /* end confdefs.h. */
  18120. #include <immintrin.h>
  18121. int
  18122. main (void)
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"
  18129. then :
  18130. have_immintrin_h_hdr=yes
  18131. else $as_nop
  18132. have_immintrin_h_hdr=no
  18133. fi
  18134. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18136. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18137. if test x$have_immintrin_h_hdr = xyes; then
  18138. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18139. fi
  18140. # Check whether --enable-altivec was given.
  18141. if test ${enable_altivec+y}
  18142. then :
  18143. enableval=$enable_altivec;
  18144. else $as_nop
  18145. enable_altivec=yes
  18146. fi
  18147. if test x$enable_altivec = xyes; then
  18148. save_CFLAGS="$CFLAGS"
  18149. have_gcc_altivec=no
  18150. have_altivec_h_hdr=no
  18151. altivec_CFLAGS="-maltivec"
  18152. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18154. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18156. /* end confdefs.h. */
  18157. #include <altivec.h>
  18158. vector unsigned int vzero() {
  18159. return vec_splat_u32(0);
  18160. }
  18161. int
  18162. main (void)
  18163. {
  18164. ;
  18165. return 0;
  18166. }
  18167. _ACEOF
  18168. if ac_fn_c_try_compile "$LINENO"
  18169. then :
  18170. have_gcc_altivec=yes
  18171. have_altivec_h_hdr=yes
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18175. printf "%s\n" "$have_gcc_altivec" >&6; }
  18176. if test x$have_gcc_altivec = xno; then
  18177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18178. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. vector unsigned int vzero() {
  18182. return vec_splat_u32(0);
  18183. }
  18184. int
  18185. main (void)
  18186. {
  18187. ;
  18188. return 0;
  18189. }
  18190. _ACEOF
  18191. if ac_fn_c_try_compile "$LINENO"
  18192. then :
  18193. have_gcc_altivec=yes
  18194. fi
  18195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18197. printf "%s\n" "$have_gcc_altivec" >&6; }
  18198. fi
  18199. if test x$have_gcc_altivec = xno; then
  18200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18201. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18202. altivec_CFLAGS="-faltivec"
  18203. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18205. /* end confdefs.h. */
  18206. #include <altivec.h>
  18207. vector unsigned int vzero() {
  18208. return vec_splat_u32(0);
  18209. }
  18210. int
  18211. main (void)
  18212. {
  18213. ;
  18214. return 0;
  18215. }
  18216. _ACEOF
  18217. if ac_fn_c_try_compile "$LINENO"
  18218. then :
  18219. have_gcc_altivec=yes
  18220. have_altivec_h_hdr=yes
  18221. fi
  18222. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18224. printf "%s\n" "$have_gcc_altivec" >&6; }
  18225. fi
  18226. if test x$have_gcc_altivec = xno; then
  18227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18228. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18230. /* end confdefs.h. */
  18231. vector unsigned int vzero() {
  18232. return vec_splat_u32(0);
  18233. }
  18234. int
  18235. main (void)
  18236. {
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_compile "$LINENO"
  18242. then :
  18243. have_gcc_altivec=yes
  18244. fi
  18245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18247. printf "%s\n" "$have_gcc_altivec" >&6; }
  18248. fi
  18249. CFLAGS="$save_CFLAGS"
  18250. if test x$have_gcc_altivec = xyes; then
  18251. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18252. if test x$have_altivec_h_hdr = xyes; then
  18253. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18254. fi
  18255. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18256. SUMMARY_math="${SUMMARY_math} altivec"
  18257. fi
  18258. fi
  18259. fi
  18260. # Check whether --enable-lsx was given.
  18261. if test ${enable_lsx+y}
  18262. then :
  18263. enableval=$enable_lsx;
  18264. else $as_nop
  18265. enable_lsx=yes
  18266. fi
  18267. if test x$enable_lsx = xyes; then
  18268. save_CFLAGS="$CFLAGS"
  18269. have_gcc_lsx=no
  18270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18271. printf %s "checking for GCC -mlsx option... " >&6; }
  18272. lsx_CFLAGS="-mlsx"
  18273. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18275. /* end confdefs.h. */
  18276. #ifndef __loongarch_sx
  18277. #error Assembler CPP flag not enabled
  18278. #endif
  18279. int
  18280. main (void)
  18281. {
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. if ac_fn_c_try_compile "$LINENO"
  18287. then :
  18288. have_gcc_lsx=yes
  18289. fi
  18290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18292. printf "%s\n" "$have_gcc_lsx" >&6; }
  18293. CFLAGS="$save_CFLAGS"
  18294. if test x$have_gcc_lsx = xyes; then
  18295. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18296. SUMMARY_math="${SUMMARY_math} lsx"
  18297. fi
  18298. fi
  18299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18300. printf %s "checking for lsxintrin.h... " >&6; }
  18301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18302. /* end confdefs.h. */
  18303. #include <lsxintrin.h>
  18304. int
  18305. main (void)
  18306. {
  18307. ;
  18308. return 0;
  18309. }
  18310. _ACEOF
  18311. if ac_fn_c_try_compile "$LINENO"
  18312. then :
  18313. have_lsxintrin_h_hdr=yes
  18314. else $as_nop
  18315. have_lsxintrin_h_hdr=no
  18316. fi
  18317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18319. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18320. if test x$have_lsxintrin_h_hdr = xyes; then
  18321. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18322. fi
  18323. # Check whether --enable-lasx was given.
  18324. if test ${enable_lasx+y}
  18325. then :
  18326. enableval=$enable_lasx;
  18327. else $as_nop
  18328. enable_LASX=yes
  18329. fi
  18330. if test x$enable_LASX = xyes; then
  18331. save_CFLAGS="$CFLAGS"
  18332. have_gcc_lasx=no
  18333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18334. printf %s "checking for GCC -mlasx option... " >&6; }
  18335. lasx_CFLAGS="-mlasx"
  18336. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18338. /* end confdefs.h. */
  18339. #ifndef __loongarch_asx
  18340. #error Assembler CPP flag not enabled
  18341. #endif
  18342. int
  18343. main (void)
  18344. {
  18345. ;
  18346. return 0;
  18347. }
  18348. _ACEOF
  18349. if ac_fn_c_try_compile "$LINENO"
  18350. then :
  18351. have_gcc_lasx=yes
  18352. fi
  18353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18355. printf "%s\n" "$have_gcc_lasx" >&6; }
  18356. CFLAGS="$save_CFLAGS"
  18357. if test x$have_gcc_lasx = xyes; then
  18358. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18359. SUMMARY_math="${SUMMARY_math} lasx"
  18360. fi
  18361. fi
  18362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18363. printf %s "checking for lasxintrin.h... " >&6; }
  18364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18365. /* end confdefs.h. */
  18366. #include <lasxintrin.h>
  18367. int
  18368. main (void)
  18369. {
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_compile "$LINENO"
  18375. then :
  18376. have_lasxintrin_h_hdr=yes
  18377. else $as_nop
  18378. have_lasxintrin_h_hdr=no
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18382. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18383. if test x$have_lasxintrin_h_hdr = xyes; then
  18384. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18385. fi
  18386. CheckOSS()
  18387. {
  18388. # Check whether --enable-oss was given.
  18389. if test ${enable_oss+y}
  18390. then :
  18391. enableval=$enable_oss;
  18392. else $as_nop
  18393. enable_oss=maybe
  18394. fi
  18395. if test x$enable_oss = xmaybe; then
  18396. enable_oss=yes
  18397. fi
  18398. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18400. printf %s "checking for OSS audio support... " >&6; }
  18401. have_oss=no
  18402. if test x$have_oss != xyes; then
  18403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18404. /* end confdefs.h. */
  18405. #include <sys/soundcard.h>
  18406. int
  18407. main (void)
  18408. {
  18409. int arg = SNDCTL_DSP_SETFRAGMENT;
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_compile "$LINENO"
  18415. then :
  18416. have_oss=yes
  18417. fi
  18418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18419. fi
  18420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18421. printf "%s\n" "$have_oss" >&6; }
  18422. if test x$have_oss = xyes; then
  18423. SUMMARY_audio="${SUMMARY_audio} oss"
  18424. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18425. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18426. have_audio=yes
  18427. # We may need to link with ossaudio emulation library
  18428. case "$host" in
  18429. *-*-netbsd*)
  18430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18431. esac
  18432. fi
  18433. fi
  18434. }
  18435. CheckALSA()
  18436. {
  18437. # Check whether --enable-alsa was given.
  18438. if test ${enable_alsa+y}
  18439. then :
  18440. enableval=$enable_alsa;
  18441. else $as_nop
  18442. enable_alsa=yes
  18443. fi
  18444. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18445. alsa_save_CFLAGS="$CFLAGS"
  18446. alsa_save_LDFLAGS="$LDFLAGS"
  18447. alsa_save_LIBS="$LIBS"
  18448. alsa_found=yes
  18449. # Check whether --with-alsa-prefix was given.
  18450. if test ${with_alsa_prefix+y}
  18451. then :
  18452. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18453. else $as_nop
  18454. alsa_prefix=""
  18455. fi
  18456. # Check whether --with-alsa-inc-prefix was given.
  18457. if test ${with_alsa_inc_prefix+y}
  18458. then :
  18459. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18460. else $as_nop
  18461. alsa_inc_prefix=""
  18462. fi
  18463. # Check whether --enable-alsatest was given.
  18464. if test ${enable_alsatest+y}
  18465. then :
  18466. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18467. else $as_nop
  18468. enable_alsatest=yes
  18469. fi
  18470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18471. printf %s "checking for ALSA CFLAGS... " >&6; }
  18472. if test "$alsa_inc_prefix" != "" ; then
  18473. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18474. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18475. fi
  18476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18477. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18479. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18480. if test "$alsa_prefix" != "" ; then
  18481. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18482. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18483. fi
  18484. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18485. LIBS=`echo $LIBS | sed 's/-lm//'`
  18486. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18487. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18488. LIBS=`echo $LIBS | sed 's/ //'`
  18489. LIBS="$ALSA_LIBS $LIBS"
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18491. printf "%s\n" "$ALSA_LIBS" >&6; }
  18492. min_alsa_version=1.0.11
  18493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18494. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18495. no_alsa=""
  18496. alsa_min_major_version=`echo $min_alsa_version | \
  18497. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18498. alsa_min_minor_version=`echo $min_alsa_version | \
  18499. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18500. alsa_min_micro_version=`echo $min_alsa_version | \
  18501. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18502. ac_ext=c
  18503. ac_cpp='$CPP $CPPFLAGS'
  18504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18508. /* end confdefs.h. */
  18509. #include <alsa/asoundlib.h>
  18510. int
  18511. main (void)
  18512. {
  18513. /* ensure backward compatibility */
  18514. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18515. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18516. #endif
  18517. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18518. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18519. #endif
  18520. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18521. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18522. #endif
  18523. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18524. exit(0);
  18525. # else
  18526. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18527. # error not present
  18528. # endif
  18529. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18530. exit(0);
  18531. # else
  18532. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18533. # error not present
  18534. # endif
  18535. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18536. # error not present
  18537. # endif
  18538. # endif
  18539. # endif
  18540. exit(0);
  18541. ;
  18542. return 0;
  18543. }
  18544. _ACEOF
  18545. if ac_fn_c_try_compile "$LINENO"
  18546. then :
  18547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18548. printf "%s\n" "found." >&6; }
  18549. else $as_nop
  18550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18551. printf "%s\n" "not present." >&6; }
  18552. alsa_found=no
  18553. fi
  18554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18555. ac_ext=c
  18556. ac_cpp='$CPP $CPPFLAGS'
  18557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18560. if test "x$enable_alsatest" = "xyes"; then
  18561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18562. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18563. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18564. then :
  18565. printf %s "(cached) " >&6
  18566. else $as_nop
  18567. ac_check_lib_save_LIBS=$LIBS
  18568. LIBS="-lasound $LIBS"
  18569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18570. /* end confdefs.h. */
  18571. /* Override any GCC internal prototype to avoid an error.
  18572. Use char because int might match the return type of a GCC
  18573. builtin and then its argument prototype would still apply. */
  18574. char snd_ctl_open ();
  18575. int
  18576. main (void)
  18577. {
  18578. return snd_ctl_open ();
  18579. ;
  18580. return 0;
  18581. }
  18582. _ACEOF
  18583. if ac_fn_c_try_link "$LINENO"
  18584. then :
  18585. ac_cv_lib_asound_snd_ctl_open=yes
  18586. else $as_nop
  18587. ac_cv_lib_asound_snd_ctl_open=no
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. LIBS=$ac_check_lib_save_LIBS
  18592. fi
  18593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18594. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18595. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18596. then :
  18597. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18598. LIBS="-lasound $LIBS"
  18599. else $as_nop
  18600. alsa_found=no
  18601. fi
  18602. fi
  18603. if test "x$alsa_found" = "xyes" ; then
  18604. have_alsa=yes
  18605. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18606. LIBS=`echo $LIBS | sed 's/ //'`
  18607. LIBS="-lasound $LIBS"
  18608. fi
  18609. if test "x$alsa_found" = "xno" ; then
  18610. have_alsa=no
  18611. CFLAGS="$alsa_save_CFLAGS"
  18612. LDFLAGS="$alsa_save_LDFLAGS"
  18613. LIBS="$alsa_save_LIBS"
  18614. ALSA_CFLAGS=""
  18615. ALSA_LIBS=""
  18616. fi
  18617. # Restore all flags from before the ALSA detection runs
  18618. CFLAGS="$alsa_save_CFLAGS"
  18619. LDFLAGS="$alsa_save_LDFLAGS"
  18620. LIBS="$alsa_save_LIBS"
  18621. if test x$have_alsa = xyes; then
  18622. # Check whether --enable-alsa-shared was given.
  18623. if test ${enable_alsa_shared+y}
  18624. then :
  18625. enableval=$enable_alsa_shared;
  18626. else $as_nop
  18627. enable_alsa_shared=yes
  18628. fi
  18629. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18630. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18631. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18632. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18633. if test x$have_loadso != xyes && \
  18634. test x$enable_alsa_shared = xyes; then
  18635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18636. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18637. fi
  18638. if test x$have_loadso = xyes && \
  18639. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18640. echo "-- dynamic libasound -> $alsa_lib"
  18641. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18642. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18643. else
  18644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18645. SUMMARY_audio="${SUMMARY_audio} alsa"
  18646. fi
  18647. have_audio=yes
  18648. fi
  18649. fi
  18650. }
  18651. CheckJACK()
  18652. {
  18653. # Check whether --enable-jack was given.
  18654. if test ${enable_jack+y}
  18655. then :
  18656. enableval=$enable_jack;
  18657. else $as_nop
  18658. enable_jack=yes
  18659. fi
  18660. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18661. pkg_failed=no
  18662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18663. printf %s "checking for jack >= 0.125... " >&6; }
  18664. if test -n "$JACK_CFLAGS"; then
  18665. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18666. elif test -n "$PKG_CONFIG"; then
  18667. if test -n "$PKG_CONFIG" && \
  18668. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18669. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18670. ac_status=$?
  18671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18672. test $ac_status = 0; }; then
  18673. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18674. test "x$?" != "x0" && pkg_failed=yes
  18675. else
  18676. pkg_failed=yes
  18677. fi
  18678. else
  18679. pkg_failed=untried
  18680. fi
  18681. if test -n "$JACK_LIBS"; then
  18682. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18683. elif test -n "$PKG_CONFIG"; then
  18684. if test -n "$PKG_CONFIG" && \
  18685. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18686. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18687. ac_status=$?
  18688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18689. test $ac_status = 0; }; then
  18690. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18691. test "x$?" != "x0" && pkg_failed=yes
  18692. else
  18693. pkg_failed=yes
  18694. fi
  18695. else
  18696. pkg_failed=untried
  18697. fi
  18698. if test $pkg_failed = yes; then
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18700. printf "%s\n" "no" >&6; }
  18701. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18702. _pkg_short_errors_supported=yes
  18703. else
  18704. _pkg_short_errors_supported=no
  18705. fi
  18706. if test $_pkg_short_errors_supported = yes; then
  18707. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18708. else
  18709. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18710. fi
  18711. # Put the nasty error message in config.log where it belongs
  18712. echo "$JACK_PKG_ERRORS" >&5
  18713. audio_jack=no
  18714. elif test $pkg_failed = untried; then
  18715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18716. printf "%s\n" "no" >&6; }
  18717. audio_jack=no
  18718. else
  18719. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18720. JACK_LIBS=$pkg_cv_JACK_LIBS
  18721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18722. printf "%s\n" "yes" >&6; }
  18723. audio_jack=yes
  18724. fi
  18725. if test x$audio_jack = xyes; then
  18726. # Check whether --enable-jack-shared was given.
  18727. if test ${enable_jack_shared+y}
  18728. then :
  18729. enableval=$enable_jack_shared;
  18730. else $as_nop
  18731. enable_jack_shared=yes
  18732. fi
  18733. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18734. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18735. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18736. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18737. if test x$have_loadso != xyes && \
  18738. test x$enable_jack_shared = xyes; then
  18739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18740. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18741. fi
  18742. if test x$have_loadso = xyes && \
  18743. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18744. echo "-- dynamic libjack -> $jack_lib"
  18745. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18746. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18747. case "$host" in
  18748. # On Solaris, jack must be linked deferred explicitly
  18749. # to prevent undefined symbol failures.
  18750. *-*-solaris*)
  18751. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18753. esac
  18754. else
  18755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18756. SUMMARY_audio="${SUMMARY_audio} jack"
  18757. fi
  18758. have_audio=yes
  18759. fi
  18760. fi
  18761. }
  18762. CheckESD()
  18763. {
  18764. # Check whether --enable-esd was given.
  18765. if test ${enable_esd+y}
  18766. then :
  18767. enableval=$enable_esd;
  18768. else $as_nop
  18769. enable_esd=yes
  18770. fi
  18771. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18772. pkg_failed=no
  18773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18774. printf %s "checking for esound >= 0.2.8... " >&6; }
  18775. if test -n "$ESD_CFLAGS"; then
  18776. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18777. elif test -n "$PKG_CONFIG"; then
  18778. if test -n "$PKG_CONFIG" && \
  18779. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18780. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18781. ac_status=$?
  18782. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18783. test $ac_status = 0; }; then
  18784. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18785. test "x$?" != "x0" && pkg_failed=yes
  18786. else
  18787. pkg_failed=yes
  18788. fi
  18789. else
  18790. pkg_failed=untried
  18791. fi
  18792. if test -n "$ESD_LIBS"; then
  18793. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18794. elif test -n "$PKG_CONFIG"; then
  18795. if test -n "$PKG_CONFIG" && \
  18796. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18797. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18798. ac_status=$?
  18799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18800. test $ac_status = 0; }; then
  18801. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18802. test "x$?" != "x0" && pkg_failed=yes
  18803. else
  18804. pkg_failed=yes
  18805. fi
  18806. else
  18807. pkg_failed=untried
  18808. fi
  18809. if test $pkg_failed = yes; then
  18810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18811. printf "%s\n" "no" >&6; }
  18812. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18813. _pkg_short_errors_supported=yes
  18814. else
  18815. _pkg_short_errors_supported=no
  18816. fi
  18817. if test $_pkg_short_errors_supported = yes; then
  18818. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18819. else
  18820. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18821. fi
  18822. # Put the nasty error message in config.log where it belongs
  18823. echo "$ESD_PKG_ERRORS" >&5
  18824. have_esd=no
  18825. elif test $pkg_failed = untried; then
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18827. printf "%s\n" "no" >&6; }
  18828. have_esd=no
  18829. else
  18830. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18831. ESD_LIBS=$pkg_cv_ESD_LIBS
  18832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18833. printf "%s\n" "yes" >&6; }
  18834. have_esd=yes
  18835. fi
  18836. if test x$have_esd = xno; then
  18837. # Check whether --with-esd-prefix was given.
  18838. if test ${with_esd_prefix+y}
  18839. then :
  18840. withval=$with_esd_prefix; esd_prefix="$withval"
  18841. else $as_nop
  18842. esd_prefix=""
  18843. fi
  18844. # Check whether --with-esd-exec-prefix was given.
  18845. if test ${with_esd_exec_prefix+y}
  18846. then :
  18847. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18848. else $as_nop
  18849. esd_exec_prefix=""
  18850. fi
  18851. # Check whether --enable-esdtest was given.
  18852. if test ${enable_esdtest+y}
  18853. then :
  18854. enableval=$enable_esdtest;
  18855. else $as_nop
  18856. enable_esdtest=yes
  18857. fi
  18858. if test x$esd_exec_prefix != x ; then
  18859. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18860. if test x${ESD_CONFIG+set} != xset ; then
  18861. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18862. fi
  18863. fi
  18864. if test x$esd_prefix != x ; then
  18865. esd_args="$esd_args --prefix=$esd_prefix"
  18866. if test x${ESD_CONFIG+set} != xset ; then
  18867. ESD_CONFIG=$esd_prefix/bin/esd-config
  18868. fi
  18869. fi
  18870. # Extract the first word of "esd-config", so it can be a program name with args.
  18871. set dummy esd-config; ac_word=$2
  18872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18873. printf %s "checking for $ac_word... " >&6; }
  18874. if test ${ac_cv_path_ESD_CONFIG+y}
  18875. then :
  18876. printf %s "(cached) " >&6
  18877. else $as_nop
  18878. case $ESD_CONFIG in
  18879. [\\/]* | ?:[\\/]*)
  18880. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18881. ;;
  18882. *)
  18883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18884. for as_dir in $PATH
  18885. do
  18886. IFS=$as_save_IFS
  18887. case $as_dir in #(((
  18888. '') as_dir=./ ;;
  18889. */) ;;
  18890. *) as_dir=$as_dir/ ;;
  18891. esac
  18892. for ac_exec_ext in '' $ac_executable_extensions; do
  18893. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18894. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18895. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18896. break 2
  18897. fi
  18898. done
  18899. done
  18900. IFS=$as_save_IFS
  18901. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18902. ;;
  18903. esac
  18904. fi
  18905. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18906. if test -n "$ESD_CONFIG"; then
  18907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18908. printf "%s\n" "$ESD_CONFIG" >&6; }
  18909. else
  18910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18911. printf "%s\n" "no" >&6; }
  18912. fi
  18913. min_esd_version=0.2.8
  18914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18915. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18916. no_esd=""
  18917. if test "$ESD_CONFIG" = "no" ; then
  18918. no_esd=yes
  18919. else
  18920. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18921. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18922. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18923. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18924. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18925. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18926. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18927. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18928. if test "x$enable_esdtest" = "xyes" ; then
  18929. ac_ext=c
  18930. ac_cpp='$CPP $CPPFLAGS'
  18931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18934. ac_save_CFLAGS="$CFLAGS"
  18935. ac_save_LIBS="$LIBS"
  18936. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18937. LIBS="$LIBS $ESD_LIBS"
  18938. rm -f conf.esdtest
  18939. if test "$cross_compiling" = yes
  18940. then :
  18941. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18942. else $as_nop
  18943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18944. /* end confdefs.h. */
  18945. #include <stdio.h>
  18946. #include <stdlib.h>
  18947. #include <esd.h>
  18948. int main (void)
  18949. {
  18950. int major, minor, micro;
  18951. FILE *fp = fopen("conf.esdtest", "w");
  18952. if (fp) fclose(fp);
  18953. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18954. printf("%s, bad version string\n", "$min_esd_version");
  18955. exit(1);
  18956. }
  18957. if (($esd_major_version > major) ||
  18958. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18959. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18960. {
  18961. return 0;
  18962. }
  18963. else
  18964. {
  18965. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18966. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18967. printf("*** best to upgrade to the required version.\n");
  18968. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18969. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18970. printf("*** config.cache before re-running configure\n");
  18971. return 1;
  18972. }
  18973. }
  18974. _ACEOF
  18975. if ac_fn_c_try_run "$LINENO"
  18976. then :
  18977. else $as_nop
  18978. no_esd=yes
  18979. fi
  18980. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18981. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18982. fi
  18983. CFLAGS="$ac_save_CFLAGS"
  18984. LIBS="$ac_save_LIBS"
  18985. ac_ext=c
  18986. ac_cpp='$CPP $CPPFLAGS'
  18987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18990. fi
  18991. fi
  18992. if test "x$no_esd" = x ; then
  18993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18994. printf "%s\n" "yes" >&6; }
  18995. have_esd=yes
  18996. else
  18997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18998. printf "%s\n" "no" >&6; }
  18999. if test "$ESD_CONFIG" = "no" ; then
  19000. :
  19001. else
  19002. if test -f conf.esdtest ; then
  19003. :
  19004. else
  19005. echo "*** Could not run ESD test program, checking why..."
  19006. CFLAGS="$CFLAGS $ESD_CFLAGS"
  19007. LIBS="$LIBS $ESD_LIBS"
  19008. ac_ext=c
  19009. ac_cpp='$CPP $CPPFLAGS'
  19010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19014. /* end confdefs.h. */
  19015. #include <stdio.h>
  19016. #include <esd.h>
  19017. int
  19018. main (void)
  19019. {
  19020. return 0;
  19021. ;
  19022. return 0;
  19023. }
  19024. _ACEOF
  19025. if ac_fn_c_try_link "$LINENO"
  19026. then :
  19027. echo "*** The test program compiled, but did not run. This usually means"
  19028. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19029. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19030. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19031. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19032. echo "*** is required on your system"
  19033. echo "***"
  19034. echo "*** If you have an old version installed, it is best to remove it, although"
  19035. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19036. else $as_nop
  19037. echo "*** The test program failed to compile or link. See the file config.log for the"
  19038. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19039. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19040. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19041. fi
  19042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19043. conftest$ac_exeext conftest.$ac_ext
  19044. CFLAGS="$ac_save_CFLAGS"
  19045. LIBS="$ac_save_LIBS"
  19046. ac_ext=c
  19047. ac_cpp='$CPP $CPPFLAGS'
  19048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19051. fi
  19052. fi
  19053. ESD_CFLAGS=""
  19054. ESD_LIBS=""
  19055. have_esd=no
  19056. fi
  19057. rm -f conf.esdtest
  19058. fi
  19059. if test x$have_esd = xyes; then
  19060. # Check whether --enable-esd-shared was given.
  19061. if test ${enable_esd_shared+y}
  19062. then :
  19063. enableval=$enable_esd_shared;
  19064. else $as_nop
  19065. enable_esd_shared=yes
  19066. fi
  19067. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19068. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19069. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19070. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19071. if test x$have_loadso != xyes && \
  19072. test x$enable_esd_shared = xyes; then
  19073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19074. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19075. fi
  19076. if test x$have_loadso = xyes && \
  19077. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19078. echo "-- dynamic libesd -> $esd_lib"
  19079. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19080. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19081. else
  19082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19083. SUMMARY_audio="${SUMMARY_audio} esd"
  19084. fi
  19085. have_audio=yes
  19086. fi
  19087. fi
  19088. }
  19089. CheckPipewire()
  19090. {
  19091. # Check whether --enable-pipewire was given.
  19092. if test ${enable_pipewire+y}
  19093. then :
  19094. enableval=$enable_pipewire;
  19095. else $as_nop
  19096. enable_pipewire=yes
  19097. fi
  19098. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19099. pkg_failed=no
  19100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19101. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19102. if test -n "$PIPEWIRE_CFLAGS"; then
  19103. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19104. elif test -n "$PKG_CONFIG"; then
  19105. if test -n "$PKG_CONFIG" && \
  19106. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19107. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19108. ac_status=$?
  19109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19110. test $ac_status = 0; }; then
  19111. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19112. test "x$?" != "x0" && pkg_failed=yes
  19113. else
  19114. pkg_failed=yes
  19115. fi
  19116. else
  19117. pkg_failed=untried
  19118. fi
  19119. if test -n "$PIPEWIRE_LIBS"; then
  19120. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19121. elif test -n "$PKG_CONFIG"; then
  19122. if test -n "$PKG_CONFIG" && \
  19123. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19124. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19125. ac_status=$?
  19126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19127. test $ac_status = 0; }; then
  19128. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19129. test "x$?" != "x0" && pkg_failed=yes
  19130. else
  19131. pkg_failed=yes
  19132. fi
  19133. else
  19134. pkg_failed=untried
  19135. fi
  19136. if test $pkg_failed = yes; then
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19138. printf "%s\n" "no" >&6; }
  19139. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19140. _pkg_short_errors_supported=yes
  19141. else
  19142. _pkg_short_errors_supported=no
  19143. fi
  19144. if test $_pkg_short_errors_supported = yes; then
  19145. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19146. else
  19147. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19148. fi
  19149. # Put the nasty error message in config.log where it belongs
  19150. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19151. audio_pipewire=no
  19152. elif test $pkg_failed = untried; then
  19153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19154. printf "%s\n" "no" >&6; }
  19155. audio_pipewire=no
  19156. else
  19157. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19158. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19160. printf "%s\n" "yes" >&6; }
  19161. audio_pipewire=yes
  19162. fi
  19163. if test x$audio_pipewire = xyes; then
  19164. # Check whether --enable-pipewire-shared was given.
  19165. if test ${enable_pipewire_shared+y}
  19166. then :
  19167. enableval=$enable_pipewire_shared;
  19168. else $as_nop
  19169. enable_pipewire_shared=yes
  19170. fi
  19171. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19172. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19173. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19174. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19175. if test x$have_loadso != xyes && \
  19176. test x$enable_pipewire_shared = xyes; then
  19177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19178. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19179. fi
  19180. if test x$have_loadso = xyes && \
  19181. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19182. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19183. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19184. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19185. else
  19186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19187. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19188. fi
  19189. have_audio=yes
  19190. fi
  19191. fi
  19192. }
  19193. CheckPulseAudio()
  19194. {
  19195. # Check whether --enable-pulseaudio was given.
  19196. if test ${enable_pulseaudio+y}
  19197. then :
  19198. enableval=$enable_pulseaudio;
  19199. else $as_nop
  19200. enable_pulseaudio=yes
  19201. fi
  19202. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19203. pkg_failed=no
  19204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19205. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19206. if test -n "$PULSEAUDIO_CFLAGS"; then
  19207. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19208. elif test -n "$PKG_CONFIG"; then
  19209. if test -n "$PKG_CONFIG" && \
  19210. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19211. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19212. ac_status=$?
  19213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19214. test $ac_status = 0; }; then
  19215. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19216. test "x$?" != "x0" && pkg_failed=yes
  19217. else
  19218. pkg_failed=yes
  19219. fi
  19220. else
  19221. pkg_failed=untried
  19222. fi
  19223. if test -n "$PULSEAUDIO_LIBS"; then
  19224. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19225. elif test -n "$PKG_CONFIG"; then
  19226. if test -n "$PKG_CONFIG" && \
  19227. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19228. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19229. ac_status=$?
  19230. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19231. test $ac_status = 0; }; then
  19232. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19233. test "x$?" != "x0" && pkg_failed=yes
  19234. else
  19235. pkg_failed=yes
  19236. fi
  19237. else
  19238. pkg_failed=untried
  19239. fi
  19240. if test $pkg_failed = yes; then
  19241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19242. printf "%s\n" "no" >&6; }
  19243. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19244. _pkg_short_errors_supported=yes
  19245. else
  19246. _pkg_short_errors_supported=no
  19247. fi
  19248. if test $_pkg_short_errors_supported = yes; then
  19249. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19250. else
  19251. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19252. fi
  19253. # Put the nasty error message in config.log where it belongs
  19254. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19255. audio_pulseaudio=no
  19256. elif test $pkg_failed = untried; then
  19257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19258. printf "%s\n" "no" >&6; }
  19259. audio_pulseaudio=no
  19260. else
  19261. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19262. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19264. printf "%s\n" "yes" >&6; }
  19265. audio_pulseaudio=yes
  19266. fi
  19267. if test x$audio_pulseaudio = xyes; then
  19268. # Check whether --enable-pulseaudio-shared was given.
  19269. if test ${enable_pulseaudio_shared+y}
  19270. then :
  19271. enableval=$enable_pulseaudio_shared;
  19272. else $as_nop
  19273. enable_pulseaudio_shared=yes
  19274. fi
  19275. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19276. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19277. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19278. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19279. if test x$have_loadso != xyes && \
  19280. test x$enable_pulseaudio_shared = xyes; then
  19281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19282. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19283. fi
  19284. if test x$have_loadso = xyes && \
  19285. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19286. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19287. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19288. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19289. case "$host" in
  19290. # On Solaris, pulseaudio must be linked deferred explicitly
  19291. # to prevent undefined symbol failures.
  19292. *-*-solaris*)
  19293. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19295. esac
  19296. else
  19297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19298. SUMMARY_audio="${SUMMARY_audio} pulse"
  19299. fi
  19300. have_audio=yes
  19301. fi
  19302. fi
  19303. }
  19304. CheckARTSC()
  19305. {
  19306. # Check whether --enable-arts was given.
  19307. if test ${enable_arts+y}
  19308. then :
  19309. enableval=$enable_arts;
  19310. else $as_nop
  19311. enable_arts=yes
  19312. fi
  19313. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19314. # Extract the first word of "artsc-config", so it can be a program name with args.
  19315. set dummy artsc-config; ac_word=$2
  19316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19317. printf %s "checking for $ac_word... " >&6; }
  19318. if test ${ac_cv_path_ARTSCONFIG+y}
  19319. then :
  19320. printf %s "(cached) " >&6
  19321. else $as_nop
  19322. case $ARTSCONFIG in
  19323. [\\/]* | ?:[\\/]*)
  19324. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19325. ;;
  19326. *)
  19327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19328. for as_dir in $PATH
  19329. do
  19330. IFS=$as_save_IFS
  19331. case $as_dir in #(((
  19332. '') as_dir=./ ;;
  19333. */) ;;
  19334. *) as_dir=$as_dir/ ;;
  19335. esac
  19336. for ac_exec_ext in '' $ac_executable_extensions; do
  19337. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19338. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19339. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19340. break 2
  19341. fi
  19342. done
  19343. done
  19344. IFS=$as_save_IFS
  19345. ;;
  19346. esac
  19347. fi
  19348. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19349. if test -n "$ARTSCONFIG"; then
  19350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19351. printf "%s\n" "$ARTSCONFIG" >&6; }
  19352. else
  19353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19354. printf "%s\n" "no" >&6; }
  19355. fi
  19356. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19357. : # arts isn't installed
  19358. else
  19359. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19360. ARTS_LIBS=`$ARTSCONFIG --libs`
  19361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19362. printf %s "checking for aRts development environment... " >&6; }
  19363. audio_arts=no
  19364. save_CFLAGS="$CFLAGS"
  19365. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19367. /* end confdefs.h. */
  19368. #include <artsc.h>
  19369. int
  19370. main (void)
  19371. {
  19372. arts_stream_t stream;
  19373. ;
  19374. return 0;
  19375. }
  19376. _ACEOF
  19377. if ac_fn_c_try_compile "$LINENO"
  19378. then :
  19379. audio_arts=yes
  19380. fi
  19381. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19382. CFLAGS="$save_CFLAGS"
  19383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19384. printf "%s\n" "$audio_arts" >&6; }
  19385. if test x$audio_arts = xyes; then
  19386. # Check whether --enable-arts-shared was given.
  19387. if test ${enable_arts_shared+y}
  19388. then :
  19389. enableval=$enable_arts_shared;
  19390. else $as_nop
  19391. enable_arts_shared=yes
  19392. fi
  19393. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19394. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19395. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19396. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19397. if test x$have_loadso != xyes && \
  19398. test x$enable_arts_shared = xyes; then
  19399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19400. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19401. fi
  19402. if test x$have_loadso = xyes && \
  19403. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19404. echo "-- dynamic libartsc -> $arts_lib"
  19405. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19406. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19407. else
  19408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19409. SUMMARY_audio="${SUMMARY_audio} arts"
  19410. fi
  19411. have_audio=yes
  19412. fi
  19413. fi
  19414. fi
  19415. }
  19416. CheckNAS()
  19417. {
  19418. # Check whether --enable-nas was given.
  19419. if test ${enable_nas+y}
  19420. then :
  19421. enableval=$enable_nas;
  19422. else $as_nop
  19423. enable_nas=yes
  19424. fi
  19425. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19426. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19427. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19428. then :
  19429. have_nas_hdr=yes
  19430. fi
  19431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19432. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19433. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19434. then :
  19435. printf %s "(cached) " >&6
  19436. else $as_nop
  19437. ac_check_lib_save_LIBS=$LIBS
  19438. LIBS="-laudio $LIBS"
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. /* Override any GCC internal prototype to avoid an error.
  19442. Use char because int might match the return type of a GCC
  19443. builtin and then its argument prototype would still apply. */
  19444. char AuOpenServer ();
  19445. int
  19446. main (void)
  19447. {
  19448. return AuOpenServer ();
  19449. ;
  19450. return 0;
  19451. }
  19452. _ACEOF
  19453. if ac_fn_c_try_link "$LINENO"
  19454. then :
  19455. ac_cv_lib_audio_AuOpenServer=yes
  19456. else $as_nop
  19457. ac_cv_lib_audio_AuOpenServer=no
  19458. fi
  19459. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19460. conftest$ac_exeext conftest.$ac_ext
  19461. LIBS=$ac_check_lib_save_LIBS
  19462. fi
  19463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19464. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19465. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19466. then :
  19467. have_nas_lib=yes
  19468. fi
  19469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19470. printf %s "checking for NAS audio support... " >&6; }
  19471. have_nas=no
  19472. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19473. have_nas=yes
  19474. NAS_LIBS="-laudio"
  19475. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19476. have_nas=yes
  19477. NAS_CFLAGS="-I/usr/X11R6/include/"
  19478. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19479. fi
  19480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19481. printf "%s\n" "$have_nas" >&6; }
  19482. if test x$have_nas = xyes; then
  19483. # Check whether --enable-nas-shared was given.
  19484. if test ${enable_nas_shared+y}
  19485. then :
  19486. enableval=$enable_nas_shared;
  19487. else $as_nop
  19488. enable_nas_shared=yes
  19489. fi
  19490. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19491. if test x$have_loadso != xyes && \
  19492. test x$enable_nas_shared = xyes; then
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19494. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19495. fi
  19496. if test x$have_loadso = xyes && \
  19497. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19498. echo "-- dynamic libaudio -> $nas_lib"
  19499. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19500. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19501. else
  19502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19503. SUMMARY_audio="${SUMMARY_audio} nas"
  19504. fi
  19505. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19506. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19507. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19508. have_audio=yes
  19509. fi
  19510. fi
  19511. }
  19512. CheckSNDIO()
  19513. {
  19514. # Check whether --enable-sndio was given.
  19515. if test ${enable_sndio+y}
  19516. then :
  19517. enableval=$enable_sndio;
  19518. else $as_nop
  19519. enable_sndio=yes
  19520. fi
  19521. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19522. pkg_failed=no
  19523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19524. printf %s "checking for sndio... " >&6; }
  19525. if test -n "$SNDIO_CFLAGS"; then
  19526. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19527. elif test -n "$PKG_CONFIG"; then
  19528. if test -n "$PKG_CONFIG" && \
  19529. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19530. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19531. ac_status=$?
  19532. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19533. test $ac_status = 0; }; then
  19534. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19535. test "x$?" != "x0" && pkg_failed=yes
  19536. else
  19537. pkg_failed=yes
  19538. fi
  19539. else
  19540. pkg_failed=untried
  19541. fi
  19542. if test -n "$SNDIO_LIBS"; then
  19543. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19544. elif test -n "$PKG_CONFIG"; then
  19545. if test -n "$PKG_CONFIG" && \
  19546. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19547. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19548. ac_status=$?
  19549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19550. test $ac_status = 0; }; then
  19551. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 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 $pkg_failed = yes; then
  19560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19561. printf "%s\n" "no" >&6; }
  19562. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19563. _pkg_short_errors_supported=yes
  19564. else
  19565. _pkg_short_errors_supported=no
  19566. fi
  19567. if test $_pkg_short_errors_supported = yes; then
  19568. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19569. else
  19570. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19571. fi
  19572. # Put the nasty error message in config.log where it belongs
  19573. echo "$SNDIO_PKG_ERRORS" >&5
  19574. audio_sndio=no
  19575. elif test $pkg_failed = untried; then
  19576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19577. printf "%s\n" "no" >&6; }
  19578. audio_sndio=no
  19579. else
  19580. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19581. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19583. printf "%s\n" "yes" >&6; }
  19584. audio_sndio=yes
  19585. fi
  19586. if test x$audio_sndio = xyes; then
  19587. # Check whether --enable-sndio-shared was given.
  19588. if test ${enable_sndio_shared+y}
  19589. then :
  19590. enableval=$enable_sndio_shared;
  19591. else $as_nop
  19592. enable_sndio_shared=yes
  19593. fi
  19594. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19595. if test x$have_loadso != xyes && \
  19596. test x$enable_sndio_shared = xyes; then
  19597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19598. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19599. fi
  19600. if test x$have_loadso = xyes && \
  19601. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19602. echo "-- dynamic libsndio -> $sndio_lib"
  19603. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19604. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19605. else
  19606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19607. SUMMARY_audio="${SUMMARY_audio} sndio"
  19608. fi
  19609. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19610. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19611. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19612. have_audio=yes
  19613. fi
  19614. fi
  19615. }
  19616. CheckFusionSound()
  19617. {
  19618. # Check whether --enable-fusionsound was given.
  19619. if test ${enable_fusionsound+y}
  19620. then :
  19621. enableval=$enable_fusionsound;
  19622. else $as_nop
  19623. enable_fusionsound=no
  19624. fi
  19625. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19626. pkg_failed=no
  19627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19628. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19629. if test -n "$FUSIONSOUND_CFLAGS"; then
  19630. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19631. elif test -n "$PKG_CONFIG"; then
  19632. if test -n "$PKG_CONFIG" && \
  19633. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19634. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19635. ac_status=$?
  19636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19637. test $ac_status = 0; }; then
  19638. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19639. test "x$?" != "x0" && pkg_failed=yes
  19640. else
  19641. pkg_failed=yes
  19642. fi
  19643. else
  19644. pkg_failed=untried
  19645. fi
  19646. if test -n "$FUSIONSOUND_LIBS"; then
  19647. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19648. elif test -n "$PKG_CONFIG"; then
  19649. if test -n "$PKG_CONFIG" && \
  19650. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19651. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19652. ac_status=$?
  19653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19654. test $ac_status = 0; }; then
  19655. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19656. test "x$?" != "x0" && pkg_failed=yes
  19657. else
  19658. pkg_failed=yes
  19659. fi
  19660. else
  19661. pkg_failed=untried
  19662. fi
  19663. if test $pkg_failed = yes; then
  19664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19665. printf "%s\n" "no" >&6; }
  19666. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19667. _pkg_short_errors_supported=yes
  19668. else
  19669. _pkg_short_errors_supported=no
  19670. fi
  19671. if test $_pkg_short_errors_supported = yes; then
  19672. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19673. else
  19674. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19675. fi
  19676. # Put the nasty error message in config.log where it belongs
  19677. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19678. fusionsound=no
  19679. elif test $pkg_failed = untried; then
  19680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19681. printf "%s\n" "no" >&6; }
  19682. fusionsound=no
  19683. else
  19684. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19685. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19687. printf "%s\n" "yes" >&6; }
  19688. fusionsound=yes
  19689. fi
  19690. if test x$fusionsound = xyes; then
  19691. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19692. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19693. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19694. # Check whether --enable-fusionsound-shared was given.
  19695. if test ${enable_fusionsound_shared+y}
  19696. then :
  19697. enableval=$enable_fusionsound_shared;
  19698. else $as_nop
  19699. enable_fusionsound_shared=yes
  19700. fi
  19701. fusionsound_shared=no
  19702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19703. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19704. if test x$have_loadso != xyes && \
  19705. test x$enable_fusionsound_shared = xyes; then
  19706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19707. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19708. fi
  19709. if test x$have_loadso = xyes && \
  19710. test x$enable_fusionsound_shared = xyes; then
  19711. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19712. fusionsound_shared=yes
  19713. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19714. else
  19715. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19716. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19717. fi
  19718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19719. printf "%s\n" "$fusionsound_shared" >&6; }
  19720. have_audio=yes
  19721. fi
  19722. fi
  19723. }
  19724. CheckDiskAudio()
  19725. {
  19726. # Check whether --enable-diskaudio was given.
  19727. if test ${enable_diskaudio+y}
  19728. then :
  19729. enableval=$enable_diskaudio;
  19730. else $as_nop
  19731. enable_diskaudio=yes
  19732. fi
  19733. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19734. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19735. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19736. SUMMARY_audio="${SUMMARY_audio} disk"
  19737. have_audio=yes
  19738. fi
  19739. }
  19740. CheckDummyAudio()
  19741. {
  19742. # Check whether --enable-dummyaudio was given.
  19743. if test ${enable_dummyaudio+y}
  19744. then :
  19745. enableval=$enable_dummyaudio;
  19746. else $as_nop
  19747. enable_dummyaudio=yes
  19748. fi
  19749. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19750. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19751. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19752. SUMMARY_audio="${SUMMARY_audio} dummy"
  19753. have_audio=yes
  19754. fi
  19755. }
  19756. CheckLibSampleRate()
  19757. {
  19758. # Check whether --enable-libsamplerate was given.
  19759. if test ${enable_libsamplerate+y}
  19760. then :
  19761. enableval=$enable_libsamplerate;
  19762. else $as_nop
  19763. enable_libsamplerate=yes
  19764. fi
  19765. if test x$enable_libsamplerate = xyes; then
  19766. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19767. if test "x$ac_cv_header_samplerate_h" = xyes
  19768. then :
  19769. have_samplerate_h_hdr=yes
  19770. else $as_nop
  19771. have_samplerate_h_hdr=no
  19772. fi
  19773. if test x$have_samplerate_h_hdr = xyes; then
  19774. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19775. # Check whether --enable-libsamplerate-shared was given.
  19776. if test ${enable_libsamplerate_shared+y}
  19777. then :
  19778. enableval=$enable_libsamplerate_shared;
  19779. else $as_nop
  19780. enable_libsamplerate_shared=yes
  19781. fi
  19782. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19783. if test x$have_loadso != xyes && \
  19784. test x$enable_libsamplerate_shared = xyes; then
  19785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19786. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19787. fi
  19788. if test x$have_loadso = xyes && \
  19789. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19790. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19791. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19792. else
  19793. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19794. fi
  19795. fi
  19796. fi
  19797. }
  19798. CheckARM()
  19799. {
  19800. # Check whether --enable-arm-simd was given.
  19801. if test ${enable_arm_simd+y}
  19802. then :
  19803. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19804. else $as_nop
  19805. enable_arm_simd=no
  19806. fi
  19807. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19808. save_CFLAGS="$CFLAGS"
  19809. have_arm_simd=no
  19810. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19812. printf %s "checking for ARM SIMD... " >&6; }
  19813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19814. /* end confdefs.h. */
  19815. .text
  19816. .arch armv6
  19817. .object_arch armv4
  19818. .arm
  19819. .altmacro
  19820. #ifndef __ARM_EABI__
  19821. #error EABI is required (to be sure that calling conventions are compatible)
  19822. #endif
  19823. pld [r0]
  19824. uqadd8 r0, r0, r0
  19825. _ACEOF
  19826. if ac_fn_c_try_compile "$LINENO"
  19827. then :
  19828. have_arm_simd=yes
  19829. fi
  19830. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19832. printf "%s\n" "$have_arm_simd" >&6; }
  19833. CFLAGS="$save_CFLAGS"
  19834. if test x$have_arm_simd = xyes; then
  19835. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19836. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19837. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19838. fi
  19839. fi
  19840. }
  19841. CheckNEON()
  19842. {
  19843. # Check whether --enable-arm-neon was given.
  19844. if test ${enable_arm_neon+y}
  19845. then :
  19846. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19847. else $as_nop
  19848. enable_arm_neon=no
  19849. fi
  19850. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19851. save_CFLAGS="$CFLAGS"
  19852. have_arm_neon=no
  19853. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19855. printf %s "checking for ARM NEON... " >&6; }
  19856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19857. /* end confdefs.h. */
  19858. .text
  19859. .fpu neon
  19860. .arch armv7a
  19861. .object_arch armv4
  19862. .eabi_attribute 10, 0
  19863. .arm
  19864. .altmacro
  19865. #ifndef __ARM_EABI__
  19866. #error EABI is required (to be sure that calling conventions are compatible)
  19867. #endif
  19868. pld [r0]
  19869. vmovn.u16 d0, q0
  19870. _ACEOF
  19871. if ac_fn_c_try_compile "$LINENO"
  19872. then :
  19873. have_arm_neon=yes
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19877. printf "%s\n" "$have_arm_neon" >&6; }
  19878. CFLAGS="$save_CFLAGS"
  19879. if test x$have_arm_neon = xyes; then
  19880. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19881. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19882. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19883. fi
  19884. fi
  19885. }
  19886. CheckObjectiveCARC()
  19887. {
  19888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19889. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19890. have_clang_objc_arc=no
  19891. save_CFLAGS="$CFLAGS"
  19892. CFLAGS="$save_CFLAGS -fobjc-arc"
  19893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19894. /* end confdefs.h. */
  19895. int x = 0;
  19896. int
  19897. main (void)
  19898. {
  19899. ;
  19900. return 0;
  19901. }
  19902. _ACEOF
  19903. if ac_fn_c_try_compile "$LINENO"
  19904. then :
  19905. have_clang_objc_arc=yes
  19906. fi
  19907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19909. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19910. CFLAGS="$save_CFLAGS"
  19911. if test x$have_clang_objc_arc = xyes; then
  19912. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19913. fi
  19914. }
  19915. CheckGDwarf4()
  19916. {
  19917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19918. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19919. have_gcc_gdwarf4=no
  19920. save_CFLAGS="$CFLAGS"
  19921. CFLAGS="$save_CFLAGS -gdwarf-4"
  19922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19923. /* end confdefs.h. */
  19924. int x = 0;
  19925. int
  19926. main (void)
  19927. {
  19928. ;
  19929. return 0;
  19930. }
  19931. _ACEOF
  19932. if ac_fn_c_try_compile "$LINENO"
  19933. then :
  19934. have_gcc_gdwarf4=yes
  19935. fi
  19936. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19938. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19939. CFLAGS="$save_CFLAGS"
  19940. if test x$have_gcc_gdwarf4 = xyes; then
  19941. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19942. fi
  19943. }
  19944. CheckVisibilityHidden()
  19945. {
  19946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19947. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19948. have_gcc_fvisibility=no
  19949. visibility_CFLAGS="-fvisibility=hidden"
  19950. save_CFLAGS="$CFLAGS"
  19951. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19953. /* end confdefs.h. */
  19954. #if !defined(__GNUC__) || __GNUC__ < 4
  19955. #error SDL only uses visibility attributes in GCC 4 or newer
  19956. #endif
  19957. int
  19958. main (void)
  19959. {
  19960. ;
  19961. return 0;
  19962. }
  19963. _ACEOF
  19964. if ac_fn_c_try_compile "$LINENO"
  19965. then :
  19966. have_gcc_fvisibility=yes
  19967. fi
  19968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19970. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19971. CFLAGS="$save_CFLAGS"
  19972. if test x$have_gcc_fvisibility = xyes; then
  19973. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19974. fi
  19975. }
  19976. CheckNoStrictAliasing()
  19977. {
  19978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19979. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19980. have_gcc_no_strict_aliasing=no
  19981. save_CFLAGS="$CFLAGS"
  19982. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19984. /* end confdefs.h. */
  19985. int x = 0;
  19986. int
  19987. main (void)
  19988. {
  19989. ;
  19990. return 0;
  19991. }
  19992. _ACEOF
  19993. if ac_fn_c_try_compile "$LINENO"
  19994. then :
  19995. have_gcc_no_strict_aliasing=yes
  19996. fi
  19997. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19999. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  20000. CFLAGS="$save_CFLAGS"
  20001. if test x$have_gcc_no_strict_aliasing = xyes; then
  20002. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  20003. fi
  20004. }
  20005. CheckWerror()
  20006. {
  20007. # Check whether --enable-werror was given.
  20008. if test ${enable_werror+y}
  20009. then :
  20010. enableval=$enable_werror; enable_werror=$enableval
  20011. else $as_nop
  20012. enable_werror=no
  20013. fi
  20014. if test x$enable_werror = xyes; then
  20015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  20016. printf %s "checking for GCC -Werror option... " >&6; }
  20017. have_gcc_werror=no
  20018. save_CFLAGS="$CFLAGS"
  20019. CFLAGS="$save_CFLAGS -Werror"
  20020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20021. /* end confdefs.h. */
  20022. int x = 0;
  20023. int
  20024. main (void)
  20025. {
  20026. ;
  20027. return 0;
  20028. }
  20029. _ACEOF
  20030. if ac_fn_c_try_compile "$LINENO"
  20031. then :
  20032. have_gcc_werror=yes
  20033. fi
  20034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20036. printf "%s\n" "$have_gcc_werror" >&6; }
  20037. CFLAGS="$save_CFLAGS"
  20038. if test x$have_gcc_werror = xyes; then
  20039. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20040. fi
  20041. fi
  20042. }
  20043. CheckNoErrorDeprecatedDeclarationsWerror()
  20044. {
  20045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20046. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20047. have_gcc_no_werror_deprecated_declarations=no
  20048. save_CFLAGS="$CFLAGS"
  20049. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20051. /* end confdefs.h. */
  20052. int x = 0;
  20053. int
  20054. main (void)
  20055. {
  20056. ;
  20057. return 0;
  20058. }
  20059. _ACEOF
  20060. if ac_fn_c_try_compile "$LINENO"
  20061. then :
  20062. have_gcc_no_werror_deprecated_declarations=yes
  20063. fi
  20064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20066. printf "%s\n" "$have_gcc_werror" >&6; }
  20067. CFLAGS="$save_CFLAGS"
  20068. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20069. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20070. fi
  20071. }
  20072. CheckDeclarationAfterStatement()
  20073. {
  20074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20075. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20076. have_gcc_declaration_after_statement=no
  20077. save_CFLAGS="$CFLAGS"
  20078. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20080. /* end confdefs.h. */
  20081. int x = 0;
  20082. int
  20083. main (void)
  20084. {
  20085. ;
  20086. return 0;
  20087. }
  20088. _ACEOF
  20089. if ac_fn_c_try_compile "$LINENO"
  20090. then :
  20091. have_gcc_declaration_after_statement=yes
  20092. fi
  20093. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20095. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20096. CFLAGS="$save_CFLAGS"
  20097. if test x$have_gcc_declaration_after_statement = xyes; then
  20098. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20099. fi
  20100. }
  20101. CheckWarnAll()
  20102. {
  20103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20104. printf %s "checking for GCC -Wall option... " >&6; }
  20105. have_gcc_Wall=no
  20106. save_CFLAGS="$CFLAGS"
  20107. CFLAGS="$save_CFLAGS -Wall"
  20108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20109. /* end confdefs.h. */
  20110. int x = 0;
  20111. int
  20112. main (void)
  20113. {
  20114. ;
  20115. return 0;
  20116. }
  20117. _ACEOF
  20118. if ac_fn_c_try_compile "$LINENO"
  20119. then :
  20120. have_gcc_Wall=yes
  20121. fi
  20122. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20124. printf "%s\n" "$have_gcc_Wall" >&6; }
  20125. CFLAGS="$save_CFLAGS"
  20126. if test x$have_gcc_Wall = xyes; then
  20127. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20129. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20130. need_gcc_Wno_multichar=no
  20131. case "$host" in
  20132. *-*-haiku*)
  20133. need_gcc_Wno_multichar=yes
  20134. ;;
  20135. esac
  20136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20137. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20138. if test x$need_gcc_Wno_multichar = xyes; then
  20139. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20140. fi
  20141. fi
  20142. }
  20143. CheckUnusedLocalTypedefs()
  20144. {
  20145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20146. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20147. have_gcc_unused_local_typedefs=no
  20148. save_CFLAGS="$CFLAGS"
  20149. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20151. /* end confdefs.h. */
  20152. int x = 0;
  20153. int
  20154. main (void)
  20155. {
  20156. ;
  20157. return 0;
  20158. }
  20159. _ACEOF
  20160. if ac_fn_c_try_compile "$LINENO"
  20161. then :
  20162. have_gcc_unused_local_typedefs=yes
  20163. fi
  20164. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20166. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20167. CFLAGS="$save_CFLAGS"
  20168. if test x$have_gcc_unused_local_typedefs = xyes; then
  20169. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20170. fi
  20171. }
  20172. CheckWayland()
  20173. {
  20174. # Check whether --enable-video-wayland was given.
  20175. if test ${enable_video_wayland+y}
  20176. then :
  20177. enableval=$enable_video_wayland;
  20178. else $as_nop
  20179. enable_video_wayland=yes
  20180. fi
  20181. # Check whether --enable-video-wayland-qt-touch was given.
  20182. if test ${enable_video_wayland_qt_touch+y}
  20183. then :
  20184. enableval=$enable_video_wayland_qt_touch;
  20185. else $as_nop
  20186. enable_video_wayland_qt_touch=yes
  20187. fi
  20188. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20190. printf %s "checking for Wayland support... " >&6; }
  20191. video_wayland=no
  20192. if test x$video_opengl_egl = xyes && \
  20193. test x$video_opengles_v2 = xyes; then
  20194. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20195. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20196. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20197. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20198. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20199. then :
  20200. WAYLAND_SCANNER_CODE_MODE=private-code
  20201. else $as_nop
  20202. WAYLAND_SCANNER_CODE_MODE=code
  20203. fi
  20204. video_wayland=yes
  20205. fi
  20206. fi
  20207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20208. printf "%s\n" "$video_wayland" >&6; }
  20209. if test x$video_wayland = xyes; then
  20210. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20211. if test x$enable_video_wayland_qt_touch = xyes; then
  20212. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20213. fi
  20214. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20215. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20216. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20217. # Check whether --enable-wayland-shared was given.
  20218. if test ${enable_wayland_shared+y}
  20219. then :
  20220. enableval=$enable_wayland_shared;
  20221. else $as_nop
  20222. enable_wayland_shared=maybe
  20223. fi
  20224. case "$host" in
  20225. *)
  20226. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20227. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20228. if test x$wayland_egl_lib = x; then
  20229. # This works in Ubuntu 13.10, maybe others
  20230. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20231. fi
  20232. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20233. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20234. ;;
  20235. esac
  20236. if test x$enable_wayland_shared = xmaybe; then
  20237. enable_wayland_shared=yes
  20238. fi
  20239. if test x$have_loadso != xyes && \
  20240. test x$enable_wayland_shared = xyes; then
  20241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20242. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20243. enable_wayland_shared=no
  20244. fi
  20245. if test x$have_loadso = xyes && \
  20246. test x$enable_wayland_shared = xyes && \
  20247. test x$wayland_client_lib != x && \
  20248. test x$wayland_egl_lib != x && \
  20249. test x$wayland_cursor_lib != x && \
  20250. test x$xkbcommon_lib != x; then
  20251. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20252. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20253. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20254. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20255. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20256. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20257. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20258. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20259. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20260. else
  20261. enable_wayland_shared=no
  20262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20263. SUMMARY_video="${SUMMARY_video} wayland"
  20264. fi
  20265. have_video=yes
  20266. # Check whether --enable-libdecor was given.
  20267. if test ${enable_libdecor+y}
  20268. then :
  20269. enableval=$enable_libdecor;
  20270. else $as_nop
  20271. enable_libdecor=yes
  20272. fi
  20273. if test x$enable_libdecor = xyes; then
  20274. pkg_failed=no
  20275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20276. printf %s "checking for libdecor-0... " >&6; }
  20277. if test -n "$DECOR_CFLAGS"; then
  20278. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20279. elif test -n "$PKG_CONFIG"; then
  20280. if test -n "$PKG_CONFIG" && \
  20281. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20282. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20283. ac_status=$?
  20284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20285. test $ac_status = 0; }; then
  20286. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20287. test "x$?" != "x0" && pkg_failed=yes
  20288. else
  20289. pkg_failed=yes
  20290. fi
  20291. else
  20292. pkg_failed=untried
  20293. fi
  20294. if test -n "$DECOR_LIBS"; then
  20295. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20296. elif test -n "$PKG_CONFIG"; then
  20297. if test -n "$PKG_CONFIG" && \
  20298. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20299. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20300. ac_status=$?
  20301. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20302. test $ac_status = 0; }; then
  20303. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20304. test "x$?" != "x0" && pkg_failed=yes
  20305. else
  20306. pkg_failed=yes
  20307. fi
  20308. else
  20309. pkg_failed=untried
  20310. fi
  20311. if test $pkg_failed = yes; then
  20312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20313. printf "%s\n" "no" >&6; }
  20314. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20315. _pkg_short_errors_supported=yes
  20316. else
  20317. _pkg_short_errors_supported=no
  20318. fi
  20319. if test $_pkg_short_errors_supported = yes; then
  20320. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20321. else
  20322. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20323. fi
  20324. # Put the nasty error message in config.log where it belongs
  20325. echo "$DECOR_PKG_ERRORS" >&5
  20326. video_libdecor=no
  20327. elif test $pkg_failed = untried; then
  20328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20329. printf "%s\n" "no" >&6; }
  20330. video_libdecor=no
  20331. else
  20332. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20333. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20335. printf "%s\n" "yes" >&6; }
  20336. video_libdecor=yes
  20337. fi
  20338. if test x$video_libdecor = xyes; then
  20339. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20340. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20341. # Check whether --enable-libdecor-shared was given.
  20342. if test ${enable_libdecor_shared+y}
  20343. then :
  20344. enableval=$enable_libdecor_shared;
  20345. else $as_nop
  20346. enable_libdecor_shared=yes
  20347. fi
  20348. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20349. if test x$enable_wayland_shared != xyes; then
  20350. enable_libdecor_shared=no
  20351. fi
  20352. if test x$have_loadso != xyes && \
  20353. test x$enable_libdecor_shared = xyes; then
  20354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20355. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20356. fi
  20357. if test x$have_loadso = xyes && \
  20358. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20359. echo "-- dynamic libdecor -> $decor_lib"
  20360. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20361. else
  20362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20363. fi
  20364. saved_cflags=$CFLAGS
  20365. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20367. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20368. if test ${ac_cv_c_undeclared_builtin_options+y}
  20369. then :
  20370. printf %s "(cached) " >&6
  20371. else $as_nop
  20372. ac_save_CFLAGS=$CFLAGS
  20373. ac_cv_c_undeclared_builtin_options='cannot detect'
  20374. for ac_arg in '' -fno-builtin; do
  20375. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20376. # This test program should *not* compile successfully.
  20377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20378. /* end confdefs.h. */
  20379. int
  20380. main (void)
  20381. {
  20382. (void) strchr;
  20383. ;
  20384. return 0;
  20385. }
  20386. _ACEOF
  20387. if ac_fn_c_try_compile "$LINENO"
  20388. then :
  20389. else $as_nop
  20390. # This test program should compile successfully.
  20391. # No library function is consistently available on
  20392. # freestanding implementations, so test against a dummy
  20393. # declaration. Include always-available headers on the
  20394. # off chance that they somehow elicit warnings.
  20395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20396. /* end confdefs.h. */
  20397. #include <float.h>
  20398. #include <limits.h>
  20399. #include <stdarg.h>
  20400. #include <stddef.h>
  20401. extern void ac_decl (int, char *);
  20402. int
  20403. main (void)
  20404. {
  20405. (void) ac_decl (0, (char *) 0);
  20406. (void) ac_decl;
  20407. ;
  20408. return 0;
  20409. }
  20410. _ACEOF
  20411. if ac_fn_c_try_compile "$LINENO"
  20412. then :
  20413. if test x"$ac_arg" = x
  20414. then :
  20415. ac_cv_c_undeclared_builtin_options='none needed'
  20416. else $as_nop
  20417. ac_cv_c_undeclared_builtin_options=$ac_arg
  20418. fi
  20419. break
  20420. fi
  20421. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20424. done
  20425. CFLAGS=$ac_save_CFLAGS
  20426. fi
  20427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20428. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20429. case $ac_cv_c_undeclared_builtin_options in #(
  20430. 'cannot detect') :
  20431. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20432. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20433. as_fn_error $? "cannot make $CC report undeclared builtins
  20434. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20435. 'none needed') :
  20436. ac_c_undeclared_builtin_options='' ;; #(
  20437. *) :
  20438. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20439. esac
  20440. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20441. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20442. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20443. then :
  20444. ac_have_decl=1
  20445. else $as_nop
  20446. ac_have_decl=0
  20447. fi
  20448. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20449. if test $ac_have_decl = 1
  20450. then :
  20451. libdecor_get_min_max=yes
  20452. fi
  20453. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20454. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20455. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20456. then :
  20457. ac_have_decl=1
  20458. else $as_nop
  20459. ac_have_decl=0
  20460. fi
  20461. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20462. if test $ac_have_decl = 1
  20463. then :
  20464. libdecor_get_min_max=yes
  20465. fi
  20466. if test x$libdecor_get_min_max = xyes; then
  20467. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20468. fi
  20469. CFLAGS="$saved_cflags"
  20470. fi
  20471. fi
  20472. fi
  20473. fi
  20474. }
  20475. CheckNativeClient()
  20476. {
  20477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20478. /* end confdefs.h. */
  20479. #if !defined(__native_client__)
  20480. #error "NO NACL"
  20481. #endif
  20482. int
  20483. main (void)
  20484. {
  20485. ;
  20486. return 0;
  20487. }
  20488. _ACEOF
  20489. if ac_fn_c_try_compile "$LINENO"
  20490. then :
  20491. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20492. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20493. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20494. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20495. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20496. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20497. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20498. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20499. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20500. SUMMARY_audio="${SUMMARY_audio} nacl"
  20501. have_audio=yes
  20502. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20503. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20504. have_video=yes
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20507. }
  20508. CheckRPI()
  20509. {
  20510. # Check whether --enable-video-rpi was given.
  20511. if test ${enable_video_rpi+y}
  20512. then :
  20513. enableval=$enable_video_rpi;
  20514. else $as_nop
  20515. enable_video_rpi=yes
  20516. fi
  20517. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20518. pkg_failed=no
  20519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20520. printf %s "checking for bcm_host brcmegl... " >&6; }
  20521. if test -n "$RPI_CFLAGS"; then
  20522. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20523. elif test -n "$PKG_CONFIG"; then
  20524. if test -n "$PKG_CONFIG" && \
  20525. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20526. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20527. ac_status=$?
  20528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20529. test $ac_status = 0; }; then
  20530. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20531. test "x$?" != "x0" && pkg_failed=yes
  20532. else
  20533. pkg_failed=yes
  20534. fi
  20535. else
  20536. pkg_failed=untried
  20537. fi
  20538. if test -n "$RPI_LIBS"; then
  20539. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20540. elif test -n "$PKG_CONFIG"; then
  20541. if test -n "$PKG_CONFIG" && \
  20542. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20543. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20544. ac_status=$?
  20545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20546. test $ac_status = 0; }; then
  20547. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20548. test "x$?" != "x0" && pkg_failed=yes
  20549. else
  20550. pkg_failed=yes
  20551. fi
  20552. else
  20553. pkg_failed=untried
  20554. fi
  20555. if test $pkg_failed = yes; then
  20556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20557. printf "%s\n" "no" >&6; }
  20558. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20559. _pkg_short_errors_supported=yes
  20560. else
  20561. _pkg_short_errors_supported=no
  20562. fi
  20563. if test $_pkg_short_errors_supported = yes; then
  20564. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20565. else
  20566. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20567. fi
  20568. # Put the nasty error message in config.log where it belongs
  20569. echo "$RPI_PKG_ERRORS" >&5
  20570. video_rpi=no
  20571. elif test $pkg_failed = untried; then
  20572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20573. printf "%s\n" "no" >&6; }
  20574. video_rpi=no
  20575. else
  20576. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20577. RPI_LIBS=$pkg_cv_RPI_LIBS
  20578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20579. printf "%s\n" "yes" >&6; }
  20580. video_rpi=yes
  20581. fi
  20582. if test x$video_rpi = xno; then
  20583. if test x$ARCH = xnetbsd; then
  20584. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20585. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20586. else
  20587. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20588. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20589. fi
  20590. fi
  20591. # Save the original compiler flags and libraries
  20592. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20593. # Add the Raspberry Pi compiler flags and libraries
  20594. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20596. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20597. have_video_rpi=no
  20598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20599. /* end confdefs.h. */
  20600. #include <bcm_host.h>
  20601. #include <EGL/eglplatform.h>
  20602. int
  20603. main (void)
  20604. {
  20605. EGL_DISPMANX_WINDOW_T window;
  20606. bcm_host_init();
  20607. ;
  20608. return 0;
  20609. }
  20610. _ACEOF
  20611. if ac_fn_c_try_link "$LINENO"
  20612. then :
  20613. have_video_rpi=yes
  20614. fi
  20615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20616. conftest$ac_exeext conftest.$ac_ext
  20617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20618. printf "%s\n" "$have_video_rpi" >&6; }
  20619. # Restore the compiler flags and libraries
  20620. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20621. if test x$have_video_rpi = xyes; then
  20622. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20623. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20624. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20626. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20627. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20628. SUMMARY_video="${SUMMARY_video} rpi"
  20629. have_video=yes
  20630. fi
  20631. fi
  20632. }
  20633. CheckX11()
  20634. {
  20635. # Check whether --enable-video-x11 was given.
  20636. if test ${enable_video_x11+y}
  20637. then :
  20638. enableval=$enable_video_x11;
  20639. else $as_nop
  20640. enable_video_x11=yes
  20641. case "$host" in
  20642. *-*-darwin*|*-ios-*)
  20643. enable_video_x11=no
  20644. ;;
  20645. esac
  20646. fi
  20647. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20648. case "$host" in
  20649. *-*-darwin*)
  20650. # This isn't necessary for X11, but fixes GLX detection
  20651. if test "x$x_includes" = xNONE && \
  20652. test "x$x_libraries" = xNONE && \
  20653. test -d /opt/X11/include && \
  20654. test -d /opt/X11/lib; then
  20655. x_includes="/opt/X11/include"
  20656. x_libraries="/opt/X11/lib"
  20657. fi
  20658. ;;
  20659. esac
  20660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20661. printf %s "checking for X... " >&6; }
  20662. # Check whether --with-x was given.
  20663. if test ${with_x+y}
  20664. then :
  20665. withval=$with_x;
  20666. fi
  20667. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20668. if test "x$with_x" = xno; then
  20669. # The user explicitly disabled X.
  20670. have_x=disabled
  20671. else
  20672. case $x_includes,$x_libraries in #(
  20673. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20674. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20675. then :
  20676. printf %s "(cached) " >&6
  20677. else $as_nop
  20678. # One or both of the vars are not set, and there is no cached value.
  20679. ac_x_includes=no
  20680. ac_x_libraries=no
  20681. # Do we need to do anything special at all?
  20682. ac_save_LIBS=$LIBS
  20683. LIBS="-lX11 $LIBS"
  20684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20685. /* end confdefs.h. */
  20686. #include <X11/Xlib.h>
  20687. int
  20688. main (void)
  20689. {
  20690. XrmInitialize ()
  20691. ;
  20692. return 0;
  20693. }
  20694. _ACEOF
  20695. if ac_fn_c_try_link "$LINENO"
  20696. then :
  20697. # We can compile and link X programs with no special options.
  20698. ac_x_includes=
  20699. ac_x_libraries=
  20700. fi
  20701. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20702. conftest$ac_exeext conftest.$ac_ext
  20703. LIBS="$ac_save_LIBS"
  20704. # If that didn't work, only try xmkmf and file system searches
  20705. # for native compilation.
  20706. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20707. then :
  20708. rm -f -r conftest.dir
  20709. if mkdir conftest.dir; then
  20710. cd conftest.dir
  20711. cat >Imakefile <<'_ACEOF'
  20712. incroot:
  20713. @echo incroot='${INCROOT}'
  20714. usrlibdir:
  20715. @echo usrlibdir='${USRLIBDIR}'
  20716. libdir:
  20717. @echo libdir='${LIBDIR}'
  20718. _ACEOF
  20719. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20720. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20721. for ac_var in incroot usrlibdir libdir; do
  20722. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20723. done
  20724. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20725. for ac_extension in a so sl dylib la dll; do
  20726. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20727. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20728. ac_im_usrlibdir=$ac_im_libdir; break
  20729. fi
  20730. done
  20731. # Screen out bogus values from the imake configuration. They are
  20732. # bogus both because they are the default anyway, and because
  20733. # using them would break gcc on systems where it needs fixed includes.
  20734. case $ac_im_incroot in
  20735. /usr/include) ac_x_includes= ;;
  20736. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20737. esac
  20738. case $ac_im_usrlibdir in
  20739. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20740. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20741. esac
  20742. fi
  20743. cd ..
  20744. rm -f -r conftest.dir
  20745. fi
  20746. # Standard set of common directories for X headers.
  20747. # Check X11 before X11Rn because it is often a symlink to the current release.
  20748. ac_x_header_dirs='
  20749. /usr/X11/include
  20750. /usr/X11R7/include
  20751. /usr/X11R6/include
  20752. /usr/X11R5/include
  20753. /usr/X11R4/include
  20754. /usr/include/X11
  20755. /usr/include/X11R7
  20756. /usr/include/X11R6
  20757. /usr/include/X11R5
  20758. /usr/include/X11R4
  20759. /usr/local/X11/include
  20760. /usr/local/X11R7/include
  20761. /usr/local/X11R6/include
  20762. /usr/local/X11R5/include
  20763. /usr/local/X11R4/include
  20764. /usr/local/include/X11
  20765. /usr/local/include/X11R7
  20766. /usr/local/include/X11R6
  20767. /usr/local/include/X11R5
  20768. /usr/local/include/X11R4
  20769. /opt/X11/include
  20770. /usr/X386/include
  20771. /usr/x386/include
  20772. /usr/XFree86/include/X11
  20773. /usr/include
  20774. /usr/local/include
  20775. /usr/unsupported/include
  20776. /usr/athena/include
  20777. /usr/local/x11r5/include
  20778. /usr/lpp/Xamples/include
  20779. /usr/openwin/include
  20780. /usr/openwin/share/include'
  20781. if test "$ac_x_includes" = no; then
  20782. # Guess where to find include files, by looking for Xlib.h.
  20783. # First, try using that file with no special directory specified.
  20784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20785. /* end confdefs.h. */
  20786. #include <X11/Xlib.h>
  20787. _ACEOF
  20788. if ac_fn_c_try_cpp "$LINENO"
  20789. then :
  20790. # We can compile using X headers with no special include directory.
  20791. ac_x_includes=
  20792. else $as_nop
  20793. for ac_dir in $ac_x_header_dirs; do
  20794. if test -r "$ac_dir/X11/Xlib.h"; then
  20795. ac_x_includes=$ac_dir
  20796. break
  20797. fi
  20798. done
  20799. fi
  20800. rm -f conftest.err conftest.i conftest.$ac_ext
  20801. fi # $ac_x_includes = no
  20802. if test "$ac_x_libraries" = no; then
  20803. # Check for the libraries.
  20804. # See if we find them without any special options.
  20805. # Don't add to $LIBS permanently.
  20806. ac_save_LIBS=$LIBS
  20807. LIBS="-lX11 $LIBS"
  20808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20809. /* end confdefs.h. */
  20810. #include <X11/Xlib.h>
  20811. int
  20812. main (void)
  20813. {
  20814. XrmInitialize ()
  20815. ;
  20816. return 0;
  20817. }
  20818. _ACEOF
  20819. if ac_fn_c_try_link "$LINENO"
  20820. then :
  20821. LIBS=$ac_save_LIBS
  20822. # We can link X programs with no special library path.
  20823. ac_x_libraries=
  20824. else $as_nop
  20825. LIBS=$ac_save_LIBS
  20826. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20827. do
  20828. # Don't even attempt the hair of trying to link an X program!
  20829. for ac_extension in a so sl dylib la dll; do
  20830. if test -r "$ac_dir/libX11.$ac_extension"; then
  20831. ac_x_libraries=$ac_dir
  20832. break 2
  20833. fi
  20834. done
  20835. done
  20836. fi
  20837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20838. conftest$ac_exeext conftest.$ac_ext
  20839. fi # $ac_x_libraries = no
  20840. fi
  20841. # Record the results.
  20842. case $ac_x_includes,$ac_x_libraries in #(
  20843. no,* | *,no | *\'*) :
  20844. # Didn't find X, or a directory has "'" in its name.
  20845. ac_cv_have_x="have_x=no" ;; #(
  20846. *) :
  20847. # Record where we found X for the cache.
  20848. ac_cv_have_x="have_x=yes\
  20849. ac_x_includes='$ac_x_includes'\
  20850. ac_x_libraries='$ac_x_libraries'" ;;
  20851. esac
  20852. fi
  20853. ;; #(
  20854. *) have_x=yes;;
  20855. esac
  20856. eval "$ac_cv_have_x"
  20857. fi # $with_x != no
  20858. if test "$have_x" != yes; then
  20859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20860. printf "%s\n" "$have_x" >&6; }
  20861. no_x=yes
  20862. else
  20863. # If each of the values was on the command line, it overrides each guess.
  20864. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20865. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20866. # Update the cache value to reflect the command line values.
  20867. ac_cv_have_x="have_x=yes\
  20868. ac_x_includes='$x_includes'\
  20869. ac_x_libraries='$x_libraries'"
  20870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20871. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20872. fi
  20873. if test "$no_x" = yes; then
  20874. # Not all programs may use this symbol, but it does not hurt to define it.
  20875. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20876. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20877. else
  20878. if test -n "$x_includes"; then
  20879. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20880. fi
  20881. # It would also be nice to do this for all -L options, not just this one.
  20882. if test -n "$x_libraries"; then
  20883. X_LIBS="$X_LIBS -L$x_libraries"
  20884. # For Solaris; some versions of Sun CC require a space after -R and
  20885. # others require no space. Words are not sufficient . . . .
  20886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20887. printf %s "checking whether -R must be followed by a space... " >&6; }
  20888. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20889. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20890. ac_c_werror_flag=yes
  20891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20892. /* end confdefs.h. */
  20893. int
  20894. main (void)
  20895. {
  20896. ;
  20897. return 0;
  20898. }
  20899. _ACEOF
  20900. if ac_fn_c_try_link "$LINENO"
  20901. then :
  20902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20903. printf "%s\n" "no" >&6; }
  20904. X_LIBS="$X_LIBS -R$x_libraries"
  20905. else $as_nop
  20906. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20908. /* end confdefs.h. */
  20909. int
  20910. main (void)
  20911. {
  20912. ;
  20913. return 0;
  20914. }
  20915. _ACEOF
  20916. if ac_fn_c_try_link "$LINENO"
  20917. then :
  20918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20919. printf "%s\n" "yes" >&6; }
  20920. X_LIBS="$X_LIBS -R $x_libraries"
  20921. else $as_nop
  20922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20923. printf "%s\n" "neither works" >&6; }
  20924. fi
  20925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20926. conftest$ac_exeext conftest.$ac_ext
  20927. fi
  20928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20929. conftest$ac_exeext conftest.$ac_ext
  20930. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20931. LIBS=$ac_xsave_LIBS
  20932. fi
  20933. # Check for system-dependent libraries X programs must link with.
  20934. # Do this before checking for the system-independent R6 libraries
  20935. # (-lICE), since we may need -lsocket or whatever for X linking.
  20936. if test "$ISC" = yes; then
  20937. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20938. else
  20939. # Martyn Johnson says this is needed for Ultrix, if the X
  20940. # libraries were built with DECnet support. And Karl Berry says
  20941. # the Alpha needs dnet_stub (dnet does not exist).
  20942. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20944. /* end confdefs.h. */
  20945. /* Override any GCC internal prototype to avoid an error.
  20946. Use char because int might match the return type of a GCC
  20947. builtin and then its argument prototype would still apply. */
  20948. char XOpenDisplay ();
  20949. int
  20950. main (void)
  20951. {
  20952. return XOpenDisplay ();
  20953. ;
  20954. return 0;
  20955. }
  20956. _ACEOF
  20957. if ac_fn_c_try_link "$LINENO"
  20958. then :
  20959. else $as_nop
  20960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20961. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20962. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20963. then :
  20964. printf %s "(cached) " >&6
  20965. else $as_nop
  20966. ac_check_lib_save_LIBS=$LIBS
  20967. LIBS="-ldnet $LIBS"
  20968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20969. /* end confdefs.h. */
  20970. /* Override any GCC internal prototype to avoid an error.
  20971. Use char because int might match the return type of a GCC
  20972. builtin and then its argument prototype would still apply. */
  20973. char dnet_ntoa ();
  20974. int
  20975. main (void)
  20976. {
  20977. return dnet_ntoa ();
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_link "$LINENO"
  20983. then :
  20984. ac_cv_lib_dnet_dnet_ntoa=yes
  20985. else $as_nop
  20986. ac_cv_lib_dnet_dnet_ntoa=no
  20987. fi
  20988. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20989. conftest$ac_exeext conftest.$ac_ext
  20990. LIBS=$ac_check_lib_save_LIBS
  20991. fi
  20992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20993. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20994. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20995. then :
  20996. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20997. fi
  20998. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21000. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21001. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21002. then :
  21003. printf %s "(cached) " >&6
  21004. else $as_nop
  21005. ac_check_lib_save_LIBS=$LIBS
  21006. LIBS="-ldnet_stub $LIBS"
  21007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21008. /* end confdefs.h. */
  21009. /* Override any GCC internal prototype to avoid an error.
  21010. Use char because int might match the return type of a GCC
  21011. builtin and then its argument prototype would still apply. */
  21012. char dnet_ntoa ();
  21013. int
  21014. main (void)
  21015. {
  21016. return dnet_ntoa ();
  21017. ;
  21018. return 0;
  21019. }
  21020. _ACEOF
  21021. if ac_fn_c_try_link "$LINENO"
  21022. then :
  21023. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21024. else $as_nop
  21025. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21026. fi
  21027. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21028. conftest$ac_exeext conftest.$ac_ext
  21029. LIBS=$ac_check_lib_save_LIBS
  21030. fi
  21031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21032. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21033. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21034. then :
  21035. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21036. fi
  21037. fi
  21038. fi
  21039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21040. conftest$ac_exeext conftest.$ac_ext
  21041. LIBS="$ac_xsave_LIBS"
  21042. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21043. # to get the SysV transport functions.
  21044. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21045. # needs -lnsl.
  21046. # The nsl library prevents programs from opening the X display
  21047. # on Irix 5.2, according to T.E. Dickey.
  21048. # The functions gethostbyname, getservbyname, and inet_addr are
  21049. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21050. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21051. if test "x$ac_cv_func_gethostbyname" = xyes
  21052. then :
  21053. fi
  21054. if test $ac_cv_func_gethostbyname = no; then
  21055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21056. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21057. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21058. then :
  21059. printf %s "(cached) " >&6
  21060. else $as_nop
  21061. ac_check_lib_save_LIBS=$LIBS
  21062. LIBS="-lnsl $LIBS"
  21063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21064. /* end confdefs.h. */
  21065. /* Override any GCC internal prototype to avoid an error.
  21066. Use char because int might match the return type of a GCC
  21067. builtin and then its argument prototype would still apply. */
  21068. char gethostbyname ();
  21069. int
  21070. main (void)
  21071. {
  21072. return gethostbyname ();
  21073. ;
  21074. return 0;
  21075. }
  21076. _ACEOF
  21077. if ac_fn_c_try_link "$LINENO"
  21078. then :
  21079. ac_cv_lib_nsl_gethostbyname=yes
  21080. else $as_nop
  21081. ac_cv_lib_nsl_gethostbyname=no
  21082. fi
  21083. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21084. conftest$ac_exeext conftest.$ac_ext
  21085. LIBS=$ac_check_lib_save_LIBS
  21086. fi
  21087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21088. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21089. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21090. then :
  21091. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21092. fi
  21093. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21095. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21096. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21097. then :
  21098. printf %s "(cached) " >&6
  21099. else $as_nop
  21100. ac_check_lib_save_LIBS=$LIBS
  21101. LIBS="-lbsd $LIBS"
  21102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21103. /* end confdefs.h. */
  21104. /* Override any GCC internal prototype to avoid an error.
  21105. Use char because int might match the return type of a GCC
  21106. builtin and then its argument prototype would still apply. */
  21107. char gethostbyname ();
  21108. int
  21109. main (void)
  21110. {
  21111. return gethostbyname ();
  21112. ;
  21113. return 0;
  21114. }
  21115. _ACEOF
  21116. if ac_fn_c_try_link "$LINENO"
  21117. then :
  21118. ac_cv_lib_bsd_gethostbyname=yes
  21119. else $as_nop
  21120. ac_cv_lib_bsd_gethostbyname=no
  21121. fi
  21122. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21123. conftest$ac_exeext conftest.$ac_ext
  21124. LIBS=$ac_check_lib_save_LIBS
  21125. fi
  21126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21127. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21128. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21129. then :
  21130. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21131. fi
  21132. fi
  21133. fi
  21134. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21135. # socket/setsockopt and other routines are undefined under SCO ODT
  21136. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21137. # on later versions), says Simon Leinen: it contains gethostby*
  21138. # variants that don't use the name server (or something). -lsocket
  21139. # must be given before -lnsl if both are needed. We assume that
  21140. # if connect needs -lnsl, so does gethostbyname.
  21141. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21142. if test "x$ac_cv_func_connect" = xyes
  21143. then :
  21144. fi
  21145. if test $ac_cv_func_connect = no; then
  21146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21147. printf %s "checking for connect in -lsocket... " >&6; }
  21148. if test ${ac_cv_lib_socket_connect+y}
  21149. then :
  21150. printf %s "(cached) " >&6
  21151. else $as_nop
  21152. ac_check_lib_save_LIBS=$LIBS
  21153. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21155. /* end confdefs.h. */
  21156. /* Override any GCC internal prototype to avoid an error.
  21157. Use char because int might match the return type of a GCC
  21158. builtin and then its argument prototype would still apply. */
  21159. char connect ();
  21160. int
  21161. main (void)
  21162. {
  21163. return connect ();
  21164. ;
  21165. return 0;
  21166. }
  21167. _ACEOF
  21168. if ac_fn_c_try_link "$LINENO"
  21169. then :
  21170. ac_cv_lib_socket_connect=yes
  21171. else $as_nop
  21172. ac_cv_lib_socket_connect=no
  21173. fi
  21174. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21175. conftest$ac_exeext conftest.$ac_ext
  21176. LIBS=$ac_check_lib_save_LIBS
  21177. fi
  21178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21179. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21180. if test "x$ac_cv_lib_socket_connect" = xyes
  21181. then :
  21182. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21183. fi
  21184. fi
  21185. # Guillermo Gomez says -lposix is necessary on A/UX.
  21186. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21187. if test "x$ac_cv_func_remove" = xyes
  21188. then :
  21189. fi
  21190. if test $ac_cv_func_remove = no; then
  21191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21192. printf %s "checking for remove in -lposix... " >&6; }
  21193. if test ${ac_cv_lib_posix_remove+y}
  21194. then :
  21195. printf %s "(cached) " >&6
  21196. else $as_nop
  21197. ac_check_lib_save_LIBS=$LIBS
  21198. LIBS="-lposix $LIBS"
  21199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21200. /* end confdefs.h. */
  21201. /* Override any GCC internal prototype to avoid an error.
  21202. Use char because int might match the return type of a GCC
  21203. builtin and then its argument prototype would still apply. */
  21204. char remove ();
  21205. int
  21206. main (void)
  21207. {
  21208. return remove ();
  21209. ;
  21210. return 0;
  21211. }
  21212. _ACEOF
  21213. if ac_fn_c_try_link "$LINENO"
  21214. then :
  21215. ac_cv_lib_posix_remove=yes
  21216. else $as_nop
  21217. ac_cv_lib_posix_remove=no
  21218. fi
  21219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21220. conftest$ac_exeext conftest.$ac_ext
  21221. LIBS=$ac_check_lib_save_LIBS
  21222. fi
  21223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21224. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21225. if test "x$ac_cv_lib_posix_remove" = xyes
  21226. then :
  21227. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21228. fi
  21229. fi
  21230. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21231. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21232. if test "x$ac_cv_func_shmat" = xyes
  21233. then :
  21234. fi
  21235. if test $ac_cv_func_shmat = no; then
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21237. printf %s "checking for shmat in -lipc... " >&6; }
  21238. if test ${ac_cv_lib_ipc_shmat+y}
  21239. then :
  21240. printf %s "(cached) " >&6
  21241. else $as_nop
  21242. ac_check_lib_save_LIBS=$LIBS
  21243. LIBS="-lipc $LIBS"
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. /* Override any GCC internal prototype to avoid an error.
  21247. Use char because int might match the return type of a GCC
  21248. builtin and then its argument prototype would still apply. */
  21249. char shmat ();
  21250. int
  21251. main (void)
  21252. {
  21253. return shmat ();
  21254. ;
  21255. return 0;
  21256. }
  21257. _ACEOF
  21258. if ac_fn_c_try_link "$LINENO"
  21259. then :
  21260. ac_cv_lib_ipc_shmat=yes
  21261. else $as_nop
  21262. ac_cv_lib_ipc_shmat=no
  21263. fi
  21264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21265. conftest$ac_exeext conftest.$ac_ext
  21266. LIBS=$ac_check_lib_save_LIBS
  21267. fi
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21269. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21270. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21271. then :
  21272. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21273. fi
  21274. fi
  21275. fi
  21276. # Check for libraries that X11R6 Xt/Xaw programs need.
  21277. ac_save_LDFLAGS=$LDFLAGS
  21278. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21279. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21280. # check for ICE first), but we must link in the order -lSM -lICE or
  21281. # we get undefined symbols. So assume we have SM if we have ICE.
  21282. # These have to be linked with before -lX11, unlike the other
  21283. # libraries we check for below, so use a different variable.
  21284. # John Interrante, Karl Berry
  21285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21286. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21287. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21288. then :
  21289. printf %s "(cached) " >&6
  21290. else $as_nop
  21291. ac_check_lib_save_LIBS=$LIBS
  21292. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21294. /* end confdefs.h. */
  21295. /* Override any GCC internal prototype to avoid an error.
  21296. Use char because int might match the return type of a GCC
  21297. builtin and then its argument prototype would still apply. */
  21298. char IceConnectionNumber ();
  21299. int
  21300. main (void)
  21301. {
  21302. return IceConnectionNumber ();
  21303. ;
  21304. return 0;
  21305. }
  21306. _ACEOF
  21307. if ac_fn_c_try_link "$LINENO"
  21308. then :
  21309. ac_cv_lib_ICE_IceConnectionNumber=yes
  21310. else $as_nop
  21311. ac_cv_lib_ICE_IceConnectionNumber=no
  21312. fi
  21313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21314. conftest$ac_exeext conftest.$ac_ext
  21315. LIBS=$ac_check_lib_save_LIBS
  21316. fi
  21317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21318. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21319. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21320. then :
  21321. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21322. fi
  21323. LDFLAGS=$ac_save_LDFLAGS
  21324. fi
  21325. if test x$have_x = xyes; then
  21326. # Check whether --enable-x11-shared was given.
  21327. if test ${enable_x11_shared+y}
  21328. then :
  21329. enableval=$enable_x11_shared;
  21330. else $as_nop
  21331. enable_x11_shared=maybe
  21332. fi
  21333. case "$host" in
  21334. *-*-darwin*)
  21335. # Apple now puts this in /opt/X11
  21336. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21337. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21338. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21339. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21340. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21341. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21342. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21343. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21344. ;;
  21345. *-*-openbsd*)
  21346. x11_lib='libX11.so'
  21347. x11ext_lib='libXext.so'
  21348. xcursor_lib='libXcursor.so'
  21349. xinput_lib='libXi.so'
  21350. xfixes_lib='libXfixes.so'
  21351. xrandr_lib='libXrandr.so'
  21352. xrender_lib='libXrender.so'
  21353. xss_lib='libXss.so'
  21354. ;;
  21355. *)
  21356. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21357. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21358. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21359. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21360. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21361. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21362. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21363. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21364. ;;
  21365. esac
  21366. if test x$ac_cv_func_shmat != xyes; then
  21367. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21368. fi
  21369. CFLAGS="$CFLAGS $X_CFLAGS"
  21370. LDFLAGS="$LDFLAGS $X_LIBS"
  21371. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21372. #include <X11/Xproto.h>
  21373. "
  21374. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21375. then :
  21376. have_xext_h_hdr=yes
  21377. else $as_nop
  21378. have_xext_h_hdr=no
  21379. fi
  21380. if test x$have_xext_h_hdr != xyes; then
  21381. as_fn_error $? "
  21382. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21383. " "$LINENO" 5
  21384. fi
  21385. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21386. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21387. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21388. # Needed so SDL applications can include SDL_syswm.h
  21389. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21390. if test x$enable_x11_shared = xmaybe; then
  21391. enable_x11_shared=yes
  21392. fi
  21393. if test x$have_loadso != xyes && \
  21394. test x$enable_x11_shared = xyes; then
  21395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21396. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21397. enable_x11_shared=no
  21398. fi
  21399. if test x$have_loadso = xyes && \
  21400. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21401. echo "-- dynamic libX11 -> $x11_lib"
  21402. echo "-- dynamic libX11ext -> $x11ext_lib"
  21403. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21404. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21405. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21406. else
  21407. enable_x11_shared=no
  21408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21409. SUMMARY_video="${SUMMARY_video} x11"
  21410. fi
  21411. have_video=yes
  21412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21413. printf %s "checking for XGenericEvent... " >&6; }
  21414. have_XGenericEvent=no
  21415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21416. /* end confdefs.h. */
  21417. #include <X11/Xlib.h>
  21418. int
  21419. main (void)
  21420. {
  21421. Display *display;
  21422. XEvent event;
  21423. XGenericEventCookie *cookie = &event.xcookie;
  21424. XNextEvent(display, &event);
  21425. XGetEventData(display, cookie);
  21426. XFreeEventData(display, cookie);
  21427. ;
  21428. return 0;
  21429. }
  21430. _ACEOF
  21431. if ac_fn_c_try_compile "$LINENO"
  21432. then :
  21433. have_XGenericEvent=yes
  21434. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21435. fi
  21436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21438. printf "%s\n" "$have_XGenericEvent" >&6; }
  21439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21440. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21441. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21442. then :
  21443. printf %s "(cached) " >&6
  21444. else $as_nop
  21445. ac_check_lib_save_LIBS=$LIBS
  21446. LIBS="-lX11 $LIBS"
  21447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21448. /* end confdefs.h. */
  21449. /* Override any GCC internal prototype to avoid an error.
  21450. Use char because int might match the return type of a GCC
  21451. builtin and then its argument prototype would still apply. */
  21452. char XkbKeycodeToKeysym ();
  21453. int
  21454. main (void)
  21455. {
  21456. return XkbKeycodeToKeysym ();
  21457. ;
  21458. return 0;
  21459. }
  21460. _ACEOF
  21461. if ac_fn_c_try_link "$LINENO"
  21462. then :
  21463. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21464. else $as_nop
  21465. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21466. fi
  21467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21468. conftest$ac_exeext conftest.$ac_ext
  21469. LIBS=$ac_check_lib_save_LIBS
  21470. fi
  21471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21472. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21473. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21474. then :
  21475. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21476. fi
  21477. # Check whether --enable-video-x11-xcursor was given.
  21478. if test ${enable_video_x11_xcursor+y}
  21479. then :
  21480. enableval=$enable_video_x11_xcursor;
  21481. else $as_nop
  21482. enable_video_x11_xcursor=yes
  21483. fi
  21484. if test x$enable_video_x11_xcursor = xyes; then
  21485. definitely_enable_video_x11_xcursor=no
  21486. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21487. "
  21488. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21489. then :
  21490. have_xcursor_h_hdr=yes
  21491. else $as_nop
  21492. have_xcursor_h_hdr=no
  21493. fi
  21494. if test x$have_xcursor_h_hdr = xyes; then
  21495. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21496. echo "-- dynamic libXcursor -> $xcursor_lib"
  21497. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21498. definitely_enable_video_x11_xcursor=yes
  21499. else
  21500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21501. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21502. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21503. then :
  21504. printf %s "(cached) " >&6
  21505. else $as_nop
  21506. ac_check_lib_save_LIBS=$LIBS
  21507. LIBS="-lXcursor $LIBS"
  21508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21509. /* end confdefs.h. */
  21510. /* Override any GCC internal prototype to avoid an error.
  21511. Use char because int might match the return type of a GCC
  21512. builtin and then its argument prototype would still apply. */
  21513. char XcursorImageCreate ();
  21514. int
  21515. main (void)
  21516. {
  21517. return XcursorImageCreate ();
  21518. ;
  21519. return 0;
  21520. }
  21521. _ACEOF
  21522. if ac_fn_c_try_link "$LINENO"
  21523. then :
  21524. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21525. else $as_nop
  21526. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21527. fi
  21528. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21529. conftest$ac_exeext conftest.$ac_ext
  21530. LIBS=$ac_check_lib_save_LIBS
  21531. fi
  21532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21533. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21534. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21535. then :
  21536. have_xcursor_lib=yes
  21537. fi
  21538. if test x$have_xcursor_lib = xyes ; then
  21539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21540. definitely_enable_video_x11_xcursor=yes
  21541. fi
  21542. fi
  21543. fi
  21544. fi
  21545. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21546. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21547. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21548. fi
  21549. # Check whether --enable-video-x11-xdbe was given.
  21550. if test ${enable_video_x11_xdbe+y}
  21551. then :
  21552. enableval=$enable_video_x11_xdbe;
  21553. else $as_nop
  21554. enable_video_x11_xdbe=yes
  21555. fi
  21556. if test x$enable_video_x11_xdbe = xyes; then
  21557. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21558. "
  21559. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21560. then :
  21561. have_dbe_h_hdr=yes
  21562. else $as_nop
  21563. have_dbe_h_hdr=no
  21564. fi
  21565. if test x$have_dbe_h_hdr = xyes; then
  21566. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21567. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21568. fi
  21569. fi
  21570. # Check whether --enable-video-x11-xinput was given.
  21571. if test ${enable_video_x11_xinput+y}
  21572. then :
  21573. enableval=$enable_video_x11_xinput;
  21574. else $as_nop
  21575. enable_video_x11_xinput=yes
  21576. fi
  21577. if test x$enable_video_x11_xinput = xyes; then
  21578. definitely_enable_video_x11_xinput=no
  21579. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21580. "
  21581. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21582. then :
  21583. have_xinput_h_hdr=yes
  21584. else $as_nop
  21585. have_xinput_h_hdr=no
  21586. fi
  21587. if test x$have_xinput_h_hdr = xyes; then
  21588. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21589. echo "-- dynamic libXi -> $xinput_lib"
  21590. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21591. definitely_enable_video_x11_xinput=yes
  21592. else
  21593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21594. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21595. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21596. then :
  21597. printf %s "(cached) " >&6
  21598. else $as_nop
  21599. ac_check_lib_save_LIBS=$LIBS
  21600. LIBS="-lXi $LIBS"
  21601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21602. /* end confdefs.h. */
  21603. /* Override any GCC internal prototype to avoid an error.
  21604. Use char because int might match the return type of a GCC
  21605. builtin and then its argument prototype would still apply. */
  21606. char XOpenDevice ();
  21607. int
  21608. main (void)
  21609. {
  21610. return XOpenDevice ();
  21611. ;
  21612. return 0;
  21613. }
  21614. _ACEOF
  21615. if ac_fn_c_try_link "$LINENO"
  21616. then :
  21617. ac_cv_lib_Xi_XOpenDevice=yes
  21618. else $as_nop
  21619. ac_cv_lib_Xi_XOpenDevice=no
  21620. fi
  21621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21622. conftest$ac_exeext conftest.$ac_ext
  21623. LIBS=$ac_check_lib_save_LIBS
  21624. fi
  21625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21626. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21627. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21628. then :
  21629. have_xinput_lib=yes
  21630. fi
  21631. if test x$have_xinput_lib = xyes ; then
  21632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21633. definitely_enable_video_x11_xinput=yes
  21634. fi
  21635. fi
  21636. fi
  21637. fi
  21638. if test x$definitely_enable_video_x11_xinput = xyes; then
  21639. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21640. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21642. printf %s "checking for xinput2 multitouch... " >&6; }
  21643. have_xinput2_multitouch=no
  21644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21645. /* end confdefs.h. */
  21646. #include <X11/Xlib.h>
  21647. #include <X11/Xproto.h>
  21648. #include <X11/extensions/XInput2.h>
  21649. int
  21650. main (void)
  21651. {
  21652. int event_type = XI_TouchBegin;
  21653. XITouchClassInfo *t;
  21654. ;
  21655. return 0;
  21656. }
  21657. _ACEOF
  21658. if ac_fn_c_try_compile "$LINENO"
  21659. then :
  21660. have_xinput2_multitouch=yes
  21661. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21662. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21663. fi
  21664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21666. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21667. fi
  21668. # Check whether --enable-video-x11-xfixes was given.
  21669. if test ${enable_video_x11_xfixes+y}
  21670. then :
  21671. enableval=$enable_video_x11_xfixes;
  21672. else $as_nop
  21673. enable_video_x11_xfixes=yes
  21674. fi
  21675. if test x$enable_video_x11_xfixes = xyes; then
  21676. definitely_enable_video_x11_xfixes=no
  21677. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21679. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21681. /* end confdefs.h. */
  21682. #include <X11/Xlib.h>
  21683. #include <X11/Xproto.h>
  21684. #include <X11/extensions/XInput2.h>
  21685. #include <X11/extensions/Xfixes.h>
  21686. int
  21687. main (void)
  21688. {
  21689. BarrierEventID b;
  21690. ;
  21691. return 0;
  21692. }
  21693. _ACEOF
  21694. if ac_fn_c_try_compile "$LINENO"
  21695. then :
  21696. have_xfixes_h_hdr=yes
  21697. else $as_nop
  21698. have_xfixes_h_hdr=no
  21699. fi
  21700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21702. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21703. if test x$have_xfixes_h_hdr = xyes; then
  21704. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21705. echo "-- dynamic libXfixes -> $xfixes_lib"
  21706. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21707. definitely_enable_video_x11_xfixes=yes
  21708. else
  21709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21710. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21711. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21712. then :
  21713. printf %s "(cached) " >&6
  21714. else $as_nop
  21715. ac_check_lib_save_LIBS=$LIBS
  21716. LIBS="-lXfixes $LIBS"
  21717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21718. /* end confdefs.h. */
  21719. /* Override any GCC internal prototype to avoid an error.
  21720. Use char because int might match the return type of a GCC
  21721. builtin and then its argument prototype would still apply. */
  21722. char XFixesCreatePointerBarrier ();
  21723. int
  21724. main (void)
  21725. {
  21726. return XFixesCreatePointerBarrier ();
  21727. ;
  21728. return 0;
  21729. }
  21730. _ACEOF
  21731. if ac_fn_c_try_link "$LINENO"
  21732. then :
  21733. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21734. else $as_nop
  21735. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21736. fi
  21737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21738. conftest$ac_exeext conftest.$ac_ext
  21739. LIBS=$ac_check_lib_save_LIBS
  21740. fi
  21741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21742. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21743. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21744. then :
  21745. have_xfixes_lib=yes
  21746. fi
  21747. if test x$have_xfixes_lib = xyes ; then
  21748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21749. definitely_enable_video_x11_xfixes=yes
  21750. fi
  21751. fi
  21752. fi
  21753. fi
  21754. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21755. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21756. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21757. fi
  21758. # Check whether --enable-video-x11-xrandr was given.
  21759. if test ${enable_video_x11_xrandr+y}
  21760. then :
  21761. enableval=$enable_video_x11_xrandr;
  21762. else $as_nop
  21763. enable_video_x11_xrandr=yes
  21764. fi
  21765. if test x$enable_video_x11_xrandr = xyes; then
  21766. definitely_enable_video_x11_xrandr=no
  21767. have_xrandr_h_hdr=no
  21768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21769. /* end confdefs.h. */
  21770. #include <X11/Xlib.h>
  21771. #include <X11/extensions/Xrandr.h>
  21772. int
  21773. main (void)
  21774. {
  21775. XRRScreenResources *res = NULL;
  21776. ;
  21777. return 0;
  21778. }
  21779. _ACEOF
  21780. if ac_fn_c_try_compile "$LINENO"
  21781. then :
  21782. have_xrandr_h_hdr=yes
  21783. fi
  21784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21785. if test x$have_xrandr_h_hdr = xyes; then
  21786. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21787. echo "-- dynamic libXrandr -> $xrandr_lib"
  21788. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21789. definitely_enable_video_x11_xrandr=yes
  21790. else
  21791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21792. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21793. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21794. then :
  21795. printf %s "(cached) " >&6
  21796. else $as_nop
  21797. ac_check_lib_save_LIBS=$LIBS
  21798. LIBS="-lXrandr $LIBS"
  21799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21800. /* end confdefs.h. */
  21801. /* Override any GCC internal prototype to avoid an error.
  21802. Use char because int might match the return type of a GCC
  21803. builtin and then its argument prototype would still apply. */
  21804. char XRRQueryExtension ();
  21805. int
  21806. main (void)
  21807. {
  21808. return XRRQueryExtension ();
  21809. ;
  21810. return 0;
  21811. }
  21812. _ACEOF
  21813. if ac_fn_c_try_link "$LINENO"
  21814. then :
  21815. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21816. else $as_nop
  21817. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21818. fi
  21819. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21820. conftest$ac_exeext conftest.$ac_ext
  21821. LIBS=$ac_check_lib_save_LIBS
  21822. fi
  21823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21824. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21825. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21826. then :
  21827. have_xrandr_lib=yes
  21828. fi
  21829. if test x$have_xrandr_lib = xyes ; then
  21830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21831. definitely_enable_video_x11_xrandr=yes
  21832. fi
  21833. fi
  21834. fi
  21835. fi
  21836. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21837. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21838. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21839. fi
  21840. # Check whether --enable-video-x11-scrnsaver was given.
  21841. if test ${enable_video_x11_scrnsaver+y}
  21842. then :
  21843. enableval=$enable_video_x11_scrnsaver;
  21844. else $as_nop
  21845. enable_video_x11_scrnsaver=yes
  21846. fi
  21847. if test x$enable_video_x11_scrnsaver = xyes; then
  21848. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21849. "
  21850. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21851. then :
  21852. have_scrnsaver_h_hdr=yes
  21853. else $as_nop
  21854. have_scrnsaver_h_hdr=no
  21855. fi
  21856. if test x$have_scrnsaver_h_hdr = xyes; then
  21857. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21858. echo "-- dynamic libXss -> $xss_lib"
  21859. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21860. definitely_enable_video_x11_scrnsaver=yes
  21861. else
  21862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21863. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21864. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21865. then :
  21866. printf %s "(cached) " >&6
  21867. else $as_nop
  21868. ac_check_lib_save_LIBS=$LIBS
  21869. LIBS="-lXss $LIBS"
  21870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21871. /* end confdefs.h. */
  21872. /* Override any GCC internal prototype to avoid an error.
  21873. Use char because int might match the return type of a GCC
  21874. builtin and then its argument prototype would still apply. */
  21875. char XScreenSaverSuspend ();
  21876. int
  21877. main (void)
  21878. {
  21879. return XScreenSaverSuspend ();
  21880. ;
  21881. return 0;
  21882. }
  21883. _ACEOF
  21884. if ac_fn_c_try_link "$LINENO"
  21885. then :
  21886. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21887. else $as_nop
  21888. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21889. fi
  21890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21891. conftest$ac_exeext conftest.$ac_ext
  21892. LIBS=$ac_check_lib_save_LIBS
  21893. fi
  21894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21895. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21896. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21897. then :
  21898. have_xss_lib=yes
  21899. fi
  21900. if test x$have_xss_lib = xyes ; then
  21901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21902. definitely_enable_video_x11_scrnsaver=yes
  21903. fi
  21904. fi
  21905. fi
  21906. fi
  21907. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21908. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21909. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21910. fi
  21911. # Check whether --enable-video-x11-xshape was given.
  21912. if test ${enable_video_x11_xshape+y}
  21913. then :
  21914. enableval=$enable_video_x11_xshape;
  21915. else $as_nop
  21916. enable_video_x11_xshape=yes
  21917. fi
  21918. if test x$enable_video_x11_xshape = xyes; then
  21919. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21920. "
  21921. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21922. then :
  21923. have_shape_h_hdr=yes
  21924. else $as_nop
  21925. have_shape_h_hdr=no
  21926. fi
  21927. if test x$have_shape_h_hdr = xyes; then
  21928. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21929. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21930. fi
  21931. fi
  21932. fi
  21933. fi
  21934. if test x$have_x != xyes; then
  21935. # Prevent Mesa from including X11 headers
  21936. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21937. fi
  21938. }
  21939. CheckVivanteVideo()
  21940. {
  21941. # Check whether --enable-video-vivante was given.
  21942. if test ${enable_video_vivante+y}
  21943. then :
  21944. enableval=$enable_video_vivante;
  21945. else $as_nop
  21946. enable_video_vivante=yes
  21947. fi
  21948. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21950. printf %s "checking for Vivante VDK API... " >&6; }
  21951. have_vivante_vdk=no
  21952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21953. /* end confdefs.h. */
  21954. #define LINUX
  21955. #define EGL_API_FB
  21956. #include <gc_vdk.h>
  21957. int
  21958. main (void)
  21959. {
  21960. ;
  21961. return 0;
  21962. }
  21963. _ACEOF
  21964. if ac_fn_c_try_compile "$LINENO"
  21965. then :
  21966. have_vivante_vdk=yes
  21967. fi
  21968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21970. printf "%s\n" "$have_vivante_vdk" >&6; }
  21971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21972. printf %s "checking for Vivante FB API... " >&6; }
  21973. have_vivante_egl=no
  21974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21975. /* end confdefs.h. */
  21976. #define LINUX
  21977. #define EGL_API_FB
  21978. #include <EGL/eglvivante.h>
  21979. int
  21980. main (void)
  21981. {
  21982. ;
  21983. return 0;
  21984. }
  21985. _ACEOF
  21986. if ac_fn_c_try_compile "$LINENO"
  21987. then :
  21988. have_vivante_egl=yes
  21989. fi
  21990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21992. printf "%s\n" "$have_vivante_egl" >&6; }
  21993. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21994. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21995. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21996. if test x$have_vivante_vdk = xyes; then
  21997. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21999. fi
  22000. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22001. SUMMARY_video="${SUMMARY_video} vivante"
  22002. have_video=yes
  22003. fi
  22004. fi
  22005. }
  22006. CheckHaikuVideo()
  22007. {
  22008. if test x$enable_video = xyes; then
  22009. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22010. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22011. have_video=yes
  22012. SUMMARY_video="${SUMMARY_video} haiku"
  22013. fi
  22014. }
  22015. CheckCOCOA()
  22016. {
  22017. # Check whether --enable-video-cocoa was given.
  22018. if test ${enable_video_cocoa+y}
  22019. then :
  22020. enableval=$enable_video_cocoa;
  22021. else $as_nop
  22022. enable_video_cocoa=yes
  22023. fi
  22024. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22025. save_CFLAGS="$CFLAGS"
  22026. CFLAGS="$CFLAGS -x objective-c"
  22027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22028. printf %s "checking for Cocoa framework... " >&6; }
  22029. have_cocoa=no
  22030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22031. /* end confdefs.h. */
  22032. #import <Cocoa/Cocoa.h>
  22033. int
  22034. main (void)
  22035. {
  22036. ;
  22037. return 0;
  22038. }
  22039. _ACEOF
  22040. if ac_fn_c_try_compile "$LINENO"
  22041. then :
  22042. have_cocoa=yes
  22043. fi
  22044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22046. printf "%s\n" "$have_cocoa" >&6; }
  22047. CFLAGS="$save_CFLAGS"
  22048. if test x$have_cocoa = xyes; then
  22049. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22050. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22051. SUMMARY_video="${SUMMARY_video} cocoa"
  22052. have_video=yes
  22053. fi
  22054. fi
  22055. }
  22056. CheckMETAL()
  22057. {
  22058. # Check whether --enable-video-metal was given.
  22059. if test ${enable_video_metal+y}
  22060. then :
  22061. enableval=$enable_video_metal;
  22062. else $as_nop
  22063. enable_video_metal=yes
  22064. fi
  22065. # Check whether --enable-render-metal was given.
  22066. if test ${enable_render_metal+y}
  22067. then :
  22068. enableval=$enable_render_metal;
  22069. else $as_nop
  22070. enable_render_metal=yes
  22071. fi
  22072. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22073. save_CFLAGS="$CFLAGS"
  22074. CFLAGS="$CFLAGS -x objective-c"
  22075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22076. printf %s "checking for Metal framework... " >&6; }
  22077. have_metal=no
  22078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22079. /* end confdefs.h. */
  22080. #import <Cocoa/Cocoa.h>
  22081. #import <Metal/Metal.h>
  22082. #import <QuartzCore/CAMetalLayer.h>
  22083. #if TARGET_CPU_X86
  22084. #error Metal doesn't work on this configuration
  22085. #endif
  22086. int
  22087. main (void)
  22088. {
  22089. ;
  22090. return 0;
  22091. }
  22092. _ACEOF
  22093. if ac_fn_c_try_compile "$LINENO"
  22094. then :
  22095. have_metal=yes
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22098. CFLAGS="$save_CFLAGS"
  22099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22100. printf "%s\n" "$have_metal" >&6; }
  22101. if test x$have_metal = xyes; then
  22102. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22103. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22104. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22105. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22106. fi
  22107. SUMMARY_video="${SUMMARY_video} metal"
  22108. else
  22109. enable_video_metal=no
  22110. enable_render_metal=no
  22111. fi
  22112. fi
  22113. }
  22114. CheckDirectFB()
  22115. {
  22116. # Check whether --enable-video-directfb was given.
  22117. if test ${enable_video_directfb+y}
  22118. then :
  22119. enableval=$enable_video_directfb;
  22120. else $as_nop
  22121. enable_video_directfb=no
  22122. fi
  22123. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22124. pkg_failed=no
  22125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22126. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22127. if test -n "$DIRECTFB_CFLAGS"; then
  22128. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22129. elif test -n "$PKG_CONFIG"; then
  22130. if test -n "$PKG_CONFIG" && \
  22131. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22132. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22133. ac_status=$?
  22134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22135. test $ac_status = 0; }; then
  22136. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22137. test "x$?" != "x0" && pkg_failed=yes
  22138. else
  22139. pkg_failed=yes
  22140. fi
  22141. else
  22142. pkg_failed=untried
  22143. fi
  22144. if test -n "$DIRECTFB_LIBS"; then
  22145. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22146. elif test -n "$PKG_CONFIG"; then
  22147. if test -n "$PKG_CONFIG" && \
  22148. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22149. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22150. ac_status=$?
  22151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22152. test $ac_status = 0; }; then
  22153. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22154. test "x$?" != "x0" && pkg_failed=yes
  22155. else
  22156. pkg_failed=yes
  22157. fi
  22158. else
  22159. pkg_failed=untried
  22160. fi
  22161. if test $pkg_failed = yes; then
  22162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22163. printf "%s\n" "no" >&6; }
  22164. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22165. _pkg_short_errors_supported=yes
  22166. else
  22167. _pkg_short_errors_supported=no
  22168. fi
  22169. if test $_pkg_short_errors_supported = yes; then
  22170. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22171. else
  22172. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22173. fi
  22174. # Put the nasty error message in config.log where it belongs
  22175. echo "$DIRECTFB_PKG_ERRORS" >&5
  22176. video_directfb=no
  22177. elif test $pkg_failed = untried; then
  22178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22179. printf "%s\n" "no" >&6; }
  22180. video_directfb=no
  22181. else
  22182. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22183. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22185. printf "%s\n" "yes" >&6; }
  22186. video_directfb=yes
  22187. fi
  22188. if test x$video_directfb = xyes; then
  22189. # SuSE 11.1 installs directfb-config without directfb-devel
  22190. save_CPPFLAGS="$CPPFLAGS"
  22191. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22192. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22193. if test "x$ac_cv_header_directfb_h" = xyes
  22194. then :
  22195. have_directfb_hdr=yes
  22196. else $as_nop
  22197. have_directfb_hdr=no
  22198. fi
  22199. CPPFLAGS="$save_CPPFLAGS"
  22200. video_directfb=$have_directfb_hdr
  22201. fi
  22202. if test x$video_directfb = xyes; then
  22203. # Check whether --enable-directfb-shared was given.
  22204. if test ${enable_directfb_shared+y}
  22205. then :
  22206. enableval=$enable_directfb_shared;
  22207. else $as_nop
  22208. enable_directfb_shared=yes
  22209. fi
  22210. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22211. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22212. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22213. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22214. directfb_shared=no
  22215. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22216. if test x$have_loadso != xyes && \
  22217. test x$enable_directfb_shared = xyes; then
  22218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22219. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22220. fi
  22221. if test x$have_loadso = xyes && \
  22222. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22223. directfb_shared=yes
  22224. echo "-- dynamic libdirectfb -> $directfb_lib"
  22225. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22226. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22227. else
  22228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22229. SUMMARY_video="${SUMMARY_video} directfb"
  22230. fi
  22231. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22232. have_video=yes
  22233. fi
  22234. fi
  22235. }
  22236. CheckKMSDRM()
  22237. {
  22238. # Check whether --enable-video-kmsdrm was given.
  22239. if test ${enable_video_kmsdrm+y}
  22240. then :
  22241. enableval=$enable_video_kmsdrm;
  22242. else $as_nop
  22243. enable_video_kmsdrm=yes
  22244. fi
  22245. if test x$enable_video = xyes && \
  22246. test x$enable_video_kmsdrm = xyes && \
  22247. test x$video_opengl_egl = xyes; then
  22248. video_kmsdrm=no
  22249. pkg_failed=no
  22250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22251. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22252. if test -n "$LIBDRM_CFLAGS"; then
  22253. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22254. elif test -n "$PKG_CONFIG"; then
  22255. if test -n "$PKG_CONFIG" && \
  22256. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22257. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22258. ac_status=$?
  22259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22260. test $ac_status = 0; }; then
  22261. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22262. test "x$?" != "x0" && pkg_failed=yes
  22263. else
  22264. pkg_failed=yes
  22265. fi
  22266. else
  22267. pkg_failed=untried
  22268. fi
  22269. if test -n "$LIBDRM_LIBS"; then
  22270. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22271. elif test -n "$PKG_CONFIG"; then
  22272. if test -n "$PKG_CONFIG" && \
  22273. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22274. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22275. ac_status=$?
  22276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22277. test $ac_status = 0; }; then
  22278. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22279. test "x$?" != "x0" && pkg_failed=yes
  22280. else
  22281. pkg_failed=yes
  22282. fi
  22283. else
  22284. pkg_failed=untried
  22285. fi
  22286. if test $pkg_failed = yes; then
  22287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22288. printf "%s\n" "no" >&6; }
  22289. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22290. _pkg_short_errors_supported=yes
  22291. else
  22292. _pkg_short_errors_supported=no
  22293. fi
  22294. if test $_pkg_short_errors_supported = yes; then
  22295. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22296. else
  22297. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22298. fi
  22299. # Put the nasty error message in config.log where it belongs
  22300. echo "$LIBDRM_PKG_ERRORS" >&5
  22301. libdrm_avail=no
  22302. elif test $pkg_failed = untried; then
  22303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22304. printf "%s\n" "no" >&6; }
  22305. libdrm_avail=no
  22306. else
  22307. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22308. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22310. printf "%s\n" "yes" >&6; }
  22311. libdrm_avail=yes
  22312. fi
  22313. pkg_failed=no
  22314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22315. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22316. if test -n "$LIBGBM_CFLAGS"; then
  22317. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22318. elif test -n "$PKG_CONFIG"; then
  22319. if test -n "$PKG_CONFIG" && \
  22320. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22321. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22322. ac_status=$?
  22323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22324. test $ac_status = 0; }; then
  22325. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22326. test "x$?" != "x0" && pkg_failed=yes
  22327. else
  22328. pkg_failed=yes
  22329. fi
  22330. else
  22331. pkg_failed=untried
  22332. fi
  22333. if test -n "$LIBGBM_LIBS"; then
  22334. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22335. elif test -n "$PKG_CONFIG"; then
  22336. if test -n "$PKG_CONFIG" && \
  22337. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22338. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22339. ac_status=$?
  22340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22341. test $ac_status = 0; }; then
  22342. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22343. test "x$?" != "x0" && pkg_failed=yes
  22344. else
  22345. pkg_failed=yes
  22346. fi
  22347. else
  22348. pkg_failed=untried
  22349. fi
  22350. if test $pkg_failed = yes; then
  22351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22352. printf "%s\n" "no" >&6; }
  22353. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22354. _pkg_short_errors_supported=yes
  22355. else
  22356. _pkg_short_errors_supported=no
  22357. fi
  22358. if test $_pkg_short_errors_supported = yes; then
  22359. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22360. else
  22361. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22362. fi
  22363. # Put the nasty error message in config.log where it belongs
  22364. echo "$LIBGBM_PKG_ERRORS" >&5
  22365. libgbm_avail=no
  22366. elif test $pkg_failed = untried; then
  22367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22368. printf "%s\n" "no" >&6; }
  22369. libgbm_avail=no
  22370. else
  22371. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22372. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22374. printf "%s\n" "yes" >&6; }
  22375. libgbm_avail=yes
  22376. fi
  22377. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22378. video_kmsdrm=yes
  22379. fi
  22380. if test x$video_kmsdrm = xyes; then
  22381. # Check whether --enable-kmsdrm-shared was given.
  22382. if test ${enable_kmsdrm_shared+y}
  22383. then :
  22384. enableval=$enable_kmsdrm_shared;
  22385. else $as_nop
  22386. enable_kmsdrm_shared=yes
  22387. fi
  22388. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22389. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22390. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22392. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22393. kmsdrm_shared=no
  22394. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22395. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22396. if test x$have_loadso != xyes && \
  22397. test x$enable_kmsdrm_shared = xyes; then
  22398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22399. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22400. fi
  22401. if test x$have_loadso = xyes && \
  22402. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22403. kmsdrm_shared=yes
  22404. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22405. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22406. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22407. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22408. else
  22409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22410. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22411. fi
  22412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22413. printf "%s\n" "$kmsdrm_shared" >&6; }
  22414. if test x$kmsdrm_shared = xyes; then
  22415. echo "-- dynamic libdrm -> $drm_lib"
  22416. echo "-- dynamic libgbm -> $gbm_lib"
  22417. fi
  22418. have_video=yes
  22419. fi
  22420. fi
  22421. }
  22422. CheckDummyVideo()
  22423. {
  22424. # Check whether --enable-video-dummy was given.
  22425. if test ${enable_video_dummy+y}
  22426. then :
  22427. enableval=$enable_video_dummy;
  22428. else $as_nop
  22429. enable_video_dummy=yes
  22430. fi
  22431. if test x$enable_video_dummy = xyes; then
  22432. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22433. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22434. have_video=yes
  22435. SUMMARY_video="${SUMMARY_video} dummy"
  22436. fi
  22437. }
  22438. CheckOffscreenVideo()
  22439. {
  22440. # Check whether --enable-video-offscreen was given.
  22441. if test ${enable_video_offscreen+y}
  22442. then :
  22443. enableval=$enable_video_offscreen;
  22444. else $as_nop
  22445. enable_video_offscreen=yes
  22446. fi
  22447. if test x$enable_video_offscreen = xyes; then
  22448. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22449. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22450. have_video=yes
  22451. SUMMARY_video="${SUMMARY_video} offscreen"
  22452. fi
  22453. }
  22454. CheckQNXVideo()
  22455. {
  22456. if test x$enable_video = xyes; then
  22457. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22458. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22459. have_video=yes
  22460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22461. SUMMARY_video="${SUMMARY_video} qnx"
  22462. fi
  22463. }
  22464. CheckQNXAudio()
  22465. {
  22466. if test x$enable_audio = xyes; then
  22467. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22468. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22469. have_audio=yes
  22470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22471. SUMMARY_audio="${SUMMARY_audio} qsa"
  22472. fi
  22473. }
  22474. # Check whether --enable-video-opengl was given.
  22475. if test ${enable_video_opengl+y}
  22476. then :
  22477. enableval=$enable_video_opengl;
  22478. else $as_nop
  22479. enable_video_opengl=yes
  22480. fi
  22481. CheckGLX()
  22482. {
  22483. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22485. printf %s "checking for GLX support... " >&6; }
  22486. video_opengl_glx=no
  22487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22488. /* end confdefs.h. */
  22489. #include <GL/glx.h>
  22490. int
  22491. main (void)
  22492. {
  22493. ;
  22494. return 0;
  22495. }
  22496. _ACEOF
  22497. if ac_fn_c_try_compile "$LINENO"
  22498. then :
  22499. video_opengl_glx=yes
  22500. fi
  22501. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22503. printf "%s\n" "$video_opengl_glx" >&6; }
  22504. if test x$video_opengl_glx = xyes; then
  22505. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22506. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22507. fi
  22508. fi
  22509. }
  22510. # Check whether --enable-video-opengles was given.
  22511. if test ${enable_video_opengles+y}
  22512. then :
  22513. enableval=$enable_video_opengles;
  22514. else $as_nop
  22515. enable_video_opengles=yes
  22516. fi
  22517. # Check whether --enable-video-opengles1 was given.
  22518. if test ${enable_video_opengles1+y}
  22519. then :
  22520. enableval=$enable_video_opengles1;
  22521. else $as_nop
  22522. enable_video_opengles1=yes
  22523. fi
  22524. # Check whether --enable-video-opengles2 was given.
  22525. if test ${enable_video_opengles2+y}
  22526. then :
  22527. enableval=$enable_video_opengles2;
  22528. else $as_nop
  22529. enable_video_opengles2=yes
  22530. fi
  22531. CheckEGL()
  22532. {
  22533. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22535. printf %s "checking for EGL support... " >&6; }
  22536. video_opengl_egl=no
  22537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22538. /* end confdefs.h. */
  22539. #define LINUX
  22540. #define EGL_API_FB
  22541. #define MESA_EGL_NO_X11_HEADERS
  22542. #define EGL_NO_X11
  22543. #include <EGL/egl.h>
  22544. #include <EGL/eglext.h>
  22545. int
  22546. main (void)
  22547. {
  22548. ;
  22549. return 0;
  22550. }
  22551. _ACEOF
  22552. if ac_fn_c_try_compile "$LINENO"
  22553. then :
  22554. video_opengl_egl=yes
  22555. fi
  22556. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22558. printf "%s\n" "$video_opengl_egl" >&6; }
  22559. if test x$video_opengl_egl = xyes; then
  22560. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22561. fi
  22562. fi
  22563. }
  22564. CheckOpenGL()
  22565. {
  22566. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22568. printf %s "checking for OpenGL headers... " >&6; }
  22569. video_opengl=no
  22570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22571. /* end confdefs.h. */
  22572. #include <GL/gl.h>
  22573. #include <GL/glext.h>
  22574. int
  22575. main (void)
  22576. {
  22577. ;
  22578. return 0;
  22579. }
  22580. _ACEOF
  22581. if ac_fn_c_try_compile "$LINENO"
  22582. then :
  22583. video_opengl=yes
  22584. fi
  22585. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22587. printf "%s\n" "$video_opengl" >&6; }
  22588. if test x$video_opengl = xyes; then
  22589. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22590. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22591. SUMMARY_video="${SUMMARY_video} opengl"
  22592. fi
  22593. fi
  22594. }
  22595. CheckOpenGLES()
  22596. {
  22597. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22598. if test x$enable_video_opengles1 = xyes; then
  22599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22600. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22601. video_opengles_v1=no
  22602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22603. /* end confdefs.h. */
  22604. #include <GLES/gl.h>
  22605. #include <GLES/glext.h>
  22606. int
  22607. main (void)
  22608. {
  22609. ;
  22610. return 0;
  22611. }
  22612. _ACEOF
  22613. if ac_fn_c_try_compile "$LINENO"
  22614. then :
  22615. video_opengles_v1=yes
  22616. fi
  22617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22619. printf "%s\n" "$video_opengles_v1" >&6; }
  22620. if test x$video_opengles_v1 = xyes; then
  22621. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22622. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22623. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22624. fi
  22625. fi
  22626. if test x$enable_video_opengles2 = xyes; then
  22627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22628. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22629. video_opengles_v2=no
  22630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22631. /* end confdefs.h. */
  22632. #include <GLES2/gl2.h>
  22633. #include <GLES2/gl2ext.h>
  22634. int
  22635. main (void)
  22636. {
  22637. ;
  22638. return 0;
  22639. }
  22640. _ACEOF
  22641. if ac_fn_c_try_compile "$LINENO"
  22642. then :
  22643. video_opengles_v2=yes
  22644. fi
  22645. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22647. printf "%s\n" "$video_opengles_v2" >&6; }
  22648. if test x$video_opengles_v2 = xyes; then
  22649. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22650. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22651. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22652. fi
  22653. fi
  22654. fi
  22655. }
  22656. CheckWINDOWSGL()
  22657. {
  22658. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22659. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22660. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22661. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22662. SUMMARY_video="${SUMMARY_video} opengl"
  22663. fi
  22664. }
  22665. CheckWINDOWSGLES()
  22666. {
  22667. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22669. printf %s "checking for EGL support... " >&6; }
  22670. video_opengl_egl=no
  22671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22672. /* end confdefs.h. */
  22673. #include <EGL/egl.h>
  22674. int
  22675. main (void)
  22676. {
  22677. ;
  22678. return 0;
  22679. }
  22680. _ACEOF
  22681. if ac_fn_c_try_compile "$LINENO"
  22682. then :
  22683. video_opengl_egl=yes
  22684. fi
  22685. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22687. printf "%s\n" "$video_opengl_egl" >&6; }
  22688. if test x$video_opengl_egl = xyes; then
  22689. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22690. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22691. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22692. fi
  22693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22694. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22695. video_opengles_v2=no
  22696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22697. /* end confdefs.h. */
  22698. #include <GLES2/gl2.h>
  22699. #include <GLES2/gl2ext.h>
  22700. int
  22701. main (void)
  22702. {
  22703. ;
  22704. return 0;
  22705. }
  22706. _ACEOF
  22707. if ac_fn_c_try_compile "$LINENO"
  22708. then :
  22709. video_opengles_v2=yes
  22710. fi
  22711. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22713. printf "%s\n" "$video_opengles_v2" >&6; }
  22714. if test x$video_opengles_v2 = xyes; then
  22715. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22716. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22717. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22718. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22719. fi
  22720. fi
  22721. }
  22722. CheckHaikuGL()
  22723. {
  22724. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22725. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22726. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22727. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22729. SUMMARY_video="${SUMMARY_video} opengl"
  22730. fi
  22731. }
  22732. CheckMacGL()
  22733. {
  22734. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22735. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22736. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22737. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22738. SUMMARY_video="${SUMMARY_video} opengl"
  22739. fi
  22740. }
  22741. CheckMacGLES()
  22742. {
  22743. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22744. video_opengl_egl=yes
  22745. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22746. video_opengles_v2=yes
  22747. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22748. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22749. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22750. fi
  22751. }
  22752. CheckEmscriptenGLES()
  22753. {
  22754. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22756. printf %s "checking for EGL support... " >&6; }
  22757. video_opengl_egl=no
  22758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22759. /* end confdefs.h. */
  22760. #include <EGL/egl.h>
  22761. int
  22762. main (void)
  22763. {
  22764. ;
  22765. return 0;
  22766. }
  22767. _ACEOF
  22768. if ac_fn_c_try_compile "$LINENO"
  22769. then :
  22770. video_opengl_egl=yes
  22771. fi
  22772. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22774. printf "%s\n" "$video_opengl_egl" >&6; }
  22775. if test x$video_opengl_egl = xyes; then
  22776. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22777. fi
  22778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22779. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22780. video_opengles_v2=no
  22781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22782. /* end confdefs.h. */
  22783. #include <GLES2/gl2.h>
  22784. #include <GLES2/gl2ext.h>
  22785. int
  22786. main (void)
  22787. {
  22788. ;
  22789. return 0;
  22790. }
  22791. _ACEOF
  22792. if ac_fn_c_try_compile "$LINENO"
  22793. then :
  22794. video_opengles_v2=yes
  22795. fi
  22796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22798. printf "%s\n" "$video_opengles_v2" >&6; }
  22799. if test x$video_opengles_v2 = xyes; then
  22800. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22801. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22802. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22803. fi
  22804. fi
  22805. }
  22806. # Check whether --enable-video-vulkan was given.
  22807. if test ${enable_video_vulkan+y}
  22808. then :
  22809. enableval=$enable_video_vulkan;
  22810. else $as_nop
  22811. enable_video_vulkan=yes
  22812. fi
  22813. CheckVulkan()
  22814. {
  22815. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22816. case "$host" in
  22817. *-*-android*)
  22818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22819. /* end confdefs.h. */
  22820. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22821. #error Vulkan doesn't work on this configuration
  22822. #endif
  22823. int
  22824. main (void)
  22825. {
  22826. ;
  22827. return 0;
  22828. }
  22829. _ACEOF
  22830. if ac_fn_c_try_compile "$LINENO"
  22831. then :
  22832. else $as_nop
  22833. enable_video_vulkan=no
  22834. fi
  22835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22836. ;;
  22837. *-*-darwin*)
  22838. save_CFLAGS="$CFLAGS"
  22839. CFLAGS="$CFLAGS -x objective-c"
  22840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22841. /* end confdefs.h. */
  22842. #include <Cocoa/Cocoa.h>
  22843. #include <Metal/Metal.h>
  22844. #include <QuartzCore/CAMetalLayer.h>
  22845. #if TARGET_CPU_X86
  22846. #error Vulkan doesn't work on this configuration
  22847. #endif
  22848. int
  22849. main (void)
  22850. {
  22851. ;
  22852. return 0;
  22853. }
  22854. _ACEOF
  22855. if ac_fn_c_try_compile "$LINENO"
  22856. then :
  22857. else $as_nop
  22858. enable_video_vulkan=no
  22859. fi
  22860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22861. CFLAGS="$save_CFLAGS"
  22862. ;;
  22863. *)
  22864. ;;
  22865. esac
  22866. if test x$enable_video_vulkan = xno; then
  22867. # For reasons I am totally unable to see, I get an undefined macro error if
  22868. # I put this in the AC_TRY_COMPILE.
  22869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22870. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22871. fi
  22872. fi
  22873. if test x$have_loadso != xyes; then
  22874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22875. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22876. enable_video_vulkan=no
  22877. fi
  22878. if test x$enable_video_vulkan = xyes; then
  22879. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22880. SUMMARY_video="${SUMMARY_video} vulkan"
  22881. fi
  22882. }
  22883. CheckInputEvents()
  22884. {
  22885. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22886. if test "x$ac_cv_header_linux_input_h" = xyes
  22887. then :
  22888. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22889. fi
  22890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22891. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22892. use_input_events=no
  22893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22894. /* end confdefs.h. */
  22895. #include <linux/input.h>
  22896. int
  22897. main (void)
  22898. {
  22899. #ifndef EVIOCGNAME
  22900. #error EVIOCGNAME() ioctl not available
  22901. #endif
  22902. ;
  22903. return 0;
  22904. }
  22905. _ACEOF
  22906. if ac_fn_c_try_compile "$LINENO"
  22907. then :
  22908. use_input_events=yes
  22909. fi
  22910. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22912. printf "%s\n" "$use_input_events" >&6; }
  22913. if test x$use_input_events = xyes; then
  22914. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22915. SUMMARY_input="${SUMMARY_input} linuxev"
  22916. fi
  22917. }
  22918. CheckInputKD()
  22919. {
  22920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22921. printf %s "checking for Linux kd.h... " >&6; }
  22922. use_input_kd=no
  22923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22924. /* end confdefs.h. */
  22925. #include <linux/kd.h>
  22926. #include <linux/keyboard.h>
  22927. #include <sys/ioctl.h>
  22928. int
  22929. main (void)
  22930. {
  22931. struct kbentry kbe;
  22932. kbe.kb_table = KG_CTRL;
  22933. ioctl(0, KDGKBENT, &kbe);
  22934. ;
  22935. return 0;
  22936. }
  22937. _ACEOF
  22938. if ac_fn_c_try_compile "$LINENO"
  22939. then :
  22940. use_input_kd=yes
  22941. fi
  22942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22944. printf "%s\n" "$use_input_kd" >&6; }
  22945. if test x$use_input_kd = xyes; then
  22946. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22947. SUMMARY_input="${SUMMARY_input} linuxkd"
  22948. fi
  22949. }
  22950. CheckInputKBIO()
  22951. {
  22952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22953. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22954. use_input_kbio=no
  22955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22956. /* end confdefs.h. */
  22957. #include <sys/kbio.h>
  22958. #include <sys/ioctl.h>
  22959. int
  22960. main (void)
  22961. {
  22962. accentmap_t accTable;
  22963. ioctl(0, KDENABIO, 1);
  22964. ;
  22965. return 0;
  22966. }
  22967. _ACEOF
  22968. if ac_fn_c_try_compile "$LINENO"
  22969. then :
  22970. use_input_kbio=yes
  22971. fi
  22972. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22974. printf "%s\n" "$use_input_kbio" >&6; }
  22975. if test x$use_input_kbio = xyes; then
  22976. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22977. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22978. fi
  22979. }
  22980. CheckInputWSCONS()
  22981. {
  22982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22983. printf %s "checking for OpenBSD wscons... " >&6; }
  22984. use_input_wscons=no
  22985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22986. /* end confdefs.h. */
  22987. #include <sys/time.h>
  22988. #include <dev/wscons/wsconsio.h>
  22989. #include <dev/wscons/wsksymdef.h>
  22990. #include <dev/wscons/wsksymvar.h>
  22991. #include <sys/ioctl.h>
  22992. int
  22993. main (void)
  22994. {
  22995. struct wskbd_map_data data;
  22996. ioctl(0, WSKBDIO_GETMAP, &data);
  22997. ;
  22998. return 0;
  22999. }
  23000. _ACEOF
  23001. if ac_fn_c_try_compile "$LINENO"
  23002. then :
  23003. use_input_wscons=yes
  23004. fi
  23005. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23007. printf "%s\n" "$use_input_wscons" >&6; }
  23008. if test x$use_input_wscons = xyes; then
  23009. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23010. SUMMARY_input="${SUMMARY_input} wscons"
  23011. fi
  23012. }
  23013. CheckLibUDev()
  23014. {
  23015. # Check whether --enable-libudev was given.
  23016. if test ${enable_libudev+y}
  23017. then :
  23018. enableval=$enable_libudev;
  23019. else $as_nop
  23020. enable_libudev=yes
  23021. fi
  23022. if test x$enable_libudev = xyes; then
  23023. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23024. if test "x$ac_cv_header_libudev_h" = xyes
  23025. then :
  23026. have_libudev_h_hdr=yes
  23027. else $as_nop
  23028. have_libudev_h_hdr=no
  23029. fi
  23030. if test x$have_libudev_h_hdr = xyes; then
  23031. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23032. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23033. if test x$udev_lib != x; then
  23034. echo "-- dynamic udev -> $udev_lib"
  23035. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23036. fi
  23037. fi
  23038. fi
  23039. }
  23040. CheckDBus()
  23041. {
  23042. # Check whether --enable-dbus was given.
  23043. if test ${enable_dbus+y}
  23044. then :
  23045. enableval=$enable_dbus;
  23046. else $as_nop
  23047. enable_dbus=yes
  23048. fi
  23049. if test x$enable_dbus = xyes; then
  23050. pkg_failed=no
  23051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23052. printf %s "checking for dbus-1... " >&6; }
  23053. if test -n "$DBUS_CFLAGS"; then
  23054. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23055. elif test -n "$PKG_CONFIG"; then
  23056. if test -n "$PKG_CONFIG" && \
  23057. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23058. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23059. ac_status=$?
  23060. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23061. test $ac_status = 0; }; then
  23062. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23063. test "x$?" != "x0" && pkg_failed=yes
  23064. else
  23065. pkg_failed=yes
  23066. fi
  23067. else
  23068. pkg_failed=untried
  23069. fi
  23070. if test -n "$DBUS_LIBS"; then
  23071. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23072. elif test -n "$PKG_CONFIG"; then
  23073. if test -n "$PKG_CONFIG" && \
  23074. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23075. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23076. ac_status=$?
  23077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23078. test $ac_status = 0; }; then
  23079. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23080. test "x$?" != "x0" && pkg_failed=yes
  23081. else
  23082. pkg_failed=yes
  23083. fi
  23084. else
  23085. pkg_failed=untried
  23086. fi
  23087. if test $pkg_failed = yes; then
  23088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23089. printf "%s\n" "no" >&6; }
  23090. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23091. _pkg_short_errors_supported=yes
  23092. else
  23093. _pkg_short_errors_supported=no
  23094. fi
  23095. if test $_pkg_short_errors_supported = yes; then
  23096. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23097. else
  23098. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23099. fi
  23100. # Put the nasty error message in config.log where it belongs
  23101. echo "$DBUS_PKG_ERRORS" >&5
  23102. have_dbus=no
  23103. elif test $pkg_failed = untried; then
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23105. printf "%s\n" "no" >&6; }
  23106. have_dbus=no
  23107. else
  23108. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23109. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23111. printf "%s\n" "yes" >&6; }
  23112. have_dbus=yes
  23113. fi
  23114. save_CPPFLAGS="$CPPFLAGS"
  23115. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23116. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23117. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23118. then :
  23119. have_dbus_dbus_h_hdr=yes
  23120. else $as_nop
  23121. have_dbus_dbus_h_hdr=no
  23122. fi
  23123. CPPFLAGS="$save_CPPFLAGS"
  23124. if test x$have_dbus_dbus_h_hdr = xyes; then
  23125. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23126. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23127. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23128. fi
  23129. fi
  23130. }
  23131. CheckIME()
  23132. {
  23133. # Check whether --enable-ime was given.
  23134. if test ${enable_ime+y}
  23135. then :
  23136. enableval=$enable_ime;
  23137. else $as_nop
  23138. enable_ime=yes
  23139. fi
  23140. if test x$enable_ime = xyes; then
  23141. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23142. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23143. fi
  23144. }
  23145. CheckInotify()
  23146. {
  23147. save_LIBS="$LIBS"
  23148. case "$host" in
  23149. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23150. ;;
  23151. esac
  23152. for ac_header in sys/inotify.h
  23153. do :
  23154. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23155. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23156. then :
  23157. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23158. have_inotify_inotify_h_hdr=yes
  23159. fi
  23160. done
  23161. for ac_func in inotify_init
  23162. do :
  23163. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23164. if test "x$ac_cv_func_inotify_init" = xyes
  23165. then :
  23166. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23167. have_inotify=yes
  23168. fi
  23169. done
  23170. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23171. if test "x$ac_cv_func_inotify_init1" = xyes
  23172. then :
  23173. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23174. fi
  23175. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23176. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23177. case "$host" in
  23178. *-*-freebsd*|*-*-dragonfly*)
  23179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23180. ;;
  23181. esac
  23182. fi
  23183. LIBS="$save_LIBS"
  23184. }
  23185. CheckIBus()
  23186. {
  23187. # Check whether --enable-ibus was given.
  23188. if test ${enable_ibus+y}
  23189. then :
  23190. enableval=$enable_ibus;
  23191. else $as_nop
  23192. enable_ibus=yes
  23193. fi
  23194. if test x$enable_ibus = xyes; then
  23195. pkg_failed=no
  23196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23197. printf %s "checking for ibus-1.0... " >&6; }
  23198. if test -n "$IBUS_CFLAGS"; then
  23199. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23200. elif test -n "$PKG_CONFIG"; then
  23201. if test -n "$PKG_CONFIG" && \
  23202. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23203. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23204. ac_status=$?
  23205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23206. test $ac_status = 0; }; then
  23207. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23208. test "x$?" != "x0" && pkg_failed=yes
  23209. else
  23210. pkg_failed=yes
  23211. fi
  23212. else
  23213. pkg_failed=untried
  23214. fi
  23215. if test -n "$IBUS_LIBS"; then
  23216. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23217. elif test -n "$PKG_CONFIG"; then
  23218. if test -n "$PKG_CONFIG" && \
  23219. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23220. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23221. ac_status=$?
  23222. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23223. test $ac_status = 0; }; then
  23224. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23225. test "x$?" != "x0" && pkg_failed=yes
  23226. else
  23227. pkg_failed=yes
  23228. fi
  23229. else
  23230. pkg_failed=untried
  23231. fi
  23232. if test $pkg_failed = yes; then
  23233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23234. printf "%s\n" "no" >&6; }
  23235. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23236. _pkg_short_errors_supported=yes
  23237. else
  23238. _pkg_short_errors_supported=no
  23239. fi
  23240. if test $_pkg_short_errors_supported = yes; then
  23241. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23242. else
  23243. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23244. fi
  23245. # Put the nasty error message in config.log where it belongs
  23246. echo "$IBUS_PKG_ERRORS" >&5
  23247. have_ibus=no
  23248. elif test $pkg_failed = untried; then
  23249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23250. printf "%s\n" "no" >&6; }
  23251. have_ibus=no
  23252. else
  23253. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23254. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23256. printf "%s\n" "yes" >&6; }
  23257. have_ibus=yes
  23258. fi
  23259. save_CPPFLAGS="$CPPFLAGS"
  23260. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23261. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23262. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23263. then :
  23264. have_ibus_ibus_h_hdr=yes
  23265. else $as_nop
  23266. have_ibus_ibus_h_hdr=no
  23267. fi
  23268. CPPFLAGS="$save_CPPFLAGS"
  23269. if test x$have_ibus_ibus_h_hdr = xyes; then
  23270. if test x$enable_ime != xyes; then
  23271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23272. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23273. have_ibus_ibus_h_hdr=no
  23274. elif test x$enable_dbus != xyes; then
  23275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23276. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23277. have_ibus_ibus_h_hdr=no
  23278. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23280. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23281. have_ibus_ibus_h_hdr=no
  23282. else
  23283. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23284. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23285. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23286. fi
  23287. fi
  23288. fi
  23289. }
  23290. CheckFcitx()
  23291. {
  23292. # Check whether --enable-fcitx was given.
  23293. if test ${enable_fcitx+y}
  23294. then :
  23295. enableval=$enable_fcitx;
  23296. else $as_nop
  23297. enable_fcitx=yes
  23298. fi
  23299. if test x$enable_fcitx = xyes; then
  23300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23301. printf %s "checking for fcitx support... " >&6; }
  23302. have_fcitx=no
  23303. if test x$enable_ime != xyes; then
  23304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23305. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23306. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23308. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23309. else
  23310. have_fcitx=yes
  23311. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23312. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23313. fi
  23314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23315. printf "%s\n" "$have_fcitx" >&6; }
  23316. fi
  23317. }
  23318. CheckJoystickMFI()
  23319. {
  23320. # Check whether --enable-joystick-mfi was given.
  23321. if test ${enable_joystick_mfi+y}
  23322. then :
  23323. enableval=$enable_joystick_mfi;
  23324. else $as_nop
  23325. enable_joystick_mfi=yes
  23326. fi
  23327. if test x$enable_joystick_mfi = xyes; then
  23328. save_CFLAGS="$CFLAGS"
  23329. save_LDFLAGS="$LDFLAGS"
  23330. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23331. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23333. printf %s "checking for GameController framework... " >&6; }
  23334. enable_joystick_mfi=no
  23335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23336. /* end confdefs.h. */
  23337. #include <AvailabilityMacros.h>
  23338. #include <TargetConditionals.h>
  23339. #import <GameController/GameController.h>
  23340. int
  23341. main (void)
  23342. {
  23343. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23344. #error GameController framework doesn't work on this configuration
  23345. #endif
  23346. #if TARGET_CPU_X86
  23347. #error GameController framework doesn't work on this configuration
  23348. #endif
  23349. ;
  23350. return 0;
  23351. }
  23352. _ACEOF
  23353. if ac_fn_c_try_link "$LINENO"
  23354. then :
  23355. enable_joystick_mfi=yes
  23356. fi
  23357. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23358. conftest$ac_exeext conftest.$ac_ext
  23359. CFLAGS="$save_CFLAGS"
  23360. LDFLAGS="$save_LDFLAGS"
  23361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23362. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23363. if test x$enable_joystick_mfi = xyes; then
  23364. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23365. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23367. fi
  23368. fi
  23369. }
  23370. CheckPTHREAD()
  23371. {
  23372. case "$host" in
  23373. *-*-emscripten*)
  23374. enable_pthreads_default=no
  23375. ;;
  23376. *)
  23377. enable_pthreads_default=yes
  23378. ;;
  23379. esac
  23380. # Check whether --enable-pthreads was given.
  23381. if test ${enable_pthreads+y}
  23382. then :
  23383. enableval=$enable_pthreads;
  23384. else $as_nop
  23385. enable_pthreads=maybe
  23386. fi
  23387. # Check whether --enable-pthread-sem was given.
  23388. if test ${enable_pthread_sem+y}
  23389. then :
  23390. enableval=$enable_pthread_sem;
  23391. else $as_nop
  23392. enable_pthread_sem=maybe
  23393. fi
  23394. if test x$enable_pthreads = xmaybe; then
  23395. enable_pthreads=$enable_pthreads_default
  23396. fi
  23397. if test x$enable_pthread_sem = xmaybe; then
  23398. enable_pthread_sem=$enable_pthreads
  23399. fi
  23400. case "$host" in
  23401. *-*-android*)
  23402. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23403. pthread_lib=""
  23404. ;;
  23405. *-*-linux*|*-*-uclinux*)
  23406. pthread_cflags="-D_REENTRANT"
  23407. pthread_lib="-lpthread"
  23408. ;;
  23409. *-*-bsdi*)
  23410. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23411. pthread_lib=""
  23412. ;;
  23413. *-*-darwin*)
  23414. pthread_cflags="-D_THREAD_SAFE"
  23415. # causes Carbon.p complaints?
  23416. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23417. ;;
  23418. *-*-freebsd*|*-*-dragonfly*)
  23419. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23420. pthread_lib="-pthread"
  23421. ;;
  23422. *-*-netbsd*)
  23423. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23424. pthread_lib="-lpthread"
  23425. ;;
  23426. *-*-openbsd*)
  23427. pthread_cflags="-D_REENTRANT"
  23428. pthread_lib="-lpthread"
  23429. ;;
  23430. *-*-solaris2.9)
  23431. # From Solaris 9+, posix4's preferred name is rt.
  23432. pthread_cflags="-D_REENTRANT"
  23433. pthread_lib="-lpthread -lrt"
  23434. ;;
  23435. *-*-solaris2.10)
  23436. # Solaris 10+ merged pthread into libc.
  23437. pthread_cflags="-D_REENTRANT"
  23438. pthread_lib="-lrt"
  23439. ;;
  23440. *-*-solaris*)
  23441. # Solaris 11+ merged rt into libc.
  23442. pthread_cflags="-D_REENTRANT"
  23443. pthread_lib=""
  23444. ;;
  23445. *-*-sysv5*)
  23446. pthread_cflags="-D_REENTRANT -Kthread"
  23447. pthread_lib=""
  23448. ;;
  23449. *-*-aix*)
  23450. pthread_cflags="-D_REENTRANT -mthreads"
  23451. pthread_lib="-lpthread"
  23452. ;;
  23453. *-*-hpux11*)
  23454. pthread_cflags="-D_REENTRANT"
  23455. pthread_lib="-L/usr/lib -lpthread"
  23456. ;;
  23457. *-*-haiku*)
  23458. pthread_cflags="-D_REENTRANT"
  23459. pthread_lib=""
  23460. ;;
  23461. *-*-nto*)
  23462. pthread_cflags="-D_REENTRANT"
  23463. pthread_lib=""
  23464. ;;
  23465. *-*-emscripten*)
  23466. pthread_cflags="-D_REENTRANT -pthread"
  23467. pthread_lib="-pthread"
  23468. ;;
  23469. *)
  23470. pthread_cflags="-D_REENTRANT"
  23471. pthread_lib="-lpthread"
  23472. ;;
  23473. esac
  23474. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23475. # Save the original compiler flags and libraries
  23476. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23477. # Add the pthread compiler flags and libraries
  23478. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23479. # Check to see if we have pthread support on this system
  23480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23481. printf %s "checking for pthreads... " >&6; }
  23482. use_pthreads=no
  23483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23484. /* end confdefs.h. */
  23485. #include <pthread.h>
  23486. int
  23487. main (void)
  23488. {
  23489. pthread_attr_t type;
  23490. pthread_attr_init(&type);
  23491. ;
  23492. return 0;
  23493. }
  23494. _ACEOF
  23495. if ac_fn_c_try_link "$LINENO"
  23496. then :
  23497. use_pthreads=yes
  23498. fi
  23499. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23500. conftest$ac_exeext conftest.$ac_ext
  23501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23502. printf "%s\n" "$use_pthreads" >&6; }
  23503. # Restore the compiler flags and libraries
  23504. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23505. # Do futher testing if we have pthread support...
  23506. if test x$use_pthreads = xyes; then
  23507. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23508. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23510. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23511. # Save the original compiler flags and libraries
  23512. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23513. # Add the pthread compiler flags and libraries
  23514. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23515. # Check to see if recursive mutexes are available
  23516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23517. printf %s "checking for recursive mutexes... " >&6; }
  23518. has_recursive_mutexes=no
  23519. if test x$has_recursive_mutexes = xno; then
  23520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23521. /* end confdefs.h. */
  23522. #define _GNU_SOURCE 1
  23523. #include <pthread.h>
  23524. int
  23525. main (void)
  23526. {
  23527. pthread_mutexattr_t attr;
  23528. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23529. ;
  23530. return 0;
  23531. }
  23532. _ACEOF
  23533. if ac_fn_c_try_link "$LINENO"
  23534. then :
  23535. has_recursive_mutexes=yes
  23536. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23537. fi
  23538. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23539. conftest$ac_exeext conftest.$ac_ext
  23540. fi
  23541. if test x$has_recursive_mutexes = xno; then
  23542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23543. /* end confdefs.h. */
  23544. #define _GNU_SOURCE 1
  23545. #include <pthread.h>
  23546. int
  23547. main (void)
  23548. {
  23549. pthread_mutexattr_t attr;
  23550. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23551. ;
  23552. return 0;
  23553. }
  23554. _ACEOF
  23555. if ac_fn_c_try_link "$LINENO"
  23556. then :
  23557. has_recursive_mutexes=yes
  23558. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23559. fi
  23560. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23561. conftest$ac_exeext conftest.$ac_ext
  23562. fi
  23563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23564. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23565. # Check to see if pthread semaphore support is missing
  23566. if test x$enable_pthread_sem = xyes; then
  23567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23568. printf %s "checking for pthread semaphores... " >&6; }
  23569. have_pthread_sem=no
  23570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23571. /* end confdefs.h. */
  23572. #include <pthread.h>
  23573. #include <semaphore.h>
  23574. int
  23575. main (void)
  23576. {
  23577. ;
  23578. return 0;
  23579. }
  23580. _ACEOF
  23581. if ac_fn_c_try_compile "$LINENO"
  23582. then :
  23583. have_pthread_sem=yes
  23584. fi
  23585. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23587. printf "%s\n" "$have_pthread_sem" >&6; }
  23588. fi
  23589. if test x$have_pthread_sem = xyes; then
  23590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23591. printf %s "checking for sem_timedwait... " >&6; }
  23592. have_sem_timedwait=no
  23593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23594. /* end confdefs.h. */
  23595. #include <pthread.h>
  23596. #include <semaphore.h>
  23597. int
  23598. main (void)
  23599. {
  23600. sem_timedwait(NULL, NULL);
  23601. ;
  23602. return 0;
  23603. }
  23604. _ACEOF
  23605. if ac_fn_c_try_link "$LINENO"
  23606. then :
  23607. have_sem_timedwait=yes
  23608. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23609. fi
  23610. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23611. conftest$ac_exeext conftest.$ac_ext
  23612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23613. printf "%s\n" "$have_sem_timedwait" >&6; }
  23614. fi
  23615. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23616. "
  23617. if test "x$ac_cv_header_pthread_np_h" = xyes
  23618. then :
  23619. have_pthread_np_h=yes
  23620. else $as_nop
  23621. have_pthread_np_h=no
  23622. fi
  23623. if test x$have_pthread_np_h = xyes; then
  23624. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23625. fi
  23626. # Check to see if pthread naming is available
  23627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23628. printf %s "checking for pthread_setname_np... " >&6; }
  23629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23630. /* end confdefs.h. */
  23631. /* Override any GCC internal prototype to avoid an error.
  23632. Use char because int might match the return type of a GCC
  23633. builtin and then its argument prototype would still apply. */
  23634. char pthread_setname_np ();
  23635. int
  23636. main (void)
  23637. {
  23638. return pthread_setname_np ();
  23639. ;
  23640. return 0;
  23641. }
  23642. _ACEOF
  23643. if ac_fn_c_try_link "$LINENO"
  23644. then :
  23645. has_pthread_setname_np=yes
  23646. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23647. else $as_nop
  23648. has_pthread_setname_np=no
  23649. fi
  23650. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23651. conftest$ac_exeext conftest.$ac_ext
  23652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23653. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23655. printf %s "checking for pthread_set_name_np... " >&6; }
  23656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23657. /* end confdefs.h. */
  23658. /* Override any GCC internal prototype to avoid an error.
  23659. Use char because int might match the return type of a GCC
  23660. builtin and then its argument prototype would still apply. */
  23661. char pthread_set_name_np ();
  23662. int
  23663. main (void)
  23664. {
  23665. return pthread_set_name_np ();
  23666. ;
  23667. return 0;
  23668. }
  23669. _ACEOF
  23670. if ac_fn_c_try_link "$LINENO"
  23671. then :
  23672. has_pthread_set_name_np=yes
  23673. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23674. else $as_nop
  23675. has_pthread_set_name_np=no
  23676. fi
  23677. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23678. conftest$ac_exeext conftest.$ac_ext
  23679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23680. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23681. # Restore the compiler flags and libraries
  23682. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23683. # Basic thread creation functions
  23684. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23685. # Semaphores
  23686. # We can fake these with mutexes and condition variables if necessary
  23687. if test x$have_pthread_sem = xyes; then
  23688. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23689. else
  23690. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23691. fi
  23692. # Mutexes
  23693. # We can fake these with semaphores if necessary
  23694. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23695. # Condition variables
  23696. # We can fake these with semaphores and mutexes if necessary
  23697. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23698. # Thread local storage
  23699. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23700. have_threads=yes
  23701. fi
  23702. fi
  23703. }
  23704. CheckWINDOWS()
  23705. {
  23706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23707. printf %s "checking Windows compiler... " >&6; }
  23708. have_win32_gcc=no
  23709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23710. /* end confdefs.h. */
  23711. #include <windows.h>
  23712. int
  23713. main (void)
  23714. {
  23715. ;
  23716. return 0;
  23717. }
  23718. _ACEOF
  23719. if ac_fn_c_try_compile "$LINENO"
  23720. then :
  23721. have_win32_gcc=yes
  23722. fi
  23723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23725. printf "%s\n" "$have_win32_gcc" >&6; }
  23726. if test x$have_win32_gcc != xyes; then
  23727. as_fn_error $? "
  23728. *** Your compiler ($CC) does not produce Windows executables!
  23729. " "$LINENO" 5
  23730. fi
  23731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23732. printf %s "checking Windows CE... " >&6; }
  23733. have_wince=no
  23734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23735. /* end confdefs.h. */
  23736. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23737. #error This is not Windows CE
  23738. #endif
  23739. int
  23740. main (void)
  23741. {
  23742. ;
  23743. return 0;
  23744. }
  23745. _ACEOF
  23746. if ac_fn_c_try_compile "$LINENO"
  23747. then :
  23748. have_wince=yes
  23749. as_fn_error $? "
  23750. *** Sorry, Windows CE is no longer supported.
  23751. " "$LINENO" 5
  23752. fi
  23753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23755. printf "%s\n" "$have_wince" >&6; }
  23756. # headers needed elsewhere
  23757. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23758. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23759. then :
  23760. have_tpcshrd_h=yes
  23761. fi
  23762. if test x$have_tpcshrd_h = xyes; then
  23763. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23764. fi
  23765. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23766. if test "x$ac_cv_header_roapi_h" = xyes
  23767. then :
  23768. have_roapi_h=yes
  23769. fi
  23770. if test x$have_roapi_h = xyes; then
  23771. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23772. fi
  23773. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23774. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23775. then :
  23776. have_shellscalingapi_h=yes
  23777. fi
  23778. if test x$shellscalingapi_h = xyes; then
  23779. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23780. fi
  23781. }
  23782. CheckOS2()
  23783. {
  23784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23785. printf %s "checking OS/2 compiler... " >&6; }
  23786. have_os2_gcc=no
  23787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23788. /* end confdefs.h. */
  23789. #include <os2.h>
  23790. int
  23791. main (void)
  23792. {
  23793. ;
  23794. return 0;
  23795. }
  23796. _ACEOF
  23797. if ac_fn_c_try_compile "$LINENO"
  23798. then :
  23799. have_os2_gcc=yes
  23800. fi
  23801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23803. printf "%s\n" "$have_os2_gcc" >&6; }
  23804. if test x$have_os2_gcc != xyes; then
  23805. as_fn_error $? "
  23806. *** Your compiler ($CC) does not produce OS/2 executables!
  23807. " "$LINENO" 5
  23808. fi
  23809. }
  23810. CheckDIRECTX()
  23811. {
  23812. # Check whether --enable-directx was given.
  23813. if test ${enable_directx+y}
  23814. then :
  23815. enableval=$enable_directx;
  23816. else $as_nop
  23817. enable_directx=yes
  23818. fi
  23819. if test x$enable_directx = xyes; then
  23820. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23821. if test "x$ac_cv_header_d3d9_h" = xyes
  23822. then :
  23823. have_d3d=yes
  23824. fi
  23825. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23826. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23827. then :
  23828. have_d3d11=yes
  23829. fi
  23830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23831. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23833. /* end confdefs.h. */
  23834. #include <winsdkver.h>
  23835. #include <sdkddkver.h>
  23836. #include <d3d12.h>
  23837. ID3D12Device1 *device;
  23838. #if WDK_NTDDI_VERSION <= 0x0A000008
  23839. asdf
  23840. #endif
  23841. int
  23842. main (void)
  23843. {
  23844. ;
  23845. return 0;
  23846. }
  23847. _ACEOF
  23848. if ac_fn_c_try_compile "$LINENO"
  23849. then :
  23850. have_d3d12=yes
  23851. else $as_nop
  23852. have_d3d12=no
  23853. fi
  23854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23856. printf "%s\n" "$have_d3d12" >&6; }
  23857. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23858. if test "x$ac_cv_header_ddraw_h" = xyes
  23859. then :
  23860. have_ddraw=yes
  23861. fi
  23862. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23863. if test "x$ac_cv_header_dsound_h" = xyes
  23864. then :
  23865. have_dsound=yes
  23866. fi
  23867. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23868. if test "x$ac_cv_header_dinput_h" = xyes
  23869. then :
  23870. have_dinput=yes
  23871. fi
  23872. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23873. if test "x$ac_cv_header_dxgi_h" = xyes
  23874. then :
  23875. have_dxgi=yes
  23876. fi
  23877. if test x$have_ddraw = xyes; then
  23878. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23879. fi
  23880. if test x$have_dinput = xyes; then
  23881. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23882. fi
  23883. if test x$have_dsound = xyes; then
  23884. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23885. fi
  23886. if test x$have_dxgi = xyes; then
  23887. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23888. fi
  23889. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23890. # FIXME: ...so force it off for now.
  23891. case "$host" in
  23892. *-*-cygwin*)
  23893. have_dinput=false
  23894. ;;
  23895. esac
  23896. fi
  23897. # Check whether --enable-xinput was given.
  23898. if test ${enable_xinput+y}
  23899. then :
  23900. enableval=$enable_xinput;
  23901. else $as_nop
  23902. enable_xinput=yes
  23903. fi
  23904. if test x$enable_xinput = xyes; then
  23905. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23906. if test "x$ac_cv_header_xinput_h" = xyes
  23907. then :
  23908. have_xinput=yes
  23909. fi
  23910. if test x$have_xinput = xyes; then
  23911. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23912. fi
  23913. fi
  23914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23915. printf %s "checking for windows.gaming.input.h... " >&6; }
  23916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23917. /* end confdefs.h. */
  23918. #define COBJMACROS
  23919. #include <windows.gaming.input.h>
  23920. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23921. int
  23922. main (void)
  23923. {
  23924. ;
  23925. return 0;
  23926. }
  23927. _ACEOF
  23928. if ac_fn_c_try_compile "$LINENO"
  23929. then :
  23930. have_wgi=yes
  23931. else $as_nop
  23932. have_wgi=no
  23933. fi
  23934. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23936. printf "%s\n" "$have_wgi" >&6; }
  23937. if test x$have_wgi = xyes; then
  23938. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23939. fi
  23940. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23941. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23942. then :
  23943. have_wasapi=yes
  23944. fi
  23945. if test x$have_wasapi = xyes; then
  23946. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23947. fi
  23948. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23949. if test "x$ac_cv_header_audioclient_h" = xyes
  23950. then :
  23951. else $as_nop
  23952. have_wasapi=no
  23953. fi
  23954. if test x$have_wasapi = xyes; then
  23955. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23956. fi
  23957. # Check whether --enable-wasapi was given.
  23958. if test ${enable_wasapi+y}
  23959. then :
  23960. enableval=$enable_wasapi;
  23961. else $as_nop
  23962. enable_wasapi=yes
  23963. fi
  23964. }
  23965. CheckDLOPEN()
  23966. {
  23967. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23968. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23969. if test "x$ac_cv_header_dlfcn_h" = xyes
  23970. then :
  23971. have_dlfcn_h=yes
  23972. else $as_nop
  23973. have_dlfcn_h=no
  23974. fi
  23975. have_dlopen=no
  23976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23977. printf %s "checking for dlopen in -lc... " >&6; }
  23978. if test ${ac_cv_lib_c_dlopen+y}
  23979. then :
  23980. printf %s "(cached) " >&6
  23981. else $as_nop
  23982. ac_check_lib_save_LIBS=$LIBS
  23983. LIBS="-lc $LIBS"
  23984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23985. /* end confdefs.h. */
  23986. /* Override any GCC internal prototype to avoid an error.
  23987. Use char because int might match the return type of a GCC
  23988. builtin and then its argument prototype would still apply. */
  23989. char dlopen ();
  23990. int
  23991. main (void)
  23992. {
  23993. return dlopen ();
  23994. ;
  23995. return 0;
  23996. }
  23997. _ACEOF
  23998. if ac_fn_c_try_link "$LINENO"
  23999. then :
  24000. ac_cv_lib_c_dlopen=yes
  24001. else $as_nop
  24002. ac_cv_lib_c_dlopen=no
  24003. fi
  24004. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24005. conftest$ac_exeext conftest.$ac_ext
  24006. LIBS=$ac_check_lib_save_LIBS
  24007. fi
  24008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24009. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24010. if test "x$ac_cv_lib_c_dlopen" = xyes
  24011. then :
  24012. have_dlopen=yes
  24013. else $as_nop
  24014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24015. printf %s "checking for dlopen in -ldl... " >&6; }
  24016. if test ${ac_cv_lib_dl_dlopen+y}
  24017. then :
  24018. printf %s "(cached) " >&6
  24019. else $as_nop
  24020. ac_check_lib_save_LIBS=$LIBS
  24021. LIBS="-ldl $LIBS"
  24022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24023. /* end confdefs.h. */
  24024. /* Override any GCC internal prototype to avoid an error.
  24025. Use char because int might match the return type of a GCC
  24026. builtin and then its argument prototype would still apply. */
  24027. char dlopen ();
  24028. int
  24029. main (void)
  24030. {
  24031. return dlopen ();
  24032. ;
  24033. return 0;
  24034. }
  24035. _ACEOF
  24036. if ac_fn_c_try_link "$LINENO"
  24037. then :
  24038. ac_cv_lib_dl_dlopen=yes
  24039. else $as_nop
  24040. ac_cv_lib_dl_dlopen=no
  24041. fi
  24042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24043. conftest$ac_exeext conftest.$ac_ext
  24044. LIBS=$ac_check_lib_save_LIBS
  24045. fi
  24046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24047. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24048. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24049. then :
  24050. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24051. fi
  24052. fi
  24053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24054. printf %s "checking for dlopen... " >&6; }
  24055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24056. printf "%s\n" "$have_dlopen" >&6; }
  24057. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24058. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24059. if test x$enable_loadso = xyes; then
  24060. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24061. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24062. have_loadso=yes
  24063. fi
  24064. fi
  24065. }
  24066. CheckO_CLOEXEC()
  24067. {
  24068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24069. printf %s "checking for O_CLOEXEC... " >&6; }
  24070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24071. /* end confdefs.h. */
  24072. #include <fcntl.h>
  24073. int flag = O_CLOEXEC;
  24074. int
  24075. main (void)
  24076. {
  24077. ;
  24078. return 0;
  24079. }
  24080. _ACEOF
  24081. if ac_fn_c_try_compile "$LINENO"
  24082. then :
  24083. have_o_cloexec=yes
  24084. else $as_nop
  24085. have_o_cloexec=no
  24086. fi
  24087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24089. printf "%s\n" "$have_o_cloexec" >&6; }
  24090. if test $have_o_cloexec = yes; then
  24091. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24092. fi
  24093. }
  24094. CheckUSBHID()
  24095. {
  24096. case "$host" in
  24097. *-*-*bsd*|*-*-dragonfly*)
  24098. if test x$enable_joystick = xyes; then
  24099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24100. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24101. if test ${ac_cv_lib_usbhid_hid_init+y}
  24102. then :
  24103. printf %s "(cached) " >&6
  24104. else $as_nop
  24105. ac_check_lib_save_LIBS=$LIBS
  24106. LIBS="-lusbhid $LIBS"
  24107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24108. /* end confdefs.h. */
  24109. /* Override any GCC internal prototype to avoid an error.
  24110. Use char because int might match the return type of a GCC
  24111. builtin and then its argument prototype would still apply. */
  24112. char hid_init ();
  24113. int
  24114. main (void)
  24115. {
  24116. return hid_init ();
  24117. ;
  24118. return 0;
  24119. }
  24120. _ACEOF
  24121. if ac_fn_c_try_link "$LINENO"
  24122. then :
  24123. ac_cv_lib_usbhid_hid_init=yes
  24124. else $as_nop
  24125. ac_cv_lib_usbhid_hid_init=no
  24126. fi
  24127. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24128. conftest$ac_exeext conftest.$ac_ext
  24129. LIBS=$ac_check_lib_save_LIBS
  24130. fi
  24131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24132. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24133. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24134. then :
  24135. have_libusbhid=yes
  24136. fi
  24137. if test x$have_libusbhid = xyes; then
  24138. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24139. if test "x$ac_cv_header_usbhid_h" = xyes
  24140. then :
  24141. USB_CFLAGS="-DHAVE_USBHID_H"
  24142. fi
  24143. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24144. if test "x$ac_cv_header_libusbhid_h" = xyes
  24145. then :
  24146. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24147. fi
  24148. USB_LIBS="$USB_LIBS -lusbhid"
  24149. else
  24150. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24151. if test "x$ac_cv_header_usb_h" = xyes
  24152. then :
  24153. USB_CFLAGS="-DHAVE_USB_H"
  24154. fi
  24155. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24156. if test "x$ac_cv_header_libusb_h" = xyes
  24157. then :
  24158. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24159. fi
  24160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24161. printf %s "checking for hid_init in -lusb... " >&6; }
  24162. if test ${ac_cv_lib_usb_hid_init+y}
  24163. then :
  24164. printf %s "(cached) " >&6
  24165. else $as_nop
  24166. ac_check_lib_save_LIBS=$LIBS
  24167. LIBS="-lusb $LIBS"
  24168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24169. /* end confdefs.h. */
  24170. /* Override any GCC internal prototype to avoid an error.
  24171. Use char because int might match the return type of a GCC
  24172. builtin and then its argument prototype would still apply. */
  24173. char hid_init ();
  24174. int
  24175. main (void)
  24176. {
  24177. return hid_init ();
  24178. ;
  24179. return 0;
  24180. }
  24181. _ACEOF
  24182. if ac_fn_c_try_link "$LINENO"
  24183. then :
  24184. ac_cv_lib_usb_hid_init=yes
  24185. else $as_nop
  24186. ac_cv_lib_usb_hid_init=no
  24187. fi
  24188. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24189. conftest$ac_exeext conftest.$ac_ext
  24190. LIBS=$ac_check_lib_save_LIBS
  24191. fi
  24192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24193. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24194. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24195. then :
  24196. USB_LIBS="$USB_LIBS -lusb"
  24197. fi
  24198. fi
  24199. save_CFLAGS="$CFLAGS"
  24200. CFLAGS="$CFLAGS $USB_CFLAGS"
  24201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24202. printf %s "checking for usbhid... " >&6; }
  24203. have_usbhid=no
  24204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24205. /* end confdefs.h. */
  24206. #include <sys/types.h>
  24207. #if defined(HAVE_USB_H)
  24208. #include <usb.h>
  24209. #endif
  24210. #ifdef __DragonFly__
  24211. # include <bus/u4b/usb.h>
  24212. # include <bus/u4b/usbhid.h>
  24213. #else
  24214. # include <dev/usb/usb.h>
  24215. # include <dev/usb/usbhid.h>
  24216. #endif
  24217. #if defined(HAVE_USBHID_H)
  24218. #include <usbhid.h>
  24219. #elif defined(HAVE_LIBUSB_H)
  24220. #include <libusb.h>
  24221. #elif defined(HAVE_LIBUSBHID_H)
  24222. #include <libusbhid.h>
  24223. #endif
  24224. int
  24225. main (void)
  24226. {
  24227. struct report_desc *repdesc;
  24228. struct usb_ctl_report *repbuf;
  24229. hid_kind_t hidkind;
  24230. ;
  24231. return 0;
  24232. }
  24233. _ACEOF
  24234. if ac_fn_c_try_compile "$LINENO"
  24235. then :
  24236. have_usbhid=yes
  24237. fi
  24238. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24240. printf "%s\n" "$have_usbhid" >&6; }
  24241. if test x$have_usbhid = xyes; then
  24242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24243. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24244. have_usbhid_ucr_data=no
  24245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24246. /* end confdefs.h. */
  24247. #include <sys/types.h>
  24248. #if defined(HAVE_USB_H)
  24249. #include <usb.h>
  24250. #endif
  24251. #ifdef __DragonFly__
  24252. # include <bus/u4b/usb.h>
  24253. # include <bus/u4b/usbhid.h>
  24254. #else
  24255. # include <dev/usb/usb.h>
  24256. # include <dev/usb/usbhid.h>
  24257. #endif
  24258. #if defined(HAVE_USBHID_H)
  24259. #include <usbhid.h>
  24260. #elif defined(HAVE_LIBUSB_H)
  24261. #include <libusb.h>
  24262. #elif defined(HAVE_LIBUSBHID_H)
  24263. #include <libusbhid.h>
  24264. #endif
  24265. int
  24266. main (void)
  24267. {
  24268. struct usb_ctl_report buf;
  24269. if (buf.ucr_data) { }
  24270. ;
  24271. return 0;
  24272. }
  24273. _ACEOF
  24274. if ac_fn_c_try_compile "$LINENO"
  24275. then :
  24276. have_usbhid_ucr_data=yes
  24277. fi
  24278. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24279. if test x$have_usbhid_ucr_data = xyes; then
  24280. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24281. fi
  24282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24283. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24285. printf %s "checking for new usbhid API... " >&6; }
  24286. have_usbhid_new=no
  24287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24288. /* end confdefs.h. */
  24289. #include <sys/types.h>
  24290. #if defined(HAVE_USB_H)
  24291. #include <usb.h>
  24292. #endif
  24293. #ifdef __DragonFly__
  24294. #include <bus/u4b/usb.h>
  24295. #include <bus/u4b/usbhid.h>
  24296. #else
  24297. #include <dev/usb/usb.h>
  24298. #include <dev/usb/usbhid.h>
  24299. #endif
  24300. #if defined(HAVE_USBHID_H)
  24301. #include <usbhid.h>
  24302. #elif defined(HAVE_LIBUSB_H)
  24303. #include <libusb.h>
  24304. #elif defined(HAVE_LIBUSBHID_H)
  24305. #include <libusbhid.h>
  24306. #endif
  24307. int
  24308. main (void)
  24309. {
  24310. report_desc_t d;
  24311. hid_start_parse(d, 1, 1);
  24312. ;
  24313. return 0;
  24314. }
  24315. _ACEOF
  24316. if ac_fn_c_try_compile "$LINENO"
  24317. then :
  24318. have_usbhid_new=yes
  24319. fi
  24320. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24321. if test x$have_usbhid_new = xyes; then
  24322. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24323. fi
  24324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24325. printf "%s\n" "$have_usbhid_new" >&6; }
  24326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24327. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24328. have_machine_joystick=no
  24329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24330. /* end confdefs.h. */
  24331. #include <machine/joystick.h>
  24332. int
  24333. main (void)
  24334. {
  24335. struct joystick t;
  24336. ;
  24337. return 0;
  24338. }
  24339. _ACEOF
  24340. if ac_fn_c_try_compile "$LINENO"
  24341. then :
  24342. have_machine_joystick=yes
  24343. fi
  24344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24345. if test x$have_machine_joystick = xyes; then
  24346. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24347. fi
  24348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24349. printf "%s\n" "$have_machine_joystick" >&6; }
  24350. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24351. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24352. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24354. have_joystick=yes
  24355. fi
  24356. CFLAGS="$save_CFLAGS"
  24357. fi
  24358. ;;
  24359. esac
  24360. }
  24361. CheckHIDAPI()
  24362. {
  24363. # Check whether --enable-hidapi-joystick was given.
  24364. if test ${enable_hidapi_joystick+y}
  24365. then :
  24366. enableval=$enable_hidapi_joystick;
  24367. else $as_nop
  24368. enable_hidapi_joystick=yes
  24369. fi
  24370. # Check whether --enable-hidapi-libusb was given.
  24371. if test ${enable_hidapi_libusb+y}
  24372. then :
  24373. enableval=$enable_hidapi_libusb;
  24374. else $as_nop
  24375. enable_hidapi_libusb=maybe
  24376. fi
  24377. if test x$enable_hidapi = xyes; then
  24378. case "$host" in
  24379. # libusb does not support iOS
  24380. *-ios-* )
  24381. enable_hidapi_libusb=no
  24382. ;;
  24383. # On the other hand, *BSD specifically uses libusb only
  24384. *-*-*bsd* )
  24385. enable_hidapi_libusb=yes
  24386. require_hidapi_libusb=yes
  24387. ;;
  24388. *-*-os2* )
  24389. enable_hidapi_libusb=yes
  24390. ;;
  24391. esac
  24392. hidapi_support=yes
  24393. if test x$enable_hidapi_libusb = xyes; then
  24394. pkg_failed=no
  24395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24396. printf %s "checking for libusb-1.0... " >&6; }
  24397. if test -n "$LIBUSB_CFLAGS"; then
  24398. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24399. elif test -n "$PKG_CONFIG"; then
  24400. if test -n "$PKG_CONFIG" && \
  24401. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24402. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24403. ac_status=$?
  24404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24405. test $ac_status = 0; }; then
  24406. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24407. test "x$?" != "x0" && pkg_failed=yes
  24408. else
  24409. pkg_failed=yes
  24410. fi
  24411. else
  24412. pkg_failed=untried
  24413. fi
  24414. if test -n "$LIBUSB_LIBS"; then
  24415. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24416. elif test -n "$PKG_CONFIG"; then
  24417. if test -n "$PKG_CONFIG" && \
  24418. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24419. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24420. ac_status=$?
  24421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24422. test $ac_status = 0; }; then
  24423. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24424. test "x$?" != "x0" && pkg_failed=yes
  24425. else
  24426. pkg_failed=yes
  24427. fi
  24428. else
  24429. pkg_failed=untried
  24430. fi
  24431. if test $pkg_failed = yes; then
  24432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24433. printf "%s\n" "no" >&6; }
  24434. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24435. _pkg_short_errors_supported=yes
  24436. else
  24437. _pkg_short_errors_supported=no
  24438. fi
  24439. if test $_pkg_short_errors_supported = yes; then
  24440. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24441. else
  24442. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24443. fi
  24444. # Put the nasty error message in config.log where it belongs
  24445. echo "$LIBUSB_PKG_ERRORS" >&5
  24446. have_libusb=no
  24447. elif test $pkg_failed = untried; then
  24448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24449. printf "%s\n" "no" >&6; }
  24450. have_libusb=no
  24451. else
  24452. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24453. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24455. printf "%s\n" "yes" >&6; }
  24456. have_libusb=yes
  24457. fi
  24458. save_CPPFLAGS="$CPPFLAGS"
  24459. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24460. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24461. if test "x$ac_cv_header_libusb_h" = xyes
  24462. then :
  24463. have_libusb_h=yes
  24464. else $as_nop
  24465. have_libusb_h=no
  24466. fi
  24467. CPPFLAGS="$save_CPPFLAGS"
  24468. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24469. hidapi_support=no
  24470. fi
  24471. fi
  24472. if test x$hidapi_support = xyes; then
  24473. if test x$have_libusb_h = xyes; then
  24474. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24475. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24476. if test x$require_hidapi_libusb = xyes; then
  24477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24478. else
  24479. if test x$have_loadso != xyes; then
  24480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24481. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24482. fi
  24483. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24484. libusb_lib=""
  24485. case "$host" in
  24486. *-*-darwin* )
  24487. libusb_lib="libusb-1.0.0.dylib"
  24488. ;;
  24489. *-*-cygwin* | *-*-mingw* )
  24490. libusb_lib="libusb-1.0.dll"
  24491. ;;
  24492. *-*-os2* )
  24493. libusb_lib="usb100.dll"
  24494. ;;
  24495. esac
  24496. if test x$libusb_lib = x; then
  24497. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24498. fi
  24499. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24500. fi
  24501. fi
  24502. fi
  24503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24504. printf %s "checking for hidapi joystick support... " >&6; }
  24505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24506. printf "%s\n" "$hidapi_support" >&6; }
  24507. fi
  24508. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24509. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24510. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24511. fi
  24512. }
  24513. CheckClockGettime()
  24514. {
  24515. # Check whether --enable-clock_gettime was given.
  24516. if test ${enable_clock_gettime+y}
  24517. then :
  24518. enableval=$enable_clock_gettime;
  24519. else $as_nop
  24520. enable_clock_gettime=yes
  24521. fi
  24522. if test x$enable_clock_gettime = xyes; then
  24523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24524. printf %s "checking for clock_gettime in -lc... " >&6; }
  24525. if test ${ac_cv_lib_c_clock_gettime+y}
  24526. then :
  24527. printf %s "(cached) " >&6
  24528. else $as_nop
  24529. ac_check_lib_save_LIBS=$LIBS
  24530. LIBS="-lc $LIBS"
  24531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24532. /* end confdefs.h. */
  24533. /* Override any GCC internal prototype to avoid an error.
  24534. Use char because int might match the return type of a GCC
  24535. builtin and then its argument prototype would still apply. */
  24536. char clock_gettime ();
  24537. int
  24538. main (void)
  24539. {
  24540. return clock_gettime ();
  24541. ;
  24542. return 0;
  24543. }
  24544. _ACEOF
  24545. if ac_fn_c_try_link "$LINENO"
  24546. then :
  24547. ac_cv_lib_c_clock_gettime=yes
  24548. else $as_nop
  24549. ac_cv_lib_c_clock_gettime=no
  24550. fi
  24551. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24552. conftest$ac_exeext conftest.$ac_ext
  24553. LIBS=$ac_check_lib_save_LIBS
  24554. fi
  24555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24556. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24557. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24558. then :
  24559. have_clock_gettime=yes
  24560. fi
  24561. if test x$have_clock_gettime = xyes; then
  24562. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24563. else
  24564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24565. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24566. if test ${ac_cv_lib_rt_clock_gettime+y}
  24567. then :
  24568. printf %s "(cached) " >&6
  24569. else $as_nop
  24570. ac_check_lib_save_LIBS=$LIBS
  24571. LIBS="-lrt $LIBS"
  24572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24573. /* end confdefs.h. */
  24574. /* Override any GCC internal prototype to avoid an error.
  24575. Use char because int might match the return type of a GCC
  24576. builtin and then its argument prototype would still apply. */
  24577. char clock_gettime ();
  24578. int
  24579. main (void)
  24580. {
  24581. return clock_gettime ();
  24582. ;
  24583. return 0;
  24584. }
  24585. _ACEOF
  24586. if ac_fn_c_try_link "$LINENO"
  24587. then :
  24588. ac_cv_lib_rt_clock_gettime=yes
  24589. else $as_nop
  24590. ac_cv_lib_rt_clock_gettime=no
  24591. fi
  24592. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24593. conftest$ac_exeext conftest.$ac_ext
  24594. LIBS=$ac_check_lib_save_LIBS
  24595. fi
  24596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24597. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24598. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24599. then :
  24600. have_clock_gettime=yes
  24601. fi
  24602. if test x$have_clock_gettime = xyes; then
  24603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24604. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24605. fi
  24606. fi
  24607. fi
  24608. }
  24609. CheckLinuxVersion()
  24610. {
  24611. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24612. if test "x$ac_cv_header_linux_version_h" = xyes
  24613. then :
  24614. have_linux_version_h=yes
  24615. fi
  24616. if test x$have_linux_version_h = xyes; then
  24617. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24618. fi
  24619. }
  24620. CheckRPATH()
  24621. {
  24622. # Check whether --enable-rpath was given.
  24623. if test ${enable_rpath+y}
  24624. then :
  24625. enableval=$enable_rpath;
  24626. else $as_nop
  24627. enable_rpath=yes
  24628. fi
  24629. }
  24630. CheckEventSignals()
  24631. {
  24632. # Check whether --enable-backgrounding-signal was given.
  24633. if test ${enable_backgrounding_signal+y}
  24634. then :
  24635. enableval=$enable_backgrounding_signal;
  24636. else $as_nop
  24637. enable_backgrounding_signal=no
  24638. fi
  24639. if test x$enable_backgrounding_signal != xno; then
  24640. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24641. fi
  24642. # Check whether --enable-foregrounding-signal was given.
  24643. if test ${enable_foregrounding_signal+y}
  24644. then :
  24645. enableval=$enable_foregrounding_signal;
  24646. else $as_nop
  24647. enable_foregrounding_signal=no
  24648. fi
  24649. if test x$enable_foregrounding_signal != xno; then
  24650. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24651. fi
  24652. }
  24653. CheckVirtualJoystick()
  24654. {
  24655. # Check whether --enable-joystick-virtual was given.
  24656. if test ${enable_joystick_virtual+y}
  24657. then :
  24658. enableval=$enable_joystick_virtual;
  24659. else $as_nop
  24660. enable_joystick_virtual=yes
  24661. fi
  24662. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24663. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24664. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24665. have_joystick_virtual=yes
  24666. fi
  24667. }
  24668. CheckWarnAll
  24669. CheckUnusedLocalTypedefs
  24670. CheckNoStrictAliasing
  24671. CheckEventSignals
  24672. have_locale=no
  24673. case "$host" in
  24674. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24675. case "$host" in
  24676. *-*-android*)
  24677. # Android
  24678. ARCH=android
  24679. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24680. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24681. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24682. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24684. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24685. if test x$enable_video = xyes; then
  24686. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24687. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24688. SUMMARY_video="${SUMMARY_video} android"
  24689. have_video=yes
  24690. fi
  24691. ;;
  24692. *-*-linux*) ARCH=linux ;;
  24693. *-*-uclinux*) ARCH=linux ;;
  24694. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24695. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24696. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24697. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24698. *-*-bsdi*) ARCH=bsdi ;;
  24699. *-*-freebsd*) ARCH=freebsd ;;
  24700. *-*-dragonfly*) ARCH=freebsd ;;
  24701. *-*-netbsd*) ARCH=netbsd ;;
  24702. *-*-openbsd*) ARCH=openbsd ;;
  24703. *-*-sysv5*) ARCH=sysv5 ;;
  24704. *-*-solaris*) ARCH=solaris ;;
  24705. *-*-hpux*) ARCH=hpux ;;
  24706. *-*-aix*) ARCH=aix ;;
  24707. *-*-minix*) ARCH=minix ;;
  24708. *-*-nto*) ARCH=nto
  24709. CheckQNXVideo
  24710. ;;
  24711. esac
  24712. CheckVisibilityHidden
  24713. CheckWerror
  24714. CheckDeclarationAfterStatement
  24715. CheckDummyVideo
  24716. CheckOffscreenVideo
  24717. CheckDiskAudio
  24718. CheckDummyAudio
  24719. CheckDLOPEN
  24720. CheckARM
  24721. CheckNEON
  24722. CheckO_CLOEXEC
  24723. CheckOSS
  24724. CheckALSA
  24725. CheckPipewire
  24726. CheckPulseAudio
  24727. CheckJACK
  24728. CheckARTSC
  24729. CheckESD
  24730. CheckNAS
  24731. CheckSNDIO
  24732. CheckFusionSound
  24733. CheckLibSampleRate
  24734. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24735. CheckRPI
  24736. CheckX11
  24737. CheckDirectFB
  24738. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24739. CheckEGL
  24740. CheckKMSDRM
  24741. CheckGLX
  24742. CheckOpenGL
  24743. CheckOpenGLES
  24744. CheckVulkan
  24745. CheckWayland
  24746. CheckInputEvents
  24747. CheckLibUDev
  24748. CheckDBus
  24749. CheckIME
  24750. CheckInotify
  24751. CheckIBus
  24752. CheckFcitx
  24753. case $ARCH in
  24754. linux)
  24755. CheckInputKD
  24756. ;;
  24757. freebsd)
  24758. CheckInputKBIO
  24759. ;;
  24760. openbsd|netbsd)
  24761. CheckInputWSCONS
  24762. ;;
  24763. esac
  24764. CheckUSBHID
  24765. CheckHIDAPI
  24766. CheckPTHREAD
  24767. CheckClockGettime
  24768. CheckLinuxVersion
  24769. CheckRPATH
  24770. CheckVivanteVideo
  24771. # Set up files for the misc library
  24772. if test x$enable_misc = xyes; then
  24773. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24774. have_misc=yes
  24775. fi
  24776. # Set up files for the locale library
  24777. if test x$enable_locale = xyes; then
  24778. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24779. have_locale=yes
  24780. fi
  24781. # Set up files for the audio library
  24782. if test x$enable_audio = xyes; then
  24783. case $ARCH in
  24784. sysv5|solaris|hpux)
  24785. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24786. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24787. SUMMARY_audio="${SUMMARY_audio} sun"
  24788. have_audio=yes
  24789. ;;
  24790. netbsd) # Don't use this on OpenBSD, it's busted.
  24791. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24792. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24793. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24794. have_audio=yes
  24795. ;;
  24796. aix)
  24797. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24798. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24799. SUMMARY_audio="${SUMMARY_audio} paudio"
  24800. have_audio=yes
  24801. ;;
  24802. android)
  24803. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24804. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24805. SUMMARY_audio="${SUMMARY_audio} android"
  24806. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24807. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24808. SUMMARY_audio="${SUMMARY_audio} openslES"
  24809. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24810. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24811. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24812. have_audio=yes
  24813. ;;
  24814. nto)
  24815. CheckQNXAudio
  24816. ;;
  24817. esac
  24818. fi
  24819. # Set up files for the joystick library
  24820. if test x$enable_joystick = xyes; then
  24821. case $ARCH in
  24822. linux)
  24823. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24824. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24825. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24826. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24827. have_joystick=yes
  24828. fi
  24829. ;;
  24830. freebsd)
  24831. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24832. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24833. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24834. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24835. have_joystick=yes
  24836. fi
  24837. ;;
  24838. android)
  24839. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24840. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24841. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24842. have_joystick=yes
  24843. ;;
  24844. esac
  24845. fi
  24846. # Set up files for the haptic library
  24847. if test x$enable_haptic = xyes; then
  24848. case $ARCH in
  24849. linux|freebsd)
  24850. if test x$use_input_events = xyes; then
  24851. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24852. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24853. have_haptic=yes
  24854. fi
  24855. ;;
  24856. android)
  24857. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24858. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24859. have_haptic=yes
  24860. ;;
  24861. esac
  24862. fi
  24863. # Set up files for the sensor library
  24864. if test x$enable_sensor = xyes; then
  24865. case $ARCH in
  24866. android)
  24867. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24868. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24869. have_sensor=yes
  24870. ;;
  24871. esac
  24872. fi
  24873. # Set up files for the power library
  24874. if test x$enable_power = xyes; then
  24875. case $ARCH in
  24876. linux)
  24877. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24878. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24879. have_power=yes
  24880. ;;
  24881. android)
  24882. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24883. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24884. have_power=yes
  24885. ;;
  24886. esac
  24887. fi
  24888. # Set up files for the filesystem library
  24889. if test x$enable_filesystem = xyes; then
  24890. case $ARCH in
  24891. android)
  24892. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24893. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24894. have_filesystem=yes
  24895. ;;
  24896. *)
  24897. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24898. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24899. have_filesystem=yes
  24900. ;;
  24901. esac
  24902. fi
  24903. # Set up files for the timer library
  24904. if test x$enable_timers = xyes; then
  24905. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24906. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24907. have_timers=yes
  24908. fi
  24909. # Set up files for udev hotplugging support
  24910. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24911. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24912. fi
  24913. # Set up files for evdev input
  24914. if test x$use_input_events = xyes; then
  24915. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24916. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24917. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24918. fi
  24919. # Set up files for wscons input
  24920. if test x$use_input_wscons = xyes; then
  24921. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24922. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24923. fi
  24924. # Set up other core UNIX files
  24925. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24926. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24927. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24928. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24929. ;;
  24930. *-*-cygwin* | *-*-mingw*)
  24931. ARCH=win32
  24932. if test "$build" != "$host"; then # cross-compiling
  24933. # Default cross-compile location
  24934. ac_default_prefix=/usr/local/cross-tools/$host
  24935. else
  24936. # Look for the location of the tools and install there
  24937. if test "$BUILD_PREFIX" != ""; then
  24938. ac_default_prefix=$BUILD_PREFIX
  24939. fi
  24940. fi
  24941. if test x$enable_loadso = xyes; then
  24942. have_loadso=yes
  24943. fi
  24944. CheckGDwarf4
  24945. CheckWerror
  24946. CheckDeclarationAfterStatement
  24947. CheckDummyVideo
  24948. CheckOffscreenVideo
  24949. CheckDiskAudio
  24950. CheckDummyAudio
  24951. CheckWINDOWS
  24952. CheckWINDOWSGL
  24953. CheckWINDOWSGLES
  24954. CheckVulkan
  24955. CheckDIRECTX
  24956. CheckHIDAPI
  24957. # Set up the core platform files
  24958. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24959. # Set up files for the misc library
  24960. if test x$enable_misc = xyes; then
  24961. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24962. have_misc=yes
  24963. fi
  24964. # Use the Windows locale APIs.
  24965. if test x$enable_locale = xyes; then
  24966. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24967. have_locale=yes
  24968. fi
  24969. # Set up files for the video library
  24970. if test x$enable_video = xyes; then
  24971. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24972. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24973. have_video=yes
  24974. # Check whether --enable-render-d3d was given.
  24975. if test ${enable_render_d3d+y}
  24976. then :
  24977. enableval=$enable_render_d3d;
  24978. else $as_nop
  24979. enable_render_d3d=yes
  24980. fi
  24981. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24982. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24983. SUMMARY_video="${SUMMARY_video} d3d9"
  24984. fi
  24985. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24986. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24987. SUMMARY_video="${SUMMARY_video} d3d11"
  24988. fi
  24989. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24990. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24991. SUMMARY_video="${SUMMARY_video} d3d12"
  24992. fi
  24993. fi
  24994. # Set up files for the audio library
  24995. if test x$enable_audio = xyes; then
  24996. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24997. SUMMARY_audio="${SUMMARY_audio} winmm"
  24998. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24999. if test x$have_dsound = xyes; then
  25000. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25001. SUMMARY_audio="${SUMMARY_audio} directsound"
  25002. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25003. fi
  25004. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25005. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25006. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25007. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25008. fi
  25009. have_audio=yes
  25010. fi
  25011. # Set up files for the joystick library
  25012. if test x$enable_joystick = xyes; then
  25013. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25014. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25015. if test x$have_xinput = xyes; then
  25016. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25017. fi
  25018. if test x$have_wgi = xyes; then
  25019. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25020. fi
  25021. if test x$have_dinput = xyes; then
  25022. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25024. fi
  25025. fi
  25026. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25027. have_joystick=yes
  25028. fi
  25029. if test x$enable_haptic = xyes; then
  25030. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25031. if test x$have_xinput = xyes; then
  25032. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25033. fi
  25034. if test x$have_dinput = xyes; then
  25035. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25036. fi
  25037. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25038. have_haptic=yes
  25039. fi
  25040. fi
  25041. # Set up files for the sensor library
  25042. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25043. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25044. then :
  25045. have_winsensors=yes
  25046. else $as_nop
  25047. have_winsensors=no
  25048. fi
  25049. if test x$have_winsensors = xyes; then
  25050. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25051. fi
  25052. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25053. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25054. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25055. have_sensor=yes
  25056. fi
  25057. # Set up files for the power library
  25058. if test x$enable_power = xyes; then
  25059. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25060. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25061. have_power=yes
  25062. fi
  25063. # Set up files for the filesystem library
  25064. if test x$enable_filesystem = xyes; then
  25065. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25066. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25067. have_filesystem=yes
  25068. fi
  25069. # Set up files for the thread library
  25070. if test x$enable_threads = xyes; then
  25071. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25072. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25073. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25074. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25075. have_threads=yes
  25076. fi
  25077. # Set up files for the timer library
  25078. if test x$enable_timers = xyes; then
  25079. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25080. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25081. have_timers=yes
  25082. fi
  25083. # Set up files for the shared object loading library
  25084. if test x$enable_loadso = xyes; then
  25085. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25086. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25087. fi
  25088. # Set up the system libraries we need
  25089. if test -f /lib/w32api/libuuid.a; then
  25090. LIBUUID=/lib/w32api/libuuid.a
  25091. else
  25092. LIBUUID=-luuid
  25093. fi
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25095. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25096. # The Windows platform requires special setup
  25097. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25098. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25099. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25100. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25101. # Check to see if this is a mingw or cygwin build
  25102. have_mingw32=
  25103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25104. printf %s "checking for main in -lmingw32... " >&6; }
  25105. if test ${ac_cv_lib_mingw32_main+y}
  25106. then :
  25107. printf %s "(cached) " >&6
  25108. else $as_nop
  25109. ac_check_lib_save_LIBS=$LIBS
  25110. LIBS="-lmingw32 $LIBS"
  25111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25112. /* end confdefs.h. */
  25113. int
  25114. main (void)
  25115. {
  25116. return main ();
  25117. ;
  25118. return 0;
  25119. }
  25120. _ACEOF
  25121. if ac_fn_c_try_link "$LINENO"
  25122. then :
  25123. ac_cv_lib_mingw32_main=yes
  25124. else $as_nop
  25125. ac_cv_lib_mingw32_main=no
  25126. fi
  25127. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25128. conftest$ac_exeext conftest.$ac_ext
  25129. LIBS=$ac_check_lib_save_LIBS
  25130. fi
  25131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25132. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25133. if test "x$ac_cv_lib_mingw32_main" = xyes
  25134. then :
  25135. have_mingw32=yes
  25136. fi
  25137. if test x$have_mingw32 = xyes; then
  25138. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25139. else
  25140. SDL_LIBS="-lcygwin $SDL_LIBS"
  25141. fi
  25142. ;;
  25143. *-*-beos*)
  25144. as_fn_error $? "
  25145. *** BeOS support has been removed as of SDL 2.0.2.
  25146. " "$LINENO" 5
  25147. ;;
  25148. *-*-haiku*)
  25149. ARCH=haiku
  25150. ac_default_prefix=/boot/system
  25151. CheckDummyVideo
  25152. CheckOffscreenVideo
  25153. CheckDiskAudio
  25154. CheckDummyAudio
  25155. CheckDLOPEN
  25156. CheckO_CLOEXEC
  25157. CheckHaikuVideo
  25158. CheckHaikuGL
  25159. CheckPTHREAD
  25160. # Set up files for the audio library
  25161. if test x$enable_audio = xyes; then
  25162. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25163. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25164. SUMMARY_audio="${SUMMARY_audio} haiku"
  25165. have_audio=yes
  25166. fi
  25167. # Set up files for the joystick library
  25168. if test x$enable_joystick = xyes; then
  25169. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25170. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25171. have_joystick=yes
  25172. fi
  25173. # Set up files for the timer library
  25174. if test x$enable_timers = xyes; then
  25175. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25176. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25177. have_timers=yes
  25178. fi
  25179. # Set up files for the system power library
  25180. if test x$enable_power = xyes; then
  25181. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25182. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25183. have_power=yes
  25184. fi
  25185. # Set up files for the system filesystem library
  25186. if test x$enable_filesystem = xyes; then
  25187. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25188. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25189. have_filesystem=yes
  25190. fi
  25191. # Set up files for the misc library
  25192. if test x$enable_misc = xyes; then
  25193. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25194. have_misc=yes
  25195. fi
  25196. # Set up files for the locale library
  25197. if test x$enable_locale = xyes; then
  25198. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25199. have_locale=yes
  25200. fi
  25201. # The Haiku platform requires special setup.
  25202. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25204. ;;
  25205. *-ios-*)
  25206. ARCH=ios
  25207. CheckVisibilityHidden
  25208. CheckWerror
  25209. CheckNoErrorDeprecatedDeclarationsWerror
  25210. CheckDeclarationAfterStatement
  25211. CheckDummyVideo
  25212. CheckOffscreenVideo
  25213. CheckDiskAudio
  25214. CheckDummyAudio
  25215. CheckDLOPEN
  25216. CheckO_CLOEXEC
  25217. CheckMETAL
  25218. CheckVulkan
  25219. CheckPTHREAD
  25220. # Set up files for the misc library
  25221. if test x$enable_misc = xyes; then
  25222. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25223. have_misc=yes
  25224. fi
  25225. # Set up files for the locale library
  25226. if test x$enable_locale = xyes; then
  25227. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25228. have_locale=yes
  25229. fi
  25230. # Set up files for the audio library
  25231. if test x$enable_audio = xyes; then
  25232. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25233. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25234. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25235. have_audio=yes
  25236. fi
  25237. # Set up files for the joystick library
  25238. if test x$enable_joystick = xyes; then
  25239. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25240. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25241. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25242. have_joystick=yes
  25243. else
  25244. # Need this code for accelerometer as joystick support
  25245. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25246. fi
  25247. # Set up files for the haptic library
  25248. #if test x$enable_haptic = xyes; then
  25249. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25250. # have_haptic=yes
  25251. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25252. #fi
  25253. # Set up files for the sensor library
  25254. if test x$enable_sensor = xyes; then
  25255. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25256. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25257. have_sensor=yes
  25258. fi
  25259. # Set up files for the power library
  25260. if test x$enable_power = xyes; then
  25261. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25262. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25263. have_power=yes
  25264. fi
  25265. # Set up files for the filesystem library
  25266. if test x$enable_filesystem = xyes; then
  25267. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25268. have_filesystem=yes
  25269. fi
  25270. # Set up additional files for the file library
  25271. if test x$enable_file = xyes; then
  25272. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25273. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25274. fi
  25275. # Set up files for the timer library
  25276. if test x$enable_timers = xyes; then
  25277. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25278. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25279. have_timers=yes
  25280. fi
  25281. # Set up other core UNIX files
  25282. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25283. # The iOS platform requires special setup.
  25284. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25285. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25286. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25287. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25288. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25289. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25290. SUMMARY_video="${SUMMARY_video} uikit"
  25291. have_video=yes
  25292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25293. if test x$enable_system_iconv = xyes; then
  25294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25295. fi
  25296. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25300. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25302. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25307. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25308. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25309. fi
  25310. ;;
  25311. *-*-darwin* )
  25312. # This could be either full "Mac OS X", or plain "Darwin" which is
  25313. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25314. # Next line is broken, and a few files below require Mac OS X (full)
  25315. ARCH=macosx
  25316. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25317. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25318. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25319. CheckObjectiveCARC
  25320. CheckVisibilityHidden
  25321. CheckWerror
  25322. CheckNoErrorDeprecatedDeclarationsWerror
  25323. CheckDeclarationAfterStatement
  25324. CheckDummyVideo
  25325. CheckOffscreenVideo
  25326. CheckDiskAudio
  25327. CheckDummyAudio
  25328. CheckDLOPEN
  25329. CheckO_CLOEXEC
  25330. CheckCOCOA
  25331. CheckMETAL
  25332. CheckX11
  25333. CheckMacGL
  25334. CheckMacGLES
  25335. CheckGLX
  25336. CheckOpenGL
  25337. CheckVulkan
  25338. CheckPTHREAD
  25339. CheckHIDAPI
  25340. # Set up files for the misc library
  25341. if test x$enable_misc = xyes; then
  25342. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25343. have_misc=yes
  25344. fi
  25345. # Set up files for the locale library
  25346. if test x$enable_locale = xyes; then
  25347. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25348. have_locale=yes
  25349. fi
  25350. # Set up files for the audio library
  25351. if test x$enable_audio = xyes; then
  25352. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25353. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25355. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25356. have_audio=yes
  25357. fi
  25358. # Set up files for the joystick library
  25359. if test x$enable_joystick = xyes; then
  25360. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25361. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25362. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25363. CheckJoystickMFI
  25364. have_joystick=yes
  25365. fi
  25366. # Set up files for the haptic library
  25367. if test x$enable_haptic = xyes; then
  25368. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25369. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25371. have_haptic=yes
  25372. fi
  25373. # Set up files for the power library
  25374. if test x$enable_power = xyes; then
  25375. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25376. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25377. have_power=yes
  25378. fi
  25379. # Set up files for the filesystem library
  25380. if test x$enable_filesystem = xyes; then
  25381. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25382. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25383. have_filesystem=yes
  25384. fi
  25385. # Set up files for the timer library
  25386. if test x$enable_timers = xyes; then
  25387. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25388. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25389. have_timers=yes
  25390. fi
  25391. # Set up additional files for the file library
  25392. if test x$enable_file = xyes; then
  25393. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25394. fi
  25395. # Set up other core UNIX files
  25396. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25397. # The Mac OS X platform requires special setup.
  25398. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25403. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25405. fi
  25406. ;;
  25407. *-nacl|*-pnacl)
  25408. ARCH=nacl
  25409. CheckNativeClient
  25410. CheckDummyAudio
  25411. CheckDummyVideo
  25412. CheckOffscreenVideo
  25413. CheckInputEvents
  25414. CheckPTHREAD
  25415. CheckO_CLOEXEC
  25416. # Set up files for the timer library
  25417. if test x$enable_timers = xyes; then
  25418. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25419. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25420. have_timers=yes
  25421. fi
  25422. if test x$enable_filesystem = xyes; then
  25423. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25424. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25425. have_filesystem=yes
  25426. fi
  25427. ;;
  25428. *-*-emscripten* )
  25429. if test x$enable_video = xyes; then
  25430. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25431. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25432. have_video=yes
  25433. SUMMARY_video="${SUMMARY_video} emscripten"
  25434. fi
  25435. if test x$enable_audio = xyes; then
  25436. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25437. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25438. have_audio=yes
  25439. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25440. fi
  25441. CheckVisibilityHidden
  25442. CheckWerror
  25443. CheckDeclarationAfterStatement
  25444. CheckDummyVideo
  25445. CheckOffscreenVideo
  25446. CheckDiskAudio
  25447. CheckDummyAudio
  25448. CheckPTHREAD
  25449. CheckDLOPEN
  25450. CheckClockGettime
  25451. CheckEmscriptenGLES
  25452. # Set up files for the misc library
  25453. if test x$enable_misc = xyes; then
  25454. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25455. have_misc=yes
  25456. fi
  25457. # Set up files for the power library
  25458. if test x$enable_power = xyes; then
  25459. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25460. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25461. have_power=yes
  25462. fi
  25463. # Set up files for the joystick library
  25464. if test x$enable_joystick = xyes; then
  25465. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25466. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25467. have_joystick=yes
  25468. fi
  25469. # Set up files for the filesystem library
  25470. if test x$enable_filesystem = xyes; then
  25471. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25472. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25473. have_filesystem=yes
  25474. fi
  25475. # Set up files for the timer library
  25476. if test x$enable_timers = xyes; then
  25477. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25478. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25479. have_timers=yes
  25480. fi
  25481. # Set up files for the locale library
  25482. if test x$enable_locale = xyes; then
  25483. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25484. have_locale=yes
  25485. fi
  25486. ;;
  25487. *-*-riscos*)
  25488. ARCH=riscos
  25489. CheckVisibilityHidden
  25490. CheckWerror
  25491. CheckDeclarationAfterStatement
  25492. CheckDummyVideo
  25493. CheckOffscreenVideo
  25494. CheckDiskAudio
  25495. CheckDummyAudio
  25496. CheckDLOPEN
  25497. CheckO_CLOEXEC
  25498. CheckOSS
  25499. CheckPTHREAD
  25500. CheckClockGettime
  25501. # Set up files for the misc library
  25502. if test x$enable_misc = xyes; then
  25503. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25504. have_misc=yes
  25505. fi
  25506. # Set up files for the video library
  25507. if test x$enable_video = xyes; then
  25508. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25509. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25510. have_video=yes
  25511. SUMMARY_video="${SUMMARY_video} riscos"
  25512. fi
  25513. # Set up files for the filesystem library
  25514. if test x$enable_filesystem = xyes; then
  25515. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25516. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25517. have_filesystem=yes
  25518. fi
  25519. # Set up files for the timer library
  25520. if test x$enable_timers = xyes; then
  25521. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25522. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25523. have_timers=yes
  25524. fi
  25525. ;;
  25526. *-*-os2*)
  25527. ARCH=os2
  25528. if test "$build" != "$host"; then # cross-compiling
  25529. # Default cross-compile location
  25530. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25531. else
  25532. # Look for the location of the tools and install there
  25533. if test "$BUILD_PREFIX" != ""; then
  25534. ac_default_prefix=$BUILD_PREFIX
  25535. fi
  25536. fi
  25537. enable_static=no # disable static builds
  25538. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25539. CheckOS2
  25540. CheckWerror
  25541. CheckDeclarationAfterStatement
  25542. CheckDummyVideo
  25543. CheckDiskAudio
  25544. CheckDummyAudio
  25545. CheckHIDAPI
  25546. # Set up the core platform files
  25547. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25548. if test x$enable_system_iconv = xyes; then
  25549. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25550. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25551. fi
  25552. fi
  25553. # Use the Unix locale APIs.
  25554. if test x$enable_locale = xyes; then
  25555. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25556. have_locale=yes
  25557. fi
  25558. # Set up files for the video library
  25559. if test x$enable_video = xyes; then
  25560. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25561. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25562. have_video=yes
  25563. SUMMARY_video="${SUMMARY_video} OS/2"
  25564. fi
  25565. # Set up files for the audio library
  25566. if test x$enable_audio = xyes; then
  25567. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25568. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25569. have_audio=yes
  25570. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25571. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25572. fi
  25573. # Set up files for the thread library
  25574. if test x$enable_threads = xyes; then
  25575. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25576. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25577. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25578. have_threads=yes
  25579. fi
  25580. # Set up files for the timer library
  25581. if test x$enable_timers = xyes; then
  25582. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25583. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25584. have_timers=yes
  25585. fi
  25586. # Set up files for the shared object loading library
  25587. if test x$enable_loadso = xyes; then
  25588. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25589. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25590. have_loadso=yes
  25591. fi
  25592. # Set up files for the filesystem library
  25593. if test x$enable_filesystem = xyes; then
  25594. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25595. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25596. have_filesystem=yes
  25597. fi
  25598. # Set up files for the joystick library
  25599. if test x$enable_joystick = xyes; then
  25600. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25601. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25602. have_joystick=yes
  25603. fi
  25604. ;;
  25605. *)
  25606. as_fn_error $? "
  25607. *** Unsupported host: Please add to configure.ac
  25608. " "$LINENO" 5
  25609. ;;
  25610. esac
  25611. CheckVirtualJoystick
  25612. # Check whether to install sdl2-config
  25613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25614. printf %s "checking whether to install sdl2-config... " >&6; }
  25615. # Check whether --enable-sdl2-config was given.
  25616. if test ${enable_sdl2_config+y}
  25617. then :
  25618. enableval=$enable_sdl2_config; case "${enableval}" in
  25619. yes) enable_sdl2_config="TRUE" ;;
  25620. no) enable_sdl2_config="FALSE" ;;
  25621. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25622. esac
  25623. else $as_nop
  25624. enable_sdl2_config="TRUE"
  25625. fi
  25626. if test "$enable_sdl2_config" = "TRUE"; then
  25627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25628. printf "%s\n" "yes" >&6; }
  25629. else
  25630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25631. printf "%s\n" "no" >&6; }
  25632. fi
  25633. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25634. # Check whether --enable-vendor-info was given.
  25635. if test ${enable_vendor_info+y}
  25636. then :
  25637. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25638. else $as_nop
  25639. enable_vendor_info=
  25640. fi
  25641. if test "$enable_vendor_info" = no
  25642. then :
  25643. enable_vendor_info=
  25644. fi
  25645. SDL_VENDOR_INFO=$enable_vendor_info
  25646. # Verify that we have all the platform specific files we need
  25647. if test x$have_audio != xyes; then
  25648. if test x$enable_audio = xyes; then
  25649. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25650. fi
  25651. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25652. fi
  25653. if test x$have_video != xyes; then
  25654. if test x$enable_video = xyes; then
  25655. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25656. fi
  25657. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25658. fi
  25659. if test x$have_misc != xyes; then
  25660. if test x$enable_misc = xyes; then
  25661. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25662. fi
  25663. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25664. fi
  25665. if test x$have_locale != xyes; then
  25666. if test x$enable_locale = xyes; then
  25667. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25668. fi
  25669. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25670. fi
  25671. if test x$have_joystick != xyes; then
  25672. if test x$enable_joystick = xyes; then
  25673. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25674. fi
  25675. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25676. fi
  25677. if test x$have_haptic != xyes; then
  25678. if test x$enable_haptic = xyes; then
  25679. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25680. fi
  25681. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25682. fi
  25683. if test x$have_sensor != xyes; then
  25684. if test x$enable_sensor = xyes; then
  25685. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25686. fi
  25687. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25688. fi
  25689. if test x$have_threads != xyes; then
  25690. if test x$enable_threads = xyes; then
  25691. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25692. fi
  25693. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25694. fi
  25695. if test x$have_timers != xyes; then
  25696. if test x$enable_timers = xyes; then
  25697. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25698. fi
  25699. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25700. fi
  25701. if test x$have_filesystem != xyes; then
  25702. if test x$enable_filesystem = xyes; then
  25703. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25704. fi
  25705. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25706. fi
  25707. if test x$have_loadso != xyes; then
  25708. if test x$enable_loadso = xyes; then
  25709. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25710. fi
  25711. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25712. fi
  25713. if test x$SDLMAIN_SOURCES = x; then
  25714. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25715. fi
  25716. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25717. if test x$video_wayland = xyes; then
  25718. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25719. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25720. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25721. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25722. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25723. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25724. echo ;\
  25725. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25726. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25727. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25728. echo ;\
  25729. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25730. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25731. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25732. echo ;\
  25733. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25734. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25735. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25736. done ;\
  25737. echo ;\
  25738. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25739. fi
  25740. OBJECTS=`echo $SOURCES`
  25741. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25742. for EXT in asm cc m c S; do
  25743. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25744. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25745. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25746. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25747. done
  25748. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25749. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25750. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25751. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25752. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25753. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25754. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25755. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25756. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25757. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25758. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25759. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25760. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25761. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25762. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25763. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25764. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25765. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25766. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25767. # Set runtime shared library paths as needed
  25768. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25769. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25770. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25772. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25773. have_enable_new_dtags=no
  25774. save_LDFLAGS="$LDFLAGS"
  25775. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25777. /* end confdefs.h. */
  25778. int
  25779. main (void)
  25780. {
  25781. ;
  25782. return 0;
  25783. }
  25784. _ACEOF
  25785. if ac_fn_c_try_link "$LINENO"
  25786. then :
  25787. have_enable_new_dtags=yes
  25788. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25789. fi
  25790. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25791. conftest$ac_exeext conftest.$ac_ext
  25792. LDFLAGS="$save_LDFLAGS"
  25793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25794. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25795. fi
  25796. if test $ARCH = solaris; then
  25797. SDL_RLD_FLAGS="-R\${libdir}"
  25798. fi
  25799. else
  25800. SDL_RLD_FLAGS=""
  25801. fi
  25802. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25803. pkg_cmakedir='$libdir/cmake/SDL2'
  25804. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25805. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25806. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25807. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25808. _lcl_receval="$_lcl_from"
  25809. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25810. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25811. _lcl_receval_old=''
  25812. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25813. _lcl_receval_old="$_lcl_receval"
  25814. eval _lcl_receval="\"$_lcl_receval\""
  25815. done
  25816. echo "$_lcl_receval")`
  25817. _lcl_receval="$_lcl_to"
  25818. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25819. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25820. _lcl_receval_old=''
  25821. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25822. _lcl_receval_old="$_lcl_receval"
  25823. eval _lcl_receval="\"$_lcl_receval\""
  25824. done
  25825. echo "$_lcl_receval")`
  25826. _lcl_notation="$_lcl_from$_lcl_to"
  25827. case ":$_lcl_from:" in
  25828. # change empty paths to '.'
  25829. ::) _lcl_from='.' ;;
  25830. # strip trailing slashes
  25831. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25832. :*:) ;;
  25833. esac
  25834. # squeeze repeated slashes
  25835. case '/' in
  25836. # if the path contains any backslashes, turn slashes into backslashes
  25837. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25838. # if the path contains slashes, also turn backslashes into slashes
  25839. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25840. esac
  25841. case ":$_lcl_to:" in
  25842. # change empty paths to '.'
  25843. ::) _lcl_to='.' ;;
  25844. # strip trailing slashes
  25845. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25846. :*:) ;;
  25847. esac
  25848. # squeeze repeated slashes
  25849. case '/' in
  25850. # if the path contains any backslashes, turn slashes into backslashes
  25851. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25852. # if the path contains slashes, also turn backslashes into slashes
  25853. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25854. esac
  25855. _lcl_common_prefix=''
  25856. _lcl_second_prefix_match=''
  25857. while test "$_lcl_second_prefix_match" != 0; do
  25858. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25859. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25860. if test "$_lcl_second_prefix_match" != 0; then
  25861. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25862. _lcl_common_prefix="$_lcl_first_prefix"
  25863. else
  25864. _lcl_second_prefix_match=0
  25865. fi
  25866. fi
  25867. done
  25868. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25869. _lcl_first_rel=''
  25870. _lcl_tmp='xxx'
  25871. while test "$_lcl_tmp" != ''; do
  25872. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25873. if test "$_lcl_first_suffix" != ''; then
  25874. _lcl_first_suffix="$_lcl_tmp"
  25875. _lcl_first_rel="../$_lcl_first_rel"
  25876. fi
  25877. done
  25878. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25879. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25880. case ":$_lcl_result_tmp:" in
  25881. # change empty paths to '.'
  25882. ::) _lcl_result_tmp='.' ;;
  25883. # strip trailing slashes
  25884. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25885. :*:) ;;
  25886. esac
  25887. # squeeze repeated slashes
  25888. case "$_lcl_notation" in
  25889. # if the path contains any backslashes, turn slashes into backslashes
  25890. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25891. # if the path contains slashes, also turn backslashes into slashes
  25892. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25893. esac
  25894. eval $_lcl_result_var='$_lcl_result_tmp'
  25895. done
  25896. PKGCONFIG_DEPENDS=""
  25897. if test x$enable_shared = xyes; then
  25898. PKGCONFIG_LIBS_PRIV="
  25899. Libs.private:"
  25900. ENABLE_SHARED_TRUE=
  25901. ENABLE_SHARED_FALSE="#"
  25902. else
  25903. PKGCONFIG_LIBS_PRIV=
  25904. ENABLE_SHARED_TRUE="#"
  25905. ENABLE_SHARED_FALSE=
  25906. fi
  25907. if test x$enable_static = xyes; then
  25908. ENABLE_STATIC_TRUE=
  25909. ENABLE_STATIC_FALSE="#"
  25910. else
  25911. ENABLE_STATIC_TRUE="#"
  25912. ENABLE_STATIC_FALSE=
  25913. fi
  25914. cat >Makefile.rules <<__EOF__
  25915. # Build rules for objects
  25916. -include \$(OBJECTS:.lo=.d)
  25917. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25918. $srcdir/src/SDL.c: update-revision
  25919. $DEPENDS
  25920. $VERSION_DEPENDS
  25921. $SDLMAIN_DEPENDS
  25922. $SDLTEST_DEPENDS
  25923. $WAYLAND_PROTOCOLS_DEPENDS
  25924. __EOF__
  25925. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25926. ac_config_commands="$ac_config_commands sdl2_config"
  25927. SUMMARY="SDL2 Configure Summary:\n"
  25928. if test x$enable_shared = xyes; then
  25929. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25930. fi
  25931. if test x$enable_static = xyes; then
  25932. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25933. fi
  25934. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25935. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25936. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25937. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25938. if test x$have_x = xyes; then
  25939. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25940. fi
  25941. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25942. if test x$have_joystick_virtual = xyes; then
  25943. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25944. else
  25945. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25946. fi
  25947. if test x$have_samplerate_h_hdr = xyes; then
  25948. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25949. else
  25950. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25951. fi
  25952. if test x$have_libudev_h_hdr = xyes; then
  25953. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25954. else
  25955. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25956. fi
  25957. if test x$have_dbus_dbus_h_hdr = xyes; then
  25958. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25959. else
  25960. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25961. fi
  25962. if test x$enable_ime = xyes; then
  25963. SUMMARY="${SUMMARY}Using ime : YES\n"
  25964. else
  25965. SUMMARY="${SUMMARY}Using ime : NO\n"
  25966. fi
  25967. if test x$have_ibus_ibus_h_hdr = xyes; then
  25968. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25969. else
  25970. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25971. fi
  25972. if test x$have_fcitx = xyes; then
  25973. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25974. else
  25975. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25976. fi
  25977. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25978. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25979. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25980. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25981. SUMMARY="${SUMMARY}configure script with:\n"
  25982. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25983. fi
  25984. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25985. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25986. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25987. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25988. SUMMARY="${SUMMARY}configure script with:\n"
  25989. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25990. fi
  25991. ac_config_commands="$ac_config_commands summary"
  25992. cat >confcache <<\_ACEOF
  25993. # This file is a shell script that caches the results of configure
  25994. # tests run on this system so they can be shared between configure
  25995. # scripts and configure runs, see configure's option --config-cache.
  25996. # It is not useful on other systems. If it contains results you don't
  25997. # want to keep, you may remove or edit it.
  25998. #
  25999. # config.status only pays attention to the cache file if you give it
  26000. # the --recheck option to rerun configure.
  26001. #
  26002. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26003. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26004. # following values.
  26005. _ACEOF
  26006. # The following way of writing the cache mishandles newlines in values,
  26007. # but we know of no workaround that is simple, portable, and efficient.
  26008. # So, we kill variables containing newlines.
  26009. # Ultrix sh set writes to stderr and can't be redirected directly,
  26010. # and sets the high bit in the cache file unless we assign to the vars.
  26011. (
  26012. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26013. eval ac_val=\$$ac_var
  26014. case $ac_val in #(
  26015. *${as_nl}*)
  26016. case $ac_var in #(
  26017. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26018. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26019. esac
  26020. case $ac_var in #(
  26021. _ | IFS | as_nl) ;; #(
  26022. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26023. *) { eval $ac_var=; unset $ac_var;} ;;
  26024. esac ;;
  26025. esac
  26026. done
  26027. (set) 2>&1 |
  26028. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26029. *${as_nl}ac_space=\ *)
  26030. # `set' does not quote correctly, so add quotes: double-quote
  26031. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26032. sed -n \
  26033. "s/'/'\\\\''/g;
  26034. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26035. ;; #(
  26036. *)
  26037. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26038. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26039. ;;
  26040. esac |
  26041. sort
  26042. ) |
  26043. sed '
  26044. /^ac_cv_env_/b end
  26045. t clear
  26046. :clear
  26047. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26048. t end
  26049. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26050. :end' >>confcache
  26051. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26052. if test -w "$cache_file"; then
  26053. if test "x$cache_file" != "x/dev/null"; then
  26054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26055. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26056. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26057. cat confcache >"$cache_file"
  26058. else
  26059. case $cache_file in #(
  26060. */* | ?:*)
  26061. mv -f confcache "$cache_file"$$ &&
  26062. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26063. *)
  26064. mv -f confcache "$cache_file" ;;
  26065. esac
  26066. fi
  26067. fi
  26068. else
  26069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26070. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26071. fi
  26072. fi
  26073. rm -f confcache
  26074. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26075. # Let make expand exec_prefix.
  26076. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26077. DEFS=-DHAVE_CONFIG_H
  26078. ac_libobjs=
  26079. ac_ltlibobjs=
  26080. U=
  26081. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26082. # 1. Remove the extension, and $U if already installed.
  26083. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26084. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26085. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26086. # will be set to the directory where LIBOBJS objects are built.
  26087. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26088. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26089. done
  26090. LIBOBJS=$ac_libobjs
  26091. LTLIBOBJS=$ac_ltlibobjs
  26092. : "${CONFIG_STATUS=./config.status}"
  26093. ac_write_fail=0
  26094. ac_clean_files_save=$ac_clean_files
  26095. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26097. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26098. as_write_fail=0
  26099. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26100. #! $SHELL
  26101. # Generated by $as_me.
  26102. # Run this file to recreate the current configuration.
  26103. # Compiler output produced by configure, useful for debugging
  26104. # configure, is in config.log if it exists.
  26105. debug=false
  26106. ac_cs_recheck=false
  26107. ac_cs_silent=false
  26108. SHELL=\${CONFIG_SHELL-$SHELL}
  26109. export SHELL
  26110. _ASEOF
  26111. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26112. ## -------------------- ##
  26113. ## M4sh Initialization. ##
  26114. ## -------------------- ##
  26115. # Be more Bourne compatible
  26116. DUALCASE=1; export DUALCASE # for MKS sh
  26117. as_nop=:
  26118. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26119. then :
  26120. emulate sh
  26121. NULLCMD=:
  26122. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26123. # is contrary to our usage. Disable this feature.
  26124. alias -g '${1+"$@"}'='"$@"'
  26125. setopt NO_GLOB_SUBST
  26126. else $as_nop
  26127. case `(set -o) 2>/dev/null` in #(
  26128. *posix*) :
  26129. set -o posix ;; #(
  26130. *) :
  26131. ;;
  26132. esac
  26133. fi
  26134. # Reset variables that may have inherited troublesome values from
  26135. # the environment.
  26136. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26137. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26138. # side effect of setting IFS to empty, thus disabling word splitting.)
  26139. # Quoting is to prevent editors from complaining about space-tab.
  26140. as_nl='
  26141. '
  26142. export as_nl
  26143. IFS=" "" $as_nl"
  26144. PS1='$ '
  26145. PS2='> '
  26146. PS4='+ '
  26147. # Ensure predictable behavior from utilities with locale-dependent output.
  26148. LC_ALL=C
  26149. export LC_ALL
  26150. LANGUAGE=C
  26151. export LANGUAGE
  26152. # We cannot yet rely on "unset" to work, but we need these variables
  26153. # to be unset--not just set to an empty or harmless value--now, to
  26154. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26155. # also avoids known problems related to "unset" and subshell syntax
  26156. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26157. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26158. do eval test \${$as_var+y} \
  26159. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26160. done
  26161. # Ensure that fds 0, 1, and 2 are open.
  26162. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26163. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26164. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26165. # The user is always right.
  26166. if ${PATH_SEPARATOR+false} :; then
  26167. PATH_SEPARATOR=:
  26168. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26169. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26170. PATH_SEPARATOR=';'
  26171. }
  26172. fi
  26173. # Find who we are. Look in the path if we contain no directory separator.
  26174. as_myself=
  26175. case $0 in #((
  26176. *[\\/]* ) as_myself=$0 ;;
  26177. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26178. for as_dir in $PATH
  26179. do
  26180. IFS=$as_save_IFS
  26181. case $as_dir in #(((
  26182. '') as_dir=./ ;;
  26183. */) ;;
  26184. *) as_dir=$as_dir/ ;;
  26185. esac
  26186. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26187. done
  26188. IFS=$as_save_IFS
  26189. ;;
  26190. esac
  26191. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26192. # in which case we are not to be found in the path.
  26193. if test "x$as_myself" = x; then
  26194. as_myself=$0
  26195. fi
  26196. if test ! -f "$as_myself"; then
  26197. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26198. exit 1
  26199. fi
  26200. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26201. # ----------------------------------------
  26202. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26203. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26204. # script with STATUS, using 1 if that was 0.
  26205. as_fn_error ()
  26206. {
  26207. as_status=$1; test $as_status -eq 0 && as_status=1
  26208. if test "$4"; then
  26209. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26211. fi
  26212. printf "%s\n" "$as_me: error: $2" >&2
  26213. as_fn_exit $as_status
  26214. } # as_fn_error
  26215. # as_fn_set_status STATUS
  26216. # -----------------------
  26217. # Set $? to STATUS, without forking.
  26218. as_fn_set_status ()
  26219. {
  26220. return $1
  26221. } # as_fn_set_status
  26222. # as_fn_exit STATUS
  26223. # -----------------
  26224. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26225. as_fn_exit ()
  26226. {
  26227. set +e
  26228. as_fn_set_status $1
  26229. exit $1
  26230. } # as_fn_exit
  26231. # as_fn_unset VAR
  26232. # ---------------
  26233. # Portably unset VAR.
  26234. as_fn_unset ()
  26235. {
  26236. { eval $1=; unset $1;}
  26237. }
  26238. as_unset=as_fn_unset
  26239. # as_fn_append VAR VALUE
  26240. # ----------------------
  26241. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26242. # advantage of any shell optimizations that allow amortized linear growth over
  26243. # repeated appends, instead of the typical quadratic growth present in naive
  26244. # implementations.
  26245. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26246. then :
  26247. eval 'as_fn_append ()
  26248. {
  26249. eval $1+=\$2
  26250. }'
  26251. else $as_nop
  26252. as_fn_append ()
  26253. {
  26254. eval $1=\$$1\$2
  26255. }
  26256. fi # as_fn_append
  26257. # as_fn_arith ARG...
  26258. # ------------------
  26259. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26260. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26261. # must be portable across $(()) and expr.
  26262. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26263. then :
  26264. eval 'as_fn_arith ()
  26265. {
  26266. as_val=$(( $* ))
  26267. }'
  26268. else $as_nop
  26269. as_fn_arith ()
  26270. {
  26271. as_val=`expr "$@" || test $? -eq 1`
  26272. }
  26273. fi # as_fn_arith
  26274. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26275. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26276. as_expr=expr
  26277. else
  26278. as_expr=false
  26279. fi
  26280. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26281. as_basename=basename
  26282. else
  26283. as_basename=false
  26284. fi
  26285. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26286. as_dirname=dirname
  26287. else
  26288. as_dirname=false
  26289. fi
  26290. as_me=`$as_basename -- "$0" ||
  26291. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26292. X"$0" : 'X\(//\)$' \| \
  26293. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26294. printf "%s\n" X/"$0" |
  26295. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26296. s//\1/
  26297. q
  26298. }
  26299. /^X\/\(\/\/\)$/{
  26300. s//\1/
  26301. q
  26302. }
  26303. /^X\/\(\/\).*/{
  26304. s//\1/
  26305. q
  26306. }
  26307. s/.*/./; q'`
  26308. # Avoid depending upon Character Ranges.
  26309. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26310. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26311. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26312. as_cr_digits='0123456789'
  26313. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26314. # Determine whether it's possible to make 'echo' print without a newline.
  26315. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26316. # for compatibility with existing Makefiles.
  26317. ECHO_C= ECHO_N= ECHO_T=
  26318. case `echo -n x` in #(((((
  26319. -n*)
  26320. case `echo 'xy\c'` in
  26321. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26322. xy) ECHO_C='\c';;
  26323. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26324. ECHO_T=' ';;
  26325. esac;;
  26326. *)
  26327. ECHO_N='-n';;
  26328. esac
  26329. # For backward compatibility with old third-party macros, we provide
  26330. # the shell variables $as_echo and $as_echo_n. New code should use
  26331. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26332. as_echo='printf %s\n'
  26333. as_echo_n='printf %s'
  26334. rm -f conf$$ conf$$.exe conf$$.file
  26335. if test -d conf$$.dir; then
  26336. rm -f conf$$.dir/conf$$.file
  26337. else
  26338. rm -f conf$$.dir
  26339. mkdir conf$$.dir 2>/dev/null
  26340. fi
  26341. if (echo >conf$$.file) 2>/dev/null; then
  26342. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26343. as_ln_s='ln -s'
  26344. # ... but there are two gotchas:
  26345. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26346. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26347. # In both cases, we have to default to `cp -pR'.
  26348. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26349. as_ln_s='cp -pR'
  26350. elif ln conf$$.file conf$$ 2>/dev/null; then
  26351. as_ln_s=ln
  26352. else
  26353. as_ln_s='cp -pR'
  26354. fi
  26355. else
  26356. as_ln_s='cp -pR'
  26357. fi
  26358. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26359. rmdir conf$$.dir 2>/dev/null
  26360. # as_fn_mkdir_p
  26361. # -------------
  26362. # Create "$as_dir" as a directory, including parents if necessary.
  26363. as_fn_mkdir_p ()
  26364. {
  26365. case $as_dir in #(
  26366. -*) as_dir=./$as_dir;;
  26367. esac
  26368. test -d "$as_dir" || eval $as_mkdir_p || {
  26369. as_dirs=
  26370. while :; do
  26371. case $as_dir in #(
  26372. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26373. *) as_qdir=$as_dir;;
  26374. esac
  26375. as_dirs="'$as_qdir' $as_dirs"
  26376. as_dir=`$as_dirname -- "$as_dir" ||
  26377. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26378. X"$as_dir" : 'X\(//\)[^/]' \| \
  26379. X"$as_dir" : 'X\(//\)$' \| \
  26380. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26381. printf "%s\n" X"$as_dir" |
  26382. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26383. s//\1/
  26384. q
  26385. }
  26386. /^X\(\/\/\)[^/].*/{
  26387. s//\1/
  26388. q
  26389. }
  26390. /^X\(\/\/\)$/{
  26391. s//\1/
  26392. q
  26393. }
  26394. /^X\(\/\).*/{
  26395. s//\1/
  26396. q
  26397. }
  26398. s/.*/./; q'`
  26399. test -d "$as_dir" && break
  26400. done
  26401. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26402. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26403. } # as_fn_mkdir_p
  26404. if mkdir -p . 2>/dev/null; then
  26405. as_mkdir_p='mkdir -p "$as_dir"'
  26406. else
  26407. test -d ./-p && rmdir ./-p
  26408. as_mkdir_p=false
  26409. fi
  26410. # as_fn_executable_p FILE
  26411. # -----------------------
  26412. # Test if FILE is an executable regular file.
  26413. as_fn_executable_p ()
  26414. {
  26415. test -f "$1" && test -x "$1"
  26416. } # as_fn_executable_p
  26417. as_test_x='test -x'
  26418. as_executable_p=as_fn_executable_p
  26419. # Sed expression to map a string onto a valid CPP name.
  26420. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26421. # Sed expression to map a string onto a valid variable name.
  26422. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26423. exec 6>&1
  26424. ## ----------------------------------- ##
  26425. ## Main body of $CONFIG_STATUS script. ##
  26426. ## ----------------------------------- ##
  26427. _ASEOF
  26428. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26430. # Save the log message, to keep $0 and so on meaningful, and to
  26431. # report actual input values of CONFIG_FILES etc. instead of their
  26432. # values after options handling.
  26433. ac_log="
  26434. This file was extended by $as_me, which was
  26435. generated by GNU Autoconf 2.71. Invocation command line was
  26436. CONFIG_FILES = $CONFIG_FILES
  26437. CONFIG_HEADERS = $CONFIG_HEADERS
  26438. CONFIG_LINKS = $CONFIG_LINKS
  26439. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26440. $ $0 $@
  26441. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26442. "
  26443. _ACEOF
  26444. case $ac_config_files in *"
  26445. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26446. esac
  26447. case $ac_config_headers in *"
  26448. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26449. esac
  26450. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26451. # Files that config.status was made for.
  26452. config_files="$ac_config_files"
  26453. config_headers="$ac_config_headers"
  26454. config_commands="$ac_config_commands"
  26455. _ACEOF
  26456. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26457. ac_cs_usage="\
  26458. \`$as_me' instantiates files and other configuration actions
  26459. from templates according to the current configuration. Unless the files
  26460. and actions are specified as TAGs, all are instantiated by default.
  26461. Usage: $0 [OPTION]... [TAG]...
  26462. -h, --help print this help, then exit
  26463. -V, --version print version number and configuration settings, then exit
  26464. --config print configuration, then exit
  26465. -q, --quiet, --silent
  26466. do not print progress messages
  26467. -d, --debug don't remove temporary files
  26468. --recheck update $as_me by reconfiguring in the same conditions
  26469. --file=FILE[:TEMPLATE]
  26470. instantiate the configuration file FILE
  26471. --header=FILE[:TEMPLATE]
  26472. instantiate the configuration header FILE
  26473. Configuration files:
  26474. $config_files
  26475. Configuration headers:
  26476. $config_headers
  26477. Configuration commands:
  26478. $config_commands
  26479. Report bugs to the package provider."
  26480. _ACEOF
  26481. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26482. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26484. ac_cs_config='$ac_cs_config_escaped'
  26485. ac_cs_version="\\
  26486. config.status
  26487. configured by $0, generated by GNU Autoconf 2.71,
  26488. with options \\"\$ac_cs_config\\"
  26489. Copyright (C) 2021 Free Software Foundation, Inc.
  26490. This config.status script is free software; the Free Software Foundation
  26491. gives unlimited permission to copy, distribute and modify it."
  26492. ac_pwd='$ac_pwd'
  26493. srcdir='$srcdir'
  26494. INSTALL='$INSTALL'
  26495. AWK='$AWK'
  26496. test -n "\$AWK" || AWK=awk
  26497. _ACEOF
  26498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26499. # The default lists apply if the user does not specify any file.
  26500. ac_need_defaults=:
  26501. while test $# != 0
  26502. do
  26503. case $1 in
  26504. --*=?*)
  26505. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26506. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26507. ac_shift=:
  26508. ;;
  26509. --*=)
  26510. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26511. ac_optarg=
  26512. ac_shift=:
  26513. ;;
  26514. *)
  26515. ac_option=$1
  26516. ac_optarg=$2
  26517. ac_shift=shift
  26518. ;;
  26519. esac
  26520. case $ac_option in
  26521. # Handling of the options.
  26522. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26523. ac_cs_recheck=: ;;
  26524. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26525. printf "%s\n" "$ac_cs_version"; exit ;;
  26526. --config | --confi | --conf | --con | --co | --c )
  26527. printf "%s\n" "$ac_cs_config"; exit ;;
  26528. --debug | --debu | --deb | --de | --d | -d )
  26529. debug=: ;;
  26530. --file | --fil | --fi | --f )
  26531. $ac_shift
  26532. case $ac_optarg in
  26533. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26534. '') as_fn_error $? "missing file argument" ;;
  26535. esac
  26536. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26537. ac_need_defaults=false;;
  26538. --header | --heade | --head | --hea )
  26539. $ac_shift
  26540. case $ac_optarg in
  26541. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26542. esac
  26543. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26544. ac_need_defaults=false;;
  26545. --he | --h)
  26546. # Conflict between --help and --header
  26547. as_fn_error $? "ambiguous option: \`$1'
  26548. Try \`$0 --help' for more information.";;
  26549. --help | --hel | -h )
  26550. printf "%s\n" "$ac_cs_usage"; exit ;;
  26551. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26552. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26553. ac_cs_silent=: ;;
  26554. # This is an error.
  26555. -*) as_fn_error $? "unrecognized option: \`$1'
  26556. Try \`$0 --help' for more information." ;;
  26557. *) as_fn_append ac_config_targets " $1"
  26558. ac_need_defaults=false ;;
  26559. esac
  26560. shift
  26561. done
  26562. ac_configure_extra_args=
  26563. if $ac_cs_silent; then
  26564. exec 6>/dev/null
  26565. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26566. fi
  26567. _ACEOF
  26568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26569. if \$ac_cs_recheck; then
  26570. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26571. shift
  26572. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26573. CONFIG_SHELL='$SHELL'
  26574. export CONFIG_SHELL
  26575. exec "\$@"
  26576. fi
  26577. _ACEOF
  26578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26579. exec 5>>config.log
  26580. {
  26581. echo
  26582. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26583. ## Running $as_me. ##
  26584. _ASBOX
  26585. printf "%s\n" "$ac_log"
  26586. } >&5
  26587. _ACEOF
  26588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26589. #
  26590. # INIT-COMMANDS
  26591. #
  26592. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26593. # if CDPATH is set.
  26594. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26595. sed_quote_subst='$sed_quote_subst'
  26596. double_quote_subst='$double_quote_subst'
  26597. delay_variable_subst='$delay_variable_subst'
  26598. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26599. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26600. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26601. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26602. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26603. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26604. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26605. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26606. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26607. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26608. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26609. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26610. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26611. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26612. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26613. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26614. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26615. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26616. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26617. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26618. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26619. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26620. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26621. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26622. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26623. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26624. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26625. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26626. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26627. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26628. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26629. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26630. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26631. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26632. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26633. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26634. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26635. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26636. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26637. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26638. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26639. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26640. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26641. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26642. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26643. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26644. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26645. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26646. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26647. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26648. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26649. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26650. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26651. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26652. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26653. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26654. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26655. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26656. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26657. 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"`'
  26658. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26659. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26660. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26661. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26662. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26663. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26664. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26665. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26666. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26667. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26668. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26669. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26670. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26671. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26672. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26673. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26674. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26675. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26676. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26677. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26678. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26679. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26680. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26681. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26682. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26683. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26684. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26685. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26686. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26687. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26688. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26689. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26690. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26691. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26692. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26693. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26694. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26695. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26696. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26697. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26698. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26699. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26700. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26701. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26702. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26703. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26704. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26705. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26706. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26707. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26708. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26709. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26710. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26711. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26712. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26713. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26714. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26715. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26716. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26717. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26718. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26719. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26720. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26721. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26722. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26723. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26724. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26725. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26726. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26727. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26728. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26729. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26730. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26731. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26732. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26733. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26734. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26735. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26736. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26737. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26738. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26739. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26740. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26741. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26742. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26743. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26744. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26745. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26746. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26747. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26748. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26749. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26750. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26751. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26752. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26753. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26754. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26755. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26756. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26757. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26758. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26759. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26760. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26761. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26762. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26763. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26764. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26765. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26766. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26767. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26768. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26769. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26770. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26771. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26772. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26773. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26774. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26775. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26776. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26777. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26778. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26779. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26780. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26781. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26782. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26783. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26784. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26785. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26786. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26787. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26788. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26789. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26790. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26791. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26792. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26793. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26794. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26795. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26796. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26797. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26798. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26799. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26800. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26801. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26802. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26803. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26804. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26805. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26806. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26807. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26808. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26809. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26810. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26811. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26812. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26813. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26814. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26815. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26816. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26817. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26818. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26819. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26820. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26821. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26822. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26823. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26824. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26825. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26826. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26827. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26828. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26829. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26830. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26831. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26832. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26833. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26834. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26835. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26836. LTCC='$LTCC'
  26837. LTCFLAGS='$LTCFLAGS'
  26838. compiler='$compiler_DEFAULT'
  26839. # A function that is used when there is no print builtin or printf.
  26840. func_fallback_echo ()
  26841. {
  26842. eval 'cat <<_LTECHO_EOF
  26843. \$1
  26844. _LTECHO_EOF'
  26845. }
  26846. # Quote evaled strings.
  26847. for var in AS \
  26848. DLLTOOL \
  26849. OBJDUMP \
  26850. SHELL \
  26851. ECHO \
  26852. PATH_SEPARATOR \
  26853. SED \
  26854. GREP \
  26855. EGREP \
  26856. FGREP \
  26857. LD \
  26858. NM \
  26859. LN_S \
  26860. lt_SP2NL \
  26861. lt_NL2SP \
  26862. reload_flag \
  26863. deplibs_check_method \
  26864. file_magic_cmd \
  26865. file_magic_glob \
  26866. want_nocaseglob \
  26867. sharedlib_from_linklib_cmd \
  26868. AR \
  26869. AR_FLAGS \
  26870. archiver_list_spec \
  26871. STRIP \
  26872. RANLIB \
  26873. CC \
  26874. CFLAGS \
  26875. compiler \
  26876. lt_cv_sys_global_symbol_pipe \
  26877. lt_cv_sys_global_symbol_to_cdecl \
  26878. lt_cv_sys_global_symbol_to_import \
  26879. lt_cv_sys_global_symbol_to_c_name_address \
  26880. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26881. lt_cv_nm_interface \
  26882. nm_file_list_spec \
  26883. lt_cv_truncate_bin \
  26884. lt_prog_compiler_no_builtin_flag \
  26885. lt_prog_compiler_pic \
  26886. lt_prog_compiler_wl \
  26887. lt_prog_compiler_static \
  26888. lt_cv_prog_compiler_c_o \
  26889. need_locks \
  26890. MANIFEST_TOOL \
  26891. DSYMUTIL \
  26892. NMEDIT \
  26893. LIPO \
  26894. OTOOL \
  26895. OTOOL64 \
  26896. shrext_cmds \
  26897. export_dynamic_flag_spec \
  26898. whole_archive_flag_spec \
  26899. compiler_needs_object \
  26900. with_gnu_ld \
  26901. allow_undefined_flag \
  26902. no_undefined_flag \
  26903. hardcode_libdir_flag_spec \
  26904. hardcode_libdir_separator \
  26905. exclude_expsyms \
  26906. include_expsyms \
  26907. file_list_spec \
  26908. variables_saved_for_relink \
  26909. libname_spec \
  26910. library_names_spec \
  26911. soname_spec \
  26912. install_override_mode \
  26913. finish_eval \
  26914. old_striplib \
  26915. striplib \
  26916. compiler_lib_search_dirs \
  26917. predep_objects \
  26918. postdep_objects \
  26919. predeps \
  26920. postdeps \
  26921. compiler_lib_search_path \
  26922. LD_RC \
  26923. LD_CXX \
  26924. reload_flag_RC \
  26925. reload_flag_CXX \
  26926. compiler_RC \
  26927. compiler_CXX \
  26928. lt_prog_compiler_no_builtin_flag_RC \
  26929. lt_prog_compiler_no_builtin_flag_CXX \
  26930. lt_prog_compiler_pic_RC \
  26931. lt_prog_compiler_pic_CXX \
  26932. lt_prog_compiler_wl_RC \
  26933. lt_prog_compiler_wl_CXX \
  26934. lt_prog_compiler_static_RC \
  26935. lt_prog_compiler_static_CXX \
  26936. lt_cv_prog_compiler_c_o_RC \
  26937. lt_cv_prog_compiler_c_o_CXX \
  26938. export_dynamic_flag_spec_RC \
  26939. export_dynamic_flag_spec_CXX \
  26940. whole_archive_flag_spec_RC \
  26941. whole_archive_flag_spec_CXX \
  26942. compiler_needs_object_RC \
  26943. compiler_needs_object_CXX \
  26944. with_gnu_ld_RC \
  26945. with_gnu_ld_CXX \
  26946. allow_undefined_flag_RC \
  26947. allow_undefined_flag_CXX \
  26948. no_undefined_flag_RC \
  26949. no_undefined_flag_CXX \
  26950. hardcode_libdir_flag_spec_RC \
  26951. hardcode_libdir_flag_spec_CXX \
  26952. hardcode_libdir_separator_RC \
  26953. hardcode_libdir_separator_CXX \
  26954. exclude_expsyms_RC \
  26955. exclude_expsyms_CXX \
  26956. include_expsyms_RC \
  26957. include_expsyms_CXX \
  26958. file_list_spec_RC \
  26959. file_list_spec_CXX \
  26960. compiler_lib_search_dirs_RC \
  26961. compiler_lib_search_dirs_CXX \
  26962. predep_objects_RC \
  26963. predep_objects_CXX \
  26964. postdep_objects_RC \
  26965. postdep_objects_CXX \
  26966. predeps_RC \
  26967. predeps_CXX \
  26968. postdeps_RC \
  26969. postdeps_CXX \
  26970. compiler_lib_search_path_RC \
  26971. compiler_lib_search_path_CXX; do
  26972. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26973. *[\\\\\\\`\\"\\\$]*)
  26974. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26975. ;;
  26976. *)
  26977. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26978. ;;
  26979. esac
  26980. done
  26981. # Double-quote double-evaled strings.
  26982. for var in reload_cmds \
  26983. old_postinstall_cmds \
  26984. old_postuninstall_cmds \
  26985. old_archive_cmds \
  26986. extract_expsyms_cmds \
  26987. old_archive_from_new_cmds \
  26988. old_archive_from_expsyms_cmds \
  26989. archive_cmds \
  26990. archive_expsym_cmds \
  26991. module_cmds \
  26992. module_expsym_cmds \
  26993. export_symbols_cmds \
  26994. prelink_cmds \
  26995. postlink_cmds \
  26996. postinstall_cmds \
  26997. postuninstall_cmds \
  26998. finish_cmds \
  26999. sys_lib_search_path_spec \
  27000. configure_time_dlsearch_path \
  27001. configure_time_lt_sys_library_path \
  27002. reload_cmds_RC \
  27003. reload_cmds_CXX \
  27004. old_archive_cmds_RC \
  27005. old_archive_cmds_CXX \
  27006. old_archive_from_new_cmds_RC \
  27007. old_archive_from_new_cmds_CXX \
  27008. old_archive_from_expsyms_cmds_RC \
  27009. old_archive_from_expsyms_cmds_CXX \
  27010. archive_cmds_RC \
  27011. archive_cmds_CXX \
  27012. archive_expsym_cmds_RC \
  27013. archive_expsym_cmds_CXX \
  27014. module_cmds_RC \
  27015. module_cmds_CXX \
  27016. module_expsym_cmds_RC \
  27017. module_expsym_cmds_CXX \
  27018. export_symbols_cmds_RC \
  27019. export_symbols_cmds_CXX \
  27020. prelink_cmds_RC \
  27021. prelink_cmds_CXX \
  27022. postlink_cmds_RC \
  27023. postlink_cmds_CXX; do
  27024. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27025. *[\\\\\\\`\\"\\\$]*)
  27026. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27027. ;;
  27028. *)
  27029. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27030. ;;
  27031. esac
  27032. done
  27033. ac_aux_dir='$ac_aux_dir'
  27034. # See if we are running on zsh, and set the options that allow our
  27035. # commands through without removal of \ escapes INIT.
  27036. if test -n "\${ZSH_VERSION+set}"; then
  27037. setopt NO_GLOB_SUBST
  27038. fi
  27039. PACKAGE='$PACKAGE'
  27040. VERSION='$VERSION'
  27041. RM='$RM'
  27042. ofile='$ofile'
  27043. SUMMARY="$SUMMARY"
  27044. _ACEOF
  27045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27046. # Handling of arguments.
  27047. for ac_config_target in $ac_config_targets
  27048. do
  27049. case $ac_config_target in
  27050. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27051. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27052. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27053. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27054. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27055. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27056. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27057. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27058. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27059. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27060. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27061. esac
  27062. done
  27063. # If the user did not use the arguments to specify the items to instantiate,
  27064. # then the envvar interface is used. Set only those that are not.
  27065. # We use the long form for the default assignment because of an extremely
  27066. # bizarre bug on SunOS 4.1.3.
  27067. if $ac_need_defaults; then
  27068. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27069. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27070. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27071. fi
  27072. # Have a temporary directory for convenience. Make it in the build tree
  27073. # simply because there is no reason against having it here, and in addition,
  27074. # creating and moving files from /tmp can sometimes cause problems.
  27075. # Hook for its removal unless debugging.
  27076. # Note that there is a small window in which the directory will not be cleaned:
  27077. # after its creation but before its name has been assigned to `$tmp'.
  27078. $debug ||
  27079. {
  27080. tmp= ac_tmp=
  27081. trap 'exit_status=$?
  27082. : "${ac_tmp:=$tmp}"
  27083. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27084. ' 0
  27085. trap 'as_fn_exit 1' 1 2 13 15
  27086. }
  27087. # Create a (secure) tmp directory for tmp files.
  27088. {
  27089. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27090. test -d "$tmp"
  27091. } ||
  27092. {
  27093. tmp=./conf$$-$RANDOM
  27094. (umask 077 && mkdir "$tmp")
  27095. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27096. ac_tmp=$tmp
  27097. # Set up the scripts for CONFIG_FILES section.
  27098. # No need to generate them if there are no CONFIG_FILES.
  27099. # This happens for instance with `./config.status config.h'.
  27100. if test -n "$CONFIG_FILES"; then
  27101. ac_cr=`echo X | tr X '\015'`
  27102. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27103. # But we know of no other shell where ac_cr would be empty at this
  27104. # point, so we can use a bashism as a fallback.
  27105. if test "x$ac_cr" = x; then
  27106. eval ac_cr=\$\'\\r\'
  27107. fi
  27108. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27109. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27110. ac_cs_awk_cr='\\r'
  27111. else
  27112. ac_cs_awk_cr=$ac_cr
  27113. fi
  27114. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27115. _ACEOF
  27116. {
  27117. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27118. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27119. echo "_ACEOF"
  27120. } >conf$$subs.sh ||
  27121. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27122. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27123. ac_delim='%!_!# '
  27124. for ac_last_try in false false false false false :; do
  27125. . ./conf$$subs.sh ||
  27126. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27127. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27128. if test $ac_delim_n = $ac_delim_num; then
  27129. break
  27130. elif $ac_last_try; then
  27131. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27132. else
  27133. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27134. fi
  27135. done
  27136. rm -f conf$$subs.sh
  27137. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27138. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27139. _ACEOF
  27140. sed -n '
  27141. h
  27142. s/^/S["/; s/!.*/"]=/
  27143. p
  27144. g
  27145. s/^[^!]*!//
  27146. :repl
  27147. t repl
  27148. s/'"$ac_delim"'$//
  27149. t delim
  27150. :nl
  27151. h
  27152. s/\(.\{148\}\)..*/\1/
  27153. t more1
  27154. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27155. p
  27156. n
  27157. b repl
  27158. :more1
  27159. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27160. p
  27161. g
  27162. s/.\{148\}//
  27163. t nl
  27164. :delim
  27165. h
  27166. s/\(.\{148\}\)..*/\1/
  27167. t more2
  27168. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27169. p
  27170. b
  27171. :more2
  27172. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27173. p
  27174. g
  27175. s/.\{148\}//
  27176. t delim
  27177. ' <conf$$subs.awk | sed '
  27178. /^[^""]/{
  27179. N
  27180. s/\n//
  27181. }
  27182. ' >>$CONFIG_STATUS || ac_write_fail=1
  27183. rm -f conf$$subs.awk
  27184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27185. _ACAWK
  27186. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27187. for (key in S) S_is_set[key] = 1
  27188. FS = ""
  27189. }
  27190. {
  27191. line = $ 0
  27192. nfields = split(line, field, "@")
  27193. substed = 0
  27194. len = length(field[1])
  27195. for (i = 2; i < nfields; i++) {
  27196. key = field[i]
  27197. keylen = length(key)
  27198. if (S_is_set[key]) {
  27199. value = S[key]
  27200. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27201. len += length(value) + length(field[++i])
  27202. substed = 1
  27203. } else
  27204. len += 1 + keylen
  27205. }
  27206. print line
  27207. }
  27208. _ACAWK
  27209. _ACEOF
  27210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27211. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27212. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27213. else
  27214. cat
  27215. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27216. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27217. _ACEOF
  27218. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27219. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27220. # trailing colons and then remove the whole line if VPATH becomes empty
  27221. # (actually we leave an empty line to preserve line numbers).
  27222. if test "x$srcdir" = x.; then
  27223. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27224. h
  27225. s///
  27226. s/^/:/
  27227. s/[ ]*$/:/
  27228. s/:\$(srcdir):/:/g
  27229. s/:\${srcdir}:/:/g
  27230. s/:@srcdir@:/:/g
  27231. s/^:*//
  27232. s/:*$//
  27233. x
  27234. s/\(=[ ]*\).*/\1/
  27235. G
  27236. s/\n//
  27237. s/^[^=]*=[ ]*$//
  27238. }'
  27239. fi
  27240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27241. fi # test -n "$CONFIG_FILES"
  27242. # Set up the scripts for CONFIG_HEADERS section.
  27243. # No need to generate them if there are no CONFIG_HEADERS.
  27244. # This happens for instance with `./config.status Makefile'.
  27245. if test -n "$CONFIG_HEADERS"; then
  27246. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27247. BEGIN {
  27248. _ACEOF
  27249. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27250. # here-document in config.status, that substitutes the proper values into
  27251. # config.h.in to produce config.h.
  27252. # Create a delimiter string that does not exist in confdefs.h, to ease
  27253. # handling of long lines.
  27254. ac_delim='%!_!# '
  27255. for ac_last_try in false false :; do
  27256. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27257. if test -z "$ac_tt"; then
  27258. break
  27259. elif $ac_last_try; then
  27260. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27261. else
  27262. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27263. fi
  27264. done
  27265. # For the awk script, D is an array of macro values keyed by name,
  27266. # likewise P contains macro parameters if any. Preserve backslash
  27267. # newline sequences.
  27268. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27269. sed -n '
  27270. s/.\{148\}/&'"$ac_delim"'/g
  27271. t rset
  27272. :rset
  27273. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27274. t def
  27275. d
  27276. :def
  27277. s/\\$//
  27278. t bsnl
  27279. s/["\\]/\\&/g
  27280. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27281. D["\1"]=" \3"/p
  27282. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27283. d
  27284. :bsnl
  27285. s/["\\]/\\&/g
  27286. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27287. D["\1"]=" \3\\\\\\n"\\/p
  27288. t cont
  27289. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27290. t cont
  27291. d
  27292. :cont
  27293. n
  27294. s/.\{148\}/&'"$ac_delim"'/g
  27295. t clear
  27296. :clear
  27297. s/\\$//
  27298. t bsnlc
  27299. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27300. d
  27301. :bsnlc
  27302. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27303. b cont
  27304. ' <confdefs.h | sed '
  27305. s/'"$ac_delim"'/"\\\
  27306. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27308. for (key in D) D_is_set[key] = 1
  27309. FS = ""
  27310. }
  27311. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27312. line = \$ 0
  27313. split(line, arg, " ")
  27314. if (arg[1] == "#") {
  27315. defundef = arg[2]
  27316. mac1 = arg[3]
  27317. } else {
  27318. defundef = substr(arg[1], 2)
  27319. mac1 = arg[2]
  27320. }
  27321. split(mac1, mac2, "(") #)
  27322. macro = mac2[1]
  27323. prefix = substr(line, 1, index(line, defundef) - 1)
  27324. if (D_is_set[macro]) {
  27325. # Preserve the white space surrounding the "#".
  27326. print prefix "define", macro P[macro] D[macro]
  27327. next
  27328. } else {
  27329. # Replace #undef with comments. This is necessary, for example,
  27330. # in the case of _POSIX_SOURCE, which is predefined and required
  27331. # on some systems where configure will not decide to define it.
  27332. if (defundef == "undef") {
  27333. print "/*", prefix defundef, macro, "*/"
  27334. next
  27335. }
  27336. }
  27337. }
  27338. { print }
  27339. _ACAWK
  27340. _ACEOF
  27341. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27342. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27343. fi # test -n "$CONFIG_HEADERS"
  27344. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27345. shift
  27346. for ac_tag
  27347. do
  27348. case $ac_tag in
  27349. :[FHLC]) ac_mode=$ac_tag; continue;;
  27350. esac
  27351. case $ac_mode$ac_tag in
  27352. :[FHL]*:*);;
  27353. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27354. :[FH]-) ac_tag=-:-;;
  27355. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27356. esac
  27357. ac_save_IFS=$IFS
  27358. IFS=:
  27359. set x $ac_tag
  27360. IFS=$ac_save_IFS
  27361. shift
  27362. ac_file=$1
  27363. shift
  27364. case $ac_mode in
  27365. :L) ac_source=$1;;
  27366. :[FH])
  27367. ac_file_inputs=
  27368. for ac_f
  27369. do
  27370. case $ac_f in
  27371. -) ac_f="$ac_tmp/stdin";;
  27372. *) # Look for the file first in the build tree, then in the source tree
  27373. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27374. # because $ac_f cannot contain `:'.
  27375. test -f "$ac_f" ||
  27376. case $ac_f in
  27377. [\\/$]*) false;;
  27378. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27379. esac ||
  27380. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27381. esac
  27382. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27383. as_fn_append ac_file_inputs " '$ac_f'"
  27384. done
  27385. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27386. # use $as_me), people would be surprised to read:
  27387. # /* config.h. Generated by config.status. */
  27388. configure_input='Generated from '`
  27389. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27390. `' by configure.'
  27391. if test x"$ac_file" != x-; then
  27392. configure_input="$ac_file. $configure_input"
  27393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27394. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27395. fi
  27396. # Neutralize special characters interpreted by sed in replacement strings.
  27397. case $configure_input in #(
  27398. *\&* | *\|* | *\\* )
  27399. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27400. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27401. *) ac_sed_conf_input=$configure_input;;
  27402. esac
  27403. case $ac_tag in
  27404. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27405. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27406. esac
  27407. ;;
  27408. esac
  27409. ac_dir=`$as_dirname -- "$ac_file" ||
  27410. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27411. X"$ac_file" : 'X\(//\)[^/]' \| \
  27412. X"$ac_file" : 'X\(//\)$' \| \
  27413. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27414. printf "%s\n" X"$ac_file" |
  27415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27416. s//\1/
  27417. q
  27418. }
  27419. /^X\(\/\/\)[^/].*/{
  27420. s//\1/
  27421. q
  27422. }
  27423. /^X\(\/\/\)$/{
  27424. s//\1/
  27425. q
  27426. }
  27427. /^X\(\/\).*/{
  27428. s//\1/
  27429. q
  27430. }
  27431. s/.*/./; q'`
  27432. as_dir="$ac_dir"; as_fn_mkdir_p
  27433. ac_builddir=.
  27434. case "$ac_dir" in
  27435. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27436. *)
  27437. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27438. # A ".." for each directory in $ac_dir_suffix.
  27439. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27440. case $ac_top_builddir_sub in
  27441. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27442. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27443. esac ;;
  27444. esac
  27445. ac_abs_top_builddir=$ac_pwd
  27446. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27447. # for backward compatibility:
  27448. ac_top_builddir=$ac_top_build_prefix
  27449. case $srcdir in
  27450. .) # We are building in place.
  27451. ac_srcdir=.
  27452. ac_top_srcdir=$ac_top_builddir_sub
  27453. ac_abs_top_srcdir=$ac_pwd ;;
  27454. [\\/]* | ?:[\\/]* ) # Absolute name.
  27455. ac_srcdir=$srcdir$ac_dir_suffix;
  27456. ac_top_srcdir=$srcdir
  27457. ac_abs_top_srcdir=$srcdir ;;
  27458. *) # Relative name.
  27459. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27460. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27461. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27462. esac
  27463. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27464. case $ac_mode in
  27465. :F)
  27466. #
  27467. # CONFIG_FILE
  27468. #
  27469. case $INSTALL in
  27470. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27471. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27472. esac
  27473. _ACEOF
  27474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27475. # If the template does not know about datarootdir, expand it.
  27476. # FIXME: This hack should be removed a few years after 2.60.
  27477. ac_datarootdir_hack=; ac_datarootdir_seen=
  27478. ac_sed_dataroot='
  27479. /datarootdir/ {
  27480. p
  27481. q
  27482. }
  27483. /@datadir@/p
  27484. /@docdir@/p
  27485. /@infodir@/p
  27486. /@localedir@/p
  27487. /@mandir@/p'
  27488. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27489. *datarootdir*) ac_datarootdir_seen=yes;;
  27490. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27492. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27493. _ACEOF
  27494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27495. ac_datarootdir_hack='
  27496. s&@datadir@&$datadir&g
  27497. s&@docdir@&$docdir&g
  27498. s&@infodir@&$infodir&g
  27499. s&@localedir@&$localedir&g
  27500. s&@mandir@&$mandir&g
  27501. s&\\\${datarootdir}&$datarootdir&g' ;;
  27502. esac
  27503. _ACEOF
  27504. # Neutralize VPATH when `$srcdir' = `.'.
  27505. # Shell code in configure.ac might set extrasub.
  27506. # FIXME: do we really want to maintain this feature?
  27507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27508. ac_sed_extra="$ac_vpsub
  27509. $extrasub
  27510. _ACEOF
  27511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27512. :t
  27513. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27514. s|@configure_input@|$ac_sed_conf_input|;t t
  27515. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27516. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27517. s&@srcdir@&$ac_srcdir&;t t
  27518. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27519. s&@top_srcdir@&$ac_top_srcdir&;t t
  27520. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27521. s&@builddir@&$ac_builddir&;t t
  27522. s&@abs_builddir@&$ac_abs_builddir&;t t
  27523. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27524. s&@INSTALL@&$ac_INSTALL&;t t
  27525. $ac_datarootdir_hack
  27526. "
  27527. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27528. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27529. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27530. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27531. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27532. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27534. which seems to be undefined. Please make sure it is defined" >&5
  27535. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27536. which seems to be undefined. Please make sure it is defined" >&2;}
  27537. rm -f "$ac_tmp/stdin"
  27538. case $ac_file in
  27539. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27540. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27541. esac \
  27542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27543. ;;
  27544. :H)
  27545. #
  27546. # CONFIG_HEADER
  27547. #
  27548. if test x"$ac_file" != x-; then
  27549. {
  27550. printf "%s\n" "/* $configure_input */" >&1 \
  27551. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27552. } >"$ac_tmp/config.h" \
  27553. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27554. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27556. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27557. else
  27558. rm -f "$ac_file"
  27559. mv "$ac_tmp/config.h" "$ac_file" \
  27560. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27561. fi
  27562. else
  27563. printf "%s\n" "/* $configure_input */" >&1 \
  27564. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27565. || as_fn_error $? "could not create -" "$LINENO" 5
  27566. fi
  27567. ;;
  27568. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27569. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27570. ;;
  27571. esac
  27572. case $ac_file$ac_mode in
  27573. "libtool":C)
  27574. # See if we are running on zsh, and set the options that allow our
  27575. # commands through without removal of \ escapes.
  27576. if test -n "${ZSH_VERSION+set}"; then
  27577. setopt NO_GLOB_SUBST
  27578. fi
  27579. cfgfile=${ofile}T
  27580. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27581. $RM "$cfgfile"
  27582. cat <<_LT_EOF >> "$cfgfile"
  27583. #! $SHELL
  27584. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27585. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27586. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27587. # Provide generalized library-building support services.
  27588. # Written by Gordon Matzigkeit, 1996
  27589. # Copyright (C) 2014 Free Software Foundation, Inc.
  27590. # This is free software; see the source for copying conditions. There is NO
  27591. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27592. # GNU Libtool is free software; you can redistribute it and/or modify
  27593. # it under the terms of the GNU General Public License as published by
  27594. # the Free Software Foundation; either version 2 of of the License, or
  27595. # (at your option) any later version.
  27596. #
  27597. # As a special exception to the GNU General Public License, if you
  27598. # distribute this file as part of a program or library that is built
  27599. # using GNU Libtool, you may include this file under the same
  27600. # distribution terms that you use for the rest of that program.
  27601. #
  27602. # GNU Libtool is distributed in the hope that it will be useful, but
  27603. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27604. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27605. # GNU General Public License for more details.
  27606. #
  27607. # You should have received a copy of the GNU General Public License
  27608. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27609. # The names of the tagged configurations supported by this script.
  27610. available_tags='RC CXX '
  27611. # Configured defaults for sys_lib_dlsearch_path munging.
  27612. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27613. # ### BEGIN LIBTOOL CONFIG
  27614. # Which release of libtool.m4 was used?
  27615. macro_version=$macro_version
  27616. macro_revision=$macro_revision
  27617. # Assembler program.
  27618. AS=$lt_AS
  27619. # DLL creation program.
  27620. DLLTOOL=$lt_DLLTOOL
  27621. # Object dumper program.
  27622. OBJDUMP=$lt_OBJDUMP
  27623. # Whether or not to build shared libraries.
  27624. build_libtool_libs=$enable_shared
  27625. # Whether or not to build static libraries.
  27626. build_old_libs=$enable_static
  27627. # What type of objects to build.
  27628. pic_mode=$pic_mode
  27629. # Whether or not to optimize for fast installation.
  27630. fast_install=$enable_fast_install
  27631. # Shared archive member basename,for filename based shared library versioning on AIX.
  27632. shared_archive_member_spec=$shared_archive_member_spec
  27633. # Shell to use when invoking shell scripts.
  27634. SHELL=$lt_SHELL
  27635. # An echo program that protects backslashes.
  27636. ECHO=$lt_ECHO
  27637. # The PATH separator for the build system.
  27638. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27639. # The host system.
  27640. host_alias=$host_alias
  27641. host=$host
  27642. host_os=$host_os
  27643. # The build system.
  27644. build_alias=$build_alias
  27645. build=$build
  27646. build_os=$build_os
  27647. # A sed program that does not truncate output.
  27648. SED=$lt_SED
  27649. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27650. Xsed="\$SED -e 1s/^X//"
  27651. # A grep program that handles long lines.
  27652. GREP=$lt_GREP
  27653. # An ERE matcher.
  27654. EGREP=$lt_EGREP
  27655. # A literal string matcher.
  27656. FGREP=$lt_FGREP
  27657. # A BSD- or MS-compatible name lister.
  27658. NM=$lt_NM
  27659. # Whether we need soft or hard links.
  27660. LN_S=$lt_LN_S
  27661. # What is the maximum length of a command?
  27662. max_cmd_len=$max_cmd_len
  27663. # Object file suffix (normally "o").
  27664. objext=$ac_objext
  27665. # Executable file suffix (normally "").
  27666. exeext=$exeext
  27667. # whether the shell understands "unset".
  27668. lt_unset=$lt_unset
  27669. # turn spaces into newlines.
  27670. SP2NL=$lt_lt_SP2NL
  27671. # turn newlines into spaces.
  27672. NL2SP=$lt_lt_NL2SP
  27673. # convert \$build file names to \$host format.
  27674. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27675. # convert \$build files to toolchain format.
  27676. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27677. # Method to check whether dependent libraries are shared objects.
  27678. deplibs_check_method=$lt_deplibs_check_method
  27679. # Command to use when deplibs_check_method = "file_magic".
  27680. file_magic_cmd=$lt_file_magic_cmd
  27681. # How to find potential files when deplibs_check_method = "file_magic".
  27682. file_magic_glob=$lt_file_magic_glob
  27683. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27684. want_nocaseglob=$lt_want_nocaseglob
  27685. # Command to associate shared and link libraries.
  27686. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27687. # The archiver.
  27688. AR=$lt_AR
  27689. # Flags to create an archive.
  27690. AR_FLAGS=$lt_AR_FLAGS
  27691. # How to feed a file listing to the archiver.
  27692. archiver_list_spec=$lt_archiver_list_spec
  27693. # A symbol stripping program.
  27694. STRIP=$lt_STRIP
  27695. # Commands used to install an old-style archive.
  27696. RANLIB=$lt_RANLIB
  27697. old_postinstall_cmds=$lt_old_postinstall_cmds
  27698. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27699. # Whether to use a lock for old archive extraction.
  27700. lock_old_archive_extraction=$lock_old_archive_extraction
  27701. # A C compiler.
  27702. LTCC=$lt_CC
  27703. # LTCC compiler flags.
  27704. LTCFLAGS=$lt_CFLAGS
  27705. # Take the output of nm and produce a listing of raw symbols and C names.
  27706. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27707. # Transform the output of nm in a proper C declaration.
  27708. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27709. # Transform the output of nm into a list of symbols to manually relocate.
  27710. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27711. # Transform the output of nm in a C name address pair.
  27712. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27713. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27714. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27715. # The name lister interface.
  27716. nm_interface=$lt_lt_cv_nm_interface
  27717. # Specify filename containing input files for \$NM.
  27718. nm_file_list_spec=$lt_nm_file_list_spec
  27719. # The root where to search for dependent libraries,and where our libraries should be installed.
  27720. lt_sysroot=$lt_sysroot
  27721. # Command to truncate a binary pipe.
  27722. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27723. # The name of the directory that contains temporary libtool files.
  27724. objdir=$objdir
  27725. # Used to examine libraries when file_magic_cmd begins with "file".
  27726. MAGIC_CMD=$MAGIC_CMD
  27727. # Must we lock files when doing compilation?
  27728. need_locks=$lt_need_locks
  27729. # Manifest tool.
  27730. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27731. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27732. DSYMUTIL=$lt_DSYMUTIL
  27733. # Tool to change global to local symbols on Mac OS X.
  27734. NMEDIT=$lt_NMEDIT
  27735. # Tool to manipulate fat objects and archives on Mac OS X.
  27736. LIPO=$lt_LIPO
  27737. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27738. OTOOL=$lt_OTOOL
  27739. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27740. OTOOL64=$lt_OTOOL64
  27741. # Old archive suffix (normally "a").
  27742. libext=$libext
  27743. # Shared library suffix (normally ".so").
  27744. shrext_cmds=$lt_shrext_cmds
  27745. # The commands to extract the exported symbol list from a shared archive.
  27746. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27747. # Variables whose values should be saved in libtool wrapper scripts and
  27748. # restored at link time.
  27749. variables_saved_for_relink=$lt_variables_saved_for_relink
  27750. # Do we need the "lib" prefix for modules?
  27751. need_lib_prefix=$need_lib_prefix
  27752. # Do we need a version for libraries?
  27753. need_version=$need_version
  27754. # Library versioning type.
  27755. version_type=$version_type
  27756. # Shared library runtime path variable.
  27757. runpath_var=$runpath_var
  27758. # Shared library path variable.
  27759. shlibpath_var=$shlibpath_var
  27760. # Is shlibpath searched before the hard-coded library search path?
  27761. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27762. # Format of library name prefix.
  27763. libname_spec=$lt_libname_spec
  27764. # List of archive names. First name is the real one, the rest are links.
  27765. # The last name is the one that the linker finds with -lNAME
  27766. library_names_spec=$lt_library_names_spec
  27767. # The coded name of the library, if different from the real name.
  27768. soname_spec=$lt_soname_spec
  27769. # Permission mode override for installation of shared libraries.
  27770. install_override_mode=$lt_install_override_mode
  27771. # Command to use after installation of a shared archive.
  27772. postinstall_cmds=$lt_postinstall_cmds
  27773. # Command to use after uninstallation of a shared archive.
  27774. postuninstall_cmds=$lt_postuninstall_cmds
  27775. # Commands used to finish a libtool library installation in a directory.
  27776. finish_cmds=$lt_finish_cmds
  27777. # As "finish_cmds", except a single script fragment to be evaled but
  27778. # not shown.
  27779. finish_eval=$lt_finish_eval
  27780. # Whether we should hardcode library paths into libraries.
  27781. hardcode_into_libs=$hardcode_into_libs
  27782. # Compile-time system search path for libraries.
  27783. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27784. # Detected run-time system search path for libraries.
  27785. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27786. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27787. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27788. # Whether dlopen is supported.
  27789. dlopen_support=$enable_dlopen
  27790. # Whether dlopen of programs is supported.
  27791. dlopen_self=$enable_dlopen_self
  27792. # Whether dlopen of statically linked programs is supported.
  27793. dlopen_self_static=$enable_dlopen_self_static
  27794. # Commands to strip libraries.
  27795. old_striplib=$lt_old_striplib
  27796. striplib=$lt_striplib
  27797. # The linker used to build libraries.
  27798. LD=$lt_LD
  27799. # How to create reloadable object files.
  27800. reload_flag=$lt_reload_flag
  27801. reload_cmds=$lt_reload_cmds
  27802. # Commands used to build an old-style archive.
  27803. old_archive_cmds=$lt_old_archive_cmds
  27804. # A language specific compiler.
  27805. CC=$lt_compiler
  27806. # Is the compiler the GNU compiler?
  27807. with_gcc=$GCC
  27808. # Compiler flag to turn off builtin functions.
  27809. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27810. # Additional compiler flags for building library objects.
  27811. pic_flag=$lt_lt_prog_compiler_pic
  27812. # How to pass a linker flag through the compiler.
  27813. wl=$lt_lt_prog_compiler_wl
  27814. # Compiler flag to prevent dynamic linking.
  27815. link_static_flag=$lt_lt_prog_compiler_static
  27816. # Does compiler simultaneously support -c and -o options?
  27817. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27818. # Whether or not to add -lc for building shared libraries.
  27819. build_libtool_need_lc=$archive_cmds_need_lc
  27820. # Whether or not to disallow shared libs when runtime libs are static.
  27821. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27822. # Compiler flag to allow reflexive dlopens.
  27823. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27824. # Compiler flag to generate shared objects directly from archives.
  27825. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27826. # Whether the compiler copes with passing no objects directly.
  27827. compiler_needs_object=$lt_compiler_needs_object
  27828. # Create an old-style archive from a shared archive.
  27829. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27830. # Create a temporary old-style archive to link instead of a shared archive.
  27831. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27832. # Commands used to build a shared archive.
  27833. archive_cmds=$lt_archive_cmds
  27834. archive_expsym_cmds=$lt_archive_expsym_cmds
  27835. # Commands used to build a loadable module if different from building
  27836. # a shared archive.
  27837. module_cmds=$lt_module_cmds
  27838. module_expsym_cmds=$lt_module_expsym_cmds
  27839. # Whether we are building with GNU ld or not.
  27840. with_gnu_ld=$lt_with_gnu_ld
  27841. # Flag that allows shared libraries with undefined symbols to be built.
  27842. allow_undefined_flag=$lt_allow_undefined_flag
  27843. # Flag that enforces no undefined symbols.
  27844. no_undefined_flag=$lt_no_undefined_flag
  27845. # Flag to hardcode \$libdir into a binary during linking.
  27846. # This must work even if \$libdir does not exist
  27847. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27848. # Whether we need a single "-rpath" flag with a separated argument.
  27849. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27850. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27851. # DIR into the resulting binary.
  27852. hardcode_direct=$hardcode_direct
  27853. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27854. # DIR into the resulting binary and the resulting library dependency is
  27855. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27856. # library is relocated.
  27857. hardcode_direct_absolute=$hardcode_direct_absolute
  27858. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27859. # into the resulting binary.
  27860. hardcode_minus_L=$hardcode_minus_L
  27861. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27862. # into the resulting binary.
  27863. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27864. # Set to "yes" if building a shared library automatically hardcodes DIR
  27865. # into the library and all subsequent libraries and executables linked
  27866. # against it.
  27867. hardcode_automatic=$hardcode_automatic
  27868. # Set to yes if linker adds runtime paths of dependent libraries
  27869. # to runtime path list.
  27870. inherit_rpath=$inherit_rpath
  27871. # Whether libtool must link a program against all its dependency libraries.
  27872. link_all_deplibs=$link_all_deplibs
  27873. # Set to "yes" if exported symbols are required.
  27874. always_export_symbols=$always_export_symbols
  27875. # The commands to list exported symbols.
  27876. export_symbols_cmds=$lt_export_symbols_cmds
  27877. # Symbols that should not be listed in the preloaded symbols.
  27878. exclude_expsyms=$lt_exclude_expsyms
  27879. # Symbols that must always be exported.
  27880. include_expsyms=$lt_include_expsyms
  27881. # Commands necessary for linking programs (against libraries) with templates.
  27882. prelink_cmds=$lt_prelink_cmds
  27883. # Commands necessary for finishing linking programs.
  27884. postlink_cmds=$lt_postlink_cmds
  27885. # Specify filename containing input files.
  27886. file_list_spec=$lt_file_list_spec
  27887. # How to hardcode a shared library path into an executable.
  27888. hardcode_action=$hardcode_action
  27889. # The directories searched by this compiler when creating a shared library.
  27890. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27891. # Dependencies to place before and after the objects being linked to
  27892. # create a shared library.
  27893. predep_objects=$lt_predep_objects
  27894. postdep_objects=$lt_postdep_objects
  27895. predeps=$lt_predeps
  27896. postdeps=$lt_postdeps
  27897. # The library search path used internally by the compiler when linking
  27898. # a shared library.
  27899. compiler_lib_search_path=$lt_compiler_lib_search_path
  27900. # ### END LIBTOOL CONFIG
  27901. _LT_EOF
  27902. cat <<'_LT_EOF' >> "$cfgfile"
  27903. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27904. # func_munge_path_list VARIABLE PATH
  27905. # -----------------------------------
  27906. # VARIABLE is name of variable containing _space_ separated list of
  27907. # directories to be munged by the contents of PATH, which is string
  27908. # having a format:
  27909. # "DIR[:DIR]:"
  27910. # string "DIR[ DIR]" will be prepended to VARIABLE
  27911. # ":DIR[:DIR]"
  27912. # string "DIR[ DIR]" will be appended to VARIABLE
  27913. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27914. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27915. # "DIRA[ DIRA]" will be appended to VARIABLE
  27916. # "DIR[:DIR]"
  27917. # VARIABLE will be replaced by "DIR[ DIR]"
  27918. func_munge_path_list ()
  27919. {
  27920. case x$2 in
  27921. x)
  27922. ;;
  27923. *:)
  27924. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27925. ;;
  27926. x:*)
  27927. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27928. ;;
  27929. *::*)
  27930. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27931. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27932. ;;
  27933. *)
  27934. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27935. ;;
  27936. esac
  27937. }
  27938. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27939. func_cc_basename ()
  27940. {
  27941. for cc_temp in $*""; do
  27942. case $cc_temp in
  27943. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27944. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27945. \-*) ;;
  27946. *) break;;
  27947. esac
  27948. done
  27949. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27950. }
  27951. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27952. _LT_EOF
  27953. case $host_os in
  27954. aix3*)
  27955. cat <<\_LT_EOF >> "$cfgfile"
  27956. # AIX sometimes has problems with the GCC collect2 program. For some
  27957. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27958. # vanish in a puff of smoke.
  27959. if test set != "${COLLECT_NAMES+set}"; then
  27960. COLLECT_NAMES=
  27961. export COLLECT_NAMES
  27962. fi
  27963. _LT_EOF
  27964. ;;
  27965. esac
  27966. ltmain=$ac_aux_dir/ltmain.sh
  27967. # We use sed instead of cat because bash on DJGPP gets confused if
  27968. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27969. # text mode, it properly converts lines to CR/LF. This bash problem
  27970. # is reportedly fixed, but why not run on old versions too?
  27971. sed '$q' "$ltmain" >> "$cfgfile" \
  27972. || (rm -f "$cfgfile"; exit 1)
  27973. mv -f "$cfgfile" "$ofile" ||
  27974. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27975. chmod +x "$ofile"
  27976. cat <<_LT_EOF >> "$ofile"
  27977. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27978. # The linker used to build libraries.
  27979. LD=$lt_LD_RC
  27980. # How to create reloadable object files.
  27981. reload_flag=$lt_reload_flag_RC
  27982. reload_cmds=$lt_reload_cmds_RC
  27983. # Commands used to build an old-style archive.
  27984. old_archive_cmds=$lt_old_archive_cmds_RC
  27985. # A language specific compiler.
  27986. CC=$lt_compiler_RC
  27987. # Is the compiler the GNU compiler?
  27988. with_gcc=$GCC_RC
  27989. # Compiler flag to turn off builtin functions.
  27990. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27991. # Additional compiler flags for building library objects.
  27992. pic_flag=$lt_lt_prog_compiler_pic_RC
  27993. # How to pass a linker flag through the compiler.
  27994. wl=$lt_lt_prog_compiler_wl_RC
  27995. # Compiler flag to prevent dynamic linking.
  27996. link_static_flag=$lt_lt_prog_compiler_static_RC
  27997. # Does compiler simultaneously support -c and -o options?
  27998. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27999. # Whether or not to add -lc for building shared libraries.
  28000. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28001. # Whether or not to disallow shared libs when runtime libs are static.
  28002. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28003. # Compiler flag to allow reflexive dlopens.
  28004. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28005. # Compiler flag to generate shared objects directly from archives.
  28006. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28007. # Whether the compiler copes with passing no objects directly.
  28008. compiler_needs_object=$lt_compiler_needs_object_RC
  28009. # Create an old-style archive from a shared archive.
  28010. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28011. # Create a temporary old-style archive to link instead of a shared archive.
  28012. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28013. # Commands used to build a shared archive.
  28014. archive_cmds=$lt_archive_cmds_RC
  28015. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28016. # Commands used to build a loadable module if different from building
  28017. # a shared archive.
  28018. module_cmds=$lt_module_cmds_RC
  28019. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28020. # Whether we are building with GNU ld or not.
  28021. with_gnu_ld=$lt_with_gnu_ld_RC
  28022. # Flag that allows shared libraries with undefined symbols to be built.
  28023. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28024. # Flag that enforces no undefined symbols.
  28025. no_undefined_flag=$lt_no_undefined_flag_RC
  28026. # Flag to hardcode \$libdir into a binary during linking.
  28027. # This must work even if \$libdir does not exist
  28028. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28029. # Whether we need a single "-rpath" flag with a separated argument.
  28030. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28031. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28032. # DIR into the resulting binary.
  28033. hardcode_direct=$hardcode_direct_RC
  28034. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28035. # DIR into the resulting binary and the resulting library dependency is
  28036. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28037. # library is relocated.
  28038. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28039. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28040. # into the resulting binary.
  28041. hardcode_minus_L=$hardcode_minus_L_RC
  28042. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28043. # into the resulting binary.
  28044. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28045. # Set to "yes" if building a shared library automatically hardcodes DIR
  28046. # into the library and all subsequent libraries and executables linked
  28047. # against it.
  28048. hardcode_automatic=$hardcode_automatic_RC
  28049. # Set to yes if linker adds runtime paths of dependent libraries
  28050. # to runtime path list.
  28051. inherit_rpath=$inherit_rpath_RC
  28052. # Whether libtool must link a program against all its dependency libraries.
  28053. link_all_deplibs=$link_all_deplibs_RC
  28054. # Set to "yes" if exported symbols are required.
  28055. always_export_symbols=$always_export_symbols_RC
  28056. # The commands to list exported symbols.
  28057. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28058. # Symbols that should not be listed in the preloaded symbols.
  28059. exclude_expsyms=$lt_exclude_expsyms_RC
  28060. # Symbols that must always be exported.
  28061. include_expsyms=$lt_include_expsyms_RC
  28062. # Commands necessary for linking programs (against libraries) with templates.
  28063. prelink_cmds=$lt_prelink_cmds_RC
  28064. # Commands necessary for finishing linking programs.
  28065. postlink_cmds=$lt_postlink_cmds_RC
  28066. # Specify filename containing input files.
  28067. file_list_spec=$lt_file_list_spec_RC
  28068. # How to hardcode a shared library path into an executable.
  28069. hardcode_action=$hardcode_action_RC
  28070. # The directories searched by this compiler when creating a shared library.
  28071. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28072. # Dependencies to place before and after the objects being linked to
  28073. # create a shared library.
  28074. predep_objects=$lt_predep_objects_RC
  28075. postdep_objects=$lt_postdep_objects_RC
  28076. predeps=$lt_predeps_RC
  28077. postdeps=$lt_postdeps_RC
  28078. # The library search path used internally by the compiler when linking
  28079. # a shared library.
  28080. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28081. # ### END LIBTOOL TAG CONFIG: RC
  28082. _LT_EOF
  28083. cat <<_LT_EOF >> "$ofile"
  28084. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28085. # The linker used to build libraries.
  28086. LD=$lt_LD_CXX
  28087. # How to create reloadable object files.
  28088. reload_flag=$lt_reload_flag_CXX
  28089. reload_cmds=$lt_reload_cmds_CXX
  28090. # Commands used to build an old-style archive.
  28091. old_archive_cmds=$lt_old_archive_cmds_CXX
  28092. # A language specific compiler.
  28093. CC=$lt_compiler_CXX
  28094. # Is the compiler the GNU compiler?
  28095. with_gcc=$GCC_CXX
  28096. # Compiler flag to turn off builtin functions.
  28097. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28098. # Additional compiler flags for building library objects.
  28099. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28100. # How to pass a linker flag through the compiler.
  28101. wl=$lt_lt_prog_compiler_wl_CXX
  28102. # Compiler flag to prevent dynamic linking.
  28103. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28104. # Does compiler simultaneously support -c and -o options?
  28105. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28106. # Whether or not to add -lc for building shared libraries.
  28107. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28108. # Whether or not to disallow shared libs when runtime libs are static.
  28109. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28110. # Compiler flag to allow reflexive dlopens.
  28111. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28112. # Compiler flag to generate shared objects directly from archives.
  28113. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28114. # Whether the compiler copes with passing no objects directly.
  28115. compiler_needs_object=$lt_compiler_needs_object_CXX
  28116. # Create an old-style archive from a shared archive.
  28117. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28118. # Create a temporary old-style archive to link instead of a shared archive.
  28119. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28120. # Commands used to build a shared archive.
  28121. archive_cmds=$lt_archive_cmds_CXX
  28122. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28123. # Commands used to build a loadable module if different from building
  28124. # a shared archive.
  28125. module_cmds=$lt_module_cmds_CXX
  28126. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28127. # Whether we are building with GNU ld or not.
  28128. with_gnu_ld=$lt_with_gnu_ld_CXX
  28129. # Flag that allows shared libraries with undefined symbols to be built.
  28130. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28131. # Flag that enforces no undefined symbols.
  28132. no_undefined_flag=$lt_no_undefined_flag_CXX
  28133. # Flag to hardcode \$libdir into a binary during linking.
  28134. # This must work even if \$libdir does not exist
  28135. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28136. # Whether we need a single "-rpath" flag with a separated argument.
  28137. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28138. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28139. # DIR into the resulting binary.
  28140. hardcode_direct=$hardcode_direct_CXX
  28141. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28142. # DIR into the resulting binary and the resulting library dependency is
  28143. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28144. # library is relocated.
  28145. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28146. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28147. # into the resulting binary.
  28148. hardcode_minus_L=$hardcode_minus_L_CXX
  28149. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28150. # into the resulting binary.
  28151. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28152. # Set to "yes" if building a shared library automatically hardcodes DIR
  28153. # into the library and all subsequent libraries and executables linked
  28154. # against it.
  28155. hardcode_automatic=$hardcode_automatic_CXX
  28156. # Set to yes if linker adds runtime paths of dependent libraries
  28157. # to runtime path list.
  28158. inherit_rpath=$inherit_rpath_CXX
  28159. # Whether libtool must link a program against all its dependency libraries.
  28160. link_all_deplibs=$link_all_deplibs_CXX
  28161. # Set to "yes" if exported symbols are required.
  28162. always_export_symbols=$always_export_symbols_CXX
  28163. # The commands to list exported symbols.
  28164. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28165. # Symbols that should not be listed in the preloaded symbols.
  28166. exclude_expsyms=$lt_exclude_expsyms_CXX
  28167. # Symbols that must always be exported.
  28168. include_expsyms=$lt_include_expsyms_CXX
  28169. # Commands necessary for linking programs (against libraries) with templates.
  28170. prelink_cmds=$lt_prelink_cmds_CXX
  28171. # Commands necessary for finishing linking programs.
  28172. postlink_cmds=$lt_postlink_cmds_CXX
  28173. # Specify filename containing input files.
  28174. file_list_spec=$lt_file_list_spec_CXX
  28175. # How to hardcode a shared library path into an executable.
  28176. hardcode_action=$hardcode_action_CXX
  28177. # The directories searched by this compiler when creating a shared library.
  28178. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28179. # Dependencies to place before and after the objects being linked to
  28180. # create a shared library.
  28181. predep_objects=$lt_predep_objects_CXX
  28182. postdep_objects=$lt_postdep_objects_CXX
  28183. predeps=$lt_predeps_CXX
  28184. postdeps=$lt_postdeps_CXX
  28185. # The library search path used internally by the compiler when linking
  28186. # a shared library.
  28187. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28188. # ### END LIBTOOL TAG CONFIG: CXX
  28189. _LT_EOF
  28190. ;;
  28191. "sdl2_config":C) chmod a+x sdl2-config ;;
  28192. "summary":C) printf "$SUMMARY" ;;
  28193. esac
  28194. done # for ac_tag
  28195. as_fn_exit 0
  28196. _ACEOF
  28197. ac_clean_files=$ac_clean_files_save
  28198. test $ac_write_fail = 0 ||
  28199. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28200. # configure is writing to config.log, and then calls config.status.
  28201. # config.status does its own redirection, appending to config.log.
  28202. # Unfortunately, on DOS this fails, as config.log is still kept open
  28203. # by configure, so config.status won't be able to write to it; its
  28204. # output is simply discarded. So we exec the FD to /dev/null,
  28205. # effectively closing config.log, so it can be properly (re)opened and
  28206. # appended to by config.status. When coming back to configure, we
  28207. # need to make the FD available again.
  28208. if test "$no_create" != yes; then
  28209. ac_cs_success=:
  28210. ac_config_status_args=
  28211. test "$silent" = yes &&
  28212. ac_config_status_args="$ac_config_status_args --quiet"
  28213. exec 5>/dev/null
  28214. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28215. exec 5>>config.log
  28216. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28217. # would make configure fail if this is the last instruction.
  28218. $ac_cs_success || as_fn_exit 1
  28219. fi
  28220. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28222. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28223. fi